patchright-core 1.52.0 → 1.52.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./codeMirrorModule-dvXVzLxY.js","../codeMirrorModule.C3UTv-Ge.css"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./codeMirrorModule-_GLjJL-7.js","../codeMirrorModule.C3UTv-Ge.css"])))=>i.map(i=>d[i]);
2
2
  var tx=Object.defineProperty;var nx=(t,e,n)=>e in t?tx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var xe=(t,e,n)=>nx(t,typeof e!="symbol"?e+"":e,n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function rx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var du={exports:{}},ji={},hu={exports:{}},me={};/**
3
3
  * @license React
4
4
  * react.production.min.js
@@ -38,7 +38,7 @@ var tx=Object.defineProperty;var nx=(t,e,n)=>e in t?tx(t,e,{enumerable:!0,config
38
38
  `+p[k].replace(" at new "," at ");return r.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",r.displayName)),C}while(1<=k&&0<=E);break}}}finally{fe=!1,Error.prepareStackTrace=a}return(r=r?r.displayName||r.name:"")?q(r):""}function ve(r){switch(r.tag){case 5:return q(r.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return r=ue(r.type,!1),r;case 11:return r=ue(r.type.render,!1),r;case 1:return r=ue(r.type,!0),r;default:return""}}function ge(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case U:return"Fragment";case F:return"Portal";case I:return"Profiler";case B:return"StrictMode";case J:return"Suspense";case de:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case W:return(r.displayName||"Context")+".Consumer";case Q:return(r._context.displayName||"Context")+".Provider";case z:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Te:return i=r.displayName||null,i!==null?i:ge(r.type)||"Memo";case Le:i=r._payload,r=r._init;try{return ge(r(i))}catch{}}return null}function pe(r){var i=r.type;switch(r.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=i.render,r=r.displayName||r.name||"",i.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ge(i);case 8:return i===B?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Se(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ce(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function ft(r){var i=Ce(r)?"checked":"value",a=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),f=""+r[i];if(!r.hasOwnProperty(i)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var p=a.get,g=a.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return p.call(this)},set:function(k){f=""+k,g.call(this,k)}}),Object.defineProperty(r,i,{enumerable:a.enumerable}),{getValue:function(){return f},setValue:function(k){f=""+k},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function Mn(r){r._valueTracker||(r._valueTracker=ft(r))}function Hs(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var a=i.getValue(),f="";return r&&(f=Ce(r)?r.checked?"true":"false":r.value),r=f,r!==a?(i.setValue(r),!0):!1}function ur(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function cn(r,i){var a=i.checked;return Z({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??r._wrapperState.initialChecked})}function so(r,i){var a=i.defaultValue==null?"":i.defaultValue,f=i.checked!=null?i.checked:i.defaultChecked;a=Se(i.value!=null?i.value:a),r._wrapperState={initialChecked:f,initialValue:a,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function io(r,i){i=i.checked,i!=null&&O(r,"checked",i,!1)}function Vs(r,i){io(r,i);var a=Se(i.value),f=i.type;if(a!=null)f==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+a):r.value!==""+a&&(r.value=""+a);else if(f==="submit"||f==="reset"){r.removeAttribute("value");return}i.hasOwnProperty("value")?Fr(r,i.type,a):i.hasOwnProperty("defaultValue")&&Fr(r,i.type,Se(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(r.defaultChecked=!!i.defaultChecked)}function oo(r,i,a){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var f=i.type;if(!(f!=="submit"&&f!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+r._wrapperState.initialValue,a||i===r.value||(r.value=i),r.defaultValue=i}a=r.name,a!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,a!==""&&(r.name=a)}function Fr(r,i,a){(i!=="number"||ur(r.ownerDocument)!==r)&&(a==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+a&&(r.defaultValue=""+a))}var vn=Array.isArray;function $n(r,i,a,f){if(r=r.options,i){i={};for(var p=0;p<a.length;p++)i["$"+a[p]]=!0;for(a=0;a<r.length;a++)p=i.hasOwnProperty("$"+r[a].value),r[a].selected!==p&&(r[a].selected=p),p&&f&&(r[a].defaultSelected=!0)}else{for(a=""+Se(a),i=null,p=0;p<r.length;p++){if(r[p].value===a){r[p].selected=!0,f&&(r[p].defaultSelected=!0);return}i!==null||r[p].disabled||(i=r[p])}i!==null&&(i.selected=!0)}}function Ws(r,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return Z({},i,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function lo(r,i){var a=i.value;if(a==null){if(a=i.children,i=i.defaultValue,a!=null){if(i!=null)throw Error(n(92));if(vn(a)){if(1<a.length)throw Error(n(93));a=a[0]}i=a}i==null&&(i=""),a=i}r._wrapperState={initialValue:Se(a)}}function Pn(r,i){var a=Se(i.value),f=Se(i.defaultValue);a!=null&&(a=""+a,a!==r.value&&(r.value=a),i.defaultValue==null&&r.defaultValue!==a&&(r.defaultValue=a)),f!=null&&(r.defaultValue=""+f)}function zr(r){var i=r.textContent;i===r._wrapperState.initialValue&&i!==""&&i!==null&&(r.value=i)}function fr(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ks(r,i){return r==null||r==="http://www.w3.org/1999/xhtml"?fr(i):r==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Br,Qs=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,a,f,p){MSApp.execUnsafeLocalFunction(function(){return r(i,a,f,p)})}:r}(function(r,i){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=i;else{for(Br=Br||document.createElement("div"),Br.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=Br.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;i.firstChild;)r.appendChild(i.firstChild)}});function le(r,i){if(i){var a=r.firstChild;if(a&&a===r.lastChild&&a.nodeType===3){a.nodeValue=i;return}}r.textContent=i}var wt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Jt=["Webkit","ms","Moz","O"];Object.keys(wt).forEach(function(r){Jt.forEach(function(i){i=i+r.charAt(0).toUpperCase()+r.substring(1),wt[i]=wt[r]})});function rd(r,i,a){return i==null||typeof i=="boolean"||i===""?"":a||typeof i!="number"||i===0||wt.hasOwnProperty(r)&&wt[r]?(""+i).trim():i+"px"}function sd(r,i){r=r.style;for(var a in i)if(i.hasOwnProperty(a)){var f=a.indexOf("--")===0,p=rd(a,i[a],f);a==="float"&&(a="cssFloat"),f?r.setProperty(a,p):r[a]=p}}var ow=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ba(r,i){if(i){if(ow[r]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function Ea(r,i){if(r.indexOf("-")===-1)return typeof i.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ta=null;function Na(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ca=null,Ur=null,qr=null;function id(r){if(r=gi(r)){if(typeof Ca!="function")throw Error(n(280));var i=r.stateNode;i&&(i=jo(i),Ca(r.stateNode,r.type,i))}}function od(r){Ur?qr?qr.push(r):qr=[r]:Ur=r}function ld(){if(Ur){var r=Ur,i=qr;if(qr=Ur=null,id(r),i)for(r=0;r<i.length;r++)id(i[r])}}function ad(r,i){return r(i)}function cd(){}var Aa=!1;function ud(r,i,a){if(Aa)return r(i,a);Aa=!0;try{return ad(r,i,a)}finally{Aa=!1,(Ur!==null||qr!==null)&&(cd(),ld())}}function Gs(r,i){var a=r.stateNode;if(a===null)return null;var f=jo(a);if(f===null)return null;a=f[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(r=r.type,f=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!f;break e;default:r=!1}if(r)return null;if(a&&typeof a!="function")throw Error(n(231,i,typeof a));return a}var La=!1;if(u)try{var Xs={};Object.defineProperty(Xs,"passive",{get:function(){La=!0}}),window.addEventListener("test",Xs,Xs),window.removeEventListener("test",Xs,Xs)}catch{La=!1}function lw(r,i,a,f,p,g,k,E,C){var $=Array.prototype.slice.call(arguments,3);try{i.apply(a,$)}catch(V){this.onError(V)}}var Js=!1,ao=null,co=!1,ja=null,aw={onError:function(r){Js=!0,ao=r}};function cw(r,i,a,f,p,g,k,E,C){Js=!1,ao=null,lw.apply(aw,arguments)}function uw(r,i,a,f,p,g,k,E,C){if(cw.apply(this,arguments),Js){if(Js){var $=ao;Js=!1,ao=null}else throw Error(n(198));co||(co=!0,ja=$)}}function dr(r){var i=r,a=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(a=i.return),r=i.return;while(r)}return i.tag===3?a:null}function fd(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function dd(r){if(dr(r)!==r)throw Error(n(188))}function fw(r){var i=r.alternate;if(!i){if(i=dr(r),i===null)throw Error(n(188));return i!==r?null:r}for(var a=r,f=i;;){var p=a.return;if(p===null)break;var g=p.alternate;if(g===null){if(f=p.return,f!==null){a=f;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===a)return dd(p),r;if(g===f)return dd(p),i;g=g.sibling}throw Error(n(188))}if(a.return!==f.return)a=p,f=g;else{for(var k=!1,E=p.child;E;){if(E===a){k=!0,a=p,f=g;break}if(E===f){k=!0,f=p,a=g;break}E=E.sibling}if(!k){for(E=g.child;E;){if(E===a){k=!0,a=g,f=p;break}if(E===f){k=!0,f=g,a=p;break}E=E.sibling}if(!k)throw Error(n(189))}}if(a.alternate!==f)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?r:i}function hd(r){return r=fw(r),r!==null?pd(r):null}function pd(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var i=pd(r);if(i!==null)return i;r=r.sibling}return null}var md=e.unstable_scheduleCallback,gd=e.unstable_cancelCallback,dw=e.unstable_shouldYield,hw=e.unstable_requestPaint,qe=e.unstable_now,pw=e.unstable_getCurrentPriorityLevel,Ia=e.unstable_ImmediatePriority,yd=e.unstable_UserBlockingPriority,uo=e.unstable_NormalPriority,mw=e.unstable_LowPriority,vd=e.unstable_IdlePriority,fo=null,un=null;function gw(r){if(un&&typeof un.onCommitFiberRoot=="function")try{un.onCommitFiberRoot(fo,r,void 0,(r.current.flags&128)===128)}catch{}}var Yt=Math.clz32?Math.clz32:ww,yw=Math.log,vw=Math.LN2;function ww(r){return r>>>=0,r===0?32:31-(yw(r)/vw|0)|0}var ho=64,po=4194304;function Ys(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function mo(r,i){var a=r.pendingLanes;if(a===0)return 0;var f=0,p=r.suspendedLanes,g=r.pingedLanes,k=a&268435455;if(k!==0){var E=k&~p;E!==0?f=Ys(E):(g&=k,g!==0&&(f=Ys(g)))}else k=a&~p,k!==0?f=Ys(k):g!==0&&(f=Ys(g));if(f===0)return 0;if(i!==0&&i!==f&&(i&p)===0&&(p=f&-f,g=i&-i,p>=g||p===16&&(g&4194240)!==0))return i;if((f&4)!==0&&(f|=a&16),i=r.entangledLanes,i!==0)for(r=r.entanglements,i&=f;0<i;)a=31-Yt(i),p=1<<a,f|=r[a],i&=~p;return f}function xw(r,i){switch(r){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Sw(r,i){for(var a=r.suspendedLanes,f=r.pingedLanes,p=r.expirationTimes,g=r.pendingLanes;0<g;){var k=31-Yt(g),E=1<<k,C=p[k];C===-1?((E&a)===0||(E&f)!==0)&&(p[k]=xw(E,i)):C<=i&&(r.expiredLanes|=E),g&=~E}}function Oa(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function wd(){var r=ho;return ho<<=1,(ho&4194240)===0&&(ho=64),r}function Ma(r){for(var i=[],a=0;31>a;a++)i.push(r);return i}function Zs(r,i,a){r.pendingLanes|=i,i!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,i=31-Yt(i),r[i]=a}function _w(r,i){var a=r.pendingLanes&~i;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=i,r.mutableReadLanes&=i,r.entangledLanes&=i,i=r.entanglements;var f=r.eventTimes;for(r=r.expirationTimes;0<a;){var p=31-Yt(a),g=1<<p;i[p]=0,f[p]=-1,r[p]=-1,a&=~g}}function $a(r,i){var a=r.entangledLanes|=i;for(r=r.entanglements;a;){var f=31-Yt(a),p=1<<f;p&i|r[f]&i&&(r[f]|=i),a&=~p}}var Ee=0;function xd(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Sd,Pa,_d,kd,bd,Ra=!1,go=[],Rn=null,Dn=null,Fn=null,ei=new Map,ti=new Map,zn=[],kw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ed(r,i){switch(r){case"focusin":case"focusout":Rn=null;break;case"dragenter":case"dragleave":Dn=null;break;case"mouseover":case"mouseout":Fn=null;break;case"pointerover":case"pointerout":ei.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":ti.delete(i.pointerId)}}function ni(r,i,a,f,p,g){return r===null||r.nativeEvent!==g?(r={blockedOn:i,domEventName:a,eventSystemFlags:f,nativeEvent:g,targetContainers:[p]},i!==null&&(i=gi(i),i!==null&&Pa(i)),r):(r.eventSystemFlags|=f,i=r.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),r)}function bw(r,i,a,f,p){switch(i){case"focusin":return Rn=ni(Rn,r,i,a,f,p),!0;case"dragenter":return Dn=ni(Dn,r,i,a,f,p),!0;case"mouseover":return Fn=ni(Fn,r,i,a,f,p),!0;case"pointerover":var g=p.pointerId;return ei.set(g,ni(ei.get(g)||null,r,i,a,f,p)),!0;case"gotpointercapture":return g=p.pointerId,ti.set(g,ni(ti.get(g)||null,r,i,a,f,p)),!0}return!1}function Td(r){var i=hr(r.target);if(i!==null){var a=dr(i);if(a!==null){if(i=a.tag,i===13){if(i=fd(a),i!==null){r.blockedOn=i,bd(r.priority,function(){_d(a)});return}}else if(i===3&&a.stateNode.current.memoizedState.isDehydrated){r.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}r.blockedOn=null}function yo(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var a=Fa(r.domEventName,r.eventSystemFlags,i[0],r.nativeEvent);if(a===null){a=r.nativeEvent;var f=new a.constructor(a.type,a);Ta=f,a.target.dispatchEvent(f),Ta=null}else return i=gi(a),i!==null&&Pa(i),r.blockedOn=a,!1;i.shift()}return!0}function Nd(r,i,a){yo(r)&&a.delete(i)}function Ew(){Ra=!1,Rn!==null&&yo(Rn)&&(Rn=null),Dn!==null&&yo(Dn)&&(Dn=null),Fn!==null&&yo(Fn)&&(Fn=null),ei.forEach(Nd),ti.forEach(Nd)}function ri(r,i){r.blockedOn===i&&(r.blockedOn=null,Ra||(Ra=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ew)))}function si(r){function i(p){return ri(p,r)}if(0<go.length){ri(go[0],r);for(var a=1;a<go.length;a++){var f=go[a];f.blockedOn===r&&(f.blockedOn=null)}}for(Rn!==null&&ri(Rn,r),Dn!==null&&ri(Dn,r),Fn!==null&&ri(Fn,r),ei.forEach(i),ti.forEach(i),a=0;a<zn.length;a++)f=zn[a],f.blockedOn===r&&(f.blockedOn=null);for(;0<zn.length&&(a=zn[0],a.blockedOn===null);)Td(a),a.blockedOn===null&&zn.shift()}var Hr=R.ReactCurrentBatchConfig,vo=!0;function Tw(r,i,a,f){var p=Ee,g=Hr.transition;Hr.transition=null;try{Ee=1,Da(r,i,a,f)}finally{Ee=p,Hr.transition=g}}function Nw(r,i,a,f){var p=Ee,g=Hr.transition;Hr.transition=null;try{Ee=4,Da(r,i,a,f)}finally{Ee=p,Hr.transition=g}}function Da(r,i,a,f){if(vo){var p=Fa(r,i,a,f);if(p===null)nc(r,i,f,wo,a),Ed(r,f);else if(bw(p,r,i,a,f))f.stopPropagation();else if(Ed(r,f),i&4&&-1<kw.indexOf(r)){for(;p!==null;){var g=gi(p);if(g!==null&&Sd(g),g=Fa(r,i,a,f),g===null&&nc(r,i,f,wo,a),g===p)break;p=g}p!==null&&f.stopPropagation()}else nc(r,i,f,null,a)}}var wo=null;function Fa(r,i,a,f){if(wo=null,r=Na(f),r=hr(r),r!==null)if(i=dr(r),i===null)r=null;else if(a=i.tag,a===13){if(r=fd(i),r!==null)return r;r=null}else if(a===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null);return wo=r,null}function Cd(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(pw()){case Ia:return 1;case yd:return 4;case uo:case mw:return 16;case vd:return 536870912;default:return 16}default:return 16}}var Bn=null,za=null,xo=null;function Ad(){if(xo)return xo;var r,i=za,a=i.length,f,p="value"in Bn?Bn.value:Bn.textContent,g=p.length;for(r=0;r<a&&i[r]===p[r];r++);var k=a-r;for(f=1;f<=k&&i[a-f]===p[g-f];f++);return xo=p.slice(r,1<f?1-f:void 0)}function So(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function _o(){return!0}function Ld(){return!1}function It(r){function i(a,f,p,g,k){this._reactName=a,this._targetInst=p,this.type=f,this.nativeEvent=g,this.target=k,this.currentTarget=null;for(var E in r)r.hasOwnProperty(E)&&(a=r[E],this[E]=a?a(g):g[E]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?_o:Ld,this.isPropagationStopped=Ld,this}return Z(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=_o)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=_o)},persist:function(){},isPersistent:_o}),i}var Vr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ba=It(Vr),ii=Z({},Vr,{view:0,detail:0}),Cw=It(ii),Ua,qa,oi,ko=Z({},ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Va,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==oi&&(oi&&r.type==="mousemove"?(Ua=r.screenX-oi.screenX,qa=r.screenY-oi.screenY):qa=Ua=0,oi=r),Ua)},movementY:function(r){return"movementY"in r?r.movementY:qa}}),jd=It(ko),Aw=Z({},ko,{dataTransfer:0}),Lw=It(Aw),jw=Z({},ii,{relatedTarget:0}),Ha=It(jw),Iw=Z({},Vr,{animationName:0,elapsedTime:0,pseudoElement:0}),Ow=It(Iw),Mw=Z({},Vr,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),$w=It(Mw),Pw=Z({},Vr,{data:0}),Id=It(Pw),Rw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Dw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Fw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zw(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=Fw[r])?!!i[r]:!1}function Va(){return zw}var Bw=Z({},ii,{key:function(r){if(r.key){var i=Rw[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=So(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Dw[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Va,charCode:function(r){return r.type==="keypress"?So(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?So(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Uw=It(Bw),qw=Z({},ko,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Od=It(qw),Hw=Z({},ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Va}),Vw=It(Hw),Ww=Z({},Vr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Kw=It(Ww),Qw=Z({},ko,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Gw=It(Qw),Xw=[9,13,27,32],Wa=u&&"CompositionEvent"in window,li=null;u&&"documentMode"in document&&(li=document.documentMode);var Jw=u&&"TextEvent"in window&&!li,Md=u&&(!Wa||li&&8<li&&11>=li),$d=" ",Pd=!1;function Rd(r,i){switch(r){case"keyup":return Xw.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dd(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Wr=!1;function Yw(r,i){switch(r){case"compositionend":return Dd(i);case"keypress":return i.which!==32?null:(Pd=!0,$d);case"textInput":return r=i.data,r===$d&&Pd?null:r;default:return null}}function Zw(r,i){if(Wr)return r==="compositionend"||!Wa&&Rd(r,i)?(r=Ad(),xo=za=Bn=null,Wr=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Md&&i.locale!=="ko"?null:i.data;default:return null}}var e0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fd(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!e0[r.type]:i==="textarea"}function zd(r,i,a,f){od(f),i=Co(i,"onChange"),0<i.length&&(a=new Ba("onChange","change",null,a,f),r.push({event:a,listeners:i}))}var ai=null,ci=null;function t0(r){sh(r,0)}function bo(r){var i=Jr(r);if(Hs(i))return r}function n0(r,i){if(r==="change")return i}var Bd=!1;if(u){var Ka;if(u){var Qa="oninput"in document;if(!Qa){var Ud=document.createElement("div");Ud.setAttribute("oninput","return;"),Qa=typeof Ud.oninput=="function"}Ka=Qa}else Ka=!1;Bd=Ka&&(!document.documentMode||9<document.documentMode)}function qd(){ai&&(ai.detachEvent("onpropertychange",Hd),ci=ai=null)}function Hd(r){if(r.propertyName==="value"&&bo(ci)){var i=[];zd(i,ci,r,Na(r)),ud(t0,i)}}function r0(r,i,a){r==="focusin"?(qd(),ai=i,ci=a,ai.attachEvent("onpropertychange",Hd)):r==="focusout"&&qd()}function s0(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return bo(ci)}function i0(r,i){if(r==="click")return bo(i)}function o0(r,i){if(r==="input"||r==="change")return bo(i)}function l0(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var Zt=typeof Object.is=="function"?Object.is:l0;function ui(r,i){if(Zt(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var a=Object.keys(r),f=Object.keys(i);if(a.length!==f.length)return!1;for(f=0;f<a.length;f++){var p=a[f];if(!d.call(i,p)||!Zt(r[p],i[p]))return!1}return!0}function Vd(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Wd(r,i){var a=Vd(r);r=0;for(var f;a;){if(a.nodeType===3){if(f=r+a.textContent.length,r<=i&&f>=i)return{node:a,offset:i-r};r=f}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Vd(a)}}function Kd(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?Kd(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function Qd(){for(var r=window,i=ur();i instanceof r.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)r=i.contentWindow;else break;i=ur(r.document)}return i}function Ga(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}function a0(r){var i=Qd(),a=r.focusedElem,f=r.selectionRange;if(i!==a&&a&&a.ownerDocument&&Kd(a.ownerDocument.documentElement,a)){if(f!==null&&Ga(a)){if(i=f.start,r=f.end,r===void 0&&(r=i),"selectionStart"in a)a.selectionStart=i,a.selectionEnd=Math.min(r,a.value.length);else if(r=(i=a.ownerDocument||document)&&i.defaultView||window,r.getSelection){r=r.getSelection();var p=a.textContent.length,g=Math.min(f.start,p);f=f.end===void 0?g:Math.min(f.end,p),!r.extend&&g>f&&(p=f,f=g,g=p),p=Wd(a,g);var k=Wd(a,f);p&&k&&(r.rangeCount!==1||r.anchorNode!==p.node||r.anchorOffset!==p.offset||r.focusNode!==k.node||r.focusOffset!==k.offset)&&(i=i.createRange(),i.setStart(p.node,p.offset),r.removeAllRanges(),g>f?(r.addRange(i),r.extend(k.node,k.offset)):(i.setEnd(k.node,k.offset),r.addRange(i)))}}for(i=[],r=a;r=r.parentNode;)r.nodeType===1&&i.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<i.length;a++)r=i[a],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var c0=u&&"documentMode"in document&&11>=document.documentMode,Kr=null,Xa=null,fi=null,Ja=!1;function Gd(r,i,a){var f=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ja||Kr==null||Kr!==ur(f)||(f=Kr,"selectionStart"in f&&Ga(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),fi&&ui(fi,f)||(fi=f,f=Co(Xa,"onSelect"),0<f.length&&(i=new Ba("onSelect","select",null,i,a),r.push({event:i,listeners:f}),i.target=Kr)))}function Eo(r,i){var a={};return a[r.toLowerCase()]=i.toLowerCase(),a["Webkit"+r]="webkit"+i,a["Moz"+r]="moz"+i,a}var Qr={animationend:Eo("Animation","AnimationEnd"),animationiteration:Eo("Animation","AnimationIteration"),animationstart:Eo("Animation","AnimationStart"),transitionend:Eo("Transition","TransitionEnd")},Ya={},Xd={};u&&(Xd=document.createElement("div").style,"AnimationEvent"in window||(delete Qr.animationend.animation,delete Qr.animationiteration.animation,delete Qr.animationstart.animation),"TransitionEvent"in window||delete Qr.transitionend.transition);function To(r){if(Ya[r])return Ya[r];if(!Qr[r])return r;var i=Qr[r],a;for(a in i)if(i.hasOwnProperty(a)&&a in Xd)return Ya[r]=i[a];return r}var Jd=To("animationend"),Yd=To("animationiteration"),Zd=To("animationstart"),eh=To("transitionend"),th=new Map,nh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Un(r,i){th.set(r,i),l(i,[r])}for(var Za=0;Za<nh.length;Za++){var ec=nh[Za],u0=ec.toLowerCase(),f0=ec[0].toUpperCase()+ec.slice(1);Un(u0,"on"+f0)}Un(Jd,"onAnimationEnd"),Un(Yd,"onAnimationIteration"),Un(Zd,"onAnimationStart"),Un("dblclick","onDoubleClick"),Un("focusin","onFocus"),Un("focusout","onBlur"),Un(eh,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var di="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),d0=new Set("cancel close invalid load scroll toggle".split(" ").concat(di));function rh(r,i,a){var f=r.type||"unknown-event";r.currentTarget=a,uw(f,i,void 0,r),r.currentTarget=null}function sh(r,i){i=(i&4)!==0;for(var a=0;a<r.length;a++){var f=r[a],p=f.event;f=f.listeners;e:{var g=void 0;if(i)for(var k=f.length-1;0<=k;k--){var E=f[k],C=E.instance,$=E.currentTarget;if(E=E.listener,C!==g&&p.isPropagationStopped())break e;rh(p,E,$),g=C}else for(k=0;k<f.length;k++){if(E=f[k],C=E.instance,$=E.currentTarget,E=E.listener,C!==g&&p.isPropagationStopped())break e;rh(p,E,$),g=C}}}if(co)throw r=ja,co=!1,ja=null,r}function je(r,i){var a=i[ac];a===void 0&&(a=i[ac]=new Set);var f=r+"__bubble";a.has(f)||(ih(i,r,2,!1),a.add(f))}function tc(r,i,a){var f=0;i&&(f|=4),ih(a,r,f,i)}var No="_reactListening"+Math.random().toString(36).slice(2);function hi(r){if(!r[No]){r[No]=!0,s.forEach(function(a){a!=="selectionchange"&&(d0.has(a)||tc(a,!1,r),tc(a,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[No]||(i[No]=!0,tc("selectionchange",!1,i))}}function ih(r,i,a,f){switch(Cd(i)){case 1:var p=Tw;break;case 4:p=Nw;break;default:p=Da}a=p.bind(null,i,a,r),p=void 0,!La||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(p=!0),f?p!==void 0?r.addEventListener(i,a,{capture:!0,passive:p}):r.addEventListener(i,a,!0):p!==void 0?r.addEventListener(i,a,{passive:p}):r.addEventListener(i,a,!1)}function nc(r,i,a,f,p){var g=f;if((i&1)===0&&(i&2)===0&&f!==null)e:for(;;){if(f===null)return;var k=f.tag;if(k===3||k===4){var E=f.stateNode.containerInfo;if(E===p||E.nodeType===8&&E.parentNode===p)break;if(k===4)for(k=f.return;k!==null;){var C=k.tag;if((C===3||C===4)&&(C=k.stateNode.containerInfo,C===p||C.nodeType===8&&C.parentNode===p))return;k=k.return}for(;E!==null;){if(k=hr(E),k===null)return;if(C=k.tag,C===5||C===6){f=g=k;continue e}E=E.parentNode}}f=f.return}ud(function(){var $=g,V=Na(a),K=[];e:{var H=th.get(r);if(H!==void 0){var Y=Ba,te=r;switch(r){case"keypress":if(So(a)===0)break e;case"keydown":case"keyup":Y=Uw;break;case"focusin":te="focus",Y=Ha;break;case"focusout":te="blur",Y=Ha;break;case"beforeblur":case"afterblur":Y=Ha;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=jd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=Lw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=Vw;break;case Jd:case Yd:case Zd:Y=Ow;break;case eh:Y=Kw;break;case"scroll":Y=Cw;break;case"wheel":Y=Gw;break;case"copy":case"cut":case"paste":Y=$w;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Od}var ne=(i&4)!==0,He=!ne&&r==="scroll",j=ne?H!==null?H+"Capture":null:H;ne=[];for(var A=$,M;A!==null;){M=A;var G=M.stateNode;if(M.tag===5&&G!==null&&(M=G,j!==null&&(G=Gs(A,j),G!=null&&ne.push(pi(A,G,M)))),He)break;A=A.return}0<ne.length&&(H=new Y(H,te,null,a,V),K.push({event:H,listeners:ne}))}}if((i&7)===0){e:{if(H=r==="mouseover"||r==="pointerover",Y=r==="mouseout"||r==="pointerout",H&&a!==Ta&&(te=a.relatedTarget||a.fromElement)&&(hr(te)||te[wn]))break e;if((Y||H)&&(H=V.window===V?V:(H=V.ownerDocument)?H.defaultView||H.parentWindow:window,Y?(te=a.relatedTarget||a.toElement,Y=$,te=te?hr(te):null,te!==null&&(He=dr(te),te!==He||te.tag!==5&&te.tag!==6)&&(te=null)):(Y=null,te=$),Y!==te)){if(ne=jd,G="onMouseLeave",j="onMouseEnter",A="mouse",(r==="pointerout"||r==="pointerover")&&(ne=Od,G="onPointerLeave",j="onPointerEnter",A="pointer"),He=Y==null?H:Jr(Y),M=te==null?H:Jr(te),H=new ne(G,A+"leave",Y,a,V),H.target=He,H.relatedTarget=M,G=null,hr(V)===$&&(ne=new ne(j,A+"enter",te,a,V),ne.target=M,ne.relatedTarget=He,G=ne),He=G,Y&&te)t:{for(ne=Y,j=te,A=0,M=ne;M;M=Gr(M))A++;for(M=0,G=j;G;G=Gr(G))M++;for(;0<A-M;)ne=Gr(ne),A--;for(;0<M-A;)j=Gr(j),M--;for(;A--;){if(ne===j||j!==null&&ne===j.alternate)break t;ne=Gr(ne),j=Gr(j)}ne=null}else ne=null;Y!==null&&oh(K,H,Y,ne,!1),te!==null&&He!==null&&oh(K,He,te,ne,!0)}}e:{if(H=$?Jr($):window,Y=H.nodeName&&H.nodeName.toLowerCase(),Y==="select"||Y==="input"&&H.type==="file")var re=n0;else if(Fd(H))if(Bd)re=o0;else{re=s0;var ie=r0}else(Y=H.nodeName)&&Y.toLowerCase()==="input"&&(H.type==="checkbox"||H.type==="radio")&&(re=i0);if(re&&(re=re(r,$))){zd(K,re,a,V);break e}ie&&ie(r,H,$),r==="focusout"&&(ie=H._wrapperState)&&ie.controlled&&H.type==="number"&&Fr(H,"number",H.value)}switch(ie=$?Jr($):window,r){case"focusin":(Fd(ie)||ie.contentEditable==="true")&&(Kr=ie,Xa=$,fi=null);break;case"focusout":fi=Xa=Kr=null;break;case"mousedown":Ja=!0;break;case"contextmenu":case"mouseup":case"dragend":Ja=!1,Gd(K,a,V);break;case"selectionchange":if(c0)break;case"keydown":case"keyup":Gd(K,a,V)}var oe;if(Wa)e:{switch(r){case"compositionstart":var ce="onCompositionStart";break e;case"compositionend":ce="onCompositionEnd";break e;case"compositionupdate":ce="onCompositionUpdate";break e}ce=void 0}else Wr?Rd(r,a)&&(ce="onCompositionEnd"):r==="keydown"&&a.keyCode===229&&(ce="onCompositionStart");ce&&(Md&&a.locale!=="ko"&&(Wr||ce!=="onCompositionStart"?ce==="onCompositionEnd"&&Wr&&(oe=Ad()):(Bn=V,za="value"in Bn?Bn.value:Bn.textContent,Wr=!0)),ie=Co($,ce),0<ie.length&&(ce=new Id(ce,r,null,a,V),K.push({event:ce,listeners:ie}),oe?ce.data=oe:(oe=Dd(a),oe!==null&&(ce.data=oe)))),(oe=Jw?Yw(r,a):Zw(r,a))&&($=Co($,"onBeforeInput"),0<$.length&&(V=new Id("onBeforeInput","beforeinput",null,a,V),K.push({event:V,listeners:$}),V.data=oe))}sh(K,i)})}function pi(r,i,a){return{instance:r,listener:i,currentTarget:a}}function Co(r,i){for(var a=i+"Capture",f=[];r!==null;){var p=r,g=p.stateNode;p.tag===5&&g!==null&&(p=g,g=Gs(r,a),g!=null&&f.unshift(pi(r,g,p)),g=Gs(r,i),g!=null&&f.push(pi(r,g,p))),r=r.return}return f}function Gr(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function oh(r,i,a,f,p){for(var g=i._reactName,k=[];a!==null&&a!==f;){var E=a,C=E.alternate,$=E.stateNode;if(C!==null&&C===f)break;E.tag===5&&$!==null&&(E=$,p?(C=Gs(a,g),C!=null&&k.unshift(pi(a,C,E))):p||(C=Gs(a,g),C!=null&&k.push(pi(a,C,E)))),a=a.return}k.length!==0&&r.push({event:i,listeners:k})}var h0=/\r\n?/g,p0=/\u0000|\uFFFD/g;function lh(r){return(typeof r=="string"?r:""+r).replace(h0,`
39
39
  `).replace(p0,"")}function Ao(r,i,a){if(i=lh(i),lh(r)!==i&&a)throw Error(n(425))}function Lo(){}var rc=null,sc=null;function ic(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var oc=typeof setTimeout=="function"?setTimeout:void 0,m0=typeof clearTimeout=="function"?clearTimeout:void 0,ah=typeof Promise=="function"?Promise:void 0,g0=typeof queueMicrotask=="function"?queueMicrotask:typeof ah<"u"?function(r){return ah.resolve(null).then(r).catch(y0)}:oc;function y0(r){setTimeout(function(){throw r})}function lc(r,i){var a=i,f=0;do{var p=a.nextSibling;if(r.removeChild(a),p&&p.nodeType===8)if(a=p.data,a==="/$"){if(f===0){r.removeChild(p),si(i);return}f--}else a!=="$"&&a!=="$?"&&a!=="$!"||f++;a=p}while(a);si(i)}function qn(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return r}function ch(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var a=r.data;if(a==="$"||a==="$!"||a==="$?"){if(i===0)return r;i--}else a==="/$"&&i++}r=r.previousSibling}return null}var Xr=Math.random().toString(36).slice(2),fn="__reactFiber$"+Xr,mi="__reactProps$"+Xr,wn="__reactContainer$"+Xr,ac="__reactEvents$"+Xr,v0="__reactListeners$"+Xr,w0="__reactHandles$"+Xr;function hr(r){var i=r[fn];if(i)return i;for(var a=r.parentNode;a;){if(i=a[wn]||a[fn]){if(a=i.alternate,i.child!==null||a!==null&&a.child!==null)for(r=ch(r);r!==null;){if(a=r[fn])return a;r=ch(r)}return i}r=a,a=r.parentNode}return null}function gi(r){return r=r[fn]||r[wn],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Jr(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function jo(r){return r[mi]||null}var cc=[],Yr=-1;function Hn(r){return{current:r}}function Ie(r){0>Yr||(r.current=cc[Yr],cc[Yr]=null,Yr--)}function Ae(r,i){Yr++,cc[Yr]=r.current,r.current=i}var Vn={},st=Hn(Vn),xt=Hn(!1),pr=Vn;function Zr(r,i){var a=r.type.contextTypes;if(!a)return Vn;var f=r.stateNode;if(f&&f.__reactInternalMemoizedUnmaskedChildContext===i)return f.__reactInternalMemoizedMaskedChildContext;var p={},g;for(g in a)p[g]=i[g];return f&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=p),p}function St(r){return r=r.childContextTypes,r!=null}function Io(){Ie(xt),Ie(st)}function uh(r,i,a){if(st.current!==Vn)throw Error(n(168));Ae(st,i),Ae(xt,a)}function fh(r,i,a){var f=r.stateNode;if(i=i.childContextTypes,typeof f.getChildContext!="function")return a;f=f.getChildContext();for(var p in f)if(!(p in i))throw Error(n(108,pe(r)||"Unknown",p));return Z({},a,f)}function Oo(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Vn,pr=st.current,Ae(st,r),Ae(xt,xt.current),!0}function dh(r,i,a){var f=r.stateNode;if(!f)throw Error(n(169));a?(r=fh(r,i,pr),f.__reactInternalMemoizedMergedChildContext=r,Ie(xt),Ie(st),Ae(st,r)):Ie(xt),Ae(xt,a)}var xn=null,Mo=!1,uc=!1;function hh(r){xn===null?xn=[r]:xn.push(r)}function x0(r){Mo=!0,hh(r)}function Wn(){if(!uc&&xn!==null){uc=!0;var r=0,i=Ee;try{var a=xn;for(Ee=1;r<a.length;r++){var f=a[r];do f=f(!0);while(f!==null)}xn=null,Mo=!1}catch(p){throw xn!==null&&(xn=xn.slice(r+1)),md(Ia,Wn),p}finally{Ee=i,uc=!1}}return null}var es=[],ts=0,$o=null,Po=0,Ft=[],zt=0,mr=null,Sn=1,_n="";function gr(r,i){es[ts++]=Po,es[ts++]=$o,$o=r,Po=i}function ph(r,i,a){Ft[zt++]=Sn,Ft[zt++]=_n,Ft[zt++]=mr,mr=r;var f=Sn;r=_n;var p=32-Yt(f)-1;f&=~(1<<p),a+=1;var g=32-Yt(i)+p;if(30<g){var k=p-p%5;g=(f&(1<<k)-1).toString(32),f>>=k,p-=k,Sn=1<<32-Yt(i)+p|a<<p|f,_n=g+r}else Sn=1<<g|a<<p|f,_n=r}function fc(r){r.return!==null&&(gr(r,1),ph(r,1,0))}function dc(r){for(;r===$o;)$o=es[--ts],es[ts]=null,Po=es[--ts],es[ts]=null;for(;r===mr;)mr=Ft[--zt],Ft[zt]=null,_n=Ft[--zt],Ft[zt]=null,Sn=Ft[--zt],Ft[zt]=null}var Ot=null,Mt=null,Oe=!1,en=null;function mh(r,i){var a=Ht(5,null,null,0);a.elementType="DELETED",a.stateNode=i,a.return=r,i=r.deletions,i===null?(r.deletions=[a],r.flags|=16):i.push(a)}function gh(r,i){switch(r.tag){case 5:var a=r.type;return i=i.nodeType!==1||a.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(r.stateNode=i,Ot=r,Mt=qn(i.firstChild),!0):!1;case 6:return i=r.pendingProps===""||i.nodeType!==3?null:i,i!==null?(r.stateNode=i,Ot=r,Mt=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(a=mr!==null?{id:Sn,overflow:_n}:null,r.memoizedState={dehydrated:i,treeContext:a,retryLane:1073741824},a=Ht(18,null,null,0),a.stateNode=i,a.return=r,r.child=a,Ot=r,Mt=null,!0):!1;default:return!1}}function hc(r){return(r.mode&1)!==0&&(r.flags&128)===0}function pc(r){if(Oe){var i=Mt;if(i){var a=i;if(!gh(r,i)){if(hc(r))throw Error(n(418));i=qn(a.nextSibling);var f=Ot;i&&gh(r,i)?mh(f,a):(r.flags=r.flags&-4097|2,Oe=!1,Ot=r)}}else{if(hc(r))throw Error(n(418));r.flags=r.flags&-4097|2,Oe=!1,Ot=r}}}function yh(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Ot=r}function Ro(r){if(r!==Ot)return!1;if(!Oe)return yh(r),Oe=!0,!1;var i;if((i=r.tag!==3)&&!(i=r.tag!==5)&&(i=r.type,i=i!=="head"&&i!=="body"&&!ic(r.type,r.memoizedProps)),i&&(i=Mt)){if(hc(r))throw vh(),Error(n(418));for(;i;)mh(r,i),i=qn(i.nextSibling)}if(yh(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,i=0;r;){if(r.nodeType===8){var a=r.data;if(a==="/$"){if(i===0){Mt=qn(r.nextSibling);break e}i--}else a!=="$"&&a!=="$!"&&a!=="$?"||i++}r=r.nextSibling}Mt=null}}else Mt=Ot?qn(r.stateNode.nextSibling):null;return!0}function vh(){for(var r=Mt;r;)r=qn(r.nextSibling)}function ns(){Mt=Ot=null,Oe=!1}function mc(r){en===null?en=[r]:en.push(r)}var S0=R.ReactCurrentBatchConfig;function yi(r,i,a){if(r=a.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(n(309));var f=a.stateNode}if(!f)throw Error(n(147,r));var p=f,g=""+r;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===g?i.ref:(i=function(k){var E=p.refs;k===null?delete E[g]:E[g]=k},i._stringRef=g,i)}if(typeof r!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,r))}return r}function Do(r,i){throw r=Object.prototype.toString.call(i),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r))}function wh(r){var i=r._init;return i(r._payload)}function xh(r){function i(j,A){if(r){var M=j.deletions;M===null?(j.deletions=[A],j.flags|=16):M.push(A)}}function a(j,A){if(!r)return null;for(;A!==null;)i(j,A),A=A.sibling;return null}function f(j,A){for(j=new Map;A!==null;)A.key!==null?j.set(A.key,A):j.set(A.index,A),A=A.sibling;return j}function p(j,A){return j=er(j,A),j.index=0,j.sibling=null,j}function g(j,A,M){return j.index=M,r?(M=j.alternate,M!==null?(M=M.index,M<A?(j.flags|=2,A):M):(j.flags|=2,A)):(j.flags|=1048576,A)}function k(j){return r&&j.alternate===null&&(j.flags|=2),j}function E(j,A,M,G){return A===null||A.tag!==6?(A=ou(M,j.mode,G),A.return=j,A):(A=p(A,M),A.return=j,A)}function C(j,A,M,G){var re=M.type;return re===U?V(j,A,M.props.children,G,M.key):A!==null&&(A.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===Le&&wh(re)===A.type)?(G=p(A,M.props),G.ref=yi(j,A,M),G.return=j,G):(G=al(M.type,M.key,M.props,null,j.mode,G),G.ref=yi(j,A,M),G.return=j,G)}function $(j,A,M,G){return A===null||A.tag!==4||A.stateNode.containerInfo!==M.containerInfo||A.stateNode.implementation!==M.implementation?(A=lu(M,j.mode,G),A.return=j,A):(A=p(A,M.children||[]),A.return=j,A)}function V(j,A,M,G,re){return A===null||A.tag!==7?(A=br(M,j.mode,G,re),A.return=j,A):(A=p(A,M),A.return=j,A)}function K(j,A,M){if(typeof A=="string"&&A!==""||typeof A=="number")return A=ou(""+A,j.mode,M),A.return=j,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case D:return M=al(A.type,A.key,A.props,null,j.mode,M),M.ref=yi(j,null,A),M.return=j,M;case F:return A=lu(A,j.mode,M),A.return=j,A;case Le:var G=A._init;return K(j,G(A._payload),M)}if(vn(A)||se(A))return A=br(A,j.mode,M,null),A.return=j,A;Do(j,A)}return null}function H(j,A,M,G){var re=A!==null?A.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return re!==null?null:E(j,A,""+M,G);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case D:return M.key===re?C(j,A,M,G):null;case F:return M.key===re?$(j,A,M,G):null;case Le:return re=M._init,H(j,A,re(M._payload),G)}if(vn(M)||se(M))return re!==null?null:V(j,A,M,G,null);Do(j,M)}return null}function Y(j,A,M,G,re){if(typeof G=="string"&&G!==""||typeof G=="number")return j=j.get(M)||null,E(A,j,""+G,re);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case D:return j=j.get(G.key===null?M:G.key)||null,C(A,j,G,re);case F:return j=j.get(G.key===null?M:G.key)||null,$(A,j,G,re);case Le:var ie=G._init;return Y(j,A,M,ie(G._payload),re)}if(vn(G)||se(G))return j=j.get(M)||null,V(A,j,G,re,null);Do(A,G)}return null}function te(j,A,M,G){for(var re=null,ie=null,oe=A,ce=A=0,Ze=null;oe!==null&&ce<M.length;ce++){oe.index>ce?(Ze=oe,oe=null):Ze=oe.sibling;var _e=H(j,oe,M[ce],G);if(_e===null){oe===null&&(oe=Ze);break}r&&oe&&_e.alternate===null&&i(j,oe),A=g(_e,A,ce),ie===null?re=_e:ie.sibling=_e,ie=_e,oe=Ze}if(ce===M.length)return a(j,oe),Oe&&gr(j,ce),re;if(oe===null){for(;ce<M.length;ce++)oe=K(j,M[ce],G),oe!==null&&(A=g(oe,A,ce),ie===null?re=oe:ie.sibling=oe,ie=oe);return Oe&&gr(j,ce),re}for(oe=f(j,oe);ce<M.length;ce++)Ze=Y(oe,j,ce,M[ce],G),Ze!==null&&(r&&Ze.alternate!==null&&oe.delete(Ze.key===null?ce:Ze.key),A=g(Ze,A,ce),ie===null?re=Ze:ie.sibling=Ze,ie=Ze);return r&&oe.forEach(function(tr){return i(j,tr)}),Oe&&gr(j,ce),re}function ne(j,A,M,G){var re=se(M);if(typeof re!="function")throw Error(n(150));if(M=re.call(M),M==null)throw Error(n(151));for(var ie=re=null,oe=A,ce=A=0,Ze=null,_e=M.next();oe!==null&&!_e.done;ce++,_e=M.next()){oe.index>ce?(Ze=oe,oe=null):Ze=oe.sibling;var tr=H(j,oe,_e.value,G);if(tr===null){oe===null&&(oe=Ze);break}r&&oe&&tr.alternate===null&&i(j,oe),A=g(tr,A,ce),ie===null?re=tr:ie.sibling=tr,ie=tr,oe=Ze}if(_e.done)return a(j,oe),Oe&&gr(j,ce),re;if(oe===null){for(;!_e.done;ce++,_e=M.next())_e=K(j,_e.value,G),_e!==null&&(A=g(_e,A,ce),ie===null?re=_e:ie.sibling=_e,ie=_e);return Oe&&gr(j,ce),re}for(oe=f(j,oe);!_e.done;ce++,_e=M.next())_e=Y(oe,j,ce,_e.value,G),_e!==null&&(r&&_e.alternate!==null&&oe.delete(_e.key===null?ce:_e.key),A=g(_e,A,ce),ie===null?re=_e:ie.sibling=_e,ie=_e);return r&&oe.forEach(function(ex){return i(j,ex)}),Oe&&gr(j,ce),re}function He(j,A,M,G){if(typeof M=="object"&&M!==null&&M.type===U&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case D:e:{for(var re=M.key,ie=A;ie!==null;){if(ie.key===re){if(re=M.type,re===U){if(ie.tag===7){a(j,ie.sibling),A=p(ie,M.props.children),A.return=j,j=A;break e}}else if(ie.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===Le&&wh(re)===ie.type){a(j,ie.sibling),A=p(ie,M.props),A.ref=yi(j,ie,M),A.return=j,j=A;break e}a(j,ie);break}else i(j,ie);ie=ie.sibling}M.type===U?(A=br(M.props.children,j.mode,G,M.key),A.return=j,j=A):(G=al(M.type,M.key,M.props,null,j.mode,G),G.ref=yi(j,A,M),G.return=j,j=G)}return k(j);case F:e:{for(ie=M.key;A!==null;){if(A.key===ie)if(A.tag===4&&A.stateNode.containerInfo===M.containerInfo&&A.stateNode.implementation===M.implementation){a(j,A.sibling),A=p(A,M.children||[]),A.return=j,j=A;break e}else{a(j,A);break}else i(j,A);A=A.sibling}A=lu(M,j.mode,G),A.return=j,j=A}return k(j);case Le:return ie=M._init,He(j,A,ie(M._payload),G)}if(vn(M))return te(j,A,M,G);if(se(M))return ne(j,A,M,G);Do(j,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,A!==null&&A.tag===6?(a(j,A.sibling),A=p(A,M),A.return=j,j=A):(a(j,A),A=ou(M,j.mode,G),A.return=j,j=A),k(j)):a(j,A)}return He}var rs=xh(!0),Sh=xh(!1),Fo=Hn(null),zo=null,ss=null,gc=null;function yc(){gc=ss=zo=null}function vc(r){var i=Fo.current;Ie(Fo),r._currentValue=i}function wc(r,i,a){for(;r!==null;){var f=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,f!==null&&(f.childLanes|=i)):f!==null&&(f.childLanes&i)!==i&&(f.childLanes|=i),r===a)break;r=r.return}}function is(r,i){zo=r,gc=ss=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&i)!==0&&(_t=!0),r.firstContext=null)}function Bt(r){var i=r._currentValue;if(gc!==r)if(r={context:r,memoizedValue:i,next:null},ss===null){if(zo===null)throw Error(n(308));ss=r,zo.dependencies={lanes:0,firstContext:r}}else ss=ss.next=r;return i}var yr=null;function xc(r){yr===null?yr=[r]:yr.push(r)}function _h(r,i,a,f){var p=i.interleaved;return p===null?(a.next=a,xc(i)):(a.next=p.next,p.next=a),i.interleaved=a,kn(r,f)}function kn(r,i){r.lanes|=i;var a=r.alternate;for(a!==null&&(a.lanes|=i),a=r,r=r.return;r!==null;)r.childLanes|=i,a=r.alternate,a!==null&&(a.childLanes|=i),a=r,r=r.return;return a.tag===3?a.stateNode:null}var Kn=!1;function Sc(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function kh(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function bn(r,i){return{eventTime:r,lane:i,tag:0,payload:null,callback:null,next:null}}function Qn(r,i,a){var f=r.updateQueue;if(f===null)return null;if(f=f.shared,(we&2)!==0){var p=f.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),f.pending=i,kn(r,a)}return p=f.interleaved,p===null?(i.next=i,xc(f)):(i.next=p.next,p.next=i),f.interleaved=i,kn(r,a)}function Bo(r,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194240)!==0)){var f=i.lanes;f&=r.pendingLanes,a|=f,i.lanes=a,$a(r,a)}}function bh(r,i){var a=r.updateQueue,f=r.alternate;if(f!==null&&(f=f.updateQueue,a===f)){var p=null,g=null;if(a=a.firstBaseUpdate,a!==null){do{var k={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};g===null?p=g=k:g=g.next=k,a=a.next}while(a!==null);g===null?p=g=i:g=g.next=i}else p=g=i;a={baseState:f.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:f.shared,effects:f.effects},r.updateQueue=a;return}r=a.lastBaseUpdate,r===null?a.firstBaseUpdate=i:r.next=i,a.lastBaseUpdate=i}function Uo(r,i,a,f){var p=r.updateQueue;Kn=!1;var g=p.firstBaseUpdate,k=p.lastBaseUpdate,E=p.shared.pending;if(E!==null){p.shared.pending=null;var C=E,$=C.next;C.next=null,k===null?g=$:k.next=$,k=C;var V=r.alternate;V!==null&&(V=V.updateQueue,E=V.lastBaseUpdate,E!==k&&(E===null?V.firstBaseUpdate=$:E.next=$,V.lastBaseUpdate=C))}if(g!==null){var K=p.baseState;k=0,V=$=C=null,E=g;do{var H=E.lane,Y=E.eventTime;if((f&H)===H){V!==null&&(V=V.next={eventTime:Y,lane:0,tag:E.tag,payload:E.payload,callback:E.callback,next:null});e:{var te=r,ne=E;switch(H=i,Y=a,ne.tag){case 1:if(te=ne.payload,typeof te=="function"){K=te.call(Y,K,H);break e}K=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=ne.payload,H=typeof te=="function"?te.call(Y,K,H):te,H==null)break e;K=Z({},K,H);break e;case 2:Kn=!0}}E.callback!==null&&E.lane!==0&&(r.flags|=64,H=p.effects,H===null?p.effects=[E]:H.push(E))}else Y={eventTime:Y,lane:H,tag:E.tag,payload:E.payload,callback:E.callback,next:null},V===null?($=V=Y,C=K):V=V.next=Y,k|=H;if(E=E.next,E===null){if(E=p.shared.pending,E===null)break;H=E,E=H.next,H.next=null,p.lastBaseUpdate=H,p.shared.pending=null}}while(!0);if(V===null&&(C=K),p.baseState=C,p.firstBaseUpdate=$,p.lastBaseUpdate=V,i=p.shared.interleaved,i!==null){p=i;do k|=p.lane,p=p.next;while(p!==i)}else g===null&&(p.shared.lanes=0);xr|=k,r.lanes=k,r.memoizedState=K}}function Eh(r,i,a){if(r=i.effects,i.effects=null,r!==null)for(i=0;i<r.length;i++){var f=r[i],p=f.callback;if(p!==null){if(f.callback=null,f=a,typeof p!="function")throw Error(n(191,p));p.call(f)}}}var vi={},dn=Hn(vi),wi=Hn(vi),xi=Hn(vi);function vr(r){if(r===vi)throw Error(n(174));return r}function _c(r,i){switch(Ae(xi,i),Ae(wi,r),Ae(dn,vi),r=i.nodeType,r){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:Ks(null,"");break;default:r=r===8?i.parentNode:i,i=r.namespaceURI||null,r=r.tagName,i=Ks(i,r)}Ie(dn),Ae(dn,i)}function os(){Ie(dn),Ie(wi),Ie(xi)}function Th(r){vr(xi.current);var i=vr(dn.current),a=Ks(i,r.type);i!==a&&(Ae(wi,r),Ae(dn,a))}function kc(r){wi.current===r&&(Ie(dn),Ie(wi))}var Pe=Hn(0);function qo(r){for(var i=r;i!==null;){if(i.tag===13){var a=i.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var bc=[];function Ec(){for(var r=0;r<bc.length;r++)bc[r]._workInProgressVersionPrimary=null;bc.length=0}var Ho=R.ReactCurrentDispatcher,Tc=R.ReactCurrentBatchConfig,wr=0,Re=null,Qe=null,Je=null,Vo=!1,Si=!1,_i=0,_0=0;function it(){throw Error(n(321))}function Nc(r,i){if(i===null)return!1;for(var a=0;a<i.length&&a<r.length;a++)if(!Zt(r[a],i[a]))return!1;return!0}function Cc(r,i,a,f,p,g){if(wr=g,Re=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,Ho.current=r===null||r.memoizedState===null?T0:N0,r=a(f,p),Si){g=0;do{if(Si=!1,_i=0,25<=g)throw Error(n(301));g+=1,Je=Qe=null,i.updateQueue=null,Ho.current=C0,r=a(f,p)}while(Si)}if(Ho.current=Qo,i=Qe!==null&&Qe.next!==null,wr=0,Je=Qe=Re=null,Vo=!1,i)throw Error(n(300));return r}function Ac(){var r=_i!==0;return _i=0,r}function hn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?Re.memoizedState=Je=r:Je=Je.next=r,Je}function Ut(){if(Qe===null){var r=Re.alternate;r=r!==null?r.memoizedState:null}else r=Qe.next;var i=Je===null?Re.memoizedState:Je.next;if(i!==null)Je=i,Qe=r;else{if(r===null)throw Error(n(310));Qe=r,r={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},Je===null?Re.memoizedState=Je=r:Je=Je.next=r}return Je}function ki(r,i){return typeof i=="function"?i(r):i}function Lc(r){var i=Ut(),a=i.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var f=Qe,p=f.baseQueue,g=a.pending;if(g!==null){if(p!==null){var k=p.next;p.next=g.next,g.next=k}f.baseQueue=p=g,a.pending=null}if(p!==null){g=p.next,f=f.baseState;var E=k=null,C=null,$=g;do{var V=$.lane;if((wr&V)===V)C!==null&&(C=C.next={lane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),f=$.hasEagerState?$.eagerState:r(f,$.action);else{var K={lane:V,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null};C===null?(E=C=K,k=f):C=C.next=K,Re.lanes|=V,xr|=V}$=$.next}while($!==null&&$!==g);C===null?k=f:C.next=E,Zt(f,i.memoizedState)||(_t=!0),i.memoizedState=f,i.baseState=k,i.baseQueue=C,a.lastRenderedState=f}if(r=a.interleaved,r!==null){p=r;do g=p.lane,Re.lanes|=g,xr|=g,p=p.next;while(p!==r)}else p===null&&(a.lanes=0);return[i.memoizedState,a.dispatch]}function jc(r){var i=Ut(),a=i.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var f=a.dispatch,p=a.pending,g=i.memoizedState;if(p!==null){a.pending=null;var k=p=p.next;do g=r(g,k.action),k=k.next;while(k!==p);Zt(g,i.memoizedState)||(_t=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),a.lastRenderedState=g}return[g,f]}function Nh(){}function Ch(r,i){var a=Re,f=Ut(),p=i(),g=!Zt(f.memoizedState,p);if(g&&(f.memoizedState=p,_t=!0),f=f.queue,Ic(jh.bind(null,a,f,r),[r]),f.getSnapshot!==i||g||Je!==null&&Je.memoizedState.tag&1){if(a.flags|=2048,bi(9,Lh.bind(null,a,f,p,i),void 0,null),Ye===null)throw Error(n(349));(wr&30)!==0||Ah(a,i,p)}return p}function Ah(r,i,a){r.flags|=16384,r={getSnapshot:i,value:a},i=Re.updateQueue,i===null?(i={lastEffect:null,stores:null},Re.updateQueue=i,i.stores=[r]):(a=i.stores,a===null?i.stores=[r]:a.push(r))}function Lh(r,i,a,f){i.value=a,i.getSnapshot=f,Ih(i)&&Oh(r)}function jh(r,i,a){return a(function(){Ih(i)&&Oh(r)})}function Ih(r){var i=r.getSnapshot;r=r.value;try{var a=i();return!Zt(r,a)}catch{return!0}}function Oh(r){var i=kn(r,1);i!==null&&sn(i,r,1,-1)}function Mh(r){var i=hn();return typeof r=="function"&&(r=r()),i.memoizedState=i.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:r},i.queue=r,r=r.dispatch=E0.bind(null,Re,r),[i.memoizedState,r]}function bi(r,i,a,f){return r={tag:r,create:i,destroy:a,deps:f,next:null},i=Re.updateQueue,i===null?(i={lastEffect:null,stores:null},Re.updateQueue=i,i.lastEffect=r.next=r):(a=i.lastEffect,a===null?i.lastEffect=r.next=r:(f=a.next,a.next=r,r.next=f,i.lastEffect=r)),r}function $h(){return Ut().memoizedState}function Wo(r,i,a,f){var p=hn();Re.flags|=r,p.memoizedState=bi(1|i,a,void 0,f===void 0?null:f)}function Ko(r,i,a,f){var p=Ut();f=f===void 0?null:f;var g=void 0;if(Qe!==null){var k=Qe.memoizedState;if(g=k.destroy,f!==null&&Nc(f,k.deps)){p.memoizedState=bi(i,a,g,f);return}}Re.flags|=r,p.memoizedState=bi(1|i,a,g,f)}function Ph(r,i){return Wo(8390656,8,r,i)}function Ic(r,i){return Ko(2048,8,r,i)}function Rh(r,i){return Ko(4,2,r,i)}function Dh(r,i){return Ko(4,4,r,i)}function Fh(r,i){if(typeof i=="function")return r=r(),i(r),function(){i(null)};if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function zh(r,i,a){return a=a!=null?a.concat([r]):null,Ko(4,4,Fh.bind(null,i,r),a)}function Oc(){}function Bh(r,i){var a=Ut();i=i===void 0?null:i;var f=a.memoizedState;return f!==null&&i!==null&&Nc(i,f[1])?f[0]:(a.memoizedState=[r,i],r)}function Uh(r,i){var a=Ut();i=i===void 0?null:i;var f=a.memoizedState;return f!==null&&i!==null&&Nc(i,f[1])?f[0]:(r=r(),a.memoizedState=[r,i],r)}function qh(r,i,a){return(wr&21)===0?(r.baseState&&(r.baseState=!1,_t=!0),r.memoizedState=a):(Zt(a,i)||(a=wd(),Re.lanes|=a,xr|=a,r.baseState=!0),i)}function k0(r,i){var a=Ee;Ee=a!==0&&4>a?a:4,r(!0);var f=Tc.transition;Tc.transition={};try{r(!1),i()}finally{Ee=a,Tc.transition=f}}function Hh(){return Ut().memoizedState}function b0(r,i,a){var f=Yn(r);if(a={lane:f,action:a,hasEagerState:!1,eagerState:null,next:null},Vh(r))Wh(i,a);else if(a=_h(r,i,a,f),a!==null){var p=ht();sn(a,r,f,p),Kh(a,i,f)}}function E0(r,i,a){var f=Yn(r),p={lane:f,action:a,hasEagerState:!1,eagerState:null,next:null};if(Vh(r))Wh(i,p);else{var g=r.alternate;if(r.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var k=i.lastRenderedState,E=g(k,a);if(p.hasEagerState=!0,p.eagerState=E,Zt(E,k)){var C=i.interleaved;C===null?(p.next=p,xc(i)):(p.next=C.next,C.next=p),i.interleaved=p;return}}catch{}finally{}a=_h(r,i,p,f),a!==null&&(p=ht(),sn(a,r,f,p),Kh(a,i,f))}}function Vh(r){var i=r.alternate;return r===Re||i!==null&&i===Re}function Wh(r,i){Si=Vo=!0;var a=r.pending;a===null?i.next=i:(i.next=a.next,a.next=i),r.pending=i}function Kh(r,i,a){if((a&4194240)!==0){var f=i.lanes;f&=r.pendingLanes,a|=f,i.lanes=a,$a(r,a)}}var Qo={readContext:Bt,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},T0={readContext:Bt,useCallback:function(r,i){return hn().memoizedState=[r,i===void 0?null:i],r},useContext:Bt,useEffect:Ph,useImperativeHandle:function(r,i,a){return a=a!=null?a.concat([r]):null,Wo(4194308,4,Fh.bind(null,i,r),a)},useLayoutEffect:function(r,i){return Wo(4194308,4,r,i)},useInsertionEffect:function(r,i){return Wo(4,2,r,i)},useMemo:function(r,i){var a=hn();return i=i===void 0?null:i,r=r(),a.memoizedState=[r,i],r},useReducer:function(r,i,a){var f=hn();return i=a!==void 0?a(i):i,f.memoizedState=f.baseState=i,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:i},f.queue=r,r=r.dispatch=b0.bind(null,Re,r),[f.memoizedState,r]},useRef:function(r){var i=hn();return r={current:r},i.memoizedState=r},useState:Mh,useDebugValue:Oc,useDeferredValue:function(r){return hn().memoizedState=r},useTransition:function(){var r=Mh(!1),i=r[0];return r=k0.bind(null,r[1]),hn().memoizedState=r,[i,r]},useMutableSource:function(){},useSyncExternalStore:function(r,i,a){var f=Re,p=hn();if(Oe){if(a===void 0)throw Error(n(407));a=a()}else{if(a=i(),Ye===null)throw Error(n(349));(wr&30)!==0||Ah(f,i,a)}p.memoizedState=a;var g={value:a,getSnapshot:i};return p.queue=g,Ph(jh.bind(null,f,g,r),[r]),f.flags|=2048,bi(9,Lh.bind(null,f,g,a,i),void 0,null),a},useId:function(){var r=hn(),i=Ye.identifierPrefix;if(Oe){var a=_n,f=Sn;a=(f&~(1<<32-Yt(f)-1)).toString(32)+a,i=":"+i+"R"+a,a=_i++,0<a&&(i+="H"+a.toString(32)),i+=":"}else a=_0++,i=":"+i+"r"+a.toString(32)+":";return r.memoizedState=i},unstable_isNewReconciler:!1},N0={readContext:Bt,useCallback:Bh,useContext:Bt,useEffect:Ic,useImperativeHandle:zh,useInsertionEffect:Rh,useLayoutEffect:Dh,useMemo:Uh,useReducer:Lc,useRef:$h,useState:function(){return Lc(ki)},useDebugValue:Oc,useDeferredValue:function(r){var i=Ut();return qh(i,Qe.memoizedState,r)},useTransition:function(){var r=Lc(ki)[0],i=Ut().memoizedState;return[r,i]},useMutableSource:Nh,useSyncExternalStore:Ch,useId:Hh,unstable_isNewReconciler:!1},C0={readContext:Bt,useCallback:Bh,useContext:Bt,useEffect:Ic,useImperativeHandle:zh,useInsertionEffect:Rh,useLayoutEffect:Dh,useMemo:Uh,useReducer:jc,useRef:$h,useState:function(){return jc(ki)},useDebugValue:Oc,useDeferredValue:function(r){var i=Ut();return Qe===null?i.memoizedState=r:qh(i,Qe.memoizedState,r)},useTransition:function(){var r=jc(ki)[0],i=Ut().memoizedState;return[r,i]},useMutableSource:Nh,useSyncExternalStore:Ch,useId:Hh,unstable_isNewReconciler:!1};function tn(r,i){if(r&&r.defaultProps){i=Z({},i),r=r.defaultProps;for(var a in r)i[a]===void 0&&(i[a]=r[a]);return i}return i}function Mc(r,i,a,f){i=r.memoizedState,a=a(f,i),a=a==null?i:Z({},i,a),r.memoizedState=a,r.lanes===0&&(r.updateQueue.baseState=a)}var Go={isMounted:function(r){return(r=r._reactInternals)?dr(r)===r:!1},enqueueSetState:function(r,i,a){r=r._reactInternals;var f=ht(),p=Yn(r),g=bn(f,p);g.payload=i,a!=null&&(g.callback=a),i=Qn(r,g,p),i!==null&&(sn(i,r,p,f),Bo(i,r,p))},enqueueReplaceState:function(r,i,a){r=r._reactInternals;var f=ht(),p=Yn(r),g=bn(f,p);g.tag=1,g.payload=i,a!=null&&(g.callback=a),i=Qn(r,g,p),i!==null&&(sn(i,r,p,f),Bo(i,r,p))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var a=ht(),f=Yn(r),p=bn(a,f);p.tag=2,i!=null&&(p.callback=i),i=Qn(r,p,f),i!==null&&(sn(i,r,f,a),Bo(i,r,f))}};function Qh(r,i,a,f,p,g,k){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(f,g,k):i.prototype&&i.prototype.isPureReactComponent?!ui(a,f)||!ui(p,g):!0}function Gh(r,i,a){var f=!1,p=Vn,g=i.contextType;return typeof g=="object"&&g!==null?g=Bt(g):(p=St(i)?pr:st.current,f=i.contextTypes,g=(f=f!=null)?Zr(r,p):Vn),i=new i(a,g),r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Go,r.stateNode=i,i._reactInternals=r,f&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=p,r.__reactInternalMemoizedMaskedChildContext=g),i}function Xh(r,i,a,f){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(a,f),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(a,f),i.state!==r&&Go.enqueueReplaceState(i,i.state,null)}function $c(r,i,a,f){var p=r.stateNode;p.props=a,p.state=r.memoizedState,p.refs={},Sc(r);var g=i.contextType;typeof g=="object"&&g!==null?p.context=Bt(g):(g=St(i)?pr:st.current,p.context=Zr(r,g)),p.state=r.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(Mc(r,i,g,a),p.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(i=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),i!==p.state&&Go.enqueueReplaceState(p,p.state,null),Uo(r,a,p,f),p.state=r.memoizedState),typeof p.componentDidMount=="function"&&(r.flags|=4194308)}function ls(r,i){try{var a="",f=i;do a+=ve(f),f=f.return;while(f);var p=a}catch(g){p=`
40
40
  Error generating stack: `+g.message+`
41
- `+g.stack}return{value:r,source:i,stack:p,digest:null}}function Pc(r,i,a){return{value:r,source:null,stack:a??null,digest:i??null}}function Rc(r,i){try{console.error(i.value)}catch(a){setTimeout(function(){throw a})}}var A0=typeof WeakMap=="function"?WeakMap:Map;function Jh(r,i,a){a=bn(-1,a),a.tag=3,a.payload={element:null};var f=i.value;return a.callback=function(){nl||(nl=!0,Yc=f),Rc(r,i)},a}function Yh(r,i,a){a=bn(-1,a),a.tag=3;var f=r.type.getDerivedStateFromError;if(typeof f=="function"){var p=i.value;a.payload=function(){return f(p)},a.callback=function(){Rc(r,i)}}var g=r.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(a.callback=function(){Rc(r,i),typeof f!="function"&&(Xn===null?Xn=new Set([this]):Xn.add(this));var k=i.stack;this.componentDidCatch(i.value,{componentStack:k!==null?k:""})}),a}function Zh(r,i,a){var f=r.pingCache;if(f===null){f=r.pingCache=new A0;var p=new Set;f.set(i,p)}else p=f.get(i),p===void 0&&(p=new Set,f.set(i,p));p.has(a)||(p.add(a),r=q0.bind(null,r,i,a),i.then(r,r))}function ep(r){do{var i;if((i=r.tag===13)&&(i=r.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return r;r=r.return}while(r!==null);return null}function tp(r,i,a,f,p){return(r.mode&1)===0?(r===i?r.flags|=65536:(r.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(i=bn(-1,1),i.tag=2,Qn(a,i,1))),a.lanes|=1),r):(r.flags|=65536,r.lanes=p,r)}var L0=R.ReactCurrentOwner,_t=!1;function dt(r,i,a,f){i.child=r===null?Sh(i,null,a,f):rs(i,r.child,a,f)}function np(r,i,a,f,p){a=a.render;var g=i.ref;return is(i,p),f=Cc(r,i,a,f,g,p),a=Ac(),r!==null&&!_t?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~p,En(r,i,p)):(Oe&&a&&fc(i),i.flags|=1,dt(r,i,f,p),i.child)}function rp(r,i,a,f,p){if(r===null){var g=a.type;return typeof g=="function"&&!iu(g)&&g.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(i.tag=15,i.type=g,sp(r,i,g,f,p)):(r=al(a.type,null,f,i,i.mode,p),r.ref=i.ref,r.return=i,i.child=r)}if(g=r.child,(r.lanes&p)===0){var k=g.memoizedProps;if(a=a.compare,a=a!==null?a:ui,a(k,f)&&r.ref===i.ref)return En(r,i,p)}return i.flags|=1,r=er(g,f),r.ref=i.ref,r.return=i,i.child=r}function sp(r,i,a,f,p){if(r!==null){var g=r.memoizedProps;if(ui(g,f)&&r.ref===i.ref)if(_t=!1,i.pendingProps=f=g,(r.lanes&p)!==0)(r.flags&131072)!==0&&(_t=!0);else return i.lanes=r.lanes,En(r,i,p)}return Dc(r,i,a,f,p)}function ip(r,i,a){var f=i.pendingProps,p=f.children,g=r!==null?r.memoizedState:null;if(f.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(cs,$t),$t|=a;else{if((a&1073741824)===0)return r=g!==null?g.baseLanes|a:a,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:r,cachePool:null,transitions:null},i.updateQueue=null,Ae(cs,$t),$t|=r,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},f=g!==null?g.baseLanes:a,Ae(cs,$t),$t|=f}else g!==null?(f=g.baseLanes|a,i.memoizedState=null):f=a,Ae(cs,$t),$t|=f;return dt(r,i,p,a),i.child}function op(r,i){var a=i.ref;(r===null&&a!==null||r!==null&&r.ref!==a)&&(i.flags|=512,i.flags|=2097152)}function Dc(r,i,a,f,p){var g=St(a)?pr:st.current;return g=Zr(i,g),is(i,p),a=Cc(r,i,a,f,g,p),f=Ac(),r!==null&&!_t?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~p,En(r,i,p)):(Oe&&f&&fc(i),i.flags|=1,dt(r,i,a,p),i.child)}function lp(r,i,a,f,p){if(St(a)){var g=!0;Oo(i)}else g=!1;if(is(i,p),i.stateNode===null)Jo(r,i),Gh(i,a,f),$c(i,a,f,p),f=!0;else if(r===null){var k=i.stateNode,E=i.memoizedProps;k.props=E;var C=k.context,$=a.contextType;typeof $=="object"&&$!==null?$=Bt($):($=St(a)?pr:st.current,$=Zr(i,$));var V=a.getDerivedStateFromProps,K=typeof V=="function"||typeof k.getSnapshotBeforeUpdate=="function";K||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(E!==f||C!==$)&&Xh(i,k,f,$),Kn=!1;var H=i.memoizedState;k.state=H,Uo(i,f,k,p),C=i.memoizedState,E!==f||H!==C||xt.current||Kn?(typeof V=="function"&&(Mc(i,a,V,f),C=i.memoizedState),(E=Kn||Qh(i,a,E,f,H,C,$))?(K||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(i.flags|=4194308)):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=f,i.memoizedState=C),k.props=f,k.state=C,k.context=$,f=E):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),f=!1)}else{k=i.stateNode,kh(r,i),E=i.memoizedProps,$=i.type===i.elementType?E:tn(i.type,E),k.props=$,K=i.pendingProps,H=k.context,C=a.contextType,typeof C=="object"&&C!==null?C=Bt(C):(C=St(a)?pr:st.current,C=Zr(i,C));var Y=a.getDerivedStateFromProps;(V=typeof Y=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(E!==K||H!==C)&&Xh(i,k,f,C),Kn=!1,H=i.memoizedState,k.state=H,Uo(i,f,k,p);var te=i.memoizedState;E!==K||H!==te||xt.current||Kn?(typeof Y=="function"&&(Mc(i,a,Y,f),te=i.memoizedState),($=Kn||Qh(i,a,$,f,H,te,C)||!1)?(V||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(f,te,C),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(f,te,C)),typeof k.componentDidUpdate=="function"&&(i.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof k.componentDidUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=1024),i.memoizedProps=f,i.memoizedState=te),k.props=f,k.state=te,k.context=C,f=$):(typeof k.componentDidUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=1024),f=!1)}return Fc(r,i,a,f,g,p)}function Fc(r,i,a,f,p,g){op(r,i);var k=(i.flags&128)!==0;if(!f&&!k)return p&&dh(i,a,!1),En(r,i,g);f=i.stateNode,L0.current=i;var E=k&&typeof a.getDerivedStateFromError!="function"?null:f.render();return i.flags|=1,r!==null&&k?(i.child=rs(i,r.child,null,g),i.child=rs(i,null,E,g)):dt(r,i,E,g),i.memoizedState=f.state,p&&dh(i,a,!0),i.child}function ap(r){var i=r.stateNode;i.pendingContext?uh(r,i.pendingContext,i.pendingContext!==i.context):i.context&&uh(r,i.context,!1),_c(r,i.containerInfo)}function cp(r,i,a,f,p){return ns(),mc(p),i.flags|=256,dt(r,i,a,f),i.child}var zc={dehydrated:null,treeContext:null,retryLane:0};function Bc(r){return{baseLanes:r,cachePool:null,transitions:null}}function up(r,i,a){var f=i.pendingProps,p=Pe.current,g=!1,k=(i.flags&128)!==0,E;if((E=k)||(E=r!==null&&r.memoizedState===null?!1:(p&2)!==0),E?(g=!0,i.flags&=-129):(r===null||r.memoizedState!==null)&&(p|=1),Ae(Pe,p&1),r===null)return pc(i),r=i.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((i.mode&1)===0?i.lanes=1:r.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(k=f.children,r=f.fallback,g?(f=i.mode,g=i.child,k={mode:"hidden",children:k},(f&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=k):g=cl(k,f,0,null),r=br(r,f,a,null),g.return=i,r.return=i,g.sibling=r,i.child=g,i.child.memoizedState=Bc(a),i.memoizedState=zc,r):Uc(i,k));if(p=r.memoizedState,p!==null&&(E=p.dehydrated,E!==null))return j0(r,i,k,f,E,p,a);if(g){g=f.fallback,k=i.mode,p=r.child,E=p.sibling;var C={mode:"hidden",children:f.children};return(k&1)===0&&i.child!==p?(f=i.child,f.childLanes=0,f.pendingProps=C,i.deletions=null):(f=er(p,C),f.subtreeFlags=p.subtreeFlags&14680064),E!==null?g=er(E,g):(g=br(g,k,a,null),g.flags|=2),g.return=i,f.return=i,f.sibling=g,i.child=f,f=g,g=i.child,k=r.child.memoizedState,k=k===null?Bc(a):{baseLanes:k.baseLanes|a,cachePool:null,transitions:k.transitions},g.memoizedState=k,g.childLanes=r.childLanes&~a,i.memoizedState=zc,f}return g=r.child,r=g.sibling,f=er(g,{mode:"visible",children:f.children}),(i.mode&1)===0&&(f.lanes=a),f.return=i,f.sibling=null,r!==null&&(a=i.deletions,a===null?(i.deletions=[r],i.flags|=16):a.push(r)),i.child=f,i.memoizedState=null,f}function Uc(r,i){return i=cl({mode:"visible",children:i},r.mode,0,null),i.return=r,r.child=i}function Xo(r,i,a,f){return f!==null&&mc(f),rs(i,r.child,null,a),r=Uc(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function j0(r,i,a,f,p,g,k){if(a)return i.flags&256?(i.flags&=-257,f=Pc(Error(n(422))),Xo(r,i,k,f)):i.memoizedState!==null?(i.child=r.child,i.flags|=128,null):(g=f.fallback,p=i.mode,f=cl({mode:"visible",children:f.children},p,0,null),g=br(g,p,k,null),g.flags|=2,f.return=i,g.return=i,f.sibling=g,i.child=f,(i.mode&1)!==0&&rs(i,r.child,null,k),i.child.memoizedState=Bc(k),i.memoizedState=zc,g);if((i.mode&1)===0)return Xo(r,i,k,null);if(p.data==="$!"){if(f=p.nextSibling&&p.nextSibling.dataset,f)var E=f.dgst;return f=E,g=Error(n(419)),f=Pc(g,f,void 0),Xo(r,i,k,f)}if(E=(k&r.childLanes)!==0,_t||E){if(f=Ye,f!==null){switch(k&-k){case 4:p=2;break;case 16:p=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:p=32;break;case 536870912:p=268435456;break;default:p=0}p=(p&(f.suspendedLanes|k))!==0?0:p,p!==0&&p!==g.retryLane&&(g.retryLane=p,kn(r,p),sn(f,r,p,-1))}return su(),f=Pc(Error(n(421))),Xo(r,i,k,f)}return p.data==="$?"?(i.flags|=128,i.child=r.child,i=H0.bind(null,r),p._reactRetry=i,null):(r=g.treeContext,Mt=qn(p.nextSibling),Ot=i,Oe=!0,en=null,r!==null&&(Ft[zt++]=Sn,Ft[zt++]=_n,Ft[zt++]=mr,Sn=r.id,_n=r.overflow,mr=i),i=Uc(i,f.children),i.flags|=4096,i)}function fp(r,i,a){r.lanes|=i;var f=r.alternate;f!==null&&(f.lanes|=i),wc(r.return,i,a)}function qc(r,i,a,f,p){var g=r.memoizedState;g===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:f,tail:a,tailMode:p}:(g.isBackwards=i,g.rendering=null,g.renderingStartTime=0,g.last=f,g.tail=a,g.tailMode=p)}function dp(r,i,a){var f=i.pendingProps,p=f.revealOrder,g=f.tail;if(dt(r,i,f.children,a),f=Pe.current,(f&2)!==0)f=f&1|2,i.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&fp(r,a,i);else if(r.tag===19)fp(r,a,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}f&=1}if(Ae(Pe,f),(i.mode&1)===0)i.memoizedState=null;else switch(p){case"forwards":for(a=i.child,p=null;a!==null;)r=a.alternate,r!==null&&qo(r)===null&&(p=a),a=a.sibling;a=p,a===null?(p=i.child,i.child=null):(p=a.sibling,a.sibling=null),qc(i,!1,p,a,g);break;case"backwards":for(a=null,p=i.child,i.child=null;p!==null;){if(r=p.alternate,r!==null&&qo(r)===null){i.child=p;break}r=p.sibling,p.sibling=a,a=p,p=r}qc(i,!0,a,null,g);break;case"together":qc(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Jo(r,i){(i.mode&1)===0&&r!==null&&(r.alternate=null,i.alternate=null,i.flags|=2)}function En(r,i,a){if(r!==null&&(i.dependencies=r.dependencies),xr|=i.lanes,(a&i.childLanes)===0)return null;if(r!==null&&i.child!==r.child)throw Error(n(153));if(i.child!==null){for(r=i.child,a=er(r,r.pendingProps),i.child=a,a.return=i;r.sibling!==null;)r=r.sibling,a=a.sibling=er(r,r.pendingProps),a.return=i;a.sibling=null}return i.child}function I0(r,i,a){switch(i.tag){case 3:ap(i),ns();break;case 5:Th(i);break;case 1:St(i.type)&&Oo(i);break;case 4:_c(i,i.stateNode.containerInfo);break;case 10:var f=i.type._context,p=i.memoizedProps.value;Ae(Fo,f._currentValue),f._currentValue=p;break;case 13:if(f=i.memoizedState,f!==null)return f.dehydrated!==null?(Ae(Pe,Pe.current&1),i.flags|=128,null):(a&i.child.childLanes)!==0?up(r,i,a):(Ae(Pe,Pe.current&1),r=En(r,i,a),r!==null?r.sibling:null);Ae(Pe,Pe.current&1);break;case 19:if(f=(a&i.childLanes)!==0,(r.flags&128)!==0){if(f)return dp(r,i,a);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Ae(Pe,Pe.current),f)break;return null;case 22:case 23:return i.lanes=0,ip(r,i,a)}return En(r,i,a)}var hp,Hc,pp,mp;hp=function(r,i){for(var a=i.child;a!==null;){if(a.tag===5||a.tag===6)r.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Hc=function(){},pp=function(r,i,a,f){var p=r.memoizedProps;if(p!==f){r=i.stateNode,vr(dn.current);var g=null;switch(a){case"input":p=cn(r,p),f=cn(r,f),g=[];break;case"select":p=Z({},p,{value:void 0}),f=Z({},f,{value:void 0}),g=[];break;case"textarea":p=Ws(r,p),f=Ws(r,f),g=[];break;default:typeof p.onClick!="function"&&typeof f.onClick=="function"&&(r.onclick=Lo)}ba(a,f);var k;a=null;for($ in p)if(!f.hasOwnProperty($)&&p.hasOwnProperty($)&&p[$]!=null)if($==="style"){var E=p[$];for(k in E)E.hasOwnProperty(k)&&(a||(a={}),a[k]="")}else $!=="dangerouslySetInnerHTML"&&$!=="children"&&$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&$!=="autoFocus"&&(o.hasOwnProperty($)?g||(g=[]):(g=g||[]).push($,null));for($ in f){var C=f[$];if(E=p!=null?p[$]:void 0,f.hasOwnProperty($)&&C!==E&&(C!=null||E!=null))if($==="style")if(E){for(k in E)!E.hasOwnProperty(k)||C&&C.hasOwnProperty(k)||(a||(a={}),a[k]="");for(k in C)C.hasOwnProperty(k)&&E[k]!==C[k]&&(a||(a={}),a[k]=C[k])}else a||(g||(g=[]),g.push($,a)),a=C;else $==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,E=E?E.__html:void 0,C!=null&&E!==C&&(g=g||[]).push($,C)):$==="children"?typeof C!="string"&&typeof C!="number"||(g=g||[]).push($,""+C):$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&(o.hasOwnProperty($)?(C!=null&&$==="onScroll"&&je("scroll",r),g||E===C||(g=[])):(g=g||[]).push($,C))}a&&(g=g||[]).push("style",a);var $=g;(i.updateQueue=$)&&(i.flags|=4)}},mp=function(r,i,a,f){a!==f&&(i.flags|=4)};function Ei(r,i){if(!Oe)switch(r.tailMode){case"hidden":i=r.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?r.tail=null:a.sibling=null;break;case"collapsed":a=r.tail;for(var f=null;a!==null;)a.alternate!==null&&(f=a),a=a.sibling;f===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:f.sibling=null}}function ot(r){var i=r.alternate!==null&&r.alternate.child===r.child,a=0,f=0;if(i)for(var p=r.child;p!==null;)a|=p.lanes|p.childLanes,f|=p.subtreeFlags&14680064,f|=p.flags&14680064,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)a|=p.lanes|p.childLanes,f|=p.subtreeFlags,f|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=f,r.childLanes=a,i}function O0(r,i,a){var f=i.pendingProps;switch(dc(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(i),null;case 1:return St(i.type)&&Io(),ot(i),null;case 3:return f=i.stateNode,os(),Ie(xt),Ie(st),Ec(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(r===null||r.child===null)&&(Ro(i)?i.flags|=4:r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,en!==null&&(tu(en),en=null))),Hc(r,i),ot(i),null;case 5:kc(i);var p=vr(xi.current);if(a=i.type,r!==null&&i.stateNode!=null)pp(r,i,a,f,p),r.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!f){if(i.stateNode===null)throw Error(n(166));return ot(i),null}if(r=vr(dn.current),Ro(i)){f=i.stateNode,a=i.type;var g=i.memoizedProps;switch(f[fn]=i,f[mi]=g,r=(i.mode&1)!==0,a){case"dialog":je("cancel",f),je("close",f);break;case"iframe":case"object":case"embed":je("load",f);break;case"video":case"audio":for(p=0;p<di.length;p++)je(di[p],f);break;case"source":je("error",f);break;case"img":case"image":case"link":je("error",f),je("load",f);break;case"details":je("toggle",f);break;case"input":so(f,g),je("invalid",f);break;case"select":f._wrapperState={wasMultiple:!!g.multiple},je("invalid",f);break;case"textarea":lo(f,g),je("invalid",f)}ba(a,g),p=null;for(var k in g)if(g.hasOwnProperty(k)){var E=g[k];k==="children"?typeof E=="string"?f.textContent!==E&&(g.suppressHydrationWarning!==!0&&Ao(f.textContent,E,r),p=["children",E]):typeof E=="number"&&f.textContent!==""+E&&(g.suppressHydrationWarning!==!0&&Ao(f.textContent,E,r),p=["children",""+E]):o.hasOwnProperty(k)&&E!=null&&k==="onScroll"&&je("scroll",f)}switch(a){case"input":Mn(f),oo(f,g,!0);break;case"textarea":Mn(f),zr(f);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(f.onclick=Lo)}f=p,i.updateQueue=f,f!==null&&(i.flags|=4)}else{k=p.nodeType===9?p:p.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=fr(a)),r==="http://www.w3.org/1999/xhtml"?a==="script"?(r=k.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof f.is=="string"?r=k.createElement(a,{is:f.is}):(r=k.createElement(a),a==="select"&&(k=r,f.multiple?k.multiple=!0:f.size&&(k.size=f.size))):r=k.createElementNS(r,a),r[fn]=i,r[mi]=f,hp(r,i,!1,!1),i.stateNode=r;e:{switch(k=Ea(a,f),a){case"dialog":je("cancel",r),je("close",r),p=f;break;case"iframe":case"object":case"embed":je("load",r),p=f;break;case"video":case"audio":for(p=0;p<di.length;p++)je(di[p],r);p=f;break;case"source":je("error",r),p=f;break;case"img":case"image":case"link":je("error",r),je("load",r),p=f;break;case"details":je("toggle",r),p=f;break;case"input":so(r,f),p=cn(r,f),je("invalid",r);break;case"option":p=f;break;case"select":r._wrapperState={wasMultiple:!!f.multiple},p=Z({},f,{value:void 0}),je("invalid",r);break;case"textarea":lo(r,f),p=Ws(r,f),je("invalid",r);break;default:p=f}ba(a,p),E=p;for(g in E)if(E.hasOwnProperty(g)){var C=E[g];g==="style"?sd(r,C):g==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,C!=null&&Qs(r,C)):g==="children"?typeof C=="string"?(a!=="textarea"||C!=="")&&le(r,C):typeof C=="number"&&le(r,""+C):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(o.hasOwnProperty(g)?C!=null&&g==="onScroll"&&je("scroll",r):C!=null&&O(r,g,C,k))}switch(a){case"input":Mn(r),oo(r,f,!1);break;case"textarea":Mn(r),zr(r);break;case"option":f.value!=null&&r.setAttribute("value",""+Se(f.value));break;case"select":r.multiple=!!f.multiple,g=f.value,g!=null?$n(r,!!f.multiple,g,!1):f.defaultValue!=null&&$n(r,!!f.multiple,f.defaultValue,!0);break;default:typeof p.onClick=="function"&&(r.onclick=Lo)}switch(a){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}}f&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return ot(i),null;case 6:if(r&&i.stateNode!=null)mp(r,i,r.memoizedProps,f);else{if(typeof f!="string"&&i.stateNode===null)throw Error(n(166));if(a=vr(xi.current),vr(dn.current),Ro(i)){if(f=i.stateNode,a=i.memoizedProps,f[fn]=i,(g=f.nodeValue!==a)&&(r=Ot,r!==null))switch(r.tag){case 3:Ao(f.nodeValue,a,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Ao(f.nodeValue,a,(r.mode&1)!==0)}g&&(i.flags|=4)}else f=(a.nodeType===9?a:a.ownerDocument).createTextNode(f),f[fn]=i,i.stateNode=f}return ot(i),null;case 13:if(Ie(Pe),f=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Oe&&Mt!==null&&(i.mode&1)!==0&&(i.flags&128)===0)vh(),ns(),i.flags|=98560,g=!1;else if(g=Ro(i),f!==null&&f.dehydrated!==null){if(r===null){if(!g)throw Error(n(318));if(g=i.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(n(317));g[fn]=i}else ns(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;ot(i),g=!1}else en!==null&&(tu(en),en=null),g=!0;if(!g)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=a,i):(f=f!==null,f!==(r!==null&&r.memoizedState!==null)&&f&&(i.child.flags|=8192,(i.mode&1)!==0&&(r===null||(Pe.current&1)!==0?Ge===0&&(Ge=3):su())),i.updateQueue!==null&&(i.flags|=4),ot(i),null);case 4:return os(),Hc(r,i),r===null&&hi(i.stateNode.containerInfo),ot(i),null;case 10:return vc(i.type._context),ot(i),null;case 17:return St(i.type)&&Io(),ot(i),null;case 19:if(Ie(Pe),g=i.memoizedState,g===null)return ot(i),null;if(f=(i.flags&128)!==0,k=g.rendering,k===null)if(f)Ei(g,!1);else{if(Ge!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(k=qo(r),k!==null){for(i.flags|=128,Ei(g,!1),f=k.updateQueue,f!==null&&(i.updateQueue=f,i.flags|=4),i.subtreeFlags=0,f=a,a=i.child;a!==null;)g=a,r=f,g.flags&=14680066,k=g.alternate,k===null?(g.childLanes=0,g.lanes=r,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=k.childLanes,g.lanes=k.lanes,g.child=k.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=k.memoizedProps,g.memoizedState=k.memoizedState,g.updateQueue=k.updateQueue,g.type=k.type,r=k.dependencies,g.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),a=a.sibling;return Ae(Pe,Pe.current&1|2),i.child}r=r.sibling}g.tail!==null&&qe()>us&&(i.flags|=128,f=!0,Ei(g,!1),i.lanes=4194304)}else{if(!f)if(r=qo(k),r!==null){if(i.flags|=128,f=!0,a=r.updateQueue,a!==null&&(i.updateQueue=a,i.flags|=4),Ei(g,!0),g.tail===null&&g.tailMode==="hidden"&&!k.alternate&&!Oe)return ot(i),null}else 2*qe()-g.renderingStartTime>us&&a!==1073741824&&(i.flags|=128,f=!0,Ei(g,!1),i.lanes=4194304);g.isBackwards?(k.sibling=i.child,i.child=k):(a=g.last,a!==null?a.sibling=k:i.child=k,g.last=k)}return g.tail!==null?(i=g.tail,g.rendering=i,g.tail=i.sibling,g.renderingStartTime=qe(),i.sibling=null,a=Pe.current,Ae(Pe,f?a&1|2:a&1),i):(ot(i),null);case 22:case 23:return ru(),f=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==f&&(i.flags|=8192),f&&(i.mode&1)!==0?($t&1073741824)!==0&&(ot(i),i.subtreeFlags&6&&(i.flags|=8192)):ot(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function M0(r,i){switch(dc(i),i.tag){case 1:return St(i.type)&&Io(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return os(),Ie(xt),Ie(st),Ec(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 5:return kc(i),null;case 13:if(Ie(Pe),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(n(340));ns()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return Ie(Pe),null;case 4:return os(),null;case 10:return vc(i.type._context),null;case 22:case 23:return ru(),null;case 24:return null;default:return null}}var Yo=!1,lt=!1,$0=typeof WeakSet=="function"?WeakSet:Set,ee=null;function as(r,i){var a=r.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(f){Be(r,i,f)}else a.current=null}function Vc(r,i,a){try{a()}catch(f){Be(r,i,f)}}var gp=!1;function P0(r,i){if(rc=vo,r=Qd(),Ga(r)){if("selectionStart"in r)var a={start:r.selectionStart,end:r.selectionEnd};else e:{a=(a=r.ownerDocument)&&a.defaultView||window;var f=a.getSelection&&a.getSelection();if(f&&f.rangeCount!==0){a=f.anchorNode;var p=f.anchorOffset,g=f.focusNode;f=f.focusOffset;try{a.nodeType,g.nodeType}catch{a=null;break e}var k=0,E=-1,C=-1,$=0,V=0,K=r,H=null;t:for(;;){for(var Y;K!==a||p!==0&&K.nodeType!==3||(E=k+p),K!==g||f!==0&&K.nodeType!==3||(C=k+f),K.nodeType===3&&(k+=K.nodeValue.length),(Y=K.firstChild)!==null;)H=K,K=Y;for(;;){if(K===r)break t;if(H===a&&++$===p&&(E=k),H===g&&++V===f&&(C=k),(Y=K.nextSibling)!==null)break;K=H,H=K.parentNode}K=Y}a=E===-1||C===-1?null:{start:E,end:C}}else a=null}a=a||{start:0,end:0}}else a=null;for(sc={focusedElem:r,selectionRange:a},vo=!1,ee=i;ee!==null;)if(i=ee,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,ee=r;else for(;ee!==null;){i=ee;try{var te=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(te!==null){var ne=te.memoizedProps,He=te.memoizedState,j=i.stateNode,A=j.getSnapshotBeforeUpdate(i.elementType===i.type?ne:tn(i.type,ne),He);j.__reactInternalSnapshotBeforeUpdate=A}break;case 3:var M=i.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(G){Be(i,i.return,G)}if(r=i.sibling,r!==null){r.return=i.return,ee=r;break}ee=i.return}return te=gp,gp=!1,te}function Ti(r,i,a){var f=i.updateQueue;if(f=f!==null?f.lastEffect:null,f!==null){var p=f=f.next;do{if((p.tag&r)===r){var g=p.destroy;p.destroy=void 0,g!==void 0&&Vc(i,a,g)}p=p.next}while(p!==f)}}function Zo(r,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do{if((a.tag&r)===r){var f=a.create;a.destroy=f()}a=a.next}while(a!==i)}}function Wc(r){var i=r.ref;if(i!==null){var a=r.stateNode;switch(r.tag){case 5:r=a;break;default:r=a}typeof i=="function"?i(r):i.current=r}}function yp(r){var i=r.alternate;i!==null&&(r.alternate=null,yp(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[fn],delete i[mi],delete i[ac],delete i[v0],delete i[w0])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function vp(r){return r.tag===5||r.tag===3||r.tag===4}function wp(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||vp(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Kc(r,i,a){var f=r.tag;if(f===5||f===6)r=r.stateNode,i?a.nodeType===8?a.parentNode.insertBefore(r,i):a.insertBefore(r,i):(a.nodeType===8?(i=a.parentNode,i.insertBefore(r,a)):(i=a,i.appendChild(r)),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=Lo));else if(f!==4&&(r=r.child,r!==null))for(Kc(r,i,a),r=r.sibling;r!==null;)Kc(r,i,a),r=r.sibling}function Qc(r,i,a){var f=r.tag;if(f===5||f===6)r=r.stateNode,i?a.insertBefore(r,i):a.appendChild(r);else if(f!==4&&(r=r.child,r!==null))for(Qc(r,i,a),r=r.sibling;r!==null;)Qc(r,i,a),r=r.sibling}var tt=null,nn=!1;function Gn(r,i,a){for(a=a.child;a!==null;)xp(r,i,a),a=a.sibling}function xp(r,i,a){if(un&&typeof un.onCommitFiberUnmount=="function")try{un.onCommitFiberUnmount(fo,a)}catch{}switch(a.tag){case 5:lt||as(a,i);case 6:var f=tt,p=nn;tt=null,Gn(r,i,a),tt=f,nn=p,tt!==null&&(nn?(r=tt,a=a.stateNode,r.nodeType===8?r.parentNode.removeChild(a):r.removeChild(a)):tt.removeChild(a.stateNode));break;case 18:tt!==null&&(nn?(r=tt,a=a.stateNode,r.nodeType===8?lc(r.parentNode,a):r.nodeType===1&&lc(r,a),si(r)):lc(tt,a.stateNode));break;case 4:f=tt,p=nn,tt=a.stateNode.containerInfo,nn=!0,Gn(r,i,a),tt=f,nn=p;break;case 0:case 11:case 14:case 15:if(!lt&&(f=a.updateQueue,f!==null&&(f=f.lastEffect,f!==null))){p=f=f.next;do{var g=p,k=g.destroy;g=g.tag,k!==void 0&&((g&2)!==0||(g&4)!==0)&&Vc(a,i,k),p=p.next}while(p!==f)}Gn(r,i,a);break;case 1:if(!lt&&(as(a,i),f=a.stateNode,typeof f.componentWillUnmount=="function"))try{f.props=a.memoizedProps,f.state=a.memoizedState,f.componentWillUnmount()}catch(E){Be(a,i,E)}Gn(r,i,a);break;case 21:Gn(r,i,a);break;case 22:a.mode&1?(lt=(f=lt)||a.memoizedState!==null,Gn(r,i,a),lt=f):Gn(r,i,a);break;default:Gn(r,i,a)}}function Sp(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var a=r.stateNode;a===null&&(a=r.stateNode=new $0),i.forEach(function(f){var p=V0.bind(null,r,f);a.has(f)||(a.add(f),f.then(p,p))})}}function rn(r,i){var a=i.deletions;if(a!==null)for(var f=0;f<a.length;f++){var p=a[f];try{var g=r,k=i,E=k;e:for(;E!==null;){switch(E.tag){case 5:tt=E.stateNode,nn=!1;break e;case 3:tt=E.stateNode.containerInfo,nn=!0;break e;case 4:tt=E.stateNode.containerInfo,nn=!0;break e}E=E.return}if(tt===null)throw Error(n(160));xp(g,k,p),tt=null,nn=!1;var C=p.alternate;C!==null&&(C.return=null),p.return=null}catch($){Be(p,i,$)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)_p(i,r),i=i.sibling}function _p(r,i){var a=r.alternate,f=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(rn(i,r),pn(r),f&4){try{Ti(3,r,r.return),Zo(3,r)}catch(ne){Be(r,r.return,ne)}try{Ti(5,r,r.return)}catch(ne){Be(r,r.return,ne)}}break;case 1:rn(i,r),pn(r),f&512&&a!==null&&as(a,a.return);break;case 5:if(rn(i,r),pn(r),f&512&&a!==null&&as(a,a.return),r.flags&32){var p=r.stateNode;try{le(p,"")}catch(ne){Be(r,r.return,ne)}}if(f&4&&(p=r.stateNode,p!=null)){var g=r.memoizedProps,k=a!==null?a.memoizedProps:g,E=r.type,C=r.updateQueue;if(r.updateQueue=null,C!==null)try{E==="input"&&g.type==="radio"&&g.name!=null&&io(p,g),Ea(E,k);var $=Ea(E,g);for(k=0;k<C.length;k+=2){var V=C[k],K=C[k+1];V==="style"?sd(p,K):V==="dangerouslySetInnerHTML"?Qs(p,K):V==="children"?le(p,K):O(p,V,K,$)}switch(E){case"input":Vs(p,g);break;case"textarea":Pn(p,g);break;case"select":var H=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!g.multiple;var Y=g.value;Y!=null?$n(p,!!g.multiple,Y,!1):H!==!!g.multiple&&(g.defaultValue!=null?$n(p,!!g.multiple,g.defaultValue,!0):$n(p,!!g.multiple,g.multiple?[]:"",!1))}p[mi]=g}catch(ne){Be(r,r.return,ne)}}break;case 6:if(rn(i,r),pn(r),f&4){if(r.stateNode===null)throw Error(n(162));p=r.stateNode,g=r.memoizedProps;try{p.nodeValue=g}catch(ne){Be(r,r.return,ne)}}break;case 3:if(rn(i,r),pn(r),f&4&&a!==null&&a.memoizedState.isDehydrated)try{si(i.containerInfo)}catch(ne){Be(r,r.return,ne)}break;case 4:rn(i,r),pn(r);break;case 13:rn(i,r),pn(r),p=r.child,p.flags&8192&&(g=p.memoizedState!==null,p.stateNode.isHidden=g,!g||p.alternate!==null&&p.alternate.memoizedState!==null||(Jc=qe())),f&4&&Sp(r);break;case 22:if(V=a!==null&&a.memoizedState!==null,r.mode&1?(lt=($=lt)||V,rn(i,r),lt=$):rn(i,r),pn(r),f&8192){if($=r.memoizedState!==null,(r.stateNode.isHidden=$)&&!V&&(r.mode&1)!==0)for(ee=r,V=r.child;V!==null;){for(K=ee=V;ee!==null;){switch(H=ee,Y=H.child,H.tag){case 0:case 11:case 14:case 15:Ti(4,H,H.return);break;case 1:as(H,H.return);var te=H.stateNode;if(typeof te.componentWillUnmount=="function"){f=H,a=H.return;try{i=f,te.props=i.memoizedProps,te.state=i.memoizedState,te.componentWillUnmount()}catch(ne){Be(f,a,ne)}}break;case 5:as(H,H.return);break;case 22:if(H.memoizedState!==null){Ep(K);continue}}Y!==null?(Y.return=H,ee=Y):Ep(K)}V=V.sibling}e:for(V=null,K=r;;){if(K.tag===5){if(V===null){V=K;try{p=K.stateNode,$?(g=p.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(E=K.stateNode,C=K.memoizedProps.style,k=C!=null&&C.hasOwnProperty("display")?C.display:null,E.style.display=rd("display",k))}catch(ne){Be(r,r.return,ne)}}}else if(K.tag===6){if(V===null)try{K.stateNode.nodeValue=$?"":K.memoizedProps}catch(ne){Be(r,r.return,ne)}}else if((K.tag!==22&&K.tag!==23||K.memoizedState===null||K===r)&&K.child!==null){K.child.return=K,K=K.child;continue}if(K===r)break e;for(;K.sibling===null;){if(K.return===null||K.return===r)break e;V===K&&(V=null),K=K.return}V===K&&(V=null),K.sibling.return=K.return,K=K.sibling}}break;case 19:rn(i,r),pn(r),f&4&&Sp(r);break;case 21:break;default:rn(i,r),pn(r)}}function pn(r){var i=r.flags;if(i&2){try{e:{for(var a=r.return;a!==null;){if(vp(a)){var f=a;break e}a=a.return}throw Error(n(160))}switch(f.tag){case 5:var p=f.stateNode;f.flags&32&&(le(p,""),f.flags&=-33);var g=wp(r);Qc(r,g,p);break;case 3:case 4:var k=f.stateNode.containerInfo,E=wp(r);Kc(r,E,k);break;default:throw Error(n(161))}}catch(C){Be(r,r.return,C)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function R0(r,i,a){ee=r,kp(r)}function kp(r,i,a){for(var f=(r.mode&1)!==0;ee!==null;){var p=ee,g=p.child;if(p.tag===22&&f){var k=p.memoizedState!==null||Yo;if(!k){var E=p.alternate,C=E!==null&&E.memoizedState!==null||lt;E=Yo;var $=lt;if(Yo=k,(lt=C)&&!$)for(ee=p;ee!==null;)k=ee,C=k.child,k.tag===22&&k.memoizedState!==null?Tp(p):C!==null?(C.return=k,ee=C):Tp(p);for(;g!==null;)ee=g,kp(g),g=g.sibling;ee=p,Yo=E,lt=$}bp(r)}else(p.subtreeFlags&8772)!==0&&g!==null?(g.return=p,ee=g):bp(r)}}function bp(r){for(;ee!==null;){var i=ee;if((i.flags&8772)!==0){var a=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:lt||Zo(5,i);break;case 1:var f=i.stateNode;if(i.flags&4&&!lt)if(a===null)f.componentDidMount();else{var p=i.elementType===i.type?a.memoizedProps:tn(i.type,a.memoizedProps);f.componentDidUpdate(p,a.memoizedState,f.__reactInternalSnapshotBeforeUpdate)}var g=i.updateQueue;g!==null&&Eh(i,g,f);break;case 3:var k=i.updateQueue;if(k!==null){if(a=null,i.child!==null)switch(i.child.tag){case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}Eh(i,k,a)}break;case 5:var E=i.stateNode;if(a===null&&i.flags&4){a=E;var C=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":C.autoFocus&&a.focus();break;case"img":C.src&&(a.src=C.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var $=i.alternate;if($!==null){var V=$.memoizedState;if(V!==null){var K=V.dehydrated;K!==null&&si(K)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}lt||i.flags&512&&Wc(i)}catch(H){Be(i,i.return,H)}}if(i===r){ee=null;break}if(a=i.sibling,a!==null){a.return=i.return,ee=a;break}ee=i.return}}function Ep(r){for(;ee!==null;){var i=ee;if(i===r){ee=null;break}var a=i.sibling;if(a!==null){a.return=i.return,ee=a;break}ee=i.return}}function Tp(r){for(;ee!==null;){var i=ee;try{switch(i.tag){case 0:case 11:case 15:var a=i.return;try{Zo(4,i)}catch(C){Be(i,a,C)}break;case 1:var f=i.stateNode;if(typeof f.componentDidMount=="function"){var p=i.return;try{f.componentDidMount()}catch(C){Be(i,p,C)}}var g=i.return;try{Wc(i)}catch(C){Be(i,g,C)}break;case 5:var k=i.return;try{Wc(i)}catch(C){Be(i,k,C)}}}catch(C){Be(i,i.return,C)}if(i===r){ee=null;break}var E=i.sibling;if(E!==null){E.return=i.return,ee=E;break}ee=i.return}}var D0=Math.ceil,el=R.ReactCurrentDispatcher,Gc=R.ReactCurrentOwner,qt=R.ReactCurrentBatchConfig,we=0,Ye=null,We=null,nt=0,$t=0,cs=Hn(0),Ge=0,Ni=null,xr=0,tl=0,Xc=0,Ci=null,kt=null,Jc=0,us=1/0,Tn=null,nl=!1,Yc=null,Xn=null,rl=!1,Jn=null,sl=0,Ai=0,Zc=null,il=-1,ol=0;function ht(){return(we&6)!==0?qe():il!==-1?il:il=qe()}function Yn(r){return(r.mode&1)===0?1:(we&2)!==0&&nt!==0?nt&-nt:S0.transition!==null?(ol===0&&(ol=wd()),ol):(r=Ee,r!==0||(r=window.event,r=r===void 0?16:Cd(r.type)),r)}function sn(r,i,a,f){if(50<Ai)throw Ai=0,Zc=null,Error(n(185));Zs(r,a,f),((we&2)===0||r!==Ye)&&(r===Ye&&((we&2)===0&&(tl|=a),Ge===4&&Zn(r,nt)),bt(r,f),a===1&&we===0&&(i.mode&1)===0&&(us=qe()+500,Mo&&Wn()))}function bt(r,i){var a=r.callbackNode;Sw(r,i);var f=mo(r,r===Ye?nt:0);if(f===0)a!==null&&gd(a),r.callbackNode=null,r.callbackPriority=0;else if(i=f&-f,r.callbackPriority!==i){if(a!=null&&gd(a),i===1)r.tag===0?x0(Cp.bind(null,r)):hh(Cp.bind(null,r)),g0(function(){(we&6)===0&&Wn()}),a=null;else{switch(xd(f)){case 1:a=Ia;break;case 4:a=yd;break;case 16:a=uo;break;case 536870912:a=vd;break;default:a=uo}a=Pp(a,Np.bind(null,r))}r.callbackPriority=i,r.callbackNode=a}}function Np(r,i){if(il=-1,ol=0,(we&6)!==0)throw Error(n(327));var a=r.callbackNode;if(fs()&&r.callbackNode!==a)return null;var f=mo(r,r===Ye?nt:0);if(f===0)return null;if((f&30)!==0||(f&r.expiredLanes)!==0||i)i=ll(r,f);else{i=f;var p=we;we|=2;var g=Lp();(Ye!==r||nt!==i)&&(Tn=null,us=qe()+500,_r(r,i));do try{B0();break}catch(E){Ap(r,E)}while(!0);yc(),el.current=g,we=p,We!==null?i=0:(Ye=null,nt=0,i=Ge)}if(i!==0){if(i===2&&(p=Oa(r),p!==0&&(f=p,i=eu(r,p))),i===1)throw a=Ni,_r(r,0),Zn(r,f),bt(r,qe()),a;if(i===6)Zn(r,f);else{if(p=r.current.alternate,(f&30)===0&&!F0(p)&&(i=ll(r,f),i===2&&(g=Oa(r),g!==0&&(f=g,i=eu(r,g))),i===1))throw a=Ni,_r(r,0),Zn(r,f),bt(r,qe()),a;switch(r.finishedWork=p,r.finishedLanes=f,i){case 0:case 1:throw Error(n(345));case 2:kr(r,kt,Tn);break;case 3:if(Zn(r,f),(f&130023424)===f&&(i=Jc+500-qe(),10<i)){if(mo(r,0)!==0)break;if(p=r.suspendedLanes,(p&f)!==f){ht(),r.pingedLanes|=r.suspendedLanes&p;break}r.timeoutHandle=oc(kr.bind(null,r,kt,Tn),i);break}kr(r,kt,Tn);break;case 4:if(Zn(r,f),(f&4194240)===f)break;for(i=r.eventTimes,p=-1;0<f;){var k=31-Yt(f);g=1<<k,k=i[k],k>p&&(p=k),f&=~g}if(f=p,f=qe()-f,f=(120>f?120:480>f?480:1080>f?1080:1920>f?1920:3e3>f?3e3:4320>f?4320:1960*D0(f/1960))-f,10<f){r.timeoutHandle=oc(kr.bind(null,r,kt,Tn),f);break}kr(r,kt,Tn);break;case 5:kr(r,kt,Tn);break;default:throw Error(n(329))}}}return bt(r,qe()),r.callbackNode===a?Np.bind(null,r):null}function eu(r,i){var a=Ci;return r.current.memoizedState.isDehydrated&&(_r(r,i).flags|=256),r=ll(r,i),r!==2&&(i=kt,kt=a,i!==null&&tu(i)),r}function tu(r){kt===null?kt=r:kt.push.apply(kt,r)}function F0(r){for(var i=r;;){if(i.flags&16384){var a=i.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var f=0;f<a.length;f++){var p=a[f],g=p.getSnapshot;p=p.value;try{if(!Zt(g(),p))return!1}catch{return!1}}}if(a=i.child,i.subtreeFlags&16384&&a!==null)a.return=i,i=a;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Zn(r,i){for(i&=~Xc,i&=~tl,r.suspendedLanes|=i,r.pingedLanes&=~i,r=r.expirationTimes;0<i;){var a=31-Yt(i),f=1<<a;r[a]=-1,i&=~f}}function Cp(r){if((we&6)!==0)throw Error(n(327));fs();var i=mo(r,0);if((i&1)===0)return bt(r,qe()),null;var a=ll(r,i);if(r.tag!==0&&a===2){var f=Oa(r);f!==0&&(i=f,a=eu(r,f))}if(a===1)throw a=Ni,_r(r,0),Zn(r,i),bt(r,qe()),a;if(a===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=i,kr(r,kt,Tn),bt(r,qe()),null}function nu(r,i){var a=we;we|=1;try{return r(i)}finally{we=a,we===0&&(us=qe()+500,Mo&&Wn())}}function Sr(r){Jn!==null&&Jn.tag===0&&(we&6)===0&&fs();var i=we;we|=1;var a=qt.transition,f=Ee;try{if(qt.transition=null,Ee=1,r)return r()}finally{Ee=f,qt.transition=a,we=i,(we&6)===0&&Wn()}}function ru(){$t=cs.current,Ie(cs)}function _r(r,i){r.finishedWork=null,r.finishedLanes=0;var a=r.timeoutHandle;if(a!==-1&&(r.timeoutHandle=-1,m0(a)),We!==null)for(a=We.return;a!==null;){var f=a;switch(dc(f),f.tag){case 1:f=f.type.childContextTypes,f!=null&&Io();break;case 3:os(),Ie(xt),Ie(st),Ec();break;case 5:kc(f);break;case 4:os();break;case 13:Ie(Pe);break;case 19:Ie(Pe);break;case 10:vc(f.type._context);break;case 22:case 23:ru()}a=a.return}if(Ye=r,We=r=er(r.current,null),nt=$t=i,Ge=0,Ni=null,Xc=tl=xr=0,kt=Ci=null,yr!==null){for(i=0;i<yr.length;i++)if(a=yr[i],f=a.interleaved,f!==null){a.interleaved=null;var p=f.next,g=a.pending;if(g!==null){var k=g.next;g.next=p,f.next=k}a.pending=f}yr=null}return r}function Ap(r,i){do{var a=We;try{if(yc(),Ho.current=Qo,Vo){for(var f=Re.memoizedState;f!==null;){var p=f.queue;p!==null&&(p.pending=null),f=f.next}Vo=!1}if(wr=0,Je=Qe=Re=null,Si=!1,_i=0,Gc.current=null,a===null||a.return===null){Ge=1,Ni=i,We=null;break}e:{var g=r,k=a.return,E=a,C=i;if(i=nt,E.flags|=32768,C!==null&&typeof C=="object"&&typeof C.then=="function"){var $=C,V=E,K=V.tag;if((V.mode&1)===0&&(K===0||K===11||K===15)){var H=V.alternate;H?(V.updateQueue=H.updateQueue,V.memoizedState=H.memoizedState,V.lanes=H.lanes):(V.updateQueue=null,V.memoizedState=null)}var Y=ep(k);if(Y!==null){Y.flags&=-257,tp(Y,k,E,g,i),Y.mode&1&&Zh(g,$,i),i=Y,C=$;var te=i.updateQueue;if(te===null){var ne=new Set;ne.add(C),i.updateQueue=ne}else te.add(C);break e}else{if((i&1)===0){Zh(g,$,i),su();break e}C=Error(n(426))}}else if(Oe&&E.mode&1){var He=ep(k);if(He!==null){(He.flags&65536)===0&&(He.flags|=256),tp(He,k,E,g,i),mc(ls(C,E));break e}}g=C=ls(C,E),Ge!==4&&(Ge=2),Ci===null?Ci=[g]:Ci.push(g),g=k;do{switch(g.tag){case 3:g.flags|=65536,i&=-i,g.lanes|=i;var j=Jh(g,C,i);bh(g,j);break e;case 1:E=C;var A=g.type,M=g.stateNode;if((g.flags&128)===0&&(typeof A.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Xn===null||!Xn.has(M)))){g.flags|=65536,i&=-i,g.lanes|=i;var G=Yh(g,E,i);bh(g,G);break e}}g=g.return}while(g!==null)}Ip(a)}catch(re){i=re,We===a&&a!==null&&(We=a=a.return);continue}break}while(!0)}function Lp(){var r=el.current;return el.current=Qo,r===null?Qo:r}function su(){(Ge===0||Ge===3||Ge===2)&&(Ge=4),Ye===null||(xr&268435455)===0&&(tl&268435455)===0||Zn(Ye,nt)}function ll(r,i){var a=we;we|=2;var f=Lp();(Ye!==r||nt!==i)&&(Tn=null,_r(r,i));do try{z0();break}catch(p){Ap(r,p)}while(!0);if(yc(),we=a,el.current=f,We!==null)throw Error(n(261));return Ye=null,nt=0,Ge}function z0(){for(;We!==null;)jp(We)}function B0(){for(;We!==null&&!dw();)jp(We)}function jp(r){var i=$p(r.alternate,r,$t);r.memoizedProps=r.pendingProps,i===null?Ip(r):We=i,Gc.current=null}function Ip(r){var i=r;do{var a=i.alternate;if(r=i.return,(i.flags&32768)===0){if(a=O0(a,i,$t),a!==null){We=a;return}}else{if(a=M0(a,i),a!==null){a.flags&=32767,We=a;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Ge=6,We=null;return}}if(i=i.sibling,i!==null){We=i;return}We=i=r}while(i!==null);Ge===0&&(Ge=5)}function kr(r,i,a){var f=Ee,p=qt.transition;try{qt.transition=null,Ee=1,U0(r,i,a,f)}finally{qt.transition=p,Ee=f}return null}function U0(r,i,a,f){do fs();while(Jn!==null);if((we&6)!==0)throw Error(n(327));a=r.finishedWork;var p=r.finishedLanes;if(a===null)return null;if(r.finishedWork=null,r.finishedLanes=0,a===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var g=a.lanes|a.childLanes;if(_w(r,g),r===Ye&&(We=Ye=null,nt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||rl||(rl=!0,Pp(uo,function(){return fs(),null})),g=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||g){g=qt.transition,qt.transition=null;var k=Ee;Ee=1;var E=we;we|=4,Gc.current=null,P0(r,a),_p(a,r),a0(sc),vo=!!rc,sc=rc=null,r.current=a,R0(a),hw(),we=E,Ee=k,qt.transition=g}else r.current=a;if(rl&&(rl=!1,Jn=r,sl=p),g=r.pendingLanes,g===0&&(Xn=null),gw(a.stateNode),bt(r,qe()),i!==null)for(f=r.onRecoverableError,a=0;a<i.length;a++)p=i[a],f(p.value,{componentStack:p.stack,digest:p.digest});if(nl)throw nl=!1,r=Yc,Yc=null,r;return(sl&1)!==0&&r.tag!==0&&fs(),g=r.pendingLanes,(g&1)!==0?r===Zc?Ai++:(Ai=0,Zc=r):Ai=0,Wn(),null}function fs(){if(Jn!==null){var r=xd(sl),i=qt.transition,a=Ee;try{if(qt.transition=null,Ee=16>r?16:r,Jn===null)var f=!1;else{if(r=Jn,Jn=null,sl=0,(we&6)!==0)throw Error(n(331));var p=we;for(we|=4,ee=r.current;ee!==null;){var g=ee,k=g.child;if((ee.flags&16)!==0){var E=g.deletions;if(E!==null){for(var C=0;C<E.length;C++){var $=E[C];for(ee=$;ee!==null;){var V=ee;switch(V.tag){case 0:case 11:case 15:Ti(8,V,g)}var K=V.child;if(K!==null)K.return=V,ee=K;else for(;ee!==null;){V=ee;var H=V.sibling,Y=V.return;if(yp(V),V===$){ee=null;break}if(H!==null){H.return=Y,ee=H;break}ee=Y}}}var te=g.alternate;if(te!==null){var ne=te.child;if(ne!==null){te.child=null;do{var He=ne.sibling;ne.sibling=null,ne=He}while(ne!==null)}}ee=g}}if((g.subtreeFlags&2064)!==0&&k!==null)k.return=g,ee=k;else e:for(;ee!==null;){if(g=ee,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:Ti(9,g,g.return)}var j=g.sibling;if(j!==null){j.return=g.return,ee=j;break e}ee=g.return}}var A=r.current;for(ee=A;ee!==null;){k=ee;var M=k.child;if((k.subtreeFlags&2064)!==0&&M!==null)M.return=k,ee=M;else e:for(k=A;ee!==null;){if(E=ee,(E.flags&2048)!==0)try{switch(E.tag){case 0:case 11:case 15:Zo(9,E)}}catch(re){Be(E,E.return,re)}if(E===k){ee=null;break e}var G=E.sibling;if(G!==null){G.return=E.return,ee=G;break e}ee=E.return}}if(we=p,Wn(),un&&typeof un.onPostCommitFiberRoot=="function")try{un.onPostCommitFiberRoot(fo,r)}catch{}f=!0}return f}finally{Ee=a,qt.transition=i}}return!1}function Op(r,i,a){i=ls(a,i),i=Jh(r,i,1),r=Qn(r,i,1),i=ht(),r!==null&&(Zs(r,1,i),bt(r,i))}function Be(r,i,a){if(r.tag===3)Op(r,r,a);else for(;i!==null;){if(i.tag===3){Op(i,r,a);break}else if(i.tag===1){var f=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Xn===null||!Xn.has(f))){r=ls(a,r),r=Yh(i,r,1),i=Qn(i,r,1),r=ht(),i!==null&&(Zs(i,1,r),bt(i,r));break}}i=i.return}}function q0(r,i,a){var f=r.pingCache;f!==null&&f.delete(i),i=ht(),r.pingedLanes|=r.suspendedLanes&a,Ye===r&&(nt&a)===a&&(Ge===4||Ge===3&&(nt&130023424)===nt&&500>qe()-Jc?_r(r,0):Xc|=a),bt(r,i)}function Mp(r,i){i===0&&((r.mode&1)===0?i=1:(i=po,po<<=1,(po&130023424)===0&&(po=4194304)));var a=ht();r=kn(r,i),r!==null&&(Zs(r,i,a),bt(r,a))}function H0(r){var i=r.memoizedState,a=0;i!==null&&(a=i.retryLane),Mp(r,a)}function V0(r,i){var a=0;switch(r.tag){case 13:var f=r.stateNode,p=r.memoizedState;p!==null&&(a=p.retryLane);break;case 19:f=r.stateNode;break;default:throw Error(n(314))}f!==null&&f.delete(i),Mp(r,a)}var $p;$p=function(r,i,a){if(r!==null)if(r.memoizedProps!==i.pendingProps||xt.current)_t=!0;else{if((r.lanes&a)===0&&(i.flags&128)===0)return _t=!1,I0(r,i,a);_t=(r.flags&131072)!==0}else _t=!1,Oe&&(i.flags&1048576)!==0&&ph(i,Po,i.index);switch(i.lanes=0,i.tag){case 2:var f=i.type;Jo(r,i),r=i.pendingProps;var p=Zr(i,st.current);is(i,a),p=Cc(null,i,f,r,p,a);var g=Ac();return i.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,St(f)?(g=!0,Oo(i)):g=!1,i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,Sc(i),p.updater=Go,i.stateNode=p,p._reactInternals=i,$c(i,f,r,a),i=Fc(null,i,f,!0,g,a)):(i.tag=0,Oe&&g&&fc(i),dt(null,i,p,a),i=i.child),i;case 16:f=i.elementType;e:{switch(Jo(r,i),r=i.pendingProps,p=f._init,f=p(f._payload),i.type=f,p=i.tag=K0(f),r=tn(f,r),p){case 0:i=Dc(null,i,f,r,a);break e;case 1:i=lp(null,i,f,r,a);break e;case 11:i=np(null,i,f,r,a);break e;case 14:i=rp(null,i,f,tn(f.type,r),a);break e}throw Error(n(306,f,""))}return i;case 0:return f=i.type,p=i.pendingProps,p=i.elementType===f?p:tn(f,p),Dc(r,i,f,p,a);case 1:return f=i.type,p=i.pendingProps,p=i.elementType===f?p:tn(f,p),lp(r,i,f,p,a);case 3:e:{if(ap(i),r===null)throw Error(n(387));f=i.pendingProps,g=i.memoizedState,p=g.element,kh(r,i),Uo(i,f,null,a);var k=i.memoizedState;if(f=k.element,g.isDehydrated)if(g={element:f,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){p=ls(Error(n(423)),i),i=cp(r,i,f,a,p);break e}else if(f!==p){p=ls(Error(n(424)),i),i=cp(r,i,f,a,p);break e}else for(Mt=qn(i.stateNode.containerInfo.firstChild),Ot=i,Oe=!0,en=null,a=Sh(i,null,f,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ns(),f===p){i=En(r,i,a);break e}dt(r,i,f,a)}i=i.child}return i;case 5:return Th(i),r===null&&pc(i),f=i.type,p=i.pendingProps,g=r!==null?r.memoizedProps:null,k=p.children,ic(f,p)?k=null:g!==null&&ic(f,g)&&(i.flags|=32),op(r,i),dt(r,i,k,a),i.child;case 6:return r===null&&pc(i),null;case 13:return up(r,i,a);case 4:return _c(i,i.stateNode.containerInfo),f=i.pendingProps,r===null?i.child=rs(i,null,f,a):dt(r,i,f,a),i.child;case 11:return f=i.type,p=i.pendingProps,p=i.elementType===f?p:tn(f,p),np(r,i,f,p,a);case 7:return dt(r,i,i.pendingProps,a),i.child;case 8:return dt(r,i,i.pendingProps.children,a),i.child;case 12:return dt(r,i,i.pendingProps.children,a),i.child;case 10:e:{if(f=i.type._context,p=i.pendingProps,g=i.memoizedProps,k=p.value,Ae(Fo,f._currentValue),f._currentValue=k,g!==null)if(Zt(g.value,k)){if(g.children===p.children&&!xt.current){i=En(r,i,a);break e}}else for(g=i.child,g!==null&&(g.return=i);g!==null;){var E=g.dependencies;if(E!==null){k=g.child;for(var C=E.firstContext;C!==null;){if(C.context===f){if(g.tag===1){C=bn(-1,a&-a),C.tag=2;var $=g.updateQueue;if($!==null){$=$.shared;var V=$.pending;V===null?C.next=C:(C.next=V.next,V.next=C),$.pending=C}}g.lanes|=a,C=g.alternate,C!==null&&(C.lanes|=a),wc(g.return,a,i),E.lanes|=a;break}C=C.next}}else if(g.tag===10)k=g.type===i.type?null:g.child;else if(g.tag===18){if(k=g.return,k===null)throw Error(n(341));k.lanes|=a,E=k.alternate,E!==null&&(E.lanes|=a),wc(k,a,i),k=g.sibling}else k=g.child;if(k!==null)k.return=g;else for(k=g;k!==null;){if(k===i){k=null;break}if(g=k.sibling,g!==null){g.return=k.return,k=g;break}k=k.return}g=k}dt(r,i,p.children,a),i=i.child}return i;case 9:return p=i.type,f=i.pendingProps.children,is(i,a),p=Bt(p),f=f(p),i.flags|=1,dt(r,i,f,a),i.child;case 14:return f=i.type,p=tn(f,i.pendingProps),p=tn(f.type,p),rp(r,i,f,p,a);case 15:return sp(r,i,i.type,i.pendingProps,a);case 17:return f=i.type,p=i.pendingProps,p=i.elementType===f?p:tn(f,p),Jo(r,i),i.tag=1,St(f)?(r=!0,Oo(i)):r=!1,is(i,a),Gh(i,f,p),$c(i,f,p,a),Fc(null,i,f,!0,r,a);case 19:return dp(r,i,a);case 22:return ip(r,i,a)}throw Error(n(156,i.tag))};function Pp(r,i){return md(r,i)}function W0(r,i,a,f){this.tag=r,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(r,i,a,f){return new W0(r,i,a,f)}function iu(r){return r=r.prototype,!(!r||!r.isReactComponent)}function K0(r){if(typeof r=="function")return iu(r)?1:0;if(r!=null){if(r=r.$$typeof,r===z)return 11;if(r===Te)return 14}return 2}function er(r,i){var a=r.alternate;return a===null?(a=Ht(r.tag,i,r.key,r.mode),a.elementType=r.elementType,a.type=r.type,a.stateNode=r.stateNode,a.alternate=r,r.alternate=a):(a.pendingProps=i,a.type=r.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=r.flags&14680064,a.childLanes=r.childLanes,a.lanes=r.lanes,a.child=r.child,a.memoizedProps=r.memoizedProps,a.memoizedState=r.memoizedState,a.updateQueue=r.updateQueue,i=r.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=r.sibling,a.index=r.index,a.ref=r.ref,a}function al(r,i,a,f,p,g){var k=2;if(f=r,typeof r=="function")iu(r)&&(k=1);else if(typeof r=="string")k=5;else e:switch(r){case U:return br(a.children,p,g,i);case B:k=8,p|=8;break;case I:return r=Ht(12,a,i,p|2),r.elementType=I,r.lanes=g,r;case J:return r=Ht(13,a,i,p),r.elementType=J,r.lanes=g,r;case de:return r=Ht(19,a,i,p),r.elementType=de,r.lanes=g,r;case ye:return cl(a,p,g,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Q:k=10;break e;case W:k=9;break e;case z:k=11;break e;case Te:k=14;break e;case Le:k=16,f=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return i=Ht(k,a,i,p),i.elementType=r,i.type=f,i.lanes=g,i}function br(r,i,a,f){return r=Ht(7,r,f,i),r.lanes=a,r}function cl(r,i,a,f){return r=Ht(22,r,f,i),r.elementType=ye,r.lanes=a,r.stateNode={isHidden:!1},r}function ou(r,i,a){return r=Ht(6,r,null,i),r.lanes=a,r}function lu(r,i,a){return i=Ht(4,r.children!==null?r.children:[],r.key,i),i.lanes=a,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}function Q0(r,i,a,f,p){this.tag=i,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ma(0),this.expirationTimes=Ma(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ma(0),this.identifierPrefix=f,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function au(r,i,a,f,p,g,k,E,C){return r=new Q0(r,i,a,E,C),i===1?(i=1,g===!0&&(i|=8)):i=0,g=Ht(3,null,null,i),r.current=g,g.stateNode=r,g.memoizedState={element:f,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sc(g),r}function G0(r,i,a){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:f==null?null:""+f,children:r,containerInfo:i,implementation:a}}function Rp(r){if(!r)return Vn;r=r._reactInternals;e:{if(dr(r)!==r||r.tag!==1)throw Error(n(170));var i=r;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(St(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(n(171))}if(r.tag===1){var a=r.type;if(St(a))return fh(r,a,i)}return i}function Dp(r,i,a,f,p,g,k,E,C){return r=au(a,f,!0,r,p,g,k,E,C),r.context=Rp(null),a=r.current,f=ht(),p=Yn(a),g=bn(f,p),g.callback=i??null,Qn(a,g,p),r.current.lanes=p,Zs(r,p,f),bt(r,f),r}function ul(r,i,a,f){var p=i.current,g=ht(),k=Yn(p);return a=Rp(a),i.context===null?i.context=a:i.pendingContext=a,i=bn(g,k),i.payload={element:r},f=f===void 0?null:f,f!==null&&(i.callback=f),r=Qn(p,i,k),r!==null&&(sn(r,p,k,g),Bo(r,p,k)),k}function fl(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function Fp(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var a=r.retryLane;r.retryLane=a!==0&&a<i?a:i}}function cu(r,i){Fp(r,i),(r=r.alternate)&&Fp(r,i)}function X0(){return null}var zp=typeof reportError=="function"?reportError:function(r){console.error(r)};function uu(r){this._internalRoot=r}dl.prototype.render=uu.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(n(409));ul(r,i,null,null)},dl.prototype.unmount=uu.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;Sr(function(){ul(null,r,null,null)}),i[wn]=null}};function dl(r){this._internalRoot=r}dl.prototype.unstable_scheduleHydration=function(r){if(r){var i=kd();r={blockedOn:null,target:r,priority:i};for(var a=0;a<zn.length&&i!==0&&i<zn[a].priority;a++);zn.splice(a,0,r),a===0&&Td(r)}};function fu(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function hl(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Bp(){}function J0(r,i,a,f,p){if(p){if(typeof f=="function"){var g=f;f=function(){var $=fl(k);g.call($)}}var k=Dp(i,f,r,0,null,!1,!1,"",Bp);return r._reactRootContainer=k,r[wn]=k.current,hi(r.nodeType===8?r.parentNode:r),Sr(),k}for(;p=r.lastChild;)r.removeChild(p);if(typeof f=="function"){var E=f;f=function(){var $=fl(C);E.call($)}}var C=au(r,0,!1,null,null,!1,!1,"",Bp);return r._reactRootContainer=C,r[wn]=C.current,hi(r.nodeType===8?r.parentNode:r),Sr(function(){ul(i,C,a,f)}),C}function pl(r,i,a,f,p){var g=a._reactRootContainer;if(g){var k=g;if(typeof p=="function"){var E=p;p=function(){var C=fl(k);E.call(C)}}ul(i,k,r,p)}else k=J0(a,i,r,p,f);return fl(k)}Sd=function(r){switch(r.tag){case 3:var i=r.stateNode;if(i.current.memoizedState.isDehydrated){var a=Ys(i.pendingLanes);a!==0&&($a(i,a|1),bt(i,qe()),(we&6)===0&&(us=qe()+500,Wn()))}break;case 13:Sr(function(){var f=kn(r,1);if(f!==null){var p=ht();sn(f,r,1,p)}}),cu(r,1)}},Pa=function(r){if(r.tag===13){var i=kn(r,134217728);if(i!==null){var a=ht();sn(i,r,134217728,a)}cu(r,134217728)}},_d=function(r){if(r.tag===13){var i=Yn(r),a=kn(r,i);if(a!==null){var f=ht();sn(a,r,i,f)}cu(r,i)}},kd=function(){return Ee},bd=function(r,i){var a=Ee;try{return Ee=r,i()}finally{Ee=a}},Ca=function(r,i,a){switch(i){case"input":if(Vs(r,a),i=a.name,a.type==="radio"&&i!=null){for(a=r;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<a.length;i++){var f=a[i];if(f!==r&&f.form===r.form){var p=jo(f);if(!p)throw Error(n(90));Hs(f),Vs(f,p)}}}break;case"textarea":Pn(r,a);break;case"select":i=a.value,i!=null&&$n(r,!!a.multiple,i,!1)}},ad=nu,cd=Sr;var Y0={usingClientEntryPoint:!1,Events:[gi,Jr,jo,od,ld,nu]},Li={findFiberByHostInstance:hr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Z0={bundleType:Li.bundleType,version:Li.version,rendererPackageName:Li.rendererPackageName,rendererConfig:Li.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=hd(r),r===null?null:r.stateNode},findFiberByHostInstance:Li.findFiberByHostInstance||X0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ml=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ml.isDisabled&&ml.supportsFiber)try{fo=ml.inject(Z0),un=ml}catch{}}return Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y0,Et.createPortal=function(r,i){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fu(i))throw Error(n(200));return G0(r,i,null,a)},Et.createRoot=function(r,i){if(!fu(r))throw Error(n(299));var a=!1,f="",p=zp;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onRecoverableError!==void 0&&(p=i.onRecoverableError)),i=au(r,1,!1,null,null,a,!1,f,p),r[wn]=i.current,hi(r.nodeType===8?r.parentNode:r),new uu(i)},Et.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=hd(i),r=r===null?null:r.stateNode,r},Et.flushSync=function(r){return Sr(r)},Et.hydrate=function(r,i,a){if(!hl(i))throw Error(n(200));return pl(null,r,i,!0,a)},Et.hydrateRoot=function(r,i,a){if(!fu(r))throw Error(n(405));var f=a!=null&&a.hydratedSources||null,p=!1,g="",k=zp;if(a!=null&&(a.unstable_strictMode===!0&&(p=!0),a.identifierPrefix!==void 0&&(g=a.identifierPrefix),a.onRecoverableError!==void 0&&(k=a.onRecoverableError)),i=Dp(i,null,r,1,a??null,p,!1,g,k),r[wn]=i.current,hi(r),f)for(r=0;r<f.length;r++)a=f[r],p=a._getVersion,p=p(a._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[a,p]:i.mutableSourceEagerHydrationData.push(a,p);return new dl(i)},Et.render=function(r,i,a){if(!hl(i))throw Error(n(200));return pl(null,r,i,!1,a)},Et.unmountComponentAtNode=function(r){if(!hl(r))throw Error(n(40));return r._reactRootContainer?(Sr(function(){pl(null,null,r,!1,function(){r._reactRootContainer=null,r[wn]=null})}),!0):!1},Et.unstable_batchedUpdates=nu,Et.unstable_renderSubtreeIntoContainer=function(r,i,a,f){if(!hl(a))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return pl(r,i,a,!1,f)},Et.version="18.3.1-next-f1338f8080-20240426",Et}var Jp;function gx(){if(Jp)return pu.exports;Jp=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),pu.exports=mx(),pu.exports}var Yp;function yx(){if(Yp)return gl;Yp=1;var t=gx();return gl.createRoot=t.createRoot,gl.hydrateRoot=t.hydrateRoot,gl}var vT=yx();const vx="_attach",Bi=Symbol("context"),cg=Symbol("nextInContext"),ug=Symbol("prevByEndTime"),fg=Symbol("nextByStartTime"),Zp=Symbol("events");class wT{constructor(e){xe(this,"startTime");xe(this,"endTime");xe(this,"browserName");xe(this,"channel");xe(this,"platform");xe(this,"wallTime");xe(this,"title");xe(this,"options");xe(this,"pages");xe(this,"actions");xe(this,"attachments");xe(this,"visibleAttachments");xe(this,"events");xe(this,"stdio");xe(this,"errors");xe(this,"errorDescriptors");xe(this,"hasSource");xe(this,"hasStepData");xe(this,"sdkLanguage");xe(this,"testIdAttributeName");xe(this,"sources");xe(this,"resources");e.forEach(s=>wx(s));const n=e.find(s=>s.origin==="library");this.browserName=(n==null?void 0:n.browserName)||"",this.sdkLanguage=n==null?void 0:n.sdkLanguage,this.channel=n==null?void 0:n.channel,this.testIdAttributeName=n==null?void 0:n.testIdAttributeName,this.platform=(n==null?void 0:n.platform)||"",this.title=(n==null?void 0:n.title)||"",this.options=(n==null?void 0:n.options)||{},this.actions=xx(e),this.pages=[].concat(...e.map(s=>s.pages)),this.wallTime=e.map(s=>s.wallTime).reduce((s,o)=>Math.min(s||Number.MAX_VALUE,o),Number.MAX_VALUE),this.startTime=e.map(s=>s.startTime).reduce((s,o)=>Math.min(s,o),Number.MAX_VALUE),this.endTime=e.map(s=>s.endTime).reduce((s,o)=>Math.max(s,o),Number.MIN_VALUE),this.events=[].concat(...e.map(s=>s.events)),this.stdio=[].concat(...e.map(s=>s.stdio)),this.errors=[].concat(...e.map(s=>s.errors)),this.hasSource=e.some(s=>s.hasSource),this.hasStepData=e.some(s=>s.origin==="testRunner"),this.resources=[...e.map(s=>s.resources)].flat(),this.attachments=this.actions.flatMap(s=>{var o;return((o=s.attachments)==null?void 0:o.map(l=>({...l,traceUrl:s.context.traceUrl})))??[]}),this.visibleAttachments=this.attachments.filter(s=>!s.name.startsWith("_")),this.events.sort((s,o)=>s.time-o.time),this.resources.sort((s,o)=>s._monotonicTime-o._monotonicTime),this.errorDescriptors=this.hasStepData?this._errorDescriptorsFromTestRunner():this._errorDescriptorsFromActions(),this.sources=Ax(this.actions,this.errorDescriptors)}failedAction(){return this.actions.findLast(e=>e.error)}_errorDescriptorsFromActions(){var n;const e=[];for(const s of this.actions||[])(n=s.error)!=null&&n.message&&e.push({action:s,stack:s.stack,message:s.error.message});return e}_errorDescriptorsFromTestRunner(){return this.errors.filter(e=>!!e.message).map((e,n)=>({stack:e.stack,message:e.message,context:this.attachments.find(s=>s.name===`_error-context-${n}`)}))}}function wx(t){for(const n of t.pages)n[Bi]=t;for(let n=0;n<t.actions.length;++n){const s=t.actions[n];s[Bi]=t}let e;for(let n=t.actions.length-1;n>=0;n--){const s=t.actions[n];s[cg]=e,s.apiName.includes("route.")||(e=s)}for(const n of t.events)n[Bi]=t;for(const n of t.resources)n[Bi]=t}function xx(t){const e=new Map;for(const o of t){const l=o.traceUrl;let c=e.get(l);c||(c=[],e.set(l,c)),c.push(o)}const n=[];let s=0;for(const[,o]of e){e.size>1&&Sx(o,++s);const l=_x(o);n.push(...l)}n.sort((o,l)=>l.parentId===o.callId?1:o.parentId===l.callId?-1:o.endTime-l.endTime);for(let o=1;o<n.length;++o)n[o][ug]=n[o-1];n.sort((o,l)=>l.parentId===o.callId?-1:o.parentId===l.callId?1:o.startTime-l.startTime);for(let o=0;o+1<n.length;++o)n[o][fg]=n[o+1];return n}function Sx(t,e){for(const n of t)for(const s of n.actions)s.callId&&(s.callId=`${e}:${s.callId}`),s.parentId&&(s.parentId=`${e}:${s.parentId}`)}function _x(t){const e=new Map,n=t.filter(u=>u.origin==="library"),s=t.filter(u=>u.origin==="testRunner");if(!s.length||!n.length)return t.map(u=>u.actions.map(d=>({...d,context:u}))).flat();const o=n.some(u=>u.actions.some(d=>!!d.stepId));for(const u of n)for(const d of u.actions){const h=o?d.stepId:`${d.apiName}@${d.wallTime}`;e.set(h,{...d,context:u})}const l=bx(s,e,o);l&&kx(n,l);const c=new Map;for(const u of s)for(const d of u.actions){const h=o?d.callId:`${d.apiName}@${d.wallTime}`,y=e.get(h);if(y){c.set(d.callId,y.callId),d.error&&(y.error=d.error),d.attachments&&(y.attachments=d.attachments),d.annotations&&(y.annotations=d.annotations),d.parentId&&(y.parentId=c.get(d.parentId)??d.parentId),y.startTime=d.startTime,y.endTime=d.endTime;continue}d.parentId&&(d.parentId=c.get(d.parentId)??d.parentId),e.set(h,{...d,context:u})}return[...e.values()]}function kx(t,e){for(const n of t){n.startTime+=e,n.endTime+=e;for(const s of n.actions)s.startTime&&(s.startTime+=e),s.endTime&&(s.endTime+=e);for(const s of n.events)s.time+=e;for(const s of n.stdio)s.timestamp+=e;for(const s of n.pages)for(const o of s.screencastFrames)o.timestamp+=e;for(const s of n.resources)s._monotonicTime&&(s._monotonicTime+=e)}}function bx(t,e,n){for(const s of t)for(const o of s.actions){if(!o.startTime)continue;const l=n?o.callId:`${o.apiName}@${o.wallTime}`,c=e.get(l);if(c)return o.startTime-c.startTime}return 0}function Ex(t){var s;const e=new Map;for(const o of t)e.set(o.callId,{id:o.callId,parent:void 0,children:[],action:o});const n={id:"",parent:void 0,children:[]};for(const o of e.values()){if((s=o.action)!=null&&s.apiName.startsWith(vx))continue;const l=o.action.parentId&&e.get(o.action.parentId)||n;l.children.push(o),o.parent=l}return{rootItem:n,itemMap:e}}function ql(t){return t[Bi]}function Tx(t){return t[cg]}function em(t){return t[ug]}function tm(t){return t[fg]}function Nx(t){let e=0,n=0;for(const s of Cx(t)){if(s.type==="console"){const o=s.messageType;o==="warning"?++n:o==="error"&&++e}s.type==="event"&&s.method==="pageError"&&++e}return{errors:e,warnings:n}}function Cx(t){let e=t[Zp];if(e)return e;const n=Tx(t);return e=ql(t).events.filter(s=>s.time>=t.startTime&&(!n||s.time<n.startTime)),t[Zp]=e,e}function Ax(t,e){var s;const n=new Map;for(const o of t)for(const l of o.stack||[]){let c=n.get(l.file);c||(c={errors:[],content:void 0},n.set(l.file,c))}for(const o of e){const{action:l,stack:c,message:u}=o;!l||!c||(s=n.get(c[0].file))==null||s.errors.push({line:c[0].line||0,message:u})}return n}const yu=new Set(["page.route","page.routefromhar","page.unroute","page.unrouteall","browsercontext.route","browsercontext.routefromhar","browsercontext.unroute","browsercontext.unrouteall"]);{for(const t of[...yu])yu.add(t+"async");for(const t of["page.route_from_har","page.unroute_all","context.route_from_har","context.unroute_all"])yu.add(t)}const Lx=50,Hl=({sidebarSize:t,sidebarHidden:e=!1,sidebarIsFirst:n=!1,orientation:s="vertical",minSidebarSize:o=Lx,settingName:l,sidebar:c,main:u})=>{const d=Math.max(o,t)*window.devicePixelRatio,[h,y]=As(l?l+"."+s+":size":void 0,d),[v,m]=As(l?l+"."+s+":size":void 0,d),[w,S]=P.useState(null),[_,b]=Mr();let T;s==="vertical"?(T=v/window.devicePixelRatio,_&&_.height<T&&(T=_.height-10)):(T=h/window.devicePixelRatio,_&&_.width<T&&(T=_.width-10)),document.body.style.userSelect=w?"none":"inherit";let N={};return s==="vertical"?n?N={top:w?0:T-4,bottom:w?0:void 0,height:w?"initial":8}:N={bottom:w?0:T-4,top:w?0:void 0,height:w?"initial":8}:n?N={left:w?0:T-4,right:w?0:void 0,width:w?"initial":8}:N={right:w?0:T-4,left:w?0:void 0,width:w?"initial":8},x.jsxs("div",{className:Ue("split-view",s,n&&"sidebar-first"),ref:b,children:[x.jsx("div",{className:"split-view-main",children:u}),!e&&x.jsx("div",{style:{flexBasis:T},className:"split-view-sidebar",children:c}),!e&&x.jsx("div",{style:N,className:"split-view-resizer",onMouseDown:O=>S({offset:s==="vertical"?O.clientY:O.clientX,size:T}),onMouseUp:()=>S(null),onMouseMove:O=>{if(!O.buttons)S(null);else if(w){const D=(s==="vertical"?O.clientY:O.clientX)-w.offset,F=n?w.size+D:w.size-D,B=O.target.parentElement.getBoundingClientRect(),I=Math.min(Math.max(o,F),(s==="vertical"?B.height:B.width)-o);s==="vertical"?m(I*window.devicePixelRatio):y(I*window.devicePixelRatio)}}})]})};function Vu(t){var e,n,s,o,l,c,u,d,h;if(t=t??globalThis,!t.__playwright_builtins__){const y={setTimeout:(e=t.setTimeout)==null?void 0:e.bind(t),clearTimeout:(n=t.clearTimeout)==null?void 0:n.bind(t),setInterval:(s=t.setInterval)==null?void 0:s.bind(t),clearInterval:(o=t.clearInterval)==null?void 0:o.bind(t),requestAnimationFrame:(l=t.requestAnimationFrame)==null?void 0:l.bind(t),cancelAnimationFrame:(c=t.cancelAnimationFrame)==null?void 0:c.bind(t),requestIdleCallback:(u=t.requestIdleCallback)==null?void 0:u.bind(t),cancelIdleCallback:(d=t.cancelIdleCallback)==null?void 0:d.bind(t),performance:t.performance,eval:(h=t.eval)==null?void 0:h.bind(t),Intl:t.Intl,Date:t.Date,Map:t.Map,Set:t.Set};Object.defineProperty(t,"__playwright_builtins__",{value:y,configurable:!1,enumerable:!1,writable:!1})}return t.__playwright_builtins__}const Dt=Vu();Dt.setTimeout;Dt.clearTimeout;Dt.setInterval;Dt.clearInterval;const Cl=Dt.requestAnimationFrame,nm=Dt.cancelAnimationFrame;Dt.requestIdleCallback;Dt.cancelIdleCallback;const jx=Dt.performance;Dt.Intl;Dt.Date;const be=Dt.Map,ke=Dt.Set,Ke=function(t,e,n){return t>=e&&t<=n};function Tt(t){return Ke(t,48,57)}function rm(t){return Tt(t)||Ke(t,65,70)||Ke(t,97,102)}function Ix(t){return Ke(t,65,90)}function Ox(t){return Ke(t,97,122)}function Mx(t){return Ix(t)||Ox(t)}function $x(t){return t>=128}function Al(t){return Mx(t)||$x(t)||t===95}function sm(t){return Al(t)||Tt(t)||t===45}function Px(t){return Ke(t,0,8)||t===11||Ke(t,14,31)||t===127}function Ll(t){return t===10}function Nn(t){return Ll(t)||t===9||t===32}const Rx=1114111;class hf extends Error{constructor(e){super(e),this.name="InvalidCharacterError"}}function Dx(t){const e=[];for(let n=0;n<t.length;n++){let s=t.charCodeAt(n);if(s===13&&t.charCodeAt(n+1)===10&&(s=10,n++),(s===13||s===12)&&(s=10),s===0&&(s=65533),Ke(s,55296,56319)&&Ke(t.charCodeAt(n+1),56320,57343)){const o=s-55296,l=t.charCodeAt(n+1)-56320;s=Math.pow(2,16)+o*Math.pow(2,10)+l,n++}e.push(s)}return e}function Xe(t){if(t<=65535)return String.fromCharCode(t);t-=Math.pow(2,16);const e=Math.floor(t/Math.pow(2,10))+55296,n=t%Math.pow(2,10)+56320;return String.fromCharCode(e)+String.fromCharCode(n)}function Fx(t){const e=Dx(t);let n=-1;const s=[];let o;const l=function(z){return z>=e.length?-1:e[z]},c=function(z){if(z===void 0&&(z=1),z>3)throw"Spec Error: no more than three codepoints of lookahead.";return l(n+z)},u=function(z){return z===void 0&&(z=1),n+=z,o=l(n),!0},d=function(){return n-=1,!0},h=function(z){return z===void 0&&(z=o),z===-1},y=function(){if(v(),u(),Nn(o)){for(;Nn(c());)u();return new Wu}else{if(o===34)return S();if(o===35)if(sm(c())||T(c(1),c(2))){const z=new Tg("");return O(c(1),c(2),c(3))&&(z.type="id"),z.value=U(),z}else return new at(o);else return o===36?c()===61?(u(),new qx):new at(o):o===39?S():o===40?new Sg:o===41?new _g:o===42?c()===61?(u(),new Hx):new at(o):o===43?F()?(d(),m()):new at(o):o===44?new yg:o===45?F()?(d(),m()):c(1)===45&&c(2)===62?(u(2),new pg):R()?(d(),w()):new at(o):o===46?F()?(d(),m()):new at(o):o===58?new mg:o===59?new gg:o===60?c(1)===33&&c(2)===45&&c(3)===45?(u(3),new hg):new at(o):o===64?O(c(1),c(2),c(3))?new Eg(U()):new at(o):o===91?new xg:o===92?N()?(d(),w()):new at(o):o===93?new Ku:o===94?c()===61?(u(),new Ux):new at(o):o===123?new vg:o===124?c()===61?(u(),new Bx):c()===124?(u(),new kg):new at(o):o===125?new wg:o===126?c()===61?(u(),new zx):new at(o):Tt(o)?(d(),m()):Al(o)?(d(),w()):h()?new Il:new at(o)}},v=function(){for(;c(1)===47&&c(2)===42;)for(u(2);;)if(u(),o===42&&c()===47){u();break}else if(h())return},m=function(){const z=B();if(O(c(1),c(2),c(3))){const J=new Vx;return J.value=z.value,J.repr=z.repr,J.type=z.type,J.unit=U(),J}else if(c()===37){u();const J=new Lg;return J.value=z.value,J.repr=z.repr,J}else{const J=new Ag;return J.value=z.value,J.repr=z.repr,J.type=z.type,J}},w=function(){const z=U();if(z.toLowerCase()==="url"&&c()===40){for(u();Nn(c(1))&&Nn(c(2));)u();return c()===34||c()===39?new Ol(z):Nn(c())&&(c(2)===34||c(2)===39)?new Ol(z):_()}else return c()===40?(u(),new Ol(z)):new bg(z)},S=function(z){z===void 0&&(z=o);let J="";for(;u();){if(o===z||h())return new Ng(J);if(Ll(o))return d(),new dg;o===92?h(c())||(Ll(c())?u():J+=Xe(b())):J+=Xe(o)}throw new Error("Internal error")},_=function(){const z=new Cg("");for(;Nn(c());)u();if(h(c()))return z;for(;u();){if(o===41||h())return z;if(Nn(o)){for(;Nn(c());)u();return c()===41||h(c())?(u(),z):(Q(),new jl)}else{if(o===34||o===39||o===40||Px(o))return Q(),new jl;if(o===92)if(N())z.value+=Xe(b());else return Q(),new jl;else z.value+=Xe(o)}}throw new Error("Internal error")},b=function(){if(u(),rm(o)){const z=[o];for(let de=0;de<5&&rm(c());de++)u(),z.push(o);Nn(c())&&u();let J=parseInt(z.map(function(de){return String.fromCharCode(de)}).join(""),16);return J>Rx&&(J=65533),J}else return h()?65533:o},T=function(z,J){return!(z!==92||Ll(J))},N=function(){return T(o,c())},O=function(z,J,de){return z===45?Al(J)||J===45||T(J,de):Al(z)?!0:z===92?T(z,J):!1},R=function(){return O(o,c(1),c(2))},D=function(z,J,de){return z===43||z===45?!!(Tt(J)||J===46&&Tt(de)):z===46?!!Tt(J):!!Tt(z)},F=function(){return D(o,c(1),c(2))},U=function(){let z="";for(;u();)if(sm(o))z+=Xe(o);else if(N())z+=Xe(b());else return d(),z;throw new Error("Internal parse error")},B=function(){let z="",J="integer";for((c()===43||c()===45)&&(u(),z+=Xe(o));Tt(c());)u(),z+=Xe(o);if(c(1)===46&&Tt(c(2)))for(u(),z+=Xe(o),u(),z+=Xe(o),J="number";Tt(c());)u(),z+=Xe(o);const de=c(1),Te=c(2),Le=c(3);if((de===69||de===101)&&Tt(Te))for(u(),z+=Xe(o),u(),z+=Xe(o),J="number";Tt(c());)u(),z+=Xe(o);else if((de===69||de===101)&&(Te===43||Te===45)&&Tt(Le))for(u(),z+=Xe(o),u(),z+=Xe(o),u(),z+=Xe(o),J="number";Tt(c());)u(),z+=Xe(o);const ye=I(z);return{type:J,value:ye,repr:z}},I=function(z){return+z},Q=function(){for(;u();){if(o===41||h())return;N()&&b()}};let W=0;for(;!h(c());)if(s.push(y()),W++,W>e.length*2)throw new Error("I'm infinite-looping!");return s}class Ve{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class dg extends Ve{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class jl extends Ve{constructor(){super(...arguments),this.tokenType="BADURL"}}class Wu extends Ve{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class hg extends Ve{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return"<!--"}}class pg extends Ve{constructor(){super(...arguments),this.tokenType="CDC"}toSource(){return"-->"}}class mg extends Ve{constructor(){super(...arguments),this.tokenType=":"}}class gg extends Ve{constructor(){super(...arguments),this.tokenType=";"}}class yg extends Ve{constructor(){super(...arguments),this.tokenType=","}}class Ms extends Ve{constructor(){super(...arguments),this.value="",this.mirror=""}}class vg extends Ms{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class wg extends Ms{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class xg extends Ms{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class Ku extends Ms{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class Sg extends Ms{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class _g extends Ms{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class zx extends Ve{constructor(){super(...arguments),this.tokenType="~="}}class Bx extends Ve{constructor(){super(...arguments),this.tokenType="|="}}class Ux extends Ve{constructor(){super(...arguments),this.tokenType="^="}}class qx extends Ve{constructor(){super(...arguments),this.tokenType="$="}}class Hx extends Ve{constructor(){super(...arguments),this.tokenType="*="}}class kg extends Ve{constructor(){super(...arguments),this.tokenType="||"}}class Il extends Ve{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class at extends Ve{constructor(e){super(),this.tokenType="DELIM",this.value="",this.value=Xe(e)}toString(){return"DELIM("+this.value+")"}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e}toSource(){return this.value==="\\"?`\\
41
+ `+g.stack}return{value:r,source:i,stack:p,digest:null}}function Pc(r,i,a){return{value:r,source:null,stack:a??null,digest:i??null}}function Rc(r,i){try{console.error(i.value)}catch(a){setTimeout(function(){throw a})}}var A0=typeof WeakMap=="function"?WeakMap:Map;function Jh(r,i,a){a=bn(-1,a),a.tag=3,a.payload={element:null};var f=i.value;return a.callback=function(){nl||(nl=!0,Yc=f),Rc(r,i)},a}function Yh(r,i,a){a=bn(-1,a),a.tag=3;var f=r.type.getDerivedStateFromError;if(typeof f=="function"){var p=i.value;a.payload=function(){return f(p)},a.callback=function(){Rc(r,i)}}var g=r.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(a.callback=function(){Rc(r,i),typeof f!="function"&&(Xn===null?Xn=new Set([this]):Xn.add(this));var k=i.stack;this.componentDidCatch(i.value,{componentStack:k!==null?k:""})}),a}function Zh(r,i,a){var f=r.pingCache;if(f===null){f=r.pingCache=new A0;var p=new Set;f.set(i,p)}else p=f.get(i),p===void 0&&(p=new Set,f.set(i,p));p.has(a)||(p.add(a),r=q0.bind(null,r,i,a),i.then(r,r))}function ep(r){do{var i;if((i=r.tag===13)&&(i=r.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return r;r=r.return}while(r!==null);return null}function tp(r,i,a,f,p){return(r.mode&1)===0?(r===i?r.flags|=65536:(r.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(i=bn(-1,1),i.tag=2,Qn(a,i,1))),a.lanes|=1),r):(r.flags|=65536,r.lanes=p,r)}var L0=R.ReactCurrentOwner,_t=!1;function dt(r,i,a,f){i.child=r===null?Sh(i,null,a,f):rs(i,r.child,a,f)}function np(r,i,a,f,p){a=a.render;var g=i.ref;return is(i,p),f=Cc(r,i,a,f,g,p),a=Ac(),r!==null&&!_t?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~p,En(r,i,p)):(Oe&&a&&fc(i),i.flags|=1,dt(r,i,f,p),i.child)}function rp(r,i,a,f,p){if(r===null){var g=a.type;return typeof g=="function"&&!iu(g)&&g.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(i.tag=15,i.type=g,sp(r,i,g,f,p)):(r=al(a.type,null,f,i,i.mode,p),r.ref=i.ref,r.return=i,i.child=r)}if(g=r.child,(r.lanes&p)===0){var k=g.memoizedProps;if(a=a.compare,a=a!==null?a:ui,a(k,f)&&r.ref===i.ref)return En(r,i,p)}return i.flags|=1,r=er(g,f),r.ref=i.ref,r.return=i,i.child=r}function sp(r,i,a,f,p){if(r!==null){var g=r.memoizedProps;if(ui(g,f)&&r.ref===i.ref)if(_t=!1,i.pendingProps=f=g,(r.lanes&p)!==0)(r.flags&131072)!==0&&(_t=!0);else return i.lanes=r.lanes,En(r,i,p)}return Dc(r,i,a,f,p)}function ip(r,i,a){var f=i.pendingProps,p=f.children,g=r!==null?r.memoizedState:null;if(f.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(cs,$t),$t|=a;else{if((a&1073741824)===0)return r=g!==null?g.baseLanes|a:a,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:r,cachePool:null,transitions:null},i.updateQueue=null,Ae(cs,$t),$t|=r,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},f=g!==null?g.baseLanes:a,Ae(cs,$t),$t|=f}else g!==null?(f=g.baseLanes|a,i.memoizedState=null):f=a,Ae(cs,$t),$t|=f;return dt(r,i,p,a),i.child}function op(r,i){var a=i.ref;(r===null&&a!==null||r!==null&&r.ref!==a)&&(i.flags|=512,i.flags|=2097152)}function Dc(r,i,a,f,p){var g=St(a)?pr:st.current;return g=Zr(i,g),is(i,p),a=Cc(r,i,a,f,g,p),f=Ac(),r!==null&&!_t?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~p,En(r,i,p)):(Oe&&f&&fc(i),i.flags|=1,dt(r,i,a,p),i.child)}function lp(r,i,a,f,p){if(St(a)){var g=!0;Oo(i)}else g=!1;if(is(i,p),i.stateNode===null)Jo(r,i),Gh(i,a,f),$c(i,a,f,p),f=!0;else if(r===null){var k=i.stateNode,E=i.memoizedProps;k.props=E;var C=k.context,$=a.contextType;typeof $=="object"&&$!==null?$=Bt($):($=St(a)?pr:st.current,$=Zr(i,$));var V=a.getDerivedStateFromProps,K=typeof V=="function"||typeof k.getSnapshotBeforeUpdate=="function";K||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(E!==f||C!==$)&&Xh(i,k,f,$),Kn=!1;var H=i.memoizedState;k.state=H,Uo(i,f,k,p),C=i.memoizedState,E!==f||H!==C||xt.current||Kn?(typeof V=="function"&&(Mc(i,a,V,f),C=i.memoizedState),(E=Kn||Qh(i,a,E,f,H,C,$))?(K||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(i.flags|=4194308)):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=f,i.memoizedState=C),k.props=f,k.state=C,k.context=$,f=E):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),f=!1)}else{k=i.stateNode,kh(r,i),E=i.memoizedProps,$=i.type===i.elementType?E:tn(i.type,E),k.props=$,K=i.pendingProps,H=k.context,C=a.contextType,typeof C=="object"&&C!==null?C=Bt(C):(C=St(a)?pr:st.current,C=Zr(i,C));var Y=a.getDerivedStateFromProps;(V=typeof Y=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(E!==K||H!==C)&&Xh(i,k,f,C),Kn=!1,H=i.memoizedState,k.state=H,Uo(i,f,k,p);var te=i.memoizedState;E!==K||H!==te||xt.current||Kn?(typeof Y=="function"&&(Mc(i,a,Y,f),te=i.memoizedState),($=Kn||Qh(i,a,$,f,H,te,C)||!1)?(V||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(f,te,C),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(f,te,C)),typeof k.componentDidUpdate=="function"&&(i.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof k.componentDidUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=1024),i.memoizedProps=f,i.memoizedState=te),k.props=f,k.state=te,k.context=C,f=$):(typeof k.componentDidUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||E===r.memoizedProps&&H===r.memoizedState||(i.flags|=1024),f=!1)}return Fc(r,i,a,f,g,p)}function Fc(r,i,a,f,p,g){op(r,i);var k=(i.flags&128)!==0;if(!f&&!k)return p&&dh(i,a,!1),En(r,i,g);f=i.stateNode,L0.current=i;var E=k&&typeof a.getDerivedStateFromError!="function"?null:f.render();return i.flags|=1,r!==null&&k?(i.child=rs(i,r.child,null,g),i.child=rs(i,null,E,g)):dt(r,i,E,g),i.memoizedState=f.state,p&&dh(i,a,!0),i.child}function ap(r){var i=r.stateNode;i.pendingContext?uh(r,i.pendingContext,i.pendingContext!==i.context):i.context&&uh(r,i.context,!1),_c(r,i.containerInfo)}function cp(r,i,a,f,p){return ns(),mc(p),i.flags|=256,dt(r,i,a,f),i.child}var zc={dehydrated:null,treeContext:null,retryLane:0};function Bc(r){return{baseLanes:r,cachePool:null,transitions:null}}function up(r,i,a){var f=i.pendingProps,p=Pe.current,g=!1,k=(i.flags&128)!==0,E;if((E=k)||(E=r!==null&&r.memoizedState===null?!1:(p&2)!==0),E?(g=!0,i.flags&=-129):(r===null||r.memoizedState!==null)&&(p|=1),Ae(Pe,p&1),r===null)return pc(i),r=i.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((i.mode&1)===0?i.lanes=1:r.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(k=f.children,r=f.fallback,g?(f=i.mode,g=i.child,k={mode:"hidden",children:k},(f&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=k):g=cl(k,f,0,null),r=br(r,f,a,null),g.return=i,r.return=i,g.sibling=r,i.child=g,i.child.memoizedState=Bc(a),i.memoizedState=zc,r):Uc(i,k));if(p=r.memoizedState,p!==null&&(E=p.dehydrated,E!==null))return j0(r,i,k,f,E,p,a);if(g){g=f.fallback,k=i.mode,p=r.child,E=p.sibling;var C={mode:"hidden",children:f.children};return(k&1)===0&&i.child!==p?(f=i.child,f.childLanes=0,f.pendingProps=C,i.deletions=null):(f=er(p,C),f.subtreeFlags=p.subtreeFlags&14680064),E!==null?g=er(E,g):(g=br(g,k,a,null),g.flags|=2),g.return=i,f.return=i,f.sibling=g,i.child=f,f=g,g=i.child,k=r.child.memoizedState,k=k===null?Bc(a):{baseLanes:k.baseLanes|a,cachePool:null,transitions:k.transitions},g.memoizedState=k,g.childLanes=r.childLanes&~a,i.memoizedState=zc,f}return g=r.child,r=g.sibling,f=er(g,{mode:"visible",children:f.children}),(i.mode&1)===0&&(f.lanes=a),f.return=i,f.sibling=null,r!==null&&(a=i.deletions,a===null?(i.deletions=[r],i.flags|=16):a.push(r)),i.child=f,i.memoizedState=null,f}function Uc(r,i){return i=cl({mode:"visible",children:i},r.mode,0,null),i.return=r,r.child=i}function Xo(r,i,a,f){return f!==null&&mc(f),rs(i,r.child,null,a),r=Uc(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function j0(r,i,a,f,p,g,k){if(a)return i.flags&256?(i.flags&=-257,f=Pc(Error(n(422))),Xo(r,i,k,f)):i.memoizedState!==null?(i.child=r.child,i.flags|=128,null):(g=f.fallback,p=i.mode,f=cl({mode:"visible",children:f.children},p,0,null),g=br(g,p,k,null),g.flags|=2,f.return=i,g.return=i,f.sibling=g,i.child=f,(i.mode&1)!==0&&rs(i,r.child,null,k),i.child.memoizedState=Bc(k),i.memoizedState=zc,g);if((i.mode&1)===0)return Xo(r,i,k,null);if(p.data==="$!"){if(f=p.nextSibling&&p.nextSibling.dataset,f)var E=f.dgst;return f=E,g=Error(n(419)),f=Pc(g,f,void 0),Xo(r,i,k,f)}if(E=(k&r.childLanes)!==0,_t||E){if(f=Ye,f!==null){switch(k&-k){case 4:p=2;break;case 16:p=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:p=32;break;case 536870912:p=268435456;break;default:p=0}p=(p&(f.suspendedLanes|k))!==0?0:p,p!==0&&p!==g.retryLane&&(g.retryLane=p,kn(r,p),sn(f,r,p,-1))}return su(),f=Pc(Error(n(421))),Xo(r,i,k,f)}return p.data==="$?"?(i.flags|=128,i.child=r.child,i=H0.bind(null,r),p._reactRetry=i,null):(r=g.treeContext,Mt=qn(p.nextSibling),Ot=i,Oe=!0,en=null,r!==null&&(Ft[zt++]=Sn,Ft[zt++]=_n,Ft[zt++]=mr,Sn=r.id,_n=r.overflow,mr=i),i=Uc(i,f.children),i.flags|=4096,i)}function fp(r,i,a){r.lanes|=i;var f=r.alternate;f!==null&&(f.lanes|=i),wc(r.return,i,a)}function qc(r,i,a,f,p){var g=r.memoizedState;g===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:f,tail:a,tailMode:p}:(g.isBackwards=i,g.rendering=null,g.renderingStartTime=0,g.last=f,g.tail=a,g.tailMode=p)}function dp(r,i,a){var f=i.pendingProps,p=f.revealOrder,g=f.tail;if(dt(r,i,f.children,a),f=Pe.current,(f&2)!==0)f=f&1|2,i.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&fp(r,a,i);else if(r.tag===19)fp(r,a,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}f&=1}if(Ae(Pe,f),(i.mode&1)===0)i.memoizedState=null;else switch(p){case"forwards":for(a=i.child,p=null;a!==null;)r=a.alternate,r!==null&&qo(r)===null&&(p=a),a=a.sibling;a=p,a===null?(p=i.child,i.child=null):(p=a.sibling,a.sibling=null),qc(i,!1,p,a,g);break;case"backwards":for(a=null,p=i.child,i.child=null;p!==null;){if(r=p.alternate,r!==null&&qo(r)===null){i.child=p;break}r=p.sibling,p.sibling=a,a=p,p=r}qc(i,!0,a,null,g);break;case"together":qc(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Jo(r,i){(i.mode&1)===0&&r!==null&&(r.alternate=null,i.alternate=null,i.flags|=2)}function En(r,i,a){if(r!==null&&(i.dependencies=r.dependencies),xr|=i.lanes,(a&i.childLanes)===0)return null;if(r!==null&&i.child!==r.child)throw Error(n(153));if(i.child!==null){for(r=i.child,a=er(r,r.pendingProps),i.child=a,a.return=i;r.sibling!==null;)r=r.sibling,a=a.sibling=er(r,r.pendingProps),a.return=i;a.sibling=null}return i.child}function I0(r,i,a){switch(i.tag){case 3:ap(i),ns();break;case 5:Th(i);break;case 1:St(i.type)&&Oo(i);break;case 4:_c(i,i.stateNode.containerInfo);break;case 10:var f=i.type._context,p=i.memoizedProps.value;Ae(Fo,f._currentValue),f._currentValue=p;break;case 13:if(f=i.memoizedState,f!==null)return f.dehydrated!==null?(Ae(Pe,Pe.current&1),i.flags|=128,null):(a&i.child.childLanes)!==0?up(r,i,a):(Ae(Pe,Pe.current&1),r=En(r,i,a),r!==null?r.sibling:null);Ae(Pe,Pe.current&1);break;case 19:if(f=(a&i.childLanes)!==0,(r.flags&128)!==0){if(f)return dp(r,i,a);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Ae(Pe,Pe.current),f)break;return null;case 22:case 23:return i.lanes=0,ip(r,i,a)}return En(r,i,a)}var hp,Hc,pp,mp;hp=function(r,i){for(var a=i.child;a!==null;){if(a.tag===5||a.tag===6)r.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Hc=function(){},pp=function(r,i,a,f){var p=r.memoizedProps;if(p!==f){r=i.stateNode,vr(dn.current);var g=null;switch(a){case"input":p=cn(r,p),f=cn(r,f),g=[];break;case"select":p=Z({},p,{value:void 0}),f=Z({},f,{value:void 0}),g=[];break;case"textarea":p=Ws(r,p),f=Ws(r,f),g=[];break;default:typeof p.onClick!="function"&&typeof f.onClick=="function"&&(r.onclick=Lo)}ba(a,f);var k;a=null;for($ in p)if(!f.hasOwnProperty($)&&p.hasOwnProperty($)&&p[$]!=null)if($==="style"){var E=p[$];for(k in E)E.hasOwnProperty(k)&&(a||(a={}),a[k]="")}else $!=="dangerouslySetInnerHTML"&&$!=="children"&&$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&$!=="autoFocus"&&(o.hasOwnProperty($)?g||(g=[]):(g=g||[]).push($,null));for($ in f){var C=f[$];if(E=p!=null?p[$]:void 0,f.hasOwnProperty($)&&C!==E&&(C!=null||E!=null))if($==="style")if(E){for(k in E)!E.hasOwnProperty(k)||C&&C.hasOwnProperty(k)||(a||(a={}),a[k]="");for(k in C)C.hasOwnProperty(k)&&E[k]!==C[k]&&(a||(a={}),a[k]=C[k])}else a||(g||(g=[]),g.push($,a)),a=C;else $==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,E=E?E.__html:void 0,C!=null&&E!==C&&(g=g||[]).push($,C)):$==="children"?typeof C!="string"&&typeof C!="number"||(g=g||[]).push($,""+C):$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&(o.hasOwnProperty($)?(C!=null&&$==="onScroll"&&je("scroll",r),g||E===C||(g=[])):(g=g||[]).push($,C))}a&&(g=g||[]).push("style",a);var $=g;(i.updateQueue=$)&&(i.flags|=4)}},mp=function(r,i,a,f){a!==f&&(i.flags|=4)};function Ei(r,i){if(!Oe)switch(r.tailMode){case"hidden":i=r.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?r.tail=null:a.sibling=null;break;case"collapsed":a=r.tail;for(var f=null;a!==null;)a.alternate!==null&&(f=a),a=a.sibling;f===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:f.sibling=null}}function ot(r){var i=r.alternate!==null&&r.alternate.child===r.child,a=0,f=0;if(i)for(var p=r.child;p!==null;)a|=p.lanes|p.childLanes,f|=p.subtreeFlags&14680064,f|=p.flags&14680064,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)a|=p.lanes|p.childLanes,f|=p.subtreeFlags,f|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=f,r.childLanes=a,i}function O0(r,i,a){var f=i.pendingProps;switch(dc(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(i),null;case 1:return St(i.type)&&Io(),ot(i),null;case 3:return f=i.stateNode,os(),Ie(xt),Ie(st),Ec(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(r===null||r.child===null)&&(Ro(i)?i.flags|=4:r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,en!==null&&(tu(en),en=null))),Hc(r,i),ot(i),null;case 5:kc(i);var p=vr(xi.current);if(a=i.type,r!==null&&i.stateNode!=null)pp(r,i,a,f,p),r.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!f){if(i.stateNode===null)throw Error(n(166));return ot(i),null}if(r=vr(dn.current),Ro(i)){f=i.stateNode,a=i.type;var g=i.memoizedProps;switch(f[fn]=i,f[mi]=g,r=(i.mode&1)!==0,a){case"dialog":je("cancel",f),je("close",f);break;case"iframe":case"object":case"embed":je("load",f);break;case"video":case"audio":for(p=0;p<di.length;p++)je(di[p],f);break;case"source":je("error",f);break;case"img":case"image":case"link":je("error",f),je("load",f);break;case"details":je("toggle",f);break;case"input":so(f,g),je("invalid",f);break;case"select":f._wrapperState={wasMultiple:!!g.multiple},je("invalid",f);break;case"textarea":lo(f,g),je("invalid",f)}ba(a,g),p=null;for(var k in g)if(g.hasOwnProperty(k)){var E=g[k];k==="children"?typeof E=="string"?f.textContent!==E&&(g.suppressHydrationWarning!==!0&&Ao(f.textContent,E,r),p=["children",E]):typeof E=="number"&&f.textContent!==""+E&&(g.suppressHydrationWarning!==!0&&Ao(f.textContent,E,r),p=["children",""+E]):o.hasOwnProperty(k)&&E!=null&&k==="onScroll"&&je("scroll",f)}switch(a){case"input":Mn(f),oo(f,g,!0);break;case"textarea":Mn(f),zr(f);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(f.onclick=Lo)}f=p,i.updateQueue=f,f!==null&&(i.flags|=4)}else{k=p.nodeType===9?p:p.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=fr(a)),r==="http://www.w3.org/1999/xhtml"?a==="script"?(r=k.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof f.is=="string"?r=k.createElement(a,{is:f.is}):(r=k.createElement(a),a==="select"&&(k=r,f.multiple?k.multiple=!0:f.size&&(k.size=f.size))):r=k.createElementNS(r,a),r[fn]=i,r[mi]=f,hp(r,i,!1,!1),i.stateNode=r;e:{switch(k=Ea(a,f),a){case"dialog":je("cancel",r),je("close",r),p=f;break;case"iframe":case"object":case"embed":je("load",r),p=f;break;case"video":case"audio":for(p=0;p<di.length;p++)je(di[p],r);p=f;break;case"source":je("error",r),p=f;break;case"img":case"image":case"link":je("error",r),je("load",r),p=f;break;case"details":je("toggle",r),p=f;break;case"input":so(r,f),p=cn(r,f),je("invalid",r);break;case"option":p=f;break;case"select":r._wrapperState={wasMultiple:!!f.multiple},p=Z({},f,{value:void 0}),je("invalid",r);break;case"textarea":lo(r,f),p=Ws(r,f),je("invalid",r);break;default:p=f}ba(a,p),E=p;for(g in E)if(E.hasOwnProperty(g)){var C=E[g];g==="style"?sd(r,C):g==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,C!=null&&Qs(r,C)):g==="children"?typeof C=="string"?(a!=="textarea"||C!=="")&&le(r,C):typeof C=="number"&&le(r,""+C):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(o.hasOwnProperty(g)?C!=null&&g==="onScroll"&&je("scroll",r):C!=null&&O(r,g,C,k))}switch(a){case"input":Mn(r),oo(r,f,!1);break;case"textarea":Mn(r),zr(r);break;case"option":f.value!=null&&r.setAttribute("value",""+Se(f.value));break;case"select":r.multiple=!!f.multiple,g=f.value,g!=null?$n(r,!!f.multiple,g,!1):f.defaultValue!=null&&$n(r,!!f.multiple,f.defaultValue,!0);break;default:typeof p.onClick=="function"&&(r.onclick=Lo)}switch(a){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}}f&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return ot(i),null;case 6:if(r&&i.stateNode!=null)mp(r,i,r.memoizedProps,f);else{if(typeof f!="string"&&i.stateNode===null)throw Error(n(166));if(a=vr(xi.current),vr(dn.current),Ro(i)){if(f=i.stateNode,a=i.memoizedProps,f[fn]=i,(g=f.nodeValue!==a)&&(r=Ot,r!==null))switch(r.tag){case 3:Ao(f.nodeValue,a,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Ao(f.nodeValue,a,(r.mode&1)!==0)}g&&(i.flags|=4)}else f=(a.nodeType===9?a:a.ownerDocument).createTextNode(f),f[fn]=i,i.stateNode=f}return ot(i),null;case 13:if(Ie(Pe),f=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Oe&&Mt!==null&&(i.mode&1)!==0&&(i.flags&128)===0)vh(),ns(),i.flags|=98560,g=!1;else if(g=Ro(i),f!==null&&f.dehydrated!==null){if(r===null){if(!g)throw Error(n(318));if(g=i.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(n(317));g[fn]=i}else ns(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;ot(i),g=!1}else en!==null&&(tu(en),en=null),g=!0;if(!g)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=a,i):(f=f!==null,f!==(r!==null&&r.memoizedState!==null)&&f&&(i.child.flags|=8192,(i.mode&1)!==0&&(r===null||(Pe.current&1)!==0?Ge===0&&(Ge=3):su())),i.updateQueue!==null&&(i.flags|=4),ot(i),null);case 4:return os(),Hc(r,i),r===null&&hi(i.stateNode.containerInfo),ot(i),null;case 10:return vc(i.type._context),ot(i),null;case 17:return St(i.type)&&Io(),ot(i),null;case 19:if(Ie(Pe),g=i.memoizedState,g===null)return ot(i),null;if(f=(i.flags&128)!==0,k=g.rendering,k===null)if(f)Ei(g,!1);else{if(Ge!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(k=qo(r),k!==null){for(i.flags|=128,Ei(g,!1),f=k.updateQueue,f!==null&&(i.updateQueue=f,i.flags|=4),i.subtreeFlags=0,f=a,a=i.child;a!==null;)g=a,r=f,g.flags&=14680066,k=g.alternate,k===null?(g.childLanes=0,g.lanes=r,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=k.childLanes,g.lanes=k.lanes,g.child=k.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=k.memoizedProps,g.memoizedState=k.memoizedState,g.updateQueue=k.updateQueue,g.type=k.type,r=k.dependencies,g.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),a=a.sibling;return Ae(Pe,Pe.current&1|2),i.child}r=r.sibling}g.tail!==null&&qe()>us&&(i.flags|=128,f=!0,Ei(g,!1),i.lanes=4194304)}else{if(!f)if(r=qo(k),r!==null){if(i.flags|=128,f=!0,a=r.updateQueue,a!==null&&(i.updateQueue=a,i.flags|=4),Ei(g,!0),g.tail===null&&g.tailMode==="hidden"&&!k.alternate&&!Oe)return ot(i),null}else 2*qe()-g.renderingStartTime>us&&a!==1073741824&&(i.flags|=128,f=!0,Ei(g,!1),i.lanes=4194304);g.isBackwards?(k.sibling=i.child,i.child=k):(a=g.last,a!==null?a.sibling=k:i.child=k,g.last=k)}return g.tail!==null?(i=g.tail,g.rendering=i,g.tail=i.sibling,g.renderingStartTime=qe(),i.sibling=null,a=Pe.current,Ae(Pe,f?a&1|2:a&1),i):(ot(i),null);case 22:case 23:return ru(),f=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==f&&(i.flags|=8192),f&&(i.mode&1)!==0?($t&1073741824)!==0&&(ot(i),i.subtreeFlags&6&&(i.flags|=8192)):ot(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function M0(r,i){switch(dc(i),i.tag){case 1:return St(i.type)&&Io(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return os(),Ie(xt),Ie(st),Ec(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 5:return kc(i),null;case 13:if(Ie(Pe),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(n(340));ns()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return Ie(Pe),null;case 4:return os(),null;case 10:return vc(i.type._context),null;case 22:case 23:return ru(),null;case 24:return null;default:return null}}var Yo=!1,lt=!1,$0=typeof WeakSet=="function"?WeakSet:Set,ee=null;function as(r,i){var a=r.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(f){Be(r,i,f)}else a.current=null}function Vc(r,i,a){try{a()}catch(f){Be(r,i,f)}}var gp=!1;function P0(r,i){if(rc=vo,r=Qd(),Ga(r)){if("selectionStart"in r)var a={start:r.selectionStart,end:r.selectionEnd};else e:{a=(a=r.ownerDocument)&&a.defaultView||window;var f=a.getSelection&&a.getSelection();if(f&&f.rangeCount!==0){a=f.anchorNode;var p=f.anchorOffset,g=f.focusNode;f=f.focusOffset;try{a.nodeType,g.nodeType}catch{a=null;break e}var k=0,E=-1,C=-1,$=0,V=0,K=r,H=null;t:for(;;){for(var Y;K!==a||p!==0&&K.nodeType!==3||(E=k+p),K!==g||f!==0&&K.nodeType!==3||(C=k+f),K.nodeType===3&&(k+=K.nodeValue.length),(Y=K.firstChild)!==null;)H=K,K=Y;for(;;){if(K===r)break t;if(H===a&&++$===p&&(E=k),H===g&&++V===f&&(C=k),(Y=K.nextSibling)!==null)break;K=H,H=K.parentNode}K=Y}a=E===-1||C===-1?null:{start:E,end:C}}else a=null}a=a||{start:0,end:0}}else a=null;for(sc={focusedElem:r,selectionRange:a},vo=!1,ee=i;ee!==null;)if(i=ee,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,ee=r;else for(;ee!==null;){i=ee;try{var te=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(te!==null){var ne=te.memoizedProps,He=te.memoizedState,j=i.stateNode,A=j.getSnapshotBeforeUpdate(i.elementType===i.type?ne:tn(i.type,ne),He);j.__reactInternalSnapshotBeforeUpdate=A}break;case 3:var M=i.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(G){Be(i,i.return,G)}if(r=i.sibling,r!==null){r.return=i.return,ee=r;break}ee=i.return}return te=gp,gp=!1,te}function Ti(r,i,a){var f=i.updateQueue;if(f=f!==null?f.lastEffect:null,f!==null){var p=f=f.next;do{if((p.tag&r)===r){var g=p.destroy;p.destroy=void 0,g!==void 0&&Vc(i,a,g)}p=p.next}while(p!==f)}}function Zo(r,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do{if((a.tag&r)===r){var f=a.create;a.destroy=f()}a=a.next}while(a!==i)}}function Wc(r){var i=r.ref;if(i!==null){var a=r.stateNode;switch(r.tag){case 5:r=a;break;default:r=a}typeof i=="function"?i(r):i.current=r}}function yp(r){var i=r.alternate;i!==null&&(r.alternate=null,yp(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[fn],delete i[mi],delete i[ac],delete i[v0],delete i[w0])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function vp(r){return r.tag===5||r.tag===3||r.tag===4}function wp(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||vp(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Kc(r,i,a){var f=r.tag;if(f===5||f===6)r=r.stateNode,i?a.nodeType===8?a.parentNode.insertBefore(r,i):a.insertBefore(r,i):(a.nodeType===8?(i=a.parentNode,i.insertBefore(r,a)):(i=a,i.appendChild(r)),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=Lo));else if(f!==4&&(r=r.child,r!==null))for(Kc(r,i,a),r=r.sibling;r!==null;)Kc(r,i,a),r=r.sibling}function Qc(r,i,a){var f=r.tag;if(f===5||f===6)r=r.stateNode,i?a.insertBefore(r,i):a.appendChild(r);else if(f!==4&&(r=r.child,r!==null))for(Qc(r,i,a),r=r.sibling;r!==null;)Qc(r,i,a),r=r.sibling}var tt=null,nn=!1;function Gn(r,i,a){for(a=a.child;a!==null;)xp(r,i,a),a=a.sibling}function xp(r,i,a){if(un&&typeof un.onCommitFiberUnmount=="function")try{un.onCommitFiberUnmount(fo,a)}catch{}switch(a.tag){case 5:lt||as(a,i);case 6:var f=tt,p=nn;tt=null,Gn(r,i,a),tt=f,nn=p,tt!==null&&(nn?(r=tt,a=a.stateNode,r.nodeType===8?r.parentNode.removeChild(a):r.removeChild(a)):tt.removeChild(a.stateNode));break;case 18:tt!==null&&(nn?(r=tt,a=a.stateNode,r.nodeType===8?lc(r.parentNode,a):r.nodeType===1&&lc(r,a),si(r)):lc(tt,a.stateNode));break;case 4:f=tt,p=nn,tt=a.stateNode.containerInfo,nn=!0,Gn(r,i,a),tt=f,nn=p;break;case 0:case 11:case 14:case 15:if(!lt&&(f=a.updateQueue,f!==null&&(f=f.lastEffect,f!==null))){p=f=f.next;do{var g=p,k=g.destroy;g=g.tag,k!==void 0&&((g&2)!==0||(g&4)!==0)&&Vc(a,i,k),p=p.next}while(p!==f)}Gn(r,i,a);break;case 1:if(!lt&&(as(a,i),f=a.stateNode,typeof f.componentWillUnmount=="function"))try{f.props=a.memoizedProps,f.state=a.memoizedState,f.componentWillUnmount()}catch(E){Be(a,i,E)}Gn(r,i,a);break;case 21:Gn(r,i,a);break;case 22:a.mode&1?(lt=(f=lt)||a.memoizedState!==null,Gn(r,i,a),lt=f):Gn(r,i,a);break;default:Gn(r,i,a)}}function Sp(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var a=r.stateNode;a===null&&(a=r.stateNode=new $0),i.forEach(function(f){var p=V0.bind(null,r,f);a.has(f)||(a.add(f),f.then(p,p))})}}function rn(r,i){var a=i.deletions;if(a!==null)for(var f=0;f<a.length;f++){var p=a[f];try{var g=r,k=i,E=k;e:for(;E!==null;){switch(E.tag){case 5:tt=E.stateNode,nn=!1;break e;case 3:tt=E.stateNode.containerInfo,nn=!0;break e;case 4:tt=E.stateNode.containerInfo,nn=!0;break e}E=E.return}if(tt===null)throw Error(n(160));xp(g,k,p),tt=null,nn=!1;var C=p.alternate;C!==null&&(C.return=null),p.return=null}catch($){Be(p,i,$)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)_p(i,r),i=i.sibling}function _p(r,i){var a=r.alternate,f=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(rn(i,r),pn(r),f&4){try{Ti(3,r,r.return),Zo(3,r)}catch(ne){Be(r,r.return,ne)}try{Ti(5,r,r.return)}catch(ne){Be(r,r.return,ne)}}break;case 1:rn(i,r),pn(r),f&512&&a!==null&&as(a,a.return);break;case 5:if(rn(i,r),pn(r),f&512&&a!==null&&as(a,a.return),r.flags&32){var p=r.stateNode;try{le(p,"")}catch(ne){Be(r,r.return,ne)}}if(f&4&&(p=r.stateNode,p!=null)){var g=r.memoizedProps,k=a!==null?a.memoizedProps:g,E=r.type,C=r.updateQueue;if(r.updateQueue=null,C!==null)try{E==="input"&&g.type==="radio"&&g.name!=null&&io(p,g),Ea(E,k);var $=Ea(E,g);for(k=0;k<C.length;k+=2){var V=C[k],K=C[k+1];V==="style"?sd(p,K):V==="dangerouslySetInnerHTML"?Qs(p,K):V==="children"?le(p,K):O(p,V,K,$)}switch(E){case"input":Vs(p,g);break;case"textarea":Pn(p,g);break;case"select":var H=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!g.multiple;var Y=g.value;Y!=null?$n(p,!!g.multiple,Y,!1):H!==!!g.multiple&&(g.defaultValue!=null?$n(p,!!g.multiple,g.defaultValue,!0):$n(p,!!g.multiple,g.multiple?[]:"",!1))}p[mi]=g}catch(ne){Be(r,r.return,ne)}}break;case 6:if(rn(i,r),pn(r),f&4){if(r.stateNode===null)throw Error(n(162));p=r.stateNode,g=r.memoizedProps;try{p.nodeValue=g}catch(ne){Be(r,r.return,ne)}}break;case 3:if(rn(i,r),pn(r),f&4&&a!==null&&a.memoizedState.isDehydrated)try{si(i.containerInfo)}catch(ne){Be(r,r.return,ne)}break;case 4:rn(i,r),pn(r);break;case 13:rn(i,r),pn(r),p=r.child,p.flags&8192&&(g=p.memoizedState!==null,p.stateNode.isHidden=g,!g||p.alternate!==null&&p.alternate.memoizedState!==null||(Jc=qe())),f&4&&Sp(r);break;case 22:if(V=a!==null&&a.memoizedState!==null,r.mode&1?(lt=($=lt)||V,rn(i,r),lt=$):rn(i,r),pn(r),f&8192){if($=r.memoizedState!==null,(r.stateNode.isHidden=$)&&!V&&(r.mode&1)!==0)for(ee=r,V=r.child;V!==null;){for(K=ee=V;ee!==null;){switch(H=ee,Y=H.child,H.tag){case 0:case 11:case 14:case 15:Ti(4,H,H.return);break;case 1:as(H,H.return);var te=H.stateNode;if(typeof te.componentWillUnmount=="function"){f=H,a=H.return;try{i=f,te.props=i.memoizedProps,te.state=i.memoizedState,te.componentWillUnmount()}catch(ne){Be(f,a,ne)}}break;case 5:as(H,H.return);break;case 22:if(H.memoizedState!==null){Ep(K);continue}}Y!==null?(Y.return=H,ee=Y):Ep(K)}V=V.sibling}e:for(V=null,K=r;;){if(K.tag===5){if(V===null){V=K;try{p=K.stateNode,$?(g=p.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(E=K.stateNode,C=K.memoizedProps.style,k=C!=null&&C.hasOwnProperty("display")?C.display:null,E.style.display=rd("display",k))}catch(ne){Be(r,r.return,ne)}}}else if(K.tag===6){if(V===null)try{K.stateNode.nodeValue=$?"":K.memoizedProps}catch(ne){Be(r,r.return,ne)}}else if((K.tag!==22&&K.tag!==23||K.memoizedState===null||K===r)&&K.child!==null){K.child.return=K,K=K.child;continue}if(K===r)break e;for(;K.sibling===null;){if(K.return===null||K.return===r)break e;V===K&&(V=null),K=K.return}V===K&&(V=null),K.sibling.return=K.return,K=K.sibling}}break;case 19:rn(i,r),pn(r),f&4&&Sp(r);break;case 21:break;default:rn(i,r),pn(r)}}function pn(r){var i=r.flags;if(i&2){try{e:{for(var a=r.return;a!==null;){if(vp(a)){var f=a;break e}a=a.return}throw Error(n(160))}switch(f.tag){case 5:var p=f.stateNode;f.flags&32&&(le(p,""),f.flags&=-33);var g=wp(r);Qc(r,g,p);break;case 3:case 4:var k=f.stateNode.containerInfo,E=wp(r);Kc(r,E,k);break;default:throw Error(n(161))}}catch(C){Be(r,r.return,C)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function R0(r,i,a){ee=r,kp(r)}function kp(r,i,a){for(var f=(r.mode&1)!==0;ee!==null;){var p=ee,g=p.child;if(p.tag===22&&f){var k=p.memoizedState!==null||Yo;if(!k){var E=p.alternate,C=E!==null&&E.memoizedState!==null||lt;E=Yo;var $=lt;if(Yo=k,(lt=C)&&!$)for(ee=p;ee!==null;)k=ee,C=k.child,k.tag===22&&k.memoizedState!==null?Tp(p):C!==null?(C.return=k,ee=C):Tp(p);for(;g!==null;)ee=g,kp(g),g=g.sibling;ee=p,Yo=E,lt=$}bp(r)}else(p.subtreeFlags&8772)!==0&&g!==null?(g.return=p,ee=g):bp(r)}}function bp(r){for(;ee!==null;){var i=ee;if((i.flags&8772)!==0){var a=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:lt||Zo(5,i);break;case 1:var f=i.stateNode;if(i.flags&4&&!lt)if(a===null)f.componentDidMount();else{var p=i.elementType===i.type?a.memoizedProps:tn(i.type,a.memoizedProps);f.componentDidUpdate(p,a.memoizedState,f.__reactInternalSnapshotBeforeUpdate)}var g=i.updateQueue;g!==null&&Eh(i,g,f);break;case 3:var k=i.updateQueue;if(k!==null){if(a=null,i.child!==null)switch(i.child.tag){case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}Eh(i,k,a)}break;case 5:var E=i.stateNode;if(a===null&&i.flags&4){a=E;var C=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":C.autoFocus&&a.focus();break;case"img":C.src&&(a.src=C.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var $=i.alternate;if($!==null){var V=$.memoizedState;if(V!==null){var K=V.dehydrated;K!==null&&si(K)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}lt||i.flags&512&&Wc(i)}catch(H){Be(i,i.return,H)}}if(i===r){ee=null;break}if(a=i.sibling,a!==null){a.return=i.return,ee=a;break}ee=i.return}}function Ep(r){for(;ee!==null;){var i=ee;if(i===r){ee=null;break}var a=i.sibling;if(a!==null){a.return=i.return,ee=a;break}ee=i.return}}function Tp(r){for(;ee!==null;){var i=ee;try{switch(i.tag){case 0:case 11:case 15:var a=i.return;try{Zo(4,i)}catch(C){Be(i,a,C)}break;case 1:var f=i.stateNode;if(typeof f.componentDidMount=="function"){var p=i.return;try{f.componentDidMount()}catch(C){Be(i,p,C)}}var g=i.return;try{Wc(i)}catch(C){Be(i,g,C)}break;case 5:var k=i.return;try{Wc(i)}catch(C){Be(i,k,C)}}}catch(C){Be(i,i.return,C)}if(i===r){ee=null;break}var E=i.sibling;if(E!==null){E.return=i.return,ee=E;break}ee=i.return}}var D0=Math.ceil,el=R.ReactCurrentDispatcher,Gc=R.ReactCurrentOwner,qt=R.ReactCurrentBatchConfig,we=0,Ye=null,We=null,nt=0,$t=0,cs=Hn(0),Ge=0,Ni=null,xr=0,tl=0,Xc=0,Ci=null,kt=null,Jc=0,us=1/0,Tn=null,nl=!1,Yc=null,Xn=null,rl=!1,Jn=null,sl=0,Ai=0,Zc=null,il=-1,ol=0;function ht(){return(we&6)!==0?qe():il!==-1?il:il=qe()}function Yn(r){return(r.mode&1)===0?1:(we&2)!==0&&nt!==0?nt&-nt:S0.transition!==null?(ol===0&&(ol=wd()),ol):(r=Ee,r!==0||(r=window.event,r=r===void 0?16:Cd(r.type)),r)}function sn(r,i,a,f){if(50<Ai)throw Ai=0,Zc=null,Error(n(185));Zs(r,a,f),((we&2)===0||r!==Ye)&&(r===Ye&&((we&2)===0&&(tl|=a),Ge===4&&Zn(r,nt)),bt(r,f),a===1&&we===0&&(i.mode&1)===0&&(us=qe()+500,Mo&&Wn()))}function bt(r,i){var a=r.callbackNode;Sw(r,i);var f=mo(r,r===Ye?nt:0);if(f===0)a!==null&&gd(a),r.callbackNode=null,r.callbackPriority=0;else if(i=f&-f,r.callbackPriority!==i){if(a!=null&&gd(a),i===1)r.tag===0?x0(Cp.bind(null,r)):hh(Cp.bind(null,r)),g0(function(){(we&6)===0&&Wn()}),a=null;else{switch(xd(f)){case 1:a=Ia;break;case 4:a=yd;break;case 16:a=uo;break;case 536870912:a=vd;break;default:a=uo}a=Pp(a,Np.bind(null,r))}r.callbackPriority=i,r.callbackNode=a}}function Np(r,i){if(il=-1,ol=0,(we&6)!==0)throw Error(n(327));var a=r.callbackNode;if(fs()&&r.callbackNode!==a)return null;var f=mo(r,r===Ye?nt:0);if(f===0)return null;if((f&30)!==0||(f&r.expiredLanes)!==0||i)i=ll(r,f);else{i=f;var p=we;we|=2;var g=Lp();(Ye!==r||nt!==i)&&(Tn=null,us=qe()+500,_r(r,i));do try{B0();break}catch(E){Ap(r,E)}while(!0);yc(),el.current=g,we=p,We!==null?i=0:(Ye=null,nt=0,i=Ge)}if(i!==0){if(i===2&&(p=Oa(r),p!==0&&(f=p,i=eu(r,p))),i===1)throw a=Ni,_r(r,0),Zn(r,f),bt(r,qe()),a;if(i===6)Zn(r,f);else{if(p=r.current.alternate,(f&30)===0&&!F0(p)&&(i=ll(r,f),i===2&&(g=Oa(r),g!==0&&(f=g,i=eu(r,g))),i===1))throw a=Ni,_r(r,0),Zn(r,f),bt(r,qe()),a;switch(r.finishedWork=p,r.finishedLanes=f,i){case 0:case 1:throw Error(n(345));case 2:kr(r,kt,Tn);break;case 3:if(Zn(r,f),(f&130023424)===f&&(i=Jc+500-qe(),10<i)){if(mo(r,0)!==0)break;if(p=r.suspendedLanes,(p&f)!==f){ht(),r.pingedLanes|=r.suspendedLanes&p;break}r.timeoutHandle=oc(kr.bind(null,r,kt,Tn),i);break}kr(r,kt,Tn);break;case 4:if(Zn(r,f),(f&4194240)===f)break;for(i=r.eventTimes,p=-1;0<f;){var k=31-Yt(f);g=1<<k,k=i[k],k>p&&(p=k),f&=~g}if(f=p,f=qe()-f,f=(120>f?120:480>f?480:1080>f?1080:1920>f?1920:3e3>f?3e3:4320>f?4320:1960*D0(f/1960))-f,10<f){r.timeoutHandle=oc(kr.bind(null,r,kt,Tn),f);break}kr(r,kt,Tn);break;case 5:kr(r,kt,Tn);break;default:throw Error(n(329))}}}return bt(r,qe()),r.callbackNode===a?Np.bind(null,r):null}function eu(r,i){var a=Ci;return r.current.memoizedState.isDehydrated&&(_r(r,i).flags|=256),r=ll(r,i),r!==2&&(i=kt,kt=a,i!==null&&tu(i)),r}function tu(r){kt===null?kt=r:kt.push.apply(kt,r)}function F0(r){for(var i=r;;){if(i.flags&16384){var a=i.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var f=0;f<a.length;f++){var p=a[f],g=p.getSnapshot;p=p.value;try{if(!Zt(g(),p))return!1}catch{return!1}}}if(a=i.child,i.subtreeFlags&16384&&a!==null)a.return=i,i=a;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Zn(r,i){for(i&=~Xc,i&=~tl,r.suspendedLanes|=i,r.pingedLanes&=~i,r=r.expirationTimes;0<i;){var a=31-Yt(i),f=1<<a;r[a]=-1,i&=~f}}function Cp(r){if((we&6)!==0)throw Error(n(327));fs();var i=mo(r,0);if((i&1)===0)return bt(r,qe()),null;var a=ll(r,i);if(r.tag!==0&&a===2){var f=Oa(r);f!==0&&(i=f,a=eu(r,f))}if(a===1)throw a=Ni,_r(r,0),Zn(r,i),bt(r,qe()),a;if(a===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=i,kr(r,kt,Tn),bt(r,qe()),null}function nu(r,i){var a=we;we|=1;try{return r(i)}finally{we=a,we===0&&(us=qe()+500,Mo&&Wn())}}function Sr(r){Jn!==null&&Jn.tag===0&&(we&6)===0&&fs();var i=we;we|=1;var a=qt.transition,f=Ee;try{if(qt.transition=null,Ee=1,r)return r()}finally{Ee=f,qt.transition=a,we=i,(we&6)===0&&Wn()}}function ru(){$t=cs.current,Ie(cs)}function _r(r,i){r.finishedWork=null,r.finishedLanes=0;var a=r.timeoutHandle;if(a!==-1&&(r.timeoutHandle=-1,m0(a)),We!==null)for(a=We.return;a!==null;){var f=a;switch(dc(f),f.tag){case 1:f=f.type.childContextTypes,f!=null&&Io();break;case 3:os(),Ie(xt),Ie(st),Ec();break;case 5:kc(f);break;case 4:os();break;case 13:Ie(Pe);break;case 19:Ie(Pe);break;case 10:vc(f.type._context);break;case 22:case 23:ru()}a=a.return}if(Ye=r,We=r=er(r.current,null),nt=$t=i,Ge=0,Ni=null,Xc=tl=xr=0,kt=Ci=null,yr!==null){for(i=0;i<yr.length;i++)if(a=yr[i],f=a.interleaved,f!==null){a.interleaved=null;var p=f.next,g=a.pending;if(g!==null){var k=g.next;g.next=p,f.next=k}a.pending=f}yr=null}return r}function Ap(r,i){do{var a=We;try{if(yc(),Ho.current=Qo,Vo){for(var f=Re.memoizedState;f!==null;){var p=f.queue;p!==null&&(p.pending=null),f=f.next}Vo=!1}if(wr=0,Je=Qe=Re=null,Si=!1,_i=0,Gc.current=null,a===null||a.return===null){Ge=1,Ni=i,We=null;break}e:{var g=r,k=a.return,E=a,C=i;if(i=nt,E.flags|=32768,C!==null&&typeof C=="object"&&typeof C.then=="function"){var $=C,V=E,K=V.tag;if((V.mode&1)===0&&(K===0||K===11||K===15)){var H=V.alternate;H?(V.updateQueue=H.updateQueue,V.memoizedState=H.memoizedState,V.lanes=H.lanes):(V.updateQueue=null,V.memoizedState=null)}var Y=ep(k);if(Y!==null){Y.flags&=-257,tp(Y,k,E,g,i),Y.mode&1&&Zh(g,$,i),i=Y,C=$;var te=i.updateQueue;if(te===null){var ne=new Set;ne.add(C),i.updateQueue=ne}else te.add(C);break e}else{if((i&1)===0){Zh(g,$,i),su();break e}C=Error(n(426))}}else if(Oe&&E.mode&1){var He=ep(k);if(He!==null){(He.flags&65536)===0&&(He.flags|=256),tp(He,k,E,g,i),mc(ls(C,E));break e}}g=C=ls(C,E),Ge!==4&&(Ge=2),Ci===null?Ci=[g]:Ci.push(g),g=k;do{switch(g.tag){case 3:g.flags|=65536,i&=-i,g.lanes|=i;var j=Jh(g,C,i);bh(g,j);break e;case 1:E=C;var A=g.type,M=g.stateNode;if((g.flags&128)===0&&(typeof A.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Xn===null||!Xn.has(M)))){g.flags|=65536,i&=-i,g.lanes|=i;var G=Yh(g,E,i);bh(g,G);break e}}g=g.return}while(g!==null)}Ip(a)}catch(re){i=re,We===a&&a!==null&&(We=a=a.return);continue}break}while(!0)}function Lp(){var r=el.current;return el.current=Qo,r===null?Qo:r}function su(){(Ge===0||Ge===3||Ge===2)&&(Ge=4),Ye===null||(xr&268435455)===0&&(tl&268435455)===0||Zn(Ye,nt)}function ll(r,i){var a=we;we|=2;var f=Lp();(Ye!==r||nt!==i)&&(Tn=null,_r(r,i));do try{z0();break}catch(p){Ap(r,p)}while(!0);if(yc(),we=a,el.current=f,We!==null)throw Error(n(261));return Ye=null,nt=0,Ge}function z0(){for(;We!==null;)jp(We)}function B0(){for(;We!==null&&!dw();)jp(We)}function jp(r){var i=$p(r.alternate,r,$t);r.memoizedProps=r.pendingProps,i===null?Ip(r):We=i,Gc.current=null}function Ip(r){var i=r;do{var a=i.alternate;if(r=i.return,(i.flags&32768)===0){if(a=O0(a,i,$t),a!==null){We=a;return}}else{if(a=M0(a,i),a!==null){a.flags&=32767,We=a;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Ge=6,We=null;return}}if(i=i.sibling,i!==null){We=i;return}We=i=r}while(i!==null);Ge===0&&(Ge=5)}function kr(r,i,a){var f=Ee,p=qt.transition;try{qt.transition=null,Ee=1,U0(r,i,a,f)}finally{qt.transition=p,Ee=f}return null}function U0(r,i,a,f){do fs();while(Jn!==null);if((we&6)!==0)throw Error(n(327));a=r.finishedWork;var p=r.finishedLanes;if(a===null)return null;if(r.finishedWork=null,r.finishedLanes=0,a===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var g=a.lanes|a.childLanes;if(_w(r,g),r===Ye&&(We=Ye=null,nt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||rl||(rl=!0,Pp(uo,function(){return fs(),null})),g=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||g){g=qt.transition,qt.transition=null;var k=Ee;Ee=1;var E=we;we|=4,Gc.current=null,P0(r,a),_p(a,r),a0(sc),vo=!!rc,sc=rc=null,r.current=a,R0(a),hw(),we=E,Ee=k,qt.transition=g}else r.current=a;if(rl&&(rl=!1,Jn=r,sl=p),g=r.pendingLanes,g===0&&(Xn=null),gw(a.stateNode),bt(r,qe()),i!==null)for(f=r.onRecoverableError,a=0;a<i.length;a++)p=i[a],f(p.value,{componentStack:p.stack,digest:p.digest});if(nl)throw nl=!1,r=Yc,Yc=null,r;return(sl&1)!==0&&r.tag!==0&&fs(),g=r.pendingLanes,(g&1)!==0?r===Zc?Ai++:(Ai=0,Zc=r):Ai=0,Wn(),null}function fs(){if(Jn!==null){var r=xd(sl),i=qt.transition,a=Ee;try{if(qt.transition=null,Ee=16>r?16:r,Jn===null)var f=!1;else{if(r=Jn,Jn=null,sl=0,(we&6)!==0)throw Error(n(331));var p=we;for(we|=4,ee=r.current;ee!==null;){var g=ee,k=g.child;if((ee.flags&16)!==0){var E=g.deletions;if(E!==null){for(var C=0;C<E.length;C++){var $=E[C];for(ee=$;ee!==null;){var V=ee;switch(V.tag){case 0:case 11:case 15:Ti(8,V,g)}var K=V.child;if(K!==null)K.return=V,ee=K;else for(;ee!==null;){V=ee;var H=V.sibling,Y=V.return;if(yp(V),V===$){ee=null;break}if(H!==null){H.return=Y,ee=H;break}ee=Y}}}var te=g.alternate;if(te!==null){var ne=te.child;if(ne!==null){te.child=null;do{var He=ne.sibling;ne.sibling=null,ne=He}while(ne!==null)}}ee=g}}if((g.subtreeFlags&2064)!==0&&k!==null)k.return=g,ee=k;else e:for(;ee!==null;){if(g=ee,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:Ti(9,g,g.return)}var j=g.sibling;if(j!==null){j.return=g.return,ee=j;break e}ee=g.return}}var A=r.current;for(ee=A;ee!==null;){k=ee;var M=k.child;if((k.subtreeFlags&2064)!==0&&M!==null)M.return=k,ee=M;else e:for(k=A;ee!==null;){if(E=ee,(E.flags&2048)!==0)try{switch(E.tag){case 0:case 11:case 15:Zo(9,E)}}catch(re){Be(E,E.return,re)}if(E===k){ee=null;break e}var G=E.sibling;if(G!==null){G.return=E.return,ee=G;break e}ee=E.return}}if(we=p,Wn(),un&&typeof un.onPostCommitFiberRoot=="function")try{un.onPostCommitFiberRoot(fo,r)}catch{}f=!0}return f}finally{Ee=a,qt.transition=i}}return!1}function Op(r,i,a){i=ls(a,i),i=Jh(r,i,1),r=Qn(r,i,1),i=ht(),r!==null&&(Zs(r,1,i),bt(r,i))}function Be(r,i,a){if(r.tag===3)Op(r,r,a);else for(;i!==null;){if(i.tag===3){Op(i,r,a);break}else if(i.tag===1){var f=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Xn===null||!Xn.has(f))){r=ls(a,r),r=Yh(i,r,1),i=Qn(i,r,1),r=ht(),i!==null&&(Zs(i,1,r),bt(i,r));break}}i=i.return}}function q0(r,i,a){var f=r.pingCache;f!==null&&f.delete(i),i=ht(),r.pingedLanes|=r.suspendedLanes&a,Ye===r&&(nt&a)===a&&(Ge===4||Ge===3&&(nt&130023424)===nt&&500>qe()-Jc?_r(r,0):Xc|=a),bt(r,i)}function Mp(r,i){i===0&&((r.mode&1)===0?i=1:(i=po,po<<=1,(po&130023424)===0&&(po=4194304)));var a=ht();r=kn(r,i),r!==null&&(Zs(r,i,a),bt(r,a))}function H0(r){var i=r.memoizedState,a=0;i!==null&&(a=i.retryLane),Mp(r,a)}function V0(r,i){var a=0;switch(r.tag){case 13:var f=r.stateNode,p=r.memoizedState;p!==null&&(a=p.retryLane);break;case 19:f=r.stateNode;break;default:throw Error(n(314))}f!==null&&f.delete(i),Mp(r,a)}var $p;$p=function(r,i,a){if(r!==null)if(r.memoizedProps!==i.pendingProps||xt.current)_t=!0;else{if((r.lanes&a)===0&&(i.flags&128)===0)return _t=!1,I0(r,i,a);_t=(r.flags&131072)!==0}else _t=!1,Oe&&(i.flags&1048576)!==0&&ph(i,Po,i.index);switch(i.lanes=0,i.tag){case 2:var f=i.type;Jo(r,i),r=i.pendingProps;var p=Zr(i,st.current);is(i,a),p=Cc(null,i,f,r,p,a);var g=Ac();return i.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,St(f)?(g=!0,Oo(i)):g=!1,i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,Sc(i),p.updater=Go,i.stateNode=p,p._reactInternals=i,$c(i,f,r,a),i=Fc(null,i,f,!0,g,a)):(i.tag=0,Oe&&g&&fc(i),dt(null,i,p,a),i=i.child),i;case 16:f=i.elementType;e:{switch(Jo(r,i),r=i.pendingProps,p=f._init,f=p(f._payload),i.type=f,p=i.tag=K0(f),r=tn(f,r),p){case 0:i=Dc(null,i,f,r,a);break e;case 1:i=lp(null,i,f,r,a);break e;case 11:i=np(null,i,f,r,a);break e;case 14:i=rp(null,i,f,tn(f.type,r),a);break e}throw Error(n(306,f,""))}return i;case 0:return f=i.type,p=i.pendingProps,p=i.elementType===f?p:tn(f,p),Dc(r,i,f,p,a);case 1:return f=i.type,p=i.pendingProps,p=i.elementType===f?p:tn(f,p),lp(r,i,f,p,a);case 3:e:{if(ap(i),r===null)throw Error(n(387));f=i.pendingProps,g=i.memoizedState,p=g.element,kh(r,i),Uo(i,f,null,a);var k=i.memoizedState;if(f=k.element,g.isDehydrated)if(g={element:f,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){p=ls(Error(n(423)),i),i=cp(r,i,f,a,p);break e}else if(f!==p){p=ls(Error(n(424)),i),i=cp(r,i,f,a,p);break e}else for(Mt=qn(i.stateNode.containerInfo.firstChild),Ot=i,Oe=!0,en=null,a=Sh(i,null,f,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ns(),f===p){i=En(r,i,a);break e}dt(r,i,f,a)}i=i.child}return i;case 5:return Th(i),r===null&&pc(i),f=i.type,p=i.pendingProps,g=r!==null?r.memoizedProps:null,k=p.children,ic(f,p)?k=null:g!==null&&ic(f,g)&&(i.flags|=32),op(r,i),dt(r,i,k,a),i.child;case 6:return r===null&&pc(i),null;case 13:return up(r,i,a);case 4:return _c(i,i.stateNode.containerInfo),f=i.pendingProps,r===null?i.child=rs(i,null,f,a):dt(r,i,f,a),i.child;case 11:return f=i.type,p=i.pendingProps,p=i.elementType===f?p:tn(f,p),np(r,i,f,p,a);case 7:return dt(r,i,i.pendingProps,a),i.child;case 8:return dt(r,i,i.pendingProps.children,a),i.child;case 12:return dt(r,i,i.pendingProps.children,a),i.child;case 10:e:{if(f=i.type._context,p=i.pendingProps,g=i.memoizedProps,k=p.value,Ae(Fo,f._currentValue),f._currentValue=k,g!==null)if(Zt(g.value,k)){if(g.children===p.children&&!xt.current){i=En(r,i,a);break e}}else for(g=i.child,g!==null&&(g.return=i);g!==null;){var E=g.dependencies;if(E!==null){k=g.child;for(var C=E.firstContext;C!==null;){if(C.context===f){if(g.tag===1){C=bn(-1,a&-a),C.tag=2;var $=g.updateQueue;if($!==null){$=$.shared;var V=$.pending;V===null?C.next=C:(C.next=V.next,V.next=C),$.pending=C}}g.lanes|=a,C=g.alternate,C!==null&&(C.lanes|=a),wc(g.return,a,i),E.lanes|=a;break}C=C.next}}else if(g.tag===10)k=g.type===i.type?null:g.child;else if(g.tag===18){if(k=g.return,k===null)throw Error(n(341));k.lanes|=a,E=k.alternate,E!==null&&(E.lanes|=a),wc(k,a,i),k=g.sibling}else k=g.child;if(k!==null)k.return=g;else for(k=g;k!==null;){if(k===i){k=null;break}if(g=k.sibling,g!==null){g.return=k.return,k=g;break}k=k.return}g=k}dt(r,i,p.children,a),i=i.child}return i;case 9:return p=i.type,f=i.pendingProps.children,is(i,a),p=Bt(p),f=f(p),i.flags|=1,dt(r,i,f,a),i.child;case 14:return f=i.type,p=tn(f,i.pendingProps),p=tn(f.type,p),rp(r,i,f,p,a);case 15:return sp(r,i,i.type,i.pendingProps,a);case 17:return f=i.type,p=i.pendingProps,p=i.elementType===f?p:tn(f,p),Jo(r,i),i.tag=1,St(f)?(r=!0,Oo(i)):r=!1,is(i,a),Gh(i,f,p),$c(i,f,p,a),Fc(null,i,f,!0,r,a);case 19:return dp(r,i,a);case 22:return ip(r,i,a)}throw Error(n(156,i.tag))};function Pp(r,i){return md(r,i)}function W0(r,i,a,f){this.tag=r,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(r,i,a,f){return new W0(r,i,a,f)}function iu(r){return r=r.prototype,!(!r||!r.isReactComponent)}function K0(r){if(typeof r=="function")return iu(r)?1:0;if(r!=null){if(r=r.$$typeof,r===z)return 11;if(r===Te)return 14}return 2}function er(r,i){var a=r.alternate;return a===null?(a=Ht(r.tag,i,r.key,r.mode),a.elementType=r.elementType,a.type=r.type,a.stateNode=r.stateNode,a.alternate=r,r.alternate=a):(a.pendingProps=i,a.type=r.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=r.flags&14680064,a.childLanes=r.childLanes,a.lanes=r.lanes,a.child=r.child,a.memoizedProps=r.memoizedProps,a.memoizedState=r.memoizedState,a.updateQueue=r.updateQueue,i=r.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=r.sibling,a.index=r.index,a.ref=r.ref,a}function al(r,i,a,f,p,g){var k=2;if(f=r,typeof r=="function")iu(r)&&(k=1);else if(typeof r=="string")k=5;else e:switch(r){case U:return br(a.children,p,g,i);case B:k=8,p|=8;break;case I:return r=Ht(12,a,i,p|2),r.elementType=I,r.lanes=g,r;case J:return r=Ht(13,a,i,p),r.elementType=J,r.lanes=g,r;case de:return r=Ht(19,a,i,p),r.elementType=de,r.lanes=g,r;case ye:return cl(a,p,g,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Q:k=10;break e;case W:k=9;break e;case z:k=11;break e;case Te:k=14;break e;case Le:k=16,f=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return i=Ht(k,a,i,p),i.elementType=r,i.type=f,i.lanes=g,i}function br(r,i,a,f){return r=Ht(7,r,f,i),r.lanes=a,r}function cl(r,i,a,f){return r=Ht(22,r,f,i),r.elementType=ye,r.lanes=a,r.stateNode={isHidden:!1},r}function ou(r,i,a){return r=Ht(6,r,null,i),r.lanes=a,r}function lu(r,i,a){return i=Ht(4,r.children!==null?r.children:[],r.key,i),i.lanes=a,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}function Q0(r,i,a,f,p){this.tag=i,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ma(0),this.expirationTimes=Ma(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ma(0),this.identifierPrefix=f,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function au(r,i,a,f,p,g,k,E,C){return r=new Q0(r,i,a,E,C),i===1?(i=1,g===!0&&(i|=8)):i=0,g=Ht(3,null,null,i),r.current=g,g.stateNode=r,g.memoizedState={element:f,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sc(g),r}function G0(r,i,a){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:f==null?null:""+f,children:r,containerInfo:i,implementation:a}}function Rp(r){if(!r)return Vn;r=r._reactInternals;e:{if(dr(r)!==r||r.tag!==1)throw Error(n(170));var i=r;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(St(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(n(171))}if(r.tag===1){var a=r.type;if(St(a))return fh(r,a,i)}return i}function Dp(r,i,a,f,p,g,k,E,C){return r=au(a,f,!0,r,p,g,k,E,C),r.context=Rp(null),a=r.current,f=ht(),p=Yn(a),g=bn(f,p),g.callback=i??null,Qn(a,g,p),r.current.lanes=p,Zs(r,p,f),bt(r,f),r}function ul(r,i,a,f){var p=i.current,g=ht(),k=Yn(p);return a=Rp(a),i.context===null?i.context=a:i.pendingContext=a,i=bn(g,k),i.payload={element:r},f=f===void 0?null:f,f!==null&&(i.callback=f),r=Qn(p,i,k),r!==null&&(sn(r,p,k,g),Bo(r,p,k)),k}function fl(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function Fp(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var a=r.retryLane;r.retryLane=a!==0&&a<i?a:i}}function cu(r,i){Fp(r,i),(r=r.alternate)&&Fp(r,i)}function X0(){return null}var zp=typeof reportError=="function"?reportError:function(r){console.error(r)};function uu(r){this._internalRoot=r}dl.prototype.render=uu.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(n(409));ul(r,i,null,null)},dl.prototype.unmount=uu.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;Sr(function(){ul(null,r,null,null)}),i[wn]=null}};function dl(r){this._internalRoot=r}dl.prototype.unstable_scheduleHydration=function(r){if(r){var i=kd();r={blockedOn:null,target:r,priority:i};for(var a=0;a<zn.length&&i!==0&&i<zn[a].priority;a++);zn.splice(a,0,r),a===0&&Td(r)}};function fu(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function hl(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Bp(){}function J0(r,i,a,f,p){if(p){if(typeof f=="function"){var g=f;f=function(){var $=fl(k);g.call($)}}var k=Dp(i,f,r,0,null,!1,!1,"",Bp);return r._reactRootContainer=k,r[wn]=k.current,hi(r.nodeType===8?r.parentNode:r),Sr(),k}for(;p=r.lastChild;)r.removeChild(p);if(typeof f=="function"){var E=f;f=function(){var $=fl(C);E.call($)}}var C=au(r,0,!1,null,null,!1,!1,"",Bp);return r._reactRootContainer=C,r[wn]=C.current,hi(r.nodeType===8?r.parentNode:r),Sr(function(){ul(i,C,a,f)}),C}function pl(r,i,a,f,p){var g=a._reactRootContainer;if(g){var k=g;if(typeof p=="function"){var E=p;p=function(){var C=fl(k);E.call(C)}}ul(i,k,r,p)}else k=J0(a,i,r,p,f);return fl(k)}Sd=function(r){switch(r.tag){case 3:var i=r.stateNode;if(i.current.memoizedState.isDehydrated){var a=Ys(i.pendingLanes);a!==0&&($a(i,a|1),bt(i,qe()),(we&6)===0&&(us=qe()+500,Wn()))}break;case 13:Sr(function(){var f=kn(r,1);if(f!==null){var p=ht();sn(f,r,1,p)}}),cu(r,1)}},Pa=function(r){if(r.tag===13){var i=kn(r,134217728);if(i!==null){var a=ht();sn(i,r,134217728,a)}cu(r,134217728)}},_d=function(r){if(r.tag===13){var i=Yn(r),a=kn(r,i);if(a!==null){var f=ht();sn(a,r,i,f)}cu(r,i)}},kd=function(){return Ee},bd=function(r,i){var a=Ee;try{return Ee=r,i()}finally{Ee=a}},Ca=function(r,i,a){switch(i){case"input":if(Vs(r,a),i=a.name,a.type==="radio"&&i!=null){for(a=r;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<a.length;i++){var f=a[i];if(f!==r&&f.form===r.form){var p=jo(f);if(!p)throw Error(n(90));Hs(f),Vs(f,p)}}}break;case"textarea":Pn(r,a);break;case"select":i=a.value,i!=null&&$n(r,!!a.multiple,i,!1)}},ad=nu,cd=Sr;var Y0={usingClientEntryPoint:!1,Events:[gi,Jr,jo,od,ld,nu]},Li={findFiberByHostInstance:hr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Z0={bundleType:Li.bundleType,version:Li.version,rendererPackageName:Li.rendererPackageName,rendererConfig:Li.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=hd(r),r===null?null:r.stateNode},findFiberByHostInstance:Li.findFiberByHostInstance||X0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ml=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ml.isDisabled&&ml.supportsFiber)try{fo=ml.inject(Z0),un=ml}catch{}}return Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y0,Et.createPortal=function(r,i){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fu(i))throw Error(n(200));return G0(r,i,null,a)},Et.createRoot=function(r,i){if(!fu(r))throw Error(n(299));var a=!1,f="",p=zp;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onRecoverableError!==void 0&&(p=i.onRecoverableError)),i=au(r,1,!1,null,null,a,!1,f,p),r[wn]=i.current,hi(r.nodeType===8?r.parentNode:r),new uu(i)},Et.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=hd(i),r=r===null?null:r.stateNode,r},Et.flushSync=function(r){return Sr(r)},Et.hydrate=function(r,i,a){if(!hl(i))throw Error(n(200));return pl(null,r,i,!0,a)},Et.hydrateRoot=function(r,i,a){if(!fu(r))throw Error(n(405));var f=a!=null&&a.hydratedSources||null,p=!1,g="",k=zp;if(a!=null&&(a.unstable_strictMode===!0&&(p=!0),a.identifierPrefix!==void 0&&(g=a.identifierPrefix),a.onRecoverableError!==void 0&&(k=a.onRecoverableError)),i=Dp(i,null,r,1,a??null,p,!1,g,k),r[wn]=i.current,hi(r),f)for(r=0;r<f.length;r++)a=f[r],p=a._getVersion,p=p(a._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[a,p]:i.mutableSourceEagerHydrationData.push(a,p);return new dl(i)},Et.render=function(r,i,a){if(!hl(i))throw Error(n(200));return pl(null,r,i,!1,a)},Et.unmountComponentAtNode=function(r){if(!hl(r))throw Error(n(40));return r._reactRootContainer?(Sr(function(){pl(null,null,r,!1,function(){r._reactRootContainer=null,r[wn]=null})}),!0):!1},Et.unstable_batchedUpdates=nu,Et.unstable_renderSubtreeIntoContainer=function(r,i,a,f){if(!hl(a))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return pl(r,i,a,!1,f)},Et.version="18.3.1-next-f1338f8080-20240426",Et}var Jp;function gx(){if(Jp)return pu.exports;Jp=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),pu.exports=mx(),pu.exports}var Yp;function yx(){if(Yp)return gl;Yp=1;var t=gx();return gl.createRoot=t.createRoot,gl.hydrateRoot=t.hydrateRoot,gl}var vT=yx();const vx="_attach",Bi=Symbol("context"),cg=Symbol("nextInContext"),ug=Symbol("prevByEndTime"),fg=Symbol("nextByStartTime"),Zp=Symbol("events");class wT{constructor(e){xe(this,"startTime");xe(this,"endTime");xe(this,"browserName");xe(this,"channel");xe(this,"platform");xe(this,"wallTime");xe(this,"title");xe(this,"options");xe(this,"pages");xe(this,"actions");xe(this,"attachments");xe(this,"visibleAttachments");xe(this,"events");xe(this,"stdio");xe(this,"errors");xe(this,"errorDescriptors");xe(this,"hasSource");xe(this,"hasStepData");xe(this,"sdkLanguage");xe(this,"testIdAttributeName");xe(this,"sources");xe(this,"resources");e.forEach(s=>wx(s));const n=e.find(s=>s.origin==="library");this.browserName=(n==null?void 0:n.browserName)||"",this.sdkLanguage=n==null?void 0:n.sdkLanguage,this.channel=n==null?void 0:n.channel,this.testIdAttributeName=n==null?void 0:n.testIdAttributeName,this.platform=(n==null?void 0:n.platform)||"",this.title=(n==null?void 0:n.title)||"",this.options=(n==null?void 0:n.options)||{},this.actions=xx(e),this.pages=[].concat(...e.map(s=>s.pages)),this.wallTime=e.map(s=>s.wallTime).reduce((s,o)=>Math.min(s||Number.MAX_VALUE,o),Number.MAX_VALUE),this.startTime=e.map(s=>s.startTime).reduce((s,o)=>Math.min(s,o),Number.MAX_VALUE),this.endTime=e.map(s=>s.endTime).reduce((s,o)=>Math.max(s,o),Number.MIN_VALUE),this.events=[].concat(...e.map(s=>s.events)),this.stdio=[].concat(...e.map(s=>s.stdio)),this.errors=[].concat(...e.map(s=>s.errors)),this.hasSource=e.some(s=>s.hasSource),this.hasStepData=e.some(s=>s.origin==="testRunner"),this.resources=[...e.map(s=>s.resources)].flat(),this.attachments=this.actions.flatMap(s=>{var o;return((o=s.attachments)==null?void 0:o.map(l=>({...l,traceUrl:s.context.traceUrl})))??[]}),this.visibleAttachments=this.attachments.filter(s=>!s.name.startsWith("_")),this.events.sort((s,o)=>s.time-o.time),this.resources.sort((s,o)=>s._monotonicTime-o._monotonicTime),this.errorDescriptors=this.hasStepData?this._errorDescriptorsFromTestRunner():this._errorDescriptorsFromActions(),this.sources=Ax(this.actions,this.errorDescriptors)}failedAction(){return this.actions.findLast(e=>e.error)}_errorDescriptorsFromActions(){var n;const e=[];for(const s of this.actions||[])(n=s.error)!=null&&n.message&&e.push({action:s,stack:s.stack,message:s.error.message});return e}_errorDescriptorsFromTestRunner(){return this.errors.filter(e=>!!e.message).map((e,n)=>({stack:e.stack,message:e.message,context:this.attachments.find(s=>s.name===`_error-context-${n}`)}))}}function wx(t){for(const n of t.pages)n[Bi]=t;for(let n=0;n<t.actions.length;++n){const s=t.actions[n];s[Bi]=t}let e;for(let n=t.actions.length-1;n>=0;n--){const s=t.actions[n];s[cg]=e,s.apiName.includes("route.")||(e=s)}for(const n of t.events)n[Bi]=t;for(const n of t.resources)n[Bi]=t}function xx(t){const e=new Map;for(const o of t){const l=o.traceUrl;let c=e.get(l);c||(c=[],e.set(l,c)),c.push(o)}const n=[];let s=0;for(const[,o]of e){e.size>1&&Sx(o,++s);const l=_x(o);n.push(...l)}n.sort((o,l)=>l.parentId===o.callId?1:o.parentId===l.callId?-1:o.endTime-l.endTime);for(let o=1;o<n.length;++o)n[o][ug]=n[o-1];n.sort((o,l)=>l.parentId===o.callId?-1:o.parentId===l.callId?1:o.startTime-l.startTime);for(let o=0;o+1<n.length;++o)n[o][fg]=n[o+1];return n}function Sx(t,e){for(const n of t)for(const s of n.actions)s.callId&&(s.callId=`${e}:${s.callId}`),s.parentId&&(s.parentId=`${e}:${s.parentId}`)}function _x(t){const e=new Map,n=t.filter(u=>u.origin==="library"),s=t.filter(u=>u.origin==="testRunner");if(!s.length||!n.length)return t.map(u=>u.actions.map(d=>({...d,context:u}))).flat();const o=n.some(u=>u.actions.some(d=>!!d.stepId));for(const u of n)for(const d of u.actions){const h=o?d.stepId:`${d.apiName}@${d.wallTime}`;e.set(h,{...d,context:u})}const l=bx(s,e,o);l&&kx(n,l);const c=new Map;for(const u of s)for(const d of u.actions){const h=o?d.callId:`${d.apiName}@${d.wallTime}`,y=e.get(h);if(y){c.set(d.callId,y.callId),d.error&&(y.error=d.error),d.attachments&&(y.attachments=d.attachments),d.annotations&&(y.annotations=d.annotations),d.parentId&&(y.parentId=c.get(d.parentId)??d.parentId),y.startTime=d.startTime,y.endTime=d.endTime;continue}d.parentId&&(d.parentId=c.get(d.parentId)??d.parentId),e.set(h,{...d,context:u})}return[...e.values()]}function kx(t,e){for(const n of t){n.startTime+=e,n.endTime+=e;for(const s of n.actions)s.startTime&&(s.startTime+=e),s.endTime&&(s.endTime+=e);for(const s of n.events)s.time+=e;for(const s of n.stdio)s.timestamp+=e;for(const s of n.pages)for(const o of s.screencastFrames)o.timestamp+=e;for(const s of n.resources)s._monotonicTime&&(s._monotonicTime+=e)}}function bx(t,e,n){for(const s of t)for(const o of s.actions){if(!o.startTime)continue;const l=n?o.callId:`${o.apiName}@${o.wallTime}`,c=e.get(l);if(c)return o.startTime-c.startTime}return 0}function Ex(t){var s;const e=new Map;for(const o of t)e.set(o.callId,{id:o.callId,parent:void 0,children:[],action:o});const n={id:"",parent:void 0,children:[]};for(const o of e.values()){if((s=o.action)!=null&&s.apiName.startsWith(vx))continue;const l=o.action.parentId&&e.get(o.action.parentId)||n;l.children.push(o),o.parent=l}return{rootItem:n,itemMap:e}}function ql(t){return t[Bi]}function Tx(t){return t[cg]}function em(t){return t[ug]}function tm(t){return t[fg]}function Nx(t){let e=0,n=0;for(const s of Cx(t)){if(s.type==="console"){const o=s.messageType;o==="warning"?++n:o==="error"&&++e}s.type==="event"&&s.method==="pageError"&&++e}return{errors:e,warnings:n}}function Cx(t){let e=t[Zp];if(e)return e;const n=Tx(t);return e=ql(t).events.filter(s=>s.time>=t.startTime&&(!n||s.time<n.startTime)),t[Zp]=e,e}function Ax(t,e){var s;const n=new Map;for(const o of t)for(const l of o.stack||[]){let c=n.get(l.file);c||(c={errors:[],content:void 0},n.set(l.file,c))}for(const o of e){const{action:l,stack:c,message:u}=o;!l||!c||(s=n.get(c[0].file))==null||s.errors.push({line:c[0].line||0,message:u})}return n}const yu=new Set(["page.route","page.routefromhar","page.unroute","page.unrouteall","browsercontext.route","browsercontext.routefromhar","browsercontext.unroute","browsercontext.unrouteall"]);{for(const t of[...yu])yu.add(t+"async");for(const t of["page.route_from_har","page.unroute_all","context.route_from_har","context.unroute_all"])yu.add(t)}const Lx=50,Hl=({sidebarSize:t,sidebarHidden:e=!1,sidebarIsFirst:n=!1,orientation:s="vertical",minSidebarSize:o=Lx,settingName:l,sidebar:c,main:u})=>{const d=Math.max(o,t)*window.devicePixelRatio,[h,y]=As(l?l+"."+s+":size":void 0,d),[v,m]=As(l?l+"."+s+":size":void 0,d),[w,S]=P.useState(null),[_,b]=Mr();let T;s==="vertical"?(T=v/window.devicePixelRatio,_&&_.height<T&&(T=_.height-10)):(T=h/window.devicePixelRatio,_&&_.width<T&&(T=_.width-10)),document.body.style.userSelect=w?"none":"inherit";let N={};return s==="vertical"?n?N={top:w?0:T-4,bottom:w?0:void 0,height:w?"initial":8}:N={bottom:w?0:T-4,top:w?0:void 0,height:w?"initial":8}:n?N={left:w?0:T-4,right:w?0:void 0,width:w?"initial":8}:N={right:w?0:T-4,left:w?0:void 0,width:w?"initial":8},x.jsxs("div",{className:Ue("split-view",s,n&&"sidebar-first"),ref:b,children:[x.jsx("div",{className:"split-view-main",children:u}),!e&&x.jsx("div",{style:{flexBasis:T},className:"split-view-sidebar",children:c}),!e&&x.jsx("div",{style:N,className:"split-view-resizer",onMouseDown:O=>S({offset:s==="vertical"?O.clientY:O.clientX,size:T}),onMouseUp:()=>S(null),onMouseMove:O=>{if(!O.buttons)S(null);else if(w){const D=(s==="vertical"?O.clientY:O.clientX)-w.offset,F=n?w.size+D:w.size-D,B=O.target.parentElement.getBoundingClientRect(),I=Math.min(Math.max(o,F),(s==="vertical"?B.height:B.width)-o);s==="vertical"?m(I*window.devicePixelRatio):y(I*window.devicePixelRatio)}}})]})};function Vu(t){var e,n,s,o,l,c,u,d,h;return t=t??globalThis,{setTimeout:(e=t.setTimeout)==null?void 0:e.bind(t),clearTimeout:(n=t.clearTimeout)==null?void 0:n.bind(t),setInterval:(s=t.setInterval)==null?void 0:s.bind(t),clearInterval:(o=t.clearInterval)==null?void 0:o.bind(t),requestAnimationFrame:(l=t.requestAnimationFrame)==null?void 0:l.bind(t),cancelAnimationFrame:(c=t.cancelAnimationFrame)==null?void 0:c.bind(t),requestIdleCallback:(u=t.requestIdleCallback)==null?void 0:u.bind(t),cancelIdleCallback:(d=t.cancelIdleCallback)==null?void 0:d.bind(t),performance:t.performance,eval:(h=t.eval)==null?void 0:h.bind(t),Intl:t.Intl,Date:t.Date,Map:t.Map,Set:t.Set}}const Dt=Vu();Dt.setTimeout;Dt.clearTimeout;Dt.setInterval;Dt.clearInterval;const Cl=Dt.requestAnimationFrame,nm=Dt.cancelAnimationFrame;Dt.requestIdleCallback;Dt.cancelIdleCallback;const jx=Dt.performance;Dt.Intl;Dt.Date;const be=Dt.Map,ke=Dt.Set,Ke=function(t,e,n){return t>=e&&t<=n};function Tt(t){return Ke(t,48,57)}function rm(t){return Tt(t)||Ke(t,65,70)||Ke(t,97,102)}function Ix(t){return Ke(t,65,90)}function Ox(t){return Ke(t,97,122)}function Mx(t){return Ix(t)||Ox(t)}function $x(t){return t>=128}function Al(t){return Mx(t)||$x(t)||t===95}function sm(t){return Al(t)||Tt(t)||t===45}function Px(t){return Ke(t,0,8)||t===11||Ke(t,14,31)||t===127}function Ll(t){return t===10}function Nn(t){return Ll(t)||t===9||t===32}const Rx=1114111;class hf extends Error{constructor(e){super(e),this.name="InvalidCharacterError"}}function Dx(t){const e=[];for(let n=0;n<t.length;n++){let s=t.charCodeAt(n);if(s===13&&t.charCodeAt(n+1)===10&&(s=10,n++),(s===13||s===12)&&(s=10),s===0&&(s=65533),Ke(s,55296,56319)&&Ke(t.charCodeAt(n+1),56320,57343)){const o=s-55296,l=t.charCodeAt(n+1)-56320;s=Math.pow(2,16)+o*Math.pow(2,10)+l,n++}e.push(s)}return e}function Xe(t){if(t<=65535)return String.fromCharCode(t);t-=Math.pow(2,16);const e=Math.floor(t/Math.pow(2,10))+55296,n=t%Math.pow(2,10)+56320;return String.fromCharCode(e)+String.fromCharCode(n)}function Fx(t){const e=Dx(t);let n=-1;const s=[];let o;const l=function(z){return z>=e.length?-1:e[z]},c=function(z){if(z===void 0&&(z=1),z>3)throw"Spec Error: no more than three codepoints of lookahead.";return l(n+z)},u=function(z){return z===void 0&&(z=1),n+=z,o=l(n),!0},d=function(){return n-=1,!0},h=function(z){return z===void 0&&(z=o),z===-1},y=function(){if(v(),u(),Nn(o)){for(;Nn(c());)u();return new Wu}else{if(o===34)return S();if(o===35)if(sm(c())||T(c(1),c(2))){const z=new Tg("");return O(c(1),c(2),c(3))&&(z.type="id"),z.value=U(),z}else return new at(o);else return o===36?c()===61?(u(),new qx):new at(o):o===39?S():o===40?new Sg:o===41?new _g:o===42?c()===61?(u(),new Hx):new at(o):o===43?F()?(d(),m()):new at(o):o===44?new yg:o===45?F()?(d(),m()):c(1)===45&&c(2)===62?(u(2),new pg):R()?(d(),w()):new at(o):o===46?F()?(d(),m()):new at(o):o===58?new mg:o===59?new gg:o===60?c(1)===33&&c(2)===45&&c(3)===45?(u(3),new hg):new at(o):o===64?O(c(1),c(2),c(3))?new Eg(U()):new at(o):o===91?new xg:o===92?N()?(d(),w()):new at(o):o===93?new Ku:o===94?c()===61?(u(),new Ux):new at(o):o===123?new vg:o===124?c()===61?(u(),new Bx):c()===124?(u(),new kg):new at(o):o===125?new wg:o===126?c()===61?(u(),new zx):new at(o):Tt(o)?(d(),m()):Al(o)?(d(),w()):h()?new Il:new at(o)}},v=function(){for(;c(1)===47&&c(2)===42;)for(u(2);;)if(u(),o===42&&c()===47){u();break}else if(h())return},m=function(){const z=B();if(O(c(1),c(2),c(3))){const J=new Vx;return J.value=z.value,J.repr=z.repr,J.type=z.type,J.unit=U(),J}else if(c()===37){u();const J=new Lg;return J.value=z.value,J.repr=z.repr,J}else{const J=new Ag;return J.value=z.value,J.repr=z.repr,J.type=z.type,J}},w=function(){const z=U();if(z.toLowerCase()==="url"&&c()===40){for(u();Nn(c(1))&&Nn(c(2));)u();return c()===34||c()===39?new Ol(z):Nn(c())&&(c(2)===34||c(2)===39)?new Ol(z):_()}else return c()===40?(u(),new Ol(z)):new bg(z)},S=function(z){z===void 0&&(z=o);let J="";for(;u();){if(o===z||h())return new Ng(J);if(Ll(o))return d(),new dg;o===92?h(c())||(Ll(c())?u():J+=Xe(b())):J+=Xe(o)}throw new Error("Internal error")},_=function(){const z=new Cg("");for(;Nn(c());)u();if(h(c()))return z;for(;u();){if(o===41||h())return z;if(Nn(o)){for(;Nn(c());)u();return c()===41||h(c())?(u(),z):(Q(),new jl)}else{if(o===34||o===39||o===40||Px(o))return Q(),new jl;if(o===92)if(N())z.value+=Xe(b());else return Q(),new jl;else z.value+=Xe(o)}}throw new Error("Internal error")},b=function(){if(u(),rm(o)){const z=[o];for(let de=0;de<5&&rm(c());de++)u(),z.push(o);Nn(c())&&u();let J=parseInt(z.map(function(de){return String.fromCharCode(de)}).join(""),16);return J>Rx&&(J=65533),J}else return h()?65533:o},T=function(z,J){return!(z!==92||Ll(J))},N=function(){return T(o,c())},O=function(z,J,de){return z===45?Al(J)||J===45||T(J,de):Al(z)?!0:z===92?T(z,J):!1},R=function(){return O(o,c(1),c(2))},D=function(z,J,de){return z===43||z===45?!!(Tt(J)||J===46&&Tt(de)):z===46?!!Tt(J):!!Tt(z)},F=function(){return D(o,c(1),c(2))},U=function(){let z="";for(;u();)if(sm(o))z+=Xe(o);else if(N())z+=Xe(b());else return d(),z;throw new Error("Internal parse error")},B=function(){let z="",J="integer";for((c()===43||c()===45)&&(u(),z+=Xe(o));Tt(c());)u(),z+=Xe(o);if(c(1)===46&&Tt(c(2)))for(u(),z+=Xe(o),u(),z+=Xe(o),J="number";Tt(c());)u(),z+=Xe(o);const de=c(1),Te=c(2),Le=c(3);if((de===69||de===101)&&Tt(Te))for(u(),z+=Xe(o),u(),z+=Xe(o),J="number";Tt(c());)u(),z+=Xe(o);else if((de===69||de===101)&&(Te===43||Te===45)&&Tt(Le))for(u(),z+=Xe(o),u(),z+=Xe(o),u(),z+=Xe(o),J="number";Tt(c());)u(),z+=Xe(o);const ye=I(z);return{type:J,value:ye,repr:z}},I=function(z){return+z},Q=function(){for(;u();){if(o===41||h())return;N()&&b()}};let W=0;for(;!h(c());)if(s.push(y()),W++,W>e.length*2)throw new Error("I'm infinite-looping!");return s}class Ve{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class dg extends Ve{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class jl extends Ve{constructor(){super(...arguments),this.tokenType="BADURL"}}class Wu extends Ve{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class hg extends Ve{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return"<!--"}}class pg extends Ve{constructor(){super(...arguments),this.tokenType="CDC"}toSource(){return"-->"}}class mg extends Ve{constructor(){super(...arguments),this.tokenType=":"}}class gg extends Ve{constructor(){super(...arguments),this.tokenType=";"}}class yg extends Ve{constructor(){super(...arguments),this.tokenType=","}}class Ms extends Ve{constructor(){super(...arguments),this.value="",this.mirror=""}}class vg extends Ms{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class wg extends Ms{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class xg extends Ms{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class Ku extends Ms{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class Sg extends Ms{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class _g extends Ms{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class zx extends Ve{constructor(){super(...arguments),this.tokenType="~="}}class Bx extends Ve{constructor(){super(...arguments),this.tokenType="|="}}class Ux extends Ve{constructor(){super(...arguments),this.tokenType="^="}}class qx extends Ve{constructor(){super(...arguments),this.tokenType="$="}}class Hx extends Ve{constructor(){super(...arguments),this.tokenType="*="}}class kg extends Ve{constructor(){super(...arguments),this.tokenType="||"}}class Il extends Ve{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class at extends Ve{constructor(e){super(),this.tokenType="DELIM",this.value="",this.value=Xe(e)}toString(){return"DELIM("+this.value+")"}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e}toSource(){return this.value==="\\"?`\\
42
42
  `:this.value}}class $s extends Ve{constructor(){super(...arguments),this.value=""}ASCIIMatch(e){return this.value.toLowerCase()===e.toLowerCase()}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e}}class bg extends $s{constructor(e){super(),this.tokenType="IDENT",this.value=e}toString(){return"IDENT("+this.value+")"}toSource(){return eo(this.value)}}class Ol extends $s{constructor(e){super(),this.tokenType="FUNCTION",this.value=e,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return eo(this.value)+"("}}class Eg extends $s{constructor(e){super(),this.tokenType="AT-KEYWORD",this.value=e}toString(){return"AT("+this.value+")"}toSource(){return"@"+eo(this.value)}}class Tg extends $s{constructor(e){super(),this.tokenType="HASH",this.value=e,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.type=this.type,e}toSource(){return this.type==="id"?"#"+eo(this.value):"#"+Wx(this.value)}}class Ng extends $s{constructor(e){super(),this.tokenType="STRING",this.value=e}toString(){return'"'+jg(this.value)+'"'}}class Cg extends $s{constructor(e){super(),this.tokenType="URL",this.value=e}toString(){return"URL("+this.value+")"}toSource(){return'url("'+jg(this.value)+'")'}}class Ag extends Ve{constructor(){super(),this.tokenType="NUMBER",this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const e=super.toJSON();return e.value=this.value,e.type=this.type,e.repr=this.repr,e}toSource(){return this.repr}}class Lg extends Ve{constructor(){super(),this.tokenType="PERCENTAGE",this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.repr=this.repr,e}toSource(){return this.repr+"%"}}class Vx extends Ve{constructor(){super(),this.tokenType="DIMENSION",this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.type=this.type,e.repr=this.repr,e.unit=this.unit,e}toSource(){const e=this.repr;let n=eo(this.unit);return n[0].toLowerCase()==="e"&&(n[1]==="-"||Ke(n.charCodeAt(1),48,57))&&(n="\\65 "+n.slice(1,n.length)),e+n}}function eo(t){t=""+t;let e="";const n=t.charCodeAt(0);for(let s=0;s<t.length;s++){const o=t.charCodeAt(s);if(o===0)throw new hf("Invalid character: the input contains U+0000.");Ke(o,1,31)||o===127||s===0&&Ke(o,48,57)||s===1&&Ke(o,48,57)&&n===45?e+="\\"+o.toString(16)+" ":o>=128||o===45||o===95||Ke(o,48,57)||Ke(o,65,90)||Ke(o,97,122)?e+=t[s]:e+="\\"+t[s]}return e}function Wx(t){t=""+t;let e="";for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);if(s===0)throw new hf("Invalid character: the input contains U+0000.");s>=128||s===45||s===95||Ke(s,48,57)||Ke(s,65,90)||Ke(s,97,122)?e+=t[n]:e+="\\"+s.toString(16)+" "}return e}function jg(t){t=""+t;let e="";for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);if(s===0)throw new hf("Invalid character: the input contains U+0000.");Ke(s,1,31)||s===127?e+="\\"+s.toString(16)+" ":s===34||s===92?e+="\\"+t[n]:e+=t[n]}return e}class Nt extends Error{}function Kx(t,e){let n;try{n=Fx(t),n[n.length-1]instanceof Il||n.push(new Il)}catch(I){const Q=I.message+` while parsing css selector "${t}". Did you mean to CSS.escape it?`,W=(I.stack||"").indexOf(I.message);throw W!==-1&&(I.stack=I.stack.substring(0,W)+Q+I.stack.substring(W+I.message.length)),I.message=Q,I}const s=n.find(I=>I instanceof Eg||I instanceof dg||I instanceof jl||I instanceof kg||I instanceof hg||I instanceof pg||I instanceof gg||I instanceof vg||I instanceof wg||I instanceof Cg||I instanceof Lg);if(s)throw new Nt(`Unsupported token "${s.toSource()}" while parsing css selector "${t}". Did you mean to CSS.escape it?`);let o=0;const l=new ke;function c(){return new Nt(`Unexpected token "${n[o].toSource()}" while parsing css selector "${t}". Did you mean to CSS.escape it?`)}function u(){for(;n[o]instanceof Wu;)o++}function d(I=o){return n[I]instanceof bg}function h(I=o){return n[I]instanceof Ng}function y(I=o){return n[I]instanceof Ag}function v(I=o){return n[I]instanceof yg}function m(I=o){return n[I]instanceof Sg}function w(I=o){return n[I]instanceof _g}function S(I=o){return n[I]instanceof Ol}function _(I=o){return n[I]instanceof at&&n[I].value==="*"}function b(I=o){return n[I]instanceof Il}function T(I=o){return n[I]instanceof at&&[">","+","~"].includes(n[I].value)}function N(I=o){return v(I)||w(I)||b(I)||T(I)||n[I]instanceof Wu}function O(){const I=[R()];for(;u(),!!v();)o++,I.push(R());return I}function R(){return u(),y()||h()?n[o++].value:D()}function D(){const I={simples:[]};for(u(),T()?I.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):I.simples.push({selector:F(),combinator:""});;){if(u(),T())I.simples[I.simples.length-1].combinator=n[o++].value,u();else if(N())break;I.simples.push({combinator:"",selector:F()})}return I}function F(){let I="";const Q=[];for(;!N();)if(d()||_())I+=n[o++].toSource();else if(n[o]instanceof Tg)I+=n[o++].toSource();else if(n[o]instanceof at&&n[o].value===".")if(o++,d())I+="."+n[o++].toSource();else throw c();else if(n[o]instanceof mg)if(o++,d())if(!e.has(n[o].value.toLowerCase()))I+=":"+n[o++].toSource();else{const W=n[o++].value.toLowerCase();Q.push({name:W,args:[]}),l.add(W)}else if(S()){const W=n[o++].value.toLowerCase();if(e.has(W)?(Q.push({name:W,args:O()}),l.add(W)):I+=`:${W}(${U()})`,u(),!w())throw c();o++}else throw c();else if(n[o]instanceof xg){for(I+="[",o++;!(n[o]instanceof Ku)&&!b();)I+=n[o++].toSource();if(!(n[o]instanceof Ku))throw c();I+="]",o++}else throw c();if(!I&&!Q.length)throw c();return{css:I||void 0,functions:Q}}function U(){let I="",Q=1;for(;!b()&&((m()||S())&&Q++,w()&&Q--,!!Q);)I+=n[o++].toSource();return I}const B=O();if(!b())throw c();if(B.some(I=>typeof I!="object"||!("simples"in I)))throw new Nt(`Error while parsing css selector "${t}". Did you mean to CSS.escape it?`);return{selector:B,names:Array.from(l)}}const Qu=new ke(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),Qx=new ke(["left-of","right-of","above","below","near"]),Ig=new ke(["not","is","where","has","scope","light","visible","text","text-matches","text-is","has-text","above","below","right-of","left-of","near","nth-match"]);function na(t){const e=Jx(t),n=[];for(const s of e.parts){if(s.name==="css"||s.name==="css:light"){s.name==="css:light"&&(s.body=":light("+s.body+")");const o=Kx(s.body,Ig);n.push({name:"css",body:o.selector,source:s.body});continue}if(Qu.has(s.name)){let o,l;try{const h=JSON.parse("["+s.body+"]");if(!Array.isArray(h)||h.length<1||h.length>2||typeof h[0]!="string")throw new Nt(`Malformed selector: ${s.name}=`+s.body);if(o=h[0],h.length===2){if(typeof h[1]!="number"||!Qx.has(s.name))throw new Nt(`Malformed selector: ${s.name}=`+s.body);l=h[1]}}catch{throw new Nt(`Malformed selector: ${s.name}=`+s.body)}const c={name:s.name,source:s.body,body:{parsed:na(o),distance:l}},u=[...c.body.parsed.parts].reverse().find(h=>h.name==="internal:control"&&h.body==="enter-frame"),d=u?c.body.parsed.parts.indexOf(u):-1;d!==-1&&Gx(c.body.parsed.parts.slice(0,d+1),n.slice(0,d+1))&&c.body.parsed.parts.splice(0,d+1),n.push(c);continue}n.push({...s,source:s.body})}if(Qu.has(n[0].name))throw new Nt(`"${n[0].name}" selector cannot be first`);return{capture:e.capture,parts:n}}function Gx(t,e){return jn({parts:t})===jn({parts:e})}function jn(t,e){return typeof t=="string"?t:t.parts.map((n,s)=>{let o=!0;!e&&s!==t.capture&&(n.name==="css"||n.name==="xpath"&&n.source.startsWith("//")||n.source.startsWith(".."))&&(o=!1);const l=o?n.name+"=":"";return`${s===t.capture?"*":""}${l}${n.source}`}).join(" >> ")}function Xx(t,e){const n=(s,o)=>{for(const l of s.parts)e(l,o),Qu.has(l.name)&&n(l.body.parsed,!0)};n(t,!1)}function Jx(t){let e=0,n,s=0;const o={parts:[]},l=()=>{const u=t.substring(s,e).trim(),d=u.indexOf("=");let h,y;d!==-1&&u.substring(0,d).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(h=u.substring(0,d).trim(),y=u.substring(d+1)):u.length>1&&u[0]==='"'&&u[u.length-1]==='"'||u.length>1&&u[0]==="'"&&u[u.length-1]==="'"?(h="text",y=u):/^\(*\/\//.test(u)||u.startsWith("..")?(h="xpath",y=u):(h="css",y=u);let v=!1;if(h[0]==="*"&&(v=!0,h=h.substring(1)),o.parts.push({name:h,body:y}),v){if(o.capture!==void 0)throw new Nt("Only one of the selectors can capture using * modifier");o.capture=o.parts.length-1}};if(!t.includes(">>"))return e=t.length,l(),o;const c=()=>{const d=t.substring(s,e).match(/^\s*text\s*=(.*)$/);return!!d&&!!d[1]};for(;e<t.length;){const u=t[e];u==="\\"&&e+1<t.length?e+=2:u===n?(n=void 0,e++):!n&&(u==='"'||u==="'"||u==="`")&&!c()?(n=u,e++):!n&&u===">"&&t[e+1]===">"?(l(),e+=2,s=e):e++}return l(),o}function Ir(t,e){let n=0,s=t.length===0;const o=()=>t[n]||"",l=()=>{const b=o();return++n,s=n>=t.length,b},c=b=>{throw s?new Nt(`Unexpected end of selector while parsing selector \`${t}\``):new Nt(`Error while parsing selector \`${t}\` - unexpected symbol "${o()}" at position ${n}`+(b?" during "+b:""))};function u(){for(;!s&&/\s/.test(o());)l()}function d(b){return b>="€"||b>="0"&&b<="9"||b>="A"&&b<="Z"||b>="a"&&b<="z"||b>="0"&&b<="9"||b==="_"||b==="-"}function h(){let b="";for(u();!s&&d(o());)b+=l();return b}function y(b){let T=l();for(T!==b&&c("parsing quoted string");!s&&o()!==b;)o()==="\\"&&l(),T+=l();return o()!==b&&c("parsing quoted string"),T+=l(),T}function v(){l()!=="/"&&c("parsing regular expression");let b="",T=!1;for(;!s;){if(o()==="\\")b+=l(),s&&c("parsing regular expression");else if(T&&o()==="]")T=!1;else if(!T&&o()==="[")T=!0;else if(!T&&o()==="/")break;b+=l()}l()!=="/"&&c("parsing regular expression");let N="";for(;!s&&o().match(/[dgimsuy]/);)N+=l();try{return new RegExp(b,N)}catch(O){throw new Nt(`Error while parsing selector \`${t}\`: ${O.message}`)}}function m(){let b="";return u(),o()==="'"||o()==='"'?b=y(o()).slice(1,-1):b=h(),b||c("parsing property path"),b}function w(){u();let b="";return s||(b+=l()),!s&&b!=="="&&(b+=l()),["=","*=","^=","$=","|=","~="].includes(b)||c("parsing operator"),b}function S(){l();const b=[];for(b.push(m()),u();o()===".";)l(),b.push(m()),u();if(o()==="]")return l(),{name:b.join("."),jsonPath:b,op:"<truthy>",value:null,caseSensitive:!1};const T=w();let N,O=!0;if(u(),o()==="/"){if(T!=="=")throw new Nt(`Error while parsing selector \`${t}\` - cannot use ${T} in attribute with regular expression`);N=v()}else if(o()==="'"||o()==='"')N=y(o()).slice(1,-1),u(),o()==="i"||o()==="I"?(O=!1,l()):(o()==="s"||o()==="S")&&(O=!0,l());else{for(N="";!s&&(d(o())||o()==="+"||o()===".");)N+=l();N==="true"?N=!0:N==="false"?N=!1:e||(N=+N,Number.isNaN(N)&&c("parsing attribute value"))}if(u(),o()!=="]"&&c("parsing attribute value"),l(),T!=="="&&typeof N!="string")throw new Nt(`Error while parsing selector \`${t}\` - cannot use ${T} in attribute with non-string matching value - ${N}`);return{name:b.join("."),jsonPath:b,op:T,value:N,caseSensitive:O}}const _={name:"",attributes:[]};for(_.name=h(),u();o()==="[";)_.attributes.push(S()),u();if(s||c(void 0),!_.name&&!_.attributes.length)throw new Nt(`Error while parsing selector \`${t}\` - selector cannot be empty`);return _}function ra(t,e="'"){const n=JSON.stringify(t),s=n.substring(1,n.length-1).replace(/\\"/g,'"');if(e==="'")return e+s.replace(/[']/g,"\\'")+e;if(e==='"')return e+s.replace(/["]/g,'\\"')+e;if(e==="`")return e+s.replace(/[`]/g,"`")+e;throw new Error("Invalid escape char")}function Vl(t){return t.charAt(0).toUpperCase()+t.substring(1)}function Og(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function Kt(t){let e="";for(let n=0;n<t.length;n++)e+=Yx(t,n);return e}function Ii(t){return`"${Kt(t).replace(/\\ /g," ")}"`}function Yx(t,e){const n=t.charCodeAt(e);return n===0?"�":n>=1&&n<=31||n>=48&&n<=57&&(e===0||e===1&&t.charCodeAt(0)===45)?"\\"+n.toString(16)+" ":e===0&&n===45&&t.length===1?"\\"+t.charAt(e):n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122?t.charAt(e):"\\"+t.charAt(e)}let Er;function Zx(){Er=new be}function vt(t){let e=Er==null?void 0:Er.get(t);return e===void 0&&(e=t.replace(/[\u200b\u00ad]/g,"").trim().replace(/\s+/g," "),Er==null||Er.set(t,e)),e}function sa(t){return t.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function Mg(t){return t.unicode||t.unicodeSets?String(t):String(t).replace(/(^|[^\\])(\\\\)*(["'`])/g,"$1$2\\$3").replace(/>>/g,"\\>\\>")}function Ct(t,e){return typeof t!="string"?Mg(t):`${JSON.stringify(t)}${e?"s":"i"}`}function mt(t,e){return typeof t!="string"?Mg(t):`"${t.replace(/\\/g,"\\\\").replace(/["]/g,'\\"')}"${e?"s":"i"}`}function e1(t,e,n=""){if(t.length<=e)return t;const s=[...t];return s.length>e?s.slice(0,e-n.length).join("")+n:s.join("")}function im(t,e){return e1(t,e,"…")}function Wl(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function t1(t,e){const n=t.length,s=e.length;let o=0,l=0;const c=Array(n+1).fill(null).map(()=>Array(s+1).fill(0));for(let u=1;u<=n;u++)for(let d=1;d<=s;d++)t[u-1]===e[d-1]&&(c[u][d]=c[u-1][d-1]+1,c[u][d]>o&&(o=c[u][d],l=u));return t.slice(l-o,l)}function or(t,e,n=!1){return $g(t,e,n,1)[0]}function $g(t,e,n=!1,s=20,o){try{return ys(new a1[t](o),na(e),n,s)}catch{return[e]}}function ys(t,e,n=!1,s=20){const o=[...e.parts],l=[];let c=n?"frame-locator":"page";for(let u=0;u<o.length;u++){const d=o[u],h=c;if(c="locator",d.name==="nth"){d.body==="0"?l.push([t.generateLocator(h,"first",""),t.generateLocator(h,"nth","0")]):d.body==="-1"?l.push([t.generateLocator(h,"last",""),t.generateLocator(h,"nth","-1")]):l.push([t.generateLocator(h,"nth",d.body)]);continue}if(d.name==="visible"){l.push([t.generateLocator(h,"visible",d.body),t.generateLocator(h,"default",`visible=${d.body}`)]);continue}if(d.name==="internal:text"){const{exact:S,text:_}=Oi(d.body);l.push([t.generateLocator(h,"text",_,{exact:S})]);continue}if(d.name==="internal:has-text"){const{exact:S,text:_}=Oi(d.body);if(!S){l.push([t.generateLocator(h,"has-text",_,{exact:S})]);continue}}if(d.name==="internal:has-not-text"){const{exact:S,text:_}=Oi(d.body);if(!S){l.push([t.generateLocator(h,"has-not-text",_,{exact:S})]);continue}}if(d.name==="internal:has"){const S=ys(t,d.body.parsed,!1,s);l.push(S.map(_=>t.generateLocator(h,"has",_)));continue}if(d.name==="internal:has-not"){const S=ys(t,d.body.parsed,!1,s);l.push(S.map(_=>t.generateLocator(h,"hasNot",_)));continue}if(d.name==="internal:and"){const S=ys(t,d.body.parsed,!1,s);l.push(S.map(_=>t.generateLocator(h,"and",_)));continue}if(d.name==="internal:or"){const S=ys(t,d.body.parsed,!1,s);l.push(S.map(_=>t.generateLocator(h,"or",_)));continue}if(d.name==="internal:chain"){const S=ys(t,d.body.parsed,!1,s);l.push(S.map(_=>t.generateLocator(h,"chain",_)));continue}if(d.name==="internal:label"){const{exact:S,text:_}=Oi(d.body);l.push([t.generateLocator(h,"label",_,{exact:S})]);continue}if(d.name==="internal:role"){const S=Ir(d.body,!0),_={attrs:[]};for(const b of S.attributes)b.name==="name"?(_.exact=b.caseSensitive,_.name=b.value):(b.name==="level"&&typeof b.value=="string"&&(b.value=+b.value),_.attrs.push({name:b.name==="include-hidden"?"includeHidden":b.name,value:b.value}));l.push([t.generateLocator(h,"role",S.name,_)]);continue}if(d.name==="internal:testid"){const S=Ir(d.body,!0),{value:_}=S.attributes[0];l.push([t.generateLocator(h,"test-id",_)]);continue}if(d.name==="internal:attr"){const S=Ir(d.body,!0),{name:_,value:b,caseSensitive:T}=S.attributes[0],N=b,O=!!T;if(_==="placeholder"){l.push([t.generateLocator(h,"placeholder",N,{exact:O})]);continue}if(_==="alt"){l.push([t.generateLocator(h,"alt",N,{exact:O})]);continue}if(_==="title"){l.push([t.generateLocator(h,"title",N,{exact:O})]);continue}}if(d.name==="internal:control"&&d.body==="enter-frame"){const S=l[l.length-1],_=o[u-1],b=S.map(T=>t.chainLocators([T,t.generateLocator(h,"frame","")]));["xpath","css"].includes(_.name)&&b.push(t.generateLocator(h,"frame-locator",jn({parts:[_]})),t.generateLocator(h,"frame-locator",jn({parts:[_]},!0))),S.splice(0,S.length,...b),c="frame-locator";continue}const y=o[u+1],v=jn({parts:[d]}),m=t.generateLocator(h,"default",v);if(y&&["internal:has-text","internal:has-not-text"].includes(y.name)){const{exact:S,text:_}=Oi(y.body);if(!S){const b=t.generateLocator("locator",y.name==="internal:has-text"?"has-text":"has-not-text",_,{exact:S}),T={};y.name==="internal:has-text"?T.hasText=_:T.hasNotText=_;const N=t.generateLocator(h,"default",v,T);l.push([t.chainLocators([m,b]),N]),u++;continue}}let w;if(["xpath","css"].includes(d.name)){const S=jn({parts:[d]},!0);w=t.generateLocator(h,"default",S)}l.push([m,w].filter(Boolean))}return n1(t,l,s)}function n1(t,e,n){const s=e.map(()=>""),o=[],l=c=>{if(c===e.length)return o.push(t.chainLocators(s)),o.length<n;for(const u of e[c])if(s[c]=u,!l(c+1))return!1;return!0};return l(0),o}function Oi(t){let e=!1;const n=t.match(/^\/(.*)\/([igm]*)$/);return n?{text:new RegExp(n[1],n[2])}:(t.endsWith('"')?(t=JSON.parse(t),e=!0):t.endsWith('"s')?(t=JSON.parse(t.substring(0,t.length-1)),e=!0):t.endsWith('"i')&&(t=JSON.parse(t.substring(0,t.length-1)),e=!1),{exact:e,text:t})}class r1{constructor(e){this.preferredQuote=e}generateLocator(e,n,s,o={}){switch(n){case"default":return o.hasText!==void 0?`locator(${this.quote(s)}, { hasText: ${this.toHasText(o.hasText)} })`:o.hasNotText!==void 0?`locator(${this.quote(s)}, { hasNotText: ${this.toHasText(o.hasNotText)} })`:`locator(${this.quote(s)})`;case"frame-locator":return`frameLocator(${this.quote(s)})`;case"frame":return"contentFrame()";case"nth":return`nth(${s})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter({ visible: ${s==="true"?"true":"false"} })`;case"role":const l=[];rt(o.name)?l.push(`name: ${this.regexToSourceString(o.name)}`):typeof o.name=="string"&&(l.push(`name: ${this.quote(o.name)}`),o.exact&&l.push("exact: true"));for(const{name:u,value:d}of o.attrs)l.push(`${u}: ${typeof d=="string"?this.quote(d):d}`);const c=l.length?`, { ${l.join(", ")} }`:"";return`getByRole(${this.quote(s)}${c})`;case"has-text":return`filter({ hasText: ${this.toHasText(s)} })`;case"has-not-text":return`filter({ hasNotText: ${this.toHasText(s)} })`;case"has":return`filter({ has: ${s} })`;case"hasNot":return`filter({ hasNot: ${s} })`;case"and":return`and(${s})`;case"or":return`or(${s})`;case"chain":return`locator(${s})`;case"test-id":return`getByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("getByText",s,!!o.exact);case"alt":return this.toCallWithExact("getByAltText",s,!!o.exact);case"placeholder":return this.toCallWithExact("getByPlaceholder",s,!!o.exact);case"label":return this.toCallWithExact("getByLabel",s,!!o.exact);case"title":return this.toCallWithExact("getByTitle",s,!!o.exact);default:throw new Error("Unknown selector kind "+n)}}chainLocators(e){return e.join(".")}regexToSourceString(e){return sa(String(e))}toCallWithExact(e,n,s){return rt(n)?`${e}(${this.regexToSourceString(n)})`:s?`${e}(${this.quote(n)}, { exact: true })`:`${e}(${this.quote(n)})`}toHasText(e){return rt(e)?this.regexToSourceString(e):this.quote(e)}toTestIdValue(e){return rt(e)?this.regexToSourceString(e):this.quote(e)}quote(e){return ra(e,this.preferredQuote??"'")}}class s1{generateLocator(e,n,s,o={}){switch(n){case"default":return o.hasText!==void 0?`locator(${this.quote(s)}, has_text=${this.toHasText(o.hasText)})`:o.hasNotText!==void 0?`locator(${this.quote(s)}, has_not_text=${this.toHasText(o.hasNotText)})`:`locator(${this.quote(s)})`;case"frame-locator":return`frame_locator(${this.quote(s)})`;case"frame":return"content_frame";case"nth":return`nth(${s})`;case"first":return"first";case"last":return"last";case"visible":return`filter(visible=${s==="true"?"True":"False"})`;case"role":const l=[];rt(o.name)?l.push(`name=${this.regexToString(o.name)}`):typeof o.name=="string"&&(l.push(`name=${this.quote(o.name)}`),o.exact&&l.push("exact=True"));for(const{name:u,value:d}of o.attrs){let h=typeof d=="string"?this.quote(d):d;typeof d=="boolean"&&(h=d?"True":"False"),l.push(`${Og(u)}=${h}`)}const c=l.length?`, ${l.join(", ")}`:"";return`get_by_role(${this.quote(s)}${c})`;case"has-text":return`filter(has_text=${this.toHasText(s)})`;case"has-not-text":return`filter(has_not_text=${this.toHasText(s)})`;case"has":return`filter(has=${s})`;case"hasNot":return`filter(has_not=${s})`;case"and":return`and_(${s})`;case"or":return`or_(${s})`;case"chain":return`locator(${s})`;case"test-id":return`get_by_test_id(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("get_by_text",s,!!o.exact);case"alt":return this.toCallWithExact("get_by_alt_text",s,!!o.exact);case"placeholder":return this.toCallWithExact("get_by_placeholder",s,!!o.exact);case"label":return this.toCallWithExact("get_by_label",s,!!o.exact);case"title":return this.toCallWithExact("get_by_title",s,!!o.exact);default:throw new Error("Unknown selector kind "+n)}}chainLocators(e){return e.join(".")}regexToString(e){const n=e.flags.includes("i")?", re.IGNORECASE":"";return`re.compile(r"${sa(e.source).replace(/\\\//,"/").replace(/"/g,'\\"')}"${n})`}toCallWithExact(e,n,s){return rt(n)?`${e}(${this.regexToString(n)})`:s?`${e}(${this.quote(n)}, exact=True)`:`${e}(${this.quote(n)})`}toHasText(e){return rt(e)?this.regexToString(e):`${this.quote(e)}`}toTestIdValue(e){return rt(e)?this.regexToString(e):this.quote(e)}quote(e){return ra(e,'"')}}class i1{generateLocator(e,n,s,o={}){let l;switch(e){case"page":l="Page";break;case"frame-locator":l="FrameLocator";break;case"locator":l="Locator";break}switch(n){case"default":return o.hasText!==void 0?`locator(${this.quote(s)}, new ${l}.LocatorOptions().setHasText(${this.toHasText(o.hasText)}))`:o.hasNotText!==void 0?`locator(${this.quote(s)}, new ${l}.LocatorOptions().setHasNotText(${this.toHasText(o.hasNotText)}))`:`locator(${this.quote(s)})`;case"frame-locator":return`frameLocator(${this.quote(s)})`;case"frame":return"contentFrame()";case"nth":return`nth(${s})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter(new ${l}.FilterOptions().setVisible(${s==="true"?"true":"false"}))`;case"role":const c=[];rt(o.name)?c.push(`.setName(${this.regexToString(o.name)})`):typeof o.name=="string"&&(c.push(`.setName(${this.quote(o.name)})`),o.exact&&c.push(".setExact(true)"));for(const{name:d,value:h}of o.attrs)c.push(`.set${Vl(d)}(${typeof h=="string"?this.quote(h):h})`);const u=c.length?`, new ${l}.GetByRoleOptions()${c.join("")}`:"";return`getByRole(AriaRole.${Og(s).toUpperCase()}${u})`;case"has-text":return`filter(new ${l}.FilterOptions().setHasText(${this.toHasText(s)}))`;case"has-not-text":return`filter(new ${l}.FilterOptions().setHasNotText(${this.toHasText(s)}))`;case"has":return`filter(new ${l}.FilterOptions().setHas(${s}))`;case"hasNot":return`filter(new ${l}.FilterOptions().setHasNot(${s}))`;case"and":return`and(${s})`;case"or":return`or(${s})`;case"chain":return`locator(${s})`;case"test-id":return`getByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact(l,"getByText",s,!!o.exact);case"alt":return this.toCallWithExact(l,"getByAltText",s,!!o.exact);case"placeholder":return this.toCallWithExact(l,"getByPlaceholder",s,!!o.exact);case"label":return this.toCallWithExact(l,"getByLabel",s,!!o.exact);case"title":return this.toCallWithExact(l,"getByTitle",s,!!o.exact);default:throw new Error("Unknown selector kind "+n)}}chainLocators(e){return e.join(".")}regexToString(e){const n=e.flags.includes("i")?", Pattern.CASE_INSENSITIVE":"";return`Pattern.compile(${this.quote(sa(e.source))}${n})`}toCallWithExact(e,n,s,o){return rt(s)?`${n}(${this.regexToString(s)})`:o?`${n}(${this.quote(s)}, new ${e}.${Vl(n)}Options().setExact(true))`:`${n}(${this.quote(s)})`}toHasText(e){return rt(e)?this.regexToString(e):this.quote(e)}toTestIdValue(e){return rt(e)?this.regexToString(e):this.quote(e)}quote(e){return ra(e,'"')}}class o1{generateLocator(e,n,s,o={}){switch(n){case"default":return o.hasText!==void 0?`Locator(${this.quote(s)}, new() { ${this.toHasText(o.hasText)} })`:o.hasNotText!==void 0?`Locator(${this.quote(s)}, new() { ${this.toHasNotText(o.hasNotText)} })`:`Locator(${this.quote(s)})`;case"frame-locator":return`FrameLocator(${this.quote(s)})`;case"frame":return"ContentFrame";case"nth":return`Nth(${s})`;case"first":return"First";case"last":return"Last";case"visible":return`Filter(new() { Visible = ${s==="true"?"true":"false"} })`;case"role":const l=[];rt(o.name)?l.push(`NameRegex = ${this.regexToString(o.name)}`):typeof o.name=="string"&&(l.push(`Name = ${this.quote(o.name)}`),o.exact&&l.push("Exact = true"));for(const{name:u,value:d}of o.attrs)l.push(`${Vl(u)} = ${typeof d=="string"?this.quote(d):d}`);const c=l.length?`, new() { ${l.join(", ")} }`:"";return`GetByRole(AriaRole.${Vl(s)}${c})`;case"has-text":return`Filter(new() { ${this.toHasText(s)} })`;case"has-not-text":return`Filter(new() { ${this.toHasNotText(s)} })`;case"has":return`Filter(new() { Has = ${s} })`;case"hasNot":return`Filter(new() { HasNot = ${s} })`;case"and":return`And(${s})`;case"or":return`Or(${s})`;case"chain":return`Locator(${s})`;case"test-id":return`GetByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("GetByText",s,!!o.exact);case"alt":return this.toCallWithExact("GetByAltText",s,!!o.exact);case"placeholder":return this.toCallWithExact("GetByPlaceholder",s,!!o.exact);case"label":return this.toCallWithExact("GetByLabel",s,!!o.exact);case"title":return this.toCallWithExact("GetByTitle",s,!!o.exact);default:throw new Error("Unknown selector kind "+n)}}chainLocators(e){return e.join(".")}regexToString(e){const n=e.flags.includes("i")?", RegexOptions.IgnoreCase":"";return`new Regex(${this.quote(sa(e.source))}${n})`}toCallWithExact(e,n,s){return rt(n)?`${e}(${this.regexToString(n)})`:s?`${e}(${this.quote(n)}, new() { Exact = true })`:`${e}(${this.quote(n)})`}toHasText(e){return rt(e)?`HasTextRegex = ${this.regexToString(e)}`:`HasText = ${this.quote(e)}`}toTestIdValue(e){return rt(e)?this.regexToString(e):this.quote(e)}toHasNotText(e){return rt(e)?`HasNotTextRegex = ${this.regexToString(e)}`:`HasNotText = ${this.quote(e)}`}quote(e){return ra(e,'"')}}class l1{generateLocator(e,n,s,o={}){return JSON.stringify({kind:n,body:s,options:o})}chainLocators(e){const n=e.map(s=>JSON.parse(s));for(let s=0;s<n.length-1;++s)n[s].next=n[s+1];return JSON.stringify(n[0])}}const a1={javascript:r1,python:s1,java:i1,csharp:o1,jsonl:l1};function rt(t){return t instanceof RegExp}const om=new Map;function c1({name:t,rootItem:e,render:n,title:s,icon:o,isError:l,isVisible:c,selectedItem:u,onAccepted:d,onSelected:h,onHighlighted:y,treeState:v,setTreeState:m,noItemsMessage:w,dataTestId:S,autoExpandDepth:_}){const b=P.useMemo(()=>u1(e,u,v.expandedItems,_||0,c),[e,u,v,_,c]),T=P.useRef(null),[N,O]=P.useState(),[R,D]=P.useState(!1);P.useEffect(()=>{y==null||y(N)},[y,N]),P.useEffect(()=>{const U=T.current;if(!U)return;const B=()=>{om.set(t,U.scrollTop)};return U.addEventListener("scroll",B,{passive:!0}),()=>U.removeEventListener("scroll",B)},[t]),P.useEffect(()=>{T.current&&(T.current.scrollTop=om.get(t)||0)},[t]);const F=P.useCallback(U=>{const{expanded:B}=b.get(U);if(B){for(let I=u;I;I=I.parent)if(I===U){h==null||h(U);break}v.expandedItems.set(U.id,!1)}else v.expandedItems.set(U.id,!0);m({...v})},[b,u,h,v,m]);return x.jsx("div",{className:Ue("tree-view vbox",t+"-tree-view"),role:"tree","data-testid":S||t+"-tree",children:x.jsxs("div",{className:Ue("tree-view-content"),tabIndex:0,onKeyDown:U=>{if(u&&U.key==="Enter"){d==null||d(u);return}if(U.key!=="ArrowDown"&&U.key!=="ArrowUp"&&U.key!=="ArrowLeft"&&U.key!=="ArrowRight")return;if(U.stopPropagation(),U.preventDefault(),u&&U.key==="ArrowLeft"){const{expanded:I,parent:Q}=b.get(u);I?(v.expandedItems.set(u.id,!1),m({...v})):Q&&(h==null||h(Q));return}if(u&&U.key==="ArrowRight"){u.children.length&&(v.expandedItems.set(u.id,!0),m({...v}));return}let B=u;if(U.key==="ArrowDown"&&(u?B=b.get(u).next:b.size&&(B=[...b.keys()][0])),U.key==="ArrowUp"){if(u)B=b.get(u).prev;else if(b.size){const I=[...b.keys()];B=I[I.length-1]}}y==null||y(void 0),B&&(D(!0),h==null||h(B)),O(void 0)},ref:T,children:[w&&b.size===0&&x.jsx("div",{className:"tree-view-empty",children:w}),e.children.map(U=>b.get(U)&&x.jsx(Pg,{item:U,treeItems:b,selectedItem:u,onSelected:h,onAccepted:d,isError:l,toggleExpanded:F,highlightedItem:N,setHighlightedItem:O,render:n,icon:o,title:s,isKeyboardNavigation:R,setIsKeyboardNavigation:D},U.id))]})})}function Pg({item:t,treeItems:e,selectedItem:n,onSelected:s,highlightedItem:o,setHighlightedItem:l,isError:c,onAccepted:u,toggleExpanded:d,render:h,title:y,icon:v,isKeyboardNavigation:m,setIsKeyboardNavigation:w}){const S=P.useId(),_=P.useRef(null);P.useEffect(()=>{n===t&&m&&_.current&&(lg(_.current),w(!1))},[t,n,m,w]);const b=e.get(t),T=b.depth,N=b.expanded;let O="codicon-blank";typeof N=="boolean"&&(O=N?"codicon-chevron-down":"codicon-chevron-right");const R=h(t),D=N&&t.children.length?t.children:[],F=y==null?void 0:y(t),U=(v==null?void 0:v(t))||"codicon-blank";return x.jsxs("div",{ref:_,role:"treeitem","aria-selected":t===n,"aria-expanded":N,"aria-controls":S,title:F,className:"vbox",style:{flex:"none"},children:[x.jsxs("div",{onDoubleClick:()=>u==null?void 0:u(t),className:Ue("tree-view-entry",n===t&&"selected",o===t&&"highlighted",(c==null?void 0:c(t))&&"error"),onClick:()=>s==null?void 0:s(t),onMouseEnter:()=>l(t),onMouseLeave:()=>l(void 0),children:[T?new Array(T).fill(0).map((B,I)=>x.jsx("div",{className:"tree-view-indent"},"indent-"+I)):void 0,x.jsx("div",{"aria-hidden":"true",className:"codicon "+O,style:{minWidth:16,marginRight:4},onDoubleClick:B=>{B.preventDefault(),B.stopPropagation()},onClick:B=>{B.stopPropagation(),B.preventDefault(),d(t)}}),v&&x.jsx("div",{className:"codicon "+U,style:{minWidth:16,marginRight:4},"aria-label":"["+U.replace("codicon","icon")+"]"}),typeof R=="string"?x.jsx("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:R}):R]}),!!D.length&&x.jsx("div",{id:S,role:"group",children:D.map(B=>e.get(B)&&x.jsx(Pg,{item:B,treeItems:e,selectedItem:n,onSelected:s,onAccepted:u,isError:c,toggleExpanded:d,highlightedItem:o,setHighlightedItem:l,render:h,title:y,icon:v,isKeyboardNavigation:m,setIsKeyboardNavigation:w},B.id))})]})}function u1(t,e,n,s,o=()=>!0){if(!o(t))return new Map;const l=new Map,c=new Set;for(let h=e==null?void 0:e.parent;h;h=h.parent)c.add(h.id);let u=null;const d=(h,y)=>{for(const v of h.children){if(!o(v))continue;const m=c.has(v.id)||n.get(v.id),w=s>y&&l.size<25&&m!==!1,S=v.children.length?m??w:void 0,_={depth:y,expanded:S,parent:t===h?null:h,next:null,prev:u};u&&(l.get(u).next=v),u=v,l.set(v,_),S&&d(v,y+1)}};return d(t,0),l}const Rt=P.forwardRef(function({children:e,title:n="",icon:s,disabled:o=!1,toggled:l=!1,onClick:c=()=>{},style:u,testId:d,className:h,ariaLabel:y},v){return x.jsxs("button",{ref:v,className:Ue(h,"toolbar-button",s,l&&"toggled"),onMouseDown:lm,onClick:c,onDoubleClick:lm,title:n,disabled:!!o,style:u,"data-testid":d,"aria-label":y||n,children:[s&&x.jsx("span",{className:`codicon codicon-${s}`,style:e?{marginRight:5}:{}}),e]})}),lm=t=>{t.stopPropagation(),t.preventDefault()};function Rg(t){return t==="scheduled"?"codicon-clock":t==="running"?"codicon-loading":t==="failed"?"codicon-error":t==="passed"?"codicon-check":t==="skipped"?"codicon-circle-slash":"codicon-circle-outline"}function f1(t){return t==="scheduled"?"Pending":t==="running"?"Running":t==="failed"?"Failed":t==="passed"?"Passed":t==="skipped"?"Skipped":"Did not run"}const d1=c1,h1=({actions:t,selectedAction:e,selectedTime:n,setSelectedTime:s,sdkLanguage:o,onSelected:l,onHighlighted:c,revealConsole:u,revealAttachment:d,isLive:h})=>{const[y,v]=P.useState({expandedItems:new Map}),{rootItem:m,itemMap:w}=P.useMemo(()=>Ex(t),[t]),{selectedItem:S}=P.useMemo(()=>({selectedItem:e?w.get(e.callId):void 0}),[w,e]),_=P.useCallback(D=>{var F,U;return!!((U=(F=D.action)==null?void 0:F.error)!=null&&U.message)},[]),b=P.useCallback(D=>s({minimum:D.action.startTime,maximum:D.action.endTime}),[s]),T=P.useCallback(D=>pf(D.action,{sdkLanguage:o,revealConsole:u,revealAttachment:d,isLive:h,showDuration:!0,showBadges:!0}),[h,u,d,o]),N=P.useCallback(D=>!n||!D.action||D.action.startTime<=n.maximum&&D.action.endTime>=n.minimum,[n]),O=P.useCallback(D=>{l==null||l(D.action)},[l]),R=P.useCallback(D=>{c==null||c(D==null?void 0:D.action)},[c]);return x.jsxs("div",{className:"vbox",children:[n&&x.jsxs("div",{className:"action-list-show-all",onClick:()=>s(void 0),children:[x.jsx("span",{className:"codicon codicon-triangle-left"}),"Show all"]}),x.jsx(d1,{name:"actions",rootItem:m,treeState:y,setTreeState:v,selectedItem:S,onSelected:O,onHighlighted:R,onAccepted:b,isError:_,isVisible:N,render:T})]})},pf=(t,e)=>{var S,_;const{sdkLanguage:n,revealConsole:s,revealAttachment:o,isLive:l,showDuration:c,showBadges:u}=e,{errors:d,warnings:h}=Nx(t),y=!!((S=t.attachments)!=null&&S.length)&&!!o,v=Dg(t,n||"javascript"),m=t.class==="Test"&&t.method==="step"&&((_=t.annotations)==null?void 0:_.some(b=>b.type==="skip"));let w="";return t.endTime?w=yt(t.endTime-t.startTime):t.error?w="Timed out":l||(w="-"),x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"action-title",title:t.apiName,children:[x.jsx("span",{children:t.apiName}),v&&(v.type==="locator"?x.jsxs(x.Fragment,{children:[x.jsx("span",{className:"action-parameter action-locator-parameter",children:v.value}),v.childDisplayString&&x.jsx("span",{className:"action-parameter action-generic-parameter",children:v.childDisplayString.value})]}):x.jsx("span",{className:"action-parameter action-generic-parameter",children:v.value})),t.method==="goto"&&t.params.url&&x.jsx("div",{className:"action-url",title:t.params.url,children:t.params.url}),t.class==="APIRequestContext"&&t.params.url&&x.jsx("div",{className:"action-url",title:t.params.url,children:p1(t.params.url)})]}),(c||u||y||m)&&x.jsx("div",{className:"spacer"}),y&&x.jsx(Rt,{icon:"attach",title:"Open Attachment",onClick:()=>o(t.attachments[0])}),c&&!m&&x.jsx("div",{className:"action-duration",children:w||x.jsx("span",{className:"codicon codicon-loading"})}),m&&x.jsx("span",{className:Ue("action-skipped","codicon",Rg("skipped")),title:"skipped"}),u&&x.jsxs("div",{className:"action-icons",onClick:()=>s==null?void 0:s(),children:[!!d&&x.jsxs("div",{className:"action-icon",children:[x.jsx("span",{className:"codicon codicon-error"}),x.jsx("span",{className:"action-icon-value",children:d})]}),!!h&&x.jsxs("div",{className:"action-icon",children:[x.jsx("span",{className:"codicon codicon-warning"}),x.jsx("span",{className:"action-icon-value",children:h})]})]})]})};function p1(t){try{const e=new URL(t);return e.pathname+e.search}catch{return t}}const m1=t=>{switch(t.method){case"clockPauseAt":case"clockSetFixedTime":case"clockSetSystemTime":return t.params.timeString===void 0&&t.params.timeNumber===void 0?void 0:{type:"generic",value:new Date(t.params.timeString??t.params.timeNumber).toLocaleString(void 0,{timeZone:"UTC"})};case"clockFastForward":case"clockRunFor":return t.params.ticksNumber===void 0&&t.params.ticksString===void 0?void 0:{type:"generic",value:t.params.ticksString??`${t.params.ticksNumber}ms`}}},g1=t=>{switch(t.method){case"press":case"keyboardPress":case"keyboardDown":case"keyboardUp":return t.params.key===void 0?void 0:{type:"generic",value:t.params.key};case"type":case"fill":case"keyboardType":case"keyboardInsertText":{const e=t.params.text??t.params.value;return e===void 0?void 0:{type:"generic",value:`"${e}"`}}}},y1=t=>{switch(t.method){case"click":case"dblclick":case"mouseClick":case"mouseMove":return t.params.x===void 0||t.params.y===void 0?void 0:{type:"generic",value:`(${t.params.x}, ${t.params.y})`};case"mouseWheel":return t.params.deltaX===void 0||t.params.deltaY===void 0?void 0:{type:"generic",value:`(${t.params.deltaX}, ${t.params.deltaY})`}}},v1=t=>{switch(t.method){case"tap":return t.params.x===void 0||t.params.y===void 0?void 0:{type:"generic",value:`(${t.params.x}, ${t.params.y})`}}},Dg=(t,e,n=!1)=>{const s=t.params;if(!n&&s.selector!==void 0)return{type:"locator",value:or(e,s.selector),childDisplayString:Dg(t,e,!0)};switch(t.class.toLowerCase()){case"browsercontext":return m1(t);case"page":case"frame":case"elementhandle":return g1(t)??y1(t)??v1(t)}},mf=({value:t,description:e})=>{const[n,s]=P.useState("copy"),o=P.useCallback(()=>{(typeof t=="function"?t():Promise.resolve(t)).then(c=>{navigator.clipboard.writeText(c).then(()=>{s("check"),setTimeout(()=>{s("copy")},3e3)},()=>{s("close")})},()=>{s("close")})},[t]);return x.jsx(Rt,{title:e||"Copy",icon:n,onClick:o})},Ml=({value:t,description:e,copiedDescription:n=e,style:s})=>{const[o,l]=P.useState(!1),c=P.useCallback(async()=>{const u=typeof t=="function"?await t():t;await navigator.clipboard.writeText(u),l(!0),setTimeout(()=>l(!1),3e3)},[t]);return x.jsx(Rt,{style:s,title:e,onClick:c,className:"copy-to-clipboard-text-button",children:o?n:e})},$r=({text:t})=>x.jsx("div",{className:"fill",style:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:24,fontWeight:"bold",opacity:.5},children:t}),w1=({action:t,startTimeOffset:e,sdkLanguage:n})=>{const s=P.useMemo(()=>Object.keys((t==null?void 0:t.params)??{}).filter(c=>c!=="info"),[t]);if(!t)return x.jsx($r,{text:"No action selected"});const o=t.startTime-e,l=yt(o);return x.jsxs("div",{className:"call-tab",children:[x.jsx("div",{className:"call-line",children:t.apiName}),x.jsx("div",{className:"call-section",children:"Time"}),x.jsx(am,{name:"start:",value:l}),x.jsx(am,{name:"duration:",value:x1(t)}),!!s.length&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"call-section",children:"Parameters"}),s.map(c=>cm(um(t,c,t.params[c],n)))]}),!!t.result&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"call-section",children:"Return value"}),Object.keys(t.result).map(c=>cm(um(t,c,t.result[c],n)))]})]})},am=({name:t,value:e})=>x.jsxs("div",{className:"call-line",children:[t,x.jsx("span",{className:"call-value datetime",title:e,children:e})]});function x1(t){return t.endTime?yt(t.endTime-t.startTime):t.error?"Timed Out":"Running"}function cm(t){let e=t.text.replace(/\n/g,"↵");return t.type==="string"&&(e=`"${e}"`),x.jsxs("div",{className:"call-line",children:[t.name,":",x.jsx("span",{className:Ue("call-value",t.type),title:t.text,children:e}),["string","number","object","locator"].includes(t.type)&&x.jsx(mf,{value:t.text})]},t.name)}function um(t,e,n,s){const o=t.method.includes("eval")||t.method==="waitForFunction";if(e==="files")return{text:"<files>",type:"string",name:e};if((e==="eventInit"||e==="expectedValue"||e==="arg"&&o)&&(n=Kl(n.value,new Array(10).fill({handle:"<handle>"}))),(e==="value"&&o||e==="received"&&t.method==="expect")&&(n=Kl(n,new Array(10).fill({handle:"<handle>"}))),e==="selector")return{text:or(s||"javascript",t.params.selector),type:"locator",name:"locator"};const l=typeof n;return l!=="object"||n===null?{text:String(n),type:l,name:e}:n.guid?{text:"<handle>",type:"handle",name:e}:{text:JSON.stringify(n).slice(0,1e3),type:"object",name:e}}function Kl(t,e){if(t.n!==void 0)return t.n;if(t.s!==void 0)return t.s;if(t.b!==void 0)return t.b;if(t.v!==void 0){if(t.v==="undefined")return;if(t.v==="null")return null;if(t.v==="NaN")return NaN;if(t.v==="Infinity")return 1/0;if(t.v==="-Infinity")return-1/0;if(t.v==="-0")return-0}if(t.d!==void 0)return new Date(t.d);if(t.r!==void 0)return new RegExp(t.r.p,t.r.f);if(t.a!==void 0)return t.a.map(n=>Kl(n,e));if(t.o!==void 0){const n={};for(const{k:s,v:o}of t.o)n[s]=Kl(o,e);return n}return t.h!==void 0?e===void 0?"<object>":e[t.h]:"<object>"}const fm=new Map;function ia({name:t,items:e=[],id:n,render:s,icon:o,isError:l,isWarning:c,isInfo:u,selectedItem:d,onAccepted:h,onSelected:y,onHighlighted:v,onIconClicked:m,noItemsMessage:w,dataTestId:S,notSelectable:_}){const b=P.useRef(null),[T,N]=P.useState();return P.useEffect(()=>{v==null||v(T)},[v,T]),P.useEffect(()=>{const O=b.current;if(!O)return;const R=()=>{fm.set(t,O.scrollTop)};return O.addEventListener("scroll",R,{passive:!0}),()=>O.removeEventListener("scroll",R)},[t]),P.useEffect(()=>{b.current&&(b.current.scrollTop=fm.get(t)||0)},[t]),x.jsx("div",{className:Ue("list-view vbox",t+"-list-view"),role:e.length>0?"list":void 0,"data-testid":S||t+"-list",children:x.jsxs("div",{className:Ue("list-view-content",_&&"not-selectable"),tabIndex:0,onKeyDown:O=>{var U;if(d&&O.key==="Enter"){h==null||h(d,e.indexOf(d));return}if(O.key!=="ArrowDown"&&O.key!=="ArrowUp")return;O.stopPropagation(),O.preventDefault();const R=d?e.indexOf(d):-1;let D=R;O.key==="ArrowDown"&&(R===-1?D=0:D=Math.min(R+1,e.length-1)),O.key==="ArrowUp"&&(R===-1?D=e.length-1:D=Math.max(R-1,0));const F=(U=b.current)==null?void 0:U.children.item(D);lg(F||void 0),v==null||v(void 0),y==null||y(e[D],D),N(void 0)},ref:b,children:[w&&e.length===0&&x.jsx("div",{className:"list-view-empty",children:w}),e.map((O,R)=>{const D=s(O,R);return x.jsxs("div",{onDoubleClick:()=>h==null?void 0:h(O,R),role:"listitem",className:Ue("list-view-entry",d===O&&"selected",!_&&T===O&&"highlighted",(l==null?void 0:l(O,R))&&"error",(c==null?void 0:c(O,R))&&"warning",(u==null?void 0:u(O,R))&&"info"),onClick:()=>y==null?void 0:y(O,R),onMouseEnter:()=>N(O),onMouseLeave:()=>N(void 0),children:[o&&x.jsx("div",{className:"codicon "+(o(O,R)||"codicon-blank"),style:{minWidth:16,marginRight:4},onDoubleClick:F=>{F.preventDefault(),F.stopPropagation()},onClick:F=>{F.stopPropagation(),F.preventDefault(),m==null||m(O,R)}}),typeof D=="string"?x.jsx("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:D}):D]},(n==null?void 0:n(O,R))||R)})]})})}const S1=ia,_1=({action:t,isLive:e})=>{const n=P.useMemo(()=>{var c;if(!t||!t.log.length)return[];const s=t.log,o=t.context.wallTime-t.context.startTime,l=[];for(let u=0;u<s.length;++u){let d="";if(s[u].time!==-1){const h=(c=s[u])==null?void 0:c.time;u+1<s.length?d=yt(s[u+1].time-h):t.endTime>0?d=yt(t.endTime-h):e?d=yt(Date.now()-o-h):d="-"}l.push({message:s[u].message,time:d})}return l},[t,e]);return n.length?x.jsx(S1,{name:"log",items:n,render:s=>x.jsxs("div",{className:"log-list-item",children:[x.jsx("span",{className:"log-list-duration",children:s.time}),s.message]}),notSelectable:!0}):x.jsx($r,{text:"No log entries"})};function Qi(t,e){const n=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,s=[];let o,l={},c=!1,u=e==null?void 0:e.fg,d=e==null?void 0:e.bg;for(;(o=n.exec(t))!==null;){const[,,h,,y]=o;if(h){const v=+h;switch(v){case 0:l={};break;case 1:l["font-weight"]="bold";break;case 2:l.opacity="0.8";break;case 3:l["font-style"]="italic";break;case 4:l["text-decoration"]="underline";break;case 7:c=!0;break;case 8:l.display="none";break;case 9:l["text-decoration"]="line-through";break;case 22:delete l["font-weight"],delete l["font-style"],delete l.opacity,delete l["text-decoration"];break;case 23:delete l["font-weight"],delete l["font-style"],delete l.opacity;break;case 24:delete l["text-decoration"];break;case 27:c=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:u=dm[v-30];break;case 39:u=e==null?void 0:e.fg;break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:d=dm[v-40];break;case 49:d=e==null?void 0:e.bg;break;case 53:l["text-decoration"]="overline";break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:u=hm[v-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:d=hm[v-100];break}}else if(y){const v={...l},m=c?d:u;m!==void 0&&(v.color=m);const w=c?u:d;w!==void 0&&(v["background-color"]=w),s.push(`<span style="${b1(v)}">${k1(y)}</span>`)}}return s.join("")}const dm={0:"var(--vscode-terminal-ansiBlack)",1:"var(--vscode-terminal-ansiRed)",2:"var(--vscode-terminal-ansiGreen)",3:"var(--vscode-terminal-ansiYellow)",4:"var(--vscode-terminal-ansiBlue)",5:"var(--vscode-terminal-ansiMagenta)",6:"var(--vscode-terminal-ansiCyan)",7:"var(--vscode-terminal-ansiWhite)"},hm={0:"var(--vscode-terminal-ansiBrightBlack)",1:"var(--vscode-terminal-ansiBrightRed)",2:"var(--vscode-terminal-ansiBrightGreen)",3:"var(--vscode-terminal-ansiBrightYellow)",4:"var(--vscode-terminal-ansiBrightBlue)",5:"var(--vscode-terminal-ansiBrightMagenta)",6:"var(--vscode-terminal-ansiBrightCyan)",7:"var(--vscode-terminal-ansiBrightWhite)"};function k1(t){return t.replace(/[&"<>]/g,e=>({"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"})[e])}function b1(t){return Object.entries(t).map(([e,n])=>`${e}: ${n}`).join("; ")}const E1=({error:t})=>{const e=P.useMemo(()=>Qi(t),[t]);return x.jsx("div",{className:"error-message",dangerouslySetInnerHTML:{__html:e||""}})};function Nr(){return Nr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Nr.apply(this,arguments)}const T1=["children","options"],ae={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var pm;(function(t){t[t.MAX=0]="MAX",t[t.HIGH=1]="HIGH",t[t.MED=2]="MED",t[t.LOW=3]="LOW",t[t.MIN=4]="MIN"})(pm||(pm={}));const mm=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((t,e)=>(t[e.toLowerCase()]=e,t),{class:"className",for:"htmlFor"}),gm={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},N1=["style","script"],C1=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,A1=/mailto:/i,L1=/\n{2,}$/,Fg=/^(\s*>[\s\S]*?)(?=\n\n|$)/,j1=/^ *> ?/gm,I1=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,O1=/^ {2,}\n/,M1=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,zg=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Bg=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,$1=/^(`+)((?:\\`|[^`])+)\1/,P1=/^(?:\n *)*\n/,R1=/\r\n?/g,D1=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,F1=/^\[\^([^\]]+)]/,z1=/\f/g,B1=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,U1=/^\s*?\[(x|\s)\]/,Ug=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,qg=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Hg=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Gu=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,q1=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Vg=/^<!--[\s\S]*?(?:-->)/,H1=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Xu=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,V1=/^\{.*\}$/,W1=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,K1=/^<([^ >]+@[^ >]+)>/,Q1=/^<([^ >]+:\/[^ >]+)>/,G1=/-([a-z])?/gi,Wg=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,X1=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,J1=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Y1=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Z1=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,eS=/\t/g,tS=/(^ *\||\| *$)/g,nS=/^ *:-+: *$/,rS=/^ *:-+ *$/,sS=/^ *-+: *$/,oa="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",iS=new RegExp(`^([*_])\\1${oa}\\1\\1(?!\\1)`),oS=new RegExp(`^([*_])${oa}\\1(?!\\1)`),lS=new RegExp(`^(==)${oa}\\1`),aS=new RegExp(`^(~~)${oa}\\1`),cS=/^\\([^0-9A-Za-z\s])/,vu=/\\([^0-9A-Za-z\s])/g,uS=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,fS=/^\n+/,dS=/^([ \t]*)/,hS=/\\([^\\])/g,pS=/(?:^|\n)( *)$/,gf="(?:\\d+\\.)",yf="(?:[*+-])";function Kg(t){return"( *)("+(t===1?gf:yf)+") +"}const Qg=Kg(1),Gg=Kg(2);function Xg(t){return new RegExp("^"+(t===1?Qg:Gg))}const mS=Xg(1),gS=Xg(2);function Jg(t){return new RegExp("^"+(t===1?Qg:Gg)+"[^\\n]*(?:\\n(?!\\1"+(t===1?gf:yf)+" )[^\\n]*)*(\\n|$)","gm")}const yS=Jg(1),vS=Jg(2);function Yg(t){const e=t===1?gf:yf;return new RegExp("^( *)("+e+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+e+" (?!"+e+" ))\\n*|\\s*\\n*$)")}const Zg=Yg(1),ey=Yg(2);function ym(t,e){const n=e===1,s=n?Zg:ey,o=n?yS:vS,l=n?mS:gS;return{match:Ls(function(c,u){const d=pS.exec(u.prevCapture);return d&&(u.list||!u.inline&&!u.simple)?s.exec(c=d[1]+c):null}),order:1,parse(c,u,d){const h=n?+c[2]:void 0,y=c[0].replace(L1,`
43
43
  `).match(o);let v=!1;return{items:y.map(function(m,w){const S=l.exec(m)[0].length,_=new RegExp("^ {1,"+S+"}","gm"),b=m.replace(_,"").replace(l,""),T=w===y.length-1,N=b.indexOf(`
44
44
 
@@ -61,7 +61,7 @@ Error generating stack: `+g.message+`
61
61
  rgb(0 0 0 / 15%) 0px 6.1px 6.3px,
62
62
  rgb(0 0 0 / 10%) 0px -2px 4px,
63
63
  rgb(0 0 0 / 15%) 0px -6.1px 12px,
64
- rgb(0 0 0 / 25%) 0px 6px 12px`},DS=({diff:t,noTargetBlank:e,hideDetails:n})=>{const[s,o]=P.useState(t.diff?"diff":"actual"),[l,c]=P.useState(!1),[u,d]=P.useState(null),[h,y]=P.useState("Expected"),[v,m]=P.useState(null),[w,S]=P.useState(null),[_,b]=Mr();P.useEffect(()=>{(async()=>{var I,Q,W,z;d(await ku((I=t.expected)==null?void 0:I.attachment.path)),y(((Q=t.expected)==null?void 0:Q.title)||"Expected"),m(await ku((W=t.actual)==null?void 0:W.attachment.path)),S(await ku((z=t.diff)==null?void 0:z.attachment.path))})()},[t]);const T=u&&v&&w,N=T?Math.max(u.naturalWidth,v.naturalWidth,200):500,O=T?Math.max(u.naturalHeight,v.naturalHeight,200):500,R=Math.min(1,(_.width-30)/N),D=Math.min(1,(_.width-50)/N/2),F=N*R,U=O*R,B={flex:"none",margin:"0 10px",cursor:"pointer",userSelect:"none"};return x.jsx("div",{"data-testid":"test-result-image-mismatch",style:{display:"flex",flexDirection:"column",alignItems:"center",flex:"auto"},ref:b,children:T&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{"data-testid":"test-result-image-mismatch-tabs",style:{display:"flex",margin:"10px 0 20px"},children:[t.diff&&x.jsx("div",{style:{...B,fontWeight:s==="diff"?600:"initial"},onClick:()=>o("diff"),children:"Diff"}),x.jsx("div",{style:{...B,fontWeight:s==="actual"?600:"initial"},onClick:()=>o("actual"),children:"Actual"}),x.jsx("div",{style:{...B,fontWeight:s==="expected"?600:"initial"},onClick:()=>o("expected"),children:h}),x.jsx("div",{style:{...B,fontWeight:s==="sxs"?600:"initial"},onClick:()=>o("sxs"),children:"Side by side"}),x.jsx("div",{style:{...B,fontWeight:s==="slider"?600:"initial"},onClick:()=>o("slider"),children:"Slider"})]}),x.jsxs("div",{style:{display:"flex",justifyContent:"center",flex:"auto",minHeight:U+60},children:[t.diff&&s==="diff"&&x.jsx(An,{image:w,alt:"Diff",hideSize:n,canvasWidth:F,canvasHeight:U,scale:R}),t.diff&&s==="actual"&&x.jsx(An,{image:v,alt:"Actual",hideSize:n,canvasWidth:F,canvasHeight:U,scale:R}),t.diff&&s==="expected"&&x.jsx(An,{image:u,alt:h,hideSize:n,canvasWidth:F,canvasHeight:U,scale:R}),t.diff&&s==="slider"&&x.jsx(FS,{expectedImage:u,actualImage:v,hideSize:n,canvasWidth:F,canvasHeight:U,scale:R,expectedTitle:h}),t.diff&&s==="sxs"&&x.jsxs("div",{style:{display:"flex"},children:[x.jsx(An,{image:u,title:h,hideSize:n,canvasWidth:D*N,canvasHeight:D*O,scale:D}),x.jsx(An,{image:l?w:v,title:l?"Diff":"Actual",onClick:()=>c(!l),hideSize:n,canvasWidth:D*N,canvasHeight:D*O,scale:D})]}),!t.diff&&s==="actual"&&x.jsx(An,{image:v,title:"Actual",hideSize:n,canvasWidth:F,canvasHeight:U,scale:R}),!t.diff&&s==="expected"&&x.jsx(An,{image:u,title:h,hideSize:n,canvasWidth:F,canvasHeight:U,scale:R}),!t.diff&&s==="sxs"&&x.jsxs("div",{style:{display:"flex"},children:[x.jsx(An,{image:u,title:h,canvasWidth:D*N,canvasHeight:D*O,scale:D}),x.jsx(An,{image:v,title:"Actual",canvasWidth:D*N,canvasHeight:D*O,scale:D})]})]}),!n&&x.jsxs("div",{style:{alignSelf:"start",lineHeight:"18px",marginLeft:"15px"},children:[x.jsx("div",{children:t.diff&&x.jsx("a",{target:"_blank",href:t.diff.attachment.path,rel:"noreferrer",children:t.diff.attachment.name})}),x.jsx("div",{children:x.jsx("a",{target:e?"":"_blank",href:t.actual.attachment.path,rel:"noreferrer",children:t.actual.attachment.name})}),x.jsx("div",{children:x.jsx("a",{target:e?"":"_blank",href:t.expected.attachment.path,rel:"noreferrer",children:t.expected.attachment.name})})]})]})})},FS=({expectedImage:t,actualImage:e,canvasWidth:n,canvasHeight:s,scale:o,expectedTitle:l,hideSize:c})=>{const u={position:"absolute",top:0,left:0},[d,h]=P.useState(n/2),y=t.naturalWidth===e.naturalWidth&&t.naturalHeight===e.naturalHeight;return x.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center",flexDirection:"column",userSelect:"none"},children:[!c&&x.jsxs("div",{style:{margin:5},children:[!y&&x.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"Expected "}),x.jsx("span",{children:t.naturalWidth}),x.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),x.jsx("span",{children:t.naturalHeight}),!y&&x.jsx("span",{style:{flex:"none",margin:"0 5px 0 15px"},children:"Actual "}),!y&&x.jsx("span",{children:e.naturalWidth}),!y&&x.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),!y&&x.jsx("span",{children:e.naturalHeight})]}),x.jsxs("div",{style:{position:"relative",width:n,height:s,margin:15,...Ju},children:[x.jsx(iy,{orientation:"horizontal",offsets:[d],setOffsets:v=>h(v[0]),resizerColor:"#57606a80",resizerWidth:6}),x.jsx("img",{alt:l,style:{width:t.naturalWidth*o,height:t.naturalHeight*o},draggable:"false",src:t.src}),x.jsx("div",{style:{...u,bottom:0,overflow:"hidden",width:d,...Ju},children:x.jsx("img",{alt:"Actual",style:{width:e.naturalWidth*o,height:e.naturalHeight*o},draggable:"false",src:e.src})})]})]})},An=({image:t,title:e,alt:n,hideSize:s,canvasWidth:o,canvasHeight:l,scale:c,onClick:u})=>x.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center",flexDirection:"column"},children:[!s&&x.jsxs("div",{style:{margin:5},children:[e&&x.jsx("span",{style:{flex:"none",margin:"0 5px"},children:e}),x.jsx("span",{children:t.naturalWidth}),x.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),x.jsx("span",{children:t.naturalHeight})]}),x.jsx("div",{style:{display:"flex",flex:"none",width:o,height:l,margin:15,...Ju},children:x.jsx("img",{width:t.naturalWidth*c,height:t.naturalHeight*c,alt:e||n,style:{cursor:u?"pointer":"initial"},draggable:"false",src:t.src,onClick:u})})]}),zS="modulepreload",BS=function(t,e){return new URL(t,e).href},km={},US=function(e,n,s){let o=Promise.resolve();if(n&&n.length>0){const c=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),d=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));o=Promise.allSettled(n.map(h=>{if(h=BS(h,s),h in km)return;km[h]=!0;const y=h.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(!!s)for(let S=c.length-1;S>=0;S--){const _=c[S];if(_.href===h&&(!y||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${h}"]${v}`))return;const w=document.createElement("link");if(w.rel=y?"stylesheet":zS,y||(w.as="script"),w.crossOrigin="",w.href=h,d&&w.setAttribute("nonce",d),document.head.appendChild(w),y)return new Promise((S,_)=>{w.addEventListener("load",S),w.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${h}`)))})}))}function l(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return o.then(c=>{for(const u of c||[])u.status==="rejected"&&l(u.reason);return e().catch(l)})},qS=20,js=({text:t,language:e,mimeType:n,linkify:s,readOnly:o,highlight:l,revealLine:c,lineNumbers:u,isFocused:d,focusOnChange:h,wrapLines:y,onChange:v,dataTestId:m,placeholder:w})=>{const[S,_]=Mr(),[b]=P.useState(US(()=>import("./codeMirrorModule-dvXVzLxY.js"),__vite__mapDeps([0,1]),import.meta.url).then(R=>R.default)),T=P.useRef(null),[N,O]=P.useState();return P.useEffect(()=>{(async()=>{var B,I;const R=await b;VS(R);const D=_.current;if(!D)return;const F=KS(e)||WS(n)||(s?"text/linkified":"");if(T.current&&F===T.current.cm.getOption("mode")&&!!o===T.current.cm.getOption("readOnly")&&u===T.current.cm.getOption("lineNumbers")&&y===T.current.cm.getOption("lineWrapping")&&w===T.current.cm.getOption("placeholder"))return;(I=(B=T.current)==null?void 0:B.cm)==null||I.getWrapperElement().remove();const U=R(D,{value:"",mode:F,readOnly:!!o,lineNumbers:u,lineWrapping:y,placeholder:w});return T.current={cm:U},d&&U.focus(),O(U),U})()},[b,N,_,e,n,s,u,y,o,d,w]),P.useEffect(()=>{T.current&&T.current.cm.setSize(S.width,S.height)},[S]),P.useLayoutEffect(()=>{var F;if(!N)return;let R=!1;if(N.getValue()!==t&&(N.setValue(t),R=!0,h&&(N.execCommand("selectAll"),N.focus())),R||JSON.stringify(l)!==JSON.stringify(T.current.highlight)){for(const I of T.current.highlight||[])N.removeLineClass(I.line-1,"wrap");for(const I of l||[])N.addLineClass(I.line-1,"wrap",`source-line-${I.type}`);for(const I of T.current.widgets||[])N.removeLineWidget(I);for(const I of T.current.markers||[])I.clear();const U=[],B=[];for(const I of l||[]){if(I.type!=="subtle-error"&&I.type!=="error")continue;const Q=(F=T.current)==null?void 0:F.cm.getLine(I.line-1);if(Q){const W={};W.title=I.message||"",B.push(N.markText({line:I.line-1,ch:0},{line:I.line-1,ch:I.column||Q.length},{className:"source-line-error-underline",attributes:W}))}if(I.type==="error"){const W=document.createElement("div");W.innerHTML=Qi(I.message||""),W.className="source-line-error-widget",U.push(N.addLineWidget(I.line,W,{above:!0,coverGutter:!1}))}}T.current.highlight=l,T.current.widgets=U,T.current.markers=B}typeof c=="number"&&T.current.cm.lineCount()>=c&&N.scrollIntoView({line:Math.max(0,c-1),ch:0},50);let D;return v&&(D=()=>v(N.getValue()),N.on("change",D)),()=>{D&&N.off("change",D)}},[N,t,l,c,h,v]),x.jsx("div",{"data-testid":m,className:"cm-wrapper",ref:_,onClick:HS})};function HS(t){var n;if(!(t.target instanceof HTMLElement))return;let e;t.target.classList.contains("cm-linkified")?e=t.target.textContent:t.target.classList.contains("cm-link")&&((n=t.target.nextElementSibling)!=null&&n.classList.contains("cm-url"))&&(e=t.target.nextElementSibling.textContent.slice(1,-1)),e&&(t.preventDefault(),t.stopPropagation(),window.open(e,"_blank"))}let bm=!1;function VS(t){bm||(bm=!0,t.defineSimpleMode("text/linkified",{start:[{regex:ag,token:"linkified"}]}))}function WS(t){if(t){if(t.includes("javascript")||t.includes("json"))return"javascript";if(t.includes("python"))return"python";if(t.includes("csharp"))return"text/x-csharp";if(t.includes("java"))return"text/x-java";if(t.includes("markdown"))return"markdown";if(t.includes("html")||t.includes("svg"))return"htmlmixed";if(t.includes("css"))return"css"}}function KS(t){if(t)return{javascript:"javascript",jsonl:"javascript",python:"python",csharp:"text/x-csharp",java:"text/x-java",markdown:"markdown",html:"htmlmixed",css:"css",yaml:"yaml"}[t]}function QS(t){return!!t.match(/^(text\/.*?|application\/(json|(x-)?javascript|xml.*?|ecmascript|graphql|x-www-form-urlencoded)|image\/svg(\+xml)?|application\/.*?(\+json|\+xml))(;\s*charset=.*)?$/)}new be([["ez","application/andrew-inset"],["aw","application/applixware"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["dwd","application/atsc-dwd+xml"],["held","application/atsc-held+xml"],["rsat","application/atsc-rsat+xml"],["bdoc","application/bdoc"],["xcs","application/calendar+xml"],["ccxml","application/ccxml+xml"],["cdfx","application/cdfx+xml"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cu","application/cu-seeme"],["mpd","application/dash+xml"],["davmount","application/davmount+xml"],["dbk","application/docbook+xml"],["dssc","application/dssc+der"],["xdssc","application/dssc+xml"],["ecma","application/ecmascript"],["es","application/ecmascript"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["epub","application/epub+zip"],["exi","application/exi"],["exp","application/express"],["fdt","application/fdt+xml"],["pfr","application/font-tdpfr"],["geojson","application/geo+json"],["gml","application/gml+xml"],["gpx","application/gpx+xml"],["gxf","application/gxf"],["gz","application/gzip"],["hjson","application/hjson"],["stk","application/hyperstudio"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["ipfix","application/ipfix"],["its","application/its+xml"],["ear","application/java-archive"],["jar","application/java-archive"],["war","application/java-archive"],["ser","application/java-serialized-object"],["class","application/java-vm"],["js","application/javascript"],["mjs","application/javascript"],["json","application/json"],["map","application/json"],["json5","application/json5"],["jsonml","application/jsonml+json"],["jsonld","application/ld+json"],["lgr","application/lgr+xml"],["lostxml","application/lost+xml"],["hqx","application/mac-binhex40"],["cpt","application/mac-compactpro"],["mads","application/mads+xml"],["webmanifest","application/manifest+json"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ma","application/mathematica"],["mb","application/mathematica"],["nb","application/mathematica"],["mathml","application/mathml+xml"],["mbox","application/mbox"],["mscml","application/mediaservercontrol+xml"],["metalink","application/metalink+xml"],["meta4","application/metalink4+xml"],["mets","application/mets+xml"],["maei","application/mmt-aei+xml"],["musd","application/mmt-usd+xml"],["mods","application/mods+xml"],["m21","application/mp21"],["mp21","application/mp21"],["m4p","application/mp4"],["mp4s","application/mp4"],["doc","application/msword"],["dot","application/msword"],["mxf","application/mxf"],["nq","application/n-quads"],["nt","application/n-triples"],["cjs","application/node"],["bin","application/octet-stream"],["bpk","application/octet-stream"],["buffer","application/octet-stream"],["deb","application/octet-stream"],["deploy","application/octet-stream"],["dist","application/octet-stream"],["distz","application/octet-stream"],["dll","application/octet-stream"],["dmg","application/octet-stream"],["dms","application/octet-stream"],["dump","application/octet-stream"],["elc","application/octet-stream"],["exe","application/octet-stream"],["img","application/octet-stream"],["iso","application/octet-stream"],["lrf","application/octet-stream"],["mar","application/octet-stream"],["msi","application/octet-stream"],["msm","application/octet-stream"],["msp","application/octet-stream"],["pkg","application/octet-stream"],["so","application/octet-stream"],["oda","application/oda"],["opf","application/oebps-package+xml"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["oxps","application/oxps"],["relo","application/p2p-overlay+xml"],["xer","application/patch-ops-error+xml"],["pdf","application/pdf"],["pgp","application/pgp-encrypted"],["asc","application/pgp-signature"],["sig","application/pgp-signature"],["prf","application/pics-rules"],["p10","application/pkcs10"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["ac","application/pkix-attr-cert"],["cer","application/pkix-cert"],["crl","application/pkix-crl"],["pkipath","application/pkix-pkipath"],["pki","application/pkixcmp"],["pls","application/pls+xml"],["ai","application/postscript"],["eps","application/postscript"],["ps","application/postscript"],["provx","application/provenance+xml"],["pskcxml","application/pskc+xml"],["raml","application/raml+yaml"],["owl","application/rdf+xml"],["rdf","application/rdf+xml"],["rif","application/reginfo+xml"],["rnc","application/relax-ng-compact-syntax"],["rl","application/resource-lists+xml"],["rld","application/resource-lists-diff+xml"],["rs","application/rls-services+xml"],["rapd","application/route-apd+xml"],["sls","application/route-s-tsid+xml"],["rusd","application/route-usd+xml"],["gbr","application/rpki-ghostbusters"],["mft","application/rpki-manifest"],["roa","application/rpki-roa"],["rsd","application/rsd+xml"],["rss","application/rss+xml"],["rtf","application/rtf"],["sbml","application/sbml+xml"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["spq","application/scvp-vp-request"],["spp","application/scvp-vp-response"],["sdp","application/sdp"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["shf","application/shf+xml"],["sieve","application/sieve"],["siv","application/sieve"],["smi","application/smil+xml"],["smil","application/smil+xml"],["rq","application/sparql-query"],["srx","application/sparql-results+xml"],["gram","application/srgs"],["grxml","application/srgs+xml"],["sru","application/sru+xml"],["ssdl","application/ssdl+xml"],["ssml","application/ssml+xml"],["swidtag","application/swid+xml"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tfi","application/thraud+xml"],["tsd","application/timestamped-data"],["toml","application/toml"],["trig","application/trig"],["ttml","application/ttml+xml"],["ubj","application/ubjson"],["rsheet","application/urc-ressheet+xml"],["td","application/urc-targetdesc+xml"],["vxml","application/voicexml+xml"],["wasm","application/wasm"],["wgt","application/widget"],["hlp","application/winhlp"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["xaml","application/xaml+xml"],["xav","application/xcap-att+xml"],["xca","application/xcap-caps+xml"],["xdf","application/xcap-diff+xml"],["xel","application/xcap-el+xml"],["xns","application/xcap-ns+xml"],["xenc","application/xenc+xml"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xlf","application/xliff+xml"],["rng","application/xml"],["xml","application/xml"],["xsd","application/xml"],["xsl","application/xml"],["dtd","application/xml-dtd"],["xop","application/xop+xml"],["xpl","application/xproc+xml"],["*xsl","application/xslt+xml"],["xslt","application/xslt+xml"],["xspf","application/xspf+xml"],["mxml","application/xv+xml"],["xhvml","application/xv+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["yang","application/yang"],["yin","application/yin+xml"],["zip","application/zip"],["*3gpp","audio/3gpp"],["adp","audio/adpcm"],["amr","audio/amr"],["au","audio/basic"],["snd","audio/basic"],["kar","audio/midi"],["mid","audio/midi"],["midi","audio/midi"],["rmi","audio/midi"],["mxmf","audio/mobile-xmf"],["*mp3","audio/mp3"],["m4a","audio/mp4"],["mp4a","audio/mp4"],["m2a","audio/mpeg"],["m3a","audio/mpeg"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mpga","audio/mpeg"],["oga","audio/ogg"],["ogg","audio/ogg"],["opus","audio/ogg"],["spx","audio/ogg"],["s3m","audio/s3m"],["sil","audio/silk"],["wav","audio/wav"],["*wav","audio/wave"],["weba","audio/webm"],["xm","audio/xm"],["ttc","font/collection"],["otf","font/otf"],["ttf","font/ttf"],["woff","font/woff"],["woff2","font/woff2"],["exr","image/aces"],["apng","image/apng"],["avif","image/avif"],["bmp","image/bmp"],["cgm","image/cgm"],["drle","image/dicom-rle"],["emf","image/emf"],["fits","image/fits"],["g3","image/g3fax"],["gif","image/gif"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["hsj2","image/hsj2"],["ief","image/ief"],["jls","image/jls"],["jp2","image/jp2"],["jpg2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["jph","image/jph"],["jhc","image/jphc"],["jpm","image/jpm"],["jpf","image/jpx"],["jpx","image/jpx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["ktx","image/ktx"],["ktx2","image/ktx2"],["png","image/png"],["sgi","image/sgi"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["t38","image/t38"],["tif","image/tiff"],["tiff","image/tiff"],["tfx","image/tiff-fx"],["webp","image/webp"],["wmf","image/wmf"],["disposition-notification","message/disposition-notification"],["u8msg","message/global"],["u8dsn","message/global-delivery-status"],["u8mdn","message/global-disposition-notification"],["u8hdr","message/global-headers"],["eml","message/rfc822"],["mime","message/rfc822"],["3mf","model/3mf"],["gltf","model/gltf+json"],["glb","model/gltf-binary"],["iges","model/iges"],["igs","model/iges"],["mesh","model/mesh"],["msh","model/mesh"],["silo","model/mesh"],["mtl","model/mtl"],["obj","model/obj"],["stpx","model/step+xml"],["stpz","model/step+zip"],["stpxz","model/step-xml+zip"],["stl","model/stl"],["vrml","model/vrml"],["wrl","model/vrml"],["*x3db","model/x3d+binary"],["x3dbz","model/x3d+binary"],["x3db","model/x3d+fastinfoset"],["*x3dv","model/x3d+vrml"],["x3dvz","model/x3d+vrml"],["x3d","model/x3d+xml"],["x3dz","model/x3d+xml"],["x3dv","model/x3d-vrml"],["appcache","text/cache-manifest"],["manifest","text/cache-manifest"],["ics","text/calendar"],["ifb","text/calendar"],["coffee","text/coffeescript"],["litcoffee","text/coffeescript"],["css","text/css"],["csv","text/csv"],["htm","text/html"],["html","text/html"],["shtml","text/html"],["jade","text/jade"],["jsx","text/jsx"],["less","text/less"],["markdown","text/markdown"],["md","text/markdown"],["mml","text/mathml"],["mdx","text/mdx"],["n3","text/n3"],["conf","text/plain"],["def","text/plain"],["in","text/plain"],["ini","text/plain"],["list","text/plain"],["log","text/plain"],["text","text/plain"],["txt","text/plain"],["rtx","text/richtext"],["*rtf","text/rtf"],["sgm","text/sgml"],["sgml","text/sgml"],["shex","text/shex"],["slim","text/slim"],["slm","text/slim"],["spdx","text/spdx"],["styl","text/stylus"],["stylus","text/stylus"],["tsv","text/tab-separated-values"],["man","text/troff"],["me","text/troff"],["ms","text/troff"],["roff","text/troff"],["t","text/troff"],["tr","text/troff"],["ttl","text/turtle"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["vcard","text/vcard"],["vtt","text/vtt"],["*xml","text/xml"],["yaml","text/yaml"],["yml","text/yaml"],["3gp","video/3gpp"],["3gpp","video/3gpp"],["3g2","video/3gpp2"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["m4s","video/iso.segment"],["jpgv","video/jpeg"],["jpm","video/jpm"],["jpgm","video/jpm"],["mj2","video/mj2"],["mjp2","video/mj2"],["ts","video/mp2t"],["mp4","video/mp4"],["mp4v","video/mp4"],["mpg4","video/mp4"],["m1v","video/mpeg"],["m2v","video/mpeg"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["ogv","video/ogg"],["mov","video/quicktime"],["qt","video/quicktime"],["webm","video/webm"]]);const GS=({title:t,children:e,setExpanded:n,expanded:s,expandOnTitleClick:o})=>{const l=P.useId();return x.jsxs("div",{className:Ue("expandable",s&&"expanded"),children:[x.jsxs("div",{role:"button","aria-expanded":s,"aria-controls":l,className:"expandable-title",onClick:()=>o&&n(!s),children:[x.jsx("div",{className:Ue("codicon",s?"codicon-chevron-down":"codicon-chevron-right"),style:{cursor:"pointer",color:"var(--vscode-foreground)",marginLeft:"5px"},onClick:()=>!o&&n(!s)}),t]}),s&&x.jsx("div",{id:l,role:"region",style:{marginLeft:25},children:e})]})};function oy(t){const e=[];let n=0,s;for(;(s=ag.exec(t))!==null;){const l=t.substring(n,s.index);l&&e.push(l);const c=s[0];e.push(XS(c)),n=s.index+c.length}const o=t.substring(n);return o&&e.push(o),e}function XS(t){let e=t;return e.startsWith("www.")&&(e="https://"+e),x.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:t})}const JS=({attachment:t,reveal:e})=>{const[n,s]=P.useState(!1),[o,l]=P.useState(null),[c,u]=P.useState(null),[d,h]=cx(),y=P.useRef(null),v=QS(t.contentType),m=!!t.sha1||!!t.path;P.useEffect(()=>{var _;if(e)return(_=y.current)==null||_.scrollIntoView({behavior:"smooth"}),h()},[e,h]),P.useEffect(()=>{n&&o===null&&c===null&&(u("Loading ..."),fetch(la(t)).then(_=>_.text()).then(_=>{l(_),u(null)}).catch(_=>{u("Failed to load: "+_.message)}))},[n,o,c,t]);const w=P.useMemo(()=>{const _=o?o.split(`
64
+ rgb(0 0 0 / 25%) 0px 6px 12px`},DS=({diff:t,noTargetBlank:e,hideDetails:n})=>{const[s,o]=P.useState(t.diff?"diff":"actual"),[l,c]=P.useState(!1),[u,d]=P.useState(null),[h,y]=P.useState("Expected"),[v,m]=P.useState(null),[w,S]=P.useState(null),[_,b]=Mr();P.useEffect(()=>{(async()=>{var I,Q,W,z;d(await ku((I=t.expected)==null?void 0:I.attachment.path)),y(((Q=t.expected)==null?void 0:Q.title)||"Expected"),m(await ku((W=t.actual)==null?void 0:W.attachment.path)),S(await ku((z=t.diff)==null?void 0:z.attachment.path))})()},[t]);const T=u&&v&&w,N=T?Math.max(u.naturalWidth,v.naturalWidth,200):500,O=T?Math.max(u.naturalHeight,v.naturalHeight,200):500,R=Math.min(1,(_.width-30)/N),D=Math.min(1,(_.width-50)/N/2),F=N*R,U=O*R,B={flex:"none",margin:"0 10px",cursor:"pointer",userSelect:"none"};return x.jsx("div",{"data-testid":"test-result-image-mismatch",style:{display:"flex",flexDirection:"column",alignItems:"center",flex:"auto"},ref:b,children:T&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{"data-testid":"test-result-image-mismatch-tabs",style:{display:"flex",margin:"10px 0 20px"},children:[t.diff&&x.jsx("div",{style:{...B,fontWeight:s==="diff"?600:"initial"},onClick:()=>o("diff"),children:"Diff"}),x.jsx("div",{style:{...B,fontWeight:s==="actual"?600:"initial"},onClick:()=>o("actual"),children:"Actual"}),x.jsx("div",{style:{...B,fontWeight:s==="expected"?600:"initial"},onClick:()=>o("expected"),children:h}),x.jsx("div",{style:{...B,fontWeight:s==="sxs"?600:"initial"},onClick:()=>o("sxs"),children:"Side by side"}),x.jsx("div",{style:{...B,fontWeight:s==="slider"?600:"initial"},onClick:()=>o("slider"),children:"Slider"})]}),x.jsxs("div",{style:{display:"flex",justifyContent:"center",flex:"auto",minHeight:U+60},children:[t.diff&&s==="diff"&&x.jsx(An,{image:w,alt:"Diff",hideSize:n,canvasWidth:F,canvasHeight:U,scale:R}),t.diff&&s==="actual"&&x.jsx(An,{image:v,alt:"Actual",hideSize:n,canvasWidth:F,canvasHeight:U,scale:R}),t.diff&&s==="expected"&&x.jsx(An,{image:u,alt:h,hideSize:n,canvasWidth:F,canvasHeight:U,scale:R}),t.diff&&s==="slider"&&x.jsx(FS,{expectedImage:u,actualImage:v,hideSize:n,canvasWidth:F,canvasHeight:U,scale:R,expectedTitle:h}),t.diff&&s==="sxs"&&x.jsxs("div",{style:{display:"flex"},children:[x.jsx(An,{image:u,title:h,hideSize:n,canvasWidth:D*N,canvasHeight:D*O,scale:D}),x.jsx(An,{image:l?w:v,title:l?"Diff":"Actual",onClick:()=>c(!l),hideSize:n,canvasWidth:D*N,canvasHeight:D*O,scale:D})]}),!t.diff&&s==="actual"&&x.jsx(An,{image:v,title:"Actual",hideSize:n,canvasWidth:F,canvasHeight:U,scale:R}),!t.diff&&s==="expected"&&x.jsx(An,{image:u,title:h,hideSize:n,canvasWidth:F,canvasHeight:U,scale:R}),!t.diff&&s==="sxs"&&x.jsxs("div",{style:{display:"flex"},children:[x.jsx(An,{image:u,title:h,canvasWidth:D*N,canvasHeight:D*O,scale:D}),x.jsx(An,{image:v,title:"Actual",canvasWidth:D*N,canvasHeight:D*O,scale:D})]})]}),!n&&x.jsxs("div",{style:{alignSelf:"start",lineHeight:"18px",marginLeft:"15px"},children:[x.jsx("div",{children:t.diff&&x.jsx("a",{target:"_blank",href:t.diff.attachment.path,rel:"noreferrer",children:t.diff.attachment.name})}),x.jsx("div",{children:x.jsx("a",{target:e?"":"_blank",href:t.actual.attachment.path,rel:"noreferrer",children:t.actual.attachment.name})}),x.jsx("div",{children:x.jsx("a",{target:e?"":"_blank",href:t.expected.attachment.path,rel:"noreferrer",children:t.expected.attachment.name})})]})]})})},FS=({expectedImage:t,actualImage:e,canvasWidth:n,canvasHeight:s,scale:o,expectedTitle:l,hideSize:c})=>{const u={position:"absolute",top:0,left:0},[d,h]=P.useState(n/2),y=t.naturalWidth===e.naturalWidth&&t.naturalHeight===e.naturalHeight;return x.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center",flexDirection:"column",userSelect:"none"},children:[!c&&x.jsxs("div",{style:{margin:5},children:[!y&&x.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"Expected "}),x.jsx("span",{children:t.naturalWidth}),x.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),x.jsx("span",{children:t.naturalHeight}),!y&&x.jsx("span",{style:{flex:"none",margin:"0 5px 0 15px"},children:"Actual "}),!y&&x.jsx("span",{children:e.naturalWidth}),!y&&x.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),!y&&x.jsx("span",{children:e.naturalHeight})]}),x.jsxs("div",{style:{position:"relative",width:n,height:s,margin:15,...Ju},children:[x.jsx(iy,{orientation:"horizontal",offsets:[d],setOffsets:v=>h(v[0]),resizerColor:"#57606a80",resizerWidth:6}),x.jsx("img",{alt:l,style:{width:t.naturalWidth*o,height:t.naturalHeight*o},draggable:"false",src:t.src}),x.jsx("div",{style:{...u,bottom:0,overflow:"hidden",width:d,...Ju},children:x.jsx("img",{alt:"Actual",style:{width:e.naturalWidth*o,height:e.naturalHeight*o},draggable:"false",src:e.src})})]})]})},An=({image:t,title:e,alt:n,hideSize:s,canvasWidth:o,canvasHeight:l,scale:c,onClick:u})=>x.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center",flexDirection:"column"},children:[!s&&x.jsxs("div",{style:{margin:5},children:[e&&x.jsx("span",{style:{flex:"none",margin:"0 5px"},children:e}),x.jsx("span",{children:t.naturalWidth}),x.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),x.jsx("span",{children:t.naturalHeight})]}),x.jsx("div",{style:{display:"flex",flex:"none",width:o,height:l,margin:15,...Ju},children:x.jsx("img",{width:t.naturalWidth*c,height:t.naturalHeight*c,alt:e||n,style:{cursor:u?"pointer":"initial"},draggable:"false",src:t.src,onClick:u})})]}),zS="modulepreload",BS=function(t,e){return new URL(t,e).href},km={},US=function(e,n,s){let o=Promise.resolve();if(n&&n.length>0){const c=document.getElementsByTagName("link"),u=document.querySelector("meta[property=csp-nonce]"),d=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));o=Promise.allSettled(n.map(h=>{if(h=BS(h,s),h in km)return;km[h]=!0;const y=h.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(!!s)for(let S=c.length-1;S>=0;S--){const _=c[S];if(_.href===h&&(!y||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${h}"]${v}`))return;const w=document.createElement("link");if(w.rel=y?"stylesheet":zS,y||(w.as="script"),w.crossOrigin="",w.href=h,d&&w.setAttribute("nonce",d),document.head.appendChild(w),y)return new Promise((S,_)=>{w.addEventListener("load",S),w.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${h}`)))})}))}function l(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return o.then(c=>{for(const u of c||[])u.status==="rejected"&&l(u.reason);return e().catch(l)})},qS=20,js=({text:t,language:e,mimeType:n,linkify:s,readOnly:o,highlight:l,revealLine:c,lineNumbers:u,isFocused:d,focusOnChange:h,wrapLines:y,onChange:v,dataTestId:m,placeholder:w})=>{const[S,_]=Mr(),[b]=P.useState(US(()=>import("./codeMirrorModule-_GLjJL-7.js"),__vite__mapDeps([0,1]),import.meta.url).then(R=>R.default)),T=P.useRef(null),[N,O]=P.useState();return P.useEffect(()=>{(async()=>{var B,I;const R=await b;VS(R);const D=_.current;if(!D)return;const F=KS(e)||WS(n)||(s?"text/linkified":"");if(T.current&&F===T.current.cm.getOption("mode")&&!!o===T.current.cm.getOption("readOnly")&&u===T.current.cm.getOption("lineNumbers")&&y===T.current.cm.getOption("lineWrapping")&&w===T.current.cm.getOption("placeholder"))return;(I=(B=T.current)==null?void 0:B.cm)==null||I.getWrapperElement().remove();const U=R(D,{value:"",mode:F,readOnly:!!o,lineNumbers:u,lineWrapping:y,placeholder:w});return T.current={cm:U},d&&U.focus(),O(U),U})()},[b,N,_,e,n,s,u,y,o,d,w]),P.useEffect(()=>{T.current&&T.current.cm.setSize(S.width,S.height)},[S]),P.useLayoutEffect(()=>{var F;if(!N)return;let R=!1;if(N.getValue()!==t&&(N.setValue(t),R=!0,h&&(N.execCommand("selectAll"),N.focus())),R||JSON.stringify(l)!==JSON.stringify(T.current.highlight)){for(const I of T.current.highlight||[])N.removeLineClass(I.line-1,"wrap");for(const I of l||[])N.addLineClass(I.line-1,"wrap",`source-line-${I.type}`);for(const I of T.current.widgets||[])N.removeLineWidget(I);for(const I of T.current.markers||[])I.clear();const U=[],B=[];for(const I of l||[]){if(I.type!=="subtle-error"&&I.type!=="error")continue;const Q=(F=T.current)==null?void 0:F.cm.getLine(I.line-1);if(Q){const W={};W.title=I.message||"",B.push(N.markText({line:I.line-1,ch:0},{line:I.line-1,ch:I.column||Q.length},{className:"source-line-error-underline",attributes:W}))}if(I.type==="error"){const W=document.createElement("div");W.innerHTML=Qi(I.message||""),W.className="source-line-error-widget",U.push(N.addLineWidget(I.line,W,{above:!0,coverGutter:!1}))}}T.current.highlight=l,T.current.widgets=U,T.current.markers=B}typeof c=="number"&&T.current.cm.lineCount()>=c&&N.scrollIntoView({line:Math.max(0,c-1),ch:0},50);let D;return v&&(D=()=>v(N.getValue()),N.on("change",D)),()=>{D&&N.off("change",D)}},[N,t,l,c,h,v]),x.jsx("div",{"data-testid":m,className:"cm-wrapper",ref:_,onClick:HS})};function HS(t){var n;if(!(t.target instanceof HTMLElement))return;let e;t.target.classList.contains("cm-linkified")?e=t.target.textContent:t.target.classList.contains("cm-link")&&((n=t.target.nextElementSibling)!=null&&n.classList.contains("cm-url"))&&(e=t.target.nextElementSibling.textContent.slice(1,-1)),e&&(t.preventDefault(),t.stopPropagation(),window.open(e,"_blank"))}let bm=!1;function VS(t){bm||(bm=!0,t.defineSimpleMode("text/linkified",{start:[{regex:ag,token:"linkified"}]}))}function WS(t){if(t){if(t.includes("javascript")||t.includes("json"))return"javascript";if(t.includes("python"))return"python";if(t.includes("csharp"))return"text/x-csharp";if(t.includes("java"))return"text/x-java";if(t.includes("markdown"))return"markdown";if(t.includes("html")||t.includes("svg"))return"htmlmixed";if(t.includes("css"))return"css"}}function KS(t){if(t)return{javascript:"javascript",jsonl:"javascript",python:"python",csharp:"text/x-csharp",java:"text/x-java",markdown:"markdown",html:"htmlmixed",css:"css",yaml:"yaml"}[t]}function QS(t){return!!t.match(/^(text\/.*?|application\/(json|(x-)?javascript|xml.*?|ecmascript|graphql|x-www-form-urlencoded)|image\/svg(\+xml)?|application\/.*?(\+json|\+xml))(;\s*charset=.*)?$/)}new be([["ez","application/andrew-inset"],["aw","application/applixware"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["dwd","application/atsc-dwd+xml"],["held","application/atsc-held+xml"],["rsat","application/atsc-rsat+xml"],["bdoc","application/bdoc"],["xcs","application/calendar+xml"],["ccxml","application/ccxml+xml"],["cdfx","application/cdfx+xml"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cu","application/cu-seeme"],["mpd","application/dash+xml"],["davmount","application/davmount+xml"],["dbk","application/docbook+xml"],["dssc","application/dssc+der"],["xdssc","application/dssc+xml"],["ecma","application/ecmascript"],["es","application/ecmascript"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["epub","application/epub+zip"],["exi","application/exi"],["exp","application/express"],["fdt","application/fdt+xml"],["pfr","application/font-tdpfr"],["geojson","application/geo+json"],["gml","application/gml+xml"],["gpx","application/gpx+xml"],["gxf","application/gxf"],["gz","application/gzip"],["hjson","application/hjson"],["stk","application/hyperstudio"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["ipfix","application/ipfix"],["its","application/its+xml"],["ear","application/java-archive"],["jar","application/java-archive"],["war","application/java-archive"],["ser","application/java-serialized-object"],["class","application/java-vm"],["js","application/javascript"],["mjs","application/javascript"],["json","application/json"],["map","application/json"],["json5","application/json5"],["jsonml","application/jsonml+json"],["jsonld","application/ld+json"],["lgr","application/lgr+xml"],["lostxml","application/lost+xml"],["hqx","application/mac-binhex40"],["cpt","application/mac-compactpro"],["mads","application/mads+xml"],["webmanifest","application/manifest+json"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ma","application/mathematica"],["mb","application/mathematica"],["nb","application/mathematica"],["mathml","application/mathml+xml"],["mbox","application/mbox"],["mscml","application/mediaservercontrol+xml"],["metalink","application/metalink+xml"],["meta4","application/metalink4+xml"],["mets","application/mets+xml"],["maei","application/mmt-aei+xml"],["musd","application/mmt-usd+xml"],["mods","application/mods+xml"],["m21","application/mp21"],["mp21","application/mp21"],["m4p","application/mp4"],["mp4s","application/mp4"],["doc","application/msword"],["dot","application/msword"],["mxf","application/mxf"],["nq","application/n-quads"],["nt","application/n-triples"],["cjs","application/node"],["bin","application/octet-stream"],["bpk","application/octet-stream"],["buffer","application/octet-stream"],["deb","application/octet-stream"],["deploy","application/octet-stream"],["dist","application/octet-stream"],["distz","application/octet-stream"],["dll","application/octet-stream"],["dmg","application/octet-stream"],["dms","application/octet-stream"],["dump","application/octet-stream"],["elc","application/octet-stream"],["exe","application/octet-stream"],["img","application/octet-stream"],["iso","application/octet-stream"],["lrf","application/octet-stream"],["mar","application/octet-stream"],["msi","application/octet-stream"],["msm","application/octet-stream"],["msp","application/octet-stream"],["pkg","application/octet-stream"],["so","application/octet-stream"],["oda","application/oda"],["opf","application/oebps-package+xml"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["oxps","application/oxps"],["relo","application/p2p-overlay+xml"],["xer","application/patch-ops-error+xml"],["pdf","application/pdf"],["pgp","application/pgp-encrypted"],["asc","application/pgp-signature"],["sig","application/pgp-signature"],["prf","application/pics-rules"],["p10","application/pkcs10"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["ac","application/pkix-attr-cert"],["cer","application/pkix-cert"],["crl","application/pkix-crl"],["pkipath","application/pkix-pkipath"],["pki","application/pkixcmp"],["pls","application/pls+xml"],["ai","application/postscript"],["eps","application/postscript"],["ps","application/postscript"],["provx","application/provenance+xml"],["pskcxml","application/pskc+xml"],["raml","application/raml+yaml"],["owl","application/rdf+xml"],["rdf","application/rdf+xml"],["rif","application/reginfo+xml"],["rnc","application/relax-ng-compact-syntax"],["rl","application/resource-lists+xml"],["rld","application/resource-lists-diff+xml"],["rs","application/rls-services+xml"],["rapd","application/route-apd+xml"],["sls","application/route-s-tsid+xml"],["rusd","application/route-usd+xml"],["gbr","application/rpki-ghostbusters"],["mft","application/rpki-manifest"],["roa","application/rpki-roa"],["rsd","application/rsd+xml"],["rss","application/rss+xml"],["rtf","application/rtf"],["sbml","application/sbml+xml"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["spq","application/scvp-vp-request"],["spp","application/scvp-vp-response"],["sdp","application/sdp"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["shf","application/shf+xml"],["sieve","application/sieve"],["siv","application/sieve"],["smi","application/smil+xml"],["smil","application/smil+xml"],["rq","application/sparql-query"],["srx","application/sparql-results+xml"],["gram","application/srgs"],["grxml","application/srgs+xml"],["sru","application/sru+xml"],["ssdl","application/ssdl+xml"],["ssml","application/ssml+xml"],["swidtag","application/swid+xml"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tfi","application/thraud+xml"],["tsd","application/timestamped-data"],["toml","application/toml"],["trig","application/trig"],["ttml","application/ttml+xml"],["ubj","application/ubjson"],["rsheet","application/urc-ressheet+xml"],["td","application/urc-targetdesc+xml"],["vxml","application/voicexml+xml"],["wasm","application/wasm"],["wgt","application/widget"],["hlp","application/winhlp"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["xaml","application/xaml+xml"],["xav","application/xcap-att+xml"],["xca","application/xcap-caps+xml"],["xdf","application/xcap-diff+xml"],["xel","application/xcap-el+xml"],["xns","application/xcap-ns+xml"],["xenc","application/xenc+xml"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xlf","application/xliff+xml"],["rng","application/xml"],["xml","application/xml"],["xsd","application/xml"],["xsl","application/xml"],["dtd","application/xml-dtd"],["xop","application/xop+xml"],["xpl","application/xproc+xml"],["*xsl","application/xslt+xml"],["xslt","application/xslt+xml"],["xspf","application/xspf+xml"],["mxml","application/xv+xml"],["xhvml","application/xv+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["yang","application/yang"],["yin","application/yin+xml"],["zip","application/zip"],["*3gpp","audio/3gpp"],["adp","audio/adpcm"],["amr","audio/amr"],["au","audio/basic"],["snd","audio/basic"],["kar","audio/midi"],["mid","audio/midi"],["midi","audio/midi"],["rmi","audio/midi"],["mxmf","audio/mobile-xmf"],["*mp3","audio/mp3"],["m4a","audio/mp4"],["mp4a","audio/mp4"],["m2a","audio/mpeg"],["m3a","audio/mpeg"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mpga","audio/mpeg"],["oga","audio/ogg"],["ogg","audio/ogg"],["opus","audio/ogg"],["spx","audio/ogg"],["s3m","audio/s3m"],["sil","audio/silk"],["wav","audio/wav"],["*wav","audio/wave"],["weba","audio/webm"],["xm","audio/xm"],["ttc","font/collection"],["otf","font/otf"],["ttf","font/ttf"],["woff","font/woff"],["woff2","font/woff2"],["exr","image/aces"],["apng","image/apng"],["avif","image/avif"],["bmp","image/bmp"],["cgm","image/cgm"],["drle","image/dicom-rle"],["emf","image/emf"],["fits","image/fits"],["g3","image/g3fax"],["gif","image/gif"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["hsj2","image/hsj2"],["ief","image/ief"],["jls","image/jls"],["jp2","image/jp2"],["jpg2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["jph","image/jph"],["jhc","image/jphc"],["jpm","image/jpm"],["jpf","image/jpx"],["jpx","image/jpx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["ktx","image/ktx"],["ktx2","image/ktx2"],["png","image/png"],["sgi","image/sgi"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["t38","image/t38"],["tif","image/tiff"],["tiff","image/tiff"],["tfx","image/tiff-fx"],["webp","image/webp"],["wmf","image/wmf"],["disposition-notification","message/disposition-notification"],["u8msg","message/global"],["u8dsn","message/global-delivery-status"],["u8mdn","message/global-disposition-notification"],["u8hdr","message/global-headers"],["eml","message/rfc822"],["mime","message/rfc822"],["3mf","model/3mf"],["gltf","model/gltf+json"],["glb","model/gltf-binary"],["iges","model/iges"],["igs","model/iges"],["mesh","model/mesh"],["msh","model/mesh"],["silo","model/mesh"],["mtl","model/mtl"],["obj","model/obj"],["stpx","model/step+xml"],["stpz","model/step+zip"],["stpxz","model/step-xml+zip"],["stl","model/stl"],["vrml","model/vrml"],["wrl","model/vrml"],["*x3db","model/x3d+binary"],["x3dbz","model/x3d+binary"],["x3db","model/x3d+fastinfoset"],["*x3dv","model/x3d+vrml"],["x3dvz","model/x3d+vrml"],["x3d","model/x3d+xml"],["x3dz","model/x3d+xml"],["x3dv","model/x3d-vrml"],["appcache","text/cache-manifest"],["manifest","text/cache-manifest"],["ics","text/calendar"],["ifb","text/calendar"],["coffee","text/coffeescript"],["litcoffee","text/coffeescript"],["css","text/css"],["csv","text/csv"],["htm","text/html"],["html","text/html"],["shtml","text/html"],["jade","text/jade"],["jsx","text/jsx"],["less","text/less"],["markdown","text/markdown"],["md","text/markdown"],["mml","text/mathml"],["mdx","text/mdx"],["n3","text/n3"],["conf","text/plain"],["def","text/plain"],["in","text/plain"],["ini","text/plain"],["list","text/plain"],["log","text/plain"],["text","text/plain"],["txt","text/plain"],["rtx","text/richtext"],["*rtf","text/rtf"],["sgm","text/sgml"],["sgml","text/sgml"],["shex","text/shex"],["slim","text/slim"],["slm","text/slim"],["spdx","text/spdx"],["styl","text/stylus"],["stylus","text/stylus"],["tsv","text/tab-separated-values"],["man","text/troff"],["me","text/troff"],["ms","text/troff"],["roff","text/troff"],["t","text/troff"],["tr","text/troff"],["ttl","text/turtle"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["vcard","text/vcard"],["vtt","text/vtt"],["*xml","text/xml"],["yaml","text/yaml"],["yml","text/yaml"],["3gp","video/3gpp"],["3gpp","video/3gpp"],["3g2","video/3gpp2"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["m4s","video/iso.segment"],["jpgv","video/jpeg"],["jpm","video/jpm"],["jpgm","video/jpm"],["mj2","video/mj2"],["mjp2","video/mj2"],["ts","video/mp2t"],["mp4","video/mp4"],["mp4v","video/mp4"],["mpg4","video/mp4"],["m1v","video/mpeg"],["m2v","video/mpeg"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["ogv","video/ogg"],["mov","video/quicktime"],["qt","video/quicktime"],["webm","video/webm"]]);const GS=({title:t,children:e,setExpanded:n,expanded:s,expandOnTitleClick:o})=>{const l=P.useId();return x.jsxs("div",{className:Ue("expandable",s&&"expanded"),children:[x.jsxs("div",{role:"button","aria-expanded":s,"aria-controls":l,className:"expandable-title",onClick:()=>o&&n(!s),children:[x.jsx("div",{className:Ue("codicon",s?"codicon-chevron-down":"codicon-chevron-right"),style:{cursor:"pointer",color:"var(--vscode-foreground)",marginLeft:"5px"},onClick:()=>!o&&n(!s)}),t]}),s&&x.jsx("div",{id:l,role:"region",style:{marginLeft:25},children:e})]})};function oy(t){const e=[];let n=0,s;for(;(s=ag.exec(t))!==null;){const l=t.substring(n,s.index);l&&e.push(l);const c=s[0];e.push(XS(c)),n=s.index+c.length}const o=t.substring(n);return o&&e.push(o),e}function XS(t){let e=t;return e.startsWith("www.")&&(e="https://"+e),x.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:t})}const JS=({attachment:t,reveal:e})=>{const[n,s]=P.useState(!1),[o,l]=P.useState(null),[c,u]=P.useState(null),[d,h]=cx(),y=P.useRef(null),v=QS(t.contentType),m=!!t.sha1||!!t.path;P.useEffect(()=>{var _;if(e)return(_=y.current)==null||_.scrollIntoView({behavior:"smooth"}),h()},[e,h]),P.useEffect(()=>{n&&o===null&&c===null&&(u("Loading ..."),fetch(la(t)).then(_=>_.text()).then(_=>{l(_),u(null)}).catch(_=>{u("Failed to load: "+_.message)}))},[n,o,c,t]);const w=P.useMemo(()=>{const _=o?o.split(`
65
65
  `).length:0;return Math.min(Math.max(5,_),20)*qS},[o]),S=x.jsxs("span",{style:{marginLeft:5},ref:y,"aria-label":t.name,children:[x.jsx("span",{children:oy(t.name)}),m&&x.jsx("a",{style:{marginLeft:5},href:Pl(t),children:"download"})]});return!v||!m?x.jsx("div",{style:{marginLeft:20},children:S}):x.jsxs("div",{className:Ue(d&&"yellow-flash"),children:[x.jsx(GS,{title:S,expanded:n,setExpanded:s,expandOnTitleClick:!0,children:c&&x.jsx("i",{children:c})}),n&&o!==null&&x.jsx("div",{className:"vbox",style:{height:w},children:x.jsx(js,{text:o,readOnly:!0,mimeType:t.contentType,linkify:!0,lineNumbers:!0,wrapLines:!1})})]})},YS=({model:t,revealedAttachment:e})=>{const{diffMap:n,screenshots:s,attachments:o}=P.useMemo(()=>{const l=new Set((t==null?void 0:t.visibleAttachments)??[]),c=new Set,u=new Map;for(const d of l){if(!d.path&&!d.sha1)continue;const h=d.name.match(/^(.*)-(expected|actual|diff)\.png$/);if(h){const y=h[1],v=h[2],m=u.get(y)||{expected:void 0,actual:void 0,diff:void 0};m[v]=d,u.set(y,m),l.delete(d)}else d.contentType.startsWith("image/")&&(c.add(d),l.delete(d))}return{diffMap:u,attachments:l,screenshots:c}},[t]);return!n.size&&!s.size&&!o.size?x.jsx($r,{text:"No attachments"}):x.jsxs("div",{className:"attachments-tab",children:[[...n.values()].map(({expected:l,actual:c,diff:u})=>x.jsxs(x.Fragment,{children:[l&&c&&x.jsx("div",{className:"attachments-section",children:"Image diff"}),l&&c&&x.jsx(DS,{noTargetBlank:!0,diff:{name:"Image diff",expected:{attachment:{...l,path:Pl(l)},title:"Expected"},actual:{attachment:{...c,path:Pl(c)}},diff:u?{attachment:{...u,path:Pl(u)}}:void 0}})]})),s.size?x.jsx("div",{className:"attachments-section",children:"Screenshots"}):void 0,[...s.values()].map((l,c)=>{const u=la(l);return x.jsxs("div",{className:"attachment-item",children:[x.jsx("div",{children:x.jsx("img",{draggable:"false",src:u})}),x.jsx("div",{children:x.jsx("a",{target:"_blank",href:u,rel:"noreferrer",children:l.name})})]},`screenshot-${c}`)}),o.size?x.jsx("div",{className:"attachments-section",children:"Attachments"}):void 0,[...o.values()].map((l,c)=>x.jsx("div",{className:"attachment-item",children:x.jsx(JS,{attachment:l,reveal:e&&ZS(l,e[0])?e:void 0})},e_(l,c)))]})};function ZS(t,e){return t.name===e.name&&t.path===e.path&&t.sha1===e.sha1}function la(t,e={}){const n=new URLSearchParams(e);return t.sha1?(n.set("trace",t.traceUrl),"sha1/"+t.sha1+"?"+n.toString()):(n.set("path",t.path),"file?"+n.toString())}function Pl(t){const e={dn:t.name};return t.contentType&&(e.dct=t.contentType),la(t,e)}function e_(t,e){return e+"-"+(t.sha1?"sha1-"+t.sha1:"path-"+t.path)}const t_=`
66
66
  # Instructions
67
67
 
@@ -112,7 +112,7 @@ ${o}}`}stringLiteral(e){return JSON.stringify(e)}}class v_{generatePlaywrightReq
112
112
  `;return s.push({message:l,range:[n.lineCounter.linePos(e.range[0]),n.lineCounter.linePos(e.range[0]+o.pos)]}),null}throw o}}constructor(e){this._input=e,this._pos=0,this._length=e.length}_peek(){return this._input[this._pos]||""}_next(){return this._pos<this._length?this._input[this._pos++]:null}_eof(){return this._pos>=this._length}_isWhitespace(){return!this._eof()&&/\s/.test(this._peek())}_skipWhitespace(){for(;this._isWhitespace();)this._pos++}_readIdentifier(e){this._eof()&&this._throwError(`Unexpected end of input when expecting ${e}`);const n=this._pos;for(;!this._eof()&&/[a-zA-Z]/.test(this._peek());)this._pos++;return this._input.slice(n,this._pos)}_readString(){let e="",n=!1;for(;!this._eof();){const s=this._next();if(n)e+=s,n=!1;else if(s==="\\")n=!0;else{if(s==='"')return e;e+=s}}this._throwError("Unterminated string")}_throwError(e,n=0){throw new Tm(e,n||this._pos)}_readRegex(){let e="",n=!1,s=!1;for(;!this._eof();){const o=this._next();if(n)e+=o,n=!1;else if(o==="\\")n=!0,e+=o;else{if(o==="/"&&!s)return{pattern:e};o==="["?(s=!0,e+=o):o==="]"&&s?(e+=o,s=!1):e+=o}}this._throwError("Unterminated regex")}_readStringOrRegex(){const e=this._peek();return e==='"'?(this._next(),fy(this._readString())):e==="/"?(this._next(),this._readRegex()):null}_readAttributes(e){let n=this._pos;for(;this._skipWhitespace(),this._peek()==="[";){this._next(),this._skipWhitespace(),n=this._pos;const s=this._readIdentifier("attribute");this._skipWhitespace();let o="";if(this._peek()==="=")for(this._next(),this._skipWhitespace(),n=this._pos;this._peek()!=="]"&&!this._isWhitespace()&&!this._eof();)o+=this._next();this._skipWhitespace(),this._peek()!=="]"&&this._throwError("Expected ]"),this._next(),this._applyAttribute(e,s,o||"true",n)}}_parse(){this._skipWhitespace();const e=this._readIdentifier("role");this._skipWhitespace();const n=this._readStringOrRegex()||"",s={kind:"role",role:e,name:n};return this._readAttributes(s),this._skipWhitespace(),this._eof()||this._throwError("Unexpected input"),s}_applyAttribute(e,n,s,o){if(n==="checked"){this._assert(s==="true"||s==="false"||s==="mixed",'Value of "checked" attribute must be a boolean or "mixed"',o),e.checked=s==="true"?!0:s==="false"?!1:"mixed";return}if(n==="disabled"){this._assert(s==="true"||s==="false",'Value of "disabled" attribute must be a boolean',o),e.disabled=s==="true";return}if(n==="expanded"){this._assert(s==="true"||s==="false",'Value of "expanded" attribute must be a boolean',o),e.expanded=s==="true";return}if(n==="level"){this._assert(!isNaN(Number(s)),'Value of "level" attribute must be a number',o),e.level=Number(s);return}if(n==="pressed"){this._assert(s==="true"||s==="false"||s==="mixed",'Value of "pressed" attribute must be a boolean or "mixed"',o),e.pressed=s==="true"?!0:s==="false"?!1:"mixed";return}if(n==="selected"){this._assert(s==="true"||s==="false",'Value of "selected" attribute must be a boolean',o),e.selected=s==="true";return}this._assert(!1,`Unsupported attribute [${n}]`,o)}_assert(e,n,s){e||this._throwError(n||"Assertion error",s)}}class Tm extends Error{constructor(e,n){super(e),this.pos=n}}let Sf={};function K_(t){Sf=t}function _f(){return Sf}function aa(t,e){for(;e;){if(t.contains(e))return!0;e=hy(e)}return!1}function gt(t){if(t.parentElement)return t.parentElement;if(t.parentNode&&t.parentNode.nodeType===11&&t.parentNode.host)return t.parentNode.host}function dy(t){let e=t;for(;e.parentNode;)e=e.parentNode;if(e.nodeType===11||e.nodeType===9)return e}function hy(t){for(;t.parentElement;)t=t.parentElement;return gt(t)}function Ui(t,e,n){for(;t;){const s=t.closest(e);if(n&&s!==n&&(s!=null&&s.contains(n)))return;if(s)return s;t=hy(t)}}function Pr(t,e){return t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,e):void 0}function py(t,e){if(e=e??Pr(t),!e)return!0;if(Element.prototype.checkVisibility&&Sf.browserNameForWorkarounds!=="webkit"){if(!t.checkVisibility())return!1}else{const n=t.closest("details,summary");if(n!==t&&(n==null?void 0:n.nodeName)==="DETAILS"&&!n.open)return!1}return e.visibility==="visible"}function Ts(t){const e=Pr(t);if(!e)return!0;if(e.display==="contents"){for(let s=t.firstChild;s;s=s.nextSibling)if(s.nodeType===1&&Ts(s)||s.nodeType===3&&my(s))return!0;return!1}if(!py(t,e))return!1;const n=t.getBoundingClientRect();return n.width>0&&n.height>0}function my(t){const e=t.ownerDocument.createRange();e.selectNode(t);const n=e.getBoundingClientRect();return n.width>0&&n.height>0}function ct(t){return t instanceof HTMLFormElement?"FORM":t.tagName.toUpperCase()}function Nm(t){return t.hasAttribute("aria-label")||t.hasAttribute("aria-labelledby")}const Cm="article:not([role]), aside:not([role]), main:not([role]), nav:not([role]), section:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]",Q_=[["aria-atomic",void 0],["aria-busy",void 0],["aria-controls",void 0],["aria-current",void 0],["aria-describedby",void 0],["aria-details",void 0],["aria-dropeffect",void 0],["aria-flowto",void 0],["aria-grabbed",void 0],["aria-hidden",void 0],["aria-keyshortcuts",void 0],["aria-label",["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"]],["aria-labelledby",["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"]],["aria-live",void 0],["aria-owns",void 0],["aria-relevant",void 0],["aria-roledescription",["generic"]]];function gy(t,e){return Q_.some(([n,s])=>!(s!=null&&s.includes(e||""))&&t.hasAttribute(n))}function yy(t){return!Number.isNaN(Number(String(t.getAttribute("tabindex"))))}function G_(t){return!Ay(t)&&(X_(t)||yy(t))}function X_(t){const e=ct(t);return["BUTTON","DETAILS","SELECT","TEXTAREA"].includes(e)?!0:e==="A"||e==="AREA"?t.hasAttribute("href"):e==="INPUT"?!t.hidden:!1}const Eu={A:t=>t.hasAttribute("href")?"link":null,AREA:t=>t.hasAttribute("href")?"link":null,ARTICLE:()=>"article",ASIDE:()=>"complementary",BLOCKQUOTE:()=>"blockquote",BUTTON:()=>"button",CAPTION:()=>"caption",CODE:()=>"code",DATALIST:()=>"listbox",DD:()=>"definition",DEL:()=>"deletion",DETAILS:()=>"group",DFN:()=>"term",DIALOG:()=>"dialog",DT:()=>"term",EM:()=>"emphasis",FIELDSET:()=>"group",FIGURE:()=>"figure",FOOTER:t=>Ui(t,Cm)?null:"contentinfo",FORM:t=>Nm(t)?"form":null,H1:()=>"heading",H2:()=>"heading",H3:()=>"heading",H4:()=>"heading",H5:()=>"heading",H6:()=>"heading",HEADER:t=>Ui(t,Cm)?null:"banner",HR:()=>"separator",HTML:()=>"document",IMG:t=>t.getAttribute("alt")===""&&!t.getAttribute("title")&&!gy(t)&&!yy(t)?"presentation":"img",INPUT:t=>{const e=t.type.toLowerCase();if(e==="search")return t.hasAttribute("list")?"combobox":"searchbox";if(["email","tel","text","url",""].includes(e)){const n=Ps(t,t.getAttribute("list"))[0];return n&&ct(n)==="DATALIST"?"combobox":"textbox"}return e==="hidden"?null:e==="file"&&!_f().inputFileRoleTextbox?"button":fk[e]||"textbox"},INS:()=>"insertion",LI:()=>"listitem",MAIN:()=>"main",MARK:()=>"mark",MATH:()=>"math",MENU:()=>"list",METER:()=>"meter",NAV:()=>"navigation",OL:()=>"list",OPTGROUP:()=>"group",OPTION:()=>"option",OUTPUT:()=>"status",P:()=>"paragraph",PROGRESS:()=>"progressbar",SECTION:t=>Nm(t)?"region":null,SELECT:t=>t.hasAttribute("multiple")||t.size>1?"listbox":"combobox",STRONG:()=>"strong",SUB:()=>"subscript",SUP:()=>"superscript",SVG:()=>"img",TABLE:()=>"table",TBODY:()=>"rowgroup",TD:t=>{const e=Ui(t,"table"),n=e?Gl(e):"";return n==="grid"||n==="treegrid"?"gridcell":"cell"},TEXTAREA:()=>"textbox",TFOOT:()=>"rowgroup",TH:t=>{if(t.getAttribute("scope")==="col")return"columnheader";if(t.getAttribute("scope")==="row")return"rowheader";const e=Ui(t,"table"),n=e?Gl(e):"";return n==="grid"||n==="treegrid"?"gridcell":"cell"},THEAD:()=>"rowgroup",TIME:()=>"time",TR:()=>"row",UL:()=>"list"},J_={DD:["DL","DIV"],DIV:["DL"],DT:["DL","DIV"],LI:["OL","UL"],TBODY:["TABLE"],TD:["TR"],TFOOT:["TABLE"],TH:["TR"],THEAD:["TABLE"],TR:["THEAD","TBODY","TFOOT","TABLE"]};function Am(t){var s;const e=((s=Eu[ct(t)])==null?void 0:s.call(Eu,t))||"";if(!e)return null;let n=t;for(;n;){const o=gt(n),l=J_[ct(n)];if(!l||!o||!l.includes(ct(o)))break;const c=Gl(o);if((c==="none"||c==="presentation")&&!vy(o,c))return c;n=o}return e}const Y_=["alert","alertdialog","application","article","banner","blockquote","button","caption","cell","checkbox","code","columnheader","combobox","complementary","contentinfo","definition","deletion","dialog","directory","document","emphasis","feed","figure","form","generic","grid","gridcell","group","heading","img","insertion","link","list","listbox","listitem","log","main","mark","marquee","math","meter","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","paragraph","presentation","progressbar","radio","radiogroup","region","row","rowgroup","rowheader","scrollbar","search","searchbox","separator","slider","spinbutton","status","strong","subscript","superscript","switch","tab","table","tablist","tabpanel","term","textbox","time","timer","toolbar","tooltip","tree","treegrid","treeitem"];function Gl(t){return(t.getAttribute("role")||"").split(" ").map(n=>n.trim()).find(n=>Y_.includes(n))||null}function vy(t,e){return gy(t,e)||G_(t)}function et(t){const e=Gl(t);if(!e)return Am(t);if(e==="none"||e==="presentation"){const n=Am(t);if(vy(t,n))return n}return e}function wy(t){return t===null?void 0:t.toLowerCase()==="true"}function xy(t){return["STYLE","SCRIPT","NOSCRIPT","TEMPLATE"].includes(ct(t))}function Wt(t){if(xy(t))return!0;const e=Pr(t),n=t.nodeName==="SLOT";if((e==null?void 0:e.display)==="contents"&&!n){for(let o=t.firstChild;o;o=o.nextSibling)if(o.nodeType===1&&!Wt(o)||o.nodeType===3&&my(o))return!1;return!0}return!(t.nodeName==="OPTION"&&!!t.closest("select"))&&!n&&!py(t,e)?!0:Sy(t)}function Sy(t){let e=sr==null?void 0:sr.get(t);if(e===void 0){if(e=!1,t.parentElement&&t.parentElement.shadowRoot&&!t.assignedSlot&&(e=!0),!e){const n=Pr(t);e=!n||n.display==="none"||wy(t.getAttribute("aria-hidden"))===!0}if(!e){const n=gt(t);n&&(e=Sy(n))}sr==null||sr.set(t,e)}return e}function Ps(t,e){if(!e)return[];const n=dy(t);if(!n)return[];try{const s=e.split(" ").filter(l=>!!l),o=[];for(const l of s){const c=n.querySelector("#"+CSS.escape(l));c&&!o.includes(c)&&o.push(c)}return o}catch{return[]}}function Ln(t){return t.trim()}function Wi(t){return t.split(" ").map(e=>e.replace(/\r\n/g,`
113
113
  `).replace(/[\u200b\u00ad]/g,"").replace(/\s\s*/g," ")).join(" ").trim()}function Lm(t,e){const n=[...t.querySelectorAll(e)];for(const s of Ps(t,t.getAttribute("aria-owns")))s.matches(e)&&n.push(s),n.push(...s.querySelectorAll(e));return n}function Xl(t,e){const n=e==="::before"?Of:Mf;if(n!=null&&n.has(t))return(n==null?void 0:n.get(t))||"";const s=Pr(t,e),o=Z_(t,s);return n&&n.set(t,o),o}function Z_(t,e){if(!e||e.display==="none"||e.visibility==="hidden")return"";const n=e.content;let s;if(n[0]==="'"&&n[n.length-1]==="'"||n[0]==='"'&&n[n.length-1]==='"')s=n.substring(1,n.length-1);else if(n.startsWith("attr(")&&n.endsWith(")")){const o=n.substring(5,n.length-1).trim();s=t.getAttribute(o)||""}return s!==void 0?(e.display||"inline")!=="inline"?" "+s+" ":s:""}function _y(t){const e=t.getAttribute("aria-labelledby");if(e===null)return null;const n=Ps(t,e);return n.length?n:null}function ek(t,e){const n=["button","cell","checkbox","columnheader","gridcell","heading","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"].includes(t),s=e&&["","caption","code","contentinfo","definition","deletion","emphasis","insertion","list","listitem","mark","none","paragraph","presentation","region","row","rowgroup","section","strong","subscript","superscript","table","term","time"].includes(t);return n||s}function Xi(t,e){const n=e?Lf:Af;let s=n==null?void 0:n.get(t);return s===void 0&&(s="",["caption","code","definition","deletion","emphasis","generic","insertion","mark","paragraph","presentation","strong","subscript","suggestion","superscript","term","time"].includes(et(t)||"")||(s=Wi(ln(t,{includeHidden:e,visitedElements:new ke,embeddedInTargetElement:"self"}))),n==null||n.set(t,s)),s}function jm(t,e){const n=e?If:jf;let s=n==null?void 0:n.get(t);if(s===void 0){if(s="",t.hasAttribute("aria-describedby")){const o=Ps(t,t.getAttribute("aria-describedby"));s=Wi(o.map(l=>ln(l,{includeHidden:e,visitedElements:new ke,embeddedInDescribedBy:{element:l,hidden:Wt(l)}})).join(" "))}else t.hasAttribute("aria-description")?s=Wi(t.getAttribute("aria-description")||""):s=Wi(t.getAttribute("title")||"");n==null||n.set(t,s)}return s}const tk=["application","checkbox","combobox","gridcell","listbox","radiogroup","slider","spinbutton","textbox","tree","columnheader","rowheader","searchbox","switch","treegrid"];function nk(t){const e=et(t)||"";if(!e||!tk.includes(e))return"false";const n=t.getAttribute("aria-invalid");return!n||n.trim()===""||n.toLocaleLowerCase()==="false"?"false":n==="true"||n==="grammar"||n==="spelling"?n:"true"}function rk(t){if("validity"in t){const e=t.validity;return(e==null?void 0:e.valid)===!1}return!1}function sk(t){const e=xs;let n=xs==null?void 0:xs.get(t);if(n===void 0){n="";const s=nk(t)!=="false",o=rk(t);if(s||o){const l=t.getAttribute("aria-errormessage");n=Ps(t,l).map(d=>Wi(ln(d,{visitedElements:new ke,embeddedInDescribedBy:{element:d,hidden:Wt(d)}}))).join(" ").trim()}e==null||e.set(t,n)}return n}function ln(t,e){var d,h,y,v;if(e.visitedElements.has(t))return"";const n={...e,embeddedInTargetElement:e.embeddedInTargetElement==="self"?"descendant":e.embeddedInTargetElement};if(!e.includeHidden){const m=!!((d=e.embeddedInLabelledBy)!=null&&d.hidden)||!!((h=e.embeddedInDescribedBy)!=null&&h.hidden)||!!((y=e.embeddedInNativeTextAlternative)!=null&&y.hidden)||!!((v=e.embeddedInLabel)!=null&&v.hidden);if(xy(t)||!m&&Wt(t))return e.visitedElements.add(t),""}const s=_y(t);if(!e.embeddedInLabelledBy){const m=(s||[]).map(w=>ln(w,{...e,embeddedInLabelledBy:{element:w,hidden:Wt(w)},embeddedInDescribedBy:void 0,embeddedInTargetElement:void 0,embeddedInLabel:void 0,embeddedInNativeTextAlternative:void 0})).join(" ");if(m)return m}const o=et(t)||"",l=ct(t);if(e.embeddedInLabel||e.embeddedInLabelledBy||e.embeddedInTargetElement==="descendant"){const m=[...t.labels||[]].includes(t),w=(s||[]).includes(t);if(!m&&!w){if(o==="textbox")return e.visitedElements.add(t),l==="INPUT"||l==="TEXTAREA"?t.value:t.textContent||"";if(["combobox","listbox"].includes(o)){e.visitedElements.add(t);let S;if(l==="SELECT")S=[...t.selectedOptions],!S.length&&t.options.length&&S.push(t.options[0]);else{const _=o==="combobox"?Lm(t,"*").find(b=>et(b)==="listbox"):t;S=_?Lm(_,'[aria-selected="true"]').filter(b=>et(b)==="option"):[]}return!S.length&&l==="INPUT"?t.value:S.map(_=>ln(_,n)).join(" ")}if(["progressbar","scrollbar","slider","spinbutton","meter"].includes(o))return e.visitedElements.add(t),t.hasAttribute("aria-valuetext")?t.getAttribute("aria-valuetext")||"":t.hasAttribute("aria-valuenow")?t.getAttribute("aria-valuenow")||"":t.getAttribute("value")||"";if(["menu"].includes(o))return e.visitedElements.add(t),""}}const c=t.getAttribute("aria-label")||"";if(Ln(c))return e.visitedElements.add(t),c;if(!["presentation","none"].includes(o)){if(l==="INPUT"&&["button","submit","reset"].includes(t.type)){e.visitedElements.add(t);const m=t.value||"";return Ln(m)?m:t.type==="submit"?"Submit":t.type==="reset"?"Reset":t.getAttribute("title")||""}if(!_f().inputFileRoleTextbox&&l==="INPUT"&&t.type==="file"){e.visitedElements.add(t);const m=t.labels||[];return m.length&&!e.embeddedInLabelledBy?Pi(m,e):"Choose File"}if(l==="INPUT"&&t.type==="image"){e.visitedElements.add(t);const m=t.labels||[];if(m.length&&!e.embeddedInLabelledBy)return Pi(m,e);const w=t.getAttribute("alt")||"";if(Ln(w))return w;const S=t.getAttribute("title")||"";return Ln(S)?S:"Submit"}if(!s&&l==="BUTTON"){e.visitedElements.add(t);const m=t.labels||[];if(m.length)return Pi(m,e)}if(!s&&l==="OUTPUT"){e.visitedElements.add(t);const m=t.labels||[];return m.length?Pi(m,e):t.getAttribute("title")||""}if(!s&&(l==="TEXTAREA"||l==="SELECT"||l==="INPUT")){e.visitedElements.add(t);const m=t.labels||[];if(m.length)return Pi(m,e);const w=l==="INPUT"&&["text","password","search","tel","email","url"].includes(t.type)||l==="TEXTAREA",S=t.getAttribute("placeholder")||"",_=t.getAttribute("title")||"";return!w||_?_:S}if(!s&&l==="FIELDSET"){e.visitedElements.add(t);for(let w=t.firstElementChild;w;w=w.nextElementSibling)if(ct(w)==="LEGEND")return ln(w,{...n,embeddedInNativeTextAlternative:{element:w,hidden:Wt(w)}});return t.getAttribute("title")||""}if(!s&&l==="FIGURE"){e.visitedElements.add(t);for(let w=t.firstElementChild;w;w=w.nextElementSibling)if(ct(w)==="FIGCAPTION")return ln(w,{...n,embeddedInNativeTextAlternative:{element:w,hidden:Wt(w)}});return t.getAttribute("title")||""}if(l==="IMG"){e.visitedElements.add(t);const m=t.getAttribute("alt")||"";return Ln(m)?m:t.getAttribute("title")||""}if(l==="TABLE"){e.visitedElements.add(t);for(let w=t.firstElementChild;w;w=w.nextElementSibling)if(ct(w)==="CAPTION")return ln(w,{...n,embeddedInNativeTextAlternative:{element:w,hidden:Wt(w)}});const m=t.getAttribute("summary")||"";if(m)return m}if(l==="AREA"){e.visitedElements.add(t);const m=t.getAttribute("alt")||"";return Ln(m)?m:t.getAttribute("title")||""}if(l==="SVG"||t.ownerSVGElement){e.visitedElements.add(t);for(let m=t.firstElementChild;m;m=m.nextElementSibling)if(ct(m)==="TITLE"&&m.ownerSVGElement)return ln(m,{...n,embeddedInLabelledBy:{element:m,hidden:Wt(m)}})}if(t.ownerSVGElement&&l==="A"){const m=t.getAttribute("xlink:title")||"";if(Ln(m))return e.visitedElements.add(t),m}}const u=l==="SUMMARY"&&!["presentation","none"].includes(o);if(ek(o,e.embeddedInTargetElement==="descendant")||u||e.embeddedInLabelledBy||e.embeddedInDescribedBy||e.embeddedInLabel||e.embeddedInNativeTextAlternative){e.visitedElements.add(t);const m=ik(t,n);if(e.embeddedInTargetElement==="self"?Ln(m):m)return m}if(!["presentation","none"].includes(o)||l==="IFRAME"){e.visitedElements.add(t);const m=t.getAttribute("title")||"";if(Ln(m))return m}return e.visitedElements.add(t),""}function ik(t,e){const n=[],s=(l,c)=>{var u;if(!(c&&l.assignedSlot))if(l.nodeType===1){const d=((u=Pr(l))==null?void 0:u.display)||"inline";let h=ln(l,e);(d!=="inline"||l.nodeName==="BR")&&(h=" "+h+" "),n.push(h)}else l.nodeType===3&&n.push(l.textContent||"")};n.push(Xl(t,"::before"));const o=t.nodeName==="SLOT"?t.assignedNodes():[];if(o.length)for(const l of o)s(l,!1);else{for(let l=t.firstChild;l;l=l.nextSibling)s(l,!0);if(t.shadowRoot)for(let l=t.shadowRoot.firstChild;l;l=l.nextSibling)s(l,!0);for(const l of Ps(t,t.getAttribute("aria-owns")))s(l,!0)}return n.push(Xl(t,"::after")),n.join("")}const kf=["gridcell","option","row","tab","rowheader","columnheader","treeitem"];function ky(t){return ct(t)==="OPTION"?t.selected:kf.includes(et(t)||"")?wy(t.getAttribute("aria-selected"))===!0:!1}const bf=["checkbox","menuitemcheckbox","option","radio","switch","menuitemradio","treeitem"];function by(t){const e=Ef(t,!0);return e==="error"?!1:e}function ok(t){return Ef(t,!0)}function lk(t){return Ef(t,!1)}function Ef(t,e){const n=ct(t);if(e&&n==="INPUT"&&t.indeterminate)return"mixed";if(n==="INPUT"&&["checkbox","radio"].includes(t.type))return t.checked;if(bf.includes(et(t)||"")){const s=t.getAttribute("aria-checked");return s==="true"?!0:e&&s==="mixed"?"mixed":!1}return"error"}const ak=["checkbox","combobox","grid","gridcell","listbox","radiogroup","slider","spinbutton","textbox","columnheader","rowheader","searchbox","switch","treegrid"];function ck(t){const e=ct(t);return["INPUT","TEXTAREA","SELECT"].includes(e)?t.hasAttribute("readonly"):ak.includes(et(t)||"")?t.getAttribute("aria-readonly")==="true":t.isContentEditable?!1:"error"}const Tf=["button"];function Ey(t){if(Tf.includes(et(t)||"")){const e=t.getAttribute("aria-pressed");if(e==="true")return!0;if(e==="mixed")return"mixed"}return!1}const Nf=["application","button","checkbox","combobox","gridcell","link","listbox","menuitem","row","rowheader","tab","treeitem","columnheader","menuitemcheckbox","menuitemradio","rowheader","switch"];function Ty(t){if(ct(t)==="DETAILS")return t.open;if(Nf.includes(et(t)||"")){const e=t.getAttribute("aria-expanded");return e===null?void 0:e==="true"}}const Cf=["heading","listitem","row","treeitem"];function Ny(t){const e={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[ct(t)];if(e)return e;if(Cf.includes(et(t)||"")){const n=t.getAttribute("aria-level"),s=n===null?Number.NaN:Number(n);if(Number.isInteger(s)&&s>=1)return s}return 0}const Cy=["application","button","composite","gridcell","group","input","link","menuitem","scrollbar","separator","tab","checkbox","columnheader","combobox","grid","listbox","menu","menubar","menuitemcheckbox","menuitemradio","option","radio","radiogroup","row","rowheader","searchbox","select","slider","spinbutton","switch","tablist","textbox","toolbar","tree","treegrid","treeitem"];function Jl(t){return Ay(t)||Ly(t)}function Ay(t){return["BUTTON","INPUT","SELECT","TEXTAREA","OPTION","OPTGROUP"].includes(t.tagName)&&(t.hasAttribute("disabled")||uk(t))}function uk(t){const e=t==null?void 0:t.closest("FIELDSET[DISABLED]");if(!e)return!1;const n=e.querySelector(":scope > LEGEND");return!n||!n.contains(t)}function Ly(t,e=!1){if(!t)return!1;if(e||Cy.includes(et(t)||"")){const n=(t.getAttribute("aria-disabled")||"").toLowerCase();return n==="true"?!0:n==="false"?!1:Ly(gt(t),!0)}return!1}function Pi(t,e){return[...t].map(n=>ln(n,{...e,embeddedInLabel:{element:n,hidden:Wt(n)},embeddedInNativeTextAlternative:void 0,embeddedInLabelledBy:void 0,embeddedInDescribedBy:void 0,embeddedInTargetElement:void 0})).filter(n=>!!n).join(" ")}let Af,Lf,jf,If,xs,sr,Of,Mf,jy=0;function $f(){++jy,Af??(Af=new be),Lf??(Lf=new be),jf??(jf=new be),If??(If=new be),xs??(xs=new be),sr??(sr=new be),Of??(Of=new be),Mf??(Mf=new be)}function Pf(){--jy||(Af=void 0,Lf=void 0,jf=void 0,If=void 0,xs=void 0,sr=void 0,Of=void 0,Mf=void 0)}const fk={button:"button",checkbox:"checkbox",image:"button",number:"spinbutton",radio:"radio",range:"slider",reset:"button",submit:"button"};function dk(t){return Iy(t)?"'"+t.replace(/'/g,"''")+"'":t}function Tu(t){return Iy(t)?'"'+t.replace(/[\\"\x00-\x1f\x7f-\x9f]/g,e=>{switch(e){case"\\":return"\\\\";case'"':return'\\"';case"\b":return"\\b";case"\f":return"\\f";case`
114
114
  `:return"\\n";case"\r":return"\\r";case" ":return"\\t";default:return"\\x"+e.charCodeAt(0).toString(16).padStart(2,"0")}})+'"':t}function Iy(t){return!!(t.length===0||/^\s|\s$/.test(t)||/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f]/.test(t)||/^-/.test(t)||/[\n:](\s|$)/.test(t)||/\s#/.test(t)||/[\n\r]/.test(t)||/^[&*\],?!>|@"'#%]/.test(t)||/[{}`]/.test(t)||/^\[/.test(t)||!isNaN(Number(t))||["y","n","yes","no","true","false","on","off","null"].includes(t.toLowerCase()))}function Rf(t,e){const n=new ke,s={root:{role:"fragment",name:"",children:[],element:t,props:{}},elements:new be,generation:e,ids:new be},o=u=>{const d=s.elements.size+1;s.elements.set(d,u),s.ids.set(u,d)};o(t);const l=(u,d)=>{if(n.has(d))return;if(n.add(d),d.nodeType===Node.TEXT_NODE&&d.nodeValue){const m=d.nodeValue;u.role!=="textbox"&&m&&u.children.push(d.nodeValue||"");return}if(d.nodeType!==Node.ELEMENT_NODE)return;const h=d;if(Wt(h))return;const y=[];if(h.hasAttribute("aria-owns")){const m=h.getAttribute("aria-owns").split(/\s+/);for(const w of m){const S=t.ownerDocument.getElementById(w);S&&y.push(S)}}o(h);const v=hk(h);v&&u.children.push(v),c(v||u,h,y)};function c(u,d,h=[]){var w;const v=(((w=Pr(d))==null?void 0:w.display)||"inline")!=="inline"||d.nodeName==="BR"?" ":"";v&&u.children.push(v),u.children.push(Xl(d,"::before"));const m=d.nodeName==="SLOT"?d.assignedNodes():[];if(m.length)for(const S of m)l(u,S);else{for(let S=d.firstChild;S;S=S.nextSibling)S.assignedSlot||l(u,S);if(d.shadowRoot)for(let S=d.shadowRoot.firstChild;S;S=S.nextSibling)l(u,S)}for(const S of h)l(u,S);if(u.children.push(Xl(d,"::after")),v&&u.children.push(v),u.children.length===1&&u.name===u.children[0]&&(u.children=[]),u.role==="link"&&d.hasAttribute("href")){const S=d.getAttribute("href");u.props.url=S}}$f();try{l(s.root,t)}finally{Pf()}return pk(s.root),s}function hk(t){if(t.nodeName==="IFRAME")return{role:"iframe",name:"",children:[],props:{},element:t};const e=et(t);if(!e||e==="presentation"||e==="none")return null;const n=vt(Xi(t,!1)||""),s={role:e,name:n,children:[],props:{},element:t};return bf.includes(e)&&(s.checked=by(t)),Cy.includes(e)&&(s.disabled=Jl(t)),Nf.includes(e)&&(s.expanded=Ty(t)),Cf.includes(e)&&(s.level=Ny(t)),Tf.includes(e)&&(s.pressed=Ey(t)),kf.includes(e)&&(s.selected=ky(t)),(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&t.type!=="checkbox"&&t.type!=="radio"&&(t.type!=="file"||_f().inputFileRoleTextbox)&&(s.children=[t.value]),s}function pk(t){const e=(s,o)=>{if(!s.length)return;const l=vt(s.join(""));l&&o.push(l),s.length=0},n=s=>{const o=[],l=[];for(const c of s.children||[])typeof c=="string"?l.push(c):(e(l,o),n(c),o.push(c));e(l,o),s.children=o.length?o:[],s.children.length===1&&s.children[0]===s.name&&(s.children=[])};n(t)}function Df(t,e){return e?t?typeof e=="string"?t===e:!!t.match(new RegExp(e.pattern)):!1:!0}function mk(t,e){return Df(t,e.text)}function gk(t,e){return Df(t,e.name)}function yk(t,e){const n=Rf(t,0);return{matches:Oy(n.root,e,!1,!1),received:{raw:ef(n,{mode:"raw"}),regex:ef(n,{mode:"regex"})}}}function vk(t,e){const n=Rf(t,0).root;return Oy(n,e,!0,!1).map(o=>o.element)}function Ff(t,e,n){var s;return typeof t=="string"&&e.kind==="text"?mk(t,e):t===null||typeof t!="object"||e.kind!=="role"||e.role!=="fragment"&&e.role!==t.role||e.checked!==void 0&&e.checked!==t.checked||e.disabled!==void 0&&e.disabled!==t.disabled||e.expanded!==void 0&&e.expanded!==t.expanded||e.level!==void 0&&e.level!==t.level||e.pressed!==void 0&&e.pressed!==t.pressed||e.selected!==void 0&&e.selected!==t.selected||!gk(t.name,e)||!Df(t.props.url,(s=e.props)==null?void 0:s.url)?!1:e.containerMode==="contain"?Om(t.children||[],e.children||[]):e.containerMode==="equal"?Im(t.children||[],e.children||[],!1):e.containerMode==="deep-equal"||n?Im(t.children||[],e.children||[],!0):Om(t.children||[],e.children||[])}function Im(t,e,n){if(e.length!==t.length)return!1;for(let s=0;s<e.length;++s)if(!Ff(t[s],e[s],n))return!1;return!0}function Om(t,e){if(e.length>t.length)return!1;const n=t.slice(),s=e.slice();for(const o of s){let l=n.shift();for(;l&&!Ff(l,o,!1);)l=n.shift();if(!l)return!1}return!0}function Oy(t,e,n,s){const o=[],l=(c,u)=>{if(Ff(c,e,s)){const d=typeof c=="string"?u:c;return d&&o.push(d),!n}if(typeof c=="string")return!1;for(const d of c.children||[])if(l(d,c))return!0;return!1};return l(t,null),o}function ef(t,e){const n=[],s=(e==null?void 0:e.mode)==="regex"?xk:()=>!0,o=(e==null?void 0:e.mode)==="regex"?wk:u=>u,l=(u,d,h)=>{if(typeof u=="string"){if(d&&!s(d,u))return;const w=Tu(o(u));w&&n.push(h+"- text: "+w);return}let y=u.role;if(u.name&&u.name.length<=900){const w=o(u.name);if(w){const S=w.startsWith("/")&&w.endsWith("/")?w:JSON.stringify(w);y+=" "+S}}if(u.checked==="mixed"&&(y+=" [checked=mixed]"),u.checked===!0&&(y+=" [checked]"),u.disabled&&(y+=" [disabled]"),u.expanded&&(y+=" [expanded]"),u.level&&(y+=` [level=${u.level}]`),u.pressed==="mixed"&&(y+=" [pressed=mixed]"),u.pressed===!0&&(y+=" [pressed]"),u.selected===!0&&(y+=" [selected]"),e!=null&&e.ref){const w=t.ids.get(u.element);w&&(y+=` [ref=s${t.generation}e${w}]`)}const v=h+"- "+dk(y),m=!!Object.keys(u.props).length;if(!u.children.length&&!m)n.push(v);else if(u.children.length===1&&typeof u.children[0]=="string"&&!m){const w=s(u,u.children[0])?o(u.children[0]):null;w?n.push(v+": "+Tu(w)):n.push(v)}else{n.push(v+":");for(const[w,S]of Object.entries(u.props))n.push(h+" - /"+w+": "+Tu(S));for(const w of u.children||[])l(w,u,h+" ")}},c=t.root;if(c.role==="fragment")for(const u of c.children||[])l(u,c,"");else l(c,null,"");return n.join(`
115
- `)}function wk(t){const e=[{regex:/\b[\d,.]+[bkmBKM]+\b/,replacement:"[\\d,.]+[bkmBKM]+"},{regex:/\b\d+[hmsp]+\b/,replacement:"\\d+[hmsp]+"},{regex:/\b[\d,.]+[hmsp]+\b/,replacement:"[\\d,.]+[hmsp]+"},{regex:/\b\d+,\d+\b/,replacement:"\\d+,\\d+"},{regex:/\b\d+\.\d{2,}\b/,replacement:"\\d+\\.\\d+"},{regex:/\b\d{2,}\.\d+\b/,replacement:"\\d+\\.\\d+"},{regex:/\b\d{2,}\b/,replacement:"\\d+"}];let n="",s=0;const o=new RegExp(e.map(l=>"("+l.regex.source+")").join("|"),"g");return t.replace(o,(l,...c)=>{const u=c[c.length-2],d=c.slice(0,-2);n+=Wl(t.slice(s,u));for(let h=0;h<d.length;h++)if(d[h]){const{replacement:y}=e[h];n+=y;break}return s=u+l.length,l}),n?(n+=Wl(t.slice(s)),String(new RegExp(n))):t}function xk(t,e){if(!e.length)return!1;if(!t.name)return!0;if(t.name.length>e.length)return!1;const n=e.length<=200&&t.name.length<=200?t1(e,t.name):"";let s=e;for(;n&&s.includes(n);)s=s.replace(n,"");return s.trim().length/e.length>.1}const Mm=":host{font-size:13px;font-family:system-ui,Ubuntu,Droid Sans,sans-serif;color:#333}svg{position:absolute;height:0}x-pw-tooltip{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background-color:#fff;border-radius:6px;box-shadow:0 .5rem 1.2rem #0000004d;display:none;font-size:12.8px;font-weight:400;left:0;line-height:1.5;max-width:600px;position:absolute;top:0;padding:0;flex-direction:column;overflow:hidden}x-pw-tooltip-line{display:flex;max-width:600px;padding:6px;-webkit-user-select:none;user-select:none;cursor:pointer}x-pw-tooltip-line.selectable:hover{background-color:#f2f2f2;overflow:hidden}x-pw-tooltip-footer{display:flex;max-width:600px;padding:6px;-webkit-user-select:none;user-select:none;color:#777}x-pw-dialog{background-color:#fff;pointer-events:auto;border-radius:6px;box-shadow:0 .5rem 1.2rem #0000004d;display:flex;flex-direction:column;position:absolute;width:400px;height:150px;z-index:10;font-size:13px}x-pw-dialog-body{display:flex;flex-direction:column;flex:auto}x-pw-dialog-body label{margin:5px 8px;display:flex;flex-direction:row;align-items:center}x-pw-highlight{position:absolute;top:0;left:0;width:0;height:0}x-pw-action-point{position:absolute;width:20px;height:20px;background:red;border-radius:10px;margin:-10px 0 0 -10px;z-index:2}x-pw-separator{height:1px;margin:6px 9px;background:#949494e5}x-pw-tool-gripper{height:28px;width:24px;margin:2px 0;cursor:grab}x-pw-tool-gripper:active{cursor:grabbing}x-pw-tool-gripper>x-div{width:16px;height:16px;margin:6px 4px;clip-path:url(#icon-gripper);background-color:#555}x-pw-tools-list>label{display:flex;align-items:center;margin:0 10px;-webkit-user-select:none;user-select:none}x-pw-tools-list{display:flex;width:100%;border-bottom:1px solid #dddddd}x-pw-tool-item{pointer-events:auto;height:28px;width:28px;border-radius:3px}x-pw-tool-item:not(.disabled){cursor:pointer}x-pw-tool-item:not(.disabled):hover{background-color:#dbdbdb}x-pw-tool-item.toggled{background-color:#8acae480}x-pw-tool-item.toggled:not(.disabled):hover{background-color:#8acae4c4}x-pw-tool-item>x-div{width:16px;height:16px;margin:6px;background-color:#3a3a3a}x-pw-tool-item.disabled>x-div{background-color:#61616180;cursor:default}x-pw-tool-item.record.toggled{background-color:transparent}x-pw-tool-item.record.toggled:not(.disabled):hover{background-color:#dbdbdb}x-pw-tool-item.record.toggled>x-div{background-color:#a1260d}x-pw-tool-item.record.disabled.toggled>x-div{opacity:.8}x-pw-tool-item.accept>x-div{background-color:#388a34}x-pw-tool-item.record>x-div{clip-path:url(#icon-circle-large-filled)}x-pw-tool-item.pick-locator>x-div{clip-path:url(#icon-inspect)}x-pw-tool-item.text>x-div{clip-path:url(#icon-whole-word)}x-pw-tool-item.visibility>x-div{clip-path:url(#icon-eye)}x-pw-tool-item.value>x-div{clip-path:url(#icon-symbol-constant)}x-pw-tool-item.snapshot>x-div{clip-path:url(#icon-gist)}x-pw-tool-item.accept>x-div{clip-path:url(#icon-check)}x-pw-tool-item.cancel>x-div{clip-path:url(#icon-close)}x-pw-tool-item.succeeded>x-div{clip-path:url(#icon-pass);background-color:#388a34!important}x-pw-overlay{position:absolute;top:0;max-width:min-content;z-index:2147483647;background:transparent;pointer-events:auto}x-pw-overlay x-pw-tools-list{background-color:#fffd;box-shadow:#0000001a 0 5px 5px;border-radius:3px;border-bottom:none}x-pw-overlay x-pw-tool-item{margin:2px}textarea.text-editor{font-family:system-ui,Ubuntu,Droid Sans,sans-serif;flex:auto;border:none;margin:6px 10px;color:#333;outline:1px solid transparent!important;resize:none;padding:0;font-size:13px}textarea.text-editor.does-not-match{outline:1px solid red!important}x-div{display:block}x-spacer{flex:auto}*{box-sizing:border-box}*[hidden]{display:none!important}x-locator-editor{flex:none;width:100%;height:60px;padding:4px;border-bottom:1px solid #dddddd;outline:1px solid transparent}x-locator-editor.does-not-match{outline:1px solid red}.CodeMirror{width:100%!important;height:100%!important}";class Nu{constructor(e){this._renderedEntries=[],this._language="javascript",this._injectedScript=e;const n=e.document;this._isUnderTest=e.isUnderTest,this._glassPaneElement=n.createElement("x-pw-glass"),this._glassPaneElement.style.position="fixed",this._glassPaneElement.style.top="0",this._glassPaneElement.style.right="0",this._glassPaneElement.style.bottom="0",this._glassPaneElement.style.left="0",this._glassPaneElement.style.zIndex="2147483646",this._glassPaneElement.style.pointerEvents="none",this._glassPaneElement.style.display="flex",this._glassPaneElement.style.backgroundColor="transparent";for(const s of["click","auxclick","dragstart","input","keydown","keyup","pointerdown","pointerup","mousedown","mouseup","mouseleave","focus","scroll"])this._glassPaneElement.addEventListener(s,o=>{o.stopPropagation(),o.stopImmediatePropagation()});if(this._actionPointElement=n.createElement("x-pw-action-point"),this._actionPointElement.setAttribute("hidden","true"),this._glassPaneShadow=this._glassPaneElement.attachShadow({mode:this._isUnderTest?"open":"closed"}),typeof this._glassPaneShadow.adoptedStyleSheets.push=="function"){const s=new this._injectedScript.window.CSSStyleSheet;s.replaceSync(Mm),this._glassPaneShadow.adoptedStyleSheets.push(s)}else{const s=this._injectedScript.document.createElement("style");s.textContent=Mm,this._glassPaneShadow.appendChild(s)}this._glassPaneShadow.appendChild(this._actionPointElement)}install(){this._injectedScript.document.documentElement&&!this._injectedScript.document.documentElement.contains(this._glassPaneElement)&&this._injectedScript.document.documentElement.appendChild(this._glassPaneElement)}setLanguage(e){this._language=e}runHighlightOnRaf(e){this._rafRequest&&nm(this._rafRequest);const n=this._injectedScript.querySelectorAll(e,this._injectedScript.document.documentElement),s=or(this._language,jn(e)),o=n.length>1?"#f6b26b7f":"#6fa8dc7f";this.updateHighlight(n.map((l,c)=>{const u=n.length>1?` [${c+1} of ${n.length}]`:"";return{element:l,color:o,tooltipText:s+u}})),this._rafRequest=Cl(()=>this.runHighlightOnRaf(e))}uninstall(){this._rafRequest&&nm(this._rafRequest),this._glassPaneElement.remove()}showActionPoint(e,n){this._actionPointElement.style.top=n+"px",this._actionPointElement.style.left=e+"px",this._actionPointElement.hidden=!1}hideActionPoint(){this._actionPointElement.hidden=!0}clearHighlight(){var e,n;for(const s of this._renderedEntries)(e=s.highlightElement)==null||e.remove(),(n=s.tooltipElement)==null||n.remove();this._renderedEntries=[]}maskElements(e,n){this.updateHighlight(e.map(s=>({element:s,color:n})))}updateHighlight(e){if(!this._highlightIsUpToDate(e)){this.clearHighlight();for(const n of e){const s=this._createHighlightElement();this._glassPaneShadow.appendChild(s);let o;if(n.tooltipText){o=this._injectedScript.document.createElement("x-pw-tooltip"),this._glassPaneShadow.appendChild(o),o.style.top="0",o.style.left="0",o.style.display="flex";const l=this._injectedScript.document.createElement("x-pw-tooltip-line");l.textContent=n.tooltipText,o.appendChild(l)}this._renderedEntries.push({targetElement:n.element,color:n.color,tooltipElement:o,highlightElement:s})}for(const n of this._renderedEntries){if(n.box=n.targetElement.getBoundingClientRect(),!n.tooltipElement)continue;const{anchorLeft:s,anchorTop:o}=this.tooltipPosition(n.box,n.tooltipElement);n.tooltipTop=o,n.tooltipLeft=s}for(const n of this._renderedEntries){n.tooltipElement&&(n.tooltipElement.style.top=n.tooltipTop+"px",n.tooltipElement.style.left=n.tooltipLeft+"px");const s=n.box;n.highlightElement.style.backgroundColor=n.color,n.highlightElement.style.left=s.x+"px",n.highlightElement.style.top=s.y+"px",n.highlightElement.style.width=s.width+"px",n.highlightElement.style.height=s.height+"px",n.highlightElement.style.display="block",this._isUnderTest&&console.error("Highlight box for test: "+JSON.stringify({x:s.x,y:s.y,width:s.width,height:s.height}))}}}firstBox(){var e;return(e=this._renderedEntries[0])==null?void 0:e.box}tooltipPosition(e,n){const s=n.offsetWidth,o=n.offsetHeight,l=this._glassPaneElement.offsetWidth,c=this._glassPaneElement.offsetHeight;let u=e.left;u+s>l-5&&(u=l-s-5);let d=e.bottom+5;return d+o>c-5&&(e.top>o+5?d=e.top-o-5:d=c-5-o),{anchorLeft:u,anchorTop:d}}_highlightIsUpToDate(e){if(e.length!==this._renderedEntries.length)return!1;for(let n=0;n<this._renderedEntries.length;++n){if(e[n].element!==this._renderedEntries[n].targetElement||e[n].color!==this._renderedEntries[n].color)return!1;const s=this._renderedEntries[n].box;if(!s)return!1;const o=e[n].element.getBoundingClientRect();if(o.top!==s.top||o.right!==s.right||o.bottom!==s.bottom||o.left!==s.left)return!1}return!0}_createHighlightElement(){return this._injectedScript.document.createElement("x-pw-highlight")}appendChild(e){this._glassPaneShadow.appendChild(e)}}function Sk(t,e,n){const s=t.left-e.right;if(!(s<0||n!==void 0&&s>n))return s+Math.max(e.bottom-t.bottom,0)+Math.max(t.top-e.top,0)}function _k(t,e,n){const s=e.left-t.right;if(!(s<0||n!==void 0&&s>n))return s+Math.max(e.bottom-t.bottom,0)+Math.max(t.top-e.top,0)}function kk(t,e,n){const s=e.top-t.bottom;if(!(s<0||n!==void 0&&s>n))return s+Math.max(t.left-e.left,0)+Math.max(e.right-t.right,0)}function bk(t,e,n){const s=t.top-e.bottom;if(!(s<0||n!==void 0&&s>n))return s+Math.max(t.left-e.left,0)+Math.max(e.right-t.right,0)}function Ek(t,e,n){const s=n===void 0?50:n;let o=0;return t.left-e.right>=0&&(o+=t.left-e.right),e.left-t.right>=0&&(o+=e.left-t.right),e.top-t.bottom>=0&&(o+=e.top-t.bottom),t.top-e.bottom>=0&&(o+=t.top-e.bottom),o>s?void 0:o}const Tk=["left-of","right-of","above","below","near"];function My(t,e,n,s){const o=e.getBoundingClientRect(),l={"left-of":_k,"right-of":Sk,above:kk,below:bk,near:Ek}[t];let c;for(const u of n){if(u===e)continue;const d=l(o,u.getBoundingClientRect(),s);d!==void 0&&(c===void 0||d<c)&&(c=d)}return c}function $y(t,e){for(const n of e.jsonPath)t!=null&&(t=t[n]);return Py(t,e)}function Py(t,e){const n=typeof t=="string"&&!e.caseSensitive?t.toUpperCase():t,s=typeof e.value=="string"&&!e.caseSensitive?e.value.toUpperCase():e.value;return e.op==="<truthy>"?!!n:e.op==="="?s instanceof RegExp?typeof n=="string"&&!!n.match(s):n===s:typeof n!="string"||typeof s!="string"?!1:e.op==="*="?n.includes(s):e.op==="^="?n.startsWith(s):e.op==="$="?n.endsWith(s):e.op==="|="?n===s||n.startsWith(s+"-"):e.op==="~="?n.split(" ").includes(s):!1}function zf(t){const e=t.ownerDocument;return t.nodeName==="SCRIPT"||t.nodeName==="NOSCRIPT"||t.nodeName==="STYLE"||e.head&&e.head.contains(t)}function Lt(t,e){let n=t.get(e);if(n===void 0){if(n={full:"",normalized:"",immediate:[]},!zf(e)){let s="";if(e instanceof HTMLInputElement&&(e.type==="submit"||e.type==="button"))n={full:e.value,normalized:vt(e.value),immediate:[e.value]};else{for(let o=e.firstChild;o;o=o.nextSibling)if(o.nodeType===Node.TEXT_NODE)n.full+=o.nodeValue||"",s+=o.nodeValue||"";else{if(o.nodeType===Node.COMMENT_NODE)continue;s&&n.immediate.push(s),s="",o.nodeType===Node.ELEMENT_NODE&&(n.full+=Lt(t,o).full)}s&&n.immediate.push(s),e.shadowRoot&&(n.full+=Lt(t,e.shadowRoot).full),n.full&&(n.normalized=vt(n.full))}}t.set(e,n)}return n}function ca(t,e,n){if(zf(e)||!n(Lt(t,e)))return"none";for(let s=e.firstChild;s;s=s.nextSibling)if(s.nodeType===Node.ELEMENT_NODE&&n(Lt(t,s)))return"selfAndChildren";return e.shadowRoot&&n(Lt(t,e.shadowRoot))?"selfAndChildren":"self"}function Ry(t,e){const n=_y(e);if(n)return n.map(l=>Lt(t,l));const s=e.getAttribute("aria-label");if(s!==null&&s.trim())return[{full:s,normalized:vt(s),immediate:[s]}];const o=e.nodeName==="INPUT"&&e.type!=="hidden";if(["BUTTON","METER","OUTPUT","PROGRESS","SELECT","TEXTAREA"].includes(e.nodeName)||o){const l=e.labels;if(l)return[...l].map(c=>Lt(t,c))}return[]}function $m(t){return t.displayName||t.name||"Anonymous"}function Nk(t){if(t.type)switch(typeof t.type){case"function":return $m(t.type);case"string":return t.type;case"object":return t.type.displayName||(t.type.render?$m(t.type.render):"")}if(t._currentElement){const e=t._currentElement.type;if(typeof e=="string")return e;if(typeof e=="function")return e.displayName||e.name||"Anonymous"}return""}function Ck(t){var e;return t.key??((e=t._currentElement)==null?void 0:e.key)}function Ak(t){if(t.child){const n=[];for(let s=t.child;s;s=s.sibling)n.push(s);return n}if(!t._currentElement)return[];const e=n=>{var o;const s=(o=n._currentElement)==null?void 0:o.type;return typeof s=="function"||typeof s=="string"};if(t._renderedComponent){const n=t._renderedComponent;return e(n)?[n]:[]}return t._renderedChildren?[...Object.values(t._renderedChildren)].filter(e):[]}function Lk(t){var s;const e=t.memoizedProps||((s=t._currentElement)==null?void 0:s.props);if(!e||typeof e=="string")return e;const n={...e};return delete n.children,n}function Dy(t){var s;const e={key:Ck(t),name:Nk(t),children:Ak(t).map(Dy),rootElements:[],props:Lk(t)},n=t.stateNode||t._hostNode||((s=t._renderedComponent)==null?void 0:s._hostNode);if(n instanceof Element)e.rootElements.push(n);else for(const o of e.children)e.rootElements.push(...o.rootElements);return e}function Fy(t,e,n=[]){e(t)&&n.push(t);for(const s of t.children)Fy(s,e,n);return n}function zy(t,e=[]){const s=(t.ownerDocument||t).createTreeWalker(t,NodeFilter.SHOW_ELEMENT);do{const o=s.currentNode,l=o,c=Object.keys(l).find(d=>d.startsWith("__reactContainer")&&l[d]!==null);if(c)e.push(l[c].stateNode.current);else{const d="_reactRootContainer";l.hasOwnProperty(d)&&l[d]!==null&&e.push(l[d]._internalRoot.current)}if(o instanceof Element&&o.hasAttribute("data-reactroot"))for(const d of Object.keys(o))(d.startsWith("__reactInternalInstance")||d.startsWith("__reactFiber"))&&e.push(o[d]);const u=o instanceof Element?o.shadowRoot:null;u&&zy(u,e)}while(s.nextNode());return e}const jk=()=>({queryAll(t,e){const{name:n,attributes:s}=Ir(e,!1),c=zy(t.ownerDocument||t).map(d=>Dy(d)).map(d=>Fy(d,h=>{const y=h.props??{};if(h.key!==void 0&&(y.key=h.key),n&&h.name!==n||h.rootElements.some(v=>!aa(t,v)))return!1;for(const v of s)if(!$y(y,v))return!1;return!0})).flat(),u=new ke;for(const d of c)for(const h of d.rootElements)u.add(h);return[...u]}}),By=["selected","checked","pressed","expanded","level","disabled","name","include-hidden"];By.sort();function Ri(t,e,n){if(!e.includes(n))throw new Error(`"${t}" attribute is only supported for roles: ${e.slice().sort().map(s=>`"${s}"`).join(", ")}`)}function ds(t,e){if(t.op!=="<truthy>"&&!e.includes(t.value))throw new Error(`"${t.name}" must be one of ${e.map(n=>JSON.stringify(n)).join(", ")}`)}function hs(t,e){if(!e.includes(t.op))throw new Error(`"${t.name}" does not support "${t.op}" matcher`)}function Ik(t,e){const n={role:e};for(const s of t)switch(s.name){case"checked":{Ri(s.name,bf,e),ds(s,[!0,!1,"mixed"]),hs(s,["<truthy>","="]),n.checked=s.op==="<truthy>"?!0:s.value;break}case"pressed":{Ri(s.name,Tf,e),ds(s,[!0,!1,"mixed"]),hs(s,["<truthy>","="]),n.pressed=s.op==="<truthy>"?!0:s.value;break}case"selected":{Ri(s.name,kf,e),ds(s,[!0,!1]),hs(s,["<truthy>","="]),n.selected=s.op==="<truthy>"?!0:s.value;break}case"expanded":{Ri(s.name,Nf,e),ds(s,[!0,!1]),hs(s,["<truthy>","="]),n.expanded=s.op==="<truthy>"?!0:s.value;break}case"level":{if(Ri(s.name,Cf,e),typeof s.value=="string"&&(s.value=+s.value),s.op!=="="||typeof s.value!="number"||Number.isNaN(s.value))throw new Error('"level" attribute must be compared to a number');n.level=s.value;break}case"disabled":{ds(s,[!0,!1]),hs(s,["<truthy>","="]),n.disabled=s.op==="<truthy>"?!0:s.value;break}case"name":{if(s.op==="<truthy>")throw new Error('"name" attribute must have a value');if(typeof s.value!="string"&&!(s.value instanceof RegExp))throw new Error('"name" attribute must be a string or a regular expression');n.name=s.value,n.nameOp=s.op,n.exact=s.caseSensitive;break}case"include-hidden":{ds(s,[!0,!1]),hs(s,["<truthy>","="]),n.includeHidden=s.op==="<truthy>"?!0:s.value;break}default:throw new Error(`Unknown attribute "${s.name}", must be one of ${By.map(o=>`"${o}"`).join(", ")}.`)}return n}function Ok(t,e,n){const s=[],o=c=>{if(et(c)===e.role&&!(e.selected!==void 0&&ky(c)!==e.selected)&&!(e.checked!==void 0&&by(c)!==e.checked)&&!(e.pressed!==void 0&&Ey(c)!==e.pressed)&&!(e.expanded!==void 0&&Ty(c)!==e.expanded)&&!(e.level!==void 0&&Ny(c)!==e.level)&&!(e.disabled!==void 0&&Jl(c)!==e.disabled)&&!(!e.includeHidden&&Wt(c))){if(e.name!==void 0){const u=vt(Xi(c,!!e.includeHidden));if(typeof e.name=="string"&&(e.name=vt(e.name)),n&&!e.exact&&e.nameOp==="="&&(e.nameOp="*="),!Py(u,{op:e.nameOp||"=",value:e.name,caseSensitive:!!e.exact}))return}s.push(c)}},l=c=>{const u=[];c.shadowRoot&&u.push(c.shadowRoot);for(const d of c.querySelectorAll("*"))o(d),d.shadowRoot&&u.push(d.shadowRoot);u.forEach(l)};return l(t),s}function Pm(t){return{queryAll:(e,n)=>{const s=Ir(n,!0),o=s.name.toLowerCase();if(!o)throw new Error("Role must not be empty");const l=Ik(s.attributes,o);$f();try{return Ok(e,l,t)}finally{Pf()}}}}class Mk{constructor(){this._retainCacheCounter=0,this._cacheText=new be,this._cacheQueryCSS=new be,this._cacheMatches=new be,this._cacheQuery=new be,this._cacheMatchesSimple=new be,this._cacheMatchesParents=new be,this._cacheCallMatches=new be,this._cacheCallQuery=new be,this._cacheQuerySimple=new be,this._engines=new be,this._engines.set("not",Rk),this._engines.set("is",qi),this._engines.set("where",qi),this._engines.set("has",$k),this._engines.set("scope",Pk),this._engines.set("light",Dk),this._engines.set("visible",Fk),this._engines.set("text",zk),this._engines.set("text-is",Bk),this._engines.set("text-matches",Uk),this._engines.set("has-text",qk),this._engines.set("right-of",Di("right-of")),this._engines.set("left-of",Di("left-of")),this._engines.set("above",Di("above")),this._engines.set("below",Di("below")),this._engines.set("near",Di("near")),this._engines.set("nth-match",Hk);const e=[...this._engines.keys()];e.sort();const n=[...Ig];if(n.sort(),e.join("|")!==n.join("|"))throw new Error(`Please keep customCSSNames in sync with evaluator engines: ${e.join("|")} vs ${n.join("|")}`)}begin(){++this._retainCacheCounter}end(){--this._retainCacheCounter,this._retainCacheCounter||(this._cacheQueryCSS.clear(),this._cacheMatches.clear(),this._cacheQuery.clear(),this._cacheMatchesSimple.clear(),this._cacheMatchesParents.clear(),this._cacheCallMatches.clear(),this._cacheCallQuery.clear(),this._cacheQuerySimple.clear(),this._cacheText.clear())}_cached(e,n,s,o){e.has(n)||e.set(n,[]);const l=e.get(n),c=l.find(d=>s.every((h,y)=>d.rest[y]===h));if(c)return c.result;const u=o();return l.push({rest:s,result:u}),u}_checkSelector(e){if(!(typeof e=="object"&&e&&(Array.isArray(e)||"simples"in e&&e.simples.length)))throw new Error(`Malformed selector "${e}"`);return e}matches(e,n,s){const o=this._checkSelector(n);this.begin();try{return this._cached(this._cacheMatches,e,[o,s.scope,s.pierceShadow,s.originalScope],()=>Array.isArray(o)?this._matchesEngine(qi,e,o,s):(this._hasScopeClause(o)&&(s=this._expandContextForScopeMatching(s)),this._matchesSimple(e,o.simples[o.simples.length-1].selector,s)?this._matchesParents(e,o,o.simples.length-2,s):!1))}finally{this.end()}}query(e,n){const s=this._checkSelector(n);this.begin();try{return this._cached(this._cacheQuery,s,[e.scope,e.pierceShadow,e.originalScope],()=>{if(Array.isArray(s))return this._queryEngine(qi,e,s);this._hasScopeClause(s)&&(e=this._expandContextForScopeMatching(e));const o=this._scoreMap;this._scoreMap=new be;let l=this._querySimple(e,s.simples[s.simples.length-1].selector);return l=l.filter(c=>this._matchesParents(c,s,s.simples.length-2,e)),this._scoreMap.size&&l.sort((c,u)=>{const d=this._scoreMap.get(c),h=this._scoreMap.get(u);return d===h?0:d===void 0?1:h===void 0?-1:d-h}),this._scoreMap=o,l})}finally{this.end()}}_markScore(e,n){this._scoreMap&&this._scoreMap.set(e,n)}_hasScopeClause(e){return e.simples.some(n=>n.selector.functions.some(s=>s.name==="scope"))}_expandContextForScopeMatching(e){if(e.scope.nodeType!==1)return e;const n=gt(e.scope);return n?{...e,scope:n,originalScope:e.originalScope||e.scope}:e}_matchesSimple(e,n,s){return this._cached(this._cacheMatchesSimple,e,[n,s.scope,s.pierceShadow,s.originalScope],()=>{if(e===s.scope||n.css&&!this._matchesCSS(e,n.css))return!1;for(const o of n.functions)if(!this._matchesEngine(this._getEngine(o.name),e,o.args,s))return!1;return!0})}_querySimple(e,n){return n.functions.length?this._cached(this._cacheQuerySimple,n,[e.scope,e.pierceShadow,e.originalScope],()=>{let s=n.css;const o=n.functions;s==="*"&&o.length&&(s=void 0);let l,c=-1;s!==void 0?l=this._queryCSS(e,s):(c=o.findIndex(u=>this._getEngine(u.name).query!==void 0),c===-1&&(c=0),l=this._queryEngine(this._getEngine(o[c].name),e,o[c].args));for(let u=0;u<o.length;u++){if(u===c)continue;const d=this._getEngine(o[u].name);d.matches!==void 0&&(l=l.filter(h=>this._matchesEngine(d,h,o[u].args,e)))}for(let u=0;u<o.length;u++){if(u===c)continue;const d=this._getEngine(o[u].name);d.matches===void 0&&(l=l.filter(h=>this._matchesEngine(d,h,o[u].args,e)))}return l}):this._queryCSS(e,n.css||"*")}_matchesParents(e,n,s,o){return s<0?!0:this._cached(this._cacheMatchesParents,e,[n,s,o.scope,o.pierceShadow,o.originalScope],()=>{const{selector:l,combinator:c}=n.simples[s];if(c===">"){const u=yl(e,o);return!u||!this._matchesSimple(u,l,o)?!1:this._matchesParents(u,n,s-1,o)}if(c==="+"){const u=Cu(e,o);return!u||!this._matchesSimple(u,l,o)?!1:this._matchesParents(u,n,s-1,o)}if(c===""){let u=yl(e,o);for(;u;){if(this._matchesSimple(u,l,o)){if(this._matchesParents(u,n,s-1,o))return!0;if(n.simples[s-1].combinator==="")break}u=yl(u,o)}return!1}if(c==="~"){let u=Cu(e,o);for(;u;){if(this._matchesSimple(u,l,o)){if(this._matchesParents(u,n,s-1,o))return!0;if(n.simples[s-1].combinator==="~")break}u=Cu(u,o)}return!1}if(c===">="){let u=e;for(;u;){if(this._matchesSimple(u,l,o)){if(this._matchesParents(u,n,s-1,o))return!0;if(n.simples[s-1].combinator==="")break}u=yl(u,o)}return!1}throw new Error(`Unsupported combinator "${c}"`)})}_matchesEngine(e,n,s,o){if(e.matches)return this._callMatches(e,n,s,o);if(e.query)return this._callQuery(e,s,o).includes(n);throw new Error('Selector engine should implement "matches" or "query"')}_queryEngine(e,n,s){if(e.query)return this._callQuery(e,s,n);if(e.matches)return this._queryCSS(n,"*").filter(o=>this._callMatches(e,o,s,n));throw new Error('Selector engine should implement "matches" or "query"')}_callMatches(e,n,s,o){return this._cached(this._cacheCallMatches,n,[e,o.scope,o.pierceShadow,o.originalScope,...s],()=>e.matches(n,s,o,this))}_callQuery(e,n,s){return this._cached(this._cacheCallQuery,e,[s.scope,s.pierceShadow,s.originalScope,...n],()=>e.query(s,n,this))}_matchesCSS(e,n){return e.matches(n)}_queryCSS(e,n){return this._cached(this._cacheQueryCSS,n,[e.scope,e.pierceShadow,e.originalScope],()=>{let s=[];function o(l){if(s=s.concat([...l.querySelectorAll(n)]),!!e.pierceShadow){l.shadowRoot&&o(l.shadowRoot);for(const c of l.querySelectorAll("*"))c.shadowRoot&&o(c.shadowRoot)}}return o(e.scope),s})}_getEngine(e){const n=this._engines.get(e);if(!n)throw new Error(`Unknown selector engine "${e}"`);return n}}const qi={matches(t,e,n,s){if(e.length===0)throw new Error('"is" engine expects non-empty selector list');return e.some(o=>s.matches(t,o,n))},query(t,e,n){if(e.length===0)throw new Error('"is" engine expects non-empty selector list');let s=[];for(const o of e)s=s.concat(n.query(t,o));return e.length===1?s:Uy(s)}},$k={matches(t,e,n,s){if(e.length===0)throw new Error('"has" engine expects non-empty selector list');return s.query({...n,scope:t},e).length>0}},Pk={matches(t,e,n,s){if(e.length!==0)throw new Error('"scope" engine expects no arguments');const o=n.originalScope||n.scope;return o.nodeType===9?t===o.documentElement:t===o},query(t,e,n){if(e.length!==0)throw new Error('"scope" engine expects no arguments');const s=t.originalScope||t.scope;if(s.nodeType===9){const o=s.documentElement;return o?[o]:[]}return s.nodeType===1?[s]:[]}},Rk={matches(t,e,n,s){if(e.length===0)throw new Error('"not" engine expects non-empty selector list');return!s.matches(t,e,n)}},Dk={query(t,e,n){return n.query({...t,pierceShadow:!1},e)},matches(t,e,n,s){return s.matches(t,e,{...n,pierceShadow:!1})}},Fk={matches(t,e,n,s){if(e.length)throw new Error('"visible" engine expects no arguments');return Ts(t)}},zk={matches(t,e,n,s){if(e.length!==1||typeof e[0]!="string")throw new Error('"text" engine expects a single string');const o=vt(e[0]).toLowerCase(),l=c=>c.normalized.toLowerCase().includes(o);return ca(s._cacheText,t,l)==="self"}},Bk={matches(t,e,n,s){if(e.length!==1||typeof e[0]!="string")throw new Error('"text-is" engine expects a single string');const o=vt(e[0]),l=c=>!o&&!c.immediate.length?!0:c.immediate.some(u=>vt(u)===o);return ca(s._cacheText,t,l)!=="none"}},Uk={matches(t,e,n,s){if(e.length===0||typeof e[0]!="string"||e.length>2||e.length===2&&typeof e[1]!="string")throw new Error('"text-matches" engine expects a regexp body and optional regexp flags');const o=new RegExp(e[0],e.length===2?e[1]:void 0),l=c=>o.test(c.full);return ca(s._cacheText,t,l)==="self"}},qk={matches(t,e,n,s){if(e.length!==1||typeof e[0]!="string")throw new Error('"has-text" engine expects a single string');if(zf(t))return!1;const o=vt(e[0]).toLowerCase();return(c=>c.normalized.toLowerCase().includes(o))(Lt(s._cacheText,t))}};function Di(t){return{matches(e,n,s,o){const l=n.length&&typeof n[n.length-1]=="number"?n[n.length-1]:void 0,c=l===void 0?n:n.slice(0,n.length-1);if(n.length<1+(l===void 0?0:1))throw new Error(`"${t}" engine expects a selector list and optional maximum distance in pixels`);const u=o.query(s,c),d=My(t,e,u,l);return d===void 0?!1:(o._markScore(e,d),!0)}}}const Hk={query(t,e,n){let s=e[e.length-1];if(e.length<2)throw new Error('"nth-match" engine expects non-empty selector list and an index argument');if(typeof s!="number"||s<1)throw new Error('"nth-match" engine expects a one-based index as the last argument');const o=qi.query(t,e.slice(0,e.length-1),n);return s--,s<o.length?[o[s]]:[]}};function yl(t,e){if(t!==e.scope)return e.pierceShadow?gt(t):t.parentElement||void 0}function Cu(t,e){if(t!==e.scope)return t.previousElementSibling||void 0}function Uy(t){const e=new be,n=[],s=[];function o(c){let u=e.get(c);if(u)return u;const d=gt(c);return d?o(d).children.push(c):n.push(c),u={children:[],taken:!1},e.set(c,u),u}for(const c of t)o(c).taken=!0;function l(c){const u=e.get(c);if(u.taken&&s.push(c),u.children.length>1){const d=new ke(u.children);u.children=[];let h=c.firstElementChild;for(;h&&u.children.length<d.size;)d.has(h)&&u.children.push(h),h=h.nextElementSibling;for(h=c.shadowRoot?c.shadowRoot.firstElementChild:null;h&&u.children.length<d.size;)d.has(h)&&u.children.push(h),h=h.nextElementSibling}u.children.forEach(l)}return n.forEach(l),s}const qy=10,Rs=qy/2,Rm=1,Vk=2,Wk=10,Kk=50,Hy=100,Vy=120,Wy=140,Ky=160,Rl=180,Qy=200,Dm=250,Qk=Vy+Rs,Gk=Wy+Rs,Xk=Hy+Rs,Jk=Ky+Rs,Yk=Rl+Rs,Zk=Qy+Rs,eb=300,tb=500,Gy=510,Au=520,Xy=530,Jy=1e4,nb=1e7,rb=1e3;function Fm(t,e,n){t._evaluator.begin();const s={allowText:new be,disallowText:new be};$f();try{let o=[];if(n.forTextExpect){let u=vl(t,e.ownerDocument.documentElement,n);for(let d=e;d;d=gt(d)){const h=ps(s,t,d,{...n,noText:!0});if(!h)continue;if(ir(h)<=rb){u=h;break}}o=[Dl(u)]}else{if(!e.matches("input,textarea,select")&&!e.isContentEditable){const u=Ui(e,"button,select,input,[role=button],[role=checkbox],[role=radio],a,[role=link]",n.root);u&&Ts(u)&&(e=u)}if(n.multiple){const u=ps(s,t,e,n),d=ps(s,t,e,{...n,noText:!0});let h=[u,d];if(s.allowText.clear(),s.disallowText.clear(),u&&Lu(u)&&h.push(ps(s,t,e,{...n,noCSSId:!0})),d&&Lu(d)&&h.push(ps(s,t,e,{...n,noText:!0,noCSSId:!0})),h=h.filter(Boolean),!h.length){const y=vl(t,e,n);h.push(y),Lu(y)&&h.push(vl(t,e,{...n,noCSSId:!0}))}o=[...new ke(h.map(y=>Dl(y)))]}else{const u=ps(s,t,e,n)||vl(t,e,n);o=[Dl(u)]}}const l=o[0],c=t.parseSelector(l);return{selector:l,selectors:o,elements:t.querySelectorAll(c,n.root??e.ownerDocument)}}finally{Pf(),t._evaluator.end()}}function zm(t){return t.filter(e=>e[0].selector[0]!=="/")}function ps(t,e,n,s){if(s.root&&!aa(s.root,n))throw new Error("Target element must belong to the root's subtree");if(n===s.root)return[{engine:"css",selector:":scope",score:1}];if(n.ownerDocument.documentElement===n)return[{engine:"css",selector:"html",score:1}];const o=(c,u)=>{const d=c===n;let h=u?ib(e,c,c===n):[];c!==n&&(h=zm(h));const y=sb(e,c,s).filter(w=>!s.omitInternalEngines||!w.engine.startsWith("internal:")).map(w=>[w]);let v=Bm(e,s.root??n.ownerDocument,c,[...h,...y],d);h=zm(h);const m=w=>{const S=u&&!w.length,_=[...w,...y].filter(T=>v?ir(T)<ir(v):!0);let b=_[0];if(b)for(let T=gt(c);T&&T!==s.root;T=gt(T)){const N=l(T,S);if(!N||v&&ir([...N,...b])>=ir(v))continue;if(b=Bm(e,T,c,_,d),!b)return;const O=[...N,...b];(!v||ir(O)<ir(v))&&(v=O)}};return m(h),c===n&&h.length&&m([]),v},l=(c,u)=>{const d=u?t.allowText:t.disallowText;let h=d.get(c);return h===void 0&&(h=o(c,u),d.set(c,h)),h};return o(n,!s.noText)}function sb(t,e,n){const s=[];{for(const c of["data-testid","data-test-id","data-test"])c!==n.testIdAttributeName&&e.getAttribute(c)&&s.push({engine:"css",selector:`[${c}=${Ii(e.getAttribute(c))}]`,score:Vk});if(!n.noCSSId){const c=e.getAttribute("id");c&&!ob(c)&&s.push({engine:"css",selector:Yy(c),score:tb})}s.push({engine:"css",selector:Kt(e.nodeName.toLowerCase()),score:Xy})}if(e.nodeName==="IFRAME"){for(const c of["name","title"])e.getAttribute(c)&&s.push({engine:"css",selector:`${Kt(e.nodeName.toLowerCase())}[${c}=${Ii(e.getAttribute(c))}]`,score:Wk});return e.getAttribute(n.testIdAttributeName)&&s.push({engine:"css",selector:`[${n.testIdAttributeName}=${Ii(e.getAttribute(n.testIdAttributeName))}]`,score:Rm}),tf([s]),s}if(e.getAttribute(n.testIdAttributeName)&&s.push({engine:"internal:testid",selector:`[${n.testIdAttributeName}=${mt(e.getAttribute(n.testIdAttributeName),!0)}]`,score:Rm}),e.nodeName==="INPUT"||e.nodeName==="TEXTAREA"){const c=e;if(c.placeholder){s.push({engine:"internal:attr",selector:`[placeholder=${mt(c.placeholder,!0)}]`,score:Qk});for(const u of Ss(c.placeholder))s.push({engine:"internal:attr",selector:`[placeholder=${mt(u.text,!1)}]`,score:Vy-u.scoreBonus})}}const o=Ry(t._evaluator._cacheText,e);for(const c of o){const u=c.normalized;s.push({engine:"internal:label",selector:Ct(u,!0),score:Gk});for(const d of Ss(u))s.push({engine:"internal:label",selector:Ct(d.text,!1),score:Wy-d.scoreBonus})}const l=et(e);return l&&!["none","presentation"].includes(l)&&s.push({engine:"internal:role",selector:l,score:Gy}),e.getAttribute("name")&&["BUTTON","FORM","FIELDSET","FRAME","IFRAME","INPUT","KEYGEN","OBJECT","OUTPUT","SELECT","TEXTAREA","MAP","META","PARAM"].includes(e.nodeName)&&s.push({engine:"css",selector:`${Kt(e.nodeName.toLowerCase())}[name=${Ii(e.getAttribute("name"))}]`,score:Au}),["INPUT","TEXTAREA"].includes(e.nodeName)&&e.getAttribute("type")!=="hidden"&&e.getAttribute("type")&&s.push({engine:"css",selector:`${Kt(e.nodeName.toLowerCase())}[type=${Ii(e.getAttribute("type"))}]`,score:Au}),["INPUT","TEXTAREA","SELECT"].includes(e.nodeName)&&e.getAttribute("type")!=="hidden"&&s.push({engine:"css",selector:Kt(e.nodeName.toLowerCase()),score:Au+1}),tf([s]),s}function ib(t,e,n){if(e.nodeName==="SELECT")return[];const s=[],o=e.getAttribute("title");if(o){s.push([{engine:"internal:attr",selector:`[title=${mt(o,!0)}]`,score:Zk}]);for(const h of Ss(o))s.push([{engine:"internal:attr",selector:`[title=${mt(h.text,!1)}]`,score:Qy-h.scoreBonus}])}const l=e.getAttribute("alt");if(l&&["APPLET","AREA","IMG","INPUT"].includes(e.nodeName)){s.push([{engine:"internal:attr",selector:`[alt=${mt(l,!0)}]`,score:Jk}]);for(const h of Ss(l))s.push([{engine:"internal:attr",selector:`[alt=${mt(h.text,!1)}]`,score:Ky-h.scoreBonus}])}const c=Lt(t._evaluator._cacheText,e).normalized,u=c?Ss(c):[];if(c){if(n){c.length<=80&&s.push([{engine:"internal:text",selector:Ct(c,!0),score:Yk}]);for(const y of u)s.push([{engine:"internal:text",selector:Ct(y.text,!1),score:Rl-y.scoreBonus}])}const h={engine:"css",selector:Kt(e.nodeName.toLowerCase()),score:Xy};for(const y of u)s.push([h,{engine:"internal:has-text",selector:Ct(y.text,!1),score:Rl-y.scoreBonus}]);if(c.length<=80){const y=new RegExp("^"+Wl(c)+"$");s.push([h,{engine:"internal:has-text",selector:Ct(y,!1),score:Dm}])}}const d=et(e);if(d&&!["none","presentation"].includes(d)){const h=Xi(e,!1);if(h){const y={engine:"internal:role",selector:`${d}[name=${mt(h,!0)}]`,score:Xk};s.push([y]);for(const v of Ss(h))s.push([{engine:"internal:role",selector:`${d}[name=${mt(v.text,!1)}]`,score:Hy-v.scoreBonus}])}else{const y={engine:"internal:role",selector:`${d}`,score:Gy};for(const v of u)s.push([y,{engine:"internal:has-text",selector:Ct(v.text,!1),score:Rl-v.scoreBonus}]);if(c.length<=80){const v=new RegExp("^"+Wl(c)+"$");s.push([y,{engine:"internal:has-text",selector:Ct(v,!1),score:Dm}])}}}return tf(s),s}function Yy(t){return/^[a-zA-Z][a-zA-Z0-9\-\_]+$/.test(t)?"#"+t:`[id="${Kt(t)}"]`}function Lu(t){return t.some(e=>e.engine==="css"&&(e.selector.startsWith("#")||e.selector.startsWith('[id="')))}function vl(t,e,n){const s=n.root??e.ownerDocument,o=[];function l(u){const d=o.slice();u&&d.unshift(u);const h=d.join(" > "),y=t.parseSelector(h);return t.querySelector(y,s,!1)===e?h:void 0}function c(u){const d={engine:"css",selector:u,score:nb},h=t.parseSelector(u),y=t.querySelectorAll(h,s);if(y.length===1)return[d];const v={engine:"nth",selector:String(y.indexOf(e)),score:Jy};return[d,v]}for(let u=e;u&&u!==s;u=gt(u)){const d=u.nodeName.toLowerCase();let h="";if(u.id&&!n.noCSSId){const m=Yy(u.id),w=l(m);if(w)return c(w);h=m}const y=u.parentNode,v=[...u.classList];for(let m=0;m<v.length;++m){const w="."+Kt(v.slice(0,m+1).join(".")),S=l(w);if(S)return c(S);!h&&y&&y.querySelectorAll(w).length===1&&(h=w)}if(y){const m=[...y.children],S=m.filter(b=>b.nodeName.toLowerCase()===d).indexOf(u)===0?Kt(d):`${Kt(d)}:nth-child(${1+m.indexOf(u)})`,_=l(S);if(_)return c(_);h||(h=S)}else h||(h=Kt(d));o.unshift(h)}return c(l())}function tf(t){for(const e of t)for(const n of e)n.score>Kk&&n.score<eb&&(n.score+=Math.min(qy,n.selector.length/10|0))}function Dl(t){const e=[];let n="";for(const{engine:s,selector:o}of t)e.length&&(n!=="css"||s!=="css"||o.startsWith(":nth-match("))&&e.push(">>"),n=s,s==="css"?e.push(o):e.push(`${s}=${o}`);return e.join(" ")}function ir(t){let e=0;for(let n=0;n<t.length;n++)e+=t[n].score*(t.length-n);return e}function Bm(t,e,n,s,o){const l=s.map(u=>({tokens:u,score:ir(u)}));l.sort((u,d)=>u.score-d.score);let c=null;for(const{tokens:u}of l){const d=t.parseSelector(Dl(u)),h=t.querySelectorAll(d,e);if(h[0]===n&&h.length===1)return u;const y=h.indexOf(n);if(!o||c||y===-1||h.length>5)continue;const v={engine:"nth",selector:String(y),score:Jy};c=[...u,v]}return c}function ob(t){let e,n=0;for(let s=0;s<t.length;++s){const o=t[s];let l;if(!(o==="-"||o==="_")){if(o>="a"&&o<="z"?l="lower":o>="A"&&o<="Z"?l="upper":o>="0"&&o<="9"?l="digit":l="other",l==="lower"&&e==="upper"){e=l;continue}e&&e!==l&&++n,e=l}}return n>=t.length/4}function wl(t,e){if(t.length<=e)return t;t=t.substring(0,e);const n=t.match(/^(.*)\b(.+?)$/);return n?n[1].trimEnd():""}function Ss(t){let e=[];{const n=t.match(/^([\d.,]+)[^.,\w]/),s=n?n[1].length:0;if(s){const o=wl(t.substring(s).trimStart(),80);e.push({text:o,scoreBonus:o.length<=30?2:1})}}{const n=t.match(/[^.,\w]([\d.,]+)$/),s=n?n[1].length:0;if(s){const o=wl(t.substring(0,t.length-s).trimEnd(),80);e.push({text:o,scoreBonus:o.length<=30?2:1})}}return t.length<=30?e.push({text:t,scoreBonus:0}):(e.push({text:wl(t,80),scoreBonus:0}),e.push({text:wl(t,30),scoreBonus:1})),e=e.filter(n=>n.text),e.length||e.push({text:t.substring(0,80),scoreBonus:0}),e}function Zy(t,e){const n=t.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/");let s=n.substring(n.lastIndexOf("/")+1);return s.endsWith(e)&&(s=s.substring(0,s.length-e.length)),s}function lb(t,e){return e?e.toUpperCase():""}const ab=/(?:^|[-_/])(\w)/g,ev=t=>t&&t.replace(ab,lb);function cb(t){function e(y){const v=y.name||y._componentTag||y.__playwright_guessedName;if(v)return v;const m=y.__file;if(m)return ev(Zy(m,".vue"))}function n(y,v){return y.type.__playwright_guessedName=v,v}function s(y){var m,w,S,_;const v=e(y.type||{});if(v)return v;if(y.root===y)return"Root";for(const b in(w=(m=y.parent)==null?void 0:m.type)==null?void 0:w.components)if(((S=y.parent)==null?void 0:S.type.components[b])===y.type)return n(y,b);for(const b in(_=y.appContext)==null?void 0:_.components)if(y.appContext.components[b]===y.type)return n(y,b);return"Anonymous Component"}function o(y){return y._isBeingDestroyed||y.isUnmounted}function l(y){return y.subTree.type.toString()==="Symbol(Fragment)"}function c(y){const v=[];return y.component&&v.push(y.component),y.suspense&&v.push(...c(y.suspense.activeBranch)),Array.isArray(y.children)&&y.children.forEach(m=>{m.component?v.push(m.component):v.push(...c(m))}),v.filter(m=>{var w;return!o(m)&&!((w=m.type.devtools)!=null&&w.hide)})}function u(y){return l(y)?d(y.subTree):[y.subTree.el]}function d(y){if(!y.children)return[];const v=[];for(let m=0,w=y.children.length;m<w;m++){const S=y.children[m];S.component?v.push(...u(S.component)):S.el&&v.push(S.el)}return v}function h(y){return{name:s(y),children:c(y.subTree).map(h),rootElements:u(y),props:y.props}}return h(t)}function ub(t){function e(l){const c=l.displayName||l.name||l._componentTag;if(c)return c;const u=l.__file;if(u)return ev(Zy(u,".vue"))}function n(l){const c=e(l.$options||l.fnOptions||{});return c||(l.$root===l?"Root":"Anonymous Component")}function s(l){return l.$children?l.$children:Array.isArray(l.subTree.children)?l.subTree.children.filter(c=>!!c.component).map(c=>c.component):[]}function o(l){return{name:n(l),children:s(l).map(o),rootElements:[l.$el],props:l._props}}return o(t)}function tv(t,e,n=[]){e(t)&&n.push(t);for(const s of t.children)tv(s,e,n);return n}function nv(t,e=[]){const s=(t.ownerDocument||t).createTreeWalker(t,NodeFilter.SHOW_ELEMENT),o=new ke;do{const l=s.currentNode;l.__vue__&&o.add(l.__vue__.$root),l.__vue_app__&&l._vnode&&l._vnode.component&&e.push({root:l._vnode.component,version:3});const c=l instanceof Element?l.shadowRoot:null;c&&nv(c,e)}while(s.nextNode());for(const l of o)e.push({version:2,root:l});return e}const fb=()=>({queryAll(t,e){const n=t.ownerDocument||t,{name:s,attributes:o}=Ir(e,!1),u=nv(n).map(h=>h.version===3?cb(h.root):ub(h.root)).map(h=>tv(h,y=>{if(s&&y.name!==s||y.rootElements.some(v=>!aa(t,v)))return!1;for(const v of o)if(!$y(y.props,v))return!1;return!0})).flat(),d=new ke;for(const h of u)for(const y of h.rootElements)d.add(y);return[...d]}}),Um={queryAll(t,e){if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let l=function(S){const _=[],b=T=>{var N;T.nodeType===Node.ELEMENT_NODE&&_.push(T),(N=T.childNodes)==null||N.forEach(b)};return(S.nodeType===Node.DOCUMENT_FRAGMENT_NODE||S.nodeType===Node.ELEMENT_NODE)&&b(S),_};console.log("Got CSR:",t);const c=[],u=new DOMParser,d=t.innerHTML,h=l(t),y=u.parseFromString(d,"text/html"),v=y.body,m=l(v),w=y.evaluate(e,y,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE);for(let S=w.iterateNext();S;S=w.iterateNext()){const _=m.indexOf(S)-1;if(_>=0){const b=h[_];b.nodeType===Node.ELEMENT_NODE&&c.push(b)}}return c}e.startsWith("/")&&t.nodeType!==Node.DOCUMENT_NODE&&(e="."+e);const n=[],s=t.ownerDocument||t;if(!s)return n;const o=s.evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE);for(let l=o.iterateNext();l;l=o.iterateNext())l.nodeType===Node.ELEMENT_NODE&&n.push(l);return n}};class rv{constructor(e,n,s,o,l,c,u,d){this._testIdAttributeNameForStrictErrorAndConsoleCodegen="data-testid",this.utils={asLocator:or,cacheNormalizedWhitespaces:Zx,elementText:Lt,getAriaRole:et,getElementAccessibleDescription:jm,getElementAccessibleName:Xi,isElementVisible:Ts,isInsideScope:aa,normalizeWhiteSpace:vt,parseAriaSnapshot:xf,builtins:Vu()},this.window=e,this.document=e.document,this.isUnderTest=n,this.utils.builtins=Vu(e),this._sdkLanguage=s,this._testIdAttributeNameForStrictErrorAndConsoleCodegen=o,this._evaluator=new Mk,this.onGlobalListenersRemoved=new ke,this._autoClosingTags=new ke(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","MENUITEM","META","PARAM","SOURCE","TRACK","WBR"]),this._booleanAttributes=new ke(["checked","selected","disabled","readonly","multiple"]),this._eventTypes=new be([["auxclick","mouse"],["click","mouse"],["dblclick","mouse"],["mousedown","mouse"],["mouseeenter","mouse"],["mouseleave","mouse"],["mousemove","mouse"],["mouseout","mouse"],["mouseover","mouse"],["mouseup","mouse"],["mouseleave","mouse"],["mousewheel","mouse"],["keydown","keyboard"],["keyup","keyboard"],["keypress","keyboard"],["textInput","keyboard"],["touchstart","touch"],["touchmove","touch"],["touchend","touch"],["touchcancel","touch"],["pointerover","pointer"],["pointerout","pointer"],["pointerenter","pointer"],["pointerleave","pointer"],["pointerdown","pointer"],["pointerup","pointer"],["pointermove","pointer"],["pointercancel","pointer"],["gotpointercapture","pointer"],["lostpointercapture","pointer"],["focus","focus"],["blur","focus"],["drag","drag"],["dragstart","drag"],["dragend","drag"],["dragover","drag"],["dragenter","drag"],["dragleave","drag"],["dragexit","drag"],["drop","drag"],["wheel","wheel"],["deviceorientation","deviceorientation"],["deviceorientationabsolute","deviceorientation"],["devicemotion","devicemotion"]]),this._hoverHitTargetInterceptorEvents=new ke(["mousemove"]),this._tapHitTargetInterceptorEvents=new ke(["pointerdown","pointerup","touchstart","touchend","touchcancel"]),this._mouseHitTargetInterceptorEvents=new ke(["mousedown","mouseup","pointerdown","pointerup","click","auxclick","dblclick","contextmenu"]),this._allHitTargetInterceptorEvents=new ke([...this._hoverHitTargetInterceptorEvents,...this._tapHitTargetInterceptorEvents,...this._mouseHitTargetInterceptorEvents]),this._engines=new be,this._engines.set("xpath",Um),this._engines.set("xpath:light",Um),this._engines.set("_react",jk()),this._engines.set("_vue",fb()),this._engines.set("role",Pm(!1)),this._engines.set("text",this._createTextEngine(!0,!1)),this._engines.set("text:light",this._createTextEngine(!1,!1)),this._engines.set("id",this._createAttributeEngine("id",!0)),this._engines.set("id:light",this._createAttributeEngine("id",!1)),this._engines.set("data-testid",this._createAttributeEngine("data-testid",!0)),this._engines.set("data-testid:light",this._createAttributeEngine("data-testid",!1)),this._engines.set("data-test-id",this._createAttributeEngine("data-test-id",!0)),this._engines.set("data-test-id:light",this._createAttributeEngine("data-test-id",!1)),this._engines.set("data-test",this._createAttributeEngine("data-test",!0)),this._engines.set("data-test:light",this._createAttributeEngine("data-test",!1)),this._engines.set("css",this._createCSSEngine()),this._engines.set("nth",{queryAll:()=>[]}),this._engines.set("visible",this._createVisibleEngine()),this._engines.set("internal:control",this._createControlEngine()),this._engines.set("internal:has",this._createHasEngine()),this._engines.set("internal:has-not",this._createHasNotEngine()),this._engines.set("internal:and",{queryAll:()=>[]}),this._engines.set("internal:or",{queryAll:()=>[]}),this._engines.set("internal:chain",this._createInternalChainEngine()),this._engines.set("internal:label",this._createInternalLabelEngine()),this._engines.set("internal:text",this._createTextEngine(!0,!0)),this._engines.set("internal:has-text",this._createInternalHasTextEngine()),this._engines.set("internal:has-not-text",this._createInternalHasNotTextEngine()),this._engines.set("internal:attr",this._createNamedAttributeEngine()),this._engines.set("internal:testid",this._createNamedAttributeEngine()),this._engines.set("internal:role",Pm(!0)),this._engines.set("aria-ref",this._createAriaIdEngine());for(const{name:h,engine:y}of d)this._engines.set(h,y);this._stableRafCount=l,this._browserName=c,K_({browserNameForWorkarounds:c,inputFileRoleTextbox:u}),this._setupGlobalListenersRemovalDetection(),this._setupHitTargetInterceptors(),n&&(this.window.__injectedScript=this)}eval(e){return this.window.eval(e)}testIdAttributeNameForStrictErrorAndConsoleCodegen(){return this._testIdAttributeNameForStrictErrorAndConsoleCodegen}parseSelector(e){const n=na(e);return Xx(n,s=>{if(!this._engines.has(s.name))throw this.createStacklessError(`Unknown engine "${s.name}" while parsing selector ${e}`)}),n}generateSelector(e,n){return Fm(this,e,n)}generateSelectorSimple(e,n){return Fm(this,e,{...n,testIdAttributeName:this._testIdAttributeNameForStrictErrorAndConsoleCodegen}).selector}querySelector(e,n,s){const o=this.querySelectorAll(e,n);if(s&&o.length>1)throw this.strictModeViolationError(e,o);return o[0]}_queryNth(e,n){const s=[...e];let o=+n.body;return o===-1&&(o=s.length-1),new ke(s.slice(o,o+1))}_queryLayoutSelector(e,n,s){const o=n.name,l=n.body,c=[],u=this.querySelectorAll(l.parsed,s);for(const d of e){const h=My(o,d,u,l.distance);h!==void 0&&c.push({element:d,score:h})}return c.sort((d,h)=>d.score-h.score),new ke(c.map(d=>d.element))}ariaSnapshot(e,n){var o;if(e.nodeType!==Node.ELEMENT_NODE)throw this.createStacklessError("Can only capture aria snapshot of Element nodes.");const s=(((o=this._lastAriaSnapshot)==null?void 0:o.generation)||0)+1;return this._lastAriaSnapshot=Rf(e,s),ef(this._lastAriaSnapshot,n)}ariaSnapshotElement(e,n){return e.elements.get(n)||null}getAllByAria(e,n){return vk(e.documentElement,n)}querySelectorAll(e,n){if(e.capture!==void 0){if(e.parts.some(o=>o.name==="nth"))throw this.createStacklessError("Can't query n-th element in a request with the capture.");const s={parts:e.parts.slice(0,e.capture+1)};if(e.capture<e.parts.length-1){const o={parts:e.parts.slice(e.capture+1)},l={name:"internal:has",body:{parsed:o},source:jn(o)};s.parts.push(l)}return this.querySelectorAll(s,n)}if(!n.querySelectorAll)throw this.createStacklessError("Node is not queryable.");if(e.capture!==void 0)throw this.createStacklessError("Internal error: there should not be a capture in the selector.");if(n.nodeType===11&&e.parts.length===1&&e.parts[0].name==="css"&&e.parts[0].source===":scope")return[n];this._evaluator.begin();try{let s=new ke([n]);for(const o of e.parts)if(o.name==="nth")s=this._queryNth(s,o);else if(o.name==="internal:and"){const l=this.querySelectorAll(o.body.parsed,n);s=new ke(l.filter(c=>s.has(c)))}else if(o.name==="internal:or"){const l=this.querySelectorAll(o.body.parsed,n);s=new ke(Uy(new ke([...s,...l])))}else if(Tk.includes(o.name))s=this._queryLayoutSelector(s,o,n);else{const l=new ke;for(const c of s){const u=this._queryEngineAll(o,c);for(const d of u)l.add(d)}s=l}return[...s]}finally{this._evaluator.end()}}_queryEngineAll(e,n){const s=this._engines.get(e.name).queryAll(n,e.body);for(const o of s)if(!("nodeName"in o))throw this.createStacklessError(`Expected a Node but got ${Object.prototype.toString.call(o)}`);return s}_createAttributeEngine(e,n){const s=o=>[{simples:[{selector:{css:`[${e}=${JSON.stringify(o)}]`,functions:[]},combinator:""}]}];return{queryAll:(o,l)=>this._evaluator.query({scope:o,pierceShadow:n},s(l))}}_createCSSEngine(){return{queryAll:(e,n)=>this._evaluator.query({scope:e,pierceShadow:!0},n)}}_createTextEngine(e,n){return{queryAll:(o,l)=>{const{matcher:c,kind:u}=Sl(l,n),d=[];let h=null;const y=m=>{if(u==="lax"&&h&&h.contains(m))return!1;const w=ca(this._evaluator._cacheText,m,c);w==="none"&&(h=m),(w==="self"||w==="selfAndChildren"&&u==="strict"&&!n)&&d.push(m)};o.nodeType===Node.ELEMENT_NODE&&y(o);const v=this._evaluator._queryCSS({scope:o,pierceShadow:e},"*");for(const m of v)y(m);return d}}}_createInternalHasTextEngine(){return{queryAll:(e,n)=>{if(e.nodeType!==1)return[];const s=e,o=Lt(this._evaluator._cacheText,s),{matcher:l}=Sl(n,!0);return l(o)?[s]:[]}}}_createInternalHasNotTextEngine(){return{queryAll:(e,n)=>{if(e.nodeType!==1)return[];const s=e,o=Lt(this._evaluator._cacheText,s),{matcher:l}=Sl(n,!0);return l(o)?[]:[s]}}}_createInternalLabelEngine(){return{queryAll:(e,n)=>{const{matcher:s}=Sl(n,!0);return this._evaluator._queryCSS({scope:e,pierceShadow:!0},"*").filter(l=>Ry(this._evaluator._cacheText,l).some(c=>s(c)))}}}_createNamedAttributeEngine(){return{queryAll:(n,s)=>{const o=Ir(s,!0);if(o.name||o.attributes.length!==1)throw new Error("Malformed attribute selector: "+s);const{name:l,value:c,caseSensitive:u}=o.attributes[0],d=u?null:c.toLowerCase();let h;return c instanceof RegExp?h=v=>!!v.match(c):u?h=v=>v===c:h=v=>v.toLowerCase().includes(d),this._evaluator._queryCSS({scope:n,pierceShadow:!0},`[${l}]`).filter(v=>h(v.getAttribute(l)))}}}_createControlEngine(){return{queryAll(e,n){if(n==="enter-frame")return[];if(n==="return-empty")return[];if(n==="component")return e.nodeType!==1?[]:[e.childElementCount===1?e.firstElementChild:e];throw new Error(`Internal error, unknown internal:control selector ${n}`)}}}_createHasEngine(){return{queryAll:(n,s)=>n.nodeType!==1?[]:!!this.querySelector(s.parsed,n,!1)?[n]:[]}}_createHasNotEngine(){return{queryAll:(n,s)=>n.nodeType!==1?[]:!!this.querySelector(s.parsed,n,!1)?[]:[n]}}_createVisibleEngine(){return{queryAll:(n,s)=>{if(n.nodeType!==1)return[];const o=s==="true";return Ts(n)===o?[n]:[]}}}_createInternalChainEngine(){return{queryAll:(n,s)=>this.querySelectorAll(s.parsed,n)}}extend(e,n){const s=this.window.eval(`
115
+ `)}function wk(t){const e=[{regex:/\b[\d,.]+[bkmBKM]+\b/,replacement:"[\\d,.]+[bkmBKM]+"},{regex:/\b\d+[hmsp]+\b/,replacement:"\\d+[hmsp]+"},{regex:/\b[\d,.]+[hmsp]+\b/,replacement:"[\\d,.]+[hmsp]+"},{regex:/\b\d+,\d+\b/,replacement:"\\d+,\\d+"},{regex:/\b\d+\.\d{2,}\b/,replacement:"\\d+\\.\\d+"},{regex:/\b\d{2,}\.\d+\b/,replacement:"\\d+\\.\\d+"},{regex:/\b\d{2,}\b/,replacement:"\\d+"}];let n="",s=0;const o=new RegExp(e.map(l=>"("+l.regex.source+")").join("|"),"g");return t.replace(o,(l,...c)=>{const u=c[c.length-2],d=c.slice(0,-2);n+=Wl(t.slice(s,u));for(let h=0;h<d.length;h++)if(d[h]){const{replacement:y}=e[h];n+=y;break}return s=u+l.length,l}),n?(n+=Wl(t.slice(s)),String(new RegExp(n))):t}function xk(t,e){if(!e.length)return!1;if(!t.name)return!0;if(t.name.length>e.length)return!1;const n=e.length<=200&&t.name.length<=200?t1(e,t.name):"";let s=e;for(;n&&s.includes(n);)s=s.replace(n,"");return s.trim().length/e.length>.1}const Mm=":host{font-size:13px;font-family:system-ui,Ubuntu,Droid Sans,sans-serif;color:#333}svg{position:absolute;height:0}x-pw-tooltip{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background-color:#fff;border-radius:6px;box-shadow:0 .5rem 1.2rem #0000004d;display:none;font-size:12.8px;font-weight:400;left:0;line-height:1.5;max-width:600px;position:absolute;top:0;padding:0;flex-direction:column;overflow:hidden}x-pw-tooltip-line{display:flex;max-width:600px;padding:6px;-webkit-user-select:none;user-select:none;cursor:pointer}x-pw-tooltip-line.selectable:hover{background-color:#f2f2f2;overflow:hidden}x-pw-tooltip-footer{display:flex;max-width:600px;padding:6px;-webkit-user-select:none;user-select:none;color:#777}x-pw-dialog{background-color:#fff;pointer-events:auto;border-radius:6px;box-shadow:0 .5rem 1.2rem #0000004d;display:flex;flex-direction:column;position:absolute;width:400px;height:150px;z-index:10;font-size:13px}x-pw-dialog-body{display:flex;flex-direction:column;flex:auto}x-pw-dialog-body label{margin:5px 8px;display:flex;flex-direction:row;align-items:center}x-pw-highlight{position:absolute;top:0;left:0;width:0;height:0}x-pw-action-point{position:absolute;width:20px;height:20px;background:red;border-radius:10px;margin:-10px 0 0 -10px;z-index:2}x-pw-separator{height:1px;margin:6px 9px;background:#949494e5}x-pw-tool-gripper{height:28px;width:24px;margin:2px 0;cursor:grab}x-pw-tool-gripper:active{cursor:grabbing}x-pw-tool-gripper>x-div{width:16px;height:16px;margin:6px 4px;clip-path:url(#icon-gripper);background-color:#555}x-pw-tools-list>label{display:flex;align-items:center;margin:0 10px;-webkit-user-select:none;user-select:none}x-pw-tools-list{display:flex;width:100%;border-bottom:1px solid #dddddd}x-pw-tool-item{pointer-events:auto;height:28px;width:28px;border-radius:3px}x-pw-tool-item:not(.disabled){cursor:pointer}x-pw-tool-item:not(.disabled):hover{background-color:#dbdbdb}x-pw-tool-item.toggled{background-color:#8acae480}x-pw-tool-item.toggled:not(.disabled):hover{background-color:#8acae4c4}x-pw-tool-item>x-div{width:16px;height:16px;margin:6px;background-color:#3a3a3a}x-pw-tool-item.disabled>x-div{background-color:#61616180;cursor:default}x-pw-tool-item.record.toggled{background-color:transparent}x-pw-tool-item.record.toggled:not(.disabled):hover{background-color:#dbdbdb}x-pw-tool-item.record.toggled>x-div{background-color:#a1260d}x-pw-tool-item.record.disabled.toggled>x-div{opacity:.8}x-pw-tool-item.accept>x-div{background-color:#388a34}x-pw-tool-item.record>x-div{clip-path:url(#icon-circle-large-filled)}x-pw-tool-item.pick-locator>x-div{clip-path:url(#icon-inspect)}x-pw-tool-item.text>x-div{clip-path:url(#icon-whole-word)}x-pw-tool-item.visibility>x-div{clip-path:url(#icon-eye)}x-pw-tool-item.value>x-div{clip-path:url(#icon-symbol-constant)}x-pw-tool-item.snapshot>x-div{clip-path:url(#icon-gist)}x-pw-tool-item.accept>x-div{clip-path:url(#icon-check)}x-pw-tool-item.cancel>x-div{clip-path:url(#icon-close)}x-pw-tool-item.succeeded>x-div{clip-path:url(#icon-pass);background-color:#388a34!important}x-pw-overlay{position:absolute;top:0;max-width:min-content;z-index:2147483647;background:transparent;pointer-events:auto}x-pw-overlay x-pw-tools-list{background-color:#fffd;box-shadow:#0000001a 0 5px 5px;border-radius:3px;border-bottom:none}x-pw-overlay x-pw-tool-item{margin:2px}textarea.text-editor{font-family:system-ui,Ubuntu,Droid Sans,sans-serif;flex:auto;border:none;margin:6px 10px;color:#333;outline:1px solid transparent!important;resize:none;padding:0;font-size:13px}textarea.text-editor.does-not-match{outline:1px solid red!important}x-div{display:block}x-spacer{flex:auto}*{box-sizing:border-box}*[hidden]{display:none!important}x-locator-editor{flex:none;width:100%;height:60px;padding:4px;border-bottom:1px solid #dddddd;outline:1px solid transparent}x-locator-editor.does-not-match{outline:1px solid red}.CodeMirror{width:100%!important;height:100%!important}";class Nu{constructor(e){this._renderedEntries=[],this._language="javascript",this._injectedScript=e;const n=e.document;this._isUnderTest=e.isUnderTest,this._glassPaneElement=n.createElement("x-pw-glass"),this._glassPaneElement.style.position="fixed",this._glassPaneElement.style.top="0",this._glassPaneElement.style.right="0",this._glassPaneElement.style.bottom="0",this._glassPaneElement.style.left="0",this._glassPaneElement.style.zIndex="2147483646",this._glassPaneElement.style.pointerEvents="none",this._glassPaneElement.style.display="flex",this._glassPaneElement.style.backgroundColor="transparent";for(const s of["click","auxclick","dragstart","input","keydown","keyup","pointerdown","pointerup","mousedown","mouseup","mouseleave","focus","scroll"])this._glassPaneElement.addEventListener(s,o=>{o.stopPropagation(),o.stopImmediatePropagation()});if(this._actionPointElement=n.createElement("x-pw-action-point"),this._actionPointElement.setAttribute("hidden","true"),this._glassPaneShadow=this._glassPaneElement.attachShadow({mode:this._isUnderTest?"open":"closed"}),typeof this._glassPaneShadow.adoptedStyleSheets.push=="function"){const s=new this._injectedScript.window.CSSStyleSheet;s.replaceSync(Mm),this._glassPaneShadow.adoptedStyleSheets.push(s)}else{const s=this._injectedScript.document.createElement("style");s.textContent=Mm,this._glassPaneShadow.appendChild(s)}this._glassPaneShadow.appendChild(this._actionPointElement)}install(){this._injectedScript.document.documentElement&&!this._injectedScript.document.documentElement.contains(this._glassPaneElement)&&this._injectedScript.document.documentElement.appendChild(this._glassPaneElement)}setLanguage(e){this._language=e}runHighlightOnRaf(e){this._rafRequest&&nm(this._rafRequest);const n=this._injectedScript.querySelectorAll(e,this._injectedScript.document.documentElement),s=or(this._language,jn(e)),o=n.length>1?"#f6b26b7f":"#6fa8dc7f";this.updateHighlight(n.map((l,c)=>{const u=n.length>1?` [${c+1} of ${n.length}]`:"";return{element:l,color:o,tooltipText:s+u}})),this._rafRequest=Cl(()=>this.runHighlightOnRaf(e))}uninstall(){this._rafRequest&&nm(this._rafRequest),this._glassPaneElement.remove()}showActionPoint(e,n){this._actionPointElement.style.top=n+"px",this._actionPointElement.style.left=e+"px",this._actionPointElement.hidden=!1}hideActionPoint(){this._actionPointElement.hidden=!0}clearHighlight(){var e,n;for(const s of this._renderedEntries)(e=s.highlightElement)==null||e.remove(),(n=s.tooltipElement)==null||n.remove();this._renderedEntries=[]}maskElements(e,n){this.updateHighlight(e.map(s=>({element:s,color:n})))}updateHighlight(e){if(!this._highlightIsUpToDate(e)){this.clearHighlight();for(const n of e){const s=this._createHighlightElement();this._glassPaneShadow.appendChild(s);let o;if(n.tooltipText){o=this._injectedScript.document.createElement("x-pw-tooltip"),this._glassPaneShadow.appendChild(o),o.style.top="0",o.style.left="0",o.style.display="flex";const l=this._injectedScript.document.createElement("x-pw-tooltip-line");l.textContent=n.tooltipText,o.appendChild(l)}this._renderedEntries.push({targetElement:n.element,color:n.color,tooltipElement:o,highlightElement:s})}for(const n of this._renderedEntries){if(n.box=n.targetElement.getBoundingClientRect(),!n.tooltipElement)continue;const{anchorLeft:s,anchorTop:o}=this.tooltipPosition(n.box,n.tooltipElement);n.tooltipTop=o,n.tooltipLeft=s}for(const n of this._renderedEntries){n.tooltipElement&&(n.tooltipElement.style.top=n.tooltipTop+"px",n.tooltipElement.style.left=n.tooltipLeft+"px");const s=n.box;n.highlightElement.style.backgroundColor=n.color,n.highlightElement.style.left=s.x+"px",n.highlightElement.style.top=s.y+"px",n.highlightElement.style.width=s.width+"px",n.highlightElement.style.height=s.height+"px",n.highlightElement.style.display="block",this._isUnderTest&&console.error("Highlight box for test: "+JSON.stringify({x:s.x,y:s.y,width:s.width,height:s.height}))}}}firstBox(){var e;return(e=this._renderedEntries[0])==null?void 0:e.box}tooltipPosition(e,n){const s=n.offsetWidth,o=n.offsetHeight,l=this._glassPaneElement.offsetWidth,c=this._glassPaneElement.offsetHeight;let u=e.left;u+s>l-5&&(u=l-s-5);let d=e.bottom+5;return d+o>c-5&&(e.top>o+5?d=e.top-o-5:d=c-5-o),{anchorLeft:u,anchorTop:d}}_highlightIsUpToDate(e){if(e.length!==this._renderedEntries.length)return!1;for(let n=0;n<this._renderedEntries.length;++n){if(e[n].element!==this._renderedEntries[n].targetElement||e[n].color!==this._renderedEntries[n].color)return!1;const s=this._renderedEntries[n].box;if(!s)return!1;const o=e[n].element.getBoundingClientRect();if(o.top!==s.top||o.right!==s.right||o.bottom!==s.bottom||o.left!==s.left)return!1}return!0}_createHighlightElement(){return this._injectedScript.document.createElement("x-pw-highlight")}appendChild(e){this._glassPaneShadow.appendChild(e)}}function Sk(t,e,n){const s=t.left-e.right;if(!(s<0||n!==void 0&&s>n))return s+Math.max(e.bottom-t.bottom,0)+Math.max(t.top-e.top,0)}function _k(t,e,n){const s=e.left-t.right;if(!(s<0||n!==void 0&&s>n))return s+Math.max(e.bottom-t.bottom,0)+Math.max(t.top-e.top,0)}function kk(t,e,n){const s=e.top-t.bottom;if(!(s<0||n!==void 0&&s>n))return s+Math.max(t.left-e.left,0)+Math.max(e.right-t.right,0)}function bk(t,e,n){const s=t.top-e.bottom;if(!(s<0||n!==void 0&&s>n))return s+Math.max(t.left-e.left,0)+Math.max(e.right-t.right,0)}function Ek(t,e,n){const s=n===void 0?50:n;let o=0;return t.left-e.right>=0&&(o+=t.left-e.right),e.left-t.right>=0&&(o+=e.left-t.right),e.top-t.bottom>=0&&(o+=e.top-t.bottom),t.top-e.bottom>=0&&(o+=t.top-e.bottom),o>s?void 0:o}const Tk=["left-of","right-of","above","below","near"];function My(t,e,n,s){const o=e.getBoundingClientRect(),l={"left-of":_k,"right-of":Sk,above:kk,below:bk,near:Ek}[t];let c;for(const u of n){if(u===e)continue;const d=l(o,u.getBoundingClientRect(),s);d!==void 0&&(c===void 0||d<c)&&(c=d)}return c}function $y(t,e){for(const n of e.jsonPath)t!=null&&(t=t[n]);return Py(t,e)}function Py(t,e){const n=typeof t=="string"&&!e.caseSensitive?t.toUpperCase():t,s=typeof e.value=="string"&&!e.caseSensitive?e.value.toUpperCase():e.value;return e.op==="<truthy>"?!!n:e.op==="="?s instanceof RegExp?typeof n=="string"&&!!n.match(s):n===s:typeof n!="string"||typeof s!="string"?!1:e.op==="*="?n.includes(s):e.op==="^="?n.startsWith(s):e.op==="$="?n.endsWith(s):e.op==="|="?n===s||n.startsWith(s+"-"):e.op==="~="?n.split(" ").includes(s):!1}function zf(t){const e=t.ownerDocument;return t.nodeName==="SCRIPT"||t.nodeName==="NOSCRIPT"||t.nodeName==="STYLE"||e.head&&e.head.contains(t)}function Lt(t,e){let n=t.get(e);if(n===void 0){if(n={full:"",normalized:"",immediate:[]},!zf(e)){let s="";if(e instanceof HTMLInputElement&&(e.type==="submit"||e.type==="button"))n={full:e.value,normalized:vt(e.value),immediate:[e.value]};else{for(let o=e.firstChild;o;o=o.nextSibling)if(o.nodeType===Node.TEXT_NODE)n.full+=o.nodeValue||"",s+=o.nodeValue||"";else{if(o.nodeType===Node.COMMENT_NODE)continue;s&&n.immediate.push(s),s="",o.nodeType===Node.ELEMENT_NODE&&(n.full+=Lt(t,o).full)}s&&n.immediate.push(s),e.shadowRoot&&(n.full+=Lt(t,e.shadowRoot).full),n.full&&(n.normalized=vt(n.full))}}t.set(e,n)}return n}function ca(t,e,n){if(zf(e)||!n(Lt(t,e)))return"none";for(let s=e.firstChild;s;s=s.nextSibling)if(s.nodeType===Node.ELEMENT_NODE&&n(Lt(t,s)))return"selfAndChildren";return e.shadowRoot&&n(Lt(t,e.shadowRoot))?"selfAndChildren":"self"}function Ry(t,e){const n=_y(e);if(n)return n.map(l=>Lt(t,l));const s=e.getAttribute("aria-label");if(s!==null&&s.trim())return[{full:s,normalized:vt(s),immediate:[s]}];const o=e.nodeName==="INPUT"&&e.type!=="hidden";if(["BUTTON","METER","OUTPUT","PROGRESS","SELECT","TEXTAREA"].includes(e.nodeName)||o){const l=e.labels;if(l)return[...l].map(c=>Lt(t,c))}return[]}function $m(t){return t.displayName||t.name||"Anonymous"}function Nk(t){if(t.type)switch(typeof t.type){case"function":return $m(t.type);case"string":return t.type;case"object":return t.type.displayName||(t.type.render?$m(t.type.render):"")}if(t._currentElement){const e=t._currentElement.type;if(typeof e=="string")return e;if(typeof e=="function")return e.displayName||e.name||"Anonymous"}return""}function Ck(t){var e;return t.key??((e=t._currentElement)==null?void 0:e.key)}function Ak(t){if(t.child){const n=[];for(let s=t.child;s;s=s.sibling)n.push(s);return n}if(!t._currentElement)return[];const e=n=>{var o;const s=(o=n._currentElement)==null?void 0:o.type;return typeof s=="function"||typeof s=="string"};if(t._renderedComponent){const n=t._renderedComponent;return e(n)?[n]:[]}return t._renderedChildren?[...Object.values(t._renderedChildren)].filter(e):[]}function Lk(t){var s;const e=t.memoizedProps||((s=t._currentElement)==null?void 0:s.props);if(!e||typeof e=="string")return e;const n={...e};return delete n.children,n}function Dy(t){var s;const e={key:Ck(t),name:Nk(t),children:Ak(t).map(Dy),rootElements:[],props:Lk(t)},n=t.stateNode||t._hostNode||((s=t._renderedComponent)==null?void 0:s._hostNode);if(n instanceof Element)e.rootElements.push(n);else for(const o of e.children)e.rootElements.push(...o.rootElements);return e}function Fy(t,e,n=[]){e(t)&&n.push(t);for(const s of t.children)Fy(s,e,n);return n}function zy(t,e=[]){const s=(t.ownerDocument||t).createTreeWalker(t,NodeFilter.SHOW_ELEMENT);do{const o=s.currentNode,l=o,c=Object.keys(l).find(d=>d.startsWith("__reactContainer")&&l[d]!==null);if(c)e.push(l[c].stateNode.current);else{const d="_reactRootContainer";l.hasOwnProperty(d)&&l[d]!==null&&e.push(l[d]._internalRoot.current)}if(o instanceof Element&&o.hasAttribute("data-reactroot"))for(const d of Object.keys(o))(d.startsWith("__reactInternalInstance")||d.startsWith("__reactFiber"))&&e.push(o[d]);const u=o instanceof Element?o.shadowRoot:null;u&&zy(u,e)}while(s.nextNode());return e}const jk=()=>({queryAll(t,e){const{name:n,attributes:s}=Ir(e,!1),c=zy(t.ownerDocument||t).map(d=>Dy(d)).map(d=>Fy(d,h=>{const y=h.props??{};if(h.key!==void 0&&(y.key=h.key),n&&h.name!==n||h.rootElements.some(v=>!aa(t,v)))return!1;for(const v of s)if(!$y(y,v))return!1;return!0})).flat(),u=new ke;for(const d of c)for(const h of d.rootElements)u.add(h);return[...u]}}),By=["selected","checked","pressed","expanded","level","disabled","name","include-hidden"];By.sort();function Ri(t,e,n){if(!e.includes(n))throw new Error(`"${t}" attribute is only supported for roles: ${e.slice().sort().map(s=>`"${s}"`).join(", ")}`)}function ds(t,e){if(t.op!=="<truthy>"&&!e.includes(t.value))throw new Error(`"${t.name}" must be one of ${e.map(n=>JSON.stringify(n)).join(", ")}`)}function hs(t,e){if(!e.includes(t.op))throw new Error(`"${t.name}" does not support "${t.op}" matcher`)}function Ik(t,e){const n={role:e};for(const s of t)switch(s.name){case"checked":{Ri(s.name,bf,e),ds(s,[!0,!1,"mixed"]),hs(s,["<truthy>","="]),n.checked=s.op==="<truthy>"?!0:s.value;break}case"pressed":{Ri(s.name,Tf,e),ds(s,[!0,!1,"mixed"]),hs(s,["<truthy>","="]),n.pressed=s.op==="<truthy>"?!0:s.value;break}case"selected":{Ri(s.name,kf,e),ds(s,[!0,!1]),hs(s,["<truthy>","="]),n.selected=s.op==="<truthy>"?!0:s.value;break}case"expanded":{Ri(s.name,Nf,e),ds(s,[!0,!1]),hs(s,["<truthy>","="]),n.expanded=s.op==="<truthy>"?!0:s.value;break}case"level":{if(Ri(s.name,Cf,e),typeof s.value=="string"&&(s.value=+s.value),s.op!=="="||typeof s.value!="number"||Number.isNaN(s.value))throw new Error('"level" attribute must be compared to a number');n.level=s.value;break}case"disabled":{ds(s,[!0,!1]),hs(s,["<truthy>","="]),n.disabled=s.op==="<truthy>"?!0:s.value;break}case"name":{if(s.op==="<truthy>")throw new Error('"name" attribute must have a value');if(typeof s.value!="string"&&!(s.value instanceof RegExp))throw new Error('"name" attribute must be a string or a regular expression');n.name=s.value,n.nameOp=s.op,n.exact=s.caseSensitive;break}case"include-hidden":{ds(s,[!0,!1]),hs(s,["<truthy>","="]),n.includeHidden=s.op==="<truthy>"?!0:s.value;break}default:throw new Error(`Unknown attribute "${s.name}", must be one of ${By.map(o=>`"${o}"`).join(", ")}.`)}return n}function Ok(t,e,n){const s=[],o=c=>{if(et(c)===e.role&&!(e.selected!==void 0&&ky(c)!==e.selected)&&!(e.checked!==void 0&&by(c)!==e.checked)&&!(e.pressed!==void 0&&Ey(c)!==e.pressed)&&!(e.expanded!==void 0&&Ty(c)!==e.expanded)&&!(e.level!==void 0&&Ny(c)!==e.level)&&!(e.disabled!==void 0&&Jl(c)!==e.disabled)&&!(!e.includeHidden&&Wt(c))){if(e.name!==void 0){const u=vt(Xi(c,!!e.includeHidden));if(typeof e.name=="string"&&(e.name=vt(e.name)),n&&!e.exact&&e.nameOp==="="&&(e.nameOp="*="),!Py(u,{op:e.nameOp||"=",value:e.name,caseSensitive:!!e.exact}))return}s.push(c)}},l=c=>{const u=[];c.shadowRoot&&u.push(c.shadowRoot);for(const d of c.querySelectorAll("*"))o(d),d.shadowRoot&&u.push(d.shadowRoot);u.forEach(l)};return l(t),s}function Pm(t){return{queryAll:(e,n)=>{const s=Ir(n,!0),o=s.name.toLowerCase();if(!o)throw new Error("Role must not be empty");const l=Ik(s.attributes,o);$f();try{return Ok(e,l,t)}finally{Pf()}}}}class Mk{constructor(){this._retainCacheCounter=0,this._cacheText=new be,this._cacheQueryCSS=new be,this._cacheMatches=new be,this._cacheQuery=new be,this._cacheMatchesSimple=new be,this._cacheMatchesParents=new be,this._cacheCallMatches=new be,this._cacheCallQuery=new be,this._cacheQuerySimple=new be,this._engines=new be,this._engines.set("not",Rk),this._engines.set("is",qi),this._engines.set("where",qi),this._engines.set("has",$k),this._engines.set("scope",Pk),this._engines.set("light",Dk),this._engines.set("visible",Fk),this._engines.set("text",zk),this._engines.set("text-is",Bk),this._engines.set("text-matches",Uk),this._engines.set("has-text",qk),this._engines.set("right-of",Di("right-of")),this._engines.set("left-of",Di("left-of")),this._engines.set("above",Di("above")),this._engines.set("below",Di("below")),this._engines.set("near",Di("near")),this._engines.set("nth-match",Hk);const e=[...this._engines.keys()];e.sort();const n=[...Ig];if(n.sort(),e.join("|")!==n.join("|"))throw new Error(`Please keep customCSSNames in sync with evaluator engines: ${e.join("|")} vs ${n.join("|")}`)}begin(){++this._retainCacheCounter}end(){--this._retainCacheCounter,this._retainCacheCounter||(this._cacheQueryCSS.clear(),this._cacheMatches.clear(),this._cacheQuery.clear(),this._cacheMatchesSimple.clear(),this._cacheMatchesParents.clear(),this._cacheCallMatches.clear(),this._cacheCallQuery.clear(),this._cacheQuerySimple.clear(),this._cacheText.clear())}_cached(e,n,s,o){e.has(n)||e.set(n,[]);const l=e.get(n),c=l.find(d=>s.every((h,y)=>d.rest[y]===h));if(c)return c.result;const u=o();return l.push({rest:s,result:u}),u}_checkSelector(e){if(!(typeof e=="object"&&e&&(Array.isArray(e)||"simples"in e&&e.simples.length)))throw new Error(`Malformed selector "${e}"`);return e}matches(e,n,s){const o=this._checkSelector(n);this.begin();try{return this._cached(this._cacheMatches,e,[o,s.scope,s.pierceShadow,s.originalScope],()=>Array.isArray(o)?this._matchesEngine(qi,e,o,s):(this._hasScopeClause(o)&&(s=this._expandContextForScopeMatching(s)),this._matchesSimple(e,o.simples[o.simples.length-1].selector,s)?this._matchesParents(e,o,o.simples.length-2,s):!1))}finally{this.end()}}query(e,n){const s=this._checkSelector(n);this.begin();try{return this._cached(this._cacheQuery,s,[e.scope,e.pierceShadow,e.originalScope],()=>{if(Array.isArray(s))return this._queryEngine(qi,e,s);this._hasScopeClause(s)&&(e=this._expandContextForScopeMatching(e));const o=this._scoreMap;this._scoreMap=new be;let l=this._querySimple(e,s.simples[s.simples.length-1].selector);return l=l.filter(c=>this._matchesParents(c,s,s.simples.length-2,e)),this._scoreMap.size&&l.sort((c,u)=>{const d=this._scoreMap.get(c),h=this._scoreMap.get(u);return d===h?0:d===void 0?1:h===void 0?-1:d-h}),this._scoreMap=o,l})}finally{this.end()}}_markScore(e,n){this._scoreMap&&this._scoreMap.set(e,n)}_hasScopeClause(e){return e.simples.some(n=>n.selector.functions.some(s=>s.name==="scope"))}_expandContextForScopeMatching(e){if(e.scope.nodeType!==1)return e;const n=gt(e.scope);return n?{...e,scope:n,originalScope:e.originalScope||e.scope}:e}_matchesSimple(e,n,s){return this._cached(this._cacheMatchesSimple,e,[n,s.scope,s.pierceShadow,s.originalScope],()=>{if(e===s.scope||n.css&&!this._matchesCSS(e,n.css))return!1;for(const o of n.functions)if(!this._matchesEngine(this._getEngine(o.name),e,o.args,s))return!1;return!0})}_querySimple(e,n){return n.functions.length?this._cached(this._cacheQuerySimple,n,[e.scope,e.pierceShadow,e.originalScope],()=>{let s=n.css;const o=n.functions;s==="*"&&o.length&&(s=void 0);let l,c=-1;s!==void 0?l=this._queryCSS(e,s):(c=o.findIndex(u=>this._getEngine(u.name).query!==void 0),c===-1&&(c=0),l=this._queryEngine(this._getEngine(o[c].name),e,o[c].args));for(let u=0;u<o.length;u++){if(u===c)continue;const d=this._getEngine(o[u].name);d.matches!==void 0&&(l=l.filter(h=>this._matchesEngine(d,h,o[u].args,e)))}for(let u=0;u<o.length;u++){if(u===c)continue;const d=this._getEngine(o[u].name);d.matches===void 0&&(l=l.filter(h=>this._matchesEngine(d,h,o[u].args,e)))}return l}):this._queryCSS(e,n.css||"*")}_matchesParents(e,n,s,o){return s<0?!0:this._cached(this._cacheMatchesParents,e,[n,s,o.scope,o.pierceShadow,o.originalScope],()=>{const{selector:l,combinator:c}=n.simples[s];if(c===">"){const u=yl(e,o);return!u||!this._matchesSimple(u,l,o)?!1:this._matchesParents(u,n,s-1,o)}if(c==="+"){const u=Cu(e,o);return!u||!this._matchesSimple(u,l,o)?!1:this._matchesParents(u,n,s-1,o)}if(c===""){let u=yl(e,o);for(;u;){if(this._matchesSimple(u,l,o)){if(this._matchesParents(u,n,s-1,o))return!0;if(n.simples[s-1].combinator==="")break}u=yl(u,o)}return!1}if(c==="~"){let u=Cu(e,o);for(;u;){if(this._matchesSimple(u,l,o)){if(this._matchesParents(u,n,s-1,o))return!0;if(n.simples[s-1].combinator==="~")break}u=Cu(u,o)}return!1}if(c===">="){let u=e;for(;u;){if(this._matchesSimple(u,l,o)){if(this._matchesParents(u,n,s-1,o))return!0;if(n.simples[s-1].combinator==="")break}u=yl(u,o)}return!1}throw new Error(`Unsupported combinator "${c}"`)})}_matchesEngine(e,n,s,o){if(e.matches)return this._callMatches(e,n,s,o);if(e.query)return this._callQuery(e,s,o).includes(n);throw new Error('Selector engine should implement "matches" or "query"')}_queryEngine(e,n,s){if(e.query)return this._callQuery(e,s,n);if(e.matches)return this._queryCSS(n,"*").filter(o=>this._callMatches(e,o,s,n));throw new Error('Selector engine should implement "matches" or "query"')}_callMatches(e,n,s,o){return this._cached(this._cacheCallMatches,n,[e,o.scope,o.pierceShadow,o.originalScope,...s],()=>e.matches(n,s,o,this))}_callQuery(e,n,s){return this._cached(this._cacheCallQuery,e,[s.scope,s.pierceShadow,s.originalScope,...n],()=>e.query(s,n,this))}_matchesCSS(e,n){return e.matches(n)}_queryCSS(e,n){return this._cached(this._cacheQueryCSS,n,[e.scope,e.pierceShadow,e.originalScope],()=>{let s=[];function o(l){if(s=s.concat([...l.querySelectorAll(n)]),!!e.pierceShadow){l.shadowRoot&&o(l.shadowRoot);for(const c of l.querySelectorAll("*"))c.shadowRoot&&o(c.shadowRoot)}}return o(e.scope),s})}_getEngine(e){const n=this._engines.get(e);if(!n)throw new Error(`Unknown selector engine "${e}"`);return n}}const qi={matches(t,e,n,s){if(e.length===0)throw new Error('"is" engine expects non-empty selector list');return e.some(o=>s.matches(t,o,n))},query(t,e,n){if(e.length===0)throw new Error('"is" engine expects non-empty selector list');let s=[];for(const o of e)s=s.concat(n.query(t,o));return e.length===1?s:Uy(s)}},$k={matches(t,e,n,s){if(e.length===0)throw new Error('"has" engine expects non-empty selector list');return s.query({...n,scope:t},e).length>0}},Pk={matches(t,e,n,s){if(e.length!==0)throw new Error('"scope" engine expects no arguments');const o=n.originalScope||n.scope;return o.nodeType===9?t===o.documentElement:t===o},query(t,e,n){if(e.length!==0)throw new Error('"scope" engine expects no arguments');const s=t.originalScope||t.scope;if(s.nodeType===9){const o=s.documentElement;return o?[o]:[]}return s.nodeType===1?[s]:[]}},Rk={matches(t,e,n,s){if(e.length===0)throw new Error('"not" engine expects non-empty selector list');return!s.matches(t,e,n)}},Dk={query(t,e,n){return n.query({...t,pierceShadow:!1},e)},matches(t,e,n,s){return s.matches(t,e,{...n,pierceShadow:!1})}},Fk={matches(t,e,n,s){if(e.length)throw new Error('"visible" engine expects no arguments');return Ts(t)}},zk={matches(t,e,n,s){if(e.length!==1||typeof e[0]!="string")throw new Error('"text" engine expects a single string');const o=vt(e[0]).toLowerCase(),l=c=>c.normalized.toLowerCase().includes(o);return ca(s._cacheText,t,l)==="self"}},Bk={matches(t,e,n,s){if(e.length!==1||typeof e[0]!="string")throw new Error('"text-is" engine expects a single string');const o=vt(e[0]),l=c=>!o&&!c.immediate.length?!0:c.immediate.some(u=>vt(u)===o);return ca(s._cacheText,t,l)!=="none"}},Uk={matches(t,e,n,s){if(e.length===0||typeof e[0]!="string"||e.length>2||e.length===2&&typeof e[1]!="string")throw new Error('"text-matches" engine expects a regexp body and optional regexp flags');const o=new RegExp(e[0],e.length===2?e[1]:void 0),l=c=>o.test(c.full);return ca(s._cacheText,t,l)==="self"}},qk={matches(t,e,n,s){if(e.length!==1||typeof e[0]!="string")throw new Error('"has-text" engine expects a single string');if(zf(t))return!1;const o=vt(e[0]).toLowerCase();return(c=>c.normalized.toLowerCase().includes(o))(Lt(s._cacheText,t))}};function Di(t){return{matches(e,n,s,o){const l=n.length&&typeof n[n.length-1]=="number"?n[n.length-1]:void 0,c=l===void 0?n:n.slice(0,n.length-1);if(n.length<1+(l===void 0?0:1))throw new Error(`"${t}" engine expects a selector list and optional maximum distance in pixels`);const u=o.query(s,c),d=My(t,e,u,l);return d===void 0?!1:(o._markScore(e,d),!0)}}}const Hk={query(t,e,n){let s=e[e.length-1];if(e.length<2)throw new Error('"nth-match" engine expects non-empty selector list and an index argument');if(typeof s!="number"||s<1)throw new Error('"nth-match" engine expects a one-based index as the last argument');const o=qi.query(t,e.slice(0,e.length-1),n);return s--,s<o.length?[o[s]]:[]}};function yl(t,e){if(t!==e.scope)return e.pierceShadow?gt(t):t.parentElement||void 0}function Cu(t,e){if(t!==e.scope)return t.previousElementSibling||void 0}function Uy(t){const e=new be,n=[],s=[];function o(c){let u=e.get(c);if(u)return u;const d=gt(c);return d?o(d).children.push(c):n.push(c),u={children:[],taken:!1},e.set(c,u),u}for(const c of t)o(c).taken=!0;function l(c){const u=e.get(c);if(u.taken&&s.push(c),u.children.length>1){const d=new ke(u.children);u.children=[];let h=c.firstElementChild;for(;h&&u.children.length<d.size;)d.has(h)&&u.children.push(h),h=h.nextElementSibling;for(h=c.shadowRoot?c.shadowRoot.firstElementChild:null;h&&u.children.length<d.size;)d.has(h)&&u.children.push(h),h=h.nextElementSibling}u.children.forEach(l)}return n.forEach(l),s}const qy=10,Rs=qy/2,Rm=1,Vk=2,Wk=10,Kk=50,Hy=100,Vy=120,Wy=140,Ky=160,Rl=180,Qy=200,Dm=250,Qk=Vy+Rs,Gk=Wy+Rs,Xk=Hy+Rs,Jk=Ky+Rs,Yk=Rl+Rs,Zk=Qy+Rs,eb=300,tb=500,Gy=510,Au=520,Xy=530,Jy=1e4,nb=1e7,rb=1e3;function Fm(t,e,n){t._evaluator.begin();const s={allowText:new be,disallowText:new be};$f();try{let o=[];if(n.forTextExpect){let u=vl(t,e.ownerDocument.documentElement,n);for(let d=e;d;d=gt(d)){const h=ps(s,t,d,{...n,noText:!0});if(!h)continue;if(ir(h)<=rb){u=h;break}}o=[Dl(u)]}else{if(!e.matches("input,textarea,select")&&!e.isContentEditable){const u=Ui(e,"button,select,input,[role=button],[role=checkbox],[role=radio],a,[role=link]",n.root);u&&Ts(u)&&(e=u)}if(n.multiple){const u=ps(s,t,e,n),d=ps(s,t,e,{...n,noText:!0});let h=[u,d];if(s.allowText.clear(),s.disallowText.clear(),u&&Lu(u)&&h.push(ps(s,t,e,{...n,noCSSId:!0})),d&&Lu(d)&&h.push(ps(s,t,e,{...n,noText:!0,noCSSId:!0})),h=h.filter(Boolean),!h.length){const y=vl(t,e,n);h.push(y),Lu(y)&&h.push(vl(t,e,{...n,noCSSId:!0}))}o=[...new ke(h.map(y=>Dl(y)))]}else{const u=ps(s,t,e,n)||vl(t,e,n);o=[Dl(u)]}}const l=o[0],c=t.parseSelector(l);return{selector:l,selectors:o,elements:t.querySelectorAll(c,n.root??e.ownerDocument)}}finally{Pf(),t._evaluator.end()}}function zm(t){return t.filter(e=>e[0].selector[0]!=="/")}function ps(t,e,n,s){if(s.root&&!aa(s.root,n))throw new Error("Target element must belong to the root's subtree");if(n===s.root)return[{engine:"css",selector:":scope",score:1}];if(n.ownerDocument.documentElement===n)return[{engine:"css",selector:"html",score:1}];const o=(c,u)=>{const d=c===n;let h=u?ib(e,c,c===n):[];c!==n&&(h=zm(h));const y=sb(e,c,s).filter(w=>!s.omitInternalEngines||!w.engine.startsWith("internal:")).map(w=>[w]);let v=Bm(e,s.root??n.ownerDocument,c,[...h,...y],d);h=zm(h);const m=w=>{const S=u&&!w.length,_=[...w,...y].filter(T=>v?ir(T)<ir(v):!0);let b=_[0];if(b)for(let T=gt(c);T&&T!==s.root;T=gt(T)){const N=l(T,S);if(!N||v&&ir([...N,...b])>=ir(v))continue;if(b=Bm(e,T,c,_,d),!b)return;const O=[...N,...b];(!v||ir(O)<ir(v))&&(v=O)}};return m(h),c===n&&h.length&&m([]),v},l=(c,u)=>{const d=u?t.allowText:t.disallowText;let h=d.get(c);return h===void 0&&(h=o(c,u),d.set(c,h)),h};return o(n,!s.noText)}function sb(t,e,n){const s=[];{for(const c of["data-testid","data-test-id","data-test"])c!==n.testIdAttributeName&&e.getAttribute(c)&&s.push({engine:"css",selector:`[${c}=${Ii(e.getAttribute(c))}]`,score:Vk});if(!n.noCSSId){const c=e.getAttribute("id");c&&!ob(c)&&s.push({engine:"css",selector:Yy(c),score:tb})}s.push({engine:"css",selector:Kt(e.nodeName.toLowerCase()),score:Xy})}if(e.nodeName==="IFRAME"){for(const c of["name","title"])e.getAttribute(c)&&s.push({engine:"css",selector:`${Kt(e.nodeName.toLowerCase())}[${c}=${Ii(e.getAttribute(c))}]`,score:Wk});return e.getAttribute(n.testIdAttributeName)&&s.push({engine:"css",selector:`[${n.testIdAttributeName}=${Ii(e.getAttribute(n.testIdAttributeName))}]`,score:Rm}),tf([s]),s}if(e.getAttribute(n.testIdAttributeName)&&s.push({engine:"internal:testid",selector:`[${n.testIdAttributeName}=${mt(e.getAttribute(n.testIdAttributeName),!0)}]`,score:Rm}),e.nodeName==="INPUT"||e.nodeName==="TEXTAREA"){const c=e;if(c.placeholder){s.push({engine:"internal:attr",selector:`[placeholder=${mt(c.placeholder,!0)}]`,score:Qk});for(const u of Ss(c.placeholder))s.push({engine:"internal:attr",selector:`[placeholder=${mt(u.text,!1)}]`,score:Vy-u.scoreBonus})}}const o=Ry(t._evaluator._cacheText,e);for(const c of o){const u=c.normalized;s.push({engine:"internal:label",selector:Ct(u,!0),score:Gk});for(const d of Ss(u))s.push({engine:"internal:label",selector:Ct(d.text,!1),score:Wy-d.scoreBonus})}const l=et(e);return l&&!["none","presentation"].includes(l)&&s.push({engine:"internal:role",selector:l,score:Gy}),e.getAttribute("name")&&["BUTTON","FORM","FIELDSET","FRAME","IFRAME","INPUT","KEYGEN","OBJECT","OUTPUT","SELECT","TEXTAREA","MAP","META","PARAM"].includes(e.nodeName)&&s.push({engine:"css",selector:`${Kt(e.nodeName.toLowerCase())}[name=${Ii(e.getAttribute("name"))}]`,score:Au}),["INPUT","TEXTAREA"].includes(e.nodeName)&&e.getAttribute("type")!=="hidden"&&e.getAttribute("type")&&s.push({engine:"css",selector:`${Kt(e.nodeName.toLowerCase())}[type=${Ii(e.getAttribute("type"))}]`,score:Au}),["INPUT","TEXTAREA","SELECT"].includes(e.nodeName)&&e.getAttribute("type")!=="hidden"&&s.push({engine:"css",selector:Kt(e.nodeName.toLowerCase()),score:Au+1}),tf([s]),s}function ib(t,e,n){if(e.nodeName==="SELECT")return[];const s=[],o=e.getAttribute("title");if(o){s.push([{engine:"internal:attr",selector:`[title=${mt(o,!0)}]`,score:Zk}]);for(const h of Ss(o))s.push([{engine:"internal:attr",selector:`[title=${mt(h.text,!1)}]`,score:Qy-h.scoreBonus}])}const l=e.getAttribute("alt");if(l&&["APPLET","AREA","IMG","INPUT"].includes(e.nodeName)){s.push([{engine:"internal:attr",selector:`[alt=${mt(l,!0)}]`,score:Jk}]);for(const h of Ss(l))s.push([{engine:"internal:attr",selector:`[alt=${mt(h.text,!1)}]`,score:Ky-h.scoreBonus}])}const c=Lt(t._evaluator._cacheText,e).normalized,u=c?Ss(c):[];if(c){if(n){c.length<=80&&s.push([{engine:"internal:text",selector:Ct(c,!0),score:Yk}]);for(const y of u)s.push([{engine:"internal:text",selector:Ct(y.text,!1),score:Rl-y.scoreBonus}])}const h={engine:"css",selector:Kt(e.nodeName.toLowerCase()),score:Xy};for(const y of u)s.push([h,{engine:"internal:has-text",selector:Ct(y.text,!1),score:Rl-y.scoreBonus}]);if(c.length<=80){const y=new RegExp("^"+Wl(c)+"$");s.push([h,{engine:"internal:has-text",selector:Ct(y,!1),score:Dm}])}}const d=et(e);if(d&&!["none","presentation"].includes(d)){const h=Xi(e,!1);if(h){const y={engine:"internal:role",selector:`${d}[name=${mt(h,!0)}]`,score:Xk};s.push([y]);for(const v of Ss(h))s.push([{engine:"internal:role",selector:`${d}[name=${mt(v.text,!1)}]`,score:Hy-v.scoreBonus}])}else{const y={engine:"internal:role",selector:`${d}`,score:Gy};for(const v of u)s.push([y,{engine:"internal:has-text",selector:Ct(v.text,!1),score:Rl-v.scoreBonus}]);if(c.length<=80){const v=new RegExp("^"+Wl(c)+"$");s.push([y,{engine:"internal:has-text",selector:Ct(v,!1),score:Dm}])}}}return tf(s),s}function Yy(t){return/^[a-zA-Z][a-zA-Z0-9\-\_]+$/.test(t)?"#"+t:`[id="${Kt(t)}"]`}function Lu(t){return t.some(e=>e.engine==="css"&&(e.selector.startsWith("#")||e.selector.startsWith('[id="')))}function vl(t,e,n){const s=n.root??e.ownerDocument,o=[];function l(u){const d=o.slice();u&&d.unshift(u);const h=d.join(" > "),y=t.parseSelector(h);return t.querySelector(y,s,!1)===e?h:void 0}function c(u){const d={engine:"css",selector:u,score:nb},h=t.parseSelector(u),y=t.querySelectorAll(h,s);if(y.length===1)return[d];const v={engine:"nth",selector:String(y.indexOf(e)),score:Jy};return[d,v]}for(let u=e;u&&u!==s;u=gt(u)){const d=u.nodeName.toLowerCase();let h="";if(u.id&&!n.noCSSId){const m=Yy(u.id),w=l(m);if(w)return c(w);h=m}const y=u.parentNode,v=[...u.classList];for(let m=0;m<v.length;++m){const w="."+Kt(v.slice(0,m+1).join(".")),S=l(w);if(S)return c(S);!h&&y&&y.querySelectorAll(w).length===1&&(h=w)}if(y){const m=[...y.children],S=m.filter(b=>b.nodeName.toLowerCase()===d).indexOf(u)===0?Kt(d):`${Kt(d)}:nth-child(${1+m.indexOf(u)})`,_=l(S);if(_)return c(_);h||(h=S)}else h||(h=Kt(d));o.unshift(h)}return c(l())}function tf(t){for(const e of t)for(const n of e)n.score>Kk&&n.score<eb&&(n.score+=Math.min(qy,n.selector.length/10|0))}function Dl(t){const e=[];let n="";for(const{engine:s,selector:o}of t)e.length&&(n!=="css"||s!=="css"||o.startsWith(":nth-match("))&&e.push(">>"),n=s,s==="css"?e.push(o):e.push(`${s}=${o}`);return e.join(" ")}function ir(t){let e=0;for(let n=0;n<t.length;n++)e+=t[n].score*(t.length-n);return e}function Bm(t,e,n,s,o){const l=s.map(u=>({tokens:u,score:ir(u)}));l.sort((u,d)=>u.score-d.score);let c=null;for(const{tokens:u}of l){const d=t.parseSelector(Dl(u)),h=t.querySelectorAll(d,e);if(h[0]===n&&h.length===1)return u;const y=h.indexOf(n);if(!o||c||y===-1||h.length>5)continue;const v={engine:"nth",selector:String(y),score:Jy};c=[...u,v]}return c}function ob(t){let e,n=0;for(let s=0;s<t.length;++s){const o=t[s];let l;if(!(o==="-"||o==="_")){if(o>="a"&&o<="z"?l="lower":o>="A"&&o<="Z"?l="upper":o>="0"&&o<="9"?l="digit":l="other",l==="lower"&&e==="upper"){e=l;continue}e&&e!==l&&++n,e=l}}return n>=t.length/4}function wl(t,e){if(t.length<=e)return t;t=t.substring(0,e);const n=t.match(/^(.*)\b(.+?)$/);return n?n[1].trimEnd():""}function Ss(t){let e=[];{const n=t.match(/^([\d.,]+)[^.,\w]/),s=n?n[1].length:0;if(s){const o=wl(t.substring(s).trimStart(),80);e.push({text:o,scoreBonus:o.length<=30?2:1})}}{const n=t.match(/[^.,\w]([\d.,]+)$/),s=n?n[1].length:0;if(s){const o=wl(t.substring(0,t.length-s).trimEnd(),80);e.push({text:o,scoreBonus:o.length<=30?2:1})}}return t.length<=30?e.push({text:t,scoreBonus:0}):(e.push({text:wl(t,80),scoreBonus:0}),e.push({text:wl(t,30),scoreBonus:1})),e=e.filter(n=>n.text),e.length||e.push({text:t.substring(0,80),scoreBonus:0}),e}function Zy(t,e){const n=t.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/");let s=n.substring(n.lastIndexOf("/")+1);return s.endsWith(e)&&(s=s.substring(0,s.length-e.length)),s}function lb(t,e){return e?e.toUpperCase():""}const ab=/(?:^|[-_/])(\w)/g,ev=t=>t&&t.replace(ab,lb);function cb(t){function e(y){const v=y.name||y._componentTag||y.__playwright_guessedName;if(v)return v;const m=y.__file;if(m)return ev(Zy(m,".vue"))}function n(y,v){return y.type.__playwright_guessedName=v,v}function s(y){var m,w,S,_;const v=e(y.type||{});if(v)return v;if(y.root===y)return"Root";for(const b in(w=(m=y.parent)==null?void 0:m.type)==null?void 0:w.components)if(((S=y.parent)==null?void 0:S.type.components[b])===y.type)return n(y,b);for(const b in(_=y.appContext)==null?void 0:_.components)if(y.appContext.components[b]===y.type)return n(y,b);return"Anonymous Component"}function o(y){return y._isBeingDestroyed||y.isUnmounted}function l(y){return y.subTree.type.toString()==="Symbol(Fragment)"}function c(y){const v=[];return y.component&&v.push(y.component),y.suspense&&v.push(...c(y.suspense.activeBranch)),Array.isArray(y.children)&&y.children.forEach(m=>{m.component?v.push(m.component):v.push(...c(m))}),v.filter(m=>{var w;return!o(m)&&!((w=m.type.devtools)!=null&&w.hide)})}function u(y){return l(y)?d(y.subTree):[y.subTree.el]}function d(y){if(!y.children)return[];const v=[];for(let m=0,w=y.children.length;m<w;m++){const S=y.children[m];S.component?v.push(...u(S.component)):S.el&&v.push(S.el)}return v}function h(y){return{name:s(y),children:c(y.subTree).map(h),rootElements:u(y),props:y.props}}return h(t)}function ub(t){function e(l){const c=l.displayName||l.name||l._componentTag;if(c)return c;const u=l.__file;if(u)return ev(Zy(u,".vue"))}function n(l){const c=e(l.$options||l.fnOptions||{});return c||(l.$root===l?"Root":"Anonymous Component")}function s(l){return l.$children?l.$children:Array.isArray(l.subTree.children)?l.subTree.children.filter(c=>!!c.component).map(c=>c.component):[]}function o(l){return{name:n(l),children:s(l).map(o),rootElements:[l.$el],props:l._props}}return o(t)}function tv(t,e,n=[]){e(t)&&n.push(t);for(const s of t.children)tv(s,e,n);return n}function nv(t,e=[]){const s=(t.ownerDocument||t).createTreeWalker(t,NodeFilter.SHOW_ELEMENT),o=new ke;do{const l=s.currentNode;l.__vue__&&o.add(l.__vue__.$root),l.__vue_app__&&l._vnode&&l._vnode.component&&e.push({root:l._vnode.component,version:3});const c=l instanceof Element?l.shadowRoot:null;c&&nv(c,e)}while(s.nextNode());for(const l of o)e.push({version:2,root:l});return e}const fb=()=>({queryAll(t,e){const n=t.ownerDocument||t,{name:s,attributes:o}=Ir(e,!1),u=nv(n).map(h=>h.version===3?cb(h.root):ub(h.root)).map(h=>tv(h,y=>{if(s&&y.name!==s||y.rootElements.some(v=>!aa(t,v)))return!1;for(const v of o)if(!$y(y.props,v))return!1;return!0})).flat(),d=new ke;for(const h of u)for(const y of h.rootElements)d.add(y);return[...d]}}),Um={queryAll(t,e){if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let l=function(S){const _=[],b=T=>{var N;T.nodeType===Node.ELEMENT_NODE&&_.push(T),(N=T.childNodes)==null||N.forEach(b)};return(S.nodeType===Node.DOCUMENT_FRAGMENT_NODE||S.nodeType===Node.ELEMENT_NODE)&&b(S),_};const c=[],u=new DOMParser,d=t.innerHTML,h=l(t),y=u.parseFromString(d,"text/html"),v=y.body,m=l(v),w=y.evaluate(e,y,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE);for(let S=w.iterateNext();S;S=w.iterateNext()){const _=m.indexOf(S)-1;if(_>=0){const b=h[_];b.nodeType===Node.ELEMENT_NODE&&c.push(b)}}return c}e.startsWith("/")&&t.nodeType!==Node.DOCUMENT_NODE&&(e="."+e);const n=[],s=t.ownerDocument||t;if(!s)return n;const o=s.evaluate(e,t,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE);for(let l=o.iterateNext();l;l=o.iterateNext())l.nodeType===Node.ELEMENT_NODE&&n.push(l);return n}};class rv{constructor(e,n,s,o,l,c,u,d){this._testIdAttributeNameForStrictErrorAndConsoleCodegen="data-testid",this.utils={asLocator:or,cacheNormalizedWhitespaces:Zx,elementText:Lt,getAriaRole:et,getElementAccessibleDescription:jm,getElementAccessibleName:Xi,isElementVisible:Ts,isInsideScope:aa,normalizeWhiteSpace:vt,parseAriaSnapshot:xf,builtins:Vu()},this.window=e,this.document=e.document,this.isUnderTest=n,this.utils.builtins=Vu(e),this._sdkLanguage=s,this._testIdAttributeNameForStrictErrorAndConsoleCodegen=o,this._evaluator=new Mk,this.onGlobalListenersRemoved=new ke,this._autoClosingTags=new ke(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","MENUITEM","META","PARAM","SOURCE","TRACK","WBR"]),this._booleanAttributes=new ke(["checked","selected","disabled","readonly","multiple"]),this._eventTypes=new be([["auxclick","mouse"],["click","mouse"],["dblclick","mouse"],["mousedown","mouse"],["mouseeenter","mouse"],["mouseleave","mouse"],["mousemove","mouse"],["mouseout","mouse"],["mouseover","mouse"],["mouseup","mouse"],["mouseleave","mouse"],["mousewheel","mouse"],["keydown","keyboard"],["keyup","keyboard"],["keypress","keyboard"],["textInput","keyboard"],["touchstart","touch"],["touchmove","touch"],["touchend","touch"],["touchcancel","touch"],["pointerover","pointer"],["pointerout","pointer"],["pointerenter","pointer"],["pointerleave","pointer"],["pointerdown","pointer"],["pointerup","pointer"],["pointermove","pointer"],["pointercancel","pointer"],["gotpointercapture","pointer"],["lostpointercapture","pointer"],["focus","focus"],["blur","focus"],["drag","drag"],["dragstart","drag"],["dragend","drag"],["dragover","drag"],["dragenter","drag"],["dragleave","drag"],["dragexit","drag"],["drop","drag"],["wheel","wheel"],["deviceorientation","deviceorientation"],["deviceorientationabsolute","deviceorientation"],["devicemotion","devicemotion"]]),this._hoverHitTargetInterceptorEvents=new ke(["mousemove"]),this._tapHitTargetInterceptorEvents=new ke(["pointerdown","pointerup","touchstart","touchend","touchcancel"]),this._mouseHitTargetInterceptorEvents=new ke(["mousedown","mouseup","pointerdown","pointerup","click","auxclick","dblclick","contextmenu"]),this._allHitTargetInterceptorEvents=new ke([...this._hoverHitTargetInterceptorEvents,...this._tapHitTargetInterceptorEvents,...this._mouseHitTargetInterceptorEvents]),this._engines=new be,this._engines.set("xpath",Um),this._engines.set("xpath:light",Um),this._engines.set("_react",jk()),this._engines.set("_vue",fb()),this._engines.set("role",Pm(!1)),this._engines.set("text",this._createTextEngine(!0,!1)),this._engines.set("text:light",this._createTextEngine(!1,!1)),this._engines.set("id",this._createAttributeEngine("id",!0)),this._engines.set("id:light",this._createAttributeEngine("id",!1)),this._engines.set("data-testid",this._createAttributeEngine("data-testid",!0)),this._engines.set("data-testid:light",this._createAttributeEngine("data-testid",!1)),this._engines.set("data-test-id",this._createAttributeEngine("data-test-id",!0)),this._engines.set("data-test-id:light",this._createAttributeEngine("data-test-id",!1)),this._engines.set("data-test",this._createAttributeEngine("data-test",!0)),this._engines.set("data-test:light",this._createAttributeEngine("data-test",!1)),this._engines.set("css",this._createCSSEngine()),this._engines.set("nth",{queryAll:()=>[]}),this._engines.set("visible",this._createVisibleEngine()),this._engines.set("internal:control",this._createControlEngine()),this._engines.set("internal:has",this._createHasEngine()),this._engines.set("internal:has-not",this._createHasNotEngine()),this._engines.set("internal:and",{queryAll:()=>[]}),this._engines.set("internal:or",{queryAll:()=>[]}),this._engines.set("internal:chain",this._createInternalChainEngine()),this._engines.set("internal:label",this._createInternalLabelEngine()),this._engines.set("internal:text",this._createTextEngine(!0,!0)),this._engines.set("internal:has-text",this._createInternalHasTextEngine()),this._engines.set("internal:has-not-text",this._createInternalHasNotTextEngine()),this._engines.set("internal:attr",this._createNamedAttributeEngine()),this._engines.set("internal:testid",this._createNamedAttributeEngine()),this._engines.set("internal:role",Pm(!0)),this._engines.set("aria-ref",this._createAriaIdEngine());for(const{name:h,engine:y}of d)this._engines.set(h,y);this._stableRafCount=l,this._browserName=c,K_({browserNameForWorkarounds:c,inputFileRoleTextbox:u}),this._setupGlobalListenersRemovalDetection(),this._setupHitTargetInterceptors(),n&&(this.window.__injectedScript=this)}eval(e){return this.window.eval(e)}testIdAttributeNameForStrictErrorAndConsoleCodegen(){return this._testIdAttributeNameForStrictErrorAndConsoleCodegen}parseSelector(e){const n=na(e);return Xx(n,s=>{if(!this._engines.has(s.name))throw this.createStacklessError(`Unknown engine "${s.name}" while parsing selector ${e}`)}),n}generateSelector(e,n){return Fm(this,e,n)}generateSelectorSimple(e,n){return Fm(this,e,{...n,testIdAttributeName:this._testIdAttributeNameForStrictErrorAndConsoleCodegen}).selector}querySelector(e,n,s){const o=this.querySelectorAll(e,n);if(s&&o.length>1)throw this.strictModeViolationError(e,o);return o[0]}_queryNth(e,n){const s=[...e];let o=+n.body;return o===-1&&(o=s.length-1),new ke(s.slice(o,o+1))}_queryLayoutSelector(e,n,s){const o=n.name,l=n.body,c=[],u=this.querySelectorAll(l.parsed,s);for(const d of e){const h=My(o,d,u,l.distance);h!==void 0&&c.push({element:d,score:h})}return c.sort((d,h)=>d.score-h.score),new ke(c.map(d=>d.element))}ariaSnapshot(e,n){var o;if(e.nodeType!==Node.ELEMENT_NODE)throw this.createStacklessError("Can only capture aria snapshot of Element nodes.");const s=(((o=this._lastAriaSnapshot)==null?void 0:o.generation)||0)+1;return this._lastAriaSnapshot=Rf(e,s),ef(this._lastAriaSnapshot,n)}ariaSnapshotElement(e,n){return e.elements.get(n)||null}getAllByAria(e,n){return vk(e.documentElement,n)}querySelectorAll(e,n){if(e.capture!==void 0){if(e.parts.some(o=>o.name==="nth"))throw this.createStacklessError("Can't query n-th element in a request with the capture.");const s={parts:e.parts.slice(0,e.capture+1)};if(e.capture<e.parts.length-1){const o={parts:e.parts.slice(e.capture+1)},l={name:"internal:has",body:{parsed:o},source:jn(o)};s.parts.push(l)}return this.querySelectorAll(s,n)}if(!n.querySelectorAll)throw this.createStacklessError("Node is not queryable.");if(e.capture!==void 0)throw this.createStacklessError("Internal error: there should not be a capture in the selector.");if(n.nodeType===11&&e.parts.length===1&&e.parts[0].name==="css"&&e.parts[0].source===":scope")return[n];this._evaluator.begin();try{let s=new ke([n]);for(const o of e.parts)if(o.name==="nth")s=this._queryNth(s,o);else if(o.name==="internal:and"){const l=this.querySelectorAll(o.body.parsed,n);s=new ke(l.filter(c=>s.has(c)))}else if(o.name==="internal:or"){const l=this.querySelectorAll(o.body.parsed,n);s=new ke(Uy(new ke([...s,...l])))}else if(Tk.includes(o.name))s=this._queryLayoutSelector(s,o,n);else{const l=new ke;for(const c of s){const u=this._queryEngineAll(o,c);for(const d of u)l.add(d)}s=l}return[...s]}finally{this._evaluator.end()}}_queryEngineAll(e,n){const s=this._engines.get(e.name).queryAll(n,e.body);for(const o of s)if(!("nodeName"in o))throw this.createStacklessError(`Expected a Node but got ${Object.prototype.toString.call(o)}`);return s}_createAttributeEngine(e,n){const s=o=>[{simples:[{selector:{css:`[${e}=${JSON.stringify(o)}]`,functions:[]},combinator:""}]}];return{queryAll:(o,l)=>this._evaluator.query({scope:o,pierceShadow:n},s(l))}}_createCSSEngine(){return{queryAll:(e,n)=>this._evaluator.query({scope:e,pierceShadow:!0},n)}}_createTextEngine(e,n){return{queryAll:(o,l)=>{const{matcher:c,kind:u}=Sl(l,n),d=[];let h=null;const y=m=>{if(u==="lax"&&h&&h.contains(m))return!1;const w=ca(this._evaluator._cacheText,m,c);w==="none"&&(h=m),(w==="self"||w==="selfAndChildren"&&u==="strict"&&!n)&&d.push(m)};o.nodeType===Node.ELEMENT_NODE&&y(o);const v=this._evaluator._queryCSS({scope:o,pierceShadow:e},"*");for(const m of v)y(m);return d}}}_createInternalHasTextEngine(){return{queryAll:(e,n)=>{if(e.nodeType!==1)return[];const s=e,o=Lt(this._evaluator._cacheText,s),{matcher:l}=Sl(n,!0);return l(o)?[s]:[]}}}_createInternalHasNotTextEngine(){return{queryAll:(e,n)=>{if(e.nodeType!==1)return[];const s=e,o=Lt(this._evaluator._cacheText,s),{matcher:l}=Sl(n,!0);return l(o)?[]:[s]}}}_createInternalLabelEngine(){return{queryAll:(e,n)=>{const{matcher:s}=Sl(n,!0);return this._evaluator._queryCSS({scope:e,pierceShadow:!0},"*").filter(l=>Ry(this._evaluator._cacheText,l).some(c=>s(c)))}}}_createNamedAttributeEngine(){return{queryAll:(n,s)=>{const o=Ir(s,!0);if(o.name||o.attributes.length!==1)throw new Error("Malformed attribute selector: "+s);const{name:l,value:c,caseSensitive:u}=o.attributes[0],d=u?null:c.toLowerCase();let h;return c instanceof RegExp?h=v=>!!v.match(c):u?h=v=>v===c:h=v=>v.toLowerCase().includes(d),this._evaluator._queryCSS({scope:n,pierceShadow:!0},`[${l}]`).filter(v=>h(v.getAttribute(l)))}}}_createControlEngine(){return{queryAll(e,n){if(n==="enter-frame")return[];if(n==="return-empty")return[];if(n==="component")return e.nodeType!==1?[]:[e.childElementCount===1?e.firstElementChild:e];throw new Error(`Internal error, unknown internal:control selector ${n}`)}}}_createHasEngine(){return{queryAll:(n,s)=>n.nodeType!==1?[]:!!this.querySelector(s.parsed,n,!1)?[n]:[]}}_createHasNotEngine(){return{queryAll:(n,s)=>n.nodeType!==1?[]:!!this.querySelector(s.parsed,n,!1)?[]:[n]}}_createVisibleEngine(){return{queryAll:(n,s)=>{if(n.nodeType!==1)return[];const o=s==="true";return Ts(n)===o?[n]:[]}}}_createInternalChainEngine(){return{queryAll:(n,s)=>this.querySelectorAll(s.parsed,n)}}extend(e,n){const s=this.window.eval(`
116
116
  (() => {
117
117
  const module = {};
118
118
  ${e}