playwright-core 1.58.0-alpha-2025-12-16 → 1.58.0-alpha-2025-12-17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/generated/injectedScriptSource.js +1 -1
- package/lib/server/agent/actionRunner.js +56 -16
- package/lib/server/agent/agent.js +19 -8
- package/lib/server/agent/codegen.js +2 -0
- package/lib/server/agent/context.js +17 -20
- package/lib/server/bidi/bidiExecutionContext.js +9 -6
- package/lib/server/progress.js +7 -3
- package/lib/server/trace/viewer/traceViewer.js +17 -13
- package/lib/utils/isomorphic/trace/traceModel.js +4 -4
- package/lib/vite/traceViewer/assets/{codeMirrorModule-Dqdugjpa.js → codeMirrorModule-DqqhreXd.js} +1 -1
- package/lib/vite/traceViewer/assets/{defaultSettingsView-DIraU59a.js → defaultSettingsView-B-IIHg_U.js} +8 -8
- package/lib/vite/traceViewer/{index.D-mekvnz.js → index.CVDmenYz.js} +1 -1
- package/lib/vite/traceViewer/index.html +2 -2
- package/lib/vite/traceViewer/sw.bundle.js +4 -4
- package/lib/vite/traceViewer/uiMode.html +2 -2
- package/lib/vite/traceViewer/{uiMode.BL60hFRS.js → uiMode.yq3WDGll.js} +3 -3
- package/package.json +1 -1
- package/types/protocol.d.ts +54 -54
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./codeMirrorModule-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./codeMirrorModule-DqqhreXd.js","../codeMirrorModule.DYBRYzYX.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
var e_=Object.defineProperty;var t_=(n,e,i)=>e in n?e_(n,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[e]=i;var Oa=(n,e,i)=>t_(n,typeof e!="symbol"?e+"":e,i);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function i(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=i(l);fetch(l.href,o)}})();function n_(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var th={exports:{}},ja={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.js
|
|
@@ -15,7 +15,7 @@ var e_=Object.defineProperty;var t_=(n,e,i)=>e in n?e_(n,e,{enumerable:!0,config
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Uy;function r_(){if(Uy)return fe;Uy=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),S=Symbol.iterator;function w(C){return C===null||typeof C!="object"?null:(C=S&&C[S]||C["@@iterator"],typeof C=="function"?C:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,T={};function N(C,Y,P){this.props=C,this.context=Y,this.refs=T,this.updater=P||E}N.prototype.isReactComponent={},N.prototype.setState=function(C,Y){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,Y,"setState")},N.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function M(){}M.prototype=N.prototype;function $(C,Y,P){this.props=C,this.context=Y,this.refs=T,this.updater=P||E}var I=$.prototype=new M;I.constructor=$,_(I,N.prototype),I.isPureReactComponent=!0;var D=Array.isArray;function K(){}var Q={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function j(C,Y,P){var ee=P.ref;return{$$typeof:n,type:C,key:Y,ref:ee!==void 0?ee:null,props:P}}function ne(C,Y){return j(C.type,Y,C.props)}function le(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function V(C){var Y={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(P){return Y[P]})}var J=/\/+/g;function W(C,Y){return typeof C=="object"&&C!==null&&C.key!=null?V(""+C.key):Y.toString(36)}function Ae(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(K,K):(C.status="pending",C.then(function(Y){C.status==="pending"&&(C.status="fulfilled",C.value=Y)},function(Y){C.status==="pending"&&(C.status="rejected",C.reason=Y)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function z(C,Y,P,ee,ue){var re=typeof C;(re==="undefined"||re==="boolean")&&(C=null);var _e=!1;if(C===null)_e=!0;else switch(re){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(C.$$typeof){case n:case e:_e=!0;break;case y:return _e=C._init,z(_e(C._payload),Y,P,ee,ue)}}if(_e)return ue=ue(C),_e=ee===""?"."+W(C,0):ee,D(ue)?(P="",_e!=null&&(P=_e.replace(J,"$&/")+"/"),z(ue,Y,P,"",function(zi){return zi})):ue!=null&&(le(ue)&&(ue=ne(ue,P+(ue.key==null||C&&C.key===ue.key?"":(""+ue.key).replace(J,"$&/")+"/")+_e)),Y.push(ue)),1;_e=0;var tt=ee===""?".":ee+":";if(D(C))for(var Re=0;Re<C.length;Re++)ee=C[Re],re=tt+W(ee,Re),_e+=z(ee,Y,P,re,ue);else if(Re=w(C),typeof Re=="function")for(C=Re.call(C),Re=0;!(ee=C.next()).done;)ee=ee.value,re=tt+W(ee,Re++),_e+=z(ee,Y,P,re,ue);else if(re==="object"){if(typeof C.then=="function")return z(Ae(C),Y,P,ee,ue);throw Y=String(C),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return _e}function Z(C,Y,P){if(C==null)return C;var ee=[],ue=0;return z(C,ee,"","",function(re){return Y.call(P,re,ue++)}),ee}function se(C){if(C._status===-1){var Y=C._result;Y=Y(),Y.then(function(P){(C._status===0||C._status===-1)&&(C._status=1,C._result=P)},function(P){(C._status===0||C._status===-1)&&(C._status=2,C._result=P)}),C._status===-1&&(C._status=0,C._result=Y)}if(C._status===1)return C._result.default;throw C._result}var Se=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},we={map:Z,forEach:function(C,Y,P){Z(C,function(){Y.apply(this,arguments)},P)},count:function(C){var Y=0;return Z(C,function(){Y++}),Y},toArray:function(C){return Z(C,function(Y){return Y})||[]},only:function(C){if(!le(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return fe.Activity=m,fe.Children=we,fe.Component=N,fe.Fragment=i,fe.Profiler=l,fe.PureComponent=$,fe.StrictMode=r,fe.Suspense=d,fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,fe.__COMPILER_RUNTIME={__proto__:null,c:function(C){return Q.H.useMemoCache(C)}},fe.cache=function(C){return function(){return C.apply(null,arguments)}},fe.cacheSignal=function(){return null},fe.cloneElement=function(C,Y,P){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var ee=_({},C.props),ue=C.key;if(Y!=null)for(re in Y.key!==void 0&&(ue=""+Y.key),Y)!q.call(Y,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&Y.ref===void 0||(ee[re]=Y[re]);var re=arguments.length-2;if(re===1)ee.children=P;else if(1<re){for(var _e=Array(re),tt=0;tt<re;tt++)_e[tt]=arguments[tt+2];ee.children=_e}return j(C.type,ue,ee)},fe.createContext=function(C){return C={$$typeof:u,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:o,_context:C},C},fe.createElement=function(C,Y,P){var ee,ue={},re=null;if(Y!=null)for(ee in Y.key!==void 0&&(re=""+Y.key),Y)q.call(Y,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(ue[ee]=Y[ee]);var _e=arguments.length-2;if(_e===1)ue.children=P;else if(1<_e){for(var tt=Array(_e),Re=0;Re<_e;Re++)tt[Re]=arguments[Re+2];ue.children=tt}if(C&&C.defaultProps)for(ee in _e=C.defaultProps,_e)ue[ee]===void 0&&(ue[ee]=_e[ee]);return j(C,re,ue)},fe.createRef=function(){return{current:null}},fe.forwardRef=function(C){return{$$typeof:f,render:C}},fe.isValidElement=le,fe.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:se}},fe.memo=function(C,Y){return{$$typeof:g,type:C,compare:Y===void 0?null:Y}},fe.startTransition=function(C){var Y=Q.T,P={};Q.T=P;try{var ee=C(),ue=Q.S;ue!==null&&ue(P,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(K,Se)}catch(re){Se(re)}finally{Y!==null&&P.types!==null&&(Y.types=P.types),Q.T=Y}},fe.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},fe.use=function(C){return Q.H.use(C)},fe.useActionState=function(C,Y,P){return Q.H.useActionState(C,Y,P)},fe.useCallback=function(C,Y){return Q.H.useCallback(C,Y)},fe.useContext=function(C){return Q.H.useContext(C)},fe.useDebugValue=function(){},fe.useDeferredValue=function(C,Y){return Q.H.useDeferredValue(C,Y)},fe.useEffect=function(C,Y){return Q.H.useEffect(C,Y)},fe.useEffectEvent=function(C){return Q.H.useEffectEvent(C)},fe.useId=function(){return Q.H.useId()},fe.useImperativeHandle=function(C,Y,P){return Q.H.useImperativeHandle(C,Y,P)},fe.useInsertionEffect=function(C,Y){return Q.H.useInsertionEffect(C,Y)},fe.useLayoutEffect=function(C,Y){return Q.H.useLayoutEffect(C,Y)},fe.useMemo=function(C,Y){return Q.H.useMemo(C,Y)},fe.useOptimistic=function(C,Y){return Q.H.useOptimistic(C,Y)},fe.useReducer=function(C,Y,P){return Q.H.useReducer(C,Y,P)},fe.useRef=function(C){return Q.H.useRef(C)},fe.useState=function(C){return Q.H.useState(C)},fe.useSyncExternalStore=function(C,Y,P){return Q.H.useSyncExternalStore(C,Y,P)},fe.useTransition=function(){return Q.H.useTransition()},fe.version="19.2.1",fe}var Hy;function Yh(){return Hy||(Hy=1,nh.exports=r_()),nh.exports}var U=Yh();const gt=n_(U);function ec(n,e,i,r){const[l,o]=gt.useState(i);return gt.useEffect(()=>{let u=!1;return n().then(f=>{u||o(f)}),()=>{u=!0}},e),l}function gs(){const n=gt.useRef(null),[e]=Eh(n);return[e,n]}function Eh(n){const[e,i]=gt.useState(new DOMRect(0,0,10,10)),r=gt.useCallback(()=>{const l=n==null?void 0:n.current;l&&i(l.getBoundingClientRect())},[n]);return gt.useLayoutEffect(()=>{const l=n==null?void 0:n.current;if(!l)return;r();const o=new ResizeObserver(r);return o.observe(l),window.addEventListener("resize",r),()=>{o.disconnect(),window.removeEventListener("resize",r)}},[r,n]),[e,r]}function Et(n){if(n<0||!isFinite(n))return"-";if(n===0)return"0";if(n<1e3)return n.toFixed(0)+"ms";const e=n/1e3;if(e<60)return e.toFixed(1)+"s";const i=e/60;if(i<60)return i.toFixed(1)+"m";const r=i/60;return r<24?r.toFixed(1)+"h":(r/24).toFixed(1)+"d"}function a_(n){if(n<0||!isFinite(n))return"-";if(n===0)return"0";if(n<1e3)return n.toFixed(0);const e=n/1024;if(e<1e3)return e.toFixed(1)+"K";const i=e/1024;return i<1e3?i.toFixed(1)+"M":(i/1024).toFixed(1)+"G"}function K0(n,e,i,r,l){let o=0,u=n.length;for(;o<u;){const f=o+u>>1;i(e,n[f])>=0?o=f+1:u=f}return u}function qy(n){const e=document.createElement("textarea");e.style.position="absolute",e.style.zIndex="-1000",e.value=n,document.body.appendChild(e),e.select(),document.execCommand("copy"),e.remove()}function on(n,e){n&&(e=ls.getObject(n,e));const[i,r]=gt.useState(e),l=gt.useCallback(o=>{n?ls.setObject(n,o):r(o)},[n,r]);return gt.useEffect(()=>{if(n){const o=()=>r(ls.getObject(n,e));return ls.onChangeEmitter.addEventListener(n,o),()=>ls.onChangeEmitter.removeEventListener(n,o)}},[e,n]),[i,l]}const Ah=new Map,Y0=new Map;let tc;function Ci(n,e){const[i,r]=gt.useState();Y0.set(n,{setter:r,defaultValue:e});const l=gt.useCallback(o=>{const u=Ah.get(tc||"default")||{};u[n]=o,Ah.set(tc||"default",u),r(o)},[n]);return[i,l]}function l_(n){if(tc===n)return;tc=n;const e=Ah.get(n)||{};for(const[i,r]of Y0.entries())r.setter(e[i]||r.defaultValue)}class o_{constructor(){this.onChangeEmitter=new EventTarget}getString(e,i){return localStorage[e]||i}setString(e,i){var r;localStorage[e]=i,this.onChangeEmitter.dispatchEvent(new Event(e)),(r=window.saveSettings)==null||r.call(window)}getObject(e,i){if(!localStorage[e])return i;try{return JSON.parse(localStorage[e])}catch{return i}}setObject(e,i){var r;localStorage[e]=JSON.stringify(i),this.onChangeEmitter.dispatchEvent(new Event(e)),(r=window.saveSettings)==null||r.call(window)}}const ls=new o_;function Fe(...n){return n.filter(Boolean).join(" ")}function X0(n){n&&(n!=null&&n.scrollIntoViewIfNeeded?n.scrollIntoViewIfNeeded(!1):n==null||n.scrollIntoView())}const $y="\\u0000-\\u0020\\u007f-\\u009f",F0=new RegExp("(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|www\\.)[^\\s"+$y+'"]{2,}[^\\s'+$y+`"')}\\],:;.!?]`,"ug");function c_(){const[n,e]=gt.useState(!1),i=gt.useCallback(()=>{const r=[];return e(l=>(r.push(setTimeout(()=>e(!1),1e3)),l?(r.push(setTimeout(()=>e(!0),50)),!1):!0)),()=>r.forEach(clearTimeout)},[e]);return[n,i]}const u_="system",Q0="theme",f_=[{label:"Dark mode",value:"dark-mode"},{label:"Light mode",value:"light-mode"},{label:"System",value:"system"}],J0=window.matchMedia("(prefers-color-scheme: dark)");function AC(){document.playwrightThemeInitialized||(document.playwrightThemeInitialized=!0,document.defaultView.addEventListener("focus",n=>{n.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove("inactive")},!1),document.defaultView.addEventListener("blur",n=>{document.body.classList.add("inactive")},!1),Nh(Ch()),J0.addEventListener("change",()=>{Nh(Ch())}))}const Xh=new Set;function Nh(n){const e=h_(),i=n==="system"?J0.matches?"dark-mode":"light-mode":n;if(e!==i){e&&document.documentElement.classList.remove(e),document.documentElement.classList.add(i);for(const r of Xh)r(i)}}function NC(n){Xh.add(n)}function CC(n){Xh.delete(n)}function Ch(){return ls.getString(Q0,u_)}function h_(){return document.documentElement.classList.contains("dark-mode")?"dark-mode":document.documentElement.classList.contains("light-mode")?"light-mode":null}function d_(){const[n,e]=gt.useState(Ch());return gt.useEffect(()=>{ls.setString(Q0,n),Nh(n)},[n]),[n,e]}var ih={exports:{}},La={},sh={exports:{}},rh={};/**
|
|
18
|
+
*/var Uy;function r_(){if(Uy)return fe;Uy=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),S=Symbol.iterator;function w(C){return C===null||typeof C!="object"?null:(C=S&&C[S]||C["@@iterator"],typeof C=="function"?C:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,T={};function N(C,Y,P){this.props=C,this.context=Y,this.refs=T,this.updater=P||E}N.prototype.isReactComponent={},N.prototype.setState=function(C,Y){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,Y,"setState")},N.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function M(){}M.prototype=N.prototype;function $(C,Y,P){this.props=C,this.context=Y,this.refs=T,this.updater=P||E}var I=$.prototype=new M;I.constructor=$,_(I,N.prototype),I.isPureReactComponent=!0;var D=Array.isArray;function K(){}var Q={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function j(C,Y,P){var ee=P.ref;return{$$typeof:n,type:C,key:Y,ref:ee!==void 0?ee:null,props:P}}function ne(C,Y){return j(C.type,Y,C.props)}function le(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function V(C){var Y={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(P){return Y[P]})}var J=/\/+/g;function W(C,Y){return typeof C=="object"&&C!==null&&C.key!=null?V(""+C.key):Y.toString(36)}function Ae(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(K,K):(C.status="pending",C.then(function(Y){C.status==="pending"&&(C.status="fulfilled",C.value=Y)},function(Y){C.status==="pending"&&(C.status="rejected",C.reason=Y)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function z(C,Y,P,ee,ue){var re=typeof C;(re==="undefined"||re==="boolean")&&(C=null);var _e=!1;if(C===null)_e=!0;else switch(re){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(C.$$typeof){case n:case e:_e=!0;break;case y:return _e=C._init,z(_e(C._payload),Y,P,ee,ue)}}if(_e)return ue=ue(C),_e=ee===""?"."+W(C,0):ee,D(ue)?(P="",_e!=null&&(P=_e.replace(J,"$&/")+"/"),z(ue,Y,P,"",function(zi){return zi})):ue!=null&&(le(ue)&&(ue=ne(ue,P+(ue.key==null||C&&C.key===ue.key?"":(""+ue.key).replace(J,"$&/")+"/")+_e)),Y.push(ue)),1;_e=0;var tt=ee===""?".":ee+":";if(D(C))for(var Re=0;Re<C.length;Re++)ee=C[Re],re=tt+W(ee,Re),_e+=z(ee,Y,P,re,ue);else if(Re=w(C),typeof Re=="function")for(C=Re.call(C),Re=0;!(ee=C.next()).done;)ee=ee.value,re=tt+W(ee,Re++),_e+=z(ee,Y,P,re,ue);else if(re==="object"){if(typeof C.then=="function")return z(Ae(C),Y,P,ee,ue);throw Y=String(C),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return _e}function Z(C,Y,P){if(C==null)return C;var ee=[],ue=0;return z(C,ee,"","",function(re){return Y.call(P,re,ue++)}),ee}function se(C){if(C._status===-1){var Y=C._result;Y=Y(),Y.then(function(P){(C._status===0||C._status===-1)&&(C._status=1,C._result=P)},function(P){(C._status===0||C._status===-1)&&(C._status=2,C._result=P)}),C._status===-1&&(C._status=0,C._result=Y)}if(C._status===1)return C._result.default;throw C._result}var Se=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},we={map:Z,forEach:function(C,Y,P){Z(C,function(){Y.apply(this,arguments)},P)},count:function(C){var Y=0;return Z(C,function(){Y++}),Y},toArray:function(C){return Z(C,function(Y){return Y})||[]},only:function(C){if(!le(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return fe.Activity=m,fe.Children=we,fe.Component=N,fe.Fragment=i,fe.Profiler=l,fe.PureComponent=$,fe.StrictMode=r,fe.Suspense=d,fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,fe.__COMPILER_RUNTIME={__proto__:null,c:function(C){return Q.H.useMemoCache(C)}},fe.cache=function(C){return function(){return C.apply(null,arguments)}},fe.cacheSignal=function(){return null},fe.cloneElement=function(C,Y,P){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var ee=_({},C.props),ue=C.key;if(Y!=null)for(re in Y.key!==void 0&&(ue=""+Y.key),Y)!q.call(Y,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&Y.ref===void 0||(ee[re]=Y[re]);var re=arguments.length-2;if(re===1)ee.children=P;else if(1<re){for(var _e=Array(re),tt=0;tt<re;tt++)_e[tt]=arguments[tt+2];ee.children=_e}return j(C.type,ue,ee)},fe.createContext=function(C){return C={$$typeof:u,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:o,_context:C},C},fe.createElement=function(C,Y,P){var ee,ue={},re=null;if(Y!=null)for(ee in Y.key!==void 0&&(re=""+Y.key),Y)q.call(Y,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(ue[ee]=Y[ee]);var _e=arguments.length-2;if(_e===1)ue.children=P;else if(1<_e){for(var tt=Array(_e),Re=0;Re<_e;Re++)tt[Re]=arguments[Re+2];ue.children=tt}if(C&&C.defaultProps)for(ee in _e=C.defaultProps,_e)ue[ee]===void 0&&(ue[ee]=_e[ee]);return j(C,re,ue)},fe.createRef=function(){return{current:null}},fe.forwardRef=function(C){return{$$typeof:f,render:C}},fe.isValidElement=le,fe.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:se}},fe.memo=function(C,Y){return{$$typeof:g,type:C,compare:Y===void 0?null:Y}},fe.startTransition=function(C){var Y=Q.T,P={};Q.T=P;try{var ee=C(),ue=Q.S;ue!==null&&ue(P,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(K,Se)}catch(re){Se(re)}finally{Y!==null&&P.types!==null&&(Y.types=P.types),Q.T=Y}},fe.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},fe.use=function(C){return Q.H.use(C)},fe.useActionState=function(C,Y,P){return Q.H.useActionState(C,Y,P)},fe.useCallback=function(C,Y){return Q.H.useCallback(C,Y)},fe.useContext=function(C){return Q.H.useContext(C)},fe.useDebugValue=function(){},fe.useDeferredValue=function(C,Y){return Q.H.useDeferredValue(C,Y)},fe.useEffect=function(C,Y){return Q.H.useEffect(C,Y)},fe.useEffectEvent=function(C){return Q.H.useEffectEvent(C)},fe.useId=function(){return Q.H.useId()},fe.useImperativeHandle=function(C,Y,P){return Q.H.useImperativeHandle(C,Y,P)},fe.useInsertionEffect=function(C,Y){return Q.H.useInsertionEffect(C,Y)},fe.useLayoutEffect=function(C,Y){return Q.H.useLayoutEffect(C,Y)},fe.useMemo=function(C,Y){return Q.H.useMemo(C,Y)},fe.useOptimistic=function(C,Y){return Q.H.useOptimistic(C,Y)},fe.useReducer=function(C,Y,P){return Q.H.useReducer(C,Y,P)},fe.useRef=function(C){return Q.H.useRef(C)},fe.useState=function(C){return Q.H.useState(C)},fe.useSyncExternalStore=function(C,Y,P){return Q.H.useSyncExternalStore(C,Y,P)},fe.useTransition=function(){return Q.H.useTransition()},fe.version="19.2.1",fe}var Hy;function Yh(){return Hy||(Hy=1,nh.exports=r_()),nh.exports}var U=Yh();const gt=n_(U);function ec(n,e,i,r){const[l,o]=gt.useState(i);return gt.useEffect(()=>{let u=!1;return n().then(f=>{u||o(f)}),()=>{u=!0}},e),l}function gs(){const n=gt.useRef(null),[e]=Eh(n);return[e,n]}function Eh(n){const[e,i]=gt.useState(new DOMRect(0,0,10,10)),r=gt.useCallback(()=>{const l=n==null?void 0:n.current;l&&i(l.getBoundingClientRect())},[n]);return gt.useLayoutEffect(()=>{const l=n==null?void 0:n.current;if(!l)return;r();const o=new ResizeObserver(r);return o.observe(l),window.addEventListener("resize",r),()=>{o.disconnect(),window.removeEventListener("resize",r)}},[r,n]),[e,r]}function Et(n){if(n<0||!isFinite(n))return"-";if(n===0)return"0";if(n<1e3)return n.toFixed(0)+"ms";const e=n/1e3;if(e<60)return e.toFixed(1)+"s";const i=e/60;if(i<60)return i.toFixed(1)+"m";const r=i/60;return r<24?r.toFixed(1)+"h":(r/24).toFixed(1)+"d"}function a_(n){if(n<0||!isFinite(n))return"-";if(n===0)return"0";if(n<1e3)return n.toFixed(0);const e=n/1024;if(e<1e3)return e.toFixed(1)+"K";const i=e/1024;return i<1e3?i.toFixed(1)+"M":(i/1024).toFixed(1)+"G"}function K0(n,e,i,r,l){let o=0,u=n.length;for(;o<u;){const f=o+u>>1;i(e,n[f])>=0?o=f+1:u=f}return u}function qy(n){const e=document.createElement("textarea");e.style.position="absolute",e.style.zIndex="-1000",e.value=n,document.body.appendChild(e),e.select(),document.execCommand("copy"),e.remove()}function on(n,e){n&&(e=ls.getObject(n,e));const[i,r]=gt.useState(e),l=gt.useCallback(o=>{n?ls.setObject(n,o):r(o)},[n,r]);return gt.useEffect(()=>{if(n){const o=()=>r(ls.getObject(n,e));return ls.onChangeEmitter.addEventListener(n,o),()=>ls.onChangeEmitter.removeEventListener(n,o)}},[e,n]),[i,l]}const Ah=new Map,Y0=new Map;let tc;function Ci(n,e){const[i,r]=gt.useState();Y0.set(n,{setter:r,defaultValue:e});const l=gt.useCallback(o=>{const u=Ah.get(tc||"default")||{};u[n]=o,Ah.set(tc||"default",u),r(o)},[n]);return[i,l]}function l_(n){if(tc===n)return;tc=n;const e=Ah.get(n)||{};for(const[i,r]of Y0.entries())r.setter(e[i]||r.defaultValue)}class o_{constructor(){this.onChangeEmitter=new EventTarget}getString(e,i){return localStorage[e]||i}setString(e,i){var r;localStorage[e]=i,this.onChangeEmitter.dispatchEvent(new Event(e)),(r=window.saveSettings)==null||r.call(window)}getObject(e,i){if(!localStorage[e])return i;try{return JSON.parse(localStorage[e])}catch{return i}}setObject(e,i){var r;localStorage[e]=JSON.stringify(i),this.onChangeEmitter.dispatchEvent(new Event(e)),(r=window.saveSettings)==null||r.call(window)}}const ls=new o_;function Fe(...n){return n.filter(Boolean).join(" ")}function X0(n){n&&(n!=null&&n.scrollIntoViewIfNeeded?n.scrollIntoViewIfNeeded(!1):n==null||n.scrollIntoView())}const $y="\\u0000-\\u0020\\u007f-\\u009f",F0=new RegExp("(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|www\\.)[^\\s"+$y+'"]{2,}[^\\s'+$y+`"')}\\],:;.!?]`,"ug");function c_(){const[n,e]=gt.useState(!1),i=gt.useCallback(()=>{const r=[];return e(l=>(r.push(setTimeout(()=>e(!1),1e3)),l?(r.push(setTimeout(()=>e(!0),50)),!1):!0)),()=>r.forEach(clearTimeout)},[e]);return[n,i]}const u_="system",Q0="theme",f_=[{label:"Dark mode",value:"dark-mode"},{label:"Light mode",value:"light-mode"},{label:"System",value:"system"}],J0=window.matchMedia("(prefers-color-scheme: dark)");function NC(){document.playwrightThemeInitialized||(document.playwrightThemeInitialized=!0,document.defaultView.addEventListener("focus",n=>{n.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove("inactive")},!1),document.defaultView.addEventListener("blur",n=>{document.body.classList.add("inactive")},!1),Nh(Ch()),J0.addEventListener("change",()=>{Nh(Ch())}))}const Xh=new Set;function Nh(n){const e=h_(),i=n==="system"?J0.matches?"dark-mode":"light-mode":n;if(e!==i){e&&document.documentElement.classList.remove(e),document.documentElement.classList.add(i);for(const r of Xh)r(i)}}function CC(n){Xh.add(n)}function kC(n){Xh.delete(n)}function Ch(){return ls.getString(Q0,u_)}function h_(){return document.documentElement.classList.contains("dark-mode")?"dark-mode":document.documentElement.classList.contains("light-mode")?"light-mode":null}function d_(){const[n,e]=gt.useState(Ch());return gt.useEffect(()=>{ls.setString(Q0,n),Nh(n)},[n]),[n,e]}var ih={exports:{}},La={},sh={exports:{}},rh={};/**
|
|
19
19
|
* @license React
|
|
20
20
|
* scheduler.production.js
|
|
21
21
|
*
|
|
@@ -47,8 +47,8 @@ var e_=Object.defineProperty;var t_=(n,e,i)=>e in n?e_(n,e,{enumerable:!0,config
|
|
|
47
47
|
`+A[c].replace(" at new "," at ");return t.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",t.displayName)),G}while(1<=c&&0<=h);break}}}finally{vs=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?nt(a):""}function Bc(t,s){switch(t.tag){case 26:case 27:case 5:return nt(t.type);case 16:return nt("Lazy");case 13:return t.child!==s&&s!==null?nt("Suspense Fallback"):nt("Suspense");case 19:return nt("SuspenseList");case 0:case 15:return zr(t.type,!1);case 11:return zr(t.type.render,!1);case 1:return zr(t.type,!0);case 31:return nt("Activity");default:return""}}function Ss(t){try{var s="",a=null;do s+=Bc(t,a),a=t,t=t.return;while(t);return s}catch(c){return`
|
|
48
48
|
Error generating stack: `+c.message+`
|
|
49
49
|
`+c.stack}}var Ui=Object.prototype.hasOwnProperty,ti=n.unstable_scheduleCallback,Ur=n.unstable_cancelCallback,ni=n.unstable_shouldYield,zc=n.unstable_requestPaint,St=n.unstable_now,Uc=n.unstable_getCurrentPriorityLevel,dl=n.unstable_ImmediatePriority,Hr=n.unstable_UserBlockingPriority,ii=n.unstable_NormalPriority,Hc=n.unstable_LowPriority,pl=n.unstable_IdlePriority,qc=n.log,Hi=n.unstable_setDisableYieldValue,Mn=null,rt=null;function vn(t){if(typeof qc=="function"&&Hi(t),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Mn,t)}catch{}}var wt=Math.clz32?Math.clz32:ce,$c=Math.log,gl=Math.LN2;function ce(t){return t>>>=0,t===0?32:31-($c(t)/gl|0)|0}var Sn=256,Ft=262144,ml=4194304;function qi(t){var s=t&42;if(s!==0)return s;switch(t&-t){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function yl(t,s,a){var c=t.pendingLanes;if(c===0)return 0;var h=0,p=t.suspendedLanes,b=t.pingedLanes;t=t.warmLanes;var x=c&134217727;return x!==0?(c=x&~p,c!==0?h=qi(c):(b&=x,b!==0?h=qi(b):a||(a=x&~t,a!==0&&(h=qi(a))))):(x=c&~p,x!==0?h=qi(x):b!==0?h=qi(b):a||(a=c&~t,a!==0&&(h=qi(a)))),h===0?0:s!==0&&s!==h&&(s&p)===0&&(p=h&-h,a=s&-s,p>=a||p===32&&(a&4194048)!==0)?s:h}function qr(t,s){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&s)===0}function $S(t,s){switch(t){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32: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 s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qd(){var t=ml;return ml<<=1,(ml&62914560)===0&&(ml=4194304),t}function Ic(t){for(var s=[],a=0;31>a;a++)s.push(t);return s}function $r(t,s){t.pendingLanes|=s,s!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function IS(t,s,a,c,h,p){var b=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var x=t.entanglements,A=t.expirationTimes,R=t.hiddenUpdates;for(a=b&~a;0<a;){var G=31-wt(a),F=1<<G;x[G]=0,A[G]=-1;var B=R[G];if(B!==null)for(R[G]=null,G=0;G<B.length;G++){var H=B[G];H!==null&&(H.lane&=-536870913)}a&=~F}c!==0&&$d(t,c,0),p!==0&&h===0&&t.tag!==0&&(t.suspendedLanes|=p&~(b&~s))}function $d(t,s,a){t.pendingLanes|=s,t.suspendedLanes&=~s;var c=31-wt(s);t.entangledLanes|=s,t.entanglements[c]=t.entanglements[c]|1073741824|a&261930}function Id(t,s){var a=t.entangledLanes|=s;for(t=t.entanglements;a;){var c=31-wt(a),h=1<<c;h&s|t[c]&s&&(t[c]|=s),a&=~h}}function Vd(t,s){var a=s&-s;return a=(a&42)!==0?1:Vc(a),(a&(t.suspendedLanes|s))!==0?0:a}function Vc(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Gc(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Gd(){var t=Z.p;return t!==0?t:(t=window.event,t===void 0?32:ky(t.type))}function Kd(t,s){var a=Z.p;try{return Z.p=t,s()}finally{Z.p=a}}var si=Math.random().toString(36).slice(2),ot="__reactFiber$"+si,Nt="__reactProps$"+si,ws="__reactContainer$"+si,Kc="__reactEvents$"+si,VS="__reactListeners$"+si,GS="__reactHandles$"+si,Yd="__reactResources$"+si,Ir="__reactMarker$"+si;function Yc(t){delete t[ot],delete t[Nt],delete t[Kc],delete t[VS],delete t[GS]}function _s(t){var s=t[ot];if(s)return s;for(var a=t.parentNode;a;){if(s=a[ws]||a[ot]){if(a=s.alternate,s.child!==null||a!==null&&a.child!==null)for(t=dy(t);t!==null;){if(a=t[ot])return a;t=dy(t)}return s}t=a,a=t.parentNode}return null}function xs(t){if(t=t[ot]||t[ws]){var s=t.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return t}return null}function Vr(t){var s=t.tag;if(s===5||s===26||s===27||s===6)return t.stateNode;throw Error(r(33))}function Ts(t){var s=t[Yd];return s||(s=t[Yd]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function at(t){t[Ir]=!0}var Xd=new Set,Fd={};function $i(t,s){Es(t,s),Es(t+"Capture",s)}function Es(t,s){for(Fd[t]=s,t=0;t<s.length;t++)Xd.add(s[t])}var KS=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Qd={},Jd={};function YS(t){return Ui.call(Jd,t)?!0:Ui.call(Qd,t)?!1:KS.test(t)?Jd[t]=!0:(Qd[t]=!0,!1)}function bl(t,s,a){if(YS(s))if(a===null)t.removeAttribute(s);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(s);return;case"boolean":var c=s.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){t.removeAttribute(s);return}}t.setAttribute(s,""+a)}}function vl(t,s,a){if(a===null)t.removeAttribute(s);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(s);return}t.setAttribute(s,""+a)}}function On(t,s,a,c){if(c===null)t.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(s,a,""+c)}}function Qt(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Zd(t){var s=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function XS(t,s,a){var c=Object.getOwnPropertyDescriptor(t.constructor.prototype,s);if(!t.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var h=c.get,p=c.set;return Object.defineProperty(t,s,{configurable:!0,get:function(){return h.call(this)},set:function(b){a=""+b,p.call(this,b)}}),Object.defineProperty(t,s,{enumerable:c.enumerable}),{getValue:function(){return a},setValue:function(b){a=""+b},stopTracking:function(){t._valueTracker=null,delete t[s]}}}}function Xc(t){if(!t._valueTracker){var s=Zd(t)?"checked":"value";t._valueTracker=XS(t,s,""+t[s])}}function Pd(t){if(!t)return!1;var s=t._valueTracker;if(!s)return!0;var a=s.getValue(),c="";return t&&(c=Zd(t)?t.checked?"true":"false":t.value),t=c,t!==a?(s.setValue(t),!0):!1}function Sl(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var FS=/[\n"\\]/g;function Jt(t){return t.replace(FS,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Fc(t,s,a,c,h,p,b,x){t.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.type=b:t.removeAttribute("type"),s!=null?b==="number"?(s===0&&t.value===""||t.value!=s)&&(t.value=""+Qt(s)):t.value!==""+Qt(s)&&(t.value=""+Qt(s)):b!=="submit"&&b!=="reset"||t.removeAttribute("value"),s!=null?Qc(t,b,Qt(s)):a!=null?Qc(t,b,Qt(a)):c!=null&&t.removeAttribute("value"),h==null&&p!=null&&(t.defaultChecked=!!p),h!=null&&(t.checked=h&&typeof h!="function"&&typeof h!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+Qt(x):t.removeAttribute("name")}function Wd(t,s,a,c,h,p,b,x){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.type=p),s!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||s!=null)){Xc(t);return}a=a!=null?""+Qt(a):"",s=s!=null?""+Qt(s):a,x||s===t.value||(t.value=s),t.defaultValue=s}c=c??h,c=typeof c!="function"&&typeof c!="symbol"&&!!c,t.checked=x?t.checked:!!c,t.defaultChecked=!!c,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(t.name=b),Xc(t)}function Qc(t,s,a){s==="number"&&Sl(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function As(t,s,a,c){if(t=t.options,s){s={};for(var h=0;h<a.length;h++)s["$"+a[h]]=!0;for(a=0;a<t.length;a++)h=s.hasOwnProperty("$"+t[a].value),t[a].selected!==h&&(t[a].selected=h),h&&c&&(t[a].defaultSelected=!0)}else{for(a=""+Qt(a),s=null,h=0;h<t.length;h++){if(t[h].value===a){t[h].selected=!0,c&&(t[h].defaultSelected=!0);return}s!==null||t[h].disabled||(s=t[h])}s!==null&&(s.selected=!0)}}function ep(t,s,a){if(s!=null&&(s=""+Qt(s),s!==t.value&&(t.value=s),a==null)){t.defaultValue!==s&&(t.defaultValue=s);return}t.defaultValue=a!=null?""+Qt(a):""}function tp(t,s,a,c){if(s==null){if(c!=null){if(a!=null)throw Error(r(92));if(Ae(c)){if(1<c.length)throw Error(r(93));c=c[0]}a=c}a==null&&(a=""),s=a}a=Qt(s),t.defaultValue=a,c=t.textContent,c===a&&c!==""&&c!==null&&(t.value=c),Xc(t)}function Ns(t,s){if(s){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=s;return}}t.textContent=s}var QS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function np(t,s,a){var c=s.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?c?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="":c?t.setProperty(s,a):typeof a!="number"||a===0||QS.has(s)?s==="float"?t.cssFloat=a:t[s]=(""+a).trim():t[s]=a+"px"}function ip(t,s,a){if(s!=null&&typeof s!="object")throw Error(r(62));if(t=t.style,a!=null){for(var c in a)!a.hasOwnProperty(c)||s!=null&&s.hasOwnProperty(c)||(c.indexOf("--")===0?t.setProperty(c,""):c==="float"?t.cssFloat="":t[c]="");for(var h in s)c=s[h],s.hasOwnProperty(h)&&a[h]!==c&&np(t,h,c)}else for(var p in s)s.hasOwnProperty(p)&&np(t,p,s[p])}function Jc(t){if(t.indexOf("-")===-1)return!1;switch(t){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 JS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ZS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function wl(t){return ZS.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function jn(){}var Zc=null;function Pc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Cs=null,ks=null;function sp(t){var s=xs(t);if(s&&(t=s.stateNode)){var a=t[Nt]||null;e:switch(t=s.stateNode,s.type){case"input":if(Fc(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),s=a.name,a.type==="radio"&&s!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Jt(""+s)+'"][type="radio"]'),s=0;s<a.length;s++){var c=a[s];if(c!==t&&c.form===t.form){var h=c[Nt]||null;if(!h)throw Error(r(90));Fc(c,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(s=0;s<a.length;s++)c=a[s],c.form===t.form&&Pd(c)}break e;case"textarea":ep(t,a.value,a.defaultValue);break e;case"select":s=a.value,s!=null&&As(t,!!a.multiple,s,!1)}}}var Wc=!1;function rp(t,s,a){if(Wc)return t(s,a);Wc=!0;try{var c=t(s);return c}finally{if(Wc=!1,(Cs!==null||ks!==null)&&(oo(),Cs&&(s=Cs,t=ks,ks=Cs=null,sp(s),t)))for(s=0;s<t.length;s++)sp(t[s])}}function Gr(t,s){var a=t.stateNode;if(a===null)return null;var c=a[Nt]||null;if(c===null)return null;a=c[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(t=t.type,c=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!c;break e;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,s,typeof a));return a}var Ln=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eu=!1;if(Ln)try{var Kr={};Object.defineProperty(Kr,"passive",{get:function(){eu=!0}}),window.addEventListener("test",Kr,Kr),window.removeEventListener("test",Kr,Kr)}catch{eu=!1}var ri=null,tu=null,_l=null;function ap(){if(_l)return _l;var t,s=tu,a=s.length,c,h="value"in ri?ri.value:ri.textContent,p=h.length;for(t=0;t<a&&s[t]===h[t];t++);var b=a-t;for(c=1;c<=b&&s[a-c]===h[p-c];c++);return _l=h.slice(t,1<c?1-c:void 0)}function xl(t){var s=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&s===13&&(t=13)):t=s,t===10&&(t=13),32<=t||t===13?t:0}function Tl(){return!0}function lp(){return!1}function Ct(t){function s(a,c,h,p,b){this._reactName=a,this._targetInst=h,this.type=c,this.nativeEvent=p,this.target=b,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(a=t[x],this[x]=a?a(p):p[x]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Tl:lp,this.isPropagationStopped=lp,this}return m(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Tl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Tl)},persist:function(){},isPersistent:Tl}),s}var Ii={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},El=Ct(Ii),Yr=m({},Ii,{view:0,detail:0}),PS=Ct(Yr),nu,iu,Xr,Al=m({},Yr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ru,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Xr&&(Xr&&t.type==="mousemove"?(nu=t.screenX-Xr.screenX,iu=t.screenY-Xr.screenY):iu=nu=0,Xr=t),nu)},movementY:function(t){return"movementY"in t?t.movementY:iu}}),op=Ct(Al),WS=m({},Al,{dataTransfer:0}),e1=Ct(WS),t1=m({},Yr,{relatedTarget:0}),su=Ct(t1),n1=m({},Ii,{animationName:0,elapsedTime:0,pseudoElement:0}),i1=Ct(n1),s1=m({},Ii,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),r1=Ct(s1),a1=m({},Ii,{data:0}),cp=Ct(a1),l1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},o1={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"},c1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function u1(t){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(t):(t=c1[t])?!!s[t]:!1}function ru(){return u1}var f1=m({},Yr,{key:function(t){if(t.key){var s=l1[t.key]||t.key;if(s!=="Unidentified")return s}return t.type==="keypress"?(t=xl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?o1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ru,charCode:function(t){return t.type==="keypress"?xl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?xl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),h1=Ct(f1),d1=m({},Al,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),up=Ct(d1),p1=m({},Yr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ru}),g1=Ct(p1),m1=m({},Ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),y1=Ct(m1),b1=m({},Al,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),v1=Ct(b1),S1=m({},Ii,{newState:0,oldState:0}),w1=Ct(S1),_1=[9,13,27,32],au=Ln&&"CompositionEvent"in window,Fr=null;Ln&&"documentMode"in document&&(Fr=document.documentMode);var x1=Ln&&"TextEvent"in window&&!Fr,fp=Ln&&(!au||Fr&&8<Fr&&11>=Fr),hp=" ",dp=!1;function pp(t,s){switch(t){case"keyup":return _1.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ms=!1;function T1(t,s){switch(t){case"compositionend":return gp(s);case"keypress":return s.which!==32?null:(dp=!0,hp);case"textInput":return t=s.data,t===hp&&dp?null:t;default:return null}}function E1(t,s){if(Ms)return t==="compositionend"||!au&&pp(t,s)?(t=ap(),_l=tu=ri=null,Ms=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return fp&&s.locale!=="ko"?null:s.data;default:return null}}var A1={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 mp(t){var s=t&&t.nodeName&&t.nodeName.toLowerCase();return s==="input"?!!A1[t.type]:s==="textarea"}function yp(t,s,a,c){Cs?ks?ks.push(c):ks=[c]:Cs=c,s=mo(s,"onChange"),0<s.length&&(a=new El("onChange","change",null,a,c),t.push({event:a,listeners:s}))}var Qr=null,Jr=null;function N1(t){Wm(t,0)}function Nl(t){var s=Vr(t);if(Pd(s))return t}function bp(t,s){if(t==="change")return s}var vp=!1;if(Ln){var lu;if(Ln){var ou="oninput"in document;if(!ou){var Sp=document.createElement("div");Sp.setAttribute("oninput","return;"),ou=typeof Sp.oninput=="function"}lu=ou}else lu=!1;vp=lu&&(!document.documentMode||9<document.documentMode)}function wp(){Qr&&(Qr.detachEvent("onpropertychange",_p),Jr=Qr=null)}function _p(t){if(t.propertyName==="value"&&Nl(Jr)){var s=[];yp(s,Jr,t,Pc(t)),rp(N1,s)}}function C1(t,s,a){t==="focusin"?(wp(),Qr=s,Jr=a,Qr.attachEvent("onpropertychange",_p)):t==="focusout"&&wp()}function k1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Nl(Jr)}function M1(t,s){if(t==="click")return Nl(s)}function O1(t,s){if(t==="input"||t==="change")return Nl(s)}function j1(t,s){return t===s&&(t!==0||1/t===1/s)||t!==t&&s!==s}var qt=typeof Object.is=="function"?Object.is:j1;function Zr(t,s){if(qt(t,s))return!0;if(typeof t!="object"||t===null||typeof s!="object"||s===null)return!1;var a=Object.keys(t),c=Object.keys(s);if(a.length!==c.length)return!1;for(c=0;c<a.length;c++){var h=a[c];if(!Ui.call(s,h)||!qt(t[h],s[h]))return!1}return!0}function xp(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Tp(t,s){var a=xp(t);t=0;for(var c;a;){if(a.nodeType===3){if(c=t+a.textContent.length,t<=s&&c>=s)return{node:a,offset:s-t};t=c}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=xp(a)}}function Ep(t,s){return t&&s?t===s?!0:t&&t.nodeType===3?!1:s&&s.nodeType===3?Ep(t,s.parentNode):"contains"in t?t.contains(s):t.compareDocumentPosition?!!(t.compareDocumentPosition(s)&16):!1:!1}function Ap(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var s=Sl(t.document);s instanceof t.HTMLIFrameElement;){try{var a=typeof s.contentWindow.location.href=="string"}catch{a=!1}if(a)t=s.contentWindow;else break;s=Sl(t.document)}return s}function cu(t){var s=t&&t.nodeName&&t.nodeName.toLowerCase();return s&&(s==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||s==="textarea"||t.contentEditable==="true")}var L1=Ln&&"documentMode"in document&&11>=document.documentMode,Os=null,uu=null,Pr=null,fu=!1;function Np(t,s,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;fu||Os==null||Os!==Sl(c)||(c=Os,"selectionStart"in c&&cu(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Pr&&Zr(Pr,c)||(Pr=c,c=mo(uu,"onSelect"),0<c.length&&(s=new El("onSelect","select",null,s,a),t.push({event:s,listeners:c}),s.target=Os)))}function Vi(t,s){var a={};return a[t.toLowerCase()]=s.toLowerCase(),a["Webkit"+t]="webkit"+s,a["Moz"+t]="moz"+s,a}var js={animationend:Vi("Animation","AnimationEnd"),animationiteration:Vi("Animation","AnimationIteration"),animationstart:Vi("Animation","AnimationStart"),transitionrun:Vi("Transition","TransitionRun"),transitionstart:Vi("Transition","TransitionStart"),transitioncancel:Vi("Transition","TransitionCancel"),transitionend:Vi("Transition","TransitionEnd")},hu={},Cp={};Ln&&(Cp=document.createElement("div").style,"AnimationEvent"in window||(delete js.animationend.animation,delete js.animationiteration.animation,delete js.animationstart.animation),"TransitionEvent"in window||delete js.transitionend.transition);function Gi(t){if(hu[t])return hu[t];if(!js[t])return t;var s=js[t],a;for(a in s)if(s.hasOwnProperty(a)&&a in Cp)return hu[t]=s[a];return t}var kp=Gi("animationend"),Mp=Gi("animationiteration"),Op=Gi("animationstart"),R1=Gi("transitionrun"),D1=Gi("transitionstart"),B1=Gi("transitioncancel"),jp=Gi("transitionend"),Lp=new Map,du="abort auxClick beforeToggle 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(" ");du.push("scrollEnd");function dn(t,s){Lp.set(t,s),$i(s,[t])}var Cl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Zt=[],Ls=0,pu=0;function kl(){for(var t=Ls,s=pu=Ls=0;s<t;){var a=Zt[s];Zt[s++]=null;var c=Zt[s];Zt[s++]=null;var h=Zt[s];Zt[s++]=null;var p=Zt[s];if(Zt[s++]=null,c!==null&&h!==null){var b=c.pending;b===null?h.next=h:(h.next=b.next,b.next=h),c.pending=h}p!==0&&Rp(a,h,p)}}function Ml(t,s,a,c){Zt[Ls++]=t,Zt[Ls++]=s,Zt[Ls++]=a,Zt[Ls++]=c,pu|=c,t.lanes|=c,t=t.alternate,t!==null&&(t.lanes|=c)}function gu(t,s,a,c){return Ml(t,s,a,c),Ol(t)}function Ki(t,s){return Ml(t,null,null,s),Ol(t)}function Rp(t,s,a){t.lanes|=a;var c=t.alternate;c!==null&&(c.lanes|=a);for(var h=!1,p=t.return;p!==null;)p.childLanes|=a,c=p.alternate,c!==null&&(c.childLanes|=a),p.tag===22&&(t=p.stateNode,t===null||t._visibility&1||(h=!0)),t=p,p=p.return;return t.tag===3?(p=t.stateNode,h&&s!==null&&(h=31-wt(a),t=p.hiddenUpdates,c=t[h],c===null?t[h]=[s]:c.push(s),s.lane=a|536870912),p):null}function Ol(t){if(50<Sa)throw Sa=0,Ef=null,Error(r(185));for(var s=t.return;s!==null;)t=s,s=t.return;return t.tag===3?t.stateNode:null}var Rs={};function z1(t,s,a,c){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $t(t,s,a,c){return new z1(t,s,a,c)}function mu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Rn(t,s){var a=t.alternate;return a===null?(a=$t(t.tag,s,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=s,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,s=t.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function Dp(t,s){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=s,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,s=a.dependencies,t.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),t}function jl(t,s,a,c,h,p){var b=0;if(c=t,typeof t=="function")mu(t)&&(b=1);else if(typeof t=="string")b=Iw(t,a,ee.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case j:return t=$t(31,a,s,h),t.elementType=j,t.lanes=p,t;case _:return Yi(a.children,h,p,s);case T:b=8,h|=24;break;case N:return t=$t(12,a,s,h|2),t.elementType=N,t.lanes=p,t;case D:return t=$t(13,a,s,h),t.elementType=D,t.lanes=p,t;case K:return t=$t(19,a,s,h),t.elementType=K,t.lanes=p,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case $:b=10;break e;case M:b=9;break e;case I:b=11;break e;case Q:b=14;break e;case q:b=16,c=null;break e}b=29,a=Error(r(130,t===null?"null":typeof t,"")),c=null}return s=$t(b,a,s,h),s.elementType=t,s.type=c,s.lanes=p,s}function Yi(t,s,a,c){return t=$t(7,t,c,s),t.lanes=a,t}function yu(t,s,a){return t=$t(6,t,null,s),t.lanes=a,t}function Bp(t){var s=$t(18,null,null,0);return s.stateNode=t,s}function bu(t,s,a){return s=$t(4,t.children!==null?t.children:[],t.key,s),s.lanes=a,s.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},s}var zp=new WeakMap;function Pt(t,s){if(typeof t=="object"&&t!==null){var a=zp.get(t);return a!==void 0?a:(s={value:t,source:s,stack:Ss(s)},zp.set(t,s),s)}return{value:t,source:s,stack:Ss(s)}}var Ds=[],Bs=0,Ll=null,Wr=0,Wt=[],en=0,ai=null,wn=1,_n="";function Dn(t,s){Ds[Bs++]=Wr,Ds[Bs++]=Ll,Ll=t,Wr=s}function Up(t,s,a){Wt[en++]=wn,Wt[en++]=_n,Wt[en++]=ai,ai=t;var c=wn;t=_n;var h=32-wt(c)-1;c&=~(1<<h),a+=1;var p=32-wt(s)+h;if(30<p){var b=h-h%5;p=(c&(1<<b)-1).toString(32),c>>=b,h-=b,wn=1<<32-wt(s)+h|a<<h|c,_n=p+t}else wn=1<<p|a<<h|c,_n=t}function vu(t){t.return!==null&&(Dn(t,1),Up(t,1,0))}function Su(t){for(;t===Ll;)Ll=Ds[--Bs],Ds[Bs]=null,Wr=Ds[--Bs],Ds[Bs]=null;for(;t===ai;)ai=Wt[--en],Wt[en]=null,_n=Wt[--en],Wt[en]=null,wn=Wt[--en],Wt[en]=null}function Hp(t,s){Wt[en++]=wn,Wt[en++]=_n,Wt[en++]=ai,wn=s.id,_n=s.overflow,ai=t}var ct=null,De=null,ve=!1,li=null,tn=!1,wu=Error(r(519));function oi(t){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ea(Pt(s,t)),wu}function qp(t){var s=t.stateNode,a=t.type,c=t.memoizedProps;switch(s[ot]=t,s[Nt]=c,a){case"dialog":me("cancel",s),me("close",s);break;case"iframe":case"object":case"embed":me("load",s);break;case"video":case"audio":for(a=0;a<_a.length;a++)me(_a[a],s);break;case"source":me("error",s);break;case"img":case"image":case"link":me("error",s),me("load",s);break;case"details":me("toggle",s);break;case"input":me("invalid",s),Wd(s,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":me("invalid",s);break;case"textarea":me("invalid",s),tp(s,c.value,c.defaultValue,c.children)}a=c.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||s.textContent===""+a||c.suppressHydrationWarning===!0||iy(s.textContent,a)?(c.popover!=null&&(me("beforetoggle",s),me("toggle",s)),c.onScroll!=null&&me("scroll",s),c.onScrollEnd!=null&&me("scrollend",s),c.onClick!=null&&(s.onclick=jn),s=!0):s=!1,s||oi(t,!0)}function $p(t){for(ct=t.return;ct;)switch(ct.tag){case 5:case 31:case 13:tn=!1;return;case 27:case 3:tn=!0;return;default:ct=ct.return}}function zs(t){if(t!==ct)return!1;if(!ve)return $p(t),ve=!0,!1;var s=t.tag,a;if((a=s!==3&&s!==27)&&((a=s===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||qf(t.type,t.memoizedProps)),a=!a),a&&De&&oi(t),$p(t),s===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));De=hy(t)}else if(s===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));De=hy(t)}else s===27?(s=De,_i(t.type)?(t=Kf,Kf=null,De=t):De=s):De=ct?sn(t.stateNode.nextSibling):null;return!0}function Xi(){De=ct=null,ve=!1}function _u(){var t=li;return t!==null&&(jt===null?jt=t:jt.push.apply(jt,t),li=null),t}function ea(t){li===null?li=[t]:li.push(t)}var xu=C(null),Fi=null,Bn=null;function ci(t,s,a){P(xu,s._currentValue),s._currentValue=a}function zn(t){t._currentValue=xu.current,Y(xu)}function Tu(t,s,a){for(;t!==null;){var c=t.alternate;if((t.childLanes&s)!==s?(t.childLanes|=s,c!==null&&(c.childLanes|=s)):c!==null&&(c.childLanes&s)!==s&&(c.childLanes|=s),t===a)break;t=t.return}}function Eu(t,s,a,c){var h=t.child;for(h!==null&&(h.return=t);h!==null;){var p=h.dependencies;if(p!==null){var b=h.child;p=p.firstContext;e:for(;p!==null;){var x=p;p=h;for(var A=0;A<s.length;A++)if(x.context===s[A]){p.lanes|=a,x=p.alternate,x!==null&&(x.lanes|=a),Tu(p.return,a,t),c||(b=null);break e}p=x.next}}else if(h.tag===18){if(b=h.return,b===null)throw Error(r(341));b.lanes|=a,p=b.alternate,p!==null&&(p.lanes|=a),Tu(b,a,t),b=null}else b=h.child;if(b!==null)b.return=h;else for(b=h;b!==null;){if(b===t){b=null;break}if(h=b.sibling,h!==null){h.return=b.return,b=h;break}b=b.return}h=b}}function Us(t,s,a,c){t=null;for(var h=s,p=!1;h!==null;){if(!p){if((h.flags&524288)!==0)p=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var b=h.alternate;if(b===null)throw Error(r(387));if(b=b.memoizedProps,b!==null){var x=h.type;qt(h.pendingProps.value,b.value)||(t!==null?t.push(x):t=[x])}}else if(h===_e.current){if(b=h.alternate,b===null)throw Error(r(387));b.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(t!==null?t.push(Na):t=[Na])}h=h.return}t!==null&&Eu(s,t,a,c),s.flags|=262144}function Rl(t){for(t=t.firstContext;t!==null;){if(!qt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Qi(t){Fi=t,Bn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ut(t){return Ip(Fi,t)}function Dl(t,s){return Fi===null&&Qi(t),Ip(t,s)}function Ip(t,s){var a=s._currentValue;if(s={context:s,memoizedValue:a,next:null},Bn===null){if(t===null)throw Error(r(308));Bn=s,t.dependencies={lanes:0,firstContext:s},t.flags|=524288}else Bn=Bn.next=s;return a}var U1=typeof AbortController<"u"?AbortController:function(){var t=[],s=this.signal={aborted:!1,addEventListener:function(a,c){t.push(c)}};this.abort=function(){s.aborted=!0,t.forEach(function(a){return a()})}},H1=n.unstable_scheduleCallback,q1=n.unstable_NormalPriority,Je={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Au(){return{controller:new U1,data:new Map,refCount:0}}function ta(t){t.refCount--,t.refCount===0&&H1(q1,function(){t.controller.abort()})}var na=null,Nu=0,Hs=0,qs=null;function $1(t,s){if(na===null){var a=na=[];Nu=0,Hs=Of(),qs={status:"pending",value:void 0,then:function(c){a.push(c)}}}return Nu++,s.then(Vp,Vp),s}function Vp(){if(--Nu===0&&na!==null){qs!==null&&(qs.status="fulfilled");var t=na;na=null,Hs=0,qs=null;for(var s=0;s<t.length;s++)(0,t[s])()}}function I1(t,s){var a=[],c={status:"pending",value:null,reason:null,then:function(h){a.push(h)}};return t.then(function(){c.status="fulfilled",c.value=s;for(var h=0;h<a.length;h++)(0,a[h])(s)},function(h){for(c.status="rejected",c.reason=h,h=0;h<a.length;h++)(0,a[h])(void 0)}),c}var Gp=z.S;z.S=function(t,s){Nm=St(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&$1(t,s),Gp!==null&&Gp(t,s)};var Ji=C(null);function Cu(){var t=Ji.current;return t!==null?t:je.pooledCache}function Bl(t,s){s===null?P(Ji,Ji.current):P(Ji,s.pool)}function Kp(){var t=Cu();return t===null?null:{parent:Je._currentValue,pool:t}}var $s=Error(r(460)),ku=Error(r(474)),zl=Error(r(542)),Ul={then:function(){}};function Yp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Xp(t,s,a){switch(a=t[a],a===void 0?t.push(s):a!==s&&(s.then(jn,jn),s=a),s.status){case"fulfilled":return s.value;case"rejected":throw t=s.reason,Qp(t),t;default:if(typeof s.status=="string")s.then(jn,jn);else{if(t=je,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=s,t.status="pending",t.then(function(c){if(s.status==="pending"){var h=s;h.status="fulfilled",h.value=c}},function(c){if(s.status==="pending"){var h=s;h.status="rejected",h.reason=c}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw t=s.reason,Qp(t),t}throw Pi=s,$s}}function Zi(t){try{var s=t._init;return s(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Pi=a,$s):a}}var Pi=null;function Fp(){if(Pi===null)throw Error(r(459));var t=Pi;return Pi=null,t}function Qp(t){if(t===$s||t===zl)throw Error(r(483))}var Is=null,ia=0;function Hl(t){var s=ia;return ia+=1,Is===null&&(Is=[]),Xp(Is,t,s)}function sa(t,s){s=s.props.ref,t.ref=s!==void 0?s:null}function ql(t,s){throw s.$$typeof===S?Error(r(525)):(t=Object.prototype.toString.call(s),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":t)))}function Jp(t){function s(O,k){if(t){var L=O.deletions;L===null?(O.deletions=[k],O.flags|=16):L.push(k)}}function a(O,k){if(!t)return null;for(;k!==null;)s(O,k),k=k.sibling;return null}function c(O){for(var k=new Map;O!==null;)O.key!==null?k.set(O.key,O):k.set(O.index,O),O=O.sibling;return k}function h(O,k){return O=Rn(O,k),O.index=0,O.sibling=null,O}function p(O,k,L){return O.index=L,t?(L=O.alternate,L!==null?(L=L.index,L<k?(O.flags|=67108866,k):L):(O.flags|=67108866,k)):(O.flags|=1048576,k)}function b(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function x(O,k,L,X){return k===null||k.tag!==6?(k=yu(L,O.mode,X),k.return=O,k):(k=h(k,L),k.return=O,k)}function A(O,k,L,X){var ae=L.type;return ae===_?G(O,k,L.props.children,X,L.key):k!==null&&(k.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===q&&Zi(ae)===k.type)?(k=h(k,L.props),sa(k,L),k.return=O,k):(k=jl(L.type,L.key,L.props,null,O.mode,X),sa(k,L),k.return=O,k)}function R(O,k,L,X){return k===null||k.tag!==4||k.stateNode.containerInfo!==L.containerInfo||k.stateNode.implementation!==L.implementation?(k=bu(L,O.mode,X),k.return=O,k):(k=h(k,L.children||[]),k.return=O,k)}function G(O,k,L,X,ae){return k===null||k.tag!==7?(k=Yi(L,O.mode,X,ae),k.return=O,k):(k=h(k,L),k.return=O,k)}function F(O,k,L){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=yu(""+k,O.mode,L),k.return=O,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case w:return L=jl(k.type,k.key,k.props,null,O.mode,L),sa(L,k),L.return=O,L;case E:return k=bu(k,O.mode,L),k.return=O,k;case q:return k=Zi(k),F(O,k,L)}if(Ae(k)||V(k))return k=Yi(k,O.mode,L,null),k.return=O,k;if(typeof k.then=="function")return F(O,Hl(k),L);if(k.$$typeof===$)return F(O,Dl(O,k),L);ql(O,k)}return null}function B(O,k,L,X){var ae=k!==null?k.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return ae!==null?null:x(O,k,""+L,X);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case w:return L.key===ae?A(O,k,L,X):null;case E:return L.key===ae?R(O,k,L,X):null;case q:return L=Zi(L),B(O,k,L,X)}if(Ae(L)||V(L))return ae!==null?null:G(O,k,L,X,null);if(typeof L.then=="function")return B(O,k,Hl(L),X);if(L.$$typeof===$)return B(O,k,Dl(O,L),X);ql(O,L)}return null}function H(O,k,L,X,ae){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return O=O.get(L)||null,x(k,O,""+X,ae);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case w:return O=O.get(X.key===null?L:X.key)||null,A(k,O,X,ae);case E:return O=O.get(X.key===null?L:X.key)||null,R(k,O,X,ae);case q:return X=Zi(X),H(O,k,L,X,ae)}if(Ae(X)||V(X))return O=O.get(L)||null,G(k,O,X,ae,null);if(typeof X.then=="function")return H(O,k,L,Hl(X),ae);if(X.$$typeof===$)return H(O,k,L,Dl(k,X),ae);ql(k,X)}return null}function te(O,k,L,X){for(var ae=null,xe=null,ie=k,pe=k=0,be=null;ie!==null&&pe<L.length;pe++){ie.index>pe?(be=ie,ie=null):be=ie.sibling;var Te=B(O,ie,L[pe],X);if(Te===null){ie===null&&(ie=be);break}t&&ie&&Te.alternate===null&&s(O,ie),k=p(Te,k,pe),xe===null?ae=Te:xe.sibling=Te,xe=Te,ie=be}if(pe===L.length)return a(O,ie),ve&&Dn(O,pe),ae;if(ie===null){for(;pe<L.length;pe++)ie=F(O,L[pe],X),ie!==null&&(k=p(ie,k,pe),xe===null?ae=ie:xe.sibling=ie,xe=ie);return ve&&Dn(O,pe),ae}for(ie=c(ie);pe<L.length;pe++)be=H(ie,O,pe,L[pe],X),be!==null&&(t&&be.alternate!==null&&ie.delete(be.key===null?pe:be.key),k=p(be,k,pe),xe===null?ae=be:xe.sibling=be,xe=be);return t&&ie.forEach(function(Ni){return s(O,Ni)}),ve&&Dn(O,pe),ae}function oe(O,k,L,X){if(L==null)throw Error(r(151));for(var ae=null,xe=null,ie=k,pe=k=0,be=null,Te=L.next();ie!==null&&!Te.done;pe++,Te=L.next()){ie.index>pe?(be=ie,ie=null):be=ie.sibling;var Ni=B(O,ie,Te.value,X);if(Ni===null){ie===null&&(ie=be);break}t&&ie&&Ni.alternate===null&&s(O,ie),k=p(Ni,k,pe),xe===null?ae=Ni:xe.sibling=Ni,xe=Ni,ie=be}if(Te.done)return a(O,ie),ve&&Dn(O,pe),ae;if(ie===null){for(;!Te.done;pe++,Te=L.next())Te=F(O,Te.value,X),Te!==null&&(k=p(Te,k,pe),xe===null?ae=Te:xe.sibling=Te,xe=Te);return ve&&Dn(O,pe),ae}for(ie=c(ie);!Te.done;pe++,Te=L.next())Te=H(ie,O,pe,Te.value,X),Te!==null&&(t&&Te.alternate!==null&&ie.delete(Te.key===null?pe:Te.key),k=p(Te,k,pe),xe===null?ae=Te:xe.sibling=Te,xe=Te);return t&&ie.forEach(function(Ww){return s(O,Ww)}),ve&&Dn(O,pe),ae}function Oe(O,k,L,X){if(typeof L=="object"&&L!==null&&L.type===_&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case w:e:{for(var ae=L.key;k!==null;){if(k.key===ae){if(ae=L.type,ae===_){if(k.tag===7){a(O,k.sibling),X=h(k,L.props.children),X.return=O,O=X;break e}}else if(k.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===q&&Zi(ae)===k.type){a(O,k.sibling),X=h(k,L.props),sa(X,L),X.return=O,O=X;break e}a(O,k);break}else s(O,k);k=k.sibling}L.type===_?(X=Yi(L.props.children,O.mode,X,L.key),X.return=O,O=X):(X=jl(L.type,L.key,L.props,null,O.mode,X),sa(X,L),X.return=O,O=X)}return b(O);case E:e:{for(ae=L.key;k!==null;){if(k.key===ae)if(k.tag===4&&k.stateNode.containerInfo===L.containerInfo&&k.stateNode.implementation===L.implementation){a(O,k.sibling),X=h(k,L.children||[]),X.return=O,O=X;break e}else{a(O,k);break}else s(O,k);k=k.sibling}X=bu(L,O.mode,X),X.return=O,O=X}return b(O);case q:return L=Zi(L),Oe(O,k,L,X)}if(Ae(L))return te(O,k,L,X);if(V(L)){if(ae=V(L),typeof ae!="function")throw Error(r(150));return L=ae.call(L),oe(O,k,L,X)}if(typeof L.then=="function")return Oe(O,k,Hl(L),X);if(L.$$typeof===$)return Oe(O,k,Dl(O,L),X);ql(O,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,k!==null&&k.tag===6?(a(O,k.sibling),X=h(k,L),X.return=O,O=X):(a(O,k),X=yu(L,O.mode,X),X.return=O,O=X),b(O)):a(O,k)}return function(O,k,L,X){try{ia=0;var ae=Oe(O,k,L,X);return Is=null,ae}catch(ie){if(ie===$s||ie===zl)throw ie;var xe=$t(29,ie,null,O.mode);return xe.lanes=X,xe.return=O,xe}finally{}}}var Wi=Jp(!0),Zp=Jp(!1),ui=!1;function Mu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ou(t,s){t=t.updateQueue,s.updateQueue===t&&(s.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function fi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function hi(t,s,a){var c=t.updateQueue;if(c===null)return null;if(c=c.shared,(Ee&2)!==0){var h=c.pending;return h===null?s.next=s:(s.next=h.next,h.next=s),c.pending=s,s=Ol(t),Rp(t,null,a),s}return Ml(t,c,s,a),Ol(t)}function ra(t,s,a){if(s=s.updateQueue,s!==null&&(s=s.shared,(a&4194048)!==0)){var c=s.lanes;c&=t.pendingLanes,a|=c,s.lanes=a,Id(t,a)}}function ju(t,s){var a=t.updateQueue,c=t.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var h=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var b={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?h=p=b:p=p.next=b,a=a.next}while(a!==null);p===null?h=p=s:p=p.next=s}else h=p=s;a={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:p,shared:c.shared,callbacks:c.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=s:t.next=s,a.lastBaseUpdate=s}var Lu=!1;function aa(){if(Lu){var t=qs;if(t!==null)throw t}}function la(t,s,a,c){Lu=!1;var h=t.updateQueue;ui=!1;var p=h.firstBaseUpdate,b=h.lastBaseUpdate,x=h.shared.pending;if(x!==null){h.shared.pending=null;var A=x,R=A.next;A.next=null,b===null?p=R:b.next=R,b=A;var G=t.alternate;G!==null&&(G=G.updateQueue,x=G.lastBaseUpdate,x!==b&&(x===null?G.firstBaseUpdate=R:x.next=R,G.lastBaseUpdate=A))}if(p!==null){var F=h.baseState;b=0,G=R=A=null,x=p;do{var B=x.lane&-536870913,H=B!==x.lane;if(H?(ye&B)===B:(c&B)===B){B!==0&&B===Hs&&(Lu=!0),G!==null&&(G=G.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var te=t,oe=x;B=s;var Oe=a;switch(oe.tag){case 1:if(te=oe.payload,typeof te=="function"){F=te.call(Oe,F,B);break e}F=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=oe.payload,B=typeof te=="function"?te.call(Oe,F,B):te,B==null)break e;F=m({},F,B);break e;case 2:ui=!0}}B=x.callback,B!==null&&(t.flags|=64,H&&(t.flags|=8192),H=h.callbacks,H===null?h.callbacks=[B]:H.push(B))}else H={lane:B,tag:x.tag,payload:x.payload,callback:x.callback,next:null},G===null?(R=G=H,A=F):G=G.next=H,b|=B;if(x=x.next,x===null){if(x=h.shared.pending,x===null)break;H=x,x=H.next,H.next=null,h.lastBaseUpdate=H,h.shared.pending=null}}while(!0);G===null&&(A=F),h.baseState=A,h.firstBaseUpdate=R,h.lastBaseUpdate=G,p===null&&(h.shared.lanes=0),yi|=b,t.lanes=b,t.memoizedState=F}}function Pp(t,s){if(typeof t!="function")throw Error(r(191,t));t.call(s)}function Wp(t,s){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Pp(a[t],s)}var Vs=C(null),$l=C(0);function eg(t,s){t=Yn,P($l,t),P(Vs,s),Yn=t|s.baseLanes}function Ru(){P($l,Yn),P(Vs,Vs.current)}function Du(){Yn=$l.current,Y(Vs),Y($l)}var It=C(null),nn=null;function di(t){var s=t.alternate;P(Ke,Ke.current&1),P(It,t),nn===null&&(s===null||Vs.current!==null||s.memoizedState!==null)&&(nn=t)}function Bu(t){P(Ke,Ke.current),P(It,t),nn===null&&(nn=t)}function tg(t){t.tag===22?(P(Ke,Ke.current),P(It,t),nn===null&&(nn=t)):pi()}function pi(){P(Ke,Ke.current),P(It,It.current)}function Vt(t){Y(It),nn===t&&(nn=null),Y(Ke)}var Ke=C(0);function Il(t){for(var s=t;s!==null;){if(s.tag===13){var a=s.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Vf(a)||Gf(a)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break;for(;s.sibling===null;){if(s.return===null||s.return===t)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Un=0,de=null,ke=null,Ze=null,Vl=!1,Gs=!1,es=!1,Gl=0,oa=0,Ks=null,V1=0;function Ve(){throw Error(r(321))}function zu(t,s){if(s===null)return!1;for(var a=0;a<s.length&&a<t.length;a++)if(!qt(t[a],s[a]))return!1;return!0}function Uu(t,s,a,c,h,p){return Un=p,de=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,z.H=t===null||t.memoizedState===null?Ug:Wu,es=!1,p=a(c,h),es=!1,Gs&&(p=ig(s,a,c,h)),ng(t),p}function ng(t){z.H=fa;var s=ke!==null&&ke.next!==null;if(Un=0,Ze=ke=de=null,Vl=!1,oa=0,Ks=null,s)throw Error(r(300));t===null||Pe||(t=t.dependencies,t!==null&&Rl(t)&&(Pe=!0))}function ig(t,s,a,c){de=t;var h=0;do{if(Gs&&(Ks=null),oa=0,Gs=!1,25<=h)throw Error(r(301));if(h+=1,Ze=ke=null,t.updateQueue!=null){var p=t.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}z.H=Hg,p=s(a,c)}while(Gs);return p}function G1(){var t=z.H,s=t.useState()[0];return s=typeof s.then=="function"?ca(s):s,t=t.useState()[0],(ke!==null?ke.memoizedState:null)!==t&&(de.flags|=1024),s}function Hu(){var t=Gl!==0;return Gl=0,t}function qu(t,s,a){s.updateQueue=t.updateQueue,s.flags&=-2053,t.lanes&=~a}function $u(t){if(Vl){for(t=t.memoizedState;t!==null;){var s=t.queue;s!==null&&(s.pending=null),t=t.next}Vl=!1}Un=0,Ze=ke=de=null,Gs=!1,oa=Gl=0,Ks=null}function _t(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?de.memoizedState=Ze=t:Ze=Ze.next=t,Ze}function Ye(){if(ke===null){var t=de.alternate;t=t!==null?t.memoizedState:null}else t=ke.next;var s=Ze===null?de.memoizedState:Ze.next;if(s!==null)Ze=s,ke=t;else{if(t===null)throw de.alternate===null?Error(r(467)):Error(r(310));ke=t,t={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},Ze===null?de.memoizedState=Ze=t:Ze=Ze.next=t}return Ze}function Kl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ca(t){var s=oa;return oa+=1,Ks===null&&(Ks=[]),t=Xp(Ks,t,s),s=de,(Ze===null?s.memoizedState:Ze.next)===null&&(s=s.alternate,z.H=s===null||s.memoizedState===null?Ug:Wu),t}function Yl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ca(t);if(t.$$typeof===$)return ut(t)}throw Error(r(438,String(t)))}function Iu(t){var s=null,a=de.updateQueue;if(a!==null&&(s=a.memoCache),s==null){var c=de.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(s={data:c.data.map(function(h){return h.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),a===null&&(a=Kl(),de.updateQueue=a),a.memoCache=s,a=s.data[s.index],a===void 0)for(a=s.data[s.index]=Array(t),c=0;c<t;c++)a[c]=ne;return s.index++,a}function Hn(t,s){return typeof s=="function"?s(t):s}function Xl(t){var s=Ye();return Vu(s,ke,t)}function Vu(t,s,a){var c=t.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=a;var h=t.baseQueue,p=c.pending;if(p!==null){if(h!==null){var b=h.next;h.next=p.next,p.next=b}s.baseQueue=h=p,c.pending=null}if(p=t.baseState,h===null)t.memoizedState=p;else{s=h.next;var x=b=null,A=null,R=s,G=!1;do{var F=R.lane&-536870913;if(F!==R.lane?(ye&F)===F:(Un&F)===F){var B=R.revertLane;if(B===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),F===Hs&&(G=!0);else if((Un&B)===B){R=R.next,B===Hs&&(G=!0);continue}else F={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},A===null?(x=A=F,b=p):A=A.next=F,de.lanes|=B,yi|=B;F=R.action,es&&a(p,F),p=R.hasEagerState?R.eagerState:a(p,F)}else B={lane:F,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},A===null?(x=A=B,b=p):A=A.next=B,de.lanes|=F,yi|=F;R=R.next}while(R!==null&&R!==s);if(A===null?b=p:A.next=x,!qt(p,t.memoizedState)&&(Pe=!0,G&&(a=qs,a!==null)))throw a;t.memoizedState=p,t.baseState=b,t.baseQueue=A,c.lastRenderedState=p}return h===null&&(c.lanes=0),[t.memoizedState,c.dispatch]}function Gu(t){var s=Ye(),a=s.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var c=a.dispatch,h=a.pending,p=s.memoizedState;if(h!==null){a.pending=null;var b=h=h.next;do p=t(p,b.action),b=b.next;while(b!==h);qt(p,s.memoizedState)||(Pe=!0),s.memoizedState=p,s.baseQueue===null&&(s.baseState=p),a.lastRenderedState=p}return[p,c]}function sg(t,s,a){var c=de,h=Ye(),p=ve;if(p){if(a===void 0)throw Error(r(407));a=a()}else a=s();var b=!qt((ke||h).memoizedState,a);if(b&&(h.memoizedState=a,Pe=!0),h=h.queue,Xu(lg.bind(null,c,h,t),[t]),h.getSnapshot!==s||b||Ze!==null&&Ze.memoizedState.tag&1){if(c.flags|=2048,Ys(9,{destroy:void 0},ag.bind(null,c,h,a,s),null),je===null)throw Error(r(349));p||(Un&127)!==0||rg(c,s,a)}return a}function rg(t,s,a){t.flags|=16384,t={getSnapshot:s,value:a},s=de.updateQueue,s===null?(s=Kl(),de.updateQueue=s,s.stores=[t]):(a=s.stores,a===null?s.stores=[t]:a.push(t))}function ag(t,s,a,c){s.value=a,s.getSnapshot=c,og(s)&&cg(t)}function lg(t,s,a){return a(function(){og(s)&&cg(t)})}function og(t){var s=t.getSnapshot;t=t.value;try{var a=s();return!qt(t,a)}catch{return!0}}function cg(t){var s=Ki(t,2);s!==null&&Lt(s,t,2)}function Ku(t){var s=_t();if(typeof t=="function"){var a=t;if(t=a(),es){vn(!0);try{a()}finally{vn(!1)}}}return s.memoizedState=s.baseState=t,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:t},s}function ug(t,s,a,c){return t.baseState=a,Vu(t,ke,typeof c=="function"?c:Hn)}function K1(t,s,a,c,h){if(Jl(t))throw Error(r(485));if(t=s.action,t!==null){var p={payload:h,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){p.listeners.push(b)}};z.T!==null?a(!0):p.isTransition=!1,c(p),a=s.pending,a===null?(p.next=s.pending=p,fg(s,p)):(p.next=a.next,s.pending=a.next=p)}}function fg(t,s){var a=s.action,c=s.payload,h=t.state;if(s.isTransition){var p=z.T,b={};z.T=b;try{var x=a(h,c),A=z.S;A!==null&&A(b,x),hg(t,s,x)}catch(R){Yu(t,s,R)}finally{p!==null&&b.types!==null&&(p.types=b.types),z.T=p}}else try{p=a(h,c),hg(t,s,p)}catch(R){Yu(t,s,R)}}function hg(t,s,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(c){dg(t,s,c)},function(c){return Yu(t,s,c)}):dg(t,s,a)}function dg(t,s,a){s.status="fulfilled",s.value=a,pg(s),t.state=a,s=t.pending,s!==null&&(a=s.next,a===s?t.pending=null:(a=a.next,s.next=a,fg(t,a)))}function Yu(t,s,a){var c=t.pending;if(t.pending=null,c!==null){c=c.next;do s.status="rejected",s.reason=a,pg(s),s=s.next;while(s!==c)}t.action=null}function pg(t){t=t.listeners;for(var s=0;s<t.length;s++)(0,t[s])()}function gg(t,s){return s}function mg(t,s){if(ve){var a=je.formState;if(a!==null){e:{var c=de;if(ve){if(De){t:{for(var h=De,p=tn;h.nodeType!==8;){if(!p){h=null;break t}if(h=sn(h.nextSibling),h===null){h=null;break t}}p=h.data,h=p==="F!"||p==="F"?h:null}if(h){De=sn(h.nextSibling),c=h.data==="F!";break e}}oi(c)}c=!1}c&&(s=a[0])}}return a=_t(),a.memoizedState=a.baseState=s,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gg,lastRenderedState:s},a.queue=c,a=Dg.bind(null,de,c),c.dispatch=a,c=Ku(!1),p=Pu.bind(null,de,!1,c.queue),c=_t(),h={state:s,dispatch:null,action:t,pending:null},c.queue=h,a=K1.bind(null,de,h,p,a),h.dispatch=a,c.memoizedState=t,[s,a,!1]}function yg(t){var s=Ye();return bg(s,ke,t)}function bg(t,s,a){if(s=Vu(t,s,gg)[0],t=Xl(Hn)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var c=ca(s)}catch(b){throw b===$s?zl:b}else c=s;s=Ye();var h=s.queue,p=h.dispatch;return a!==s.memoizedState&&(de.flags|=2048,Ys(9,{destroy:void 0},Y1.bind(null,h,a),null)),[c,p,t]}function Y1(t,s){t.action=s}function vg(t){var s=Ye(),a=ke;if(a!==null)return bg(s,a,t);Ye(),s=s.memoizedState,a=Ye();var c=a.queue.dispatch;return a.memoizedState=t,[s,c,!1]}function Ys(t,s,a,c){return t={tag:t,create:a,deps:c,inst:s,next:null},s=de.updateQueue,s===null&&(s=Kl(),de.updateQueue=s),a=s.lastEffect,a===null?s.lastEffect=t.next=t:(c=a.next,a.next=t,t.next=c,s.lastEffect=t),t}function Sg(){return Ye().memoizedState}function Fl(t,s,a,c){var h=_t();de.flags|=t,h.memoizedState=Ys(1|s,{destroy:void 0},a,c===void 0?null:c)}function Ql(t,s,a,c){var h=Ye();c=c===void 0?null:c;var p=h.memoizedState.inst;ke!==null&&c!==null&&zu(c,ke.memoizedState.deps)?h.memoizedState=Ys(s,p,a,c):(de.flags|=t,h.memoizedState=Ys(1|s,p,a,c))}function wg(t,s){Fl(8390656,8,t,s)}function Xu(t,s){Ql(2048,8,t,s)}function X1(t){de.flags|=4;var s=de.updateQueue;if(s===null)s=Kl(),de.updateQueue=s,s.events=[t];else{var a=s.events;a===null?s.events=[t]:a.push(t)}}function _g(t){var s=Ye().memoizedState;return X1({ref:s,nextImpl:t}),function(){if((Ee&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function xg(t,s){return Ql(4,2,t,s)}function Tg(t,s){return Ql(4,4,t,s)}function Eg(t,s){if(typeof s=="function"){t=t();var a=s(t);return function(){typeof a=="function"?a():s(null)}}if(s!=null)return t=t(),s.current=t,function(){s.current=null}}function Ag(t,s,a){a=a!=null?a.concat([t]):null,Ql(4,4,Eg.bind(null,s,t),a)}function Fu(){}function Ng(t,s){var a=Ye();s=s===void 0?null:s;var c=a.memoizedState;return s!==null&&zu(s,c[1])?c[0]:(a.memoizedState=[t,s],t)}function Cg(t,s){var a=Ye();s=s===void 0?null:s;var c=a.memoizedState;if(s!==null&&zu(s,c[1]))return c[0];if(c=t(),es){vn(!0);try{t()}finally{vn(!1)}}return a.memoizedState=[c,s],c}function Qu(t,s,a){return a===void 0||(Un&1073741824)!==0&&(ye&261930)===0?t.memoizedState=s:(t.memoizedState=a,t=km(),de.lanes|=t,yi|=t,a)}function kg(t,s,a,c){return qt(a,s)?a:Vs.current!==null?(t=Qu(t,a,c),qt(t,s)||(Pe=!0),t):(Un&42)===0||(Un&1073741824)!==0&&(ye&261930)===0?(Pe=!0,t.memoizedState=a):(t=km(),de.lanes|=t,yi|=t,s)}function Mg(t,s,a,c,h){var p=Z.p;Z.p=p!==0&&8>p?p:8;var b=z.T,x={};z.T=x,Pu(t,!1,s,a);try{var A=h(),R=z.S;if(R!==null&&R(x,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var G=I1(A,c);ua(t,s,G,Yt(t))}else ua(t,s,c,Yt(t))}catch(F){ua(t,s,{then:function(){},status:"rejected",reason:F},Yt())}finally{Z.p=p,b!==null&&x.types!==null&&(b.types=x.types),z.T=b}}function F1(){}function Ju(t,s,a,c){if(t.tag!==5)throw Error(r(476));var h=Og(t).queue;Mg(t,h,s,se,a===null?F1:function(){return jg(t),a(c)})}function Og(t){var s=t.memoizedState;if(s!==null)return s;s={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:se},next:null};var a={};return s.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:a},next:null},t.memoizedState=s,t=t.alternate,t!==null&&(t.memoizedState=s),s}function jg(t){var s=Og(t);s.next===null&&(s=t.alternate.memoizedState),ua(t,s.next.queue,{},Yt())}function Zu(){return ut(Na)}function Lg(){return Ye().memoizedState}function Rg(){return Ye().memoizedState}function Q1(t){for(var s=t.return;s!==null;){switch(s.tag){case 24:case 3:var a=Yt();t=fi(a);var c=hi(s,t,a);c!==null&&(Lt(c,s,a),ra(c,s,a)),s={cache:Au()},t.payload=s;return}s=s.return}}function J1(t,s,a){var c=Yt();a={lane:c,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Jl(t)?Bg(s,a):(a=gu(t,s,a,c),a!==null&&(Lt(a,t,c),zg(a,s,c)))}function Dg(t,s,a){var c=Yt();ua(t,s,a,c)}function ua(t,s,a,c){var h={lane:c,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Jl(t))Bg(s,h);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=s.lastRenderedReducer,p!==null))try{var b=s.lastRenderedState,x=p(b,a);if(h.hasEagerState=!0,h.eagerState=x,qt(x,b))return Ml(t,s,h,0),je===null&&kl(),!1}catch{}finally{}if(a=gu(t,s,h,c),a!==null)return Lt(a,t,c),zg(a,s,c),!0}return!1}function Pu(t,s,a,c){if(c={lane:2,revertLane:Of(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Jl(t)){if(s)throw Error(r(479))}else s=gu(t,a,c,2),s!==null&&Lt(s,t,2)}function Jl(t){var s=t.alternate;return t===de||s!==null&&s===de}function Bg(t,s){Gs=Vl=!0;var a=t.pending;a===null?s.next=s:(s.next=a.next,a.next=s),t.pending=s}function zg(t,s,a){if((a&4194048)!==0){var c=s.lanes;c&=t.pendingLanes,a|=c,s.lanes=a,Id(t,a)}}var fa={readContext:ut,use:Yl,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useLayoutEffect:Ve,useInsertionEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useSyncExternalStore:Ve,useId:Ve,useHostTransitionStatus:Ve,useFormState:Ve,useActionState:Ve,useOptimistic:Ve,useMemoCache:Ve,useCacheRefresh:Ve};fa.useEffectEvent=Ve;var Ug={readContext:ut,use:Yl,useCallback:function(t,s){return _t().memoizedState=[t,s===void 0?null:s],t},useContext:ut,useEffect:wg,useImperativeHandle:function(t,s,a){a=a!=null?a.concat([t]):null,Fl(4194308,4,Eg.bind(null,s,t),a)},useLayoutEffect:function(t,s){return Fl(4194308,4,t,s)},useInsertionEffect:function(t,s){Fl(4,2,t,s)},useMemo:function(t,s){var a=_t();s=s===void 0?null:s;var c=t();if(es){vn(!0);try{t()}finally{vn(!1)}}return a.memoizedState=[c,s],c},useReducer:function(t,s,a){var c=_t();if(a!==void 0){var h=a(s);if(es){vn(!0);try{a(s)}finally{vn(!1)}}}else h=s;return c.memoizedState=c.baseState=h,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:h},c.queue=t,t=t.dispatch=J1.bind(null,de,t),[c.memoizedState,t]},useRef:function(t){var s=_t();return t={current:t},s.memoizedState=t},useState:function(t){t=Ku(t);var s=t.queue,a=Dg.bind(null,de,s);return s.dispatch=a,[t.memoizedState,a]},useDebugValue:Fu,useDeferredValue:function(t,s){var a=_t();return Qu(a,t,s)},useTransition:function(){var t=Ku(!1);return t=Mg.bind(null,de,t.queue,!0,!1),_t().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,s,a){var c=de,h=_t();if(ve){if(a===void 0)throw Error(r(407));a=a()}else{if(a=s(),je===null)throw Error(r(349));(ye&127)!==0||rg(c,s,a)}h.memoizedState=a;var p={value:a,getSnapshot:s};return h.queue=p,wg(lg.bind(null,c,p,t),[t]),c.flags|=2048,Ys(9,{destroy:void 0},ag.bind(null,c,p,a,s),null),a},useId:function(){var t=_t(),s=je.identifierPrefix;if(ve){var a=_n,c=wn;a=(c&~(1<<32-wt(c)-1)).toString(32)+a,s="_"+s+"R_"+a,a=Gl++,0<a&&(s+="H"+a.toString(32)),s+="_"}else a=V1++,s="_"+s+"r_"+a.toString(32)+"_";return t.memoizedState=s},useHostTransitionStatus:Zu,useFormState:mg,useActionState:mg,useOptimistic:function(t){var s=_t();s.memoizedState=s.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=a,s=Pu.bind(null,de,!0,a),a.dispatch=s,[t,s]},useMemoCache:Iu,useCacheRefresh:function(){return _t().memoizedState=Q1.bind(null,de)},useEffectEvent:function(t){var s=_t(),a={impl:t};return s.memoizedState=a,function(){if((Ee&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Wu={readContext:ut,use:Yl,useCallback:Ng,useContext:ut,useEffect:Xu,useImperativeHandle:Ag,useInsertionEffect:xg,useLayoutEffect:Tg,useMemo:Cg,useReducer:Xl,useRef:Sg,useState:function(){return Xl(Hn)},useDebugValue:Fu,useDeferredValue:function(t,s){var a=Ye();return kg(a,ke.memoizedState,t,s)},useTransition:function(){var t=Xl(Hn)[0],s=Ye().memoizedState;return[typeof t=="boolean"?t:ca(t),s]},useSyncExternalStore:sg,useId:Lg,useHostTransitionStatus:Zu,useFormState:yg,useActionState:yg,useOptimistic:function(t,s){var a=Ye();return ug(a,ke,t,s)},useMemoCache:Iu,useCacheRefresh:Rg};Wu.useEffectEvent=_g;var Hg={readContext:ut,use:Yl,useCallback:Ng,useContext:ut,useEffect:Xu,useImperativeHandle:Ag,useInsertionEffect:xg,useLayoutEffect:Tg,useMemo:Cg,useReducer:Gu,useRef:Sg,useState:function(){return Gu(Hn)},useDebugValue:Fu,useDeferredValue:function(t,s){var a=Ye();return ke===null?Qu(a,t,s):kg(a,ke.memoizedState,t,s)},useTransition:function(){var t=Gu(Hn)[0],s=Ye().memoizedState;return[typeof t=="boolean"?t:ca(t),s]},useSyncExternalStore:sg,useId:Lg,useHostTransitionStatus:Zu,useFormState:vg,useActionState:vg,useOptimistic:function(t,s){var a=Ye();return ke!==null?ug(a,ke,t,s):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Iu,useCacheRefresh:Rg};Hg.useEffectEvent=_g;function ef(t,s,a,c){s=t.memoizedState,a=a(c,s),a=a==null?s:m({},s,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var tf={enqueueSetState:function(t,s,a){t=t._reactInternals;var c=Yt(),h=fi(c);h.payload=s,a!=null&&(h.callback=a),s=hi(t,h,c),s!==null&&(Lt(s,t,c),ra(s,t,c))},enqueueReplaceState:function(t,s,a){t=t._reactInternals;var c=Yt(),h=fi(c);h.tag=1,h.payload=s,a!=null&&(h.callback=a),s=hi(t,h,c),s!==null&&(Lt(s,t,c),ra(s,t,c))},enqueueForceUpdate:function(t,s){t=t._reactInternals;var a=Yt(),c=fi(a);c.tag=2,s!=null&&(c.callback=s),s=hi(t,c,a),s!==null&&(Lt(s,t,a),ra(s,t,a))}};function qg(t,s,a,c,h,p,b){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(c,p,b):s.prototype&&s.prototype.isPureReactComponent?!Zr(a,c)||!Zr(h,p):!0}function $g(t,s,a,c){t=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(a,c),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(a,c),s.state!==t&&tf.enqueueReplaceState(s,s.state,null)}function ts(t,s){var a=s;if("ref"in s){a={};for(var c in s)c!=="ref"&&(a[c]=s[c])}if(t=t.defaultProps){a===s&&(a=m({},a));for(var h in t)a[h]===void 0&&(a[h]=t[h])}return a}function Ig(t){Cl(t)}function Vg(t){console.error(t)}function Gg(t){Cl(t)}function Zl(t,s){try{var a=t.onUncaughtError;a(s.value,{componentStack:s.stack})}catch(c){setTimeout(function(){throw c})}}function Kg(t,s,a){try{var c=t.onCaughtError;c(a.value,{componentStack:a.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function nf(t,s,a){return a=fi(a),a.tag=3,a.payload={element:null},a.callback=function(){Zl(t,s)},a}function Yg(t){return t=fi(t),t.tag=3,t}function Xg(t,s,a,c){var h=a.type.getDerivedStateFromError;if(typeof h=="function"){var p=c.value;t.payload=function(){return h(p)},t.callback=function(){Kg(s,a,c)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(t.callback=function(){Kg(s,a,c),typeof h!="function"&&(bi===null?bi=new Set([this]):bi.add(this));var x=c.stack;this.componentDidCatch(c.value,{componentStack:x!==null?x:""})})}function Z1(t,s,a,c,h){if(a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(s=a.alternate,s!==null&&Us(s,a,h,!0),a=It.current,a!==null){switch(a.tag){case 31:case 13:return nn===null?co():a.alternate===null&&Ge===0&&(Ge=3),a.flags&=-257,a.flags|=65536,a.lanes=h,c===Ul?a.flags|=16384:(s=a.updateQueue,s===null?a.updateQueue=new Set([c]):s.add(c),Cf(t,c,h)),!1;case 22:return a.flags|=65536,c===Ul?a.flags|=16384:(s=a.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([c])},a.updateQueue=s):(a=s.retryQueue,a===null?s.retryQueue=new Set([c]):a.add(c)),Cf(t,c,h)),!1}throw Error(r(435,a.tag))}return Cf(t,c,h),co(),!1}if(ve)return s=It.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=h,c!==wu&&(t=Error(r(422),{cause:c}),ea(Pt(t,a)))):(c!==wu&&(s=Error(r(423),{cause:c}),ea(Pt(s,a))),t=t.current.alternate,t.flags|=65536,h&=-h,t.lanes|=h,c=Pt(c,a),h=nf(t.stateNode,c,h),ju(t,h),Ge!==4&&(Ge=2)),!1;var p=Error(r(520),{cause:c});if(p=Pt(p,a),va===null?va=[p]:va.push(p),Ge!==4&&(Ge=2),s===null)return!0;c=Pt(c,a),a=s;do{switch(a.tag){case 3:return a.flags|=65536,t=h&-h,a.lanes|=t,t=nf(a.stateNode,c,t),ju(a,t),!1;case 1:if(s=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(bi===null||!bi.has(p))))return a.flags|=65536,h&=-h,a.lanes|=h,h=Yg(h),Xg(h,t,a,c),ju(a,h),!1}a=a.return}while(a!==null);return!1}var sf=Error(r(461)),Pe=!1;function ft(t,s,a,c){s.child=t===null?Zp(s,null,a,c):Wi(s,t.child,a,c)}function Fg(t,s,a,c,h){a=a.render;var p=s.ref;if("ref"in c){var b={};for(var x in c)x!=="ref"&&(b[x]=c[x])}else b=c;return Qi(s),c=Uu(t,s,a,b,p,h),x=Hu(),t!==null&&!Pe?(qu(t,s,h),qn(t,s,h)):(ve&&x&&vu(s),s.flags|=1,ft(t,s,c,h),s.child)}function Qg(t,s,a,c,h){if(t===null){var p=a.type;return typeof p=="function"&&!mu(p)&&p.defaultProps===void 0&&a.compare===null?(s.tag=15,s.type=p,Jg(t,s,p,c,h)):(t=jl(a.type,null,c,s,s.mode,h),t.ref=s.ref,t.return=s,s.child=t)}if(p=t.child,!hf(t,h)){var b=p.memoizedProps;if(a=a.compare,a=a!==null?a:Zr,a(b,c)&&t.ref===s.ref)return qn(t,s,h)}return s.flags|=1,t=Rn(p,c),t.ref=s.ref,t.return=s,s.child=t}function Jg(t,s,a,c,h){if(t!==null){var p=t.memoizedProps;if(Zr(p,c)&&t.ref===s.ref)if(Pe=!1,s.pendingProps=c=p,hf(t,h))(t.flags&131072)!==0&&(Pe=!0);else return s.lanes=t.lanes,qn(t,s,h)}return rf(t,s,a,c,h)}function Zg(t,s,a,c){var h=c.children,p=t!==null?t.memoizedState:null;if(t===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((s.flags&128)!==0){if(p=p!==null?p.baseLanes|a:a,t!==null){for(c=s.child=t.child,h=0;c!==null;)h=h|c.lanes|c.childLanes,c=c.sibling;c=h&~p}else c=0,s.child=null;return Pg(t,s,p,a,c)}if((a&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},t!==null&&Bl(s,p!==null?p.cachePool:null),p!==null?eg(s,p):Ru(),tg(s);else return c=s.lanes=536870912,Pg(t,s,p!==null?p.baseLanes|a:a,a,c)}else p!==null?(Bl(s,p.cachePool),eg(s,p),pi(),s.memoizedState=null):(t!==null&&Bl(s,null),Ru(),pi());return ft(t,s,h,a),s.child}function ha(t,s){return t!==null&&t.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function Pg(t,s,a,c,h){var p=Cu();return p=p===null?null:{parent:Je._currentValue,pool:p},s.memoizedState={baseLanes:a,cachePool:p},t!==null&&Bl(s,null),Ru(),tg(s),t!==null&&Us(t,s,c,!0),s.childLanes=h,null}function Pl(t,s){return s=eo({mode:s.mode,children:s.children},t.mode),s.ref=t.ref,t.child=s,s.return=t,s}function Wg(t,s,a){return Wi(s,t.child,null,a),t=Pl(s,s.pendingProps),t.flags|=2,Vt(s),s.memoizedState=null,t}function P1(t,s,a){var c=s.pendingProps,h=(s.flags&128)!==0;if(s.flags&=-129,t===null){if(ve){if(c.mode==="hidden")return t=Pl(s,c),s.lanes=536870912,ha(null,t);if(Bu(s),(t=De)?(t=fy(t,tn),t=t!==null&&t.data==="&"?t:null,t!==null&&(s.memoizedState={dehydrated:t,treeContext:ai!==null?{id:wn,overflow:_n}:null,retryLane:536870912,hydrationErrors:null},a=Bp(t),a.return=s,s.child=a,ct=s,De=null)):t=null,t===null)throw oi(s);return s.lanes=536870912,null}return Pl(s,c)}var p=t.memoizedState;if(p!==null){var b=p.dehydrated;if(Bu(s),h)if(s.flags&256)s.flags&=-257,s=Wg(t,s,a);else if(s.memoizedState!==null)s.child=t.child,s.flags|=128,s=null;else throw Error(r(558));else if(Pe||Us(t,s,a,!1),h=(a&t.childLanes)!==0,Pe||h){if(c=je,c!==null&&(b=Vd(c,a),b!==0&&b!==p.retryLane))throw p.retryLane=b,Ki(t,b),Lt(c,t,b),sf;co(),s=Wg(t,s,a)}else t=p.treeContext,De=sn(b.nextSibling),ct=s,ve=!0,li=null,tn=!1,t!==null&&Hp(s,t),s=Pl(s,c),s.flags|=4096;return s}return t=Rn(t.child,{mode:c.mode,children:c.children}),t.ref=s.ref,s.child=t,t.return=s,t}function Wl(t,s){var a=s.ref;if(a===null)t!==null&&t.ref!==null&&(s.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(s.flags|=4194816)}}function rf(t,s,a,c,h){return Qi(s),a=Uu(t,s,a,c,void 0,h),c=Hu(),t!==null&&!Pe?(qu(t,s,h),qn(t,s,h)):(ve&&c&&vu(s),s.flags|=1,ft(t,s,a,h),s.child)}function em(t,s,a,c,h,p){return Qi(s),s.updateQueue=null,a=ig(s,c,a,h),ng(t),c=Hu(),t!==null&&!Pe?(qu(t,s,p),qn(t,s,p)):(ve&&c&&vu(s),s.flags|=1,ft(t,s,a,p),s.child)}function tm(t,s,a,c,h){if(Qi(s),s.stateNode===null){var p=Rs,b=a.contextType;typeof b=="object"&&b!==null&&(p=ut(b)),p=new a(c,p),s.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=tf,s.stateNode=p,p._reactInternals=s,p=s.stateNode,p.props=c,p.state=s.memoizedState,p.refs={},Mu(s),b=a.contextType,p.context=typeof b=="object"&&b!==null?ut(b):Rs,p.state=s.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(ef(s,a,b,c),p.state=s.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(b=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),b!==p.state&&tf.enqueueReplaceState(p,p.state,null),la(s,c,p,h),aa(),p.state=s.memoizedState),typeof p.componentDidMount=="function"&&(s.flags|=4194308),c=!0}else if(t===null){p=s.stateNode;var x=s.memoizedProps,A=ts(a,x);p.props=A;var R=p.context,G=a.contextType;b=Rs,typeof G=="object"&&G!==null&&(b=ut(G));var F=a.getDerivedStateFromProps;G=typeof F=="function"||typeof p.getSnapshotBeforeUpdate=="function",x=s.pendingProps!==x,G||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(x||R!==b)&&$g(s,p,c,b),ui=!1;var B=s.memoizedState;p.state=B,la(s,c,p,h),aa(),R=s.memoizedState,x||B!==R||ui?(typeof F=="function"&&(ef(s,a,F,c),R=s.memoizedState),(A=ui||qg(s,a,A,c,B,R,b))?(G||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(s.flags|=4194308)):(typeof p.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=c,s.memoizedState=R),p.props=c,p.state=R,p.context=b,c=A):(typeof p.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{p=s.stateNode,Ou(t,s),b=s.memoizedProps,G=ts(a,b),p.props=G,F=s.pendingProps,B=p.context,R=a.contextType,A=Rs,typeof R=="object"&&R!==null&&(A=ut(R)),x=a.getDerivedStateFromProps,(R=typeof x=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(b!==F||B!==A)&&$g(s,p,c,A),ui=!1,B=s.memoizedState,p.state=B,la(s,c,p,h),aa();var H=s.memoizedState;b!==F||B!==H||ui||t!==null&&t.dependencies!==null&&Rl(t.dependencies)?(typeof x=="function"&&(ef(s,a,x,c),H=s.memoizedState),(G=ui||qg(s,a,G,c,B,H,A)||t!==null&&t.dependencies!==null&&Rl(t.dependencies))?(R||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(c,H,A),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(c,H,A)),typeof p.componentDidUpdate=="function"&&(s.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof p.componentDidUpdate!="function"||b===t.memoizedProps&&B===t.memoizedState||(s.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===t.memoizedProps&&B===t.memoizedState||(s.flags|=1024),s.memoizedProps=c,s.memoizedState=H),p.props=c,p.state=H,p.context=A,c=G):(typeof p.componentDidUpdate!="function"||b===t.memoizedProps&&B===t.memoizedState||(s.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===t.memoizedProps&&B===t.memoizedState||(s.flags|=1024),c=!1)}return p=c,Wl(t,s),c=(s.flags&128)!==0,p||c?(p=s.stateNode,a=c&&typeof a.getDerivedStateFromError!="function"?null:p.render(),s.flags|=1,t!==null&&c?(s.child=Wi(s,t.child,null,h),s.child=Wi(s,null,a,h)):ft(t,s,a,h),s.memoizedState=p.state,t=s.child):t=qn(t,s,h),t}function nm(t,s,a,c){return Xi(),s.flags|=256,ft(t,s,a,c),s.child}var af={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lf(t){return{baseLanes:t,cachePool:Kp()}}function of(t,s,a){return t=t!==null?t.childLanes&~a:0,s&&(t|=Kt),t}function im(t,s,a){var c=s.pendingProps,h=!1,p=(s.flags&128)!==0,b;if((b=p)||(b=t!==null&&t.memoizedState===null?!1:(Ke.current&2)!==0),b&&(h=!0,s.flags&=-129),b=(s.flags&32)!==0,s.flags&=-33,t===null){if(ve){if(h?di(s):pi(),(t=De)?(t=fy(t,tn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(s.memoizedState={dehydrated:t,treeContext:ai!==null?{id:wn,overflow:_n}:null,retryLane:536870912,hydrationErrors:null},a=Bp(t),a.return=s,s.child=a,ct=s,De=null)):t=null,t===null)throw oi(s);return Gf(t)?s.lanes=32:s.lanes=536870912,null}var x=c.children;return c=c.fallback,h?(pi(),h=s.mode,x=eo({mode:"hidden",children:x},h),c=Yi(c,h,a,null),x.return=s,c.return=s,x.sibling=c,s.child=x,c=s.child,c.memoizedState=lf(a),c.childLanes=of(t,b,a),s.memoizedState=af,ha(null,c)):(di(s),cf(s,x))}var A=t.memoizedState;if(A!==null&&(x=A.dehydrated,x!==null)){if(p)s.flags&256?(di(s),s.flags&=-257,s=uf(t,s,a)):s.memoizedState!==null?(pi(),s.child=t.child,s.flags|=128,s=null):(pi(),x=c.fallback,h=s.mode,c=eo({mode:"visible",children:c.children},h),x=Yi(x,h,a,null),x.flags|=2,c.return=s,x.return=s,c.sibling=x,s.child=c,Wi(s,t.child,null,a),c=s.child,c.memoizedState=lf(a),c.childLanes=of(t,b,a),s.memoizedState=af,s=ha(null,c));else if(di(s),Gf(x)){if(b=x.nextSibling&&x.nextSibling.dataset,b)var R=b.dgst;b=R,c=Error(r(419)),c.stack="",c.digest=b,ea({value:c,source:null,stack:null}),s=uf(t,s,a)}else if(Pe||Us(t,s,a,!1),b=(a&t.childLanes)!==0,Pe||b){if(b=je,b!==null&&(c=Vd(b,a),c!==0&&c!==A.retryLane))throw A.retryLane=c,Ki(t,c),Lt(b,t,c),sf;Vf(x)||co(),s=uf(t,s,a)}else Vf(x)?(s.flags|=192,s.child=t.child,s=null):(t=A.treeContext,De=sn(x.nextSibling),ct=s,ve=!0,li=null,tn=!1,t!==null&&Hp(s,t),s=cf(s,c.children),s.flags|=4096);return s}return h?(pi(),x=c.fallback,h=s.mode,A=t.child,R=A.sibling,c=Rn(A,{mode:"hidden",children:c.children}),c.subtreeFlags=A.subtreeFlags&65011712,R!==null?x=Rn(R,x):(x=Yi(x,h,a,null),x.flags|=2),x.return=s,c.return=s,c.sibling=x,s.child=c,ha(null,c),c=s.child,x=t.child.memoizedState,x===null?x=lf(a):(h=x.cachePool,h!==null?(A=Je._currentValue,h=h.parent!==A?{parent:A,pool:A}:h):h=Kp(),x={baseLanes:x.baseLanes|a,cachePool:h}),c.memoizedState=x,c.childLanes=of(t,b,a),s.memoizedState=af,ha(t.child,c)):(di(s),a=t.child,t=a.sibling,a=Rn(a,{mode:"visible",children:c.children}),a.return=s,a.sibling=null,t!==null&&(b=s.deletions,b===null?(s.deletions=[t],s.flags|=16):b.push(t)),s.child=a,s.memoizedState=null,a)}function cf(t,s){return s=eo({mode:"visible",children:s},t.mode),s.return=t,t.child=s}function eo(t,s){return t=$t(22,t,null,s),t.lanes=0,t}function uf(t,s,a){return Wi(s,t.child,null,a),t=cf(s,s.pendingProps.children),t.flags|=2,s.memoizedState=null,t}function sm(t,s,a){t.lanes|=s;var c=t.alternate;c!==null&&(c.lanes|=s),Tu(t.return,s,a)}function ff(t,s,a,c,h,p){var b=t.memoizedState;b===null?t.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:c,tail:a,tailMode:h,treeForkCount:p}:(b.isBackwards=s,b.rendering=null,b.renderingStartTime=0,b.last=c,b.tail=a,b.tailMode=h,b.treeForkCount=p)}function rm(t,s,a){var c=s.pendingProps,h=c.revealOrder,p=c.tail;c=c.children;var b=Ke.current,x=(b&2)!==0;if(x?(b=b&1|2,s.flags|=128):b&=1,P(Ke,b),ft(t,s,c,a),c=ve?Wr:0,!x&&t!==null&&(t.flags&128)!==0)e:for(t=s.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&sm(t,a,s);else if(t.tag===19)sm(t,a,s);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===s)break e;for(;t.sibling===null;){if(t.return===null||t.return===s)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(h){case"forwards":for(a=s.child,h=null;a!==null;)t=a.alternate,t!==null&&Il(t)===null&&(h=a),a=a.sibling;a=h,a===null?(h=s.child,s.child=null):(h=a.sibling,a.sibling=null),ff(s,!1,h,a,p,c);break;case"backwards":case"unstable_legacy-backwards":for(a=null,h=s.child,s.child=null;h!==null;){if(t=h.alternate,t!==null&&Il(t)===null){s.child=h;break}t=h.sibling,h.sibling=a,a=h,h=t}ff(s,!0,a,null,p,c);break;case"together":ff(s,!1,null,null,void 0,c);break;default:s.memoizedState=null}return s.child}function qn(t,s,a){if(t!==null&&(s.dependencies=t.dependencies),yi|=s.lanes,(a&s.childLanes)===0)if(t!==null){if(Us(t,s,a,!1),(a&s.childLanes)===0)return null}else return null;if(t!==null&&s.child!==t.child)throw Error(r(153));if(s.child!==null){for(t=s.child,a=Rn(t,t.pendingProps),s.child=a,a.return=s;t.sibling!==null;)t=t.sibling,a=a.sibling=Rn(t,t.pendingProps),a.return=s;a.sibling=null}return s.child}function hf(t,s){return(t.lanes&s)!==0?!0:(t=t.dependencies,!!(t!==null&&Rl(t)))}function W1(t,s,a){switch(s.tag){case 3:tt(s,s.stateNode.containerInfo),ci(s,Je,t.memoizedState.cache),Xi();break;case 27:case 5:zi(s);break;case 4:tt(s,s.stateNode.containerInfo);break;case 10:ci(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,Bu(s),null;break;case 13:var c=s.memoizedState;if(c!==null)return c.dehydrated!==null?(di(s),s.flags|=128,null):(a&s.child.childLanes)!==0?im(t,s,a):(di(s),t=qn(t,s,a),t!==null?t.sibling:null);di(s);break;case 19:var h=(t.flags&128)!==0;if(c=(a&s.childLanes)!==0,c||(Us(t,s,a,!1),c=(a&s.childLanes)!==0),h){if(c)return rm(t,s,a);s.flags|=128}if(h=s.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),P(Ke,Ke.current),c)break;return null;case 22:return s.lanes=0,Zg(t,s,a,s.pendingProps);case 24:ci(s,Je,t.memoizedState.cache)}return qn(t,s,a)}function am(t,s,a){if(t!==null)if(t.memoizedProps!==s.pendingProps)Pe=!0;else{if(!hf(t,a)&&(s.flags&128)===0)return Pe=!1,W1(t,s,a);Pe=(t.flags&131072)!==0}else Pe=!1,ve&&(s.flags&1048576)!==0&&Up(s,Wr,s.index);switch(s.lanes=0,s.tag){case 16:e:{var c=s.pendingProps;if(t=Zi(s.elementType),s.type=t,typeof t=="function")mu(t)?(c=ts(t,c),s.tag=1,s=tm(null,s,t,c,a)):(s.tag=0,s=rf(null,s,t,c,a));else{if(t!=null){var h=t.$$typeof;if(h===I){s.tag=11,s=Fg(null,s,t,c,a);break e}else if(h===Q){s.tag=14,s=Qg(null,s,t,c,a);break e}}throw s=W(t)||t,Error(r(306,s,""))}}return s;case 0:return rf(t,s,s.type,s.pendingProps,a);case 1:return c=s.type,h=ts(c,s.pendingProps),tm(t,s,c,h,a);case 3:e:{if(tt(s,s.stateNode.containerInfo),t===null)throw Error(r(387));c=s.pendingProps;var p=s.memoizedState;h=p.element,Ou(t,s),la(s,c,null,a);var b=s.memoizedState;if(c=b.cache,ci(s,Je,c),c!==p.cache&&Eu(s,[Je],a,!0),aa(),c=b.element,p.isDehydrated)if(p={element:c,isDehydrated:!1,cache:b.cache},s.updateQueue.baseState=p,s.memoizedState=p,s.flags&256){s=nm(t,s,c,a);break e}else if(c!==h){h=Pt(Error(r(424)),s),ea(h),s=nm(t,s,c,a);break e}else{switch(t=s.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(De=sn(t.firstChild),ct=s,ve=!0,li=null,tn=!0,a=Zp(s,null,c,a),s.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Xi(),c===h){s=qn(t,s,a);break e}ft(t,s,c,a)}s=s.child}return s;case 26:return Wl(t,s),t===null?(a=yy(s.type,null,s.pendingProps,null))?s.memoizedState=a:ve||(a=s.type,t=s.pendingProps,c=yo(re.current).createElement(a),c[ot]=s,c[Nt]=t,ht(c,a,t),at(c),s.stateNode=c):s.memoizedState=yy(s.type,t.memoizedProps,s.pendingProps,t.memoizedState),null;case 27:return zi(s),t===null&&ve&&(c=s.stateNode=py(s.type,s.pendingProps,re.current),ct=s,tn=!0,h=De,_i(s.type)?(Kf=h,De=sn(c.firstChild)):De=h),ft(t,s,s.pendingProps.children,a),Wl(t,s),t===null&&(s.flags|=4194304),s.child;case 5:return t===null&&ve&&((h=c=De)&&(c=kw(c,s.type,s.pendingProps,tn),c!==null?(s.stateNode=c,ct=s,De=sn(c.firstChild),tn=!1,h=!0):h=!1),h||oi(s)),zi(s),h=s.type,p=s.pendingProps,b=t!==null?t.memoizedProps:null,c=p.children,qf(h,p)?c=null:b!==null&&qf(h,b)&&(s.flags|=32),s.memoizedState!==null&&(h=Uu(t,s,G1,null,null,a),Na._currentValue=h),Wl(t,s),ft(t,s,c,a),s.child;case 6:return t===null&&ve&&((t=a=De)&&(a=Mw(a,s.pendingProps,tn),a!==null?(s.stateNode=a,ct=s,De=null,t=!0):t=!1),t||oi(s)),null;case 13:return im(t,s,a);case 4:return tt(s,s.stateNode.containerInfo),c=s.pendingProps,t===null?s.child=Wi(s,null,c,a):ft(t,s,c,a),s.child;case 11:return Fg(t,s,s.type,s.pendingProps,a);case 7:return ft(t,s,s.pendingProps,a),s.child;case 8:return ft(t,s,s.pendingProps.children,a),s.child;case 12:return ft(t,s,s.pendingProps.children,a),s.child;case 10:return c=s.pendingProps,ci(s,s.type,c.value),ft(t,s,c.children,a),s.child;case 9:return h=s.type._context,c=s.pendingProps.children,Qi(s),h=ut(h),c=c(h),s.flags|=1,ft(t,s,c,a),s.child;case 14:return Qg(t,s,s.type,s.pendingProps,a);case 15:return Jg(t,s,s.type,s.pendingProps,a);case 19:return rm(t,s,a);case 31:return P1(t,s,a);case 22:return Zg(t,s,a,s.pendingProps);case 24:return Qi(s),c=ut(Je),t===null?(h=Cu(),h===null&&(h=je,p=Au(),h.pooledCache=p,p.refCount++,p!==null&&(h.pooledCacheLanes|=a),h=p),s.memoizedState={parent:c,cache:h},Mu(s),ci(s,Je,h)):((t.lanes&a)!==0&&(Ou(t,s),la(s,null,null,a),aa()),h=t.memoizedState,p=s.memoizedState,h.parent!==c?(h={parent:c,cache:c},s.memoizedState=h,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=h),ci(s,Je,c)):(c=p.cache,ci(s,Je,c),c!==h.cache&&Eu(s,[Je],a,!0))),ft(t,s,s.pendingProps.children,a),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function $n(t){t.flags|=4}function df(t,s,a,c,h){if((s=(t.mode&32)!==0)&&(s=!1),s){if(t.flags|=16777216,(h&335544128)===h)if(t.stateNode.complete)t.flags|=8192;else if(Lm())t.flags|=8192;else throw Pi=Ul,ku}else t.flags&=-16777217}function lm(t,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!_y(s))if(Lm())t.flags|=8192;else throw Pi=Ul,ku}function to(t,s){s!==null&&(t.flags|=4),t.flags&16384&&(s=t.tag!==22?qd():536870912,t.lanes|=s,Js|=s)}function da(t,s){if(!ve)switch(t.tailMode){case"hidden":s=t.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?s||t.tail===null?t.tail=null:t.tail.sibling=null:c.sibling=null}}function Be(t){var s=t.alternate!==null&&t.alternate.child===t.child,a=0,c=0;if(s)for(var h=t.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags&65011712,c|=h.flags&65011712,h.return=t,h=h.sibling;else for(h=t.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=t,h=h.sibling;return t.subtreeFlags|=c,t.childLanes=a,s}function ew(t,s,a){var c=s.pendingProps;switch(Su(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(s),null;case 1:return Be(s),null;case 3:return a=s.stateNode,c=null,t!==null&&(c=t.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),zn(Je),Re(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(zs(s)?$n(s):t===null||t.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,_u())),Be(s),null;case 26:var h=s.type,p=s.memoizedState;return t===null?($n(s),p!==null?(Be(s),lm(s,p)):(Be(s),df(s,h,null,c,a))):p?p!==t.memoizedState?($n(s),Be(s),lm(s,p)):(Be(s),s.flags&=-16777217):(t=t.memoizedProps,t!==c&&$n(s),Be(s),df(s,h,t,c,a)),null;case 27:if(kn(s),a=re.current,h=s.type,t!==null&&s.stateNode!=null)t.memoizedProps!==c&&$n(s);else{if(!c){if(s.stateNode===null)throw Error(r(166));return Be(s),null}t=ee.current,zs(s)?qp(s):(t=py(h,c,a),s.stateNode=t,$n(s))}return Be(s),null;case 5:if(kn(s),h=s.type,t!==null&&s.stateNode!=null)t.memoizedProps!==c&&$n(s);else{if(!c){if(s.stateNode===null)throw Error(r(166));return Be(s),null}if(p=ee.current,zs(s))qp(s);else{var b=yo(re.current);switch(p){case 1:p=b.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:p=b.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":p=b.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":p=b.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":p=b.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof c.is=="string"?b.createElement("select",{is:c.is}):b.createElement("select"),c.multiple?p.multiple=!0:c.size&&(p.size=c.size);break;default:p=typeof c.is=="string"?b.createElement(h,{is:c.is}):b.createElement(h)}}p[ot]=s,p[Nt]=c;e:for(b=s.child;b!==null;){if(b.tag===5||b.tag===6)p.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===s)break e;for(;b.sibling===null;){if(b.return===null||b.return===s)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}s.stateNode=p;e:switch(ht(p,h,c),h){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&$n(s)}}return Be(s),df(s,s.type,t===null?null:t.memoizedProps,s.pendingProps,a),null;case 6:if(t&&s.stateNode!=null)t.memoizedProps!==c&&$n(s);else{if(typeof c!="string"&&s.stateNode===null)throw Error(r(166));if(t=re.current,zs(s)){if(t=s.stateNode,a=s.memoizedProps,c=null,h=ct,h!==null)switch(h.tag){case 27:case 5:c=h.memoizedProps}t[ot]=s,t=!!(t.nodeValue===a||c!==null&&c.suppressHydrationWarning===!0||iy(t.nodeValue,a)),t||oi(s,!0)}else t=yo(t).createTextNode(c),t[ot]=s,s.stateNode=t}return Be(s),null;case 31:if(a=s.memoizedState,t===null||t.memoizedState!==null){if(c=zs(s),a!==null){if(t===null){if(!c)throw Error(r(318));if(t=s.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[ot]=s}else Xi(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Be(s),t=!1}else a=_u(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return s.flags&256?(Vt(s),s):(Vt(s),null);if((s.flags&128)!==0)throw Error(r(558))}return Be(s),null;case 13:if(c=s.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(h=zs(s),c!==null&&c.dehydrated!==null){if(t===null){if(!h)throw Error(r(318));if(h=s.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(r(317));h[ot]=s}else Xi(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Be(s),h=!1}else h=_u(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=h),h=!0;if(!h)return s.flags&256?(Vt(s),s):(Vt(s),null)}return Vt(s),(s.flags&128)!==0?(s.lanes=a,s):(a=c!==null,t=t!==null&&t.memoizedState!==null,a&&(c=s.child,h=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(h=c.alternate.memoizedState.cachePool.pool),p=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(p=c.memoizedState.cachePool.pool),p!==h&&(c.flags|=2048)),a!==t&&a&&(s.child.flags|=8192),to(s,s.updateQueue),Be(s),null);case 4:return Re(),t===null&&Df(s.stateNode.containerInfo),Be(s),null;case 10:return zn(s.type),Be(s),null;case 19:if(Y(Ke),c=s.memoizedState,c===null)return Be(s),null;if(h=(s.flags&128)!==0,p=c.rendering,p===null)if(h)da(c,!1);else{if(Ge!==0||t!==null&&(t.flags&128)!==0)for(t=s.child;t!==null;){if(p=Il(t),p!==null){for(s.flags|=128,da(c,!1),t=p.updateQueue,s.updateQueue=t,to(s,t),s.subtreeFlags=0,t=a,a=s.child;a!==null;)Dp(a,t),a=a.sibling;return P(Ke,Ke.current&1|2),ve&&Dn(s,c.treeForkCount),s.child}t=t.sibling}c.tail!==null&&St()>ao&&(s.flags|=128,h=!0,da(c,!1),s.lanes=4194304)}else{if(!h)if(t=Il(p),t!==null){if(s.flags|=128,h=!0,t=t.updateQueue,s.updateQueue=t,to(s,t),da(c,!0),c.tail===null&&c.tailMode==="hidden"&&!p.alternate&&!ve)return Be(s),null}else 2*St()-c.renderingStartTime>ao&&a!==536870912&&(s.flags|=128,h=!0,da(c,!1),s.lanes=4194304);c.isBackwards?(p.sibling=s.child,s.child=p):(t=c.last,t!==null?t.sibling=p:s.child=p,c.last=p)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=St(),t.sibling=null,a=Ke.current,P(Ke,h?a&1|2:a&1),ve&&Dn(s,c.treeForkCount),t):(Be(s),null);case 22:case 23:return Vt(s),Du(),c=s.memoizedState!==null,t!==null?t.memoizedState!==null!==c&&(s.flags|=8192):c&&(s.flags|=8192),c?(a&536870912)!==0&&(s.flags&128)===0&&(Be(s),s.subtreeFlags&6&&(s.flags|=8192)):Be(s),a=s.updateQueue,a!==null&&to(s,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),c=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==a&&(s.flags|=2048),t!==null&&Y(Ji),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),s.memoizedState.cache!==a&&(s.flags|=2048),zn(Je),Be(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function tw(t,s){switch(Su(s),s.tag){case 1:return t=s.flags,t&65536?(s.flags=t&-65537|128,s):null;case 3:return zn(Je),Re(),t=s.flags,(t&65536)!==0&&(t&128)===0?(s.flags=t&-65537|128,s):null;case 26:case 27:case 5:return kn(s),null;case 31:if(s.memoizedState!==null){if(Vt(s),s.alternate===null)throw Error(r(340));Xi()}return t=s.flags,t&65536?(s.flags=t&-65537|128,s):null;case 13:if(Vt(s),t=s.memoizedState,t!==null&&t.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Xi()}return t=s.flags,t&65536?(s.flags=t&-65537|128,s):null;case 19:return Y(Ke),null;case 4:return Re(),null;case 10:return zn(s.type),null;case 22:case 23:return Vt(s),Du(),t!==null&&Y(Ji),t=s.flags,t&65536?(s.flags=t&-65537|128,s):null;case 24:return zn(Je),null;case 25:return null;default:return null}}function om(t,s){switch(Su(s),s.tag){case 3:zn(Je),Re();break;case 26:case 27:case 5:kn(s);break;case 4:Re();break;case 31:s.memoizedState!==null&&Vt(s);break;case 13:Vt(s);break;case 19:Y(Ke);break;case 10:zn(s.type);break;case 22:case 23:Vt(s),Du(),t!==null&&Y(Ji);break;case 24:zn(Je)}}function pa(t,s){try{var a=s.updateQueue,c=a!==null?a.lastEffect:null;if(c!==null){var h=c.next;a=h;do{if((a.tag&t)===t){c=void 0;var p=a.create,b=a.inst;c=p(),b.destroy=c}a=a.next}while(a!==h)}}catch(x){Ce(s,s.return,x)}}function gi(t,s,a){try{var c=s.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var p=h.next;c=p;do{if((c.tag&t)===t){var b=c.inst,x=b.destroy;if(x!==void 0){b.destroy=void 0,h=s;var A=a,R=x;try{R()}catch(G){Ce(h,A,G)}}}c=c.next}while(c!==p)}}catch(G){Ce(s,s.return,G)}}function cm(t){var s=t.updateQueue;if(s!==null){var a=t.stateNode;try{Wp(s,a)}catch(c){Ce(t,t.return,c)}}}function um(t,s,a){a.props=ts(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(c){Ce(t,s,c)}}function ga(t,s){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var c=t.stateNode;break;case 30:c=t.stateNode;break;default:c=t.stateNode}typeof a=="function"?t.refCleanup=a(c):a.current=c}}catch(h){Ce(t,s,h)}}function xn(t,s){var a=t.ref,c=t.refCleanup;if(a!==null)if(typeof c=="function")try{c()}catch(h){Ce(t,s,h)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(h){Ce(t,s,h)}else a.current=null}function fm(t){var s=t.type,a=t.memoizedProps,c=t.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":a.autoFocus&&c.focus();break e;case"img":a.src?c.src=a.src:a.srcSet&&(c.srcset=a.srcSet)}}catch(h){Ce(t,t.return,h)}}function pf(t,s,a){try{var c=t.stateNode;xw(c,t.type,a,s),c[Nt]=s}catch(h){Ce(t,t.return,h)}}function hm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&_i(t.type)||t.tag===4}function gf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||hm(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&_i(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function mf(t,s,a){var c=t.tag;if(c===5||c===6)t=t.stateNode,s?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,s):(s=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,s.appendChild(t),a=a._reactRootContainer,a!=null||s.onclick!==null||(s.onclick=jn));else if(c!==4&&(c===27&&_i(t.type)&&(a=t.stateNode,s=null),t=t.child,t!==null))for(mf(t,s,a),t=t.sibling;t!==null;)mf(t,s,a),t=t.sibling}function no(t,s,a){var c=t.tag;if(c===5||c===6)t=t.stateNode,s?a.insertBefore(t,s):a.appendChild(t);else if(c!==4&&(c===27&&_i(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(no(t,s,a),t=t.sibling;t!==null;)no(t,s,a),t=t.sibling}function dm(t){var s=t.stateNode,a=t.memoizedProps;try{for(var c=t.type,h=s.attributes;h.length;)s.removeAttributeNode(h[0]);ht(s,c,a),s[ot]=t,s[Nt]=a}catch(p){Ce(t,t.return,p)}}var In=!1,We=!1,yf=!1,pm=typeof WeakSet=="function"?WeakSet:Set,lt=null;function nw(t,s){if(t=t.containerInfo,Uf=To,t=Ap(t),cu(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else e:{a=(a=t.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var h=c.anchorOffset,p=c.focusNode;c=c.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var b=0,x=-1,A=-1,R=0,G=0,F=t,B=null;t:for(;;){for(var H;F!==a||h!==0&&F.nodeType!==3||(x=b+h),F!==p||c!==0&&F.nodeType!==3||(A=b+c),F.nodeType===3&&(b+=F.nodeValue.length),(H=F.firstChild)!==null;)B=F,F=H;for(;;){if(F===t)break t;if(B===a&&++R===h&&(x=b),B===p&&++G===c&&(A=b),(H=F.nextSibling)!==null)break;F=B,B=F.parentNode}F=H}a=x===-1||A===-1?null:{start:x,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(Hf={focusedElem:t,selectionRange:a},To=!1,lt=s;lt!==null;)if(s=lt,t=s.child,(s.subtreeFlags&1028)!==0&&t!==null)t.return=s,lt=t;else for(;lt!==null;){switch(s=lt,p=s.alternate,t=s.flags,s.tag){case 0:if((t&4)!==0&&(t=s.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)h=t[a],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&p!==null){t=void 0,a=s,h=p.memoizedProps,p=p.memoizedState,c=a.stateNode;try{var te=ts(a.type,h);t=c.getSnapshotBeforeUpdate(te,p),c.__reactInternalSnapshotBeforeUpdate=t}catch(oe){Ce(a,a.return,oe)}}break;case 3:if((t&1024)!==0){if(t=s.stateNode.containerInfo,a=t.nodeType,a===9)If(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":If(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=s.sibling,t!==null){t.return=s.return,lt=t;break}lt=s.return}}function gm(t,s,a){var c=a.flags;switch(a.tag){case 0:case 11:case 15:Gn(t,a),c&4&&pa(5,a);break;case 1:if(Gn(t,a),c&4)if(t=a.stateNode,s===null)try{t.componentDidMount()}catch(b){Ce(a,a.return,b)}else{var h=ts(a.type,s.memoizedProps);s=s.memoizedState;try{t.componentDidUpdate(h,s,t.__reactInternalSnapshotBeforeUpdate)}catch(b){Ce(a,a.return,b)}}c&64&&cm(a),c&512&&ga(a,a.return);break;case 3:if(Gn(t,a),c&64&&(t=a.updateQueue,t!==null)){if(s=null,a.child!==null)switch(a.child.tag){case 27:case 5:s=a.child.stateNode;break;case 1:s=a.child.stateNode}try{Wp(t,s)}catch(b){Ce(a,a.return,b)}}break;case 27:s===null&&c&4&&dm(a);case 26:case 5:Gn(t,a),s===null&&c&4&&fm(a),c&512&&ga(a,a.return);break;case 12:Gn(t,a);break;case 31:Gn(t,a),c&4&&bm(t,a);break;case 13:Gn(t,a),c&4&&vm(t,a),c&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=fw.bind(null,a),Ow(t,a))));break;case 22:if(c=a.memoizedState!==null||In,!c){s=s!==null&&s.memoizedState!==null||We,h=In;var p=We;In=c,(We=s)&&!p?Kn(t,a,(a.subtreeFlags&8772)!==0):Gn(t,a),In=h,We=p}break;case 30:break;default:Gn(t,a)}}function mm(t){var s=t.alternate;s!==null&&(t.alternate=null,mm(s)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(s=t.stateNode,s!==null&&Yc(s)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var ze=null,kt=!1;function Vn(t,s,a){for(a=a.child;a!==null;)ym(t,s,a),a=a.sibling}function ym(t,s,a){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(Mn,a)}catch{}switch(a.tag){case 26:We||xn(a,s),Vn(t,s,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:We||xn(a,s);var c=ze,h=kt;_i(a.type)&&(ze=a.stateNode,kt=!1),Vn(t,s,a),Ta(a.stateNode),ze=c,kt=h;break;case 5:We||xn(a,s);case 6:if(c=ze,h=kt,ze=null,Vn(t,s,a),ze=c,kt=h,ze!==null)if(kt)try{(ze.nodeType===9?ze.body:ze.nodeName==="HTML"?ze.ownerDocument.body:ze).removeChild(a.stateNode)}catch(p){Ce(a,s,p)}else try{ze.removeChild(a.stateNode)}catch(p){Ce(a,s,p)}break;case 18:ze!==null&&(kt?(t=ze,cy(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),sr(t)):cy(ze,a.stateNode));break;case 4:c=ze,h=kt,ze=a.stateNode.containerInfo,kt=!0,Vn(t,s,a),ze=c,kt=h;break;case 0:case 11:case 14:case 15:gi(2,a,s),We||gi(4,a,s),Vn(t,s,a);break;case 1:We||(xn(a,s),c=a.stateNode,typeof c.componentWillUnmount=="function"&&um(a,s,c)),Vn(t,s,a);break;case 21:Vn(t,s,a);break;case 22:We=(c=We)||a.memoizedState!==null,Vn(t,s,a),We=c;break;default:Vn(t,s,a)}}function bm(t,s){if(s.memoizedState===null&&(t=s.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{sr(t)}catch(a){Ce(s,s.return,a)}}}function vm(t,s){if(s.memoizedState===null&&(t=s.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{sr(t)}catch(a){Ce(s,s.return,a)}}function iw(t){switch(t.tag){case 31:case 13:case 19:var s=t.stateNode;return s===null&&(s=t.stateNode=new pm),s;case 22:return t=t.stateNode,s=t._retryCache,s===null&&(s=t._retryCache=new pm),s;default:throw Error(r(435,t.tag))}}function io(t,s){var a=iw(t);s.forEach(function(c){if(!a.has(c)){a.add(c);var h=hw.bind(null,t,c);c.then(h,h)}})}function Mt(t,s){var a=s.deletions;if(a!==null)for(var c=0;c<a.length;c++){var h=a[c],p=t,b=s,x=b;e:for(;x!==null;){switch(x.tag){case 27:if(_i(x.type)){ze=x.stateNode,kt=!1;break e}break;case 5:ze=x.stateNode,kt=!1;break e;case 3:case 4:ze=x.stateNode.containerInfo,kt=!0;break e}x=x.return}if(ze===null)throw Error(r(160));ym(p,b,h),ze=null,kt=!1,p=h.alternate,p!==null&&(p.return=null),h.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)Sm(s,t),s=s.sibling}var pn=null;function Sm(t,s){var a=t.alternate,c=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Mt(s,t),Ot(t),c&4&&(gi(3,t,t.return),pa(3,t),gi(5,t,t.return));break;case 1:Mt(s,t),Ot(t),c&512&&(We||a===null||xn(a,a.return)),c&64&&In&&(t=t.updateQueue,t!==null&&(c=t.callbacks,c!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?c:a.concat(c))));break;case 26:var h=pn;if(Mt(s,t),Ot(t),c&512&&(We||a===null||xn(a,a.return)),c&4){var p=a!==null?a.memoizedState:null;if(c=t.memoizedState,a===null)if(c===null)if(t.stateNode===null){e:{c=t.type,a=t.memoizedProps,h=h.ownerDocument||h;t:switch(c){case"title":p=h.getElementsByTagName("title")[0],(!p||p[Ir]||p[ot]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=h.createElement(c),h.head.insertBefore(p,h.querySelector("head > title"))),ht(p,c,a),p[ot]=t,at(p),c=p;break e;case"link":var b=Sy("link","href",h).get(c+(a.href||""));if(b){for(var x=0;x<b.length;x++)if(p=b[x],p.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){b.splice(x,1);break t}}p=h.createElement(c),ht(p,c,a),h.head.appendChild(p);break;case"meta":if(b=Sy("meta","content",h).get(c+(a.content||""))){for(x=0;x<b.length;x++)if(p=b[x],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){b.splice(x,1);break t}}p=h.createElement(c),ht(p,c,a),h.head.appendChild(p);break;default:throw Error(r(468,c))}p[ot]=t,at(p),c=p}t.stateNode=c}else wy(h,t.type,t.stateNode);else t.stateNode=vy(h,c,t.memoizedProps);else p!==c?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,c===null?wy(h,t.type,t.stateNode):vy(h,c,t.memoizedProps)):c===null&&t.stateNode!==null&&pf(t,t.memoizedProps,a.memoizedProps)}break;case 27:Mt(s,t),Ot(t),c&512&&(We||a===null||xn(a,a.return)),a!==null&&c&4&&pf(t,t.memoizedProps,a.memoizedProps);break;case 5:if(Mt(s,t),Ot(t),c&512&&(We||a===null||xn(a,a.return)),t.flags&32){h=t.stateNode;try{Ns(h,"")}catch(te){Ce(t,t.return,te)}}c&4&&t.stateNode!=null&&(h=t.memoizedProps,pf(t,h,a!==null?a.memoizedProps:h)),c&1024&&(yf=!0);break;case 6:if(Mt(s,t),Ot(t),c&4){if(t.stateNode===null)throw Error(r(162));c=t.memoizedProps,a=t.stateNode;try{a.nodeValue=c}catch(te){Ce(t,t.return,te)}}break;case 3:if(So=null,h=pn,pn=bo(s.containerInfo),Mt(s,t),pn=h,Ot(t),c&4&&a!==null&&a.memoizedState.isDehydrated)try{sr(s.containerInfo)}catch(te){Ce(t,t.return,te)}yf&&(yf=!1,wm(t));break;case 4:c=pn,pn=bo(t.stateNode.containerInfo),Mt(s,t),Ot(t),pn=c;break;case 12:Mt(s,t),Ot(t);break;case 31:Mt(s,t),Ot(t),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,io(t,c)));break;case 13:Mt(s,t),Ot(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ro=St()),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,io(t,c)));break;case 22:h=t.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,R=In,G=We;if(In=R||h,We=G||A,Mt(s,t),We=G,In=R,Ot(t),c&8192)e:for(s=t.stateNode,s._visibility=h?s._visibility&-2:s._visibility|1,h&&(a===null||A||In||We||ns(t)),a=null,s=t;;){if(s.tag===5||s.tag===26){if(a===null){A=a=s;try{if(p=A.stateNode,h)b=p.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{x=A.stateNode;var F=A.memoizedProps.style,B=F!=null&&F.hasOwnProperty("display")?F.display:null;x.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(te){Ce(A,A.return,te)}}}else if(s.tag===6){if(a===null){A=s;try{A.stateNode.nodeValue=h?"":A.memoizedProps}catch(te){Ce(A,A.return,te)}}}else if(s.tag===18){if(a===null){A=s;try{var H=A.stateNode;h?uy(H,!0):uy(A.stateNode,!1)}catch(te){Ce(A,A.return,te)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===t)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;a===s&&(a=null),s=s.return}a===s&&(a=null),s.sibling.return=s.return,s=s.sibling}c&4&&(c=t.updateQueue,c!==null&&(a=c.retryQueue,a!==null&&(c.retryQueue=null,io(t,a))));break;case 19:Mt(s,t),Ot(t),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,io(t,c)));break;case 30:break;case 21:break;default:Mt(s,t),Ot(t)}}function Ot(t){var s=t.flags;if(s&2){try{for(var a,c=t.return;c!==null;){if(hm(c)){a=c;break}c=c.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var h=a.stateNode,p=gf(t);no(t,p,h);break;case 5:var b=a.stateNode;a.flags&32&&(Ns(b,""),a.flags&=-33);var x=gf(t);no(t,x,b);break;case 3:case 4:var A=a.stateNode.containerInfo,R=gf(t);mf(t,R,A);break;default:throw Error(r(161))}}catch(G){Ce(t,t.return,G)}t.flags&=-3}s&4096&&(t.flags&=-4097)}function wm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var s=t;wm(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),t=t.sibling}}function Gn(t,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)gm(t,s.alternate,s),s=s.sibling}function ns(t){for(t=t.child;t!==null;){var s=t;switch(s.tag){case 0:case 11:case 14:case 15:gi(4,s,s.return),ns(s);break;case 1:xn(s,s.return);var a=s.stateNode;typeof a.componentWillUnmount=="function"&&um(s,s.return,a),ns(s);break;case 27:Ta(s.stateNode);case 26:case 5:xn(s,s.return),ns(s);break;case 22:s.memoizedState===null&&ns(s);break;case 30:ns(s);break;default:ns(s)}t=t.sibling}}function Kn(t,s,a){for(a=a&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var c=s.alternate,h=t,p=s,b=p.flags;switch(p.tag){case 0:case 11:case 15:Kn(h,p,a),pa(4,p);break;case 1:if(Kn(h,p,a),c=p,h=c.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(R){Ce(c,c.return,R)}if(c=p,h=c.updateQueue,h!==null){var x=c.stateNode;try{var A=h.shared.hiddenCallbacks;if(A!==null)for(h.shared.hiddenCallbacks=null,h=0;h<A.length;h++)Pp(A[h],x)}catch(R){Ce(c,c.return,R)}}a&&b&64&&cm(p),ga(p,p.return);break;case 27:dm(p);case 26:case 5:Kn(h,p,a),a&&c===null&&b&4&&fm(p),ga(p,p.return);break;case 12:Kn(h,p,a);break;case 31:Kn(h,p,a),a&&b&4&&bm(h,p);break;case 13:Kn(h,p,a),a&&b&4&&vm(h,p);break;case 22:p.memoizedState===null&&Kn(h,p,a),ga(p,p.return);break;case 30:break;default:Kn(h,p,a)}s=s.sibling}}function bf(t,s){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(t=s.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&ta(a))}function vf(t,s){t=null,s.alternate!==null&&(t=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==t&&(s.refCount++,t!=null&&ta(t))}function gn(t,s,a,c){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)_m(t,s,a,c),s=s.sibling}function _m(t,s,a,c){var h=s.flags;switch(s.tag){case 0:case 11:case 15:gn(t,s,a,c),h&2048&&pa(9,s);break;case 1:gn(t,s,a,c);break;case 3:gn(t,s,a,c),h&2048&&(t=null,s.alternate!==null&&(t=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==t&&(s.refCount++,t!=null&&ta(t)));break;case 12:if(h&2048){gn(t,s,a,c),t=s.stateNode;try{var p=s.memoizedProps,b=p.id,x=p.onPostCommit;typeof x=="function"&&x(b,s.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(A){Ce(s,s.return,A)}}else gn(t,s,a,c);break;case 31:gn(t,s,a,c);break;case 13:gn(t,s,a,c);break;case 23:break;case 22:p=s.stateNode,b=s.alternate,s.memoizedState!==null?p._visibility&2?gn(t,s,a,c):ma(t,s):p._visibility&2?gn(t,s,a,c):(p._visibility|=2,Xs(t,s,a,c,(s.subtreeFlags&10256)!==0||!1)),h&2048&&bf(b,s);break;case 24:gn(t,s,a,c),h&2048&&vf(s.alternate,s);break;default:gn(t,s,a,c)}}function Xs(t,s,a,c,h){for(h=h&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var p=t,b=s,x=a,A=c,R=b.flags;switch(b.tag){case 0:case 11:case 15:Xs(p,b,x,A,h),pa(8,b);break;case 23:break;case 22:var G=b.stateNode;b.memoizedState!==null?G._visibility&2?Xs(p,b,x,A,h):ma(p,b):(G._visibility|=2,Xs(p,b,x,A,h)),h&&R&2048&&bf(b.alternate,b);break;case 24:Xs(p,b,x,A,h),h&&R&2048&&vf(b.alternate,b);break;default:Xs(p,b,x,A,h)}s=s.sibling}}function ma(t,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var a=t,c=s,h=c.flags;switch(c.tag){case 22:ma(a,c),h&2048&&bf(c.alternate,c);break;case 24:ma(a,c),h&2048&&vf(c.alternate,c);break;default:ma(a,c)}s=s.sibling}}var ya=8192;function Fs(t,s,a){if(t.subtreeFlags&ya)for(t=t.child;t!==null;)xm(t,s,a),t=t.sibling}function xm(t,s,a){switch(t.tag){case 26:Fs(t,s,a),t.flags&ya&&t.memoizedState!==null&&Vw(a,pn,t.memoizedState,t.memoizedProps);break;case 5:Fs(t,s,a);break;case 3:case 4:var c=pn;pn=bo(t.stateNode.containerInfo),Fs(t,s,a),pn=c;break;case 22:t.memoizedState===null&&(c=t.alternate,c!==null&&c.memoizedState!==null?(c=ya,ya=16777216,Fs(t,s,a),ya=c):Fs(t,s,a));break;default:Fs(t,s,a)}}function Tm(t){var s=t.alternate;if(s!==null&&(t=s.child,t!==null)){s.child=null;do s=t.sibling,t.sibling=null,t=s;while(t!==null)}}function ba(t){var s=t.deletions;if((t.flags&16)!==0){if(s!==null)for(var a=0;a<s.length;a++){var c=s[a];lt=c,Am(c,t)}Tm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Em(t),t=t.sibling}function Em(t){switch(t.tag){case 0:case 11:case 15:ba(t),t.flags&2048&&gi(9,t,t.return);break;case 3:ba(t);break;case 12:ba(t);break;case 22:var s=t.stateNode;t.memoizedState!==null&&s._visibility&2&&(t.return===null||t.return.tag!==13)?(s._visibility&=-3,so(t)):ba(t);break;default:ba(t)}}function so(t){var s=t.deletions;if((t.flags&16)!==0){if(s!==null)for(var a=0;a<s.length;a++){var c=s[a];lt=c,Am(c,t)}Tm(t)}for(t=t.child;t!==null;){switch(s=t,s.tag){case 0:case 11:case 15:gi(8,s,s.return),so(s);break;case 22:a=s.stateNode,a._visibility&2&&(a._visibility&=-3,so(s));break;default:so(s)}t=t.sibling}}function Am(t,s){for(;lt!==null;){var a=lt;switch(a.tag){case 0:case 11:case 15:gi(8,a,s);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var c=a.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:ta(a.memoizedState.cache)}if(c=a.child,c!==null)c.return=a,lt=c;else e:for(a=t;lt!==null;){c=lt;var h=c.sibling,p=c.return;if(mm(c),c===a){lt=null;break e}if(h!==null){h.return=p,lt=h;break e}lt=p}}}var sw={getCacheForType:function(t){var s=ut(Je),a=s.data.get(t);return a===void 0&&(a=t(),s.data.set(t,a)),a},cacheSignal:function(){return ut(Je).controller.signal}},rw=typeof WeakMap=="function"?WeakMap:Map,Ee=0,je=null,ge=null,ye=0,Ne=0,Gt=null,mi=!1,Qs=!1,Sf=!1,Yn=0,Ge=0,yi=0,is=0,wf=0,Kt=0,Js=0,va=null,jt=null,_f=!1,ro=0,Nm=0,ao=1/0,lo=null,bi=null,it=0,vi=null,Zs=null,Xn=0,xf=0,Tf=null,Cm=null,Sa=0,Ef=null;function Yt(){return(Ee&2)!==0&&ye!==0?ye&-ye:z.T!==null?Of():Gd()}function km(){if(Kt===0)if((ye&536870912)===0||ve){var t=Ft;Ft<<=1,(Ft&3932160)===0&&(Ft=262144),Kt=t}else Kt=536870912;return t=It.current,t!==null&&(t.flags|=32),Kt}function Lt(t,s,a){(t===je&&(Ne===2||Ne===9)||t.cancelPendingCommit!==null)&&(Ps(t,0),Si(t,ye,Kt,!1)),$r(t,a),((Ee&2)===0||t!==je)&&(t===je&&((Ee&2)===0&&(is|=a),Ge===4&&Si(t,ye,Kt,!1)),Tn(t))}function Mm(t,s,a){if((Ee&6)!==0)throw Error(r(327));var c=!a&&(s&127)===0&&(s&t.expiredLanes)===0||qr(t,s),h=c?ow(t,s):Nf(t,s,!0),p=c;do{if(h===0){Qs&&!c&&Si(t,s,0,!1);break}else{if(a=t.current.alternate,p&&!aw(a)){h=Nf(t,s,!1),p=!1;continue}if(h===2){if(p=s,t.errorRecoveryDisabledLanes&p)var b=0;else b=t.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){s=b;e:{var x=t;h=va;var A=x.current.memoizedState.isDehydrated;if(A&&(Ps(x,b).flags|=256),b=Nf(x,b,!1),b!==2){if(Sf&&!A){x.errorRecoveryDisabledLanes|=p,is|=p,h=4;break e}p=jt,jt=h,p!==null&&(jt===null?jt=p:jt.push.apply(jt,p))}h=b}if(p=!1,h!==2)continue}}if(h===1){Ps(t,0),Si(t,s,0,!0);break}e:{switch(c=t,p=h,p){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:Si(c,s,Kt,!mi);break e;case 2:jt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(h=ro+300-St(),10<h)){if(Si(c,s,Kt,!mi),yl(c,0,!0)!==0)break e;Xn=s,c.timeoutHandle=ly(Om.bind(null,c,a,jt,lo,_f,s,Kt,is,Js,mi,p,"Throttled",-0,0),h);break e}Om(c,a,jt,lo,_f,s,Kt,is,Js,mi,p,null,-0,0)}}break}while(!0);Tn(t)}function Om(t,s,a,c,h,p,b,x,A,R,G,F,B,H){if(t.timeoutHandle=-1,F=s.subtreeFlags,F&8192||(F&16785408)===16785408){F={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:jn},xm(s,p,F);var te=(p&62914560)===p?ro-St():(p&4194048)===p?Nm-St():0;if(te=Gw(F,te),te!==null){Xn=p,t.cancelPendingCommit=te(Hm.bind(null,t,s,p,a,c,h,b,x,A,G,F,null,B,H)),Si(t,p,b,!R);return}}Hm(t,s,p,a,c,h,b,x,A)}function aw(t){for(var s=t;;){var a=s.tag;if((a===0||a===11||a===15)&&s.flags&16384&&(a=s.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var c=0;c<a.length;c++){var h=a[c],p=h.getSnapshot;h=h.value;try{if(!qt(p(),h))return!1}catch{return!1}}if(a=s.child,s.subtreeFlags&16384&&a!==null)a.return=s,s=a;else{if(s===t)break;for(;s.sibling===null;){if(s.return===null||s.return===t)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Si(t,s,a,c){s&=~wf,s&=~is,t.suspendedLanes|=s,t.pingedLanes&=~s,c&&(t.warmLanes|=s),c=t.expirationTimes;for(var h=s;0<h;){var p=31-wt(h),b=1<<p;c[p]=-1,h&=~b}a!==0&&$d(t,a,s)}function oo(){return(Ee&6)===0?(wa(0),!1):!0}function Af(){if(ge!==null){if(Ne===0)var t=ge.return;else t=ge,Bn=Fi=null,$u(t),Is=null,ia=0,t=ge;for(;t!==null;)om(t.alternate,t),t=t.return;ge=null}}function Ps(t,s){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,Aw(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Xn=0,Af(),je=t,ge=a=Rn(t.current,null),ye=s,Ne=0,Gt=null,mi=!1,Qs=qr(t,s),Sf=!1,Js=Kt=wf=is=yi=Ge=0,jt=va=null,_f=!1,(s&8)!==0&&(s|=s&32);var c=t.entangledLanes;if(c!==0)for(t=t.entanglements,c&=s;0<c;){var h=31-wt(c),p=1<<h;s|=t[h],c&=~p}return Yn=s,kl(),a}function jm(t,s){de=null,z.H=fa,s===$s||s===zl?(s=Fp(),Ne=3):s===ku?(s=Fp(),Ne=4):Ne=s===sf?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Gt=s,ge===null&&(Ge=1,Zl(t,Pt(s,t.current)))}function Lm(){var t=It.current;return t===null?!0:(ye&4194048)===ye?nn===null:(ye&62914560)===ye||(ye&536870912)!==0?t===nn:!1}function Rm(){var t=z.H;return z.H=fa,t===null?fa:t}function Dm(){var t=z.A;return z.A=sw,t}function co(){Ge=4,mi||(ye&4194048)!==ye&&It.current!==null||(Qs=!0),(yi&134217727)===0&&(is&134217727)===0||je===null||Si(je,ye,Kt,!1)}function Nf(t,s,a){var c=Ee;Ee|=2;var h=Rm(),p=Dm();(je!==t||ye!==s)&&(lo=null,Ps(t,s)),s=!1;var b=Ge;e:do try{if(Ne!==0&&ge!==null){var x=ge,A=Gt;switch(Ne){case 8:Af(),b=6;break e;case 3:case 2:case 9:case 6:It.current===null&&(s=!0);var R=Ne;if(Ne=0,Gt=null,Ws(t,x,A,R),a&&Qs){b=0;break e}break;default:R=Ne,Ne=0,Gt=null,Ws(t,x,A,R)}}lw(),b=Ge;break}catch(G){jm(t,G)}while(!0);return s&&t.shellSuspendCounter++,Bn=Fi=null,Ee=c,z.H=h,z.A=p,ge===null&&(je=null,ye=0,kl()),b}function lw(){for(;ge!==null;)Bm(ge)}function ow(t,s){var a=Ee;Ee|=2;var c=Rm(),h=Dm();je!==t||ye!==s?(lo=null,ao=St()+500,Ps(t,s)):Qs=qr(t,s);e:do try{if(Ne!==0&&ge!==null){s=ge;var p=Gt;t:switch(Ne){case 1:Ne=0,Gt=null,Ws(t,s,p,1);break;case 2:case 9:if(Yp(p)){Ne=0,Gt=null,zm(s);break}s=function(){Ne!==2&&Ne!==9||je!==t||(Ne=7),Tn(t)},p.then(s,s);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:Yp(p)?(Ne=0,Gt=null,zm(s)):(Ne=0,Gt=null,Ws(t,s,p,7));break;case 5:var b=null;switch(ge.tag){case 26:b=ge.memoizedState;case 5:case 27:var x=ge;if(b?_y(b):x.stateNode.complete){Ne=0,Gt=null;var A=x.sibling;if(A!==null)ge=A;else{var R=x.return;R!==null?(ge=R,uo(R)):ge=null}break t}}Ne=0,Gt=null,Ws(t,s,p,5);break;case 6:Ne=0,Gt=null,Ws(t,s,p,6);break;case 8:Af(),Ge=6;break e;default:throw Error(r(462))}}cw();break}catch(G){jm(t,G)}while(!0);return Bn=Fi=null,z.H=c,z.A=h,Ee=a,ge!==null?0:(je=null,ye=0,kl(),Ge)}function cw(){for(;ge!==null&&!ni();)Bm(ge)}function Bm(t){var s=am(t.alternate,t,Yn);t.memoizedProps=t.pendingProps,s===null?uo(t):ge=s}function zm(t){var s=t,a=s.alternate;switch(s.tag){case 15:case 0:s=em(a,s,s.pendingProps,s.type,void 0,ye);break;case 11:s=em(a,s,s.pendingProps,s.type.render,s.ref,ye);break;case 5:$u(s);default:om(a,s),s=ge=Dp(s,Yn),s=am(a,s,Yn)}t.memoizedProps=t.pendingProps,s===null?uo(t):ge=s}function Ws(t,s,a,c){Bn=Fi=null,$u(s),Is=null,ia=0;var h=s.return;try{if(Z1(t,h,s,a,ye)){Ge=1,Zl(t,Pt(a,t.current)),ge=null;return}}catch(p){if(h!==null)throw ge=h,p;Ge=1,Zl(t,Pt(a,t.current)),ge=null;return}s.flags&32768?(ve||c===1?t=!0:Qs||(ye&536870912)!==0?t=!1:(mi=t=!0,(c===2||c===9||c===3||c===6)&&(c=It.current,c!==null&&c.tag===13&&(c.flags|=16384))),Um(s,t)):uo(s)}function uo(t){var s=t;do{if((s.flags&32768)!==0){Um(s,mi);return}t=s.return;var a=ew(s.alternate,s,Yn);if(a!==null){ge=a;return}if(s=s.sibling,s!==null){ge=s;return}ge=s=t}while(s!==null);Ge===0&&(Ge=5)}function Um(t,s){do{var a=tw(t.alternate,t);if(a!==null){a.flags&=32767,ge=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!s&&(t=t.sibling,t!==null)){ge=t;return}ge=t=a}while(t!==null);Ge=6,ge=null}function Hm(t,s,a,c,h,p,b,x,A){t.cancelPendingCommit=null;do fo();while(it!==0);if((Ee&6)!==0)throw Error(r(327));if(s!==null){if(s===t.current)throw Error(r(177));if(p=s.lanes|s.childLanes,p|=pu,IS(t,a,p,b,x,A),t===je&&(ge=je=null,ye=0),Zs=s,vi=t,Xn=a,xf=p,Tf=h,Cm=c,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,dw(ii,function(){return Gm(),null})):(t.callbackNode=null,t.callbackPriority=0),c=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||c){c=z.T,z.T=null,h=Z.p,Z.p=2,b=Ee,Ee|=4;try{nw(t,s,a)}finally{Ee=b,Z.p=h,z.T=c}}it=1,qm(),$m(),Im()}}function qm(){if(it===1){it=0;var t=vi,s=Zs,a=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||a){a=z.T,z.T=null;var c=Z.p;Z.p=2;var h=Ee;Ee|=4;try{Sm(s,t);var p=Hf,b=Ap(t.containerInfo),x=p.focusedElem,A=p.selectionRange;if(b!==x&&x&&x.ownerDocument&&Ep(x.ownerDocument.documentElement,x)){if(A!==null&&cu(x)){var R=A.start,G=A.end;if(G===void 0&&(G=R),"selectionStart"in x)x.selectionStart=R,x.selectionEnd=Math.min(G,x.value.length);else{var F=x.ownerDocument||document,B=F&&F.defaultView||window;if(B.getSelection){var H=B.getSelection(),te=x.textContent.length,oe=Math.min(A.start,te),Oe=A.end===void 0?oe:Math.min(A.end,te);!H.extend&&oe>Oe&&(b=Oe,Oe=oe,oe=b);var O=Tp(x,oe),k=Tp(x,Oe);if(O&&k&&(H.rangeCount!==1||H.anchorNode!==O.node||H.anchorOffset!==O.offset||H.focusNode!==k.node||H.focusOffset!==k.offset)){var L=F.createRange();L.setStart(O.node,O.offset),H.removeAllRanges(),oe>Oe?(H.addRange(L),H.extend(k.node,k.offset)):(L.setEnd(k.node,k.offset),H.addRange(L))}}}}for(F=[],H=x;H=H.parentNode;)H.nodeType===1&&F.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<F.length;x++){var X=F[x];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}To=!!Uf,Hf=Uf=null}finally{Ee=h,Z.p=c,z.T=a}}t.current=s,it=2}}function $m(){if(it===2){it=0;var t=vi,s=Zs,a=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||a){a=z.T,z.T=null;var c=Z.p;Z.p=2;var h=Ee;Ee|=4;try{gm(t,s.alternate,s)}finally{Ee=h,Z.p=c,z.T=a}}it=3}}function Im(){if(it===4||it===3){it=0,zc();var t=vi,s=Zs,a=Xn,c=Cm;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?it=5:(it=0,Zs=vi=null,Vm(t,t.pendingLanes));var h=t.pendingLanes;if(h===0&&(bi=null),Gc(a),s=s.stateNode,rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(Mn,s,void 0,(s.current.flags&128)===128)}catch{}if(c!==null){s=z.T,h=Z.p,Z.p=2,z.T=null;try{for(var p=t.onRecoverableError,b=0;b<c.length;b++){var x=c[b];p(x.value,{componentStack:x.stack})}}finally{z.T=s,Z.p=h}}(Xn&3)!==0&&fo(),Tn(t),h=t.pendingLanes,(a&261930)!==0&&(h&42)!==0?t===Ef?Sa++:(Sa=0,Ef=t):Sa=0,wa(0)}}function Vm(t,s){(t.pooledCacheLanes&=s)===0&&(s=t.pooledCache,s!=null&&(t.pooledCache=null,ta(s)))}function fo(){return qm(),$m(),Im(),Gm()}function Gm(){if(it!==5)return!1;var t=vi,s=xf;xf=0;var a=Gc(Xn),c=z.T,h=Z.p;try{Z.p=32>a?32:a,z.T=null,a=Tf,Tf=null;var p=vi,b=Xn;if(it=0,Zs=vi=null,Xn=0,(Ee&6)!==0)throw Error(r(331));var x=Ee;if(Ee|=4,Em(p.current),_m(p,p.current,b,a),Ee=x,wa(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Mn,p)}catch{}return!0}finally{Z.p=h,z.T=c,Vm(t,s)}}function Km(t,s,a){s=Pt(a,s),s=nf(t.stateNode,s,2),t=hi(t,s,2),t!==null&&($r(t,2),Tn(t))}function Ce(t,s,a){if(t.tag===3)Km(t,t,a);else for(;s!==null;){if(s.tag===3){Km(s,t,a);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(bi===null||!bi.has(c))){t=Pt(a,t),a=Yg(2),c=hi(s,a,2),c!==null&&(Xg(a,c,s,t),$r(c,2),Tn(c));break}}s=s.return}}function Cf(t,s,a){var c=t.pingCache;if(c===null){c=t.pingCache=new rw;var h=new Set;c.set(s,h)}else h=c.get(s),h===void 0&&(h=new Set,c.set(s,h));h.has(a)||(Sf=!0,h.add(a),t=uw.bind(null,t,s,a),s.then(t,t))}function uw(t,s,a){var c=t.pingCache;c!==null&&c.delete(s),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,je===t&&(ye&a)===a&&(Ge===4||Ge===3&&(ye&62914560)===ye&&300>St()-ro?(Ee&2)===0&&Ps(t,0):wf|=a,Js===ye&&(Js=0)),Tn(t)}function Ym(t,s){s===0&&(s=qd()),t=Ki(t,s),t!==null&&($r(t,s),Tn(t))}function fw(t){var s=t.memoizedState,a=0;s!==null&&(a=s.retryLane),Ym(t,a)}function hw(t,s){var a=0;switch(t.tag){case 31:case 13:var c=t.stateNode,h=t.memoizedState;h!==null&&(a=h.retryLane);break;case 19:c=t.stateNode;break;case 22:c=t.stateNode._retryCache;break;default:throw Error(r(314))}c!==null&&c.delete(s),Ym(t,a)}function dw(t,s){return ti(t,s)}var ho=null,er=null,kf=!1,po=!1,Mf=!1,wi=0;function Tn(t){t!==er&&t.next===null&&(er===null?ho=er=t:er=er.next=t),po=!0,kf||(kf=!0,gw())}function wa(t,s){if(!Mf&&po){Mf=!0;do for(var a=!1,c=ho;c!==null;){if(t!==0){var h=c.pendingLanes;if(h===0)var p=0;else{var b=c.suspendedLanes,x=c.pingedLanes;p=(1<<31-wt(42|t)+1)-1,p&=h&~(b&~x),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,Jm(c,p))}else p=ye,p=yl(c,c===je?p:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(p&3)===0||qr(c,p)||(a=!0,Jm(c,p));c=c.next}while(a);Mf=!1}}function pw(){Xm()}function Xm(){po=kf=!1;var t=0;wi!==0&&Ew()&&(t=wi);for(var s=St(),a=null,c=ho;c!==null;){var h=c.next,p=Fm(c,s);p===0?(c.next=null,a===null?ho=h:a.next=h,h===null&&(er=a)):(a=c,(t!==0||(p&3)!==0)&&(po=!0)),c=h}it!==0&&it!==5||wa(t),wi!==0&&(wi=0)}function Fm(t,s){for(var a=t.suspendedLanes,c=t.pingedLanes,h=t.expirationTimes,p=t.pendingLanes&-62914561;0<p;){var b=31-wt(p),x=1<<b,A=h[b];A===-1?((x&a)===0||(x&c)!==0)&&(h[b]=$S(x,s)):A<=s&&(t.expiredLanes|=x),p&=~x}if(s=je,a=ye,a=yl(t,t===s?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),c=t.callbackNode,a===0||t===s&&(Ne===2||Ne===9)||t.cancelPendingCommit!==null)return c!==null&&c!==null&&Ur(c),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||qr(t,a)){if(s=a&-a,s===t.callbackPriority)return s;switch(c!==null&&Ur(c),Gc(a)){case 2:case 8:a=Hr;break;case 32:a=ii;break;case 268435456:a=pl;break;default:a=ii}return c=Qm.bind(null,t),a=ti(a,c),t.callbackPriority=s,t.callbackNode=a,s}return c!==null&&c!==null&&Ur(c),t.callbackPriority=2,t.callbackNode=null,2}function Qm(t,s){if(it!==0&&it!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(fo()&&t.callbackNode!==a)return null;var c=ye;return c=yl(t,t===je?c:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),c===0?null:(Mm(t,c,s),Fm(t,St()),t.callbackNode!=null&&t.callbackNode===a?Qm.bind(null,t):null)}function Jm(t,s){if(fo())return null;Mm(t,s,!0)}function gw(){Nw(function(){(Ee&6)!==0?ti(dl,pw):Xm()})}function Of(){if(wi===0){var t=Hs;t===0&&(t=Sn,Sn<<=1,(Sn&261888)===0&&(Sn=256)),wi=t}return wi}function Zm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:wl(""+t)}function Pm(t,s){var a=s.ownerDocument.createElement("input");return a.name=s.name,a.value=s.value,t.id&&a.setAttribute("form",t.id),s.parentNode.insertBefore(a,s),t=new FormData(t),a.parentNode.removeChild(a),t}function mw(t,s,a,c,h){if(s==="submit"&&a&&a.stateNode===h){var p=Zm((h[Nt]||null).action),b=c.submitter;b&&(s=(s=b[Nt]||null)?Zm(s.formAction):b.getAttribute("formAction"),s!==null&&(p=s,b=null));var x=new El("action","action",null,c,h);t.push({event:x,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(wi!==0){var A=b?Pm(h,b):new FormData(h);Ju(a,{pending:!0,data:A,method:h.method,action:p},null,A)}}else typeof p=="function"&&(x.preventDefault(),A=b?Pm(h,b):new FormData(h),Ju(a,{pending:!0,data:A,method:h.method,action:p},p,A))},currentTarget:h}]})}}for(var jf=0;jf<du.length;jf++){var Lf=du[jf],yw=Lf.toLowerCase(),bw=Lf[0].toUpperCase()+Lf.slice(1);dn(yw,"on"+bw)}dn(kp,"onAnimationEnd"),dn(Mp,"onAnimationIteration"),dn(Op,"onAnimationStart"),dn("dblclick","onDoubleClick"),dn("focusin","onFocus"),dn("focusout","onBlur"),dn(R1,"onTransitionRun"),dn(D1,"onTransitionStart"),dn(B1,"onTransitionCancel"),dn(jp,"onTransitionEnd"),Es("onMouseEnter",["mouseout","mouseover"]),Es("onMouseLeave",["mouseout","mouseover"]),Es("onPointerEnter",["pointerout","pointerover"]),Es("onPointerLeave",["pointerout","pointerover"]),$i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$i("onBeforeInput",["compositionend","keypress","textInput","paste"]),$i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _a="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(" "),vw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_a));function Wm(t,s){s=(s&4)!==0;for(var a=0;a<t.length;a++){var c=t[a],h=c.event;c=c.listeners;e:{var p=void 0;if(s)for(var b=c.length-1;0<=b;b--){var x=c[b],A=x.instance,R=x.currentTarget;if(x=x.listener,A!==p&&h.isPropagationStopped())break e;p=x,h.currentTarget=R;try{p(h)}catch(G){Cl(G)}h.currentTarget=null,p=A}else for(b=0;b<c.length;b++){if(x=c[b],A=x.instance,R=x.currentTarget,x=x.listener,A!==p&&h.isPropagationStopped())break e;p=x,h.currentTarget=R;try{p(h)}catch(G){Cl(G)}h.currentTarget=null,p=A}}}}function me(t,s){var a=s[Kc];a===void 0&&(a=s[Kc]=new Set);var c=t+"__bubble";a.has(c)||(ey(s,t,2,!1),a.add(c))}function Rf(t,s,a){var c=0;s&&(c|=4),ey(a,t,c,s)}var go="_reactListening"+Math.random().toString(36).slice(2);function Df(t){if(!t[go]){t[go]=!0,Xd.forEach(function(a){a!=="selectionchange"&&(vw.has(a)||Rf(a,!1,t),Rf(a,!0,t))});var s=t.nodeType===9?t:t.ownerDocument;s===null||s[go]||(s[go]=!0,Rf("selectionchange",!1,s))}}function ey(t,s,a,c){switch(ky(s)){case 2:var h=Xw;break;case 8:h=Fw;break;default:h=Jf}a=h.bind(null,s,a,t),h=void 0,!eu||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(h=!0),c?h!==void 0?t.addEventListener(s,a,{capture:!0,passive:h}):t.addEventListener(s,a,!0):h!==void 0?t.addEventListener(s,a,{passive:h}):t.addEventListener(s,a,!1)}function Bf(t,s,a,c,h){var p=c;if((s&1)===0&&(s&2)===0&&c!==null)e:for(;;){if(c===null)return;var b=c.tag;if(b===3||b===4){var x=c.stateNode.containerInfo;if(x===h)break;if(b===4)for(b=c.return;b!==null;){var A=b.tag;if((A===3||A===4)&&b.stateNode.containerInfo===h)return;b=b.return}for(;x!==null;){if(b=_s(x),b===null)return;if(A=b.tag,A===5||A===6||A===26||A===27){c=p=b;continue e}x=x.parentNode}}c=c.return}rp(function(){var R=p,G=Pc(a),F=[];e:{var B=Lp.get(t);if(B!==void 0){var H=El,te=t;switch(t){case"keypress":if(xl(a)===0)break e;case"keydown":case"keyup":H=h1;break;case"focusin":te="focus",H=su;break;case"focusout":te="blur",H=su;break;case"beforeblur":case"afterblur":H=su;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":H=op;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=e1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=g1;break;case kp:case Mp:case Op:H=i1;break;case jp:H=y1;break;case"scroll":case"scrollend":H=PS;break;case"wheel":H=v1;break;case"copy":case"cut":case"paste":H=r1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=up;break;case"toggle":case"beforetoggle":H=w1}var oe=(s&4)!==0,Oe=!oe&&(t==="scroll"||t==="scrollend"),O=oe?B!==null?B+"Capture":null:B;oe=[];for(var k=R,L;k!==null;){var X=k;if(L=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||L===null||O===null||(X=Gr(k,O),X!=null&&oe.push(xa(k,X,L))),Oe)break;k=k.return}0<oe.length&&(B=new H(B,te,null,a,G),F.push({event:B,listeners:oe}))}}if((s&7)===0){e:{if(B=t==="mouseover"||t==="pointerover",H=t==="mouseout"||t==="pointerout",B&&a!==Zc&&(te=a.relatedTarget||a.fromElement)&&(_s(te)||te[ws]))break e;if((H||B)&&(B=G.window===G?G:(B=G.ownerDocument)?B.defaultView||B.parentWindow:window,H?(te=a.relatedTarget||a.toElement,H=R,te=te?_s(te):null,te!==null&&(Oe=o(te),oe=te.tag,te!==Oe||oe!==5&&oe!==27&&oe!==6)&&(te=null)):(H=null,te=R),H!==te)){if(oe=op,X="onMouseLeave",O="onMouseEnter",k="mouse",(t==="pointerout"||t==="pointerover")&&(oe=up,X="onPointerLeave",O="onPointerEnter",k="pointer"),Oe=H==null?B:Vr(H),L=te==null?B:Vr(te),B=new oe(X,k+"leave",H,a,G),B.target=Oe,B.relatedTarget=L,X=null,_s(G)===R&&(oe=new oe(O,k+"enter",te,a,G),oe.target=L,oe.relatedTarget=Oe,X=oe),Oe=X,H&&te)t:{for(oe=Sw,O=H,k=te,L=0,X=O;X;X=oe(X))L++;X=0;for(var ae=k;ae;ae=oe(ae))X++;for(;0<L-X;)O=oe(O),L--;for(;0<X-L;)k=oe(k),X--;for(;L--;){if(O===k||k!==null&&O===k.alternate){oe=O;break t}O=oe(O),k=oe(k)}oe=null}else oe=null;H!==null&&ty(F,B,H,oe,!1),te!==null&&Oe!==null&&ty(F,Oe,te,oe,!0)}}e:{if(B=R?Vr(R):window,H=B.nodeName&&B.nodeName.toLowerCase(),H==="select"||H==="input"&&B.type==="file")var xe=bp;else if(mp(B))if(vp)xe=O1;else{xe=k1;var ie=C1}else H=B.nodeName,!H||H.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?R&&Jc(R.elementType)&&(xe=bp):xe=M1;if(xe&&(xe=xe(t,R))){yp(F,xe,a,G);break e}ie&&ie(t,B,R),t==="focusout"&&R&&B.type==="number"&&R.memoizedProps.value!=null&&Qc(B,"number",B.value)}switch(ie=R?Vr(R):window,t){case"focusin":(mp(ie)||ie.contentEditable==="true")&&(Os=ie,uu=R,Pr=null);break;case"focusout":Pr=uu=Os=null;break;case"mousedown":fu=!0;break;case"contextmenu":case"mouseup":case"dragend":fu=!1,Np(F,a,G);break;case"selectionchange":if(L1)break;case"keydown":case"keyup":Np(F,a,G)}var pe;if(au)e:{switch(t){case"compositionstart":var be="onCompositionStart";break e;case"compositionend":be="onCompositionEnd";break e;case"compositionupdate":be="onCompositionUpdate";break e}be=void 0}else Ms?pp(t,a)&&(be="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(be="onCompositionStart");be&&(fp&&a.locale!=="ko"&&(Ms||be!=="onCompositionStart"?be==="onCompositionEnd"&&Ms&&(pe=ap()):(ri=G,tu="value"in ri?ri.value:ri.textContent,Ms=!0)),ie=mo(R,be),0<ie.length&&(be=new cp(be,t,null,a,G),F.push({event:be,listeners:ie}),pe?be.data=pe:(pe=gp(a),pe!==null&&(be.data=pe)))),(pe=x1?T1(t,a):E1(t,a))&&(be=mo(R,"onBeforeInput"),0<be.length&&(ie=new cp("onBeforeInput","beforeinput",null,a,G),F.push({event:ie,listeners:be}),ie.data=pe)),mw(F,t,R,a,G)}Wm(F,s)})}function xa(t,s,a){return{instance:t,listener:s,currentTarget:a}}function mo(t,s){for(var a=s+"Capture",c=[];t!==null;){var h=t,p=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||p===null||(h=Gr(t,a),h!=null&&c.unshift(xa(t,h,p)),h=Gr(t,s),h!=null&&c.push(xa(t,h,p))),t.tag===3)return c;t=t.return}return[]}function Sw(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ty(t,s,a,c,h){for(var p=s._reactName,b=[];a!==null&&a!==c;){var x=a,A=x.alternate,R=x.stateNode;if(x=x.tag,A!==null&&A===c)break;x!==5&&x!==26&&x!==27||R===null||(A=R,h?(R=Gr(a,p),R!=null&&b.unshift(xa(a,R,A))):h||(R=Gr(a,p),R!=null&&b.push(xa(a,R,A)))),a=a.return}b.length!==0&&t.push({event:s,listeners:b})}var ww=/\r\n?/g,_w=/\u0000|\uFFFD/g;function ny(t){return(typeof t=="string"?t:""+t).replace(ww,`
|
|
50
|
-
`).replace(_w,"")}function iy(t,s){return s=ny(s),ny(t)===s}function Me(t,s,a,c,h,p){switch(a){case"children":typeof c=="string"?s==="body"||s==="textarea"&&c===""||Ns(t,c):(typeof c=="number"||typeof c=="bigint")&&s!=="body"&&Ns(t,""+c);break;case"className":vl(t,"class",c);break;case"tabIndex":vl(t,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":vl(t,a,c);break;case"style":ip(t,c,p);break;case"data":if(s!=="object"){vl(t,"data",c);break}case"src":case"href":if(c===""&&(s!=="a"||a!=="href")){t.removeAttribute(a);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(a);break}c=wl(""+c),t.setAttribute(a,c);break;case"action":case"formAction":if(typeof c=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(a==="formAction"?(s!=="input"&&Me(t,s,"name",h.name,h,null),Me(t,s,"formEncType",h.formEncType,h,null),Me(t,s,"formMethod",h.formMethod,h,null),Me(t,s,"formTarget",h.formTarget,h,null)):(Me(t,s,"encType",h.encType,h,null),Me(t,s,"method",h.method,h,null),Me(t,s,"target",h.target,h,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(a);break}c=wl(""+c),t.setAttribute(a,c);break;case"onClick":c!=null&&(t.onclick=jn);break;case"onScroll":c!=null&&me("scroll",t);break;case"onScrollEnd":c!=null&&me("scrollend",t);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(a=c.__html,a!=null){if(h.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":t.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){t.removeAttribute("xlink:href");break}a=wl(""+c),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(a,""+c):t.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":c===!0?t.setAttribute(a,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(a,c):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?t.setAttribute(a,c):t.removeAttribute(a);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?t.removeAttribute(a):t.setAttribute(a,c);break;case"popover":me("beforetoggle",t),me("toggle",t),bl(t,"popover",c);break;case"xlinkActuate":On(t,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":On(t,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":On(t,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":On(t,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":On(t,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":On(t,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":On(t,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":On(t,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":On(t,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":bl(t,"is",c);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=JS.get(a)||a,bl(t,a,c))}}function zf(t,s,a,c,h,p){switch(a){case"style":ip(t,c,p);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(a=c.__html,a!=null){if(h.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof c=="string"?Ns(t,c):(typeof c=="number"||typeof c=="bigint")&&Ns(t,""+c);break;case"onScroll":c!=null&&me("scroll",t);break;case"onScrollEnd":c!=null&&me("scrollend",t);break;case"onClick":c!=null&&(t.onclick=jn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(h=a.endsWith("Capture"),s=a.slice(2,h?a.length-7:void 0),p=t[Nt]||null,p=p!=null?p[a]:null,typeof p=="function"&&t.removeEventListener(s,p,h),typeof c=="function")){typeof p!="function"&&p!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(s,c,h);break e}a in t?t[a]=c:c===!0?t.setAttribute(a,""):bl(t,a,c)}}}function ht(t,s,a){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":me("error",t),me("load",t);var c=!1,h=!1,p;for(p in a)if(a.hasOwnProperty(p)){var b=a[p];if(b!=null)switch(p){case"src":c=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Me(t,s,p,b,a,null)}}h&&Me(t,s,"srcSet",a.srcSet,a,null),c&&Me(t,s,"src",a.src,a,null);return;case"input":me("invalid",t);var x=p=b=h=null,A=null,R=null;for(c in a)if(a.hasOwnProperty(c)){var G=a[c];if(G!=null)switch(c){case"name":h=G;break;case"type":b=G;break;case"checked":A=G;break;case"defaultChecked":R=G;break;case"value":p=G;break;case"defaultValue":x=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,s));break;default:Me(t,s,c,G,a,null)}}Wd(t,p,x,A,R,b,h,!1);return;case"select":me("invalid",t),c=b=p=null;for(h in a)if(a.hasOwnProperty(h)&&(x=a[h],x!=null))switch(h){case"value":p=x;break;case"defaultValue":b=x;break;case"multiple":c=x;default:Me(t,s,h,x,a,null)}s=p,a=b,t.multiple=!!c,s!=null?As(t,!!c,s,!1):a!=null&&As(t,!!c,a,!0);return;case"textarea":me("invalid",t),p=h=c=null;for(b in a)if(a.hasOwnProperty(b)&&(x=a[b],x!=null))switch(b){case"value":c=x;break;case"defaultValue":h=x;break;case"children":p=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:Me(t,s,b,x,a,null)}tp(t,c,h,p);return;case"option":for(A in a)if(a.hasOwnProperty(A)&&(c=a[A],c!=null))switch(A){case"selected":t.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Me(t,s,A,c,a,null)}return;case"dialog":me("beforetoggle",t),me("toggle",t),me("cancel",t),me("close",t);break;case"iframe":case"object":me("load",t);break;case"video":case"audio":for(c=0;c<_a.length;c++)me(_a[c],t);break;case"image":me("error",t),me("load",t);break;case"details":me("toggle",t);break;case"embed":case"source":case"link":me("error",t),me("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(R in a)if(a.hasOwnProperty(R)&&(c=a[R],c!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Me(t,s,R,c,a,null)}return;default:if(Jc(s)){for(G in a)a.hasOwnProperty(G)&&(c=a[G],c!==void 0&&zf(t,s,G,c,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(c=a[x],c!=null&&Me(t,s,x,c,a,null))}function xw(t,s,a,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,p=null,b=null,x=null,A=null,R=null,G=null;for(H in a){var F=a[H];if(a.hasOwnProperty(H)&&F!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":A=F;default:c.hasOwnProperty(H)||Me(t,s,H,null,c,F)}}for(var B in c){var H=c[B];if(F=a[B],c.hasOwnProperty(B)&&(H!=null||F!=null))switch(B){case"type":p=H;break;case"name":h=H;break;case"checked":R=H;break;case"defaultChecked":G=H;break;case"value":b=H;break;case"defaultValue":x=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,s));break;default:H!==F&&Me(t,s,B,H,c,F)}}Fc(t,b,x,A,R,G,p,h);return;case"select":H=b=x=B=null;for(p in a)if(A=a[p],a.hasOwnProperty(p)&&A!=null)switch(p){case"value":break;case"multiple":H=A;default:c.hasOwnProperty(p)||Me(t,s,p,null,c,A)}for(h in c)if(p=c[h],A=a[h],c.hasOwnProperty(h)&&(p!=null||A!=null))switch(h){case"value":B=p;break;case"defaultValue":x=p;break;case"multiple":b=p;default:p!==A&&Me(t,s,h,p,c,A)}s=x,a=b,c=H,B!=null?As(t,!!a,B,!1):!!c!=!!a&&(s!=null?As(t,!!a,s,!0):As(t,!!a,a?[]:"",!1));return;case"textarea":H=B=null;for(x in a)if(h=a[x],a.hasOwnProperty(x)&&h!=null&&!c.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Me(t,s,x,null,c,h)}for(b in c)if(h=c[b],p=a[b],c.hasOwnProperty(b)&&(h!=null||p!=null))switch(b){case"value":B=h;break;case"defaultValue":H=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(r(91));break;default:h!==p&&Me(t,s,b,h,c,p)}ep(t,B,H);return;case"option":for(var te in a)if(B=a[te],a.hasOwnProperty(te)&&B!=null&&!c.hasOwnProperty(te))switch(te){case"selected":t.selected=!1;break;default:Me(t,s,te,null,c,B)}for(A in c)if(B=c[A],H=a[A],c.hasOwnProperty(A)&&B!==H&&(B!=null||H!=null))switch(A){case"selected":t.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Me(t,s,A,B,c,H)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var oe in a)B=a[oe],a.hasOwnProperty(oe)&&B!=null&&!c.hasOwnProperty(oe)&&Me(t,s,oe,null,c,B);for(R in c)if(B=c[R],H=a[R],c.hasOwnProperty(R)&&B!==H&&(B!=null||H!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,s));break;default:Me(t,s,R,B,c,H)}return;default:if(Jc(s)){for(var Oe in a)B=a[Oe],a.hasOwnProperty(Oe)&&B!==void 0&&!c.hasOwnProperty(Oe)&&zf(t,s,Oe,void 0,c,B);for(G in c)B=c[G],H=a[G],!c.hasOwnProperty(G)||B===H||B===void 0&&H===void 0||zf(t,s,G,B,c,H);return}}for(var O in a)B=a[O],a.hasOwnProperty(O)&&B!=null&&!c.hasOwnProperty(O)&&Me(t,s,O,null,c,B);for(F in c)B=c[F],H=a[F],!c.hasOwnProperty(F)||B===H||B==null&&H==null||Me(t,s,F,B,c,H)}function sy(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Tw(){if(typeof performance.getEntriesByType=="function"){for(var t=0,s=0,a=performance.getEntriesByType("resource"),c=0;c<a.length;c++){var h=a[c],p=h.transferSize,b=h.initiatorType,x=h.duration;if(p&&x&&sy(b)){for(b=0,x=h.responseEnd,c+=1;c<a.length;c++){var A=a[c],R=A.startTime;if(R>x)break;var G=A.transferSize,F=A.initiatorType;G&&sy(F)&&(A=A.responseEnd,b+=G*(A<x?1:(x-R)/(A-R)))}if(--c,s+=8*(p+b)/(h.duration/1e3),t++,10<t)break}}if(0<t)return s/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Uf=null,Hf=null;function yo(t){return t.nodeType===9?t:t.ownerDocument}function ry(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ay(t,s){if(t===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&s==="foreignObject"?0:t}function qf(t,s){return t==="textarea"||t==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var $f=null;function Ew(){var t=window.event;return t&&t.type==="popstate"?t===$f?!1:($f=t,!0):($f=null,!1)}var ly=typeof setTimeout=="function"?setTimeout:void 0,Aw=typeof clearTimeout=="function"?clearTimeout:void 0,oy=typeof Promise=="function"?Promise:void 0,Nw=typeof queueMicrotask=="function"?queueMicrotask:typeof oy<"u"?function(t){return oy.resolve(null).then(t).catch(Cw)}:ly;function Cw(t){setTimeout(function(){throw t})}function _i(t){return t==="head"}function cy(t,s){var a=s,c=0;do{var h=a.nextSibling;if(t.removeChild(a),h&&h.nodeType===8)if(a=h.data,a==="/$"||a==="/&"){if(c===0){t.removeChild(h),sr(s);return}c--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")c++;else if(a==="html")Ta(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,Ta(a);for(var p=a.firstChild;p;){var b=p.nextSibling,x=p.nodeName;p[Ir]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=b}}else a==="body"&&Ta(t.ownerDocument.body);a=h}while(a);sr(s)}function uy(t,s){var a=t;t=0;do{var c=a.nextSibling;if(a.nodeType===1?s?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(s?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),c&&c.nodeType===8)if(a=c.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=c}while(a)}function If(t){var s=t.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var a=s;switch(s=s.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":If(a),Yc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function kw(t,s,a,c){for(;t.nodeType===1;){var h=a;if(t.nodeName.toLowerCase()!==s.toLowerCase()){if(!c&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(c){if(!t[Ir])switch(s){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(p=t.getAttribute("rel"),p==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(p!==h.rel||t.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||t.getAttribute("title")!==(h.title==null?null:h.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(p=t.getAttribute("src"),(p!==(h.src==null?null:h.src)||t.getAttribute("type")!==(h.type==null?null:h.type)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&p&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(s==="input"&&t.type==="hidden"){var p=h.name==null?null:""+h.name;if(h.type==="hidden"&&t.getAttribute("name")===p)return t}else return t;if(t=sn(t.nextSibling),t===null)break}return null}function Mw(t,s,a){if(s==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=sn(t.nextSibling),t===null))return null;return t}function fy(t,s){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!s||(t=sn(t.nextSibling),t===null))return null;return t}function Vf(t){return t.data==="$?"||t.data==="$~"}function Gf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Ow(t,s){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=s;else if(t.data!=="$?"||a.readyState!=="loading")s();else{var c=function(){s(),a.removeEventListener("DOMContentLoaded",c)};a.addEventListener("DOMContentLoaded",c),t._reactRetry=c}}function sn(t){for(;t!=null;t=t.nextSibling){var s=t.nodeType;if(s===1||s===3)break;if(s===8){if(s=t.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return t}var Kf=null;function hy(t){t=t.nextSibling;for(var s=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(s===0)return sn(t.nextSibling);s--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||s++}t=t.nextSibling}return null}function dy(t){t=t.previousSibling;for(var s=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(s===0)return t;s--}else a!=="/$"&&a!=="/&"||s++}t=t.previousSibling}return null}function py(t,s,a){switch(s=yo(a),t){case"html":if(t=s.documentElement,!t)throw Error(r(452));return t;case"head":if(t=s.head,!t)throw Error(r(453));return t;case"body":if(t=s.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Ta(t){for(var s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Yc(t)}var rn=new Map,gy=new Set;function bo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Fn=Z.d;Z.d={f:jw,r:Lw,D:Rw,C:Dw,L:Bw,m:zw,X:Hw,S:Uw,M:qw};function jw(){var t=Fn.f(),s=oo();return t||s}function Lw(t){var s=xs(t);s!==null&&s.tag===5&&s.type==="form"?jg(s):Fn.r(t)}var tr=typeof document>"u"?null:document;function my(t,s,a){var c=tr;if(c&&typeof s=="string"&&s){var h=Jt(s);h='link[rel="'+t+'"][href="'+h+'"]',typeof a=="string"&&(h+='[crossorigin="'+a+'"]'),gy.has(h)||(gy.add(h),t={rel:t,crossOrigin:a,href:s},c.querySelector(h)===null&&(s=c.createElement("link"),ht(s,"link",t),at(s),c.head.appendChild(s)))}}function Rw(t){Fn.D(t),my("dns-prefetch",t,null)}function Dw(t,s){Fn.C(t,s),my("preconnect",t,s)}function Bw(t,s,a){Fn.L(t,s,a);var c=tr;if(c&&t&&s){var h='link[rel="preload"][as="'+Jt(s)+'"]';s==="image"&&a&&a.imageSrcSet?(h+='[imagesrcset="'+Jt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(h+='[imagesizes="'+Jt(a.imageSizes)+'"]')):h+='[href="'+Jt(t)+'"]';var p=h;switch(s){case"style":p=nr(t);break;case"script":p=ir(t)}rn.has(p)||(t=m({rel:"preload",href:s==="image"&&a&&a.imageSrcSet?void 0:t,as:s},a),rn.set(p,t),c.querySelector(h)!==null||s==="style"&&c.querySelector(Ea(p))||s==="script"&&c.querySelector(Aa(p))||(s=c.createElement("link"),ht(s,"link",t),at(s),c.head.appendChild(s)))}}function zw(t,s){Fn.m(t,s);var a=tr;if(a&&t){var c=s&&typeof s.as=="string"?s.as:"script",h='link[rel="modulepreload"][as="'+Jt(c)+'"][href="'+Jt(t)+'"]',p=h;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=ir(t)}if(!rn.has(p)&&(t=m({rel:"modulepreload",href:t},s),rn.set(p,t),a.querySelector(h)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Aa(p)))return}c=a.createElement("link"),ht(c,"link",t),at(c),a.head.appendChild(c)}}}function Uw(t,s,a){Fn.S(t,s,a);var c=tr;if(c&&t){var h=Ts(c).hoistableStyles,p=nr(t);s=s||"default";var b=h.get(p);if(!b){var x={loading:0,preload:null};if(b=c.querySelector(Ea(p)))x.loading=5;else{t=m({rel:"stylesheet",href:t,"data-precedence":s},a),(a=rn.get(p))&&Yf(t,a);var A=b=c.createElement("link");at(A),ht(A,"link",t),A._p=new Promise(function(R,G){A.onload=R,A.onerror=G}),A.addEventListener("load",function(){x.loading|=1}),A.addEventListener("error",function(){x.loading|=2}),x.loading|=4,vo(b,s,c)}b={type:"stylesheet",instance:b,count:1,state:x},h.set(p,b)}}}function Hw(t,s){Fn.X(t,s);var a=tr;if(a&&t){var c=Ts(a).hoistableScripts,h=ir(t),p=c.get(h);p||(p=a.querySelector(Aa(h)),p||(t=m({src:t,async:!0},s),(s=rn.get(h))&&Xf(t,s),p=a.createElement("script"),at(p),ht(p,"link",t),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},c.set(h,p))}}function qw(t,s){Fn.M(t,s);var a=tr;if(a&&t){var c=Ts(a).hoistableScripts,h=ir(t),p=c.get(h);p||(p=a.querySelector(Aa(h)),p||(t=m({src:t,async:!0,type:"module"},s),(s=rn.get(h))&&Xf(t,s),p=a.createElement("script"),at(p),ht(p,"link",t),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},c.set(h,p))}}function yy(t,s,a,c){var h=(h=re.current)?bo(h):null;if(!h)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(s=nr(a.href),a=Ts(h).hoistableStyles,c=a.get(s),c||(c={type:"style",instance:null,count:0,state:null},a.set(s,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=nr(a.href);var p=Ts(h).hoistableStyles,b=p.get(t);if(b||(h=h.ownerDocument||h,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(t,b),(p=h.querySelector(Ea(t)))&&!p._p&&(b.instance=p,b.state.loading=5),rn.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},rn.set(t,a),p||$w(h,t,a,b.state))),s&&c===null)throw Error(r(528,""));return b}if(s&&c!==null)throw Error(r(529,""));return null;case"script":return s=a.async,a=a.src,typeof a=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=ir(a),a=Ts(h).hoistableScripts,c=a.get(s),c||(c={type:"script",instance:null,count:0,state:null},a.set(s,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function nr(t){return'href="'+Jt(t)+'"'}function Ea(t){return'link[rel="stylesheet"]['+t+"]"}function by(t){return m({},t,{"data-precedence":t.precedence,precedence:null})}function $w(t,s,a,c){t.querySelector('link[rel="preload"][as="style"]['+s+"]")?c.loading=1:(s=t.createElement("link"),c.preload=s,s.addEventListener("load",function(){return c.loading|=1}),s.addEventListener("error",function(){return c.loading|=2}),ht(s,"link",a),at(s),t.head.appendChild(s))}function ir(t){return'[src="'+Jt(t)+'"]'}function Aa(t){return"script[async]"+t}function vy(t,s,a){if(s.count++,s.instance===null)switch(s.type){case"style":var c=t.querySelector('style[data-href~="'+Jt(a.href)+'"]');if(c)return s.instance=c,at(c),c;var h=m({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return c=(t.ownerDocument||t).createElement("style"),at(c),ht(c,"style",h),vo(c,a.precedence,t),s.instance=c;case"stylesheet":h=nr(a.href);var p=t.querySelector(Ea(h));if(p)return s.state.loading|=4,s.instance=p,at(p),p;c=by(a),(h=rn.get(h))&&Yf(c,h),p=(t.ownerDocument||t).createElement("link"),at(p);var b=p;return b._p=new Promise(function(x,A){b.onload=x,b.onerror=A}),ht(p,"link",c),s.state.loading|=4,vo(p,a.precedence,t),s.instance=p;case"script":return p=ir(a.src),(h=t.querySelector(Aa(p)))?(s.instance=h,at(h),h):(c=a,(h=rn.get(p))&&(c=m({},a),Xf(c,h)),t=t.ownerDocument||t,h=t.createElement("script"),at(h),ht(h,"link",c),t.head.appendChild(h),s.instance=h);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(c=s.instance,s.state.loading|=4,vo(c,a.precedence,t));return s.instance}function vo(t,s,a){for(var c=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=c.length?c[c.length-1]:null,p=h,b=0;b<c.length;b++){var x=c[b];if(x.dataset.precedence===s)p=x;else if(p!==h)break}p?p.parentNode.insertBefore(t,p.nextSibling):(s=a.nodeType===9?a.head:a,s.insertBefore(t,s.firstChild))}function Yf(t,s){t.crossOrigin==null&&(t.crossOrigin=s.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=s.referrerPolicy),t.title==null&&(t.title=s.title)}function Xf(t,s){t.crossOrigin==null&&(t.crossOrigin=s.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=s.referrerPolicy),t.integrity==null&&(t.integrity=s.integrity)}var So=null;function Sy(t,s,a){if(So===null){var c=new Map,h=So=new Map;h.set(a,c)}else h=So,c=h.get(a),c||(c=new Map,h.set(a,c));if(c.has(t))return c;for(c.set(t,null),a=a.getElementsByTagName(t),h=0;h<a.length;h++){var p=a[h];if(!(p[Ir]||p[ot]||t==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var b=p.getAttribute(s)||"";b=t+b;var x=c.get(b);x?x.push(p):c.set(b,[p])}}return c}function wy(t,s,a){t=t.ownerDocument||t,t.head.insertBefore(a,s==="title"?t.querySelector("head > title"):null)}function Iw(t,s,a){if(a===1||s.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return t=s.disabled,typeof s.precedence=="string"&&t==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function _y(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Vw(t,s,a,c){if(a.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var h=nr(c.href),p=s.querySelector(Ea(h));if(p){s=p._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(t.count++,t=wo.bind(t),s.then(t,t)),a.state.loading|=4,a.instance=p,at(p);return}p=s.ownerDocument||s,c=by(c),(h=rn.get(h))&&Yf(c,h),p=p.createElement("link"),at(p);var b=p;b._p=new Promise(function(x,A){b.onload=x,b.onerror=A}),ht(p,"link",c),a.instance=p}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,s),(s=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=wo.bind(t),s.addEventListener("load",a),s.addEventListener("error",a))}}var Ff=0;function Gw(t,s){return t.stylesheets&&t.count===0&&xo(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var c=setTimeout(function(){if(t.stylesheets&&xo(t,t.stylesheets),t.unsuspend){var p=t.unsuspend;t.unsuspend=null,p()}},6e4+s);0<t.imgBytes&&Ff===0&&(Ff=62500*Tw());var h=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&xo(t,t.stylesheets),t.unsuspend)){var p=t.unsuspend;t.unsuspend=null,p()}},(t.imgBytes>Ff?50:800)+s);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(c),clearTimeout(h)}}:null}function wo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var _o=null;function xo(t,s){t.stylesheets=null,t.unsuspend!==null&&(t.count++,_o=new Map,s.forEach(Kw,t),_o=null,wo.call(t))}function Kw(t,s){if(!(s.state.loading&4)){var a=_o.get(t);if(a)var c=a.get(null);else{a=new Map,_o.set(t,a);for(var h=t.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<h.length;p++){var b=h[p];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(a.set(b.dataset.precedence,b),c=b)}c&&a.set(null,c)}h=s.instance,b=h.getAttribute("data-precedence"),p=a.get(b)||c,p===c&&a.set(null,h),a.set(b,h),this.count++,c=wo.bind(this),h.addEventListener("load",c),h.addEventListener("error",c),p?p.parentNode.insertBefore(h,p.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(h,t.firstChild)),s.state.loading|=4}}var Na={$$typeof:$,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function Yw(t,s,a,c,h,p,b,x,A){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ic(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ic(0),this.hiddenUpdates=Ic(null),this.identifierPrefix=c,this.onUncaughtError=h,this.onCaughtError=p,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function xy(t,s,a,c,h,p,b,x,A,R,G,F){return t=new Yw(t,s,a,b,A,R,G,F,x),s=1,p===!0&&(s|=24),p=$t(3,null,null,s),t.current=p,p.stateNode=t,s=Au(),s.refCount++,t.pooledCache=s,s.refCount++,p.memoizedState={element:c,isDehydrated:a,cache:s},Mu(p),t}function Ty(t){return t?(t=Rs,t):Rs}function Ey(t,s,a,c,h,p){h=Ty(h),c.context===null?c.context=h:c.pendingContext=h,c=fi(s),c.payload={element:a},p=p===void 0?null:p,p!==null&&(c.callback=p),a=hi(t,c,s),a!==null&&(Lt(a,t,s),ra(a,t,s))}function Ay(t,s){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<s?a:s}}function Qf(t,s){Ay(t,s),(t=t.alternate)&&Ay(t,s)}function Ny(t){if(t.tag===13||t.tag===31){var s=Ki(t,67108864);s!==null&&Lt(s,t,67108864),Qf(t,67108864)}}function Cy(t){if(t.tag===13||t.tag===31){var s=Yt();s=Vc(s);var a=Ki(t,s);a!==null&&Lt(a,t,s),Qf(t,s)}}var To=!0;function Xw(t,s,a,c){var h=z.T;z.T=null;var p=Z.p;try{Z.p=2,Jf(t,s,a,c)}finally{Z.p=p,z.T=h}}function Fw(t,s,a,c){var h=z.T;z.T=null;var p=Z.p;try{Z.p=8,Jf(t,s,a,c)}finally{Z.p=p,z.T=h}}function Jf(t,s,a,c){if(To){var h=Zf(c);if(h===null)Bf(t,s,c,Eo,a),My(t,c);else if(Jw(h,t,s,a,c))c.stopPropagation();else if(My(t,c),s&4&&-1<Qw.indexOf(t)){for(;h!==null;){var p=xs(h);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var b=qi(p.pendingLanes);if(b!==0){var x=p;for(x.pendingLanes|=2,x.entangledLanes|=2;b;){var A=1<<31-wt(b);x.entanglements[1]|=A,b&=~A}Tn(p),(Ee&6)===0&&(ao=St()+500,wa(0))}}break;case 31:case 13:x=Ki(p,2),x!==null&&Lt(x,p,2),oo(),Qf(p,2)}if(p=Zf(c),p===null&&Bf(t,s,c,Eo,a),p===h)break;h=p}h!==null&&c.stopPropagation()}else Bf(t,s,c,null,a)}}function Zf(t){return t=Pc(t),Pf(t)}var Eo=null;function Pf(t){if(Eo=null,t=_s(t),t!==null){var s=o(t);if(s===null)t=null;else{var a=s.tag;if(a===13){if(t=u(s),t!==null)return t;t=null}else if(a===31){if(t=f(s),t!==null)return t;t=null}else if(a===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;t=null}else s!==t&&(t=null)}}return Eo=t,null}function ky(t){switch(t){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Uc()){case dl:return 2;case Hr:return 8;case ii:case Hc:return 32;case pl:return 268435456;default:return 32}default:return 32}}var Wf=!1,xi=null,Ti=null,Ei=null,Ca=new Map,ka=new Map,Ai=[],Qw="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".split(" ");function My(t,s){switch(t){case"focusin":case"focusout":xi=null;break;case"dragenter":case"dragleave":Ti=null;break;case"mouseover":case"mouseout":Ei=null;break;case"pointerover":case"pointerout":Ca.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":ka.delete(s.pointerId)}}function Ma(t,s,a,c,h,p){return t===null||t.nativeEvent!==p?(t={blockedOn:s,domEventName:a,eventSystemFlags:c,nativeEvent:p,targetContainers:[h]},s!==null&&(s=xs(s),s!==null&&Ny(s)),t):(t.eventSystemFlags|=c,s=t.targetContainers,h!==null&&s.indexOf(h)===-1&&s.push(h),t)}function Jw(t,s,a,c,h){switch(s){case"focusin":return xi=Ma(xi,t,s,a,c,h),!0;case"dragenter":return Ti=Ma(Ti,t,s,a,c,h),!0;case"mouseover":return Ei=Ma(Ei,t,s,a,c,h),!0;case"pointerover":var p=h.pointerId;return Ca.set(p,Ma(Ca.get(p)||null,t,s,a,c,h)),!0;case"gotpointercapture":return p=h.pointerId,ka.set(p,Ma(ka.get(p)||null,t,s,a,c,h)),!0}return!1}function Oy(t){var s=_s(t.target);if(s!==null){var a=o(s);if(a!==null){if(s=a.tag,s===13){if(s=u(a),s!==null){t.blockedOn=s,Kd(t.priority,function(){Cy(a)});return}}else if(s===31){if(s=f(a),s!==null){t.blockedOn=s,Kd(t.priority,function(){Cy(a)});return}}else if(s===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ao(t){if(t.blockedOn!==null)return!1;for(var s=t.targetContainers;0<s.length;){var a=Zf(t.nativeEvent);if(a===null){a=t.nativeEvent;var c=new a.constructor(a.type,a);Zc=c,a.target.dispatchEvent(c),Zc=null}else return s=xs(a),s!==null&&Ny(s),t.blockedOn=a,!1;s.shift()}return!0}function jy(t,s,a){Ao(t)&&a.delete(s)}function Zw(){Wf=!1,xi!==null&&Ao(xi)&&(xi=null),Ti!==null&&Ao(Ti)&&(Ti=null),Ei!==null&&Ao(Ei)&&(Ei=null),Ca.forEach(jy),ka.forEach(jy)}function No(t,s){t.blockedOn===s&&(t.blockedOn=null,Wf||(Wf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Zw)))}var Co=null;function Ly(t){Co!==t&&(Co=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Co===t&&(Co=null);for(var s=0;s<t.length;s+=3){var a=t[s],c=t[s+1],h=t[s+2];if(typeof c!="function"){if(Pf(c||a)===null)continue;break}var p=xs(a);p!==null&&(t.splice(s,3),s-=3,Ju(p,{pending:!0,data:h,method:a.method,action:c},c,h))}}))}function sr(t){function s(A){return No(A,t)}xi!==null&&No(xi,t),Ti!==null&&No(Ti,t),Ei!==null&&No(Ei,t),Ca.forEach(s),ka.forEach(s);for(var a=0;a<Ai.length;a++){var c=Ai[a];c.blockedOn===t&&(c.blockedOn=null)}for(;0<Ai.length&&(a=Ai[0],a.blockedOn===null);)Oy(a),a.blockedOn===null&&Ai.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(c=0;c<a.length;c+=3){var h=a[c],p=a[c+1],b=h[Nt]||null;if(typeof p=="function")b||Ly(a);else if(b){var x=null;if(p&&p.hasAttribute("formAction")){if(h=p,b=p[Nt]||null)x=b.formAction;else if(Pf(h)!==null)continue}else x=b.action;typeof x=="function"?a[c+1]=x:(a.splice(c,3),c-=3),Ly(a)}}}function Ry(){function t(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(b){return h=b})},focusReset:"manual",scroll:"manual"})}function s(){h!==null&&(h(),h=null),c||setTimeout(a,20)}function a(){if(!c&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,h=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(a,100),function(){c=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),h!==null&&(h(),h=null)}}}function eh(t){this._internalRoot=t}ko.prototype.render=eh.prototype.render=function(t){var s=this._internalRoot;if(s===null)throw Error(r(409));var a=s.current,c=Yt();Ey(a,c,t,s,null,null)},ko.prototype.unmount=eh.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var s=t.containerInfo;Ey(t.current,2,null,t,null,null),oo(),s[ws]=null}};function ko(t){this._internalRoot=t}ko.prototype.unstable_scheduleHydration=function(t){if(t){var s=Gd();t={blockedOn:null,target:t,priority:s};for(var a=0;a<Ai.length&&s!==0&&s<Ai[a].priority;a++);Ai.splice(a,0,t),a===0&&Oy(t)}};var Dy=e.version;if(Dy!=="19.2.1")throw Error(r(527,Dy,"19.2.1"));Z.findDOMNode=function(t){var s=t._reactInternals;if(s===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=g(s),t=t!==null?y(t):null,t=t===null?null:t.stateNode,t};var Pw={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Mo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mo.isDisabled&&Mo.supportsFiber)try{Mn=Mo.inject(Pw),rt=Mo}catch{}}return La.createRoot=function(t,s){if(!l(t))throw Error(r(299));var a=!1,c="",h=Ig,p=Vg,b=Gg;return s!=null&&(s.unstable_strictMode===!0&&(a=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onUncaughtError!==void 0&&(h=s.onUncaughtError),s.onCaughtError!==void 0&&(p=s.onCaughtError),s.onRecoverableError!==void 0&&(b=s.onRecoverableError)),s=xy(t,1,!1,null,null,a,c,null,h,p,b,Ry),t[ws]=s.current,Df(t),new eh(s)},La.hydrateRoot=function(t,s,a){if(!l(t))throw Error(r(299));var c=!1,h="",p=Ig,b=Vg,x=Gg,A=null;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.formState!==void 0&&(A=a.formState)),s=xy(t,1,!0,s,a??null,c,h,A,p,b,x,Ry),s.context=Ty(null),a=s.current,c=Yt(),c=Vc(c),h=fi(c),h.callback=null,hi(a,h,c),a=c,s.current.lanes=a,$r(s,a),Tn(s),t[ws]=s.current,Df(t),new ko(s)},La.version="19.2.1",La}var Xy;function v_(){if(Xy)return ih.exports;Xy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),ih.exports=b_(),ih.exports}var kC=v_();const Z0=new Map([["APIRequestContext.fetch",{title:'{method} "{url}"'}],["APIRequestContext.fetchResponseBody",{title:"Get response body",group:"getter"}],["APIRequestContext.fetchLog",{internal:!0}],["APIRequestContext.storageState",{title:"Get storage state"}],["APIRequestContext.disposeAPIResponse",{internal:!0}],["APIRequestContext.dispose",{internal:!0}],["LocalUtils.zip",{internal:!0}],["LocalUtils.harOpen",{internal:!0}],["LocalUtils.harLookup",{internal:!0}],["LocalUtils.harClose",{internal:!0}],["LocalUtils.harUnzip",{internal:!0}],["LocalUtils.connect",{internal:!0}],["LocalUtils.tracingStarted",{internal:!0}],["LocalUtils.addStackToTracingNoReply",{internal:!0}],["LocalUtils.traceDiscarded",{internal:!0}],["LocalUtils.globToRegex",{internal:!0}],["Root.initialize",{internal:!0}],["Playwright.newRequest",{title:"Create request context"}],["DebugController.initialize",{internal:!0}],["DebugController.setReportStateChanged",{internal:!0}],["DebugController.setRecorderMode",{internal:!0}],["DebugController.highlight",{internal:!0}],["DebugController.hideHighlight",{internal:!0}],["DebugController.resume",{internal:!0}],["DebugController.kill",{internal:!0}],["SocksSupport.socksConnected",{internal:!0}],["SocksSupport.socksFailed",{internal:!0}],["SocksSupport.socksData",{internal:!0}],["SocksSupport.socksError",{internal:!0}],["SocksSupport.socksEnd",{internal:!0}],["BrowserType.launch",{title:"Launch browser"}],["BrowserType.launchPersistentContext",{title:"Launch persistent context"}],["BrowserType.connectOverCDP",{title:"Connect over CDP"}],["Browser.close",{title:"Close browser",pausesBeforeAction:!0}],["Browser.killForTests",{internal:!0}],["Browser.defaultUserAgentForTest",{internal:!0}],["Browser.newContext",{title:"Create context"}],["Browser.newContextForReuse",{internal:!0}],["Browser.disconnectFromReusedContext",{internal:!0}],["Browser.newBrowserCDPSession",{title:"Create CDP session",group:"configuration"}],["Browser.startTracing",{title:"Start browser tracing",group:"configuration"}],["Browser.stopTracing",{title:"Stop browser tracing",group:"configuration"}],["EventTarget.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["BrowserContext.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["Page.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["Worker.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["WebSocket.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["ElectronApplication.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["AndroidDevice.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["BrowserContext.addCookies",{title:"Add cookies",group:"configuration"}],["BrowserContext.addInitScript",{title:"Add init script",group:"configuration"}],["BrowserContext.clearCookies",{title:"Clear cookies",group:"configuration"}],["BrowserContext.clearPermissions",{title:"Clear permissions",group:"configuration"}],["BrowserContext.close",{title:"Close context",pausesBeforeAction:!0}],["BrowserContext.cookies",{title:"Get cookies",group:"getter"}],["BrowserContext.exposeBinding",{title:"Expose binding",group:"configuration"}],["BrowserContext.grantPermissions",{title:"Grant permissions",group:"configuration"}],["BrowserContext.newPage",{title:"Create page"}],["BrowserContext.registerSelectorEngine",{internal:!0}],["BrowserContext.setTestIdAttributeName",{internal:!0}],["BrowserContext.setExtraHTTPHeaders",{title:"Set extra HTTP headers",group:"configuration"}],["BrowserContext.setGeolocation",{title:"Set geolocation",group:"configuration"}],["BrowserContext.setHTTPCredentials",{title:"Set HTTP credentials",group:"configuration"}],["BrowserContext.setNetworkInterceptionPatterns",{title:"Route requests",group:"route"}],["BrowserContext.setWebSocketInterceptionPatterns",{title:"Route WebSockets",group:"route"}],["BrowserContext.setOffline",{title:"Set offline mode"}],["BrowserContext.storageState",{title:"Get storage state"}],["BrowserContext.pause",{title:"Pause"}],["BrowserContext.enableRecorder",{internal:!0}],["BrowserContext.disableRecorder",{internal:!0}],["BrowserContext.newCDPSession",{title:"Create CDP session",group:"configuration"}],["BrowserContext.harStart",{internal:!0}],["BrowserContext.harExport",{internal:!0}],["BrowserContext.createTempFiles",{internal:!0}],["BrowserContext.updateSubscription",{internal:!0}],["BrowserContext.clockFastForward",{title:'Fast forward clock "{ticksNumber|ticksString}"'}],["BrowserContext.clockInstall",{title:'Install clock "{timeNumber|timeString}"'}],["BrowserContext.clockPauseAt",{title:'Pause clock "{timeNumber|timeString}"'}],["BrowserContext.clockResume",{title:"Resume clock"}],["BrowserContext.clockRunFor",{title:'Run clock "{ticksNumber|ticksString}"'}],["BrowserContext.clockSetFixedTime",{title:'Set fixed time "{timeNumber|timeString}"'}],["BrowserContext.clockSetSystemTime",{title:'Set system time "{timeNumber|timeString}"'}],["Page.addInitScript",{title:"Add init script",group:"configuration"}],["Page.close",{title:"Close page",pausesBeforeAction:!0}],["Page.consoleMessages",{title:"Get console messages",group:"getter"}],["Page.emulateMedia",{title:"Emulate media",snapshot:!0,pausesBeforeAction:!0}],["Page.exposeBinding",{title:"Expose binding",group:"configuration"}],["Page.goBack",{title:"Go back",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.goForward",{title:"Go forward",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.requestGC",{title:"Request garbage collection",group:"configuration"}],["Page.registerLocatorHandler",{title:"Register locator handler"}],["Page.resolveLocatorHandlerNoReply",{internal:!0}],["Page.unregisterLocatorHandler",{title:"Unregister locator handler"}],["Page.reload",{title:"Reload",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.expectScreenshot",{title:"Expect screenshot",snapshot:!0,pausesBeforeAction:!0}],["Page.screenshot",{title:"Screenshot",snapshot:!0,pausesBeforeAction:!0}],["Page.setExtraHTTPHeaders",{title:"Set extra HTTP headers",group:"configuration"}],["Page.setNetworkInterceptionPatterns",{title:"Route requests",group:"route"}],["Page.setWebSocketInterceptionPatterns",{title:"Route WebSockets",group:"route"}],["Page.setViewportSize",{title:"Set viewport size",snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardDown",{title:'Key down "{key}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardUp",{title:'Key up "{key}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardInsertText",{title:'Insert "{text}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardType",{title:'Type "{text}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardPress",{title:'Press "{key}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseMove",{title:"Mouse move",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseDown",{title:"Mouse down",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseUp",{title:"Mouse up",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseClick",{title:"Click",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseWheel",{title:"Mouse wheel",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.touchscreenTap",{title:"Tap",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.pageErrors",{title:"Get page errors",group:"getter"}],["Page.pdf",{title:"PDF"}],["Page.requests",{title:"Get network requests",group:"getter"}],["Page.snapshotForAI",{internal:!0}],["Page.startJSCoverage",{title:"Start JS coverage",group:"configuration"}],["Page.stopJSCoverage",{title:"Stop JS coverage",group:"configuration"}],["Page.startCSSCoverage",{title:"Start CSS coverage",group:"configuration"}],["Page.stopCSSCoverage",{title:"Stop CSS coverage",group:"configuration"}],["Page.bringToFront",{title:"Bring to front"}],["Page.updateSubscription",{internal:!0}],["Page.perform",{internal:!0}],["Page.extract",{internal:!0}],["Frame.evalOnSelector",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.evalOnSelectorAll",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.addScriptTag",{title:"Add script tag",snapshot:!0,pausesBeforeAction:!0}],["Frame.addStyleTag",{title:"Add style tag",snapshot:!0,pausesBeforeAction:!0}],["Frame.ariaSnapshot",{title:"Aria snapshot",snapshot:!0,pausesBeforeAction:!0}],["Frame.blur",{title:"Blur",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.check",{title:"Check",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.click",{title:"Click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.content",{title:"Get content",snapshot:!0,pausesBeforeAction:!0}],["Frame.dragAndDrop",{title:"Drag and drop",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.dblclick",{title:"Double click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.dispatchEvent",{title:'Dispatch "{type}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.evaluateExpression",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.evaluateExpressionHandle",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.fill",{title:'Fill "{value}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.focus",{title:"Focus",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.frameElement",{title:"Get frame element",group:"getter"}],["Frame.resolveSelector",{internal:!0}],["Frame.highlight",{title:"Highlight element",group:"configuration"}],["Frame.getAttribute",{title:'Get attribute "{name}"',snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.goto",{title:'Navigate to "{url}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.hover",{title:"Hover",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.innerHTML",{title:"Get HTML",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.innerText",{title:"Get inner text",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.inputValue",{title:"Get input value",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isChecked",{title:"Is checked",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isDisabled",{title:"Is disabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isEnabled",{title:"Is enabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isHidden",{title:"Is hidden",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isVisible",{title:"Is visible",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isEditable",{title:"Is editable",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.press",{title:'Press "{key}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.querySelector",{title:"Query selector",snapshot:!0}],["Frame.querySelectorAll",{title:"Query selector all",snapshot:!0}],["Frame.queryCount",{title:"Query count",snapshot:!0,pausesBeforeAction:!0}],["Frame.selectOption",{title:"Select option",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.setContent",{title:"Set content",snapshot:!0,pausesBeforeAction:!0}],["Frame.setInputFiles",{title:"Set input files",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.tap",{title:"Tap",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.textContent",{title:"Get text content",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.title",{title:"Get page title",group:"getter"}],["Frame.type",{title:'Type "{text}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.uncheck",{title:"Uncheck",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.waitForTimeout",{title:"Wait for timeout",snapshot:!0}],["Frame.waitForFunction",{title:"Wait for function",snapshot:!0,pausesBeforeAction:!0}],["Frame.waitForSelector",{title:"Wait for selector",snapshot:!0}],["Frame.expect",{title:'Expect "{expression}"',snapshot:!0,pausesBeforeAction:!0}],["Worker.evaluateExpression",{title:"Evaluate"}],["Worker.evaluateExpressionHandle",{title:"Evaluate"}],["Worker.updateSubscription",{internal:!0}],["JSHandle.dispose",{internal:!0}],["ElementHandle.dispose",{internal:!0}],["JSHandle.evaluateExpression",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.evaluateExpression",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["JSHandle.evaluateExpressionHandle",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.evaluateExpressionHandle",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["JSHandle.getPropertyList",{title:"Get property list",group:"getter"}],["ElementHandle.getPropertyList",{title:"Get property list",group:"getter"}],["JSHandle.getProperty",{title:"Get JS property",group:"getter"}],["ElementHandle.getProperty",{title:"Get JS property",group:"getter"}],["JSHandle.jsonValue",{title:"Get JSON value",group:"getter"}],["ElementHandle.jsonValue",{title:"Get JSON value",group:"getter"}],["ElementHandle.evalOnSelector",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.evalOnSelectorAll",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.boundingBox",{title:"Get bounding box",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.check",{title:"Check",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.click",{title:"Click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.contentFrame",{title:"Get content frame",group:"getter"}],["ElementHandle.dblclick",{title:"Double click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.dispatchEvent",{title:"Dispatch event",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.fill",{title:'Fill "{value}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.focus",{title:"Focus",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.getAttribute",{title:"Get attribute",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.hover",{title:"Hover",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.innerHTML",{title:"Get HTML",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.innerText",{title:"Get inner text",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.inputValue",{title:"Get input value",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isChecked",{title:"Is checked",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isDisabled",{title:"Is disabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isEditable",{title:"Is editable",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isEnabled",{title:"Is enabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isHidden",{title:"Is hidden",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isVisible",{title:"Is visible",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.ownerFrame",{title:"Get owner frame",group:"getter"}],["ElementHandle.press",{title:'Press "{key}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.querySelector",{title:"Query selector",snapshot:!0}],["ElementHandle.querySelectorAll",{title:"Query selector all",snapshot:!0}],["ElementHandle.screenshot",{title:"Screenshot",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.scrollIntoViewIfNeeded",{title:"Scroll into view",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.selectOption",{title:"Select option",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.selectText",{title:"Select text",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.setInputFiles",{title:"Set input files",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.tap",{title:"Tap",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.textContent",{title:"Get text content",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.type",{title:"Type",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.uncheck",{title:"Uncheck",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.waitForElementState",{title:"Wait for state",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.waitForSelector",{title:"Wait for selector",snapshot:!0}],["Request.response",{internal:!0}],["Request.rawRequestHeaders",{internal:!0}],["Route.redirectNavigationRequest",{internal:!0}],["Route.abort",{title:"Abort request",group:"route"}],["Route.continue",{title:"Continue request",group:"route"}],["Route.fulfill",{title:"Fulfill request",group:"route"}],["WebSocketRoute.connect",{title:"Connect WebSocket to server",group:"route"}],["WebSocketRoute.ensureOpened",{internal:!0}],["WebSocketRoute.sendToPage",{title:"Send WebSocket message",group:"route"}],["WebSocketRoute.sendToServer",{title:"Send WebSocket message",group:"route"}],["WebSocketRoute.closePage",{internal:!0}],["WebSocketRoute.closeServer",{internal:!0}],["Response.body",{title:"Get response body",group:"getter"}],["Response.securityDetails",{internal:!0}],["Response.serverAddr",{internal:!0}],["Response.rawResponseHeaders",{internal:!0}],["Response.sizes",{internal:!0}],["BindingCall.reject",{internal:!0}],["BindingCall.resolve",{internal:!0}],["Dialog.accept",{title:"Accept dialog"}],["Dialog.dismiss",{title:"Dismiss dialog"}],["Tracing.tracingStart",{title:"Start tracing",group:"configuration"}],["Tracing.tracingStartChunk",{title:"Start tracing",group:"configuration"}],["Tracing.tracingGroup",{title:'Trace "{name}"'}],["Tracing.tracingGroupEnd",{title:"Group end"}],["Tracing.tracingStopChunk",{title:"Stop tracing",group:"configuration"}],["Tracing.tracingStop",{title:"Stop tracing",group:"configuration"}],["Artifact.pathAfterFinished",{internal:!0}],["Artifact.saveAs",{internal:!0}],["Artifact.saveAsStream",{internal:!0}],["Artifact.failure",{internal:!0}],["Artifact.stream",{internal:!0}],["Artifact.cancel",{internal:!0}],["Artifact.delete",{internal:!0}],["Stream.read",{internal:!0}],["Stream.close",{internal:!0}],["WritableStream.write",{internal:!0}],["WritableStream.close",{internal:!0}],["CDPSession.send",{title:"Send CDP command",group:"configuration"}],["CDPSession.detach",{title:"Detach CDP session",group:"configuration"}],["Electron.launch",{title:"Launch electron"}],["ElectronApplication.browserWindow",{internal:!0}],["ElectronApplication.evaluateExpression",{title:"Evaluate"}],["ElectronApplication.evaluateExpressionHandle",{title:"Evaluate"}],["ElectronApplication.updateSubscription",{internal:!0}],["Android.devices",{internal:!0}],["AndroidSocket.write",{internal:!0}],["AndroidSocket.close",{internal:!0}],["AndroidDevice.wait",{title:"Wait"}],["AndroidDevice.fill",{title:'Fill "{text}"'}],["AndroidDevice.tap",{title:"Tap"}],["AndroidDevice.drag",{title:"Drag"}],["AndroidDevice.fling",{title:"Fling"}],["AndroidDevice.longTap",{title:"Long tap"}],["AndroidDevice.pinchClose",{title:"Pinch close"}],["AndroidDevice.pinchOpen",{title:"Pinch open"}],["AndroidDevice.scroll",{title:"Scroll"}],["AndroidDevice.swipe",{title:"Swipe"}],["AndroidDevice.info",{internal:!0}],["AndroidDevice.screenshot",{title:"Screenshot"}],["AndroidDevice.inputType",{title:"Type"}],["AndroidDevice.inputPress",{title:"Press"}],["AndroidDevice.inputTap",{title:"Tap"}],["AndroidDevice.inputSwipe",{title:"Swipe"}],["AndroidDevice.inputDrag",{title:"Drag"}],["AndroidDevice.launchBrowser",{title:"Launch browser"}],["AndroidDevice.open",{title:"Open app"}],["AndroidDevice.shell",{title:"Execute shell command",group:"configuration"}],["AndroidDevice.installApk",{title:"Install apk"}],["AndroidDevice.push",{title:"Push"}],["AndroidDevice.connectToWebView",{title:"Connect to Web View"}],["AndroidDevice.close",{internal:!0}],["JsonPipe.send",{internal:!0}],["JsonPipe.close",{internal:!0}]]);function S_(n,e){var i;return(i=w_(n,e))==null?void 0:i.replaceAll(`
|
|
51
|
-
`,"\\n")}function w_(n,e){if(n)for(const i of e.split("|")){if(i==="url")try{const l=new URL(n[i]);return l.protocol==="data:"?l.protocol:l.protocol==="about:"?n[i]:l.pathname+l.search}catch{if(n[i]!==void 0)return n[i]}if(i==="timeNumber"&&n[i]!==void 0)return new Date(n[i]).toString();const r=__(n,i);if(r!==void 0)return r}}function __(n,e){const i=e.split(".");let r=n;for(const l of i){if(typeof r!="object"||r===null)return;r=r[l]}if(r!==void 0)return String(r)}function x_(n){var e;return(e=Z0.get(n.type+"."+n.method))==null?void 0:e.group}const $a=Symbol("context"),P0=Symbol("nextInContext"),W0=Symbol("prevByEndTime"),eb=Symbol("nextByStartTime"),Fy=Symbol("events");class MC{constructor(e,i){var l;i.forEach(o=>T_(o));const r=i.find(o=>o.origin==="library");this.traceUrl=e,this.browserName=(r==null?void 0:r.browserName)||"",this.sdkLanguage=r==null?void 0:r.sdkLanguage,this.channel=r==null?void 0:r.channel,this.testIdAttributeName=r==null?void 0:r.testIdAttributeName,this.platform=(r==null?void 0:r.platform)||"",this.playwrightVersion=(l=i.find(o=>o.playwrightVersion))==null?void 0:l.playwrightVersion,this.title=(r==null?void 0:r.title)||"",this.options=(r==null?void 0:r.options)||{},this.actions=E_(i),this.pages=[].concat(...i.map(o=>o.pages)),this.wallTime=i.map(o=>o.wallTime).reduce((o,u)=>Math.min(o||Number.MAX_VALUE,u),Number.MAX_VALUE),this.startTime=i.map(o=>o.startTime).reduce((o,u)=>Math.min(o,u),Number.MAX_VALUE),this.endTime=i.map(o=>o.endTime).reduce((o,u)=>Math.max(o,u),Number.MIN_VALUE),this.events=[].concat(...i.map(o=>o.events)),this.stdio=[].concat(...i.map(o=>o.stdio)),this.errors=[].concat(...i.map(o=>o.errors)),this.hasSource=i.some(o=>o.hasSource),this.hasStepData=i.some(o=>o.origin==="testRunner"),this.resources=[...i.map(o=>o.resources)].flat(),this.attachments=this.actions.flatMap(o=>{var u;return((u=o.attachments)==null?void 0:u.map(f=>({...f,callId:o.callId,traceUrl:e})))??[]}),this.visibleAttachments=this.attachments.filter(o=>!o.name.startsWith("_")),this.events.sort((o,u)=>o.time-u.time),this.resources.sort((o,u)=>o._monotonicTime-u._monotonicTime),this.errorDescriptors=this.hasStepData?this._errorDescriptorsFromTestRunner():this._errorDescriptorsFromActions(),this.sources=L_(this.actions,this.errorDescriptors),this.actionCounters=new Map;for(const o of this.actions)o.group=o.group??x_({type:o.class,method:o.method}),o.group&&this.actionCounters.set(o.group,1+(this.actionCounters.get(o.group)||0))}createRelativeUrl(e){const i=new URL("http://localhost/"+e);return i.searchParams.set("trace",this.traceUrl),i.toString().substring(17)}failedAction(){return this.actions.findLast(e=>e.error)}filteredActions(e){const i=new Set(e);return this.actions.filter(r=>!r.group||i.has(r.group))}_errorDescriptorsFromActions(){var i;const e=[];for(const r of this.actions||[])(i=r.error)!=null&&i.message&&e.push({action:r,stack:r.stack,message:r.error.message});return e}_errorDescriptorsFromTestRunner(){return this.errors.filter(e=>!!e.message).map((e,i)=>({stack:e.stack,message:e.message}))}}function T_(n){for(const i of n.pages)i[$a]=n;for(let i=0;i<n.actions.length;++i){const r=n.actions[i];r[$a]=n}let e;for(let i=n.actions.length-1;i>=0;i--){const r=n.actions[i];r[P0]=e,r.class!=="Route"&&(e=r)}for(const i of n.events)i[$a]=n;for(const i of n.resources)i[$a]=n}function E_(n){const e=[],i=A_(n);e.push(...i),e.sort((r,l)=>l.parentId===r.callId?1:r.parentId===l.callId?-1:r.endTime-l.endTime);for(let r=1;r<e.length;++r)e[r][W0]=e[r-1];e.sort((r,l)=>l.parentId===r.callId?-1:r.parentId===l.callId?1:r.startTime-l.startTime);for(let r=0;r+1<e.length;++r)e[r][eb]=e[r+1];return e}let Qy=0;function A_(n){const e=new Map,i=n.filter(u=>u.origin==="library"),r=n.filter(u=>u.origin==="testRunner");if(!r.length||!i.length)return n.map(u=>u.actions.map(f=>({...f,context:u}))).flat();for(const u of i)for(const f of u.actions)e.set(f.stepId||`tmp-step@${++Qy}`,{...f,context:u});const l=C_(r,e);l&&N_(i,l);const o=new Map;for(const u of r)for(const f of u.actions){const d=f.stepId&&e.get(f.stepId);if(d){o.set(f.callId,d.callId),f.error&&(d.error=f.error),f.attachments&&(d.attachments=f.attachments),f.annotations&&(d.annotations=f.annotations),f.parentId&&(d.parentId=o.get(f.parentId)??f.parentId),f.group&&(d.group=f.group),d.startTime=f.startTime,d.endTime=f.endTime;continue}f.parentId&&(f.parentId=o.get(f.parentId)??f.parentId),e.set(f.stepId||`tmp-step@${++Qy}`,{...f,context:u})}return[...e.values()]}function N_(n,e){for(const i of n){i.startTime+=e,i.endTime+=e;for(const r of i.actions)r.startTime&&(r.startTime+=e),r.endTime&&(r.endTime+=e);for(const r of i.events)r.time+=e;for(const r of i.stdio)r.timestamp+=e;for(const r of i.pages)for(const l of r.screencastFrames)l.timestamp+=e;for(const r of i.resources)r._monotonicTime&&(r._monotonicTime+=e)}}function C_(n,e){for(const i of n)for(const r of i.actions){if(!r.startTime)continue;const l=r.stepId?e.get(r.stepId):void 0;if(l)return r.startTime-l.startTime}return 0}function k_(n){const e=new Map;for(const r of n)e.set(r.callId,{id:r.callId,parent:void 0,children:[],action:r});const i={id:"",parent:void 0,children:[]};for(const r of e.values()){const l=r.action.parentId&&e.get(r.action.parentId)||i;l.children.push(r),r.parent=l}return{rootItem:i,itemMap:e}}function tb(n){return n[$a]}function M_(n){return n[P0]}function Jy(n){return n[W0]}function Zy(n){return n[eb]}function O_(n){let e=0,i=0;for(const r of j_(n)){if(r.type==="console"){const l=r.messageType;l==="warning"?++i:l==="error"&&++e}r.type==="event"&&r.method==="pageError"&&++e}return{errors:e,warnings:i}}function j_(n){let e=n[Fy];if(e)return e;const i=M_(n);return e=tb(n).events.filter(r=>r.time>=n.startTime&&(!i||r.time<i.startTime)),n[Fy]=e,e}function L_(n,e){var r;const i=new Map;for(const l of n)for(const o of l.stack||[]){let u=i.get(o.file);u||(u={errors:[],content:void 0},i.set(o.file,u))}for(const l of e){const{action:o,stack:u,message:f}=l;!o||!u||(r=i.get(u[0].file))==null||r.errors.push({line:u[0].line||0,message:f})}return i}const R_=50,nc=({sidebarSize:n,sidebarHidden:e=!1,sidebarIsFirst:i=!1,orientation:r="vertical",minSidebarSize:l=R_,settingName:o,sidebar:u,main:f})=>{const d=Math.max(l,n)*window.devicePixelRatio,[g,y]=on(o?o+"."+r+":size":void 0,d),[m,S]=on(o?o+"."+r+":size":void 0,d),[w,E]=U.useState(null),[_,T]=gs();let N;r==="vertical"?(N=m/window.devicePixelRatio,_&&_.height<N&&(N=_.height-10)):(N=g/window.devicePixelRatio,_&&_.width<N&&(N=_.width-10)),document.body.style.userSelect=w?"none":"inherit";let M={};return r==="vertical"?i?M={top:w?0:N-4,bottom:w?0:void 0,height:w?"initial":8}:M={bottom:w?0:N-4,top:w?0:void 0,height:w?"initial":8}:i?M={left:w?0:N-4,right:w?0:void 0,width:w?"initial":8}:M={right:w?0:N-4,left:w?0:void 0,width:w?"initial":8},v.jsxs("div",{className:Fe("split-view",r,i&&"sidebar-first"),ref:T,children:[v.jsx("div",{className:"split-view-main",children:f}),!e&&v.jsx("div",{style:{flexBasis:N},className:"split-view-sidebar",children:u}),!e&&v.jsx("div",{style:M,className:"split-view-resizer",onMouseDown:$=>E({offset:r==="vertical"?$.clientY:$.clientX,size:N}),onMouseUp:()=>E(null),onMouseMove:$=>{if(!$.buttons)E(null);else if(w){const D=(r==="vertical"?$.clientY:$.clientX)-w.offset,K=i?w.size+D:w.size-D,q=$.target.parentElement.getBoundingClientRect(),j=Math.min(Math.max(l,K),(r==="vertical"?q.height:q.width)-l);r==="vertical"?S(j*window.devicePixelRatio):y(j*window.devicePixelRatio)}}})]})},et=function(n,e,i){return n>=e&&n<=i};function Rt(n){return et(n,48,57)}function Py(n){return Rt(n)||et(n,65,70)||et(n,97,102)}function D_(n){return et(n,65,90)}function B_(n){return et(n,97,122)}function z_(n){return D_(n)||B_(n)}function U_(n){return n>=128}function $o(n){return z_(n)||U_(n)||n===95}function Wy(n){return $o(n)||Rt(n)||n===45}function H_(n){return et(n,0,8)||n===11||et(n,14,31)||n===127}function Io(n){return n===10}function Qn(n){return Io(n)||n===9||n===32}const q_=1114111;class Fh extends Error{constructor(e){super(e),this.name="InvalidCharacterError"}}function $_(n){const e=[];for(let i=0;i<n.length;i++){let r=n.charCodeAt(i);if(r===13&&n.charCodeAt(i+1)===10&&(r=10,i++),(r===13||r===12)&&(r=10),r===0&&(r=65533),et(r,55296,56319)&&et(n.charCodeAt(i+1),56320,57343)){const l=r-55296,o=n.charCodeAt(i+1)-56320;r=Math.pow(2,16)+l*Math.pow(2,10)+o,i++}e.push(r)}return e}function st(n){if(n<=65535)return String.fromCharCode(n);n-=Math.pow(2,16);const e=Math.floor(n/Math.pow(2,10))+55296,i=n%Math.pow(2,10)+56320;return String.fromCharCode(e)+String.fromCharCode(i)}function nb(n){const e=$_(n);let i=-1;const r=[];let l;const o=function(V){return V>=e.length?-1:e[V]},u=function(V){if(V===void 0&&(V=1),V>3)throw"Spec Error: no more than three codepoints of lookahead.";return o(i+V)},f=function(V){return V===void 0&&(V=1),i+=V,l=o(i),!0},d=function(){return i-=1,!0},g=function(V){return V===void 0&&(V=l),V===-1},y=function(){if(m(),f(),Qn(l)){for(;Qn(u());)f();return new ic}else{if(l===34)return E();if(l===35)if(Wy(u())||N(u(1),u(2))){const V=new gb("");return $(u(1),u(2),u(3))&&(V.type="id"),V.value=Q(),V}else return new dt(l);else return l===36?u()===61?(f(),new K_):new dt(l):l===39?E():l===40?new hb:l===41?new Qh:l===42?u()===61?(f(),new Y_):new dt(l):l===43?K()?(d(),S()):new dt(l):l===44?new ob:l===45?K()?(d(),S()):u(1)===45&&u(2)===62?(f(2),new rb):I()?(d(),w()):new dt(l):l===46?K()?(d(),S()):new dt(l):l===58?new ab:l===59?new lb:l===60?u(1)===33&&u(2)===45&&u(3)===45?(f(3),new sb):new dt(l):l===64?$(u(1),u(2),u(3))?new pb(Q()):new dt(l):l===91?new fb:l===92?M()?(d(),w()):new dt(l):l===93?new kh:l===94?u()===61?(f(),new G_):new dt(l):l===123?new cb:l===124?u()===61?(f(),new V_):u()===124?(f(),new db):new dt(l):l===125?new ub:l===126?u()===61?(f(),new I_):new dt(l):Rt(l)?(d(),S()):$o(l)?(d(),w()):g()?new Go:new dt(l)}},m=function(){for(;u(1)===47&&u(2)===42;)for(f(2);;)if(f(),l===42&&u()===47){f();break}else if(g())return},S=function(){const V=q();if($(u(1),u(2),u(3))){const J=new X_;return J.value=V.value,J.repr=V.repr,J.type=V.type,J.unit=Q(),J}else if(u()===37){f();const J=new bb;return J.value=V.value,J.repr=V.repr,J}else{const J=new yb;return J.value=V.value,J.repr=V.repr,J.type=V.type,J}},w=function(){const V=Q();if(V.toLowerCase()==="url"&&u()===40){for(f();Qn(u(1))&&Qn(u(2));)f();return u()===34||u()===39?new Xa(V):Qn(u())&&(u(2)===34||u(2)===39)?new Xa(V):_()}else return u()===40?(f(),new Xa(V)):new Jh(V)},E=function(V){V===void 0&&(V=l);let J="";for(;f();){if(l===V||g())return new Zh(J);if(Io(l))return d(),new ib;l===92?g(u())||(Io(u())?f():J+=st(T())):J+=st(l)}throw new Error("Internal error")},_=function(){const V=new mb("");for(;Qn(u());)f();if(g(u()))return V;for(;f();){if(l===41||g())return V;if(Qn(l)){for(;Qn(u());)f();return u()===41||g(u())?(f(),V):(ne(),new Vo)}else{if(l===34||l===39||l===40||H_(l))return ne(),new Vo;if(l===92)if(M())V.value+=st(T());else return ne(),new Vo;else V.value+=st(l)}}throw new Error("Internal error")},T=function(){if(f(),Py(l)){const V=[l];for(let W=0;W<5&&Py(u());W++)f(),V.push(l);Qn(u())&&f();let J=parseInt(V.map(function(W){return String.fromCharCode(W)}).join(""),16);return J>q_&&(J=65533),J}else return g()?65533:l},N=function(V,J){return!(V!==92||Io(J))},M=function(){return N(l,u())},$=function(V,J,W){return V===45?$o(J)||J===45||N(J,W):$o(V)?!0:V===92?N(V,J):!1},I=function(){return $(l,u(1),u(2))},D=function(V,J,W){return V===43||V===45?!!(Rt(J)||J===46&&Rt(W)):V===46?!!Rt(J):!!Rt(V)},K=function(){return D(l,u(1),u(2))},Q=function(){let V="";for(;f();)if(Wy(l))V+=st(l);else if(M())V+=st(T());else return d(),V;throw new Error("Internal parse error")},q=function(){let V="",J="integer";for((u()===43||u()===45)&&(f(),V+=st(l));Rt(u());)f(),V+=st(l);if(u(1)===46&&Rt(u(2)))for(f(),V+=st(l),f(),V+=st(l),J="number";Rt(u());)f(),V+=st(l);const W=u(1),Ae=u(2),z=u(3);if((W===69||W===101)&&Rt(Ae))for(f(),V+=st(l),f(),V+=st(l),J="number";Rt(u());)f(),V+=st(l);else if((W===69||W===101)&&(Ae===43||Ae===45)&&Rt(z))for(f(),V+=st(l),f(),V+=st(l),f(),V+=st(l),J="number";Rt(u());)f(),V+=st(l);const Z=j(V);return{type:J,value:Z,repr:V}},j=function(V){return+V},ne=function(){for(;f();){if(l===41||g())return;M()&&T()}};let le=0;for(;!g(u());)if(r.push(y()),le++,le>e.length*2)throw new Error("I'm infinite-looping!");return r}class Qe{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class ib extends Qe{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class Vo extends Qe{constructor(){super(...arguments),this.tokenType="BADURL"}}class ic extends Qe{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class sb extends Qe{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return"<!--"}}class rb extends Qe{constructor(){super(...arguments),this.tokenType="CDC"}toSource(){return"-->"}}class ab extends Qe{constructor(){super(...arguments),this.tokenType=":"}}class lb extends Qe{constructor(){super(...arguments),this.tokenType=";"}}class ob extends Qe{constructor(){super(...arguments),this.tokenType=","}}class Ar extends Qe{constructor(){super(...arguments),this.value="",this.mirror=""}}class cb extends Ar{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class ub extends Ar{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class fb extends Ar{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class kh extends Ar{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class hb extends Ar{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class Qh extends Ar{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class I_ extends Qe{constructor(){super(...arguments),this.tokenType="~="}}class V_ extends Qe{constructor(){super(...arguments),this.tokenType="|="}}class G_ extends Qe{constructor(){super(...arguments),this.tokenType="^="}}class K_ extends Qe{constructor(){super(...arguments),this.tokenType="$="}}class Y_ extends Qe{constructor(){super(...arguments),this.tokenType="*="}}class db extends Qe{constructor(){super(...arguments),this.tokenType="||"}}class Go extends Qe{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class dt extends Qe{constructor(e){super(),this.tokenType="DELIM",this.value="",this.value=st(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==="\\"?`\\
|
|
50
|
+
`).replace(_w,"")}function iy(t,s){return s=ny(s),ny(t)===s}function Me(t,s,a,c,h,p){switch(a){case"children":typeof c=="string"?s==="body"||s==="textarea"&&c===""||Ns(t,c):(typeof c=="number"||typeof c=="bigint")&&s!=="body"&&Ns(t,""+c);break;case"className":vl(t,"class",c);break;case"tabIndex":vl(t,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":vl(t,a,c);break;case"style":ip(t,c,p);break;case"data":if(s!=="object"){vl(t,"data",c);break}case"src":case"href":if(c===""&&(s!=="a"||a!=="href")){t.removeAttribute(a);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(a);break}c=wl(""+c),t.setAttribute(a,c);break;case"action":case"formAction":if(typeof c=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(a==="formAction"?(s!=="input"&&Me(t,s,"name",h.name,h,null),Me(t,s,"formEncType",h.formEncType,h,null),Me(t,s,"formMethod",h.formMethod,h,null),Me(t,s,"formTarget",h.formTarget,h,null)):(Me(t,s,"encType",h.encType,h,null),Me(t,s,"method",h.method,h,null),Me(t,s,"target",h.target,h,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(a);break}c=wl(""+c),t.setAttribute(a,c);break;case"onClick":c!=null&&(t.onclick=jn);break;case"onScroll":c!=null&&me("scroll",t);break;case"onScrollEnd":c!=null&&me("scrollend",t);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(a=c.__html,a!=null){if(h.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":t.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){t.removeAttribute("xlink:href");break}a=wl(""+c),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(a,""+c):t.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":c===!0?t.setAttribute(a,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(a,c):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?t.setAttribute(a,c):t.removeAttribute(a);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?t.removeAttribute(a):t.setAttribute(a,c);break;case"popover":me("beforetoggle",t),me("toggle",t),bl(t,"popover",c);break;case"xlinkActuate":On(t,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":On(t,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":On(t,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":On(t,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":On(t,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":On(t,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":On(t,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":On(t,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":On(t,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":bl(t,"is",c);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=JS.get(a)||a,bl(t,a,c))}}function zf(t,s,a,c,h,p){switch(a){case"style":ip(t,c,p);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(a=c.__html,a!=null){if(h.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof c=="string"?Ns(t,c):(typeof c=="number"||typeof c=="bigint")&&Ns(t,""+c);break;case"onScroll":c!=null&&me("scroll",t);break;case"onScrollEnd":c!=null&&me("scrollend",t);break;case"onClick":c!=null&&(t.onclick=jn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(h=a.endsWith("Capture"),s=a.slice(2,h?a.length-7:void 0),p=t[Nt]||null,p=p!=null?p[a]:null,typeof p=="function"&&t.removeEventListener(s,p,h),typeof c=="function")){typeof p!="function"&&p!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(s,c,h);break e}a in t?t[a]=c:c===!0?t.setAttribute(a,""):bl(t,a,c)}}}function ht(t,s,a){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":me("error",t),me("load",t);var c=!1,h=!1,p;for(p in a)if(a.hasOwnProperty(p)){var b=a[p];if(b!=null)switch(p){case"src":c=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Me(t,s,p,b,a,null)}}h&&Me(t,s,"srcSet",a.srcSet,a,null),c&&Me(t,s,"src",a.src,a,null);return;case"input":me("invalid",t);var x=p=b=h=null,A=null,R=null;for(c in a)if(a.hasOwnProperty(c)){var G=a[c];if(G!=null)switch(c){case"name":h=G;break;case"type":b=G;break;case"checked":A=G;break;case"defaultChecked":R=G;break;case"value":p=G;break;case"defaultValue":x=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,s));break;default:Me(t,s,c,G,a,null)}}Wd(t,p,x,A,R,b,h,!1);return;case"select":me("invalid",t),c=b=p=null;for(h in a)if(a.hasOwnProperty(h)&&(x=a[h],x!=null))switch(h){case"value":p=x;break;case"defaultValue":b=x;break;case"multiple":c=x;default:Me(t,s,h,x,a,null)}s=p,a=b,t.multiple=!!c,s!=null?As(t,!!c,s,!1):a!=null&&As(t,!!c,a,!0);return;case"textarea":me("invalid",t),p=h=c=null;for(b in a)if(a.hasOwnProperty(b)&&(x=a[b],x!=null))switch(b){case"value":c=x;break;case"defaultValue":h=x;break;case"children":p=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:Me(t,s,b,x,a,null)}tp(t,c,h,p);return;case"option":for(A in a)if(a.hasOwnProperty(A)&&(c=a[A],c!=null))switch(A){case"selected":t.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Me(t,s,A,c,a,null)}return;case"dialog":me("beforetoggle",t),me("toggle",t),me("cancel",t),me("close",t);break;case"iframe":case"object":me("load",t);break;case"video":case"audio":for(c=0;c<_a.length;c++)me(_a[c],t);break;case"image":me("error",t),me("load",t);break;case"details":me("toggle",t);break;case"embed":case"source":case"link":me("error",t),me("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(R in a)if(a.hasOwnProperty(R)&&(c=a[R],c!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Me(t,s,R,c,a,null)}return;default:if(Jc(s)){for(G in a)a.hasOwnProperty(G)&&(c=a[G],c!==void 0&&zf(t,s,G,c,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(c=a[x],c!=null&&Me(t,s,x,c,a,null))}function xw(t,s,a,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,p=null,b=null,x=null,A=null,R=null,G=null;for(H in a){var F=a[H];if(a.hasOwnProperty(H)&&F!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":A=F;default:c.hasOwnProperty(H)||Me(t,s,H,null,c,F)}}for(var B in c){var H=c[B];if(F=a[B],c.hasOwnProperty(B)&&(H!=null||F!=null))switch(B){case"type":p=H;break;case"name":h=H;break;case"checked":R=H;break;case"defaultChecked":G=H;break;case"value":b=H;break;case"defaultValue":x=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,s));break;default:H!==F&&Me(t,s,B,H,c,F)}}Fc(t,b,x,A,R,G,p,h);return;case"select":H=b=x=B=null;for(p in a)if(A=a[p],a.hasOwnProperty(p)&&A!=null)switch(p){case"value":break;case"multiple":H=A;default:c.hasOwnProperty(p)||Me(t,s,p,null,c,A)}for(h in c)if(p=c[h],A=a[h],c.hasOwnProperty(h)&&(p!=null||A!=null))switch(h){case"value":B=p;break;case"defaultValue":x=p;break;case"multiple":b=p;default:p!==A&&Me(t,s,h,p,c,A)}s=x,a=b,c=H,B!=null?As(t,!!a,B,!1):!!c!=!!a&&(s!=null?As(t,!!a,s,!0):As(t,!!a,a?[]:"",!1));return;case"textarea":H=B=null;for(x in a)if(h=a[x],a.hasOwnProperty(x)&&h!=null&&!c.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Me(t,s,x,null,c,h)}for(b in c)if(h=c[b],p=a[b],c.hasOwnProperty(b)&&(h!=null||p!=null))switch(b){case"value":B=h;break;case"defaultValue":H=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(r(91));break;default:h!==p&&Me(t,s,b,h,c,p)}ep(t,B,H);return;case"option":for(var te in a)if(B=a[te],a.hasOwnProperty(te)&&B!=null&&!c.hasOwnProperty(te))switch(te){case"selected":t.selected=!1;break;default:Me(t,s,te,null,c,B)}for(A in c)if(B=c[A],H=a[A],c.hasOwnProperty(A)&&B!==H&&(B!=null||H!=null))switch(A){case"selected":t.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Me(t,s,A,B,c,H)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var oe in a)B=a[oe],a.hasOwnProperty(oe)&&B!=null&&!c.hasOwnProperty(oe)&&Me(t,s,oe,null,c,B);for(R in c)if(B=c[R],H=a[R],c.hasOwnProperty(R)&&B!==H&&(B!=null||H!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,s));break;default:Me(t,s,R,B,c,H)}return;default:if(Jc(s)){for(var Oe in a)B=a[Oe],a.hasOwnProperty(Oe)&&B!==void 0&&!c.hasOwnProperty(Oe)&&zf(t,s,Oe,void 0,c,B);for(G in c)B=c[G],H=a[G],!c.hasOwnProperty(G)||B===H||B===void 0&&H===void 0||zf(t,s,G,B,c,H);return}}for(var O in a)B=a[O],a.hasOwnProperty(O)&&B!=null&&!c.hasOwnProperty(O)&&Me(t,s,O,null,c,B);for(F in c)B=c[F],H=a[F],!c.hasOwnProperty(F)||B===H||B==null&&H==null||Me(t,s,F,B,c,H)}function sy(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Tw(){if(typeof performance.getEntriesByType=="function"){for(var t=0,s=0,a=performance.getEntriesByType("resource"),c=0;c<a.length;c++){var h=a[c],p=h.transferSize,b=h.initiatorType,x=h.duration;if(p&&x&&sy(b)){for(b=0,x=h.responseEnd,c+=1;c<a.length;c++){var A=a[c],R=A.startTime;if(R>x)break;var G=A.transferSize,F=A.initiatorType;G&&sy(F)&&(A=A.responseEnd,b+=G*(A<x?1:(x-R)/(A-R)))}if(--c,s+=8*(p+b)/(h.duration/1e3),t++,10<t)break}}if(0<t)return s/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Uf=null,Hf=null;function yo(t){return t.nodeType===9?t:t.ownerDocument}function ry(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ay(t,s){if(t===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&s==="foreignObject"?0:t}function qf(t,s){return t==="textarea"||t==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var $f=null;function Ew(){var t=window.event;return t&&t.type==="popstate"?t===$f?!1:($f=t,!0):($f=null,!1)}var ly=typeof setTimeout=="function"?setTimeout:void 0,Aw=typeof clearTimeout=="function"?clearTimeout:void 0,oy=typeof Promise=="function"?Promise:void 0,Nw=typeof queueMicrotask=="function"?queueMicrotask:typeof oy<"u"?function(t){return oy.resolve(null).then(t).catch(Cw)}:ly;function Cw(t){setTimeout(function(){throw t})}function _i(t){return t==="head"}function cy(t,s){var a=s,c=0;do{var h=a.nextSibling;if(t.removeChild(a),h&&h.nodeType===8)if(a=h.data,a==="/$"||a==="/&"){if(c===0){t.removeChild(h),sr(s);return}c--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")c++;else if(a==="html")Ta(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,Ta(a);for(var p=a.firstChild;p;){var b=p.nextSibling,x=p.nodeName;p[Ir]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=b}}else a==="body"&&Ta(t.ownerDocument.body);a=h}while(a);sr(s)}function uy(t,s){var a=t;t=0;do{var c=a.nextSibling;if(a.nodeType===1?s?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(s?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),c&&c.nodeType===8)if(a=c.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=c}while(a)}function If(t){var s=t.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var a=s;switch(s=s.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":If(a),Yc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function kw(t,s,a,c){for(;t.nodeType===1;){var h=a;if(t.nodeName.toLowerCase()!==s.toLowerCase()){if(!c&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(c){if(!t[Ir])switch(s){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(p=t.getAttribute("rel"),p==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(p!==h.rel||t.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||t.getAttribute("title")!==(h.title==null?null:h.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(p=t.getAttribute("src"),(p!==(h.src==null?null:h.src)||t.getAttribute("type")!==(h.type==null?null:h.type)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&p&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(s==="input"&&t.type==="hidden"){var p=h.name==null?null:""+h.name;if(h.type==="hidden"&&t.getAttribute("name")===p)return t}else return t;if(t=sn(t.nextSibling),t===null)break}return null}function Mw(t,s,a){if(s==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=sn(t.nextSibling),t===null))return null;return t}function fy(t,s){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!s||(t=sn(t.nextSibling),t===null))return null;return t}function Vf(t){return t.data==="$?"||t.data==="$~"}function Gf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Ow(t,s){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=s;else if(t.data!=="$?"||a.readyState!=="loading")s();else{var c=function(){s(),a.removeEventListener("DOMContentLoaded",c)};a.addEventListener("DOMContentLoaded",c),t._reactRetry=c}}function sn(t){for(;t!=null;t=t.nextSibling){var s=t.nodeType;if(s===1||s===3)break;if(s===8){if(s=t.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return t}var Kf=null;function hy(t){t=t.nextSibling;for(var s=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(s===0)return sn(t.nextSibling);s--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||s++}t=t.nextSibling}return null}function dy(t){t=t.previousSibling;for(var s=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(s===0)return t;s--}else a!=="/$"&&a!=="/&"||s++}t=t.previousSibling}return null}function py(t,s,a){switch(s=yo(a),t){case"html":if(t=s.documentElement,!t)throw Error(r(452));return t;case"head":if(t=s.head,!t)throw Error(r(453));return t;case"body":if(t=s.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Ta(t){for(var s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Yc(t)}var rn=new Map,gy=new Set;function bo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Fn=Z.d;Z.d={f:jw,r:Lw,D:Rw,C:Dw,L:Bw,m:zw,X:Hw,S:Uw,M:qw};function jw(){var t=Fn.f(),s=oo();return t||s}function Lw(t){var s=xs(t);s!==null&&s.tag===5&&s.type==="form"?jg(s):Fn.r(t)}var tr=typeof document>"u"?null:document;function my(t,s,a){var c=tr;if(c&&typeof s=="string"&&s){var h=Jt(s);h='link[rel="'+t+'"][href="'+h+'"]',typeof a=="string"&&(h+='[crossorigin="'+a+'"]'),gy.has(h)||(gy.add(h),t={rel:t,crossOrigin:a,href:s},c.querySelector(h)===null&&(s=c.createElement("link"),ht(s,"link",t),at(s),c.head.appendChild(s)))}}function Rw(t){Fn.D(t),my("dns-prefetch",t,null)}function Dw(t,s){Fn.C(t,s),my("preconnect",t,s)}function Bw(t,s,a){Fn.L(t,s,a);var c=tr;if(c&&t&&s){var h='link[rel="preload"][as="'+Jt(s)+'"]';s==="image"&&a&&a.imageSrcSet?(h+='[imagesrcset="'+Jt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(h+='[imagesizes="'+Jt(a.imageSizes)+'"]')):h+='[href="'+Jt(t)+'"]';var p=h;switch(s){case"style":p=nr(t);break;case"script":p=ir(t)}rn.has(p)||(t=m({rel:"preload",href:s==="image"&&a&&a.imageSrcSet?void 0:t,as:s},a),rn.set(p,t),c.querySelector(h)!==null||s==="style"&&c.querySelector(Ea(p))||s==="script"&&c.querySelector(Aa(p))||(s=c.createElement("link"),ht(s,"link",t),at(s),c.head.appendChild(s)))}}function zw(t,s){Fn.m(t,s);var a=tr;if(a&&t){var c=s&&typeof s.as=="string"?s.as:"script",h='link[rel="modulepreload"][as="'+Jt(c)+'"][href="'+Jt(t)+'"]',p=h;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=ir(t)}if(!rn.has(p)&&(t=m({rel:"modulepreload",href:t},s),rn.set(p,t),a.querySelector(h)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Aa(p)))return}c=a.createElement("link"),ht(c,"link",t),at(c),a.head.appendChild(c)}}}function Uw(t,s,a){Fn.S(t,s,a);var c=tr;if(c&&t){var h=Ts(c).hoistableStyles,p=nr(t);s=s||"default";var b=h.get(p);if(!b){var x={loading:0,preload:null};if(b=c.querySelector(Ea(p)))x.loading=5;else{t=m({rel:"stylesheet",href:t,"data-precedence":s},a),(a=rn.get(p))&&Yf(t,a);var A=b=c.createElement("link");at(A),ht(A,"link",t),A._p=new Promise(function(R,G){A.onload=R,A.onerror=G}),A.addEventListener("load",function(){x.loading|=1}),A.addEventListener("error",function(){x.loading|=2}),x.loading|=4,vo(b,s,c)}b={type:"stylesheet",instance:b,count:1,state:x},h.set(p,b)}}}function Hw(t,s){Fn.X(t,s);var a=tr;if(a&&t){var c=Ts(a).hoistableScripts,h=ir(t),p=c.get(h);p||(p=a.querySelector(Aa(h)),p||(t=m({src:t,async:!0},s),(s=rn.get(h))&&Xf(t,s),p=a.createElement("script"),at(p),ht(p,"link",t),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},c.set(h,p))}}function qw(t,s){Fn.M(t,s);var a=tr;if(a&&t){var c=Ts(a).hoistableScripts,h=ir(t),p=c.get(h);p||(p=a.querySelector(Aa(h)),p||(t=m({src:t,async:!0,type:"module"},s),(s=rn.get(h))&&Xf(t,s),p=a.createElement("script"),at(p),ht(p,"link",t),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},c.set(h,p))}}function yy(t,s,a,c){var h=(h=re.current)?bo(h):null;if(!h)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(s=nr(a.href),a=Ts(h).hoistableStyles,c=a.get(s),c||(c={type:"style",instance:null,count:0,state:null},a.set(s,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=nr(a.href);var p=Ts(h).hoistableStyles,b=p.get(t);if(b||(h=h.ownerDocument||h,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(t,b),(p=h.querySelector(Ea(t)))&&!p._p&&(b.instance=p,b.state.loading=5),rn.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},rn.set(t,a),p||$w(h,t,a,b.state))),s&&c===null)throw Error(r(528,""));return b}if(s&&c!==null)throw Error(r(529,""));return null;case"script":return s=a.async,a=a.src,typeof a=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=ir(a),a=Ts(h).hoistableScripts,c=a.get(s),c||(c={type:"script",instance:null,count:0,state:null},a.set(s,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function nr(t){return'href="'+Jt(t)+'"'}function Ea(t){return'link[rel="stylesheet"]['+t+"]"}function by(t){return m({},t,{"data-precedence":t.precedence,precedence:null})}function $w(t,s,a,c){t.querySelector('link[rel="preload"][as="style"]['+s+"]")?c.loading=1:(s=t.createElement("link"),c.preload=s,s.addEventListener("load",function(){return c.loading|=1}),s.addEventListener("error",function(){return c.loading|=2}),ht(s,"link",a),at(s),t.head.appendChild(s))}function ir(t){return'[src="'+Jt(t)+'"]'}function Aa(t){return"script[async]"+t}function vy(t,s,a){if(s.count++,s.instance===null)switch(s.type){case"style":var c=t.querySelector('style[data-href~="'+Jt(a.href)+'"]');if(c)return s.instance=c,at(c),c;var h=m({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return c=(t.ownerDocument||t).createElement("style"),at(c),ht(c,"style",h),vo(c,a.precedence,t),s.instance=c;case"stylesheet":h=nr(a.href);var p=t.querySelector(Ea(h));if(p)return s.state.loading|=4,s.instance=p,at(p),p;c=by(a),(h=rn.get(h))&&Yf(c,h),p=(t.ownerDocument||t).createElement("link"),at(p);var b=p;return b._p=new Promise(function(x,A){b.onload=x,b.onerror=A}),ht(p,"link",c),s.state.loading|=4,vo(p,a.precedence,t),s.instance=p;case"script":return p=ir(a.src),(h=t.querySelector(Aa(p)))?(s.instance=h,at(h),h):(c=a,(h=rn.get(p))&&(c=m({},a),Xf(c,h)),t=t.ownerDocument||t,h=t.createElement("script"),at(h),ht(h,"link",c),t.head.appendChild(h),s.instance=h);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(c=s.instance,s.state.loading|=4,vo(c,a.precedence,t));return s.instance}function vo(t,s,a){for(var c=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=c.length?c[c.length-1]:null,p=h,b=0;b<c.length;b++){var x=c[b];if(x.dataset.precedence===s)p=x;else if(p!==h)break}p?p.parentNode.insertBefore(t,p.nextSibling):(s=a.nodeType===9?a.head:a,s.insertBefore(t,s.firstChild))}function Yf(t,s){t.crossOrigin==null&&(t.crossOrigin=s.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=s.referrerPolicy),t.title==null&&(t.title=s.title)}function Xf(t,s){t.crossOrigin==null&&(t.crossOrigin=s.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=s.referrerPolicy),t.integrity==null&&(t.integrity=s.integrity)}var So=null;function Sy(t,s,a){if(So===null){var c=new Map,h=So=new Map;h.set(a,c)}else h=So,c=h.get(a),c||(c=new Map,h.set(a,c));if(c.has(t))return c;for(c.set(t,null),a=a.getElementsByTagName(t),h=0;h<a.length;h++){var p=a[h];if(!(p[Ir]||p[ot]||t==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var b=p.getAttribute(s)||"";b=t+b;var x=c.get(b);x?x.push(p):c.set(b,[p])}}return c}function wy(t,s,a){t=t.ownerDocument||t,t.head.insertBefore(a,s==="title"?t.querySelector("head > title"):null)}function Iw(t,s,a){if(a===1||s.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return t=s.disabled,typeof s.precedence=="string"&&t==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function _y(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Vw(t,s,a,c){if(a.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var h=nr(c.href),p=s.querySelector(Ea(h));if(p){s=p._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(t.count++,t=wo.bind(t),s.then(t,t)),a.state.loading|=4,a.instance=p,at(p);return}p=s.ownerDocument||s,c=by(c),(h=rn.get(h))&&Yf(c,h),p=p.createElement("link"),at(p);var b=p;b._p=new Promise(function(x,A){b.onload=x,b.onerror=A}),ht(p,"link",c),a.instance=p}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,s),(s=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=wo.bind(t),s.addEventListener("load",a),s.addEventListener("error",a))}}var Ff=0;function Gw(t,s){return t.stylesheets&&t.count===0&&xo(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var c=setTimeout(function(){if(t.stylesheets&&xo(t,t.stylesheets),t.unsuspend){var p=t.unsuspend;t.unsuspend=null,p()}},6e4+s);0<t.imgBytes&&Ff===0&&(Ff=62500*Tw());var h=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&xo(t,t.stylesheets),t.unsuspend)){var p=t.unsuspend;t.unsuspend=null,p()}},(t.imgBytes>Ff?50:800)+s);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(c),clearTimeout(h)}}:null}function wo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var _o=null;function xo(t,s){t.stylesheets=null,t.unsuspend!==null&&(t.count++,_o=new Map,s.forEach(Kw,t),_o=null,wo.call(t))}function Kw(t,s){if(!(s.state.loading&4)){var a=_o.get(t);if(a)var c=a.get(null);else{a=new Map,_o.set(t,a);for(var h=t.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<h.length;p++){var b=h[p];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(a.set(b.dataset.precedence,b),c=b)}c&&a.set(null,c)}h=s.instance,b=h.getAttribute("data-precedence"),p=a.get(b)||c,p===c&&a.set(null,h),a.set(b,h),this.count++,c=wo.bind(this),h.addEventListener("load",c),h.addEventListener("error",c),p?p.parentNode.insertBefore(h,p.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(h,t.firstChild)),s.state.loading|=4}}var Na={$$typeof:$,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function Yw(t,s,a,c,h,p,b,x,A){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ic(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ic(0),this.hiddenUpdates=Ic(null),this.identifierPrefix=c,this.onUncaughtError=h,this.onCaughtError=p,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function xy(t,s,a,c,h,p,b,x,A,R,G,F){return t=new Yw(t,s,a,b,A,R,G,F,x),s=1,p===!0&&(s|=24),p=$t(3,null,null,s),t.current=p,p.stateNode=t,s=Au(),s.refCount++,t.pooledCache=s,s.refCount++,p.memoizedState={element:c,isDehydrated:a,cache:s},Mu(p),t}function Ty(t){return t?(t=Rs,t):Rs}function Ey(t,s,a,c,h,p){h=Ty(h),c.context===null?c.context=h:c.pendingContext=h,c=fi(s),c.payload={element:a},p=p===void 0?null:p,p!==null&&(c.callback=p),a=hi(t,c,s),a!==null&&(Lt(a,t,s),ra(a,t,s))}function Ay(t,s){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<s?a:s}}function Qf(t,s){Ay(t,s),(t=t.alternate)&&Ay(t,s)}function Ny(t){if(t.tag===13||t.tag===31){var s=Ki(t,67108864);s!==null&&Lt(s,t,67108864),Qf(t,67108864)}}function Cy(t){if(t.tag===13||t.tag===31){var s=Yt();s=Vc(s);var a=Ki(t,s);a!==null&&Lt(a,t,s),Qf(t,s)}}var To=!0;function Xw(t,s,a,c){var h=z.T;z.T=null;var p=Z.p;try{Z.p=2,Jf(t,s,a,c)}finally{Z.p=p,z.T=h}}function Fw(t,s,a,c){var h=z.T;z.T=null;var p=Z.p;try{Z.p=8,Jf(t,s,a,c)}finally{Z.p=p,z.T=h}}function Jf(t,s,a,c){if(To){var h=Zf(c);if(h===null)Bf(t,s,c,Eo,a),My(t,c);else if(Jw(h,t,s,a,c))c.stopPropagation();else if(My(t,c),s&4&&-1<Qw.indexOf(t)){for(;h!==null;){var p=xs(h);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var b=qi(p.pendingLanes);if(b!==0){var x=p;for(x.pendingLanes|=2,x.entangledLanes|=2;b;){var A=1<<31-wt(b);x.entanglements[1]|=A,b&=~A}Tn(p),(Ee&6)===0&&(ao=St()+500,wa(0))}}break;case 31:case 13:x=Ki(p,2),x!==null&&Lt(x,p,2),oo(),Qf(p,2)}if(p=Zf(c),p===null&&Bf(t,s,c,Eo,a),p===h)break;h=p}h!==null&&c.stopPropagation()}else Bf(t,s,c,null,a)}}function Zf(t){return t=Pc(t),Pf(t)}var Eo=null;function Pf(t){if(Eo=null,t=_s(t),t!==null){var s=o(t);if(s===null)t=null;else{var a=s.tag;if(a===13){if(t=u(s),t!==null)return t;t=null}else if(a===31){if(t=f(s),t!==null)return t;t=null}else if(a===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;t=null}else s!==t&&(t=null)}}return Eo=t,null}function ky(t){switch(t){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Uc()){case dl:return 2;case Hr:return 8;case ii:case Hc:return 32;case pl:return 268435456;default:return 32}default:return 32}}var Wf=!1,xi=null,Ti=null,Ei=null,Ca=new Map,ka=new Map,Ai=[],Qw="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".split(" ");function My(t,s){switch(t){case"focusin":case"focusout":xi=null;break;case"dragenter":case"dragleave":Ti=null;break;case"mouseover":case"mouseout":Ei=null;break;case"pointerover":case"pointerout":Ca.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":ka.delete(s.pointerId)}}function Ma(t,s,a,c,h,p){return t===null||t.nativeEvent!==p?(t={blockedOn:s,domEventName:a,eventSystemFlags:c,nativeEvent:p,targetContainers:[h]},s!==null&&(s=xs(s),s!==null&&Ny(s)),t):(t.eventSystemFlags|=c,s=t.targetContainers,h!==null&&s.indexOf(h)===-1&&s.push(h),t)}function Jw(t,s,a,c,h){switch(s){case"focusin":return xi=Ma(xi,t,s,a,c,h),!0;case"dragenter":return Ti=Ma(Ti,t,s,a,c,h),!0;case"mouseover":return Ei=Ma(Ei,t,s,a,c,h),!0;case"pointerover":var p=h.pointerId;return Ca.set(p,Ma(Ca.get(p)||null,t,s,a,c,h)),!0;case"gotpointercapture":return p=h.pointerId,ka.set(p,Ma(ka.get(p)||null,t,s,a,c,h)),!0}return!1}function Oy(t){var s=_s(t.target);if(s!==null){var a=o(s);if(a!==null){if(s=a.tag,s===13){if(s=u(a),s!==null){t.blockedOn=s,Kd(t.priority,function(){Cy(a)});return}}else if(s===31){if(s=f(a),s!==null){t.blockedOn=s,Kd(t.priority,function(){Cy(a)});return}}else if(s===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ao(t){if(t.blockedOn!==null)return!1;for(var s=t.targetContainers;0<s.length;){var a=Zf(t.nativeEvent);if(a===null){a=t.nativeEvent;var c=new a.constructor(a.type,a);Zc=c,a.target.dispatchEvent(c),Zc=null}else return s=xs(a),s!==null&&Ny(s),t.blockedOn=a,!1;s.shift()}return!0}function jy(t,s,a){Ao(t)&&a.delete(s)}function Zw(){Wf=!1,xi!==null&&Ao(xi)&&(xi=null),Ti!==null&&Ao(Ti)&&(Ti=null),Ei!==null&&Ao(Ei)&&(Ei=null),Ca.forEach(jy),ka.forEach(jy)}function No(t,s){t.blockedOn===s&&(t.blockedOn=null,Wf||(Wf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Zw)))}var Co=null;function Ly(t){Co!==t&&(Co=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Co===t&&(Co=null);for(var s=0;s<t.length;s+=3){var a=t[s],c=t[s+1],h=t[s+2];if(typeof c!="function"){if(Pf(c||a)===null)continue;break}var p=xs(a);p!==null&&(t.splice(s,3),s-=3,Ju(p,{pending:!0,data:h,method:a.method,action:c},c,h))}}))}function sr(t){function s(A){return No(A,t)}xi!==null&&No(xi,t),Ti!==null&&No(Ti,t),Ei!==null&&No(Ei,t),Ca.forEach(s),ka.forEach(s);for(var a=0;a<Ai.length;a++){var c=Ai[a];c.blockedOn===t&&(c.blockedOn=null)}for(;0<Ai.length&&(a=Ai[0],a.blockedOn===null);)Oy(a),a.blockedOn===null&&Ai.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(c=0;c<a.length;c+=3){var h=a[c],p=a[c+1],b=h[Nt]||null;if(typeof p=="function")b||Ly(a);else if(b){var x=null;if(p&&p.hasAttribute("formAction")){if(h=p,b=p[Nt]||null)x=b.formAction;else if(Pf(h)!==null)continue}else x=b.action;typeof x=="function"?a[c+1]=x:(a.splice(c,3),c-=3),Ly(a)}}}function Ry(){function t(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(b){return h=b})},focusReset:"manual",scroll:"manual"})}function s(){h!==null&&(h(),h=null),c||setTimeout(a,20)}function a(){if(!c&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,h=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(a,100),function(){c=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),h!==null&&(h(),h=null)}}}function eh(t){this._internalRoot=t}ko.prototype.render=eh.prototype.render=function(t){var s=this._internalRoot;if(s===null)throw Error(r(409));var a=s.current,c=Yt();Ey(a,c,t,s,null,null)},ko.prototype.unmount=eh.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var s=t.containerInfo;Ey(t.current,2,null,t,null,null),oo(),s[ws]=null}};function ko(t){this._internalRoot=t}ko.prototype.unstable_scheduleHydration=function(t){if(t){var s=Gd();t={blockedOn:null,target:t,priority:s};for(var a=0;a<Ai.length&&s!==0&&s<Ai[a].priority;a++);Ai.splice(a,0,t),a===0&&Oy(t)}};var Dy=e.version;if(Dy!=="19.2.1")throw Error(r(527,Dy,"19.2.1"));Z.findDOMNode=function(t){var s=t._reactInternals;if(s===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=g(s),t=t!==null?y(t):null,t=t===null?null:t.stateNode,t};var Pw={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Mo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mo.isDisabled&&Mo.supportsFiber)try{Mn=Mo.inject(Pw),rt=Mo}catch{}}return La.createRoot=function(t,s){if(!l(t))throw Error(r(299));var a=!1,c="",h=Ig,p=Vg,b=Gg;return s!=null&&(s.unstable_strictMode===!0&&(a=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onUncaughtError!==void 0&&(h=s.onUncaughtError),s.onCaughtError!==void 0&&(p=s.onCaughtError),s.onRecoverableError!==void 0&&(b=s.onRecoverableError)),s=xy(t,1,!1,null,null,a,c,null,h,p,b,Ry),t[ws]=s.current,Df(t),new eh(s)},La.hydrateRoot=function(t,s,a){if(!l(t))throw Error(r(299));var c=!1,h="",p=Ig,b=Vg,x=Gg,A=null;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.formState!==void 0&&(A=a.formState)),s=xy(t,1,!0,s,a??null,c,h,A,p,b,x,Ry),s.context=Ty(null),a=s.current,c=Yt(),c=Vc(c),h=fi(c),h.callback=null,hi(a,h,c),a=c,s.current.lanes=a,$r(s,a),Tn(s),t[ws]=s.current,Df(t),new ko(s)},La.version="19.2.1",La}var Xy;function v_(){if(Xy)return ih.exports;Xy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),ih.exports=b_(),ih.exports}var MC=v_();const Z0=new Map([["APIRequestContext.fetch",{title:'{method} "{url}"'}],["APIRequestContext.fetchResponseBody",{title:"Get response body",group:"getter"}],["APIRequestContext.fetchLog",{internal:!0}],["APIRequestContext.storageState",{title:"Get storage state"}],["APIRequestContext.disposeAPIResponse",{internal:!0}],["APIRequestContext.dispose",{internal:!0}],["LocalUtils.zip",{internal:!0}],["LocalUtils.harOpen",{internal:!0}],["LocalUtils.harLookup",{internal:!0}],["LocalUtils.harClose",{internal:!0}],["LocalUtils.harUnzip",{internal:!0}],["LocalUtils.connect",{internal:!0}],["LocalUtils.tracingStarted",{internal:!0}],["LocalUtils.addStackToTracingNoReply",{internal:!0}],["LocalUtils.traceDiscarded",{internal:!0}],["LocalUtils.globToRegex",{internal:!0}],["Root.initialize",{internal:!0}],["Playwright.newRequest",{title:"Create request context"}],["DebugController.initialize",{internal:!0}],["DebugController.setReportStateChanged",{internal:!0}],["DebugController.setRecorderMode",{internal:!0}],["DebugController.highlight",{internal:!0}],["DebugController.hideHighlight",{internal:!0}],["DebugController.resume",{internal:!0}],["DebugController.kill",{internal:!0}],["SocksSupport.socksConnected",{internal:!0}],["SocksSupport.socksFailed",{internal:!0}],["SocksSupport.socksData",{internal:!0}],["SocksSupport.socksError",{internal:!0}],["SocksSupport.socksEnd",{internal:!0}],["BrowserType.launch",{title:"Launch browser"}],["BrowserType.launchPersistentContext",{title:"Launch persistent context"}],["BrowserType.connectOverCDP",{title:"Connect over CDP"}],["Browser.close",{title:"Close browser",pausesBeforeAction:!0}],["Browser.killForTests",{internal:!0}],["Browser.defaultUserAgentForTest",{internal:!0}],["Browser.newContext",{title:"Create context"}],["Browser.newContextForReuse",{internal:!0}],["Browser.disconnectFromReusedContext",{internal:!0}],["Browser.newBrowserCDPSession",{title:"Create CDP session",group:"configuration"}],["Browser.startTracing",{title:"Start browser tracing",group:"configuration"}],["Browser.stopTracing",{title:"Stop browser tracing",group:"configuration"}],["EventTarget.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["BrowserContext.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["Page.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["Worker.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["WebSocket.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["ElectronApplication.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["AndroidDevice.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["BrowserContext.addCookies",{title:"Add cookies",group:"configuration"}],["BrowserContext.addInitScript",{title:"Add init script",group:"configuration"}],["BrowserContext.clearCookies",{title:"Clear cookies",group:"configuration"}],["BrowserContext.clearPermissions",{title:"Clear permissions",group:"configuration"}],["BrowserContext.close",{title:"Close context",pausesBeforeAction:!0}],["BrowserContext.cookies",{title:"Get cookies",group:"getter"}],["BrowserContext.exposeBinding",{title:"Expose binding",group:"configuration"}],["BrowserContext.grantPermissions",{title:"Grant permissions",group:"configuration"}],["BrowserContext.newPage",{title:"Create page"}],["BrowserContext.registerSelectorEngine",{internal:!0}],["BrowserContext.setTestIdAttributeName",{internal:!0}],["BrowserContext.setExtraHTTPHeaders",{title:"Set extra HTTP headers",group:"configuration"}],["BrowserContext.setGeolocation",{title:"Set geolocation",group:"configuration"}],["BrowserContext.setHTTPCredentials",{title:"Set HTTP credentials",group:"configuration"}],["BrowserContext.setNetworkInterceptionPatterns",{title:"Route requests",group:"route"}],["BrowserContext.setWebSocketInterceptionPatterns",{title:"Route WebSockets",group:"route"}],["BrowserContext.setOffline",{title:"Set offline mode"}],["BrowserContext.storageState",{title:"Get storage state"}],["BrowserContext.pause",{title:"Pause"}],["BrowserContext.enableRecorder",{internal:!0}],["BrowserContext.disableRecorder",{internal:!0}],["BrowserContext.newCDPSession",{title:"Create CDP session",group:"configuration"}],["BrowserContext.harStart",{internal:!0}],["BrowserContext.harExport",{internal:!0}],["BrowserContext.createTempFiles",{internal:!0}],["BrowserContext.updateSubscription",{internal:!0}],["BrowserContext.clockFastForward",{title:'Fast forward clock "{ticksNumber|ticksString}"'}],["BrowserContext.clockInstall",{title:'Install clock "{timeNumber|timeString}"'}],["BrowserContext.clockPauseAt",{title:'Pause clock "{timeNumber|timeString}"'}],["BrowserContext.clockResume",{title:"Resume clock"}],["BrowserContext.clockRunFor",{title:'Run clock "{ticksNumber|ticksString}"'}],["BrowserContext.clockSetFixedTime",{title:'Set fixed time "{timeNumber|timeString}"'}],["BrowserContext.clockSetSystemTime",{title:'Set system time "{timeNumber|timeString}"'}],["Page.addInitScript",{title:"Add init script",group:"configuration"}],["Page.close",{title:"Close page",pausesBeforeAction:!0}],["Page.consoleMessages",{title:"Get console messages",group:"getter"}],["Page.emulateMedia",{title:"Emulate media",snapshot:!0,pausesBeforeAction:!0}],["Page.exposeBinding",{title:"Expose binding",group:"configuration"}],["Page.goBack",{title:"Go back",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.goForward",{title:"Go forward",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.requestGC",{title:"Request garbage collection",group:"configuration"}],["Page.registerLocatorHandler",{title:"Register locator handler"}],["Page.resolveLocatorHandlerNoReply",{internal:!0}],["Page.unregisterLocatorHandler",{title:"Unregister locator handler"}],["Page.reload",{title:"Reload",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.expectScreenshot",{title:"Expect screenshot",snapshot:!0,pausesBeforeAction:!0}],["Page.screenshot",{title:"Screenshot",snapshot:!0,pausesBeforeAction:!0}],["Page.setExtraHTTPHeaders",{title:"Set extra HTTP headers",group:"configuration"}],["Page.setNetworkInterceptionPatterns",{title:"Route requests",group:"route"}],["Page.setWebSocketInterceptionPatterns",{title:"Route WebSockets",group:"route"}],["Page.setViewportSize",{title:"Set viewport size",snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardDown",{title:'Key down "{key}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardUp",{title:'Key up "{key}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardInsertText",{title:'Insert "{text}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardType",{title:'Type "{text}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardPress",{title:'Press "{key}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseMove",{title:"Mouse move",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseDown",{title:"Mouse down",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseUp",{title:"Mouse up",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseClick",{title:"Click",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseWheel",{title:"Mouse wheel",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.touchscreenTap",{title:"Tap",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.pageErrors",{title:"Get page errors",group:"getter"}],["Page.pdf",{title:"PDF"}],["Page.requests",{title:"Get network requests",group:"getter"}],["Page.snapshotForAI",{internal:!0}],["Page.startJSCoverage",{title:"Start JS coverage",group:"configuration"}],["Page.stopJSCoverage",{title:"Stop JS coverage",group:"configuration"}],["Page.startCSSCoverage",{title:"Start CSS coverage",group:"configuration"}],["Page.stopCSSCoverage",{title:"Stop CSS coverage",group:"configuration"}],["Page.bringToFront",{title:"Bring to front"}],["Page.updateSubscription",{internal:!0}],["Page.perform",{internal:!0}],["Page.extract",{internal:!0}],["Frame.evalOnSelector",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.evalOnSelectorAll",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.addScriptTag",{title:"Add script tag",snapshot:!0,pausesBeforeAction:!0}],["Frame.addStyleTag",{title:"Add style tag",snapshot:!0,pausesBeforeAction:!0}],["Frame.ariaSnapshot",{title:"Aria snapshot",snapshot:!0,pausesBeforeAction:!0}],["Frame.blur",{title:"Blur",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.check",{title:"Check",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.click",{title:"Click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.content",{title:"Get content",snapshot:!0,pausesBeforeAction:!0}],["Frame.dragAndDrop",{title:"Drag and drop",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.dblclick",{title:"Double click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.dispatchEvent",{title:'Dispatch "{type}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.evaluateExpression",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.evaluateExpressionHandle",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.fill",{title:'Fill "{value}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.focus",{title:"Focus",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.frameElement",{title:"Get frame element",group:"getter"}],["Frame.resolveSelector",{internal:!0}],["Frame.highlight",{title:"Highlight element",group:"configuration"}],["Frame.getAttribute",{title:'Get attribute "{name}"',snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.goto",{title:'Navigate to "{url}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.hover",{title:"Hover",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.innerHTML",{title:"Get HTML",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.innerText",{title:"Get inner text",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.inputValue",{title:"Get input value",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isChecked",{title:"Is checked",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isDisabled",{title:"Is disabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isEnabled",{title:"Is enabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isHidden",{title:"Is hidden",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isVisible",{title:"Is visible",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isEditable",{title:"Is editable",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.press",{title:'Press "{key}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.querySelector",{title:"Query selector",snapshot:!0}],["Frame.querySelectorAll",{title:"Query selector all",snapshot:!0}],["Frame.queryCount",{title:"Query count",snapshot:!0,pausesBeforeAction:!0}],["Frame.selectOption",{title:"Select option",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.setContent",{title:"Set content",snapshot:!0,pausesBeforeAction:!0}],["Frame.setInputFiles",{title:"Set input files",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.tap",{title:"Tap",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.textContent",{title:"Get text content",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.title",{title:"Get page title",group:"getter"}],["Frame.type",{title:'Type "{text}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.uncheck",{title:"Uncheck",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.waitForTimeout",{title:"Wait for timeout",snapshot:!0}],["Frame.waitForFunction",{title:"Wait for function",snapshot:!0,pausesBeforeAction:!0}],["Frame.waitForSelector",{title:"Wait for selector",snapshot:!0}],["Frame.expect",{title:'Expect "{expression}"',snapshot:!0,pausesBeforeAction:!0}],["Worker.evaluateExpression",{title:"Evaluate"}],["Worker.evaluateExpressionHandle",{title:"Evaluate"}],["Worker.updateSubscription",{internal:!0}],["JSHandle.dispose",{internal:!0}],["ElementHandle.dispose",{internal:!0}],["JSHandle.evaluateExpression",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.evaluateExpression",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["JSHandle.evaluateExpressionHandle",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.evaluateExpressionHandle",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["JSHandle.getPropertyList",{title:"Get property list",group:"getter"}],["ElementHandle.getPropertyList",{title:"Get property list",group:"getter"}],["JSHandle.getProperty",{title:"Get JS property",group:"getter"}],["ElementHandle.getProperty",{title:"Get JS property",group:"getter"}],["JSHandle.jsonValue",{title:"Get JSON value",group:"getter"}],["ElementHandle.jsonValue",{title:"Get JSON value",group:"getter"}],["ElementHandle.evalOnSelector",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.evalOnSelectorAll",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.boundingBox",{title:"Get bounding box",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.check",{title:"Check",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.click",{title:"Click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.contentFrame",{title:"Get content frame",group:"getter"}],["ElementHandle.dblclick",{title:"Double click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.dispatchEvent",{title:"Dispatch event",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.fill",{title:'Fill "{value}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.focus",{title:"Focus",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.getAttribute",{title:"Get attribute",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.hover",{title:"Hover",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.innerHTML",{title:"Get HTML",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.innerText",{title:"Get inner text",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.inputValue",{title:"Get input value",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isChecked",{title:"Is checked",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isDisabled",{title:"Is disabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isEditable",{title:"Is editable",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isEnabled",{title:"Is enabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isHidden",{title:"Is hidden",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isVisible",{title:"Is visible",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.ownerFrame",{title:"Get owner frame",group:"getter"}],["ElementHandle.press",{title:'Press "{key}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.querySelector",{title:"Query selector",snapshot:!0}],["ElementHandle.querySelectorAll",{title:"Query selector all",snapshot:!0}],["ElementHandle.screenshot",{title:"Screenshot",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.scrollIntoViewIfNeeded",{title:"Scroll into view",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.selectOption",{title:"Select option",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.selectText",{title:"Select text",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.setInputFiles",{title:"Set input files",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.tap",{title:"Tap",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.textContent",{title:"Get text content",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.type",{title:"Type",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.uncheck",{title:"Uncheck",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.waitForElementState",{title:"Wait for state",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.waitForSelector",{title:"Wait for selector",snapshot:!0}],["Request.response",{internal:!0}],["Request.rawRequestHeaders",{internal:!0}],["Route.redirectNavigationRequest",{internal:!0}],["Route.abort",{title:"Abort request",group:"route"}],["Route.continue",{title:"Continue request",group:"route"}],["Route.fulfill",{title:"Fulfill request",group:"route"}],["WebSocketRoute.connect",{title:"Connect WebSocket to server",group:"route"}],["WebSocketRoute.ensureOpened",{internal:!0}],["WebSocketRoute.sendToPage",{title:"Send WebSocket message",group:"route"}],["WebSocketRoute.sendToServer",{title:"Send WebSocket message",group:"route"}],["WebSocketRoute.closePage",{internal:!0}],["WebSocketRoute.closeServer",{internal:!0}],["Response.body",{title:"Get response body",group:"getter"}],["Response.securityDetails",{internal:!0}],["Response.serverAddr",{internal:!0}],["Response.rawResponseHeaders",{internal:!0}],["Response.sizes",{internal:!0}],["BindingCall.reject",{internal:!0}],["BindingCall.resolve",{internal:!0}],["Dialog.accept",{title:"Accept dialog"}],["Dialog.dismiss",{title:"Dismiss dialog"}],["Tracing.tracingStart",{title:"Start tracing",group:"configuration"}],["Tracing.tracingStartChunk",{title:"Start tracing",group:"configuration"}],["Tracing.tracingGroup",{title:'Trace "{name}"'}],["Tracing.tracingGroupEnd",{title:"Group end"}],["Tracing.tracingStopChunk",{title:"Stop tracing",group:"configuration"}],["Tracing.tracingStop",{title:"Stop tracing",group:"configuration"}],["Artifact.pathAfterFinished",{internal:!0}],["Artifact.saveAs",{internal:!0}],["Artifact.saveAsStream",{internal:!0}],["Artifact.failure",{internal:!0}],["Artifact.stream",{internal:!0}],["Artifact.cancel",{internal:!0}],["Artifact.delete",{internal:!0}],["Stream.read",{internal:!0}],["Stream.close",{internal:!0}],["WritableStream.write",{internal:!0}],["WritableStream.close",{internal:!0}],["CDPSession.send",{title:"Send CDP command",group:"configuration"}],["CDPSession.detach",{title:"Detach CDP session",group:"configuration"}],["Electron.launch",{title:"Launch electron"}],["ElectronApplication.browserWindow",{internal:!0}],["ElectronApplication.evaluateExpression",{title:"Evaluate"}],["ElectronApplication.evaluateExpressionHandle",{title:"Evaluate"}],["ElectronApplication.updateSubscription",{internal:!0}],["Android.devices",{internal:!0}],["AndroidSocket.write",{internal:!0}],["AndroidSocket.close",{internal:!0}],["AndroidDevice.wait",{title:"Wait"}],["AndroidDevice.fill",{title:'Fill "{text}"'}],["AndroidDevice.tap",{title:"Tap"}],["AndroidDevice.drag",{title:"Drag"}],["AndroidDevice.fling",{title:"Fling"}],["AndroidDevice.longTap",{title:"Long tap"}],["AndroidDevice.pinchClose",{title:"Pinch close"}],["AndroidDevice.pinchOpen",{title:"Pinch open"}],["AndroidDevice.scroll",{title:"Scroll"}],["AndroidDevice.swipe",{title:"Swipe"}],["AndroidDevice.info",{internal:!0}],["AndroidDevice.screenshot",{title:"Screenshot"}],["AndroidDevice.inputType",{title:"Type"}],["AndroidDevice.inputPress",{title:"Press"}],["AndroidDevice.inputTap",{title:"Tap"}],["AndroidDevice.inputSwipe",{title:"Swipe"}],["AndroidDevice.inputDrag",{title:"Drag"}],["AndroidDevice.launchBrowser",{title:"Launch browser"}],["AndroidDevice.open",{title:"Open app"}],["AndroidDevice.shell",{title:"Execute shell command",group:"configuration"}],["AndroidDevice.installApk",{title:"Install apk"}],["AndroidDevice.push",{title:"Push"}],["AndroidDevice.connectToWebView",{title:"Connect to Web View"}],["AndroidDevice.close",{internal:!0}],["JsonPipe.send",{internal:!0}],["JsonPipe.close",{internal:!0}]]);function S_(n,e){var i;return(i=w_(n,e))==null?void 0:i.replaceAll(`
|
|
51
|
+
`,"\\n")}function w_(n,e){if(n)for(const i of e.split("|")){if(i==="url")try{const l=new URL(n[i]);return l.protocol==="data:"?l.protocol:l.protocol==="about:"?n[i]:l.pathname+l.search}catch{if(n[i]!==void 0)return n[i]}if(i==="timeNumber"&&n[i]!==void 0)return new Date(n[i]).toString();const r=__(n,i);if(r!==void 0)return r}}function __(n,e){const i=e.split(".");let r=n;for(const l of i){if(typeof r!="object"||r===null)return;r=r[l]}if(r!==void 0)return String(r)}function x_(n){var e;return(e=Z0.get(n.type+"."+n.method))==null?void 0:e.group}const $a=Symbol("context"),P0=Symbol("nextInContext"),W0=Symbol("prevByEndTime"),eb=Symbol("nextByStartTime"),Fy=Symbol("events");class OC{constructor(e,i){var l;i.forEach(o=>T_(o));const r=i.find(o=>o.origin==="library");this.traceUri=e,this.browserName=(r==null?void 0:r.browserName)||"",this.sdkLanguage=r==null?void 0:r.sdkLanguage,this.channel=r==null?void 0:r.channel,this.testIdAttributeName=r==null?void 0:r.testIdAttributeName,this.platform=(r==null?void 0:r.platform)||"",this.playwrightVersion=(l=i.find(o=>o.playwrightVersion))==null?void 0:l.playwrightVersion,this.title=(r==null?void 0:r.title)||"",this.options=(r==null?void 0:r.options)||{},this.actions=E_(i),this.pages=[].concat(...i.map(o=>o.pages)),this.wallTime=i.map(o=>o.wallTime).reduce((o,u)=>Math.min(o||Number.MAX_VALUE,u),Number.MAX_VALUE),this.startTime=i.map(o=>o.startTime).reduce((o,u)=>Math.min(o,u),Number.MAX_VALUE),this.endTime=i.map(o=>o.endTime).reduce((o,u)=>Math.max(o,u),Number.MIN_VALUE),this.events=[].concat(...i.map(o=>o.events)),this.stdio=[].concat(...i.map(o=>o.stdio)),this.errors=[].concat(...i.map(o=>o.errors)),this.hasSource=i.some(o=>o.hasSource),this.hasStepData=i.some(o=>o.origin==="testRunner"),this.resources=[...i.map(o=>o.resources)].flat(),this.attachments=this.actions.flatMap(o=>{var u;return((u=o.attachments)==null?void 0:u.map(f=>({...f,callId:o.callId,traceUri:e})))??[]}),this.visibleAttachments=this.attachments.filter(o=>!o.name.startsWith("_")),this.events.sort((o,u)=>o.time-u.time),this.resources.sort((o,u)=>o._monotonicTime-u._monotonicTime),this.errorDescriptors=this.hasStepData?this._errorDescriptorsFromTestRunner():this._errorDescriptorsFromActions(),this.sources=L_(this.actions,this.errorDescriptors),this.actionCounters=new Map;for(const o of this.actions)o.group=o.group??x_({type:o.class,method:o.method}),o.group&&this.actionCounters.set(o.group,1+(this.actionCounters.get(o.group)||0))}createRelativeUrl(e){const i=new URL("http://localhost/"+e);return i.searchParams.set("trace",this.traceUri),i.toString().substring(17)}failedAction(){return this.actions.findLast(e=>e.error)}filteredActions(e){const i=new Set(e);return this.actions.filter(r=>!r.group||i.has(r.group))}_errorDescriptorsFromActions(){var i;const e=[];for(const r of this.actions||[])(i=r.error)!=null&&i.message&&e.push({action:r,stack:r.stack,message:r.error.message});return e}_errorDescriptorsFromTestRunner(){return this.errors.filter(e=>!!e.message).map((e,i)=>({stack:e.stack,message:e.message}))}}function T_(n){for(const i of n.pages)i[$a]=n;for(let i=0;i<n.actions.length;++i){const r=n.actions[i];r[$a]=n}let e;for(let i=n.actions.length-1;i>=0;i--){const r=n.actions[i];r[P0]=e,r.class!=="Route"&&(e=r)}for(const i of n.events)i[$a]=n;for(const i of n.resources)i[$a]=n}function E_(n){const e=[],i=A_(n);e.push(...i),e.sort((r,l)=>l.parentId===r.callId?1:r.parentId===l.callId?-1:r.endTime-l.endTime);for(let r=1;r<e.length;++r)e[r][W0]=e[r-1];e.sort((r,l)=>l.parentId===r.callId?-1:r.parentId===l.callId?1:r.startTime-l.startTime);for(let r=0;r+1<e.length;++r)e[r][eb]=e[r+1];return e}let Qy=0;function A_(n){const e=new Map,i=n.filter(u=>u.origin==="library"),r=n.filter(u=>u.origin==="testRunner");if(!r.length||!i.length)return n.map(u=>u.actions.map(f=>({...f,context:u}))).flat();for(const u of i)for(const f of u.actions)e.set(f.stepId||`tmp-step@${++Qy}`,{...f,context:u});const l=C_(r,e);l&&N_(i,l);const o=new Map;for(const u of r)for(const f of u.actions){const d=f.stepId&&e.get(f.stepId);if(d){o.set(f.callId,d.callId),f.error&&(d.error=f.error),f.attachments&&(d.attachments=f.attachments),f.annotations&&(d.annotations=f.annotations),f.parentId&&(d.parentId=o.get(f.parentId)??f.parentId),f.group&&(d.group=f.group),d.startTime=f.startTime,d.endTime=f.endTime;continue}f.parentId&&(f.parentId=o.get(f.parentId)??f.parentId),e.set(f.stepId||`tmp-step@${++Qy}`,{...f,context:u})}return[...e.values()]}function N_(n,e){for(const i of n){i.startTime+=e,i.endTime+=e;for(const r of i.actions)r.startTime&&(r.startTime+=e),r.endTime&&(r.endTime+=e);for(const r of i.events)r.time+=e;for(const r of i.stdio)r.timestamp+=e;for(const r of i.pages)for(const l of r.screencastFrames)l.timestamp+=e;for(const r of i.resources)r._monotonicTime&&(r._monotonicTime+=e)}}function C_(n,e){for(const i of n)for(const r of i.actions){if(!r.startTime)continue;const l=r.stepId?e.get(r.stepId):void 0;if(l)return r.startTime-l.startTime}return 0}function k_(n){const e=new Map;for(const r of n)e.set(r.callId,{id:r.callId,parent:void 0,children:[],action:r});const i={id:"",parent:void 0,children:[]};for(const r of e.values()){const l=r.action.parentId&&e.get(r.action.parentId)||i;l.children.push(r),r.parent=l}return{rootItem:i,itemMap:e}}function tb(n){return n[$a]}function M_(n){return n[P0]}function Jy(n){return n[W0]}function Zy(n){return n[eb]}function O_(n){let e=0,i=0;for(const r of j_(n)){if(r.type==="console"){const l=r.messageType;l==="warning"?++i:l==="error"&&++e}r.type==="event"&&r.method==="pageError"&&++e}return{errors:e,warnings:i}}function j_(n){let e=n[Fy];if(e)return e;const i=M_(n);return e=tb(n).events.filter(r=>r.time>=n.startTime&&(!i||r.time<i.startTime)),n[Fy]=e,e}function L_(n,e){var r;const i=new Map;for(const l of n)for(const o of l.stack||[]){let u=i.get(o.file);u||(u={errors:[],content:void 0},i.set(o.file,u))}for(const l of e){const{action:o,stack:u,message:f}=l;!o||!u||(r=i.get(u[0].file))==null||r.errors.push({line:u[0].line||0,message:f})}return i}const R_=50,nc=({sidebarSize:n,sidebarHidden:e=!1,sidebarIsFirst:i=!1,orientation:r="vertical",minSidebarSize:l=R_,settingName:o,sidebar:u,main:f})=>{const d=Math.max(l,n)*window.devicePixelRatio,[g,y]=on(o?o+"."+r+":size":void 0,d),[m,S]=on(o?o+"."+r+":size":void 0,d),[w,E]=U.useState(null),[_,T]=gs();let N;r==="vertical"?(N=m/window.devicePixelRatio,_&&_.height<N&&(N=_.height-10)):(N=g/window.devicePixelRatio,_&&_.width<N&&(N=_.width-10)),document.body.style.userSelect=w?"none":"inherit";let M={};return r==="vertical"?i?M={top:w?0:N-4,bottom:w?0:void 0,height:w?"initial":8}:M={bottom:w?0:N-4,top:w?0:void 0,height:w?"initial":8}:i?M={left:w?0:N-4,right:w?0:void 0,width:w?"initial":8}:M={right:w?0:N-4,left:w?0:void 0,width:w?"initial":8},v.jsxs("div",{className:Fe("split-view",r,i&&"sidebar-first"),ref:T,children:[v.jsx("div",{className:"split-view-main",children:f}),!e&&v.jsx("div",{style:{flexBasis:N},className:"split-view-sidebar",children:u}),!e&&v.jsx("div",{style:M,className:"split-view-resizer",onMouseDown:$=>E({offset:r==="vertical"?$.clientY:$.clientX,size:N}),onMouseUp:()=>E(null),onMouseMove:$=>{if(!$.buttons)E(null);else if(w){const D=(r==="vertical"?$.clientY:$.clientX)-w.offset,K=i?w.size+D:w.size-D,q=$.target.parentElement.getBoundingClientRect(),j=Math.min(Math.max(l,K),(r==="vertical"?q.height:q.width)-l);r==="vertical"?S(j*window.devicePixelRatio):y(j*window.devicePixelRatio)}}})]})},et=function(n,e,i){return n>=e&&n<=i};function Rt(n){return et(n,48,57)}function Py(n){return Rt(n)||et(n,65,70)||et(n,97,102)}function D_(n){return et(n,65,90)}function B_(n){return et(n,97,122)}function z_(n){return D_(n)||B_(n)}function U_(n){return n>=128}function $o(n){return z_(n)||U_(n)||n===95}function Wy(n){return $o(n)||Rt(n)||n===45}function H_(n){return et(n,0,8)||n===11||et(n,14,31)||n===127}function Io(n){return n===10}function Qn(n){return Io(n)||n===9||n===32}const q_=1114111;class Fh extends Error{constructor(e){super(e),this.name="InvalidCharacterError"}}function $_(n){const e=[];for(let i=0;i<n.length;i++){let r=n.charCodeAt(i);if(r===13&&n.charCodeAt(i+1)===10&&(r=10,i++),(r===13||r===12)&&(r=10),r===0&&(r=65533),et(r,55296,56319)&&et(n.charCodeAt(i+1),56320,57343)){const l=r-55296,o=n.charCodeAt(i+1)-56320;r=Math.pow(2,16)+l*Math.pow(2,10)+o,i++}e.push(r)}return e}function st(n){if(n<=65535)return String.fromCharCode(n);n-=Math.pow(2,16);const e=Math.floor(n/Math.pow(2,10))+55296,i=n%Math.pow(2,10)+56320;return String.fromCharCode(e)+String.fromCharCode(i)}function nb(n){const e=$_(n);let i=-1;const r=[];let l;const o=function(V){return V>=e.length?-1:e[V]},u=function(V){if(V===void 0&&(V=1),V>3)throw"Spec Error: no more than three codepoints of lookahead.";return o(i+V)},f=function(V){return V===void 0&&(V=1),i+=V,l=o(i),!0},d=function(){return i-=1,!0},g=function(V){return V===void 0&&(V=l),V===-1},y=function(){if(m(),f(),Qn(l)){for(;Qn(u());)f();return new ic}else{if(l===34)return E();if(l===35)if(Wy(u())||N(u(1),u(2))){const V=new gb("");return $(u(1),u(2),u(3))&&(V.type="id"),V.value=Q(),V}else return new dt(l);else return l===36?u()===61?(f(),new K_):new dt(l):l===39?E():l===40?new hb:l===41?new Qh:l===42?u()===61?(f(),new Y_):new dt(l):l===43?K()?(d(),S()):new dt(l):l===44?new ob:l===45?K()?(d(),S()):u(1)===45&&u(2)===62?(f(2),new rb):I()?(d(),w()):new dt(l):l===46?K()?(d(),S()):new dt(l):l===58?new ab:l===59?new lb:l===60?u(1)===33&&u(2)===45&&u(3)===45?(f(3),new sb):new dt(l):l===64?$(u(1),u(2),u(3))?new pb(Q()):new dt(l):l===91?new fb:l===92?M()?(d(),w()):new dt(l):l===93?new kh:l===94?u()===61?(f(),new G_):new dt(l):l===123?new cb:l===124?u()===61?(f(),new V_):u()===124?(f(),new db):new dt(l):l===125?new ub:l===126?u()===61?(f(),new I_):new dt(l):Rt(l)?(d(),S()):$o(l)?(d(),w()):g()?new Go:new dt(l)}},m=function(){for(;u(1)===47&&u(2)===42;)for(f(2);;)if(f(),l===42&&u()===47){f();break}else if(g())return},S=function(){const V=q();if($(u(1),u(2),u(3))){const J=new X_;return J.value=V.value,J.repr=V.repr,J.type=V.type,J.unit=Q(),J}else if(u()===37){f();const J=new bb;return J.value=V.value,J.repr=V.repr,J}else{const J=new yb;return J.value=V.value,J.repr=V.repr,J.type=V.type,J}},w=function(){const V=Q();if(V.toLowerCase()==="url"&&u()===40){for(f();Qn(u(1))&&Qn(u(2));)f();return u()===34||u()===39?new Xa(V):Qn(u())&&(u(2)===34||u(2)===39)?new Xa(V):_()}else return u()===40?(f(),new Xa(V)):new Jh(V)},E=function(V){V===void 0&&(V=l);let J="";for(;f();){if(l===V||g())return new Zh(J);if(Io(l))return d(),new ib;l===92?g(u())||(Io(u())?f():J+=st(T())):J+=st(l)}throw new Error("Internal error")},_=function(){const V=new mb("");for(;Qn(u());)f();if(g(u()))return V;for(;f();){if(l===41||g())return V;if(Qn(l)){for(;Qn(u());)f();return u()===41||g(u())?(f(),V):(ne(),new Vo)}else{if(l===34||l===39||l===40||H_(l))return ne(),new Vo;if(l===92)if(M())V.value+=st(T());else return ne(),new Vo;else V.value+=st(l)}}throw new Error("Internal error")},T=function(){if(f(),Py(l)){const V=[l];for(let W=0;W<5&&Py(u());W++)f(),V.push(l);Qn(u())&&f();let J=parseInt(V.map(function(W){return String.fromCharCode(W)}).join(""),16);return J>q_&&(J=65533),J}else return g()?65533:l},N=function(V,J){return!(V!==92||Io(J))},M=function(){return N(l,u())},$=function(V,J,W){return V===45?$o(J)||J===45||N(J,W):$o(V)?!0:V===92?N(V,J):!1},I=function(){return $(l,u(1),u(2))},D=function(V,J,W){return V===43||V===45?!!(Rt(J)||J===46&&Rt(W)):V===46?!!Rt(J):!!Rt(V)},K=function(){return D(l,u(1),u(2))},Q=function(){let V="";for(;f();)if(Wy(l))V+=st(l);else if(M())V+=st(T());else return d(),V;throw new Error("Internal parse error")},q=function(){let V="",J="integer";for((u()===43||u()===45)&&(f(),V+=st(l));Rt(u());)f(),V+=st(l);if(u(1)===46&&Rt(u(2)))for(f(),V+=st(l),f(),V+=st(l),J="number";Rt(u());)f(),V+=st(l);const W=u(1),Ae=u(2),z=u(3);if((W===69||W===101)&&Rt(Ae))for(f(),V+=st(l),f(),V+=st(l),J="number";Rt(u());)f(),V+=st(l);else if((W===69||W===101)&&(Ae===43||Ae===45)&&Rt(z))for(f(),V+=st(l),f(),V+=st(l),f(),V+=st(l),J="number";Rt(u());)f(),V+=st(l);const Z=j(V);return{type:J,value:Z,repr:V}},j=function(V){return+V},ne=function(){for(;f();){if(l===41||g())return;M()&&T()}};let le=0;for(;!g(u());)if(r.push(y()),le++,le>e.length*2)throw new Error("I'm infinite-looping!");return r}class Qe{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class ib extends Qe{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class Vo extends Qe{constructor(){super(...arguments),this.tokenType="BADURL"}}class ic extends Qe{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class sb extends Qe{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return"<!--"}}class rb extends Qe{constructor(){super(...arguments),this.tokenType="CDC"}toSource(){return"-->"}}class ab extends Qe{constructor(){super(...arguments),this.tokenType=":"}}class lb extends Qe{constructor(){super(...arguments),this.tokenType=";"}}class ob extends Qe{constructor(){super(...arguments),this.tokenType=","}}class Ar extends Qe{constructor(){super(...arguments),this.value="",this.mirror=""}}class cb extends Ar{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class ub extends Ar{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class fb extends Ar{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class kh extends Ar{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class hb extends Ar{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class Qh extends Ar{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class I_ extends Qe{constructor(){super(...arguments),this.tokenType="~="}}class V_ extends Qe{constructor(){super(...arguments),this.tokenType="|="}}class G_ extends Qe{constructor(){super(...arguments),this.tokenType="^="}}class K_ extends Qe{constructor(){super(...arguments),this.tokenType="$="}}class Y_ extends Qe{constructor(){super(...arguments),this.tokenType="*="}}class db extends Qe{constructor(){super(...arguments),this.tokenType="||"}}class Go extends Qe{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class dt extends Qe{constructor(e){super(),this.tokenType="DELIM",this.value="",this.value=st(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==="\\"?`\\
|
|
52
52
|
`:this.value}}class Nr extends Qe{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 Jh extends Nr{constructor(e){super(),this.tokenType="IDENT",this.value=e}toString(){return"IDENT("+this.value+")"}toSource(){return ol(this.value)}}class Xa extends Nr{constructor(e){super(),this.tokenType="FUNCTION",this.value=e,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return ol(this.value)+"("}}class pb extends Nr{constructor(e){super(),this.tokenType="AT-KEYWORD",this.value=e}toString(){return"AT("+this.value+")"}toSource(){return"@"+ol(this.value)}}class gb extends Nr{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"?"#"+ol(this.value):"#"+F_(this.value)}}class Zh extends Nr{constructor(e){super(),this.tokenType="STRING",this.value=e}toString(){return'"'+vb(this.value)+'"'}}class mb extends Nr{constructor(e){super(),this.tokenType="URL",this.value=e}toString(){return"URL("+this.value+")"}toSource(){return'url("'+vb(this.value)+'")'}}class yb extends Qe{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 bb extends Qe{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 X_ extends Qe{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 i=ol(this.unit);return i[0].toLowerCase()==="e"&&(i[1]==="-"||et(i.charCodeAt(1),48,57))&&(i="\\65 "+i.slice(1,i.length)),e+i}}function ol(n){n=""+n;let e="";const i=n.charCodeAt(0);for(let r=0;r<n.length;r++){const l=n.charCodeAt(r);if(l===0)throw new Fh("Invalid character: the input contains U+0000.");et(l,1,31)||l===127||r===0&&et(l,48,57)||r===1&&et(l,48,57)&&i===45?e+="\\"+l.toString(16)+" ":l>=128||l===45||l===95||et(l,48,57)||et(l,65,90)||et(l,97,122)?e+=n[r]:e+="\\"+n[r]}return e}function F_(n){n=""+n;let e="";for(let i=0;i<n.length;i++){const r=n.charCodeAt(i);if(r===0)throw new Fh("Invalid character: the input contains U+0000.");r>=128||r===45||r===95||et(r,48,57)||et(r,65,90)||et(r,97,122)?e+=n[i]:e+="\\"+r.toString(16)+" "}return e}function vb(n){n=""+n;let e="";for(let i=0;i<n.length;i++){const r=n.charCodeAt(i);if(r===0)throw new Fh("Invalid character: the input contains U+0000.");et(r,1,31)||r===127?e+="\\"+r.toString(16)+" ":r===34||r===92?e+="\\"+n[i]:e+=n[i]}return e}class Dt extends Error{}function Q_(n,e){let i;try{i=nb(n),i[i.length-1]instanceof Go||i.push(new Go)}catch(j){const ne=j.message+` while parsing css selector "${n}". Did you mean to CSS.escape it?`,le=(j.stack||"").indexOf(j.message);throw le!==-1&&(j.stack=j.stack.substring(0,le)+ne+j.stack.substring(le+j.message.length)),j.message=ne,j}const r=i.find(j=>j instanceof pb||j instanceof ib||j instanceof Vo||j instanceof db||j instanceof sb||j instanceof rb||j instanceof lb||j instanceof cb||j instanceof ub||j instanceof mb||j instanceof bb);if(r)throw new Dt(`Unsupported token "${r.toSource()}" while parsing css selector "${n}". Did you mean to CSS.escape it?`);let l=0;const o=new Set;function u(){return new Dt(`Unexpected token "${i[l].toSource()}" while parsing css selector "${n}". Did you mean to CSS.escape it?`)}function f(){for(;i[l]instanceof ic;)l++}function d(j=l){return i[j]instanceof Jh}function g(j=l){return i[j]instanceof Zh}function y(j=l){return i[j]instanceof yb}function m(j=l){return i[j]instanceof ob}function S(j=l){return i[j]instanceof hb}function w(j=l){return i[j]instanceof Qh}function E(j=l){return i[j]instanceof Xa}function _(j=l){return i[j]instanceof dt&&i[j].value==="*"}function T(j=l){return i[j]instanceof Go}function N(j=l){return i[j]instanceof dt&&[">","+","~"].includes(i[j].value)}function M(j=l){return m(j)||w(j)||T(j)||N(j)||i[j]instanceof ic}function $(){const j=[I()];for(;f(),!!m();)l++,j.push(I());return j}function I(){return f(),y()||g()?i[l++].value:D()}function D(){const j={simples:[]};for(f(),N()?j.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):j.simples.push({selector:K(),combinator:""});;){if(f(),N())j.simples[j.simples.length-1].combinator=i[l++].value,f();else if(M())break;j.simples.push({combinator:"",selector:K()})}return j}function K(){let j="";const ne=[];for(;!M();)if(d()||_())j+=i[l++].toSource();else if(i[l]instanceof gb)j+=i[l++].toSource();else if(i[l]instanceof dt&&i[l].value===".")if(l++,d())j+="."+i[l++].toSource();else throw u();else if(i[l]instanceof ab)if(l++,d())if(!e.has(i[l].value.toLowerCase()))j+=":"+i[l++].toSource();else{const le=i[l++].value.toLowerCase();ne.push({name:le,args:[]}),o.add(le)}else if(E()){const le=i[l++].value.toLowerCase();if(e.has(le)?(ne.push({name:le,args:$()}),o.add(le)):j+=`:${le}(${Q()})`,f(),!w())throw u();l++}else throw u();else if(i[l]instanceof fb){for(j+="[",l++;!(i[l]instanceof kh)&&!T();)j+=i[l++].toSource();if(!(i[l]instanceof kh))throw u();j+="]",l++}else throw u();if(!j&&!ne.length)throw u();return{css:j||void 0,functions:ne}}function Q(){let j="",ne=1;for(;!T()&&((S()||E())&&ne++,w()&&ne--,!!ne);)j+=i[l++].toSource();return j}const q=$();if(!T())throw u();if(q.some(j=>typeof j!="object"||!("simples"in j)))throw new Dt(`Error while parsing css selector "${n}". Did you mean to CSS.escape it?`);return{selector:q,names:Array.from(o)}}const Mh=new Set(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),J_=new Set(["left-of","right-of","above","below","near"]),Sb=new Set(["not","is","where","has","scope","light","visible","text","text-matches","text-is","has-text","above","below","right-of","left-of","near","nth-match"]);function cl(n){const e=W_(n),i=[];for(const r of e.parts){if(r.name==="css"||r.name==="css:light"){r.name==="css:light"&&(r.body=":light("+r.body+")");const l=Q_(r.body,Sb);i.push({name:"css",body:l.selector,source:r.body});continue}if(Mh.has(r.name)){let l,o;try{const g=JSON.parse("["+r.body+"]");if(!Array.isArray(g)||g.length<1||g.length>2||typeof g[0]!="string")throw new Dt(`Malformed selector: ${r.name}=`+r.body);if(l=g[0],g.length===2){if(typeof g[1]!="number"||!J_.has(r.name))throw new Dt(`Malformed selector: ${r.name}=`+r.body);o=g[1]}}catch{throw new Dt(`Malformed selector: ${r.name}=`+r.body)}const u={name:r.name,source:r.body,body:{parsed:cl(l),distance:o}},f=[...u.body.parsed.parts].reverse().find(g=>g.name==="internal:control"&&g.body==="enter-frame"),d=f?u.body.parsed.parts.indexOf(f):-1;d!==-1&&Z_(u.body.parsed.parts.slice(0,d+1),i.slice(0,d+1))&&u.body.parsed.parts.splice(0,d+1),i.push(u);continue}i.push({...r,source:r.body})}if(Mh.has(i[0].name))throw new Dt(`"${i[0].name}" selector cannot be first`);return{capture:e.capture,parts:i}}function Z_(n,e){return An({parts:n})===An({parts:e})}function An(n,e){return typeof n=="string"?n:n.parts.map((i,r)=>{let l=!0;!e&&r!==n.capture&&(i.name==="css"||i.name==="xpath"&&i.source.startsWith("//")||i.source.startsWith(".."))&&(l=!1);const o=l?i.name+"=":"";return`${r===n.capture?"*":""}${o}${i.source}`}).join(" >> ")}function P_(n,e){const i=(r,l)=>{for(const o of r.parts)e(o,l),Mh.has(o.name)&&i(o.body.parsed,!0)};i(n,!1)}function W_(n){let e=0,i,r=0;const l={parts:[]},o=()=>{const f=n.substring(r,e).trim(),d=f.indexOf("=");let g,y;d!==-1&&f.substring(0,d).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(g=f.substring(0,d).trim(),y=f.substring(d+1)):f.length>1&&f[0]==='"'&&f[f.length-1]==='"'||f.length>1&&f[0]==="'"&&f[f.length-1]==="'"?(g="text",y=f):/^\(*\/\//.test(f)||f.startsWith("..")?(g="xpath",y=f):(g="css",y=f);let m=!1;if(g[0]==="*"&&(m=!0,g=g.substring(1)),l.parts.push({name:g,body:y}),m){if(l.capture!==void 0)throw new Dt("Only one of the selectors can capture using * modifier");l.capture=l.parts.length-1}};if(!n.includes(">>"))return e=n.length,o(),l;const u=()=>{const d=n.substring(r,e).match(/^\s*text\s*=(.*)$/);return!!d&&!!d[1]};for(;e<n.length;){const f=n[e];f==="\\"&&e+1<n.length?e+=2:f===i?(i=void 0,e++):!i&&(f==='"'||f==="'"||f==="`")&&!u()?(i=f,e++):!i&&f===">"&&n[e+1]===">"?(o(),e+=2,r=e):e++}return o(),l}function ds(n,e){let i=0,r=n.length===0;const l=()=>n[i]||"",o=()=>{const T=l();return++i,r=i>=n.length,T},u=T=>{throw r?new Dt(`Unexpected end of selector while parsing selector \`${n}\``):new Dt(`Error while parsing selector \`${n}\` - unexpected symbol "${l()}" at position ${i}`+(T?" during "+T:""))};function f(){for(;!r&&/\s/.test(l());)o()}function d(T){return T>=""||T>="0"&&T<="9"||T>="A"&&T<="Z"||T>="a"&&T<="z"||T>="0"&&T<="9"||T==="_"||T==="-"}function g(){let T="";for(f();!r&&d(l());)T+=o();return T}function y(T){let N=o();for(N!==T&&u("parsing quoted string");!r&&l()!==T;)l()==="\\"&&o(),N+=o();return l()!==T&&u("parsing quoted string"),N+=o(),N}function m(){o()!=="/"&&u("parsing regular expression");let T="",N=!1;for(;!r;){if(l()==="\\")T+=o(),r&&u("parsing regular expression");else if(N&&l()==="]")N=!1;else if(!N&&l()==="[")N=!0;else if(!N&&l()==="/")break;T+=o()}o()!=="/"&&u("parsing regular expression");let M="";for(;!r&&l().match(/[dgimsuy]/);)M+=o();try{return new RegExp(T,M)}catch($){throw new Dt(`Error while parsing selector \`${n}\`: ${$.message}`)}}function S(){let T="";return f(),l()==="'"||l()==='"'?T=y(l()).slice(1,-1):T=g(),T||u("parsing property path"),T}function w(){f();let T="";return r||(T+=o()),!r&&T!=="="&&(T+=o()),["=","*=","^=","$=","|=","~="].includes(T)||u("parsing operator"),T}function E(){o();const T=[];for(T.push(S()),f();l()===".";)o(),T.push(S()),f();if(l()==="]")return o(),{name:T.join("."),jsonPath:T,op:"<truthy>",value:null,caseSensitive:!1};const N=w();let M,$=!0;if(f(),l()==="/"){if(N!=="=")throw new Dt(`Error while parsing selector \`${n}\` - cannot use ${N} in attribute with regular expression`);M=m()}else if(l()==="'"||l()==='"')M=y(l()).slice(1,-1),f(),l()==="i"||l()==="I"?($=!1,o()):(l()==="s"||l()==="S")&&($=!0,o());else{for(M="";!r&&(d(l())||l()==="+"||l()===".");)M+=o();M==="true"?M=!0:M==="false"?M=!1:e||(M=+M,Number.isNaN(M)&&u("parsing attribute value"))}if(f(),l()!=="]"&&u("parsing attribute value"),o(),N!=="="&&typeof M!="string")throw new Dt(`Error while parsing selector \`${n}\` - cannot use ${N} in attribute with non-string matching value - ${M}`);return{name:T.join("."),jsonPath:T,op:N,value:M,caseSensitive:$}}const _={name:"",attributes:[]};for(_.name=g(),f();l()==="[";)_.attributes.push(E()),f();if(r||u(void 0),!_.name&&!_.attributes.length)throw new Dt(`Error while parsing selector \`${n}\` - selector cannot be empty`);return _}function gc(n,e="'"){const i=JSON.stringify(n),r=i.substring(1,i.length-1).replace(/\\"/g,'"');if(e==="'")return e+r.replace(/[']/g,"\\'")+e;if(e==='"')return e+r.replace(/["]/g,'\\"')+e;if(e==="`")return e+r.replace(/[`]/g,"\\`")+e;throw new Error("Invalid escape char")}function sc(n){return n.charAt(0).toUpperCase()+n.substring(1)}function wb(n){return n.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function fr(n){return`"${n.replace(/["\\]/g,e=>"\\"+e)}"`}let ss;function ex(){ss=new Map}function At(n){let e=ss==null?void 0:ss.get(n);return e===void 0&&(e=n.replace(/[\u200b\u00ad]/g,"").trim().replace(/\s+/g," "),ss==null||ss.set(n,e)),e}function mc(n){return n.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function _b(n){return n.unicode||n.unicodeSets?String(n):String(n).replace(/(^|[^\\])(\\\\)*(["'`])/g,"$1$2\\$3").replace(/>>/g,"\\>\\>")}function Bt(n,e){return typeof n!="string"?_b(n):`${JSON.stringify(n)}${e?"s":"i"}`}function Tt(n,e){return typeof n!="string"?_b(n):`"${n.replace(/\\/g,"\\\\").replace(/["]/g,'\\"')}"${e?"s":"i"}`}function tx(n,e,i=""){if(n.length<=e)return n;const r=[...n];return r.length>e?r.slice(0,e-i.length).join("")+i:r.join("")}function e0(n,e){return tx(n,e,"…")}function rc(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function nx(n,e){const i=n.length,r=e.length;let l=0,o=0;const u=Array(i+1).fill(null).map(()=>Array(r+1).fill(0));for(let f=1;f<=i;f++)for(let d=1;d<=r;d++)n[f-1]===e[d-1]&&(u[f][d]=u[f-1][d-1]+1,u[f][d]>l&&(l=u[f][d],o=f));return n.slice(o-l,o)}function ix(n,e){try{const i=cl(e),r=sx(i);return r||os(new Tb[n],i,!1,1)[0]}catch{return e}}function sx(n){const e=n.parts[n.parts.length-1];if((e==null?void 0:e.name)==="internal:describe"){const i=JSON.parse(e.body);if(typeof i=="string")return i}}function Mi(n,e,i=!1){return xb(n,e,i,1)[0]}function xb(n,e,i=!1,r=20,l){try{return os(new Tb[n](l),cl(e),i,r)}catch{return[e]}}function os(n,e,i=!1,r=20){const l=[...e.parts],o=[];let u=i?"frame-locator":"page";for(let f=0;f<l.length;f++){const d=l[f],g=u;if(u="locator",d.name==="internal:describe")continue;if(d.name==="nth"){d.body==="0"?o.push([n.generateLocator(g,"first",""),n.generateLocator(g,"nth","0")]):d.body==="-1"?o.push([n.generateLocator(g,"last",""),n.generateLocator(g,"nth","-1")]):o.push([n.generateLocator(g,"nth",d.body)]);continue}if(d.name==="visible"){o.push([n.generateLocator(g,"visible",d.body),n.generateLocator(g,"default",`visible=${d.body}`)]);continue}if(d.name==="internal:text"){const{exact:E,text:_}=Ra(d.body);o.push([n.generateLocator(g,"text",_,{exact:E})]);continue}if(d.name==="internal:has-text"){const{exact:E,text:_}=Ra(d.body);if(!E){o.push([n.generateLocator(g,"has-text",_,{exact:E})]);continue}}if(d.name==="internal:has-not-text"){const{exact:E,text:_}=Ra(d.body);if(!E){o.push([n.generateLocator(g,"has-not-text",_,{exact:E})]);continue}}if(d.name==="internal:has"){const E=os(n,d.body.parsed,!1,r);o.push(E.map(_=>n.generateLocator(g,"has",_)));continue}if(d.name==="internal:has-not"){const E=os(n,d.body.parsed,!1,r);o.push(E.map(_=>n.generateLocator(g,"hasNot",_)));continue}if(d.name==="internal:and"){const E=os(n,d.body.parsed,!1,r);o.push(E.map(_=>n.generateLocator(g,"and",_)));continue}if(d.name==="internal:or"){const E=os(n,d.body.parsed,!1,r);o.push(E.map(_=>n.generateLocator(g,"or",_)));continue}if(d.name==="internal:chain"){const E=os(n,d.body.parsed,!1,r);o.push(E.map(_=>n.generateLocator(g,"chain",_)));continue}if(d.name==="internal:label"){const{exact:E,text:_}=Ra(d.body);o.push([n.generateLocator(g,"label",_,{exact:E})]);continue}if(d.name==="internal:role"){const E=ds(d.body,!0),_={attrs:[]};for(const T of E.attributes)T.name==="name"?(_.exact=T.caseSensitive,_.name=T.value):(T.name==="level"&&typeof T.value=="string"&&(T.value=+T.value),_.attrs.push({name:T.name==="include-hidden"?"includeHidden":T.name,value:T.value}));o.push([n.generateLocator(g,"role",E.name,_)]);continue}if(d.name==="internal:testid"){const E=ds(d.body,!0),{value:_}=E.attributes[0];o.push([n.generateLocator(g,"test-id",_)]);continue}if(d.name==="internal:attr"){const E=ds(d.body,!0),{name:_,value:T,caseSensitive:N}=E.attributes[0],M=T,$=!!N;if(_==="placeholder"){o.push([n.generateLocator(g,"placeholder",M,{exact:$})]);continue}if(_==="alt"){o.push([n.generateLocator(g,"alt",M,{exact:$})]);continue}if(_==="title"){o.push([n.generateLocator(g,"title",M,{exact:$})]);continue}}if(d.name==="internal:control"&&d.body==="enter-frame"){const E=o[o.length-1],_=l[f-1],T=E.map(N=>n.chainLocators([N,n.generateLocator(g,"frame","")]));["xpath","css"].includes(_.name)&&T.push(n.generateLocator(g,"frame-locator",An({parts:[_]})),n.generateLocator(g,"frame-locator",An({parts:[_]},!0))),E.splice(0,E.length,...T),u="frame-locator";continue}const y=l[f+1],m=An({parts:[d]}),S=n.generateLocator(g,"default",m);if(y&&["internal:has-text","internal:has-not-text"].includes(y.name)){const{exact:E,text:_}=Ra(y.body);if(!E){const T=n.generateLocator("locator",y.name==="internal:has-text"?"has-text":"has-not-text",_,{exact:E}),N={};y.name==="internal:has-text"?N.hasText=_:N.hasNotText=_;const M=n.generateLocator(g,"default",m,N);o.push([n.chainLocators([S,T]),M]),f++;continue}}let w;if(["xpath","css"].includes(d.name)){const E=An({parts:[d]},!0);w=n.generateLocator(g,"default",E)}o.push([S,w].filter(Boolean))}return rx(n,o,r)}function rx(n,e,i){const r=e.map(()=>""),l=[],o=u=>{if(u===e.length)return l.push(n.chainLocators(r)),l.length<i;for(const f of e[u])if(r[u]=f,!o(u+1))return!1;return!0};return o(0),l}function Ra(n){let e=!1;const i=n.match(/^\/(.*)\/([igm]*)$/);return i?{text:new RegExp(i[1],i[2])}:(n.endsWith('"')?(n=JSON.parse(n),e=!0):n.endsWith('"s')?(n=JSON.parse(n.substring(0,n.length-1)),e=!0):n.endsWith('"i')&&(n=JSON.parse(n.substring(0,n.length-1)),e=!1),{exact:e,text:n})}class ax{constructor(e){this.preferredQuote=e}generateLocator(e,i,r,l={}){switch(i){case"default":return l.hasText!==void 0?`locator(${this.quote(r)}, { hasText: ${this.toHasText(l.hasText)} })`:l.hasNotText!==void 0?`locator(${this.quote(r)}, { hasNotText: ${this.toHasText(l.hasNotText)} })`:`locator(${this.quote(r)})`;case"frame-locator":return`frameLocator(${this.quote(r)})`;case"frame":return"contentFrame()";case"nth":return`nth(${r})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter({ visible: ${r==="true"?"true":"false"} })`;case"role":const o=[];pt(l.name)?o.push(`name: ${this.regexToSourceString(l.name)}`):typeof l.name=="string"&&(o.push(`name: ${this.quote(l.name)}`),l.exact&&o.push("exact: true"));for(const{name:f,value:d}of l.attrs)o.push(`${f}: ${typeof d=="string"?this.quote(d):d}`);const u=o.length?`, { ${o.join(", ")} }`:"";return`getByRole(${this.quote(r)}${u})`;case"has-text":return`filter({ hasText: ${this.toHasText(r)} })`;case"has-not-text":return`filter({ hasNotText: ${this.toHasText(r)} })`;case"has":return`filter({ has: ${r} })`;case"hasNot":return`filter({ hasNot: ${r} })`;case"and":return`and(${r})`;case"or":return`or(${r})`;case"chain":return`locator(${r})`;case"test-id":return`getByTestId(${this.toTestIdValue(r)})`;case"text":return this.toCallWithExact("getByText",r,!!l.exact);case"alt":return this.toCallWithExact("getByAltText",r,!!l.exact);case"placeholder":return this.toCallWithExact("getByPlaceholder",r,!!l.exact);case"label":return this.toCallWithExact("getByLabel",r,!!l.exact);case"title":return this.toCallWithExact("getByTitle",r,!!l.exact);default:throw new Error("Unknown selector kind "+i)}}chainLocators(e){return e.join(".")}regexToSourceString(e){return mc(String(e))}toCallWithExact(e,i,r){return pt(i)?`${e}(${this.regexToSourceString(i)})`:r?`${e}(${this.quote(i)}, { exact: true })`:`${e}(${this.quote(i)})`}toHasText(e){return pt(e)?this.regexToSourceString(e):this.quote(e)}toTestIdValue(e){return pt(e)?this.regexToSourceString(e):this.quote(e)}quote(e){return gc(e,this.preferredQuote??"'")}}class lx{generateLocator(e,i,r,l={}){switch(i){case"default":return l.hasText!==void 0?`locator(${this.quote(r)}, has_text=${this.toHasText(l.hasText)})`:l.hasNotText!==void 0?`locator(${this.quote(r)}, has_not_text=${this.toHasText(l.hasNotText)})`:`locator(${this.quote(r)})`;case"frame-locator":return`frame_locator(${this.quote(r)})`;case"frame":return"content_frame";case"nth":return`nth(${r})`;case"first":return"first";case"last":return"last";case"visible":return`filter(visible=${r==="true"?"True":"False"})`;case"role":const o=[];pt(l.name)?o.push(`name=${this.regexToString(l.name)}`):typeof l.name=="string"&&(o.push(`name=${this.quote(l.name)}`),l.exact&&o.push("exact=True"));for(const{name:f,value:d}of l.attrs){let g=typeof d=="string"?this.quote(d):d;typeof d=="boolean"&&(g=d?"True":"False"),o.push(`${wb(f)}=${g}`)}const u=o.length?`, ${o.join(", ")}`:"";return`get_by_role(${this.quote(r)}${u})`;case"has-text":return`filter(has_text=${this.toHasText(r)})`;case"has-not-text":return`filter(has_not_text=${this.toHasText(r)})`;case"has":return`filter(has=${r})`;case"hasNot":return`filter(has_not=${r})`;case"and":return`and_(${r})`;case"or":return`or_(${r})`;case"chain":return`locator(${r})`;case"test-id":return`get_by_test_id(${this.toTestIdValue(r)})`;case"text":return this.toCallWithExact("get_by_text",r,!!l.exact);case"alt":return this.toCallWithExact("get_by_alt_text",r,!!l.exact);case"placeholder":return this.toCallWithExact("get_by_placeholder",r,!!l.exact);case"label":return this.toCallWithExact("get_by_label",r,!!l.exact);case"title":return this.toCallWithExact("get_by_title",r,!!l.exact);default:throw new Error("Unknown selector kind "+i)}}chainLocators(e){return e.join(".")}regexToString(e){const i=e.flags.includes("i")?", re.IGNORECASE":"";return`re.compile(r"${mc(e.source).replace(/\\\//,"/").replace(/"/g,'\\"')}"${i})`}toCallWithExact(e,i,r){return pt(i)?`${e}(${this.regexToString(i)})`:r?`${e}(${this.quote(i)}, exact=True)`:`${e}(${this.quote(i)})`}toHasText(e){return pt(e)?this.regexToString(e):`${this.quote(e)}`}toTestIdValue(e){return pt(e)?this.regexToString(e):this.quote(e)}quote(e){return gc(e,'"')}}class ox{generateLocator(e,i,r,l={}){let o;switch(e){case"page":o="Page";break;case"frame-locator":o="FrameLocator";break;case"locator":o="Locator";break}switch(i){case"default":return l.hasText!==void 0?`locator(${this.quote(r)}, new ${o}.LocatorOptions().setHasText(${this.toHasText(l.hasText)}))`:l.hasNotText!==void 0?`locator(${this.quote(r)}, new ${o}.LocatorOptions().setHasNotText(${this.toHasText(l.hasNotText)}))`:`locator(${this.quote(r)})`;case"frame-locator":return`frameLocator(${this.quote(r)})`;case"frame":return"contentFrame()";case"nth":return`nth(${r})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter(new ${o}.FilterOptions().setVisible(${r==="true"?"true":"false"}))`;case"role":const u=[];pt(l.name)?u.push(`.setName(${this.regexToString(l.name)})`):typeof l.name=="string"&&(u.push(`.setName(${this.quote(l.name)})`),l.exact&&u.push(".setExact(true)"));for(const{name:d,value:g}of l.attrs)u.push(`.set${sc(d)}(${typeof g=="string"?this.quote(g):g})`);const f=u.length?`, new ${o}.GetByRoleOptions()${u.join("")}`:"";return`getByRole(AriaRole.${wb(r).toUpperCase()}${f})`;case"has-text":return`filter(new ${o}.FilterOptions().setHasText(${this.toHasText(r)}))`;case"has-not-text":return`filter(new ${o}.FilterOptions().setHasNotText(${this.toHasText(r)}))`;case"has":return`filter(new ${o}.FilterOptions().setHas(${r}))`;case"hasNot":return`filter(new ${o}.FilterOptions().setHasNot(${r}))`;case"and":return`and(${r})`;case"or":return`or(${r})`;case"chain":return`locator(${r})`;case"test-id":return`getByTestId(${this.toTestIdValue(r)})`;case"text":return this.toCallWithExact(o,"getByText",r,!!l.exact);case"alt":return this.toCallWithExact(o,"getByAltText",r,!!l.exact);case"placeholder":return this.toCallWithExact(o,"getByPlaceholder",r,!!l.exact);case"label":return this.toCallWithExact(o,"getByLabel",r,!!l.exact);case"title":return this.toCallWithExact(o,"getByTitle",r,!!l.exact);default:throw new Error("Unknown selector kind "+i)}}chainLocators(e){return e.join(".")}regexToString(e){const i=e.flags.includes("i")?", Pattern.CASE_INSENSITIVE":"";return`Pattern.compile(${this.quote(mc(e.source))}${i})`}toCallWithExact(e,i,r,l){return pt(r)?`${i}(${this.regexToString(r)})`:l?`${i}(${this.quote(r)}, new ${e}.${sc(i)}Options().setExact(true))`:`${i}(${this.quote(r)})`}toHasText(e){return pt(e)?this.regexToString(e):this.quote(e)}toTestIdValue(e){return pt(e)?this.regexToString(e):this.quote(e)}quote(e){return gc(e,'"')}}class cx{generateLocator(e,i,r,l={}){switch(i){case"default":return l.hasText!==void 0?`Locator(${this.quote(r)}, new() { ${this.toHasText(l.hasText)} })`:l.hasNotText!==void 0?`Locator(${this.quote(r)}, new() { ${this.toHasNotText(l.hasNotText)} })`:`Locator(${this.quote(r)})`;case"frame-locator":return`FrameLocator(${this.quote(r)})`;case"frame":return"ContentFrame";case"nth":return`Nth(${r})`;case"first":return"First";case"last":return"Last";case"visible":return`Filter(new() { Visible = ${r==="true"?"true":"false"} })`;case"role":const o=[];pt(l.name)?o.push(`NameRegex = ${this.regexToString(l.name)}`):typeof l.name=="string"&&(o.push(`Name = ${this.quote(l.name)}`),l.exact&&o.push("Exact = true"));for(const{name:f,value:d}of l.attrs)o.push(`${sc(f)} = ${typeof d=="string"?this.quote(d):d}`);const u=o.length?`, new() { ${o.join(", ")} }`:"";return`GetByRole(AriaRole.${sc(r)}${u})`;case"has-text":return`Filter(new() { ${this.toHasText(r)} })`;case"has-not-text":return`Filter(new() { ${this.toHasNotText(r)} })`;case"has":return`Filter(new() { Has = ${r} })`;case"hasNot":return`Filter(new() { HasNot = ${r} })`;case"and":return`And(${r})`;case"or":return`Or(${r})`;case"chain":return`Locator(${r})`;case"test-id":return`GetByTestId(${this.toTestIdValue(r)})`;case"text":return this.toCallWithExact("GetByText",r,!!l.exact);case"alt":return this.toCallWithExact("GetByAltText",r,!!l.exact);case"placeholder":return this.toCallWithExact("GetByPlaceholder",r,!!l.exact);case"label":return this.toCallWithExact("GetByLabel",r,!!l.exact);case"title":return this.toCallWithExact("GetByTitle",r,!!l.exact);default:throw new Error("Unknown selector kind "+i)}}chainLocators(e){return e.join(".")}regexToString(e){const i=e.flags.includes("i")?", RegexOptions.IgnoreCase":"";return`new Regex(${this.quote(mc(e.source))}${i})`}toCallWithExact(e,i,r){return pt(i)?`${e}(${this.regexToString(i)})`:r?`${e}(${this.quote(i)}, new() { Exact = true })`:`${e}(${this.quote(i)})`}toHasText(e){return pt(e)?`HasTextRegex = ${this.regexToString(e)}`:`HasText = ${this.quote(e)}`}toTestIdValue(e){return pt(e)?this.regexToString(e):this.quote(e)}toHasNotText(e){return pt(e)?`HasNotTextRegex = ${this.regexToString(e)}`:`HasNotText = ${this.quote(e)}`}quote(e){return gc(e,'"')}}class ux{generateLocator(e,i,r,l={}){return JSON.stringify({kind:i,body:r,options:l})}chainLocators(e){const i=e.map(r=>JSON.parse(r));for(let r=0;r<i.length-1;++r)i[r].next=i[r+1];return JSON.stringify(i[0])}}const Tb={javascript:ax,python:lx,java:ox,csharp:cx,jsonl:ux};function pt(n){return n instanceof RegExp}const t0=new Map;function fx({name:n,rootItem:e,render:i,title:r,icon:l,isError:o,isVisible:u,selectedItem:f,onAccepted:d,onSelected:g,onHighlighted:y,treeState:m,setTreeState:S,noItemsMessage:w,dataTestId:E,autoExpandDepth:_}){const T=U.useMemo(()=>hx(e,f,m.expandedItems,_||0,u),[e,f,m,_,u]),N=U.useRef(null),[M,$]=U.useState(),[I,D]=U.useState(!1);U.useEffect(()=>{y==null||y(M)},[y,M]),U.useEffect(()=>{const q=N.current;if(!q)return;const j=()=>{t0.set(n,q.scrollTop)};return q.addEventListener("scroll",j,{passive:!0}),()=>q.removeEventListener("scroll",j)},[n]),U.useEffect(()=>{N.current&&(N.current.scrollTop=t0.get(n)||0)},[n]);const K=U.useCallback(q=>{const{expanded:j}=T.get(q);if(j){for(let ne=f;ne;ne=ne.parent)if(ne===q){g==null||g(q);break}m.expandedItems.set(q.id,!1)}else m.expandedItems.set(q.id,!0);S({...m})},[T,f,g,m,S]),Q=U.useCallback(q=>{const{expanded:j}=T.get(q),ne=[q];for(;ne.length;){const le=ne.pop();ne.push(...le.children),m.expandedItems.set(le.id,!j)}S({...m})},[T,m,S]);return v.jsx("div",{className:Fe("tree-view vbox",n+"-tree-view"),"data-testid":E||n+"-tree",children:v.jsxs("div",{className:Fe("tree-view-content"),role:T.size>0?"tree":void 0,tabIndex:0,onKeyDown:q=>{if(f&&q.key==="Enter"){d==null||d(f);return}if(q.key!=="ArrowDown"&&q.key!=="ArrowUp"&&q.key!=="ArrowLeft"&&q.key!=="ArrowRight")return;if(q.stopPropagation(),q.preventDefault(),f&&q.key==="ArrowLeft"){const{expanded:ne,parent:le}=T.get(f);ne?(m.expandedItems.set(f.id,!1),S({...m})):le&&(g==null||g(le));return}if(f&&q.key==="ArrowRight"){f.children.length&&(m.expandedItems.set(f.id,!0),S({...m}));return}let j=f;if(q.key==="ArrowDown"&&(f?j=T.get(f).next:T.size&&(j=[...T.keys()][0])),q.key==="ArrowUp"){if(f)j=T.get(f).prev;else if(T.size){const ne=[...T.keys()];j=ne[ne.length-1]}}y==null||y(void 0),j&&(D(!0),g==null||g(j)),$(void 0)},ref:N,children:[w&&T.size===0&&v.jsx("div",{className:"tree-view-empty",children:w}),e.children.map(q=>T.get(q)&&v.jsx(Eb,{item:q,treeItems:T,selectedItem:f,onSelected:g,onAccepted:d,isError:o,toggleExpanded:K,toggleSubtree:Q,highlightedItem:M,setHighlightedItem:$,render:i,icon:l,title:r,isKeyboardNavigation:I,setIsKeyboardNavigation:D},q.id))]})})}function Eb({item:n,treeItems:e,selectedItem:i,onSelected:r,highlightedItem:l,setHighlightedItem:o,isError:u,onAccepted:f,toggleExpanded:d,toggleSubtree:g,render:y,title:m,icon:S,isKeyboardNavigation:w,setIsKeyboardNavigation:E}){const _=U.useId(),T=U.useRef(null);U.useEffect(()=>{i===n&&w&&T.current&&(X0(T.current),E(!1))},[n,i,w,E]);const N=e.get(n),M=N.depth,$=N.expanded;let I="codicon-blank";typeof $=="boolean"&&(I=$?"codicon-chevron-down":"codicon-chevron-right");const D=y(n),K=$&&n.children.length?n.children:[],Q=m==null?void 0:m(n),q=(S==null?void 0:S(n))||"codicon-blank";return v.jsxs("div",{ref:T,role:"treeitem","aria-selected":n===i,"aria-expanded":$,"aria-controls":_,title:Q,className:"vbox",style:{flex:"none"},children:[v.jsxs("div",{onDoubleClick:()=>f==null?void 0:f(n),className:Fe("tree-view-entry",i===n&&"selected",l===n&&"highlighted",(u==null?void 0:u(n))&&"error"),onClick:()=>r==null?void 0:r(n),onMouseEnter:()=>o(n),onMouseLeave:()=>o(void 0),children:[M?new Array(M).fill(0).map((j,ne)=>v.jsx("div",{className:"tree-view-indent"},"indent-"+ne)):void 0,v.jsx("div",{"aria-hidden":"true",className:"codicon "+I,style:{minWidth:16,marginRight:4},onDoubleClick:j=>{j.preventDefault(),j.stopPropagation()},onClick:j=>{j.stopPropagation(),j.preventDefault(),j.altKey?g(n):d(n)}}),S&&v.jsx("div",{className:"codicon "+q,style:{minWidth:16,marginRight:4},"aria-label":"["+q.replace("codicon","icon")+"]"}),typeof D=="string"?v.jsx("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:D}):D]}),!!K.length&&v.jsx("div",{id:_,role:"group",children:K.map(j=>e.get(j)&&v.jsx(Eb,{item:j,treeItems:e,selectedItem:i,onSelected:r,onAccepted:f,isError:u,toggleExpanded:d,toggleSubtree:g,highlightedItem:l,setHighlightedItem:o,render:y,title:m,icon:S,isKeyboardNavigation:w,setIsKeyboardNavigation:E},j.id))})]})}function hx(n,e,i,r,l=()=>!0){if(!l(n))return new Map;const o=new Map,u=new Set;for(let g=e==null?void 0:e.parent;g;g=g.parent)u.add(g.id);let f=null;const d=(g,y)=>{for(const m of g.children){if(!l(m))continue;const S=u.has(m.id)||i.get(m.id),w=r>y&&o.size<25&&S!==!1,E=m.children.length?S??w:void 0,_={depth:y,expanded:E,parent:n===g?null:g,next:null,prev:f};f&&(o.get(f).next=m),f=m,o.set(m,_),E&&d(m,y+1)}};return d(n,0),o}const Ht=U.forwardRef(function({children:e,title:i="",icon:r,disabled:l=!1,toggled:o=!1,onClick:u=()=>{},style:f,testId:d,className:g,ariaLabel:y},m){return v.jsxs("button",{ref:m,className:Fe(g,"toolbar-button",r,o&&"toggled"),onMouseDown:n0,onClick:u,onDoubleClick:n0,title:i,disabled:!!l,style:f,"data-testid":d,"aria-label":y||i,children:[r&&v.jsx("span",{className:`codicon codicon-${r}`,style:e?{marginRight:5}:{}}),e]})}),n0=n=>{n.stopPropagation(),n.preventDefault()};function Ab(n){return n==="scheduled"?"codicon-clock":n==="running"?"codicon-loading":n==="failed"?"codicon-error":n==="passed"?"codicon-check":n==="skipped"?"codicon-circle-slash":"codicon-circle-outline"}function dx(n){return n==="scheduled"?"Pending":n==="running"?"Running":n==="failed"?"Failed":n==="passed"?"Passed":n==="skipped"?"Skipped":"Did not run"}const px=fx,gx=({actions:n,selectedAction:e,selectedTime:i,setSelectedTime:r,treeState:l,setTreeState:o,sdkLanguage:u,onSelected:f,onHighlighted:d,revealConsole:g,revealActionAttachment:y,isLive:m})=>{const{rootItem:S,itemMap:w}=U.useMemo(()=>k_(n),[n]),{selectedItem:E}=U.useMemo(()=>({selectedItem:e?w.get(e.callId):void 0}),[w,e]),_=U.useCallback(D=>{var K,Q;return!!((Q=(K=D.action)==null?void 0:K.error)!=null&&Q.message)},[]),T=U.useCallback(D=>r({minimum:D.action.startTime,maximum:D.action.endTime}),[r]),N=U.useCallback(D=>{var Q,q;const K=!!y&&!!((q=(Q=D.action)==null?void 0:Q.attachments)!=null&&q.length);return Ph(D.action,{sdkLanguage:u,revealConsole:g,revealActionAttachment:()=>y==null?void 0:y(D.action.callId),isLive:m,showDuration:!0,showBadges:!0,showAttachments:K})},[m,g,y,u]),M=U.useCallback(D=>!i||!D.action||D.action.startTime<=i.maximum&&D.action.endTime>=i.minimum,[i]),$=U.useCallback(D=>{f==null||f(D.action)},[f]),I=U.useCallback(D=>{d==null||d(D==null?void 0:D.action)},[d]);return v.jsxs("div",{className:"vbox",children:[i&&v.jsxs("div",{className:"action-list-show-all",onClick:()=>r(void 0),children:[v.jsx("span",{className:"codicon codicon-triangle-left"}),"Show all"]}),v.jsx(px,{name:"actions",rootItem:S,treeState:l,setTreeState:o,selectedItem:E,onSelected:$,onHighlighted:I,onAccepted:T,isError:_,isVisible:M,render:N})]})},Ph=(n,e)=>{var T;const{sdkLanguage:i,revealConsole:r,revealActionAttachment:l,isLive:o,showDuration:u,showBadges:f,showAttachments:d}=e,{errors:g,warnings:y}=O_(n),m=n.params.selector?ix(i||"javascript",n.params.selector):void 0,S=n.class==="Test"&&n.method==="test.step"&&((T=n.annotations)==null?void 0:T.some(N=>N.type==="skip"));let w="";n.endTime?w=Et(n.endTime-n.startTime):n.error?w="Timed out":o||(w="-");const{elements:E,title:_}=Nb(n);return v.jsxs("div",{className:"action-title vbox",children:[v.jsxs("div",{className:"hbox",children:[v.jsx("span",{className:"action-title-method",title:_,children:E}),(u||f||d||S)&&v.jsx("div",{className:"spacer"}),d&&v.jsx(Ht,{icon:"attach",title:"Open Attachment",onClick:()=>l==null?void 0:l()}),u&&!S&&v.jsx("div",{className:"action-duration",children:w||v.jsx("span",{className:"codicon codicon-loading"})}),S&&v.jsx("span",{className:Fe("action-skipped","codicon",Ab("skipped")),title:"skipped"}),f&&v.jsxs("div",{className:"action-icons",onClick:()=>r==null?void 0:r(),children:[!!g&&v.jsxs("div",{className:"action-icon",children:[v.jsx("span",{className:"codicon codicon-error"}),v.jsx("span",{className:"action-icon-value",children:g})]}),!!y&&v.jsxs("div",{className:"action-icon",children:[v.jsx("span",{className:"codicon codicon-warning"}),v.jsx("span",{className:"action-icon-value",children:y})]})]})]}),m&&v.jsx("div",{className:"action-title-selector",title:m,children:m})]})};function Nb(n){var f;const e=n.title??((f=Z0.get(n.class+"."+n.method))==null?void 0:f.title)??n.method,i=[],r=[];let l=0;const o=/\{([^}]+)\}/g;let u;for(;(u=o.exec(e))!==null;){const[d,g]=u,y=e.slice(l,u.index);i.push(y),r.push(y);const m=S_(n.params,g);m===void 0?(i.push(d),r.push(d)):u.index===0?(i.push(m),r.push(m)):(i.push(v.jsx("span",{className:"action-title-param",children:m},i.length)),r.push(m)),l=u.index+d.length}if(l<e.length){const d=e.slice(l);i.push(d),r.push(d)}return{elements:i,title:r.join("")}}const Wh=({value:n,description:e})=>{const[i,r]=U.useState("copy"),l=U.useCallback(()=>{(typeof n=="function"?n():Promise.resolve(n)).then(u=>{navigator.clipboard.writeText(u).then(()=>{r("check"),setTimeout(()=>{r("copy")},3e3)},()=>{r("close")})},()=>{r("close")})},[n]);return v.jsx(Ht,{title:e||"Copy",icon:i,onClick:l})},Ko=({value:n,description:e,copiedDescription:i=e,style:r})=>{const[l,o]=U.useState(!1),u=U.useCallback(async()=>{const f=typeof n=="function"?await n():n;await navigator.clipboard.writeText(f),o(!0),setTimeout(()=>o(!1),3e3)},[n]);return v.jsx(Ht,{style:r,title:e,onClick:u,className:"copy-to-clipboard-text-button",children:l?i:e})},ms=({text:n})=>v.jsx("div",{className:"fill",style:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:24,fontWeight:"bold",opacity:.5},children:n}),mx=({action:n,startTimeOffset:e,sdkLanguage:i})=>{const r=U.useMemo(()=>Object.keys((n==null?void 0:n.params)??{}).filter(f=>f!=="info"),[n]);if(!n)return v.jsx(ms,{text:"No action selected"});const l=n.startTime-e,o=Et(l),{title:u}=Nb(n);return v.jsxs("div",{className:"call-tab",children:[v.jsx("div",{className:"call-line",children:u}),v.jsx("div",{className:"call-section",children:"Time"}),Oo({name:"start",type:"literal",text:o}),Oo({name:"duration",type:"literal",text:yx(n)}),!!r.length&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"call-section",children:"Parameters"}),r.map(f=>Oo(i0(n,f,n.params[f],i)))]}),!!n.result&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"call-section",children:"Return value"}),Object.keys(n.result).map(f=>Oo(i0(n,f,n.result[f],i)))]})]})};function yx(n){return n.endTime?Et(n.endTime-n.startTime):n.error?"Timed Out":"Running"}function Oo(n){let e=n.text.replace(/\n/g,"↵");return n.type==="string"&&(e=`"${e}"`),v.jsxs("div",{className:"call-line",children:[n.name,":",v.jsx("span",{className:Fe("call-value",n.type),title:n.text,children:e}),["literal","string","number","object","locator"].includes(n.type)&&v.jsx(Wh,{value:n.text})]},n.name)}function i0(n,e,i,r){const l=n.method.includes("eval")||n.method==="waitForFunction";if(e==="files")return{text:"<files>",type:"string",name:e};if((e==="eventInit"||e==="expectedValue"||e==="arg"&&l)&&(i=ac(i.value,new Array(10).fill({handle:"<handle>"}))),(e==="value"&&l||e==="received"&&n.method==="expect")&&(i=ac(i,new Array(10).fill({handle:"<handle>"}))),e==="selector")return{text:Mi(r||"javascript",n.params.selector),type:"locator",name:"locator"};const o=typeof i;return o!=="object"||i===null?{text:String(i),type:o,name:e}:i.guid?{text:"<handle>",type:"handle",name:e}:{text:JSON.stringify(i).slice(0,1e3),type:"object",name:e}}function ac(n,e){if(n.n!==void 0)return n.n;if(n.s!==void 0)return n.s;if(n.b!==void 0)return n.b;if(n.v!==void 0){if(n.v==="undefined")return;if(n.v==="null")return null;if(n.v==="NaN")return NaN;if(n.v==="Infinity")return 1/0;if(n.v==="-Infinity")return-1/0;if(n.v==="-0")return-0}if(n.d!==void 0)return new Date(n.d);if(n.r!==void 0)return new RegExp(n.r.p,n.r.f);if(n.a!==void 0)return n.a.map(i=>ac(i,e));if(n.o!==void 0){const i={};for(const{k:r,v:l}of n.o)i[r]=ac(l,e);return i}return n.h!==void 0?e===void 0?"<object>":e[n.h]:"<object>"}const s0=new Map;function yc({name:n,items:e=[],id:i,render:r,icon:l,isError:o,isWarning:u,isInfo:f,selectedItem:d,onAccepted:g,onSelected:y,onHighlighted:m,onIconClicked:S,noItemsMessage:w,dataTestId:E,notSelectable:_,ariaLabel:T}){const N=U.useRef(null),[M,$]=U.useState();return U.useEffect(()=>{m==null||m(M)},[m,M]),U.useEffect(()=>{const I=N.current;if(!I)return;const D=()=>{s0.set(n,I.scrollTop)};return I.addEventListener("scroll",D,{passive:!0}),()=>I.removeEventListener("scroll",D)},[n]),U.useEffect(()=>{N.current&&(N.current.scrollTop=s0.get(n)||0)},[n]),v.jsx("div",{className:Fe("list-view vbox",n+"-list-view"),role:e.length>0?"list":void 0,"aria-label":T,children:v.jsxs("div",{className:Fe("list-view-content",_&&"not-selectable"),tabIndex:0,onKeyDown:I=>{var q;if(d&&I.key==="Enter"){g==null||g(d,e.indexOf(d));return}if(I.key!=="ArrowDown"&&I.key!=="ArrowUp")return;I.stopPropagation(),I.preventDefault();const D=d?e.indexOf(d):-1;let K=D;I.key==="ArrowDown"&&(D===-1?K=0:K=Math.min(D+1,e.length-1)),I.key==="ArrowUp"&&(D===-1?K=e.length-1:K=Math.max(D-1,0));const Q=(q=N.current)==null?void 0:q.children.item(K);X0(Q||void 0),m==null||m(void 0),y==null||y(e[K],K),$(void 0)},ref:N,children:[w&&e.length===0&&v.jsx("div",{className:"list-view-empty",children:w}),e.map((I,D)=>{const K=r(I,D);return v.jsxs("div",{onDoubleClick:()=>g==null?void 0:g(I,D),role:"listitem",className:Fe("list-view-entry",d===I&&"selected",!_&&M===I&&"highlighted",(o==null?void 0:o(I,D))&&"error",(u==null?void 0:u(I,D))&&"warning",(f==null?void 0:f(I,D))&&"info"),"aria-selected":d===I,onClick:()=>y==null?void 0:y(I,D),onMouseEnter:()=>$(I),onMouseLeave:()=>$(void 0),children:[l&&v.jsx("div",{className:"codicon "+(l(I,D)||"codicon-blank"),style:{minWidth:16,marginRight:4},onDoubleClick:Q=>{Q.preventDefault(),Q.stopPropagation()},onClick:Q=>{Q.stopPropagation(),Q.preventDefault(),S==null||S(I,D)}}),typeof K=="string"?v.jsx("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:K}):K]},(i==null?void 0:i(I,D))||D)})]})})}const bx=yc,vx=({action:n,isLive:e})=>{const i=U.useMemo(()=>{var u;if(!n||!n.log.length)return[];const r=n.log,l=n.context.wallTime-n.context.startTime,o=[];for(let f=0;f<r.length;++f){let d="";if(r[f].time!==-1){const g=(u=r[f])==null?void 0:u.time;f+1<r.length?d=Et(r[f+1].time-g):n.endTime>0?d=Et(n.endTime-g):e?d=Et(Date.now()-l-g):d="-"}o.push({message:r[f].message,time:d})}return o},[n,e]);return i.length?v.jsx(bx,{name:"log",ariaLabel:"Log entries",items:i,render:r=>v.jsxs("div",{className:"log-list-item",children:[v.jsx("span",{className:"log-list-duration",children:r.time}),r.message]}),notSelectable:!0}):v.jsx(ms,{text:"No log entries"})};function nl(n,e){const i=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,r=[];let l,o={},u=!1,f=e==null?void 0:e.fg,d=e==null?void 0:e.bg;for(;(l=i.exec(n))!==null;){const[,,g,,y]=l;if(g){const m=+g;switch(m){case 0:o={};break;case 1:o["font-weight"]="bold";break;case 2:o.opacity="0.8";break;case 3:o["font-style"]="italic";break;case 4:o["text-decoration"]="underline";break;case 7:u=!0;break;case 8:o.display="none";break;case 9:o["text-decoration"]="line-through";break;case 22:delete o["font-weight"],delete o["font-style"],delete o.opacity,delete o["text-decoration"];break;case 23:delete o["font-weight"],delete o["font-style"],delete o.opacity;break;case 24:delete o["text-decoration"];break;case 27:u=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:f=r0[m-30];break;case 39:f=e==null?void 0:e.fg;break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:d=r0[m-40];break;case 49:d=e==null?void 0:e.bg;break;case 53:o["text-decoration"]="overline";break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:f=a0[m-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:d=a0[m-100];break}}else if(y){const m={...o},S=u?d:f;S!==void 0&&(m.color=S);const w=u?f:d;w!==void 0&&(m["background-color"]=w),r.push(`<span style="${wx(m)}">${Sx(y)}</span>`)}}return r.join("")}const r0={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)"},a0={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 Sx(n){return n.replace(/[&"<>]/g,e=>({"&":"&",'"':""","<":"<",">":">"})[e])}function wx(n){return Object.entries(n).map(([e,i])=>`${e}: ${i}`).join("; ")}const _x=({error:n})=>{const e=U.useMemo(()=>nl(n),[n]);return v.jsx("div",{className:"error-message",dangerouslySetInnerHTML:{__html:e||""}})},Cb=({cursor:n,onPaneMouseMove:e,onPaneMouseUp:i,onPaneDoubleClick:r})=>(gt.useEffect(()=>{const l=document.createElement("div");return l.style.position="fixed",l.style.top="0",l.style.right="0",l.style.bottom="0",l.style.left="0",l.style.zIndex="9999",l.style.cursor=n,document.body.appendChild(l),e&&l.addEventListener("mousemove",e),i&&l.addEventListener("mouseup",i),r&&document.body.addEventListener("dblclick",r),()=>{e&&l.removeEventListener("mousemove",e),i&&l.removeEventListener("mouseup",i),r&&document.body.removeEventListener("dblclick",r),document.body.removeChild(l)}},[n,e,i,r]),v.jsx(v.Fragment,{})),xx={position:"absolute",top:0,right:0,bottom:0,left:0},kb=({orientation:n,offsets:e,setOffsets:i,resizerColor:r,resizerWidth:l,minColumnWidth:o})=>{const u=o||0,[f,d]=gt.useState(null),[g,y]=gs(),m={position:"absolute",right:n==="horizontal"?void 0:0,bottom:n==="horizontal"?0:void 0,width:n==="horizontal"?7:void 0,height:n==="horizontal"?void 0:7,borderTopWidth:n==="horizontal"?void 0:(7-l)/2,borderRightWidth:n==="horizontal"?(7-l)/2:void 0,borderBottomWidth:n==="horizontal"?void 0:(7-l)/2,borderLeftWidth:n==="horizontal"?(7-l)/2:void 0,borderColor:"transparent",borderStyle:"solid",cursor:n==="horizontal"?"ew-resize":"ns-resize"};return v.jsxs("div",{style:{position:"absolute",top:0,right:0,bottom:0,left:-(7-l)/2,zIndex:100,pointerEvents:"none"},ref:y,children:[!!f&&v.jsx(Cb,{cursor:n==="horizontal"?"ew-resize":"ns-resize",onPaneMouseUp:()=>d(null),onPaneMouseMove:S=>{if(!S.buttons)d(null);else if(f){const w=n==="horizontal"?S.clientX-f.clientX:S.clientY-f.clientY,E=f.offset+w,_=f.index>0?e[f.index-1]:0,T=n==="horizontal"?g.width:g.height,N=Math.min(Math.max(_+u,E),T-u)-e[f.index];for(let M=f.index;M<e.length;++M)e[M]=e[M]+N;i([...e])}}}),e.map((S,w)=>v.jsx("div",{style:{...m,top:n==="horizontal"?0:S,left:n==="horizontal"?S:0,pointerEvents:"initial"},onMouseDown:E=>d({clientX:E.clientX,clientY:E.clientY,offset:S,index:w}),children:v.jsx("div",{style:{...xx,background:r}})},w))]})};async function lh(n){const e=new Image;return n&&(e.src=n,await new Promise((i,r)=>{e.onload=i,e.onerror=i})),e}const Oh={backgroundImage:`linear-gradient(45deg, #80808020 25%, transparent 25%),
|
|
53
53
|
linear-gradient(-45deg, #80808020 25%, transparent 25%),
|
|
54
54
|
linear-gradient(45deg, transparent 75%, #80808020 75%),
|
|
@@ -56,7 +56,7 @@ Error generating stack: `+c.message+`
|
|
|
56
56
|
rgb(0 0 0 / 15%) 0px 6.1px 6.3px,
|
|
57
57
|
rgb(0 0 0 / 10%) 0px -2px 4px,
|
|
58
58
|
rgb(0 0 0 / 15%) 0px -6.1px 12px,
|
|
59
|
-
rgb(0 0 0 / 25%) 0px 6px 12px`},Tx=({diff:n,noTargetBlank:e,hideDetails:i})=>{const[r,l]=U.useState(n.diff?"diff":"actual"),[o,u]=U.useState(!1),[f,d]=U.useState(null),[g,y]=U.useState("Expected"),[m,S]=U.useState(null),[w,E]=U.useState(null),[_,T]=gs();U.useEffect(()=>{(async()=>{var j,ne,le,V;d(await lh((j=n.expected)==null?void 0:j.attachment.path)),y(((ne=n.expected)==null?void 0:ne.title)||"Expected"),S(await lh((le=n.actual)==null?void 0:le.attachment.path)),E(await lh((V=n.diff)==null?void 0:V.attachment.path))})()},[n]);const N=f&&m&&w,M=N?Math.max(f.naturalWidth,m.naturalWidth,200):500,$=N?Math.max(f.naturalHeight,m.naturalHeight,200):500,I=Math.min(1,(_.width-30)/M),D=Math.min(1,(_.width-50)/M/2),K=M*I,Q=$*I,q={flex:"none",margin:"0 10px",cursor:"pointer",userSelect:"none"};return v.jsx("div",{"data-testid":"test-result-image-mismatch",style:{display:"flex",flexDirection:"column",alignItems:"center",flex:"auto"},ref:T,children:N&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{"data-testid":"test-result-image-mismatch-tabs",style:{display:"flex",margin:"10px 0 20px"},children:[n.diff&&v.jsx("div",{style:{...q,fontWeight:r==="diff"?600:"initial"},onClick:()=>l("diff"),children:"Diff"}),v.jsx("div",{style:{...q,fontWeight:r==="actual"?600:"initial"},onClick:()=>l("actual"),children:"Actual"}),v.jsx("div",{style:{...q,fontWeight:r==="expected"?600:"initial"},onClick:()=>l("expected"),children:g}),v.jsx("div",{style:{...q,fontWeight:r==="sxs"?600:"initial"},onClick:()=>l("sxs"),children:"Side by side"}),v.jsx("div",{style:{...q,fontWeight:r==="slider"?600:"initial"},onClick:()=>l("slider"),children:"Slider"})]}),v.jsxs("div",{style:{display:"flex",justifyContent:"center",flex:"auto",minHeight:Q+60},children:[n.diff&&r==="diff"&&v.jsx(Jn,{image:w,alt:"Diff",hideSize:i,canvasWidth:K,canvasHeight:Q,scale:I}),n.diff&&r==="actual"&&v.jsx(Jn,{image:m,alt:"Actual",hideSize:i,canvasWidth:K,canvasHeight:Q,scale:I}),n.diff&&r==="expected"&&v.jsx(Jn,{image:f,alt:g,hideSize:i,canvasWidth:K,canvasHeight:Q,scale:I}),n.diff&&r==="slider"&&v.jsx(Ex,{expectedImage:f,actualImage:m,hideSize:i,canvasWidth:K,canvasHeight:Q,scale:I,expectedTitle:g}),n.diff&&r==="sxs"&&v.jsxs("div",{style:{display:"flex"},children:[v.jsx(Jn,{image:f,title:g,hideSize:i,canvasWidth:D*M,canvasHeight:D*$,scale:D}),v.jsx(Jn,{image:o?w:m,title:o?"Diff":"Actual",onClick:()=>u(!o),hideSize:i,canvasWidth:D*M,canvasHeight:D*$,scale:D})]}),!n.diff&&r==="actual"&&v.jsx(Jn,{image:m,title:"Actual",hideSize:i,canvasWidth:K,canvasHeight:Q,scale:I}),!n.diff&&r==="expected"&&v.jsx(Jn,{image:f,title:g,hideSize:i,canvasWidth:K,canvasHeight:Q,scale:I}),!n.diff&&r==="sxs"&&v.jsxs("div",{style:{display:"flex"},children:[v.jsx(Jn,{image:f,title:g,canvasWidth:D*M,canvasHeight:D*$,scale:D}),v.jsx(Jn,{image:m,title:"Actual",canvasWidth:D*M,canvasHeight:D*$,scale:D})]})]}),!i&&v.jsxs("div",{style:{alignSelf:"start",lineHeight:"18px",marginLeft:"15px"},children:[v.jsx("div",{children:n.diff&&v.jsx("a",{target:"_blank",href:n.diff.attachment.path,rel:"noreferrer",children:n.diff.attachment.name})}),v.jsx("div",{children:v.jsx("a",{target:e?"":"_blank",href:n.actual.attachment.path,rel:"noreferrer",children:n.actual.attachment.name})}),v.jsx("div",{children:v.jsx("a",{target:e?"":"_blank",href:n.expected.attachment.path,rel:"noreferrer",children:n.expected.attachment.name})})]})]})})},Ex=({expectedImage:n,actualImage:e,canvasWidth:i,canvasHeight:r,scale:l,expectedTitle:o,hideSize:u})=>{const f={position:"absolute",top:0,left:0},[d,g]=U.useState(i/2),y=n.naturalWidth===e.naturalWidth&&n.naturalHeight===e.naturalHeight;return v.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center",flexDirection:"column",userSelect:"none"},children:[!u&&v.jsxs("div",{style:{margin:5},children:[!y&&v.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"Expected "}),v.jsx("span",{children:n.naturalWidth}),v.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),v.jsx("span",{children:n.naturalHeight}),!y&&v.jsx("span",{style:{flex:"none",margin:"0 5px 0 15px"},children:"Actual "}),!y&&v.jsx("span",{children:e.naturalWidth}),!y&&v.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),!y&&v.jsx("span",{children:e.naturalHeight})]}),v.jsxs("div",{style:{position:"relative",width:i,height:r,margin:15,...Oh},children:[v.jsx(kb,{orientation:"horizontal",offsets:[d],setOffsets:m=>g(m[0]),resizerColor:"#57606a80",resizerWidth:6}),v.jsx("img",{alt:o,style:{width:n.naturalWidth*l,height:n.naturalHeight*l},draggable:"false",src:n.src}),v.jsx("div",{style:{...f,bottom:0,overflow:"hidden",width:d,...Oh},children:v.jsx("img",{alt:"Actual",style:{width:e.naturalWidth*l,height:e.naturalHeight*l},draggable:"false",src:e.src})})]})]})},Jn=({image:n,title:e,alt:i,hideSize:r,canvasWidth:l,canvasHeight:o,scale:u,onClick:f})=>v.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center",flexDirection:"column"},children:[!r&&v.jsxs("div",{style:{margin:5},children:[e&&v.jsx("span",{style:{flex:"none",margin:"0 5px"},children:e}),v.jsx("span",{children:n.naturalWidth}),v.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),v.jsx("span",{children:n.naturalHeight})]}),v.jsx("div",{style:{display:"flex",flex:"none",width:l,height:o,margin:15,...Oh},children:v.jsx("img",{width:n.naturalWidth*u,height:n.naturalHeight*u,alt:e||i,style:{cursor:f?"pointer":"initial"},draggable:"false",src:n.src,onClick:f})})]}),Ax="modulepreload",Nx=function(n,e){return new URL(n,e).href},l0={},Cx=function(e,i,r){let l=Promise.resolve();if(i&&i.length>0){let u=function(y){return Promise.all(y.map(m=>Promise.resolve(m).then(S=>({status:"fulfilled",value:S}),S=>({status:"rejected",reason:S}))))};const f=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),g=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));l=u(i.map(y=>{if(y=Nx(y,r),y in l0)return;l0[y]=!0;const m=y.endsWith(".css"),S=m?'[rel="stylesheet"]':"";if(!!r)for(let _=f.length-1;_>=0;_--){const T=f[_];if(T.href===y&&(!m||T.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${y}"]${S}`))return;const E=document.createElement("link");if(E.rel=m?"stylesheet":Ax,m||(E.as="script"),E.crossOrigin="",E.href=y,g&&E.setAttribute("nonce",g),document.head.appendChild(E),m)return new Promise((_,T)=>{E.addEventListener("load",_),E.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${y}`)))})}))}function o(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return l.then(u=>{for(const f of u||[])f.status==="rejected"&&o(f.reason);return e().catch(o)})},kx=20,xr=({text:n,highlighter:e,mimeType:i,linkify:r,readOnly:l,highlight:o,revealLine:u,lineNumbers:f,isFocused:d,focusOnChange:g,wrapLines:y,onChange:m,dataTestId:S,placeholder:w})=>{const[E,_]=gs(),[T]=U.useState(Cx(()=>import("./codeMirrorModule-Dqdugjpa.js"),__vite__mapDeps([0,1]),import.meta.url).then(I=>I.default)),N=U.useRef(null),[M,$]=U.useState();return U.useEffect(()=>{(async()=>{var q,j;const I=await T;Ox(I);const D=_.current;if(!D)return;const K=Lx(e)||jx(i)||(r?"text/linkified":"");if(N.current&&K===N.current.cm.getOption("mode")&&!!l===N.current.cm.getOption("readOnly")&&f===N.current.cm.getOption("lineNumbers")&&y===N.current.cm.getOption("lineWrapping")&&w===N.current.cm.getOption("placeholder"))return;(j=(q=N.current)==null?void 0:q.cm)==null||j.getWrapperElement().remove();const Q=I(D,{value:"",mode:K,readOnly:!!l,lineNumbers:f,lineWrapping:y,placeholder:w,matchBrackets:!0,autoCloseBrackets:!0,extraKeys:{"Ctrl-F":"findPersistent","Cmd-F":"findPersistent"}});return N.current={cm:Q},d&&Q.focus(),$(Q),Q})()},[T,M,_,e,i,r,f,y,l,d,w]),U.useEffect(()=>{N.current&&N.current.cm.setSize(E.width,E.height)},[E]),U.useLayoutEffect(()=>{var K;if(!M)return;let I=!1;if(M.getValue()!==n&&(M.setValue(n),I=!0,g&&(M.execCommand("selectAll"),M.focus())),I||JSON.stringify(o)!==JSON.stringify(N.current.highlight)){for(const j of N.current.highlight||[])M.removeLineClass(j.line-1,"wrap");for(const j of o||[])M.addLineClass(j.line-1,"wrap",`source-line-${j.type}`);for(const j of N.current.widgets||[])M.removeLineWidget(j);for(const j of N.current.markers||[])j.clear();const Q=[],q=[];for(const j of o||[]){if(j.type!=="subtle-error"&&j.type!=="error")continue;const ne=(K=N.current)==null?void 0:K.cm.getLine(j.line-1);if(ne){const le={};le.title=j.message||"",q.push(M.markText({line:j.line-1,ch:0},{line:j.line-1,ch:j.column||ne.length},{className:"source-line-error-underline",attributes:le}))}if(j.type==="error"){const le=document.createElement("div");le.innerHTML=nl(j.message||""),le.className="source-line-error-widget",Q.push(M.addLineWidget(j.line,le,{above:!0,coverGutter:!1}))}}N.current.highlight=o,N.current.widgets=Q,N.current.markers=q}typeof u=="number"&&N.current.cm.lineCount()>=u&&M.scrollIntoView({line:Math.max(0,u-1),ch:0},50);let D;return m&&(D=()=>m(M.getValue()),M.on("change",D)),()=>{D&&M.off("change",D)}},[M,n,o,u,g,m]),v.jsx("div",{"data-testid":S,className:"cm-wrapper",ref:_,onClick:Mx})};function Mx(n){var i;if(!(n.target instanceof HTMLElement))return;let e;n.target.classList.contains("cm-linkified")?e=n.target.textContent:n.target.classList.contains("cm-link")&&((i=n.target.nextElementSibling)!=null&&i.classList.contains("cm-url"))&&(e=n.target.nextElementSibling.textContent.slice(1,-1)),e&&(n.preventDefault(),n.stopPropagation(),window.open(e,"_blank"))}let o0=!1;function Ox(n){o0||(o0=!0,n.defineSimpleMode("text/linkified",{start:[{regex:F0,token:"linkified"}]}))}function jx(n){if(n){if(n.includes("javascript")||n.includes("json"))return"javascript";if(n.includes("python"))return"python";if(n.includes("csharp"))return"text/x-csharp";if(n.includes("java"))return"text/x-java";if(n.includes("markdown"))return"markdown";if(n.includes("html")||n.includes("svg"))return"htmlmixed";if(n.includes("css"))return"css"}}function Lx(n){if(n)return{javascript:"javascript",jsonl:"javascript",python:"python",csharp:"text/x-csharp",java:"text/x-java",markdown:"markdown",html:"htmlmixed",css:"css",yaml:"yaml"}[n]}function Rx(n){return!!n.match(/^(application\/json|application\/.*?\+json|text\/(x-)?json)(;\s*charset=.*)?$/)}function Dx(n){return!!n.match(/^(text\/.*?|application\/(json|(x-)?javascript|xml.*?|ecmascript|graphql|x-www-form-urlencoded)|image\/svg(\+xml)?|application\/.*?(\+json|\+xml))(;\s*charset=.*)?$/)}const Mb=({title:n,children:e,setExpanded:i,expanded:r,expandOnTitleClick:l,className:o})=>{const u=U.useId(),f=U.useId(),d=U.useCallback(()=>i(!r),[r,i]),g=v.jsx("div",{className:Fe("codicon",r?"codicon-chevron-down":"codicon-chevron-right"),style:{cursor:"pointer",color:"var(--vscode-foreground)",marginLeft:"5px"},onClick:l?void 0:d});return v.jsxs("div",{className:Fe("expandable",r&&"expanded",o),children:[l?v.jsxs("div",{id:u,role:"button","aria-expanded":r,"aria-controls":f,className:"expandable-title",onClick:d,children:[g,n]}):v.jsxs("div",{className:"expandable-title",children:[g,n]}),r&&v.jsx("div",{id:f,"aria-labelledby":u,role:"region",className:"expandable-content",children:e})]})};function Ob(n){const e=[];let i=0,r;for(;(r=F0.exec(n))!==null;){const o=n.substring(i,r.index);o&&e.push(o);const u=r[0];e.push(Bx(u)),i=r.index+u.length}const l=n.substring(i);return l&&e.push(l),e}function Bx(n){let e=n;return e.startsWith("www.")&&(e="https://"+e),v.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:n})}const jb=U.createContext(void 0),Di=()=>U.useContext(jb),zx=({attachment:n,reveal:e})=>{const i=Di(),[r,l]=U.useState(!1),[o,u]=U.useState(null),[f,d]=U.useState(null),[g,y]=c_(),m=U.useRef(null),S=Dx(n.contentType),w=!!n.sha1||!!n.path;U.useEffect(()=>{var T;if(e)return(T=m.current)==null||T.scrollIntoView({behavior:"smooth"}),y()},[e,y]),U.useEffect(()=>{r&&o===null&&f===null&&(d("Loading ..."),fetch(bc(i,n)).then(T=>T.text()).then(T=>{u(T),d(null)}).catch(T=>{d("Failed to load: "+T.message)}))},[i,r,o,f,n]);const E=U.useMemo(()=>{const T=o?o.split(`
|
|
59
|
+
rgb(0 0 0 / 25%) 0px 6px 12px`},Tx=({diff:n,noTargetBlank:e,hideDetails:i})=>{const[r,l]=U.useState(n.diff?"diff":"actual"),[o,u]=U.useState(!1),[f,d]=U.useState(null),[g,y]=U.useState("Expected"),[m,S]=U.useState(null),[w,E]=U.useState(null),[_,T]=gs();U.useEffect(()=>{(async()=>{var j,ne,le,V;d(await lh((j=n.expected)==null?void 0:j.attachment.path)),y(((ne=n.expected)==null?void 0:ne.title)||"Expected"),S(await lh((le=n.actual)==null?void 0:le.attachment.path)),E(await lh((V=n.diff)==null?void 0:V.attachment.path))})()},[n]);const N=f&&m&&w,M=N?Math.max(f.naturalWidth,m.naturalWidth,200):500,$=N?Math.max(f.naturalHeight,m.naturalHeight,200):500,I=Math.min(1,(_.width-30)/M),D=Math.min(1,(_.width-50)/M/2),K=M*I,Q=$*I,q={flex:"none",margin:"0 10px",cursor:"pointer",userSelect:"none"};return v.jsx("div",{"data-testid":"test-result-image-mismatch",style:{display:"flex",flexDirection:"column",alignItems:"center",flex:"auto"},ref:T,children:N&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{"data-testid":"test-result-image-mismatch-tabs",style:{display:"flex",margin:"10px 0 20px"},children:[n.diff&&v.jsx("div",{style:{...q,fontWeight:r==="diff"?600:"initial"},onClick:()=>l("diff"),children:"Diff"}),v.jsx("div",{style:{...q,fontWeight:r==="actual"?600:"initial"},onClick:()=>l("actual"),children:"Actual"}),v.jsx("div",{style:{...q,fontWeight:r==="expected"?600:"initial"},onClick:()=>l("expected"),children:g}),v.jsx("div",{style:{...q,fontWeight:r==="sxs"?600:"initial"},onClick:()=>l("sxs"),children:"Side by side"}),v.jsx("div",{style:{...q,fontWeight:r==="slider"?600:"initial"},onClick:()=>l("slider"),children:"Slider"})]}),v.jsxs("div",{style:{display:"flex",justifyContent:"center",flex:"auto",minHeight:Q+60},children:[n.diff&&r==="diff"&&v.jsx(Jn,{image:w,alt:"Diff",hideSize:i,canvasWidth:K,canvasHeight:Q,scale:I}),n.diff&&r==="actual"&&v.jsx(Jn,{image:m,alt:"Actual",hideSize:i,canvasWidth:K,canvasHeight:Q,scale:I}),n.diff&&r==="expected"&&v.jsx(Jn,{image:f,alt:g,hideSize:i,canvasWidth:K,canvasHeight:Q,scale:I}),n.diff&&r==="slider"&&v.jsx(Ex,{expectedImage:f,actualImage:m,hideSize:i,canvasWidth:K,canvasHeight:Q,scale:I,expectedTitle:g}),n.diff&&r==="sxs"&&v.jsxs("div",{style:{display:"flex"},children:[v.jsx(Jn,{image:f,title:g,hideSize:i,canvasWidth:D*M,canvasHeight:D*$,scale:D}),v.jsx(Jn,{image:o?w:m,title:o?"Diff":"Actual",onClick:()=>u(!o),hideSize:i,canvasWidth:D*M,canvasHeight:D*$,scale:D})]}),!n.diff&&r==="actual"&&v.jsx(Jn,{image:m,title:"Actual",hideSize:i,canvasWidth:K,canvasHeight:Q,scale:I}),!n.diff&&r==="expected"&&v.jsx(Jn,{image:f,title:g,hideSize:i,canvasWidth:K,canvasHeight:Q,scale:I}),!n.diff&&r==="sxs"&&v.jsxs("div",{style:{display:"flex"},children:[v.jsx(Jn,{image:f,title:g,canvasWidth:D*M,canvasHeight:D*$,scale:D}),v.jsx(Jn,{image:m,title:"Actual",canvasWidth:D*M,canvasHeight:D*$,scale:D})]})]}),!i&&v.jsxs("div",{style:{alignSelf:"start",lineHeight:"18px",marginLeft:"15px"},children:[v.jsx("div",{children:n.diff&&v.jsx("a",{target:"_blank",href:n.diff.attachment.path,rel:"noreferrer",children:n.diff.attachment.name})}),v.jsx("div",{children:v.jsx("a",{target:e?"":"_blank",href:n.actual.attachment.path,rel:"noreferrer",children:n.actual.attachment.name})}),v.jsx("div",{children:v.jsx("a",{target:e?"":"_blank",href:n.expected.attachment.path,rel:"noreferrer",children:n.expected.attachment.name})})]})]})})},Ex=({expectedImage:n,actualImage:e,canvasWidth:i,canvasHeight:r,scale:l,expectedTitle:o,hideSize:u})=>{const f={position:"absolute",top:0,left:0},[d,g]=U.useState(i/2),y=n.naturalWidth===e.naturalWidth&&n.naturalHeight===e.naturalHeight;return v.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center",flexDirection:"column",userSelect:"none"},children:[!u&&v.jsxs("div",{style:{margin:5},children:[!y&&v.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"Expected "}),v.jsx("span",{children:n.naturalWidth}),v.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),v.jsx("span",{children:n.naturalHeight}),!y&&v.jsx("span",{style:{flex:"none",margin:"0 5px 0 15px"},children:"Actual "}),!y&&v.jsx("span",{children:e.naturalWidth}),!y&&v.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),!y&&v.jsx("span",{children:e.naturalHeight})]}),v.jsxs("div",{style:{position:"relative",width:i,height:r,margin:15,...Oh},children:[v.jsx(kb,{orientation:"horizontal",offsets:[d],setOffsets:m=>g(m[0]),resizerColor:"#57606a80",resizerWidth:6}),v.jsx("img",{alt:o,style:{width:n.naturalWidth*l,height:n.naturalHeight*l},draggable:"false",src:n.src}),v.jsx("div",{style:{...f,bottom:0,overflow:"hidden",width:d,...Oh},children:v.jsx("img",{alt:"Actual",style:{width:e.naturalWidth*l,height:e.naturalHeight*l},draggable:"false",src:e.src})})]})]})},Jn=({image:n,title:e,alt:i,hideSize:r,canvasWidth:l,canvasHeight:o,scale:u,onClick:f})=>v.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center",flexDirection:"column"},children:[!r&&v.jsxs("div",{style:{margin:5},children:[e&&v.jsx("span",{style:{flex:"none",margin:"0 5px"},children:e}),v.jsx("span",{children:n.naturalWidth}),v.jsx("span",{style:{flex:"none",margin:"0 5px"},children:"x"}),v.jsx("span",{children:n.naturalHeight})]}),v.jsx("div",{style:{display:"flex",flex:"none",width:l,height:o,margin:15,...Oh},children:v.jsx("img",{width:n.naturalWidth*u,height:n.naturalHeight*u,alt:e||i,style:{cursor:f?"pointer":"initial"},draggable:"false",src:n.src,onClick:f})})]}),Ax="modulepreload",Nx=function(n,e){return new URL(n,e).href},l0={},Cx=function(e,i,r){let l=Promise.resolve();if(i&&i.length>0){let u=function(y){return Promise.all(y.map(m=>Promise.resolve(m).then(S=>({status:"fulfilled",value:S}),S=>({status:"rejected",reason:S}))))};const f=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),g=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));l=u(i.map(y=>{if(y=Nx(y,r),y in l0)return;l0[y]=!0;const m=y.endsWith(".css"),S=m?'[rel="stylesheet"]':"";if(!!r)for(let _=f.length-1;_>=0;_--){const T=f[_];if(T.href===y&&(!m||T.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${y}"]${S}`))return;const E=document.createElement("link");if(E.rel=m?"stylesheet":Ax,m||(E.as="script"),E.crossOrigin="",E.href=y,g&&E.setAttribute("nonce",g),document.head.appendChild(E),m)return new Promise((_,T)=>{E.addEventListener("load",_),E.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${y}`)))})}))}function o(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return l.then(u=>{for(const f of u||[])f.status==="rejected"&&o(f.reason);return e().catch(o)})},kx=20,xr=({text:n,highlighter:e,mimeType:i,linkify:r,readOnly:l,highlight:o,revealLine:u,lineNumbers:f,isFocused:d,focusOnChange:g,wrapLines:y,onChange:m,dataTestId:S,placeholder:w})=>{const[E,_]=gs(),[T]=U.useState(Cx(()=>import("./codeMirrorModule-DqqhreXd.js"),__vite__mapDeps([0,1]),import.meta.url).then(I=>I.default)),N=U.useRef(null),[M,$]=U.useState();return U.useEffect(()=>{(async()=>{var q,j;const I=await T;Ox(I);const D=_.current;if(!D)return;const K=Lx(e)||jx(i)||(r?"text/linkified":"");if(N.current&&K===N.current.cm.getOption("mode")&&!!l===N.current.cm.getOption("readOnly")&&f===N.current.cm.getOption("lineNumbers")&&y===N.current.cm.getOption("lineWrapping")&&w===N.current.cm.getOption("placeholder"))return;(j=(q=N.current)==null?void 0:q.cm)==null||j.getWrapperElement().remove();const Q=I(D,{value:"",mode:K,readOnly:!!l,lineNumbers:f,lineWrapping:y,placeholder:w,matchBrackets:!0,autoCloseBrackets:!0,extraKeys:{"Ctrl-F":"findPersistent","Cmd-F":"findPersistent"}});return N.current={cm:Q},d&&Q.focus(),$(Q),Q})()},[T,M,_,e,i,r,f,y,l,d,w]),U.useEffect(()=>{N.current&&N.current.cm.setSize(E.width,E.height)},[E]),U.useLayoutEffect(()=>{var K;if(!M)return;let I=!1;if(M.getValue()!==n&&(M.setValue(n),I=!0,g&&(M.execCommand("selectAll"),M.focus())),I||JSON.stringify(o)!==JSON.stringify(N.current.highlight)){for(const j of N.current.highlight||[])M.removeLineClass(j.line-1,"wrap");for(const j of o||[])M.addLineClass(j.line-1,"wrap",`source-line-${j.type}`);for(const j of N.current.widgets||[])M.removeLineWidget(j);for(const j of N.current.markers||[])j.clear();const Q=[],q=[];for(const j of o||[]){if(j.type!=="subtle-error"&&j.type!=="error")continue;const ne=(K=N.current)==null?void 0:K.cm.getLine(j.line-1);if(ne){const le={};le.title=j.message||"",q.push(M.markText({line:j.line-1,ch:0},{line:j.line-1,ch:j.column||ne.length},{className:"source-line-error-underline",attributes:le}))}if(j.type==="error"){const le=document.createElement("div");le.innerHTML=nl(j.message||""),le.className="source-line-error-widget",Q.push(M.addLineWidget(j.line,le,{above:!0,coverGutter:!1}))}}N.current.highlight=o,N.current.widgets=Q,N.current.markers=q}typeof u=="number"&&N.current.cm.lineCount()>=u&&M.scrollIntoView({line:Math.max(0,u-1),ch:0},50);let D;return m&&(D=()=>m(M.getValue()),M.on("change",D)),()=>{D&&M.off("change",D)}},[M,n,o,u,g,m]),v.jsx("div",{"data-testid":S,className:"cm-wrapper",ref:_,onClick:Mx})};function Mx(n){var i;if(!(n.target instanceof HTMLElement))return;let e;n.target.classList.contains("cm-linkified")?e=n.target.textContent:n.target.classList.contains("cm-link")&&((i=n.target.nextElementSibling)!=null&&i.classList.contains("cm-url"))&&(e=n.target.nextElementSibling.textContent.slice(1,-1)),e&&(n.preventDefault(),n.stopPropagation(),window.open(e,"_blank"))}let o0=!1;function Ox(n){o0||(o0=!0,n.defineSimpleMode("text/linkified",{start:[{regex:F0,token:"linkified"}]}))}function jx(n){if(n){if(n.includes("javascript")||n.includes("json"))return"javascript";if(n.includes("python"))return"python";if(n.includes("csharp"))return"text/x-csharp";if(n.includes("java"))return"text/x-java";if(n.includes("markdown"))return"markdown";if(n.includes("html")||n.includes("svg"))return"htmlmixed";if(n.includes("css"))return"css"}}function Lx(n){if(n)return{javascript:"javascript",jsonl:"javascript",python:"python",csharp:"text/x-csharp",java:"text/x-java",markdown:"markdown",html:"htmlmixed",css:"css",yaml:"yaml"}[n]}function Rx(n){return!!n.match(/^(application\/json|application\/.*?\+json|text\/(x-)?json)(;\s*charset=.*)?$/)}function Dx(n){return!!n.match(/^(text\/.*?|application\/(json|(x-)?javascript|xml.*?|ecmascript|graphql|x-www-form-urlencoded)|image\/svg(\+xml)?|application\/.*?(\+json|\+xml))(;\s*charset=.*)?$/)}const Mb=({title:n,children:e,setExpanded:i,expanded:r,expandOnTitleClick:l,className:o})=>{const u=U.useId(),f=U.useId(),d=U.useCallback(()=>i(!r),[r,i]),g=v.jsx("div",{className:Fe("codicon",r?"codicon-chevron-down":"codicon-chevron-right"),style:{cursor:"pointer",color:"var(--vscode-foreground)",marginLeft:"5px"},onClick:l?void 0:d});return v.jsxs("div",{className:Fe("expandable",r&&"expanded",o),children:[l?v.jsxs("div",{id:u,role:"button","aria-expanded":r,"aria-controls":f,className:"expandable-title",onClick:d,children:[g,n]}):v.jsxs("div",{className:"expandable-title",children:[g,n]}),r&&v.jsx("div",{id:f,"aria-labelledby":u,role:"region",className:"expandable-content",children:e})]})};function Ob(n){const e=[];let i=0,r;for(;(r=F0.exec(n))!==null;){const o=n.substring(i,r.index);o&&e.push(o);const u=r[0];e.push(Bx(u)),i=r.index+u.length}const l=n.substring(i);return l&&e.push(l),e}function Bx(n){let e=n;return e.startsWith("www.")&&(e="https://"+e),v.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:n})}const jb=U.createContext(void 0),Di=()=>U.useContext(jb),zx=({attachment:n,reveal:e})=>{const i=Di(),[r,l]=U.useState(!1),[o,u]=U.useState(null),[f,d]=U.useState(null),[g,y]=c_(),m=U.useRef(null),S=Dx(n.contentType),w=!!n.sha1||!!n.path;U.useEffect(()=>{var T;if(e)return(T=m.current)==null||T.scrollIntoView({behavior:"smooth"}),y()},[e,y]),U.useEffect(()=>{r&&o===null&&f===null&&(d("Loading ..."),fetch(bc(i,n)).then(T=>T.text()).then(T=>{u(T),d(null)}).catch(T=>{d("Failed to load: "+T.message)}))},[i,r,o,f,n]);const E=U.useMemo(()=>{const T=o?o.split(`
|
|
60
60
|
`).length:0;return Math.min(Math.max(5,T),20)*kx},[o]),_=v.jsxs("span",{style:{marginLeft:5},ref:m,"aria-label":n.name,children:[v.jsx("span",{children:Ob(n.name)}),w&&v.jsx("a",{style:{marginLeft:5},href:Yo(i,n),children:"download"})]});return!S||!w?v.jsx("div",{style:{marginLeft:20},children:_}):v.jsxs("div",{className:Fe(g&&"yellow-flash"),children:[v.jsx(Mb,{title:_,expanded:r,setExpanded:l,expandOnTitleClick:!0,children:f&&v.jsx("i",{children:f})}),r&&o!==null&&v.jsx("div",{className:"vbox",style:{height:E},children:v.jsx(xr,{text:o,readOnly:!0,mimeType:n.contentType,linkify:!0,lineNumbers:!0,wrapLines:!1})})]})},Ux=({revealedAttachmentCallId:n})=>{const e=Di(),{diffMap:i,screenshots:r,attachments:l}=U.useMemo(()=>{const o=new Set((e==null?void 0:e.visibleAttachments)??[]),u=new Set,f=new Map;for(const d of o){if(!d.path&&!d.sha1)continue;const g=d.name.match(/^(.*)-(expected|actual|diff)\.png$/);if(g){const y=g[1],m=g[2],S=f.get(y)||{expected:void 0,actual:void 0,diff:void 0};S[m]=d,f.set(y,S),o.delete(d)}else d.contentType.startsWith("image/")&&(u.add(d),o.delete(d))}return{diffMap:f,attachments:o,screenshots:u}},[e]);return!i.size&&!r.size&&!l.size?v.jsx(ms,{text:"No attachments"}):v.jsxs("div",{className:"attachments-tab",children:[[...i.values()].map(({expected:o,actual:u,diff:f})=>v.jsxs(v.Fragment,{children:[o&&u&&v.jsx("div",{className:"attachments-section",children:"Image diff"}),o&&u&&v.jsx(Tx,{noTargetBlank:!0,diff:{name:"Image diff",expected:{attachment:{...o,path:Yo(e,o)},title:"Expected"},actual:{attachment:{...u,path:Yo(e,u)}},diff:f?{attachment:{...f,path:Yo(e,f)}}:void 0}})]})),r.size?v.jsx("div",{className:"attachments-section",children:"Screenshots"}):void 0,[...r.values()].map((o,u)=>{const f=bc(e,o);return v.jsxs("div",{className:"attachment-item",children:[v.jsx("div",{children:v.jsx("img",{draggable:"false",src:f})}),v.jsx("div",{children:v.jsx("a",{target:"_blank",href:f,rel:"noreferrer",children:o.name})})]},`screenshot-${u}`)}),l.size?v.jsx("div",{className:"attachments-section",children:"Attachments"}):void 0,[...l.values()].map((o,u)=>v.jsx("div",{className:"attachment-item",children:v.jsx(zx,{attachment:o,reveal:n&&o.callId===n.callId?n:void 0})},Hx(o,u)))]})};function bc(n,e){return n&&e.sha1?n.createRelativeUrl(`sha1/${e.sha1}`):`file?path=${encodeURIComponent(e.path)}`}function Yo(n,e){let i=e.contentType?`&dn=${encodeURIComponent(e.name)}`:"";return e.contentType&&(i+=`&dct=${encodeURIComponent(e.contentType)}`),bc(n,e)+i}function Hx(n,e){return e+"-"+(n.sha1?"sha1-"+n.sha1:"path-"+n.path)}const qx=`
|
|
61
61
|
# Instructions
|
|
62
62
|
|
|
@@ -66,7 +66,7 @@ Error generating stack: `+c.message+`
|
|
|
66
66
|
`.trimStart();async function $x({testInfo:n,metadata:e,errorContext:i,errors:r,buildCodeFrame:l,stdout:o,stderr:u}){var m;const f=new Set(r.filter(S=>S.message&&!S.message.includes(`
|
|
67
67
|
`)).map(S=>S.message));for(const S of r)for(const w of f.keys())(m=S.message)!=null&&m.includes(w)&&f.delete(w);const d=r.filter(S=>!(!S.message||!S.message.includes(`
|
|
68
68
|
`)&&!f.has(S.message)));if(!d.length)return;const g=[qx,"# Test info","",n];o&&g.push("","# Stdout","","```",Xo(o),"```"),u&&g.push("","# Stderr","","```",Xo(u),"```"),g.push("","# Error details");for(const S of d)g.push("","```",Xo(S.message||""),"```");i&&g.push(i);const y=await l(d[d.length-1]);return y&&g.push("","# Test source","","```ts",y,"```"),e!=null&&e.gitDiff&&g.push("","# Local changes","","```diff",e.gitDiff,"```"),g.join(`
|
|
69
|
-
`)}const Ix=new RegExp("([\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~])))","g");function Xo(n){return n.replace(Ix,"")}const Vx=yc,Gx=({stack:n,setSelectedFrame:e,selectedFrame:i})=>{const r=n||[];return v.jsx(Vx,{name:"stack-trace",ariaLabel:"Stack trace",items:r,selectedItem:r[i],render:l=>{const o=l.file[1]===":"?"\\":"/";return v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"stack-trace-frame-function",children:l.function||"(anonymous)"}),v.jsx("span",{className:"stack-trace-frame-location",children:l.file.split(o).pop()}),v.jsx("span",{className:"stack-trace-frame-line",children:":"+l.line})]})},onSelected:l=>e(r.indexOf(l))})},ed=({noShadow:n,children:e,noMinHeight:i,className:r,sidebarBackground:l,onClick:o})=>v.jsx("div",{className:Fe("toolbar",n&&"no-shadow",i&&"no-min-height",r,l&&"toolbar-sidebar-background"),onClick:o,children:e});function Kx(n,e,i,r,l){const o=Di();return ec(async()=>{var w,E,_,T;const u=n==null?void 0:n[e],f=u!=null&&u.file?u:l;if(!f)return{source:{file:"",errors:[],content:void 0},targetLine:0,highlight:[]};const d=f.file;let g=i.get(d);g||(g={errors:((w=l==null?void 0:l.source)==null?void 0:w.errors)||[],content:(E=l==null?void 0:l.source)==null?void 0:E.content},i.set(d,g));const y=(f==null?void 0:f.line)||((_=g.errors[0])==null?void 0:_.line)||0,m=r&&d.startsWith(r)?d.substring(r.length+1):d,S=g.errors.map(N=>({type:"error",line:N.line,message:N.message}));if(S.push({line:y,type:"running"}),((T=l==null?void 0:l.source)==null?void 0:T.content)!==void 0)g.content=l.source.content;else if(g.content===void 0||f===l){const N=await Lb(d);try{let M=o?await fetch(o.createRelativeUrl(`sha1/src@${N}.txt`)):void 0;(!M||M.status===404)&&(M=await fetch(`file?path=${encodeURIComponent(d)}`)),M.status>=400?g.content
|
|
69
|
+
`)}const Ix=new RegExp("([\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~])))","g");function Xo(n){return n.replace(Ix,"")}const Vx=yc,Gx=({stack:n,setSelectedFrame:e,selectedFrame:i})=>{const r=n||[];return v.jsx(Vx,{name:"stack-trace",ariaLabel:"Stack trace",items:r,selectedItem:r[i],render:l=>{const o=l.file[1]===":"?"\\":"/";return v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"stack-trace-frame-function",children:l.function||"(anonymous)"}),v.jsx("span",{className:"stack-trace-frame-location",children:l.file.split(o).pop()}),v.jsx("span",{className:"stack-trace-frame-line",children:":"+l.line})]})},onSelected:l=>e(r.indexOf(l))})},ed=({noShadow:n,children:e,noMinHeight:i,className:r,sidebarBackground:l,onClick:o})=>v.jsx("div",{className:Fe("toolbar",n&&"no-shadow",i&&"no-min-height",r,l&&"toolbar-sidebar-background"),onClick:o,children:e});function Kx(n,e,i,r,l){const o=Di();return ec(async()=>{var w,E,_,T;const u=n==null?void 0:n[e],f=u!=null&&u.file?u:l;if(!f)return{source:{file:"",errors:[],content:void 0},targetLine:0,highlight:[]};const d=f.file;let g=i.get(d);g||(g={errors:((w=l==null?void 0:l.source)==null?void 0:w.errors)||[],content:(E=l==null?void 0:l.source)==null?void 0:E.content},i.set(d,g));const y=(f==null?void 0:f.line)||((_=g.errors[0])==null?void 0:_.line)||0,m=r&&d.startsWith(r)?d.substring(r.length+1):d,S=g.errors.map(N=>({type:"error",line:N.line,message:N.message}));if(S.push({line:y,type:"running"}),((T=l==null?void 0:l.source)==null?void 0:T.content)!==void 0)g.content=l.source.content;else if(g.content===void 0||f===l){const N=await Lb(d);try{let M=o?await fetch(o.createRelativeUrl(`sha1/src@${N}.txt`)):void 0;(!M||M.status===404)&&(M=await fetch(`file?path=${encodeURIComponent(d)}`)),M.status>=400?g.content="":g.content=await M.text()}catch{g.content=`<Unable to read "${d}">`}}return{model:o,source:g,highlight:S,targetLine:y,fileName:m,location:f}},[n,e,r,l],{source:{errors:[],content:"Loading…"},highlight:[]})}const Yx=({stack:n,sources:e,rootDir:i,fallbackLocation:r,stackFrameLocation:l,onOpenExternally:o})=>{const[u,f]=U.useState(),[d,g]=U.useState(0);U.useEffect(()=>{u!==n&&(f(n),g(0))},[n,u,f,g]);const{source:y,highlight:m,targetLine:S,fileName:w,location:E}=Kx(n,d,e,i,r),_=U.useCallback(()=>{E&&(o?o(E):window.location.href=`vscode://file//${E.file}:${E.line}`)},[o,E]),T=((n==null?void 0:n.length)??0)>1,N=Xx(w);return v.jsx(nc,{sidebarSize:200,orientation:l==="bottom"?"vertical":"horizontal",sidebarHidden:!T,main:v.jsxs("div",{className:"vbox","data-testid":"source-code",children:[w&&v.jsxs(ed,{children:[v.jsx("div",{className:"source-tab-file-name",title:w,children:v.jsx("div",{children:N})}),v.jsx(Wh,{description:"Copy filename",value:N}),E&&v.jsx(Ht,{icon:"link-external",title:"Open in VS Code",onClick:_})]}),v.jsx(xr,{text:y.content||"",highlighter:"javascript",highlight:m,revealLine:S,readOnly:!0,lineNumbers:!0,dataTestId:"source-code-mirror"})]}),sidebar:v.jsx(Gx,{stack:n,selectedFrame:d,setSelectedFrame:g})})};async function Lb(n){const e=new TextEncoder().encode(n),i=await crypto.subtle.digest("SHA-1",e),r=[],l=new DataView(i);for(let o=0;o<l.byteLength;o+=1){const u=l.getUint8(o).toString(16).padStart(2,"0");r.push(u)}return r.join("")}function Xx(n){if(!n)return"";const e=n!=null&&n.includes("/")?"/":"\\";return(n==null?void 0:n.split(e).pop())??""}const Fx=({prompt:n})=>v.jsx(Ko,{value:n,description:"Copy prompt",copiedDescription:v.jsxs(v.Fragment,{children:["Copied ",v.jsx("span",{className:"codicon codicon-copy",style:{marginLeft:"5px"}})]}),style:{width:"120px",justifyContent:"center"}});function Qx(n){return U.useMemo(()=>{if(!n)return{errors:new Map};const e=new Map;for(const i of n.errorDescriptors)e.set(i.message,i);return{errors:e}},[n])}function Jx({message:n,error:e,sdkLanguage:i,revealInSource:r}){var f;let l,o;const u=(f=e.stack)==null?void 0:f[0];return u&&(l=u.file.replace(/.*[/\\](.*)/,"$1")+":"+u.line,o=u.file+":"+u.line),v.jsxs("div",{style:{display:"flex",flexDirection:"column",overflowX:"clip"},children:[v.jsxs("div",{className:"hbox",style:{alignItems:"center",padding:"5px 10px",minHeight:36,fontWeight:"bold",color:"var(--vscode-errorForeground)",flex:0},children:[e.action&&Ph(e.action,{sdkLanguage:i}),l&&v.jsxs("div",{className:"action-location",children:["@ ",v.jsx("span",{title:o,onClick:()=>r(e),children:l})]})]}),v.jsx(_x,{error:n})]})}const Zx=({errorsModel:n,sdkLanguage:e,revealInSource:i,wallTime:r,testRunMetadata:l})=>{const o=Di(),u=ec(async()=>{const g=o==null?void 0:o.attachments.find(y=>y.name==="error-context");if(g)return await fetch(bc(o,g)).then(y=>y.text())},[o],void 0),f=U.useCallback(async g=>{var w;const y=(w=g.stack)==null?void 0:w[0];if(!y)return;let m=o?await fetch(o.createRelativeUrl(`sha1/src@${await Lb(y.file)}.txt`)):void 0;if((!m||m.status===404)&&(m=await fetch(`file?path=${encodeURIComponent(y.file)}`)),m.status>=400)return;const S=await m.text();return Px({source:S,message:Xo(g.message).split(`
|
|
70
70
|
`)[0]||void 0,location:y,linesAbove:100,linesBelow:100})},[o]),d=ec(()=>$x({testInfo:(o==null?void 0:o.title)??"",metadata:l,errorContext:u,errors:(o==null?void 0:o.errorDescriptors)??[],buildCodeFrame:f}),[u,l,o,f],void 0);return n.errors.size?v.jsxs("div",{className:"fill",style:{overflow:"auto"},children:[v.jsx("span",{style:{position:"absolute",right:"5px",top:"5px",zIndex:1},children:d&&v.jsx(Fx,{prompt:d})}),[...n.errors.entries()].map(([g,y])=>{const m=`error-${r}-${g}`;return v.jsx(Jx,{message:g,error:y,revealInSource:i,sdkLanguage:e},m)})]}):v.jsx(ms,{text:"No errors"})};function Px({source:n,message:e,location:i,linesAbove:r,linesBelow:l}){const o=n.split(`
|
|
71
71
|
`).slice(),u=Math.max(0,i.line-r-1),f=Math.min(o.length,i.line+l),d=o.slice(u,f),g=String(f).length,y=d.map((m,S)=>`${u+S+1===i.line?"> ":" "}${(u+S+1).toString().padEnd(g," ")} | ${m}`);return e&&y.splice(i.line-u,0,`${" ".repeat(g+2)} | ${" ".repeat(i.column-2)} ^ ${e}`),y.join(`
|
|
72
72
|
`)}const Wx=yc;function eT(n,e){const{entries:i}=U.useMemo(()=>{if(!n)return{entries:[]};const l=[];function o(f){var y,m,S,w,E,_;const d=l[l.length-1];d&&((y=f.browserMessage)==null?void 0:y.bodyString)===((m=d.browserMessage)==null?void 0:m.bodyString)&&((S=f.browserMessage)==null?void 0:S.location)===((w=d.browserMessage)==null?void 0:w.location)&&f.browserError===d.browserError&&((E=f.nodeMessage)==null?void 0:E.html)===((_=d.nodeMessage)==null?void 0:_.html)&&f.isError===d.isError&&f.isWarning===d.isWarning&&f.timestamp-d.timestamp<1e3?d.repeat++:l.push({...f,repeat:1})}const u=[...n.events,...n.stdio].sort((f,d)=>{const g="time"in f?f.time:f.timestamp,y="time"in d?d.time:d.timestamp;return g-y});for(const f of u){if(f.type==="console"){const d=f.args&&f.args.length?nT(f.args):Rb(f.text),g=f.location.url,m=`${g?g.substring(g.lastIndexOf("/")+1):"<anonymous>"}:${f.location.lineNumber}`;o({browserMessage:{body:d,bodyString:f.text,location:m},isError:f.messageType==="error",isWarning:f.messageType==="warning",timestamp:f.time})}if(f.type==="event"&&f.method==="pageError"&&o({browserError:f.params.error,isError:!0,isWarning:!1,timestamp:f.time}),f.type==="stderr"||f.type==="stdout"){let d="";f.text&&(d=nl(f.text.trim())||""),f.base64&&(d=nl(atob(f.base64).trim())||""),o({nodeMessage:{html:d},isError:f.type==="stderr",isWarning:!1,timestamp:f.timestamp})}}return{entries:l}},[n]);return{entries:U.useMemo(()=>e?i.filter(l=>l.timestamp>=e.minimum&&l.timestamp<=e.maximum):i,[i,e])}}const tT=({consoleModel:n,boundaries:e,onEntryHovered:i,onAccepted:r})=>n.entries.length?v.jsx("div",{className:"console-tab",children:v.jsx(Wx,{name:"console",onAccepted:r,onHighlighted:l=>i==null?void 0:i(l?n.entries.indexOf(l):void 0),items:n.entries,isError:l=>l.isError,isWarning:l=>l.isWarning,render:l=>{const o=Et(l.timestamp-e.minimum),u=v.jsx("span",{className:"console-time",children:o}),f=l.isError?"status-error":l.isWarning?"status-warning":"status-none",d=l.browserMessage||l.browserError?v.jsx("span",{className:Fe("codicon","codicon-browser",f),title:"Browser message"}):v.jsx("span",{className:Fe("codicon","codicon-file",f),title:"Runner message"});let g,y,m,S;const{browserMessage:w,browserError:E,nodeMessage:_}=l;if(w&&(g=w.location,y=w.body),E){const{error:T,value:N}=E;T?(y=T.message,S=T.stack):y=String(N)}return _&&(m=_.html),v.jsxs("div",{className:"console-line",children:[u,d,g&&v.jsx("span",{className:"console-location",children:g}),l.repeat>1&&v.jsx("span",{className:"console-repeat",children:l.repeat}),y&&v.jsx("span",{className:"console-line-message",children:y}),m&&v.jsx("span",{className:"console-line-message",dangerouslySetInnerHTML:{__html:m}}),S&&v.jsx("div",{className:"console-stack",children:S})]})}})}):v.jsx(ms,{text:"No console entries"});function nT(n){if(n.length===1)return Rb(n[0].preview);const e=typeof n[0].value=="string"&&n[0].value.includes("%"),i=e?n[0].value:"",r=e?n.slice(1):n;let l=0;const o=/%([%sdifoOc])/g;let u;const f=[];let d=[];f.push(v.jsx("span",{children:d},f.length+1));let g=0;for(;(u=o.exec(i))!==null;){const y=i.substring(g,u.index);d.push(v.jsx("span",{children:y},d.length+1)),g=u.index+2;const m=u[0][1];if(m==="%")d.push(v.jsx("span",{children:"%"},d.length+1));else if(m==="s"||m==="o"||m==="O"||m==="d"||m==="i"||m==="f"){const S=r[l++],w={};typeof(S==null?void 0:S.value)!="string"&&(w.color="var(--vscode-debugTokenExpression-number)"),d.push(v.jsx("span",{style:w,children:(S==null?void 0:S.preview)||""},d.length+1))}else if(m==="c"){d=[];const S=r[l++],w=S?iT(S.preview):{};f.push(v.jsx("span",{style:w,children:d},f.length+1))}}for(g<i.length&&d.push(v.jsx("span",{children:i.substring(g)},d.length+1));l<r.length;l++){const y=r[l],m={};d.length&&d.push(v.jsx("span",{children:" "},d.length+1)),typeof(y==null?void 0:y.value)!="string"&&(m.color="var(--vscode-debugTokenExpression-number)"),d.push(v.jsx("span",{style:m,children:(y==null?void 0:y.preview)||""},d.length+1))}return f}function Rb(n){return[v.jsx("span",{dangerouslySetInnerHTML:{__html:nl(n.trim())}})]}function iT(n){try{const e={},i=n.split(";");for(const r of i){const l=r.trim();if(!l)continue;let[o,u]=l.split(":");if(o=o.trim(),u=u.trim(),!sT(o))continue;const f=o.replace(/-([a-z])/g,d=>d[1].toUpperCase());e[f]=u}return e}catch{return{}}}function sT(n){return["background","border","color","font","line","margin","padding","text"].some(i=>n.startsWith(i))}const jh=({tabs:n,selectedTab:e,setSelectedTab:i,leftToolbar:r,rightToolbar:l,dataTestId:o,mode:u})=>{const f=U.useId();return e||(e=n[0].id),u||(u="default"),v.jsx("div",{className:"tabbed-pane","data-testid":o,children:v.jsxs("div",{className:"vbox",children:[v.jsxs(ed,{children:[r&&v.jsxs("div",{style:{flex:"none",display:"flex",margin:"0 4px",alignItems:"center"},children:[...r]}),u==="default"&&v.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:[...n.map(d=>v.jsx(Db,{id:d.id,ariaControls:`${f}-${d.id}`,title:d.title,count:d.count,errorCount:d.errorCount,selected:e===d.id,onSelect:i},d.id))]}),u==="select"&&v.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:v.jsx("select",{style:{width:"100%",background:"none",cursor:"pointer"},value:e,onChange:d=>{i==null||i(n[d.currentTarget.selectedIndex].id)},children:n.map(d=>{let g="";return d.count&&(g=` (${d.count})`),d.errorCount&&(g=` (${d.errorCount})`),v.jsxs("option",{value:d.id,role:"tab","aria-controls":`${f}-${d.id}`,children:[d.title,g]},d.id)})})}),l&&v.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:[...l]})]}),n.map(d=>{const g="tab-content tab-"+d.id;if(d.component)return v.jsx("div",{id:`${f}-${d.id}`,role:"tabpanel","aria-label":d.title,className:g,style:{display:e===d.id?"inherit":"none"},children:d.component},d.id);if(e===d.id)return v.jsx("div",{id:`${f}-${d.id}`,role:"tabpanel","aria-label":d.title,className:g,children:d.render()},d.id)})]})})},Db=({id:n,title:e,count:i,errorCount:r,selected:l,onSelect:o,ariaControls:u})=>v.jsxs("div",{className:Fe("tabbed-pane-tab",l&&"selected"),onClick:()=>o==null?void 0:o(n),role:"tab",title:e,"aria-controls":u,"aria-selected":l,children:[v.jsx("div",{className:"tabbed-pane-tab-label",children:e}),!!i&&v.jsx("div",{className:"tabbed-pane-tab-counter",children:i}),!!r&&v.jsx("div",{className:"tabbed-pane-tab-counter error",children:r})]});async function rT(n){const e=navigator.platform.includes("Win")?"win":"unix";let i=[];const r=new Set(["accept-encoding","host","method","path","scheme","version","authority","protocol"]);function l(m){return'^"'+m.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/[^a-zA-Z0-9\s_\-:=+~'\/.',?;()*`]/g,"^$&").replace(/%(?=[a-zA-Z0-9_])/g,"%^").replace(/\r?\n/g,`^
|
|
@@ -115,7 +115,7 @@ ${n.stack}`,{e:{n:n.name,m:n.message,s:u}}}if(TA(n))return{d:n.toJSON()};if(EA(n
|
|
|
115
115
|
const module = {};
|
|
116
116
|
${e}
|
|
117
117
|
return module.exports.default();
|
|
118
|
-
})()`);return new r(this,i)}async viewportRatio(e){return await new Promise(i=>{const r=new IntersectionObserver(l=>{i(l[0].intersectionRatio),r.disconnect()});r.observe(e),this.utils.builtins.requestAnimationFrame(()=>{})})}getElementBorderWidth(e){if(e.nodeType!==Node.ELEMENT_NODE||!e.ownerDocument||!e.ownerDocument.defaultView)return{left:0,top:0};const i=e.ownerDocument.defaultView.getComputedStyle(e);return{left:parseInt(i.borderLeftWidth||"",10),top:parseInt(i.borderTopWidth||"",10)}}describeIFrameStyle(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return"error:notconnected";const i=e.ownerDocument.defaultView;for(let l=e;l;l=bt(l))if(i.getComputedStyle(l).transform!=="none")return"transformed";const r=i.getComputedStyle(e);return{left:parseInt(r.borderLeftWidth||"",10)+parseInt(r.paddingLeft||"",10),top:parseInt(r.borderTopWidth||"",10)+parseInt(r.paddingTop||"",10)}}retarget(e,i){let r=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement;if(!r)return null;if(i==="none")return r;if(!r.matches("input, textarea, select")&&!r.isContentEditable&&(i==="button-link"?r=r.closest("button, [role=button], a, [role=link]")||r:r=r.closest("button, [role=button], [role=checkbox], [role=radio]")||r),i==="follow-label"&&!r.matches("a, input, textarea, button, select, [role=link], [role=button], [role=checkbox], [role=radio]")&&!r.isContentEditable){const l=r.closest("label");l&&l.control&&(r=l.control)}return r}async checkElementStates(e,i){if(i.includes("stable")){const r=await this._checkElementIsStable(e);if(r===!1)return{missingState:"stable"};if(r==="error:notconnected")return"error:notconnected"}for(const r of i)if(r!=="stable"){const l=this.elementState(e,r);if(l.received==="error:notconnected")return"error:notconnected";if(!l.matches)return{missingState:r}}}async _checkElementIsStable(e){const i=Symbol("continuePolling");let r,l=0,o=0;const u=()=>{const m=this.retarget(e,"no-follow-label");if(!m)return"error:notconnected";const S=this.utils.builtins.performance.now();if(this._stableRafCount>1&&S-o<15)return i;o=S;const w=m.getBoundingClientRect(),E={x:w.top,y:w.left,width:w.width,height:w.height};if(r){if(!(E.x===r.x&&E.y===r.y&&E.width===r.width&&E.height===r.height))return!1;if(++l>=this._stableRafCount)return!0}return r=E,i};let f,d;const g=new Promise((m,S)=>{f=m,d=S}),y=()=>{try{const m=u();m!==i?f(m):this.utils.builtins.requestAnimationFrame(y)}catch(m){d(m)}};return this.utils.builtins.requestAnimationFrame(y),g}_createAriaRefEngine(){return{queryAll:(i,r)=>{var o,u;const l=(u=(o=this._lastAriaSnapshotForQuery)==null?void 0:o.elements)==null?void 0:u.get(r);return l&&l.isConnected?[l]:[]}}}elementState(e,i){const r=this.retarget(e,["visible","hidden"].includes(i)?"none":"follow-label");if(!r||!r.isConnected)return i==="hidden"?{matches:!0,received:"hidden"}:{matches:!1,received:"error:notconnected"};if(i==="visible"||i==="hidden"){const l=Oi(r);return{matches:i==="visible"?l:!l,received:l?"visible":"hidden"}}if(i==="disabled"||i==="enabled"){const l=cc(r);return{matches:i==="disabled"?l:!l,received:l?"disabled":"enabled"}}if(i==="editable"){const l=cc(r),o=tE(r);if(o==="error")throw this.createStacklessError("Element is not an <input>, <textarea>, <select> or [contenteditable] and does not have a role allowing [aria-readonly]");return{matches:!l&&!o,received:l?"disabled":o?"readOnly":"editable"}}if(i==="checked"||i==="unchecked"){const l=i==="checked",o=WT(r);if(o==="error")throw this.createStacklessError("Not a checkbox or radio button");const u=r.nodeName==="INPUT"&&r.type==="radio";return{matches:l===o,received:o?"checked":"unchecked",isRadio:u}}if(i==="indeterminate"){const l=PT(r);if(l==="error")throw this.createStacklessError("Not a checkbox or radio button");return{matches:l==="mixed",received:l===!0?"checked":l===!1?"unchecked":"mixed"}}throw this.createStacklessError(`Unexpected element state "${i}"`)}selectOptions(e,i){const r=this.retarget(e,"follow-label");if(!r)return"error:notconnected";if(r.nodeName.toLowerCase()!=="select")throw this.createStacklessError("Element is not a <select> element");const l=r,o=[...l.options],u=[];let f=i.slice();for(let d=0;d<o.length;d++){const g=o[d],y=m=>{if(m instanceof Node)return g===m;let S=!0;return m.valueOrLabel!==void 0&&(S=S&&(m.valueOrLabel===g.value||m.valueOrLabel===g.label)),m.value!==void 0&&(S=S&&m.value===g.value),m.label!==void 0&&(S=S&&m.label===g.label),m.index!==void 0&&(S=S&&m.index===d),S};if(f.some(y)){if(!this.elementState(g,"enabled").matches)return"error:optionnotenabled";if(u.push(g),l.multiple)f=f.filter(m=>!y(m));else{f=[];break}}}return f.length?"error:optionsnotfound":(l.value=void 0,u.forEach(d=>d.selected=!0),l.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),l.dispatchEvent(new Event("change",{bubbles:!0})),u.map(d=>d.value))}fill(e,i){const r=this.retarget(e,"follow-label");if(!r)return"error:notconnected";if(r.nodeName.toLowerCase()==="input"){const l=r,o=l.type.toLowerCase(),u=new Set(["color","date","time","datetime-local","month","range","week"]);if(!new Set(["","email","number","password","search","tel","text","url"]).has(o)&&!u.has(o))throw this.createStacklessError(`Input of type "${o}" cannot be filled`);if(o==="number"&&(i=i.trim(),isNaN(Number(i))))throw this.createStacklessError("Cannot type text into input[type=number]");if(u.has(o)){if(i=i.trim(),l.focus(),l.value=i,l.value!==i)throw this.createStacklessError("Malformed value");return r.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),r.dispatchEvent(new Event("change",{bubbles:!0})),"done"}}else if(r.nodeName.toLowerCase()!=="textarea"){if(!r.isContentEditable)throw this.createStacklessError("Element is not an <input>, <textarea> or [contenteditable] element")}return this.selectText(r),"needsinput"}selectText(e){const i=this.retarget(e,"follow-label");if(!i)return"error:notconnected";if(i.nodeName.toLowerCase()==="input"){const o=i;return o.select(),o.focus(),"done"}if(i.nodeName.toLowerCase()==="textarea"){const o=i;return o.selectionStart=0,o.selectionEnd=o.value.length,o.focus(),"done"}const r=i.ownerDocument.createRange();r.selectNodeContents(i);const l=i.ownerDocument.defaultView.getSelection();return l&&(l.removeAllRanges(),l.addRange(r)),i.focus(),"done"}_activelyFocused(e){const i=e.getRootNode().activeElement,r=i===e&&!!e.ownerDocument&&e.ownerDocument.hasFocus();return{activeElement:i,isFocused:r}}focusNode(e,i){if(!e.isConnected)return"error:notconnected";if(e.nodeType!==Node.ELEMENT_NODE)throw this.createStacklessError("Node is not an element");const{activeElement:r,isFocused:l}=this._activelyFocused(e);if(e.isContentEditable&&!l&&r&&r.blur&&r.blur(),e.focus(),e.focus(),i&&!l&&e.nodeName.toLowerCase()==="input")try{e.setSelectionRange(0,0)}catch{}return"done"}blurNode(e){if(!e.isConnected)return"error:notconnected";if(e.nodeType!==Node.ELEMENT_NODE)throw this.createStacklessError("Node is not an element");return e.blur(),"done"}setInputFiles(e,i){if(e.nodeType!==Node.ELEMENT_NODE)return"Node is not of type HTMLElement";const r=e;if(r.nodeName!=="INPUT")return"Not an <input> element";const l=r;if((l.getAttribute("type")||"").toLowerCase()!=="file")return"Not an input[type=file] element";const u=i.map(d=>{const g=Uint8Array.from(atob(d.buffer),y=>y.charCodeAt(0));return new File([g],d.name,{type:d.mimeType,lastModified:d.lastModifiedMs})}),f=new DataTransfer;for(const d of u)f.items.add(d);l.files=f.files,l.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),l.dispatchEvent(new Event("change",{bubbles:!0}))}expectHitTarget(e,i){const r=[];let l=i;for(;l;){const y=qb(l);if(!y||(r.push(y),y.nodeType===9))break;l=y.host}let o;for(let y=r.length-1;y>=0;y--){const m=r[y],S=m.elementsFromPoint(e.x,e.y),w=m.elementFromPoint(e.x,e.y);if(w&&S[0]&&bt(w)===S[0]){const _=this.window.getComputedStyle(w);(_==null?void 0:_.display)==="contents"&&S.unshift(w)}S[0]&&S[0].shadowRoot===m&&S[1]===w&&S.shift();const E=S[0];if(!E||(o=E,y&&E!==r[y-1].host))break}const u=[];for(;o&&o!==i;)u.push(o),o=o.assignedSlot??bt(o);if(o===i)return"done";const f=this.previewNode(u[0]||this.document.documentElement);let d,g=i;for(;g;){const y=u.indexOf(g);if(y!==-1){y>1&&(d=this.previewNode(u[y-1]));break}g=bt(g)}return d?{hitTargetDescription:`${f} from ${d} subtree`}:{hitTargetDescription:f}}setupHitTargetInterceptor(e,i,r,l){const o=this.retarget(e,"button-link");if(!o||!o.isConnected)return"error:notconnected";if(r){const y=this.expectHitTarget(r,o);if(y!=="done")return y.hitTargetDescription}if(i==="drag")return{stop:()=>"done"};const u={hover:this._hoverHitTargetInterceptorEvents,tap:this._tapHitTargetInterceptorEvents,mouse:this._mouseHitTargetInterceptorEvents}[i];let f;const d=y=>{if(!u.has(y.type)||!y.isTrusted)return;const m=this.window.TouchEvent&&y instanceof this.window.TouchEvent?y.touches[0]:y;f===void 0&&m&&(f=this.expectHitTarget({x:m.clientX,y:m.clientY},o)),(l||f!=="done"&&f!==void 0)&&(y.preventDefault(),y.stopPropagation(),y.stopImmediatePropagation())},g=()=>(this._hitTargetInterceptor===d&&(this._hitTargetInterceptor=void 0),f||"done");return this._hitTargetInterceptor=d,{stop:g}}dispatchEvent(e,i,r){var u,f,d;let l;const o={bubbles:!0,cancelable:!0,composed:!0,...r};switch(this._eventTypes.get(i)){case"mouse":l=new MouseEvent(i,o);break;case"keyboard":l=new KeyboardEvent(i,o);break;case"touch":{if(this._browserName==="webkit"){const g=m=>{var E,_;if(m instanceof Touch)return m;let S=m.pageX;S===void 0&&m.clientX!==void 0&&(S=m.clientX+(((E=this.document.scrollingElement)==null?void 0:E.scrollLeft)||0));let w=m.pageY;return w===void 0&&m.clientY!==void 0&&(w=m.clientY+(((_=this.document.scrollingElement)==null?void 0:_.scrollTop)||0)),this.document.createTouch(this.window,m.target??e,m.identifier,S,w,m.screenX,m.screenY,m.radiusX,m.radiusY,m.rotationAngle,m.force)},y=m=>m instanceof TouchList||!m?m:this.document.createTouchList(...m.map(g));o.target??(o.target=e),o.touches=y(o.touches),o.targetTouches=y(o.targetTouches),o.changedTouches=y(o.changedTouches),l=new TouchEvent(i,o)}else o.target??(o.target=e),o.touches=(u=o.touches)==null?void 0:u.map(g=>g instanceof Touch?g:new Touch({...g,target:g.target??e})),o.targetTouches=(f=o.targetTouches)==null?void 0:f.map(g=>g instanceof Touch?g:new Touch({...g,target:g.target??e})),o.changedTouches=(d=o.changedTouches)==null?void 0:d.map(g=>g instanceof Touch?g:new Touch({...g,target:g.target??e})),l=new TouchEvent(i,o);break}case"pointer":l=new PointerEvent(i,o);break;case"focus":l=new FocusEvent(i,o);break;case"drag":l=new DragEvent(i,o);break;case"wheel":l=new WheelEvent(i,o);break;case"deviceorientation":try{l=new DeviceOrientationEvent(i,o)}catch{const{bubbles:g,cancelable:y,alpha:m,beta:S,gamma:w,absolute:E}=o;l=this.document.createEvent("DeviceOrientationEvent"),l.initDeviceOrientationEvent(i,g,y,m,S,w,E)}break;case"devicemotion":try{l=new DeviceMotionEvent(i,o)}catch{const{bubbles:g,cancelable:y,acceleration:m,accelerationIncludingGravity:S,rotationRate:w,interval:E}=o;l=this.document.createEvent("DeviceMotionEvent"),l.initDeviceMotionEvent(i,g,y,m,S,w,E)}break;default:l=new Event(i,o);break}e.dispatchEvent(l)}previewNode(e){if(e.nodeType===Node.TEXT_NODE)return Ro(`#text=${e.nodeValue||""}`);if(e.nodeType!==Node.ELEMENT_NODE)return Ro(`<${e.nodeName.toLowerCase()} />`);const i=e,r=[];for(let d=0;d<i.attributes.length;d++){const{name:g,value:y}=i.attributes[d];g!=="style"&&(!y&&this._booleanAttributes.has(g)?r.push(` ${g}`):r.push(` ${g}="${y}"`))}r.sort((d,g)=>d.length-g.length);const l=e0(r.join(""),500);if(this._autoClosingTags.has(i.nodeName))return Ro(`<${i.nodeName.toLowerCase()}${l}/>`);const o=i.childNodes;let u=!1;if(o.length<=5){u=!0;for(let d=0;d<o.length;d++)u=u&&o[d].nodeType===Node.TEXT_NODE}const f=u?i.textContent||"":o.length?"…":"";return Ro(`<${i.nodeName.toLowerCase()}${l}>${e0(f,50)}</${i.nodeName.toLowerCase()}>`)}_generateSelectors(e){this._evaluator.begin(),vc(),rd();try{const i=this._isUtilityWorld&&this._browserName==="firefox"?2:10;return e.slice(0,i).map(l=>({preview:this.previewNode(l),selector:this.generateSelectorSimple(l)})).map((l,o)=>`${o+1}) ${l.preview} aka ${Mi(this._sdkLanguage,l.selector)}`)}finally{ad(),Sc(),this._evaluator.end()}}strictModeViolationError(e,i){const r=this._generateSelectors(i).map(l=>`
|
|
118
|
+
})()`);return new r(this,i)}async viewportRatio(e){return await new Promise(i=>{const r=new IntersectionObserver(l=>{i(l[0].intersectionRatio),r.disconnect()});r.observe(e),this.utils.builtins.requestAnimationFrame(()=>{})})}getElementBorderWidth(e){if(e.nodeType!==Node.ELEMENT_NODE||!e.ownerDocument||!e.ownerDocument.defaultView)return{left:0,top:0};const i=e.ownerDocument.defaultView.getComputedStyle(e);return{left:parseInt(i.borderLeftWidth||"",10),top:parseInt(i.borderTopWidth||"",10)}}describeIFrameStyle(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return"error:notconnected";const i=e.ownerDocument.defaultView;for(let l=e;l;l=bt(l))if(i.getComputedStyle(l).transform!=="none")return"transformed";const r=i.getComputedStyle(e);return{left:parseInt(r.borderLeftWidth||"",10)+parseInt(r.paddingLeft||"",10),top:parseInt(r.borderTopWidth||"",10)+parseInt(r.paddingTop||"",10)}}retarget(e,i){let r=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement;if(!r)return null;if(i==="none")return r;if(!r.matches("input, textarea, select")&&!r.isContentEditable&&(i==="button-link"?r=r.closest("button, [role=button], a, [role=link]")||r:r=r.closest("button, [role=button], [role=checkbox], [role=radio]")||r),i==="follow-label"&&!r.matches("a, input, textarea, button, select, [role=link], [role=button], [role=checkbox], [role=radio]")&&!r.isContentEditable){const l=r.closest("label");l&&l.control&&(r=l.control)}return r}async checkElementStates(e,i){if(i.includes("stable")){const r=await this._checkElementIsStable(e);if(r===!1)return{missingState:"stable"};if(r==="error:notconnected")return"error:notconnected"}for(const r of i)if(r!=="stable"){const l=this.elementState(e,r);if(l.received==="error:notconnected")return"error:notconnected";if(!l.matches)return{missingState:r}}}async _checkElementIsStable(e){const i=Symbol("continuePolling");let r,l=0,o=0;const u=()=>{const m=this.retarget(e,"no-follow-label");if(!m)return"error:notconnected";const S=this.utils.builtins.performance.now();if(this._stableRafCount>1&&S-o<15)return i;o=S;const w=m.getBoundingClientRect(),E={x:w.top,y:w.left,width:w.width,height:w.height};if(r){if(!(E.x===r.x&&E.y===r.y&&E.width===r.width&&E.height===r.height))return!1;if(++l>=this._stableRafCount)return!0}return r=E,i};let f,d;const g=new Promise((m,S)=>{f=m,d=S}),y=()=>{try{const m=u();m!==i?f(m):this.utils.builtins.requestAnimationFrame(y)}catch(m){d(m)}};return this.utils.builtins.requestAnimationFrame(y),g}_createAriaRefEngine(){return{queryAll:(i,r)=>{var o,u;const l=(u=(o=this._lastAriaSnapshotForQuery)==null?void 0:o.elements)==null?void 0:u.get(r);return l&&l.isConnected?[l]:[]}}}elementState(e,i){const r=this.retarget(e,["visible","hidden"].includes(i)?"none":"follow-label");if(!r||!r.isConnected)return i==="hidden"?{matches:!0,received:"hidden"}:{matches:!1,received:"error:notconnected"};if(i==="visible"||i==="hidden"){const l=Oi(r);return{matches:i==="visible"?l:!l,received:l?"visible":"hidden"}}if(i==="disabled"||i==="enabled"){const l=cc(r);return{matches:i==="disabled"?l:!l,received:l?"disabled":"enabled"}}if(i==="editable"){const l=cc(r),o=tE(r);if(o==="error")throw this.createStacklessError("Element is not an <input>, <textarea>, <select> or [contenteditable] and does not have a role allowing [aria-readonly]");return{matches:!l&&!o,received:l?"disabled":o?"readOnly":"editable"}}if(i==="checked"||i==="unchecked"){const l=i==="checked",o=WT(r);if(o==="error")throw this.createStacklessError("Not a checkbox or radio button");const u=r.nodeName==="INPUT"&&r.type==="radio";return{matches:l===o,received:o?"checked":"unchecked",isRadio:u}}if(i==="indeterminate"){const l=PT(r);if(l==="error")throw this.createStacklessError("Not a checkbox or radio button");return{matches:l==="mixed",received:l===!0?"checked":l===!1?"unchecked":"mixed"}}throw this.createStacklessError(`Unexpected element state "${i}"`)}selectOptions(e,i){const r=this.retarget(e,"follow-label");if(!r)return"error:notconnected";if(r.nodeName.toLowerCase()!=="select")throw this.createStacklessError("Element is not a <select> element");const l=r,o=[...l.options],u=[];let f=i.slice();for(let d=0;d<o.length;d++){const g=o[d],y=m=>{if(m instanceof Node)return g===m;let S=!0;return m.valueOrLabel!==void 0&&(S=S&&(m.valueOrLabel===g.value||m.valueOrLabel===g.label)),m.value!==void 0&&(S=S&&m.value===g.value),m.label!==void 0&&(S=S&&m.label===g.label),m.index!==void 0&&(S=S&&m.index===d),S};if(f.some(y)){if(!this.elementState(g,"enabled").matches)return"error:optionnotenabled";if(u.push(g),l.multiple)f=f.filter(m=>!y(m));else{f=[];break}}}return f.length?"error:optionsnotfound":(l.value=void 0,u.forEach(d=>d.selected=!0),l.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),l.dispatchEvent(new Event("change",{bubbles:!0})),u.map(d=>d.value))}fill(e,i){const r=this.retarget(e,"follow-label");if(!r)return"error:notconnected";if(r.nodeName.toLowerCase()==="input"){const l=r,o=l.type.toLowerCase(),u=new Set(["color","date","time","datetime-local","month","range","week"]);if(!new Set(["","email","number","password","search","tel","text","url"]).has(o)&&!u.has(o))throw this.createStacklessError(`Input of type "${o}" cannot be filled`);if(o==="number"&&(i=i.trim(),isNaN(Number(i))))throw this.createStacklessError("Cannot type text into input[type=number]");if(o==="color"&&(i=i.toLowerCase()),u.has(o)){if(i=i.trim(),l.focus(),l.value=i,l.value!==i)throw this.createStacklessError("Malformed value");return r.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),r.dispatchEvent(new Event("change",{bubbles:!0})),"done"}}else if(r.nodeName.toLowerCase()!=="textarea"){if(!r.isContentEditable)throw this.createStacklessError("Element is not an <input>, <textarea> or [contenteditable] element")}return this.selectText(r),"needsinput"}selectText(e){const i=this.retarget(e,"follow-label");if(!i)return"error:notconnected";if(i.nodeName.toLowerCase()==="input"){const o=i;return o.select(),o.focus(),"done"}if(i.nodeName.toLowerCase()==="textarea"){const o=i;return o.selectionStart=0,o.selectionEnd=o.value.length,o.focus(),"done"}const r=i.ownerDocument.createRange();r.selectNodeContents(i);const l=i.ownerDocument.defaultView.getSelection();return l&&(l.removeAllRanges(),l.addRange(r)),i.focus(),"done"}_activelyFocused(e){const i=e.getRootNode().activeElement,r=i===e&&!!e.ownerDocument&&e.ownerDocument.hasFocus();return{activeElement:i,isFocused:r}}focusNode(e,i){if(!e.isConnected)return"error:notconnected";if(e.nodeType!==Node.ELEMENT_NODE)throw this.createStacklessError("Node is not an element");const{activeElement:r,isFocused:l}=this._activelyFocused(e);if(e.isContentEditable&&!l&&r&&r.blur&&r.blur(),e.focus(),e.focus(),i&&!l&&e.nodeName.toLowerCase()==="input")try{e.setSelectionRange(0,0)}catch{}return"done"}blurNode(e){if(!e.isConnected)return"error:notconnected";if(e.nodeType!==Node.ELEMENT_NODE)throw this.createStacklessError("Node is not an element");return e.blur(),"done"}setInputFiles(e,i){if(e.nodeType!==Node.ELEMENT_NODE)return"Node is not of type HTMLElement";const r=e;if(r.nodeName!=="INPUT")return"Not an <input> element";const l=r;if((l.getAttribute("type")||"").toLowerCase()!=="file")return"Not an input[type=file] element";const u=i.map(d=>{const g=Uint8Array.from(atob(d.buffer),y=>y.charCodeAt(0));return new File([g],d.name,{type:d.mimeType,lastModified:d.lastModifiedMs})}),f=new DataTransfer;for(const d of u)f.items.add(d);l.files=f.files,l.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),l.dispatchEvent(new Event("change",{bubbles:!0}))}expectHitTarget(e,i){const r=[];let l=i;for(;l;){const y=qb(l);if(!y||(r.push(y),y.nodeType===9))break;l=y.host}let o;for(let y=r.length-1;y>=0;y--){const m=r[y],S=m.elementsFromPoint(e.x,e.y),w=m.elementFromPoint(e.x,e.y);if(w&&S[0]&&bt(w)===S[0]){const _=this.window.getComputedStyle(w);(_==null?void 0:_.display)==="contents"&&S.unshift(w)}S[0]&&S[0].shadowRoot===m&&S[1]===w&&S.shift();const E=S[0];if(!E||(o=E,y&&E!==r[y-1].host))break}const u=[];for(;o&&o!==i;)u.push(o),o=o.assignedSlot??bt(o);if(o===i)return"done";const f=this.previewNode(u[0]||this.document.documentElement);let d,g=i;for(;g;){const y=u.indexOf(g);if(y!==-1){y>1&&(d=this.previewNode(u[y-1]));break}g=bt(g)}return d?{hitTargetDescription:`${f} from ${d} subtree`}:{hitTargetDescription:f}}setupHitTargetInterceptor(e,i,r,l){const o=this.retarget(e,"button-link");if(!o||!o.isConnected)return"error:notconnected";if(r){const y=this.expectHitTarget(r,o);if(y!=="done")return y.hitTargetDescription}if(i==="drag")return{stop:()=>"done"};const u={hover:this._hoverHitTargetInterceptorEvents,tap:this._tapHitTargetInterceptorEvents,mouse:this._mouseHitTargetInterceptorEvents}[i];let f;const d=y=>{if(!u.has(y.type)||!y.isTrusted)return;const m=this.window.TouchEvent&&y instanceof this.window.TouchEvent?y.touches[0]:y;f===void 0&&m&&(f=this.expectHitTarget({x:m.clientX,y:m.clientY},o)),(l||f!=="done"&&f!==void 0)&&(y.preventDefault(),y.stopPropagation(),y.stopImmediatePropagation())},g=()=>(this._hitTargetInterceptor===d&&(this._hitTargetInterceptor=void 0),f||"done");return this._hitTargetInterceptor=d,{stop:g}}dispatchEvent(e,i,r){var u,f,d;let l;const o={bubbles:!0,cancelable:!0,composed:!0,...r};switch(this._eventTypes.get(i)){case"mouse":l=new MouseEvent(i,o);break;case"keyboard":l=new KeyboardEvent(i,o);break;case"touch":{if(this._browserName==="webkit"){const g=m=>{var E,_;if(m instanceof Touch)return m;let S=m.pageX;S===void 0&&m.clientX!==void 0&&(S=m.clientX+(((E=this.document.scrollingElement)==null?void 0:E.scrollLeft)||0));let w=m.pageY;return w===void 0&&m.clientY!==void 0&&(w=m.clientY+(((_=this.document.scrollingElement)==null?void 0:_.scrollTop)||0)),this.document.createTouch(this.window,m.target??e,m.identifier,S,w,m.screenX,m.screenY,m.radiusX,m.radiusY,m.rotationAngle,m.force)},y=m=>m instanceof TouchList||!m?m:this.document.createTouchList(...m.map(g));o.target??(o.target=e),o.touches=y(o.touches),o.targetTouches=y(o.targetTouches),o.changedTouches=y(o.changedTouches),l=new TouchEvent(i,o)}else o.target??(o.target=e),o.touches=(u=o.touches)==null?void 0:u.map(g=>g instanceof Touch?g:new Touch({...g,target:g.target??e})),o.targetTouches=(f=o.targetTouches)==null?void 0:f.map(g=>g instanceof Touch?g:new Touch({...g,target:g.target??e})),o.changedTouches=(d=o.changedTouches)==null?void 0:d.map(g=>g instanceof Touch?g:new Touch({...g,target:g.target??e})),l=new TouchEvent(i,o);break}case"pointer":l=new PointerEvent(i,o);break;case"focus":l=new FocusEvent(i,o);break;case"drag":l=new DragEvent(i,o);break;case"wheel":l=new WheelEvent(i,o);break;case"deviceorientation":try{l=new DeviceOrientationEvent(i,o)}catch{const{bubbles:g,cancelable:y,alpha:m,beta:S,gamma:w,absolute:E}=o;l=this.document.createEvent("DeviceOrientationEvent"),l.initDeviceOrientationEvent(i,g,y,m,S,w,E)}break;case"devicemotion":try{l=new DeviceMotionEvent(i,o)}catch{const{bubbles:g,cancelable:y,acceleration:m,accelerationIncludingGravity:S,rotationRate:w,interval:E}=o;l=this.document.createEvent("DeviceMotionEvent"),l.initDeviceMotionEvent(i,g,y,m,S,w,E)}break;default:l=new Event(i,o);break}e.dispatchEvent(l)}previewNode(e){if(e.nodeType===Node.TEXT_NODE)return Ro(`#text=${e.nodeValue||""}`);if(e.nodeType!==Node.ELEMENT_NODE)return Ro(`<${e.nodeName.toLowerCase()} />`);const i=e,r=[];for(let d=0;d<i.attributes.length;d++){const{name:g,value:y}=i.attributes[d];g!=="style"&&(!y&&this._booleanAttributes.has(g)?r.push(` ${g}`):r.push(` ${g}="${y}"`))}r.sort((d,g)=>d.length-g.length);const l=e0(r.join(""),500);if(this._autoClosingTags.has(i.nodeName))return Ro(`<${i.nodeName.toLowerCase()}${l}/>`);const o=i.childNodes;let u=!1;if(o.length<=5){u=!0;for(let d=0;d<o.length;d++)u=u&&o[d].nodeType===Node.TEXT_NODE}const f=u?i.textContent||"":o.length?"…":"";return Ro(`<${i.nodeName.toLowerCase()}${l}>${e0(f,50)}</${i.nodeName.toLowerCase()}>`)}_generateSelectors(e){this._evaluator.begin(),vc(),rd();try{const i=this._isUtilityWorld&&this._browserName==="firefox"?2:10;return e.slice(0,i).map(l=>({preview:this.previewNode(l),selector:this.generateSelectorSimple(l)})).map((l,o)=>`${o+1}) ${l.preview} aka ${Mi(this._sdkLanguage,l.selector)}`)}finally{ad(),Sc(),this._evaluator.end()}}strictModeViolationError(e,i){const r=this._generateSelectors(i).map(l=>`
|
|
119
119
|
`+l);return r.length<i.length&&r.push(`
|
|
120
120
|
...`),this.createStacklessError(`strict mode violation: ${Mi(this._sdkLanguage,An(e))} resolved to ${i.length} elements:${r.join("")}
|
|
121
121
|
`)}checkDeprecatedSelectorUsage(e,i){const r=new Set(["_react","_vue","xpath:light","text:light","id:light","data-testid:light","data-test-id:light","data-test:light"]);if(!i.length)return;const l=e.parts.find(u=>r.has(u.name));if(!l)return;const o=this._generateSelectors(i).map(u=>`
|
|
@@ -263,4 +263,4 @@ ${i.comment}`:i.comment}this.doc.range[2]=i.offset;break}default:this.errors.pus
|
|
|
263
263
|
`)+1;for(;i!==0;)this.onNewLine(this.offset+i),i=this.source.indexOf(`
|
|
264
264
|
`,i)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){var r;const i=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,i.value){const l="end"in i.value?i.value.end:void 0,o=Array.isArray(l)?l[l.length-1]:void 0;(o==null?void 0:o.type)==="comment"?l==null||l.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"space":case"comment":if(i.value)e.items.push({start:[this.sourceToken]});else if(i.sep)i.sep.push(this.sourceToken);else{if(this.atIndentedComment(i.start,e.indent)){const l=e.items[e.items.length-2],o=(r=l==null?void 0:l.value)==null?void 0:r.end;if(Array.isArray(o)){Array.prototype.push.apply(o,i.start),o.push(this.sourceToken),e.items.pop();return}}i.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const l=!this.onKeyLine&&this.indent===e.indent,o=l&&(i.sep||i.explicitKey)&&this.type!=="seq-item-ind";let u=[];if(o&&i.sep&&!i.value){const f=[];for(let d=0;d<i.sep.length;++d){const g=i.sep[d];switch(g.type){case"newline":f.push(d);break;case"space":break;case"comment":g.indent>e.indent&&(f.length=0);break;default:f.length=0}}f.length>=2&&(u=i.sep.splice(f[1]))}switch(this.type){case"anchor":case"tag":o||i.value?(u.push(this.sourceToken),e.items.push({start:u}),this.onKeyLine=!0):i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"explicit-key-ind":!i.sep&&!i.explicitKey?(i.start.push(this.sourceToken),i.explicitKey=!0):o||i.value?(u.push(this.sourceToken),e.items.push({start:u,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(i.explicitKey)if(i.sep)if(i.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(cs(i.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]});else if(MS(i.key)&&!cs(i.sep,"newline")){const f=cr(i.start),d=i.key,g=i.sep;g.push(this.sourceToken),delete i.key,delete i.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:f,key:d,sep:g}]})}else u.length>0?i.sep=i.sep.concat(u,this.sourceToken):i.sep.push(this.sourceToken);else if(cs(i.start,"newline"))Object.assign(i,{key:null,sep:[this.sourceToken]});else{const f=cr(i.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:f,key:null,sep:[this.sourceToken]}]})}else i.sep?i.value||o?e.items.push({start:u,key:null,sep:[this.sourceToken]}):cs(i.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):i.sep.push(this.sourceToken):Object.assign(i,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const f=this.flowScalar(this.type);o||i.value?(e.items.push({start:u,key:f,sep:[]}),this.onKeyLine=!0):i.sep?this.stack.push(f):(Object.assign(i,{key:f,sep:[]}),this.onKeyLine=!0);return}default:{const f=this.startBlockValue(e);if(f){l&&f.type!=="block-seq"&&e.items.push({start:u}),this.stack.push(f);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var r;const i=e.items[e.items.length-1];switch(this.type){case"newline":if(i.value){const l="end"in i.value?i.value.end:void 0,o=Array.isArray(l)?l[l.length-1]:void 0;(o==null?void 0:o.type)==="comment"?l==null||l.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else i.start.push(this.sourceToken);return;case"space":case"comment":if(i.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(i.start,e.indent)){const l=e.items[e.items.length-2],o=(r=l==null?void 0:l.value)==null?void 0:r.end;if(Array.isArray(o)){Array.prototype.push.apply(o,i.start),o.push(this.sourceToken),e.items.pop();return}}i.start.push(this.sourceToken)}return;case"anchor":case"tag":if(i.value||this.indent<=e.indent)break;i.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;i.value||cs(i.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):i.start.push(this.sourceToken);return}if(this.indent>e.indent){const l=this.startBlockValue(e);if(l){this.stack.push(l);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const i=e.items[e.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!i||i.sep?e.items.push({start:[this.sourceToken]}):i.start.push(this.sourceToken);return;case"map-value-ind":!i||i.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):i.sep?i.sep.push(this.sourceToken):Object.assign(i,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!i||i.value?e.items.push({start:[this.sourceToken]}):i.sep?i.sep.push(this.sourceToken):i.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const l=this.flowScalar(this.type);!i||i.value?e.items.push({start:[],key:l,sep:[]}):i.sep?this.stack.push(l):Object.assign(i,{key:l,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===e.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const l=qo(r),o=cr(l);I0(e);const u=e.end.splice(1,e.end.length);u.push(this.sourceToken);const f={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:o,key:e,sep:u}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=f}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let i=this.source.indexOf(`
|
|
265
265
|
`)+1;for(;i!==0;)this.onNewLine(this.offset+i),i=this.source.indexOf(`
|
|
266
|
-
`,i)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const i=qo(e),r=cr(i);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const i=qo(e),r=cr(i);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,i){return this.type!=="comment"||this.indent<=i?!1:e.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function OS(n){const e=n.prettyErrors!==!1;return{lineCounter:n.lineCounter||e&&new kS||null,prettyErrors:e}}function PN(n,e={}){const{lineCounter:i,prettyErrors:r}=OS(e),l=new Hd(i==null?void 0:i.addNewLine),o=new Ud(e),u=Array.from(o.compose(l.parse(n)));if(r&&i)for(const f of u)f.errors.forEach(dc(n,i)),f.warnings.forEach(dc(n,i));return u.length>0?u:Object.assign([],{empty:!0},o.streamInfo())}function jS(n,e={}){const{lineCounter:i,prettyErrors:r}=OS(e),l=new Hd(i==null?void 0:i.addNewLine),o=new Ud(e);let u=null;for(const f of o.compose(l.parse(n),!0,n.length))if(!u)u=f;else if(u.options.logLevel!=="silent"){u.errors.push(new hs(f.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&i&&(u.errors.forEach(dc(n,i)),u.warnings.forEach(dc(n,i))),u}function WN(n,e,i){let r;typeof e=="function"?r=e:i===void 0&&e&&typeof e=="object"&&(i=e);const l=jS(n,i);if(!l)return null;if(l.warnings.forEach(o=>Pv(l.options.logLevel,o)),l.errors.length>0){if(l.options.logLevel!=="silent")throw l.errors[0];l.errors=[]}return l.toJS(Object.assign({reviver:r},i))}function eC(n,e,i){let r=null;if(typeof e=="function"||Array.isArray(e)?r=e:i===void 0&&e&&(i=e),typeof i=="string"&&(i=i.length),typeof i=="number"){const l=Math.round(i);i=l<1?void 0:l>8?{indent:8}:{indent:l}}if(n===void 0){const{keepUndefined:l}=i??e??{};if(!l)return}return bs(n)&&!r?n.toString(i):new Dr(n,r,i).toString(i)}const LS=Object.freeze(Object.defineProperty({__proto__:null,Alias:xc,CST:QN,Composer:Ud,Document:Dr,Lexer:CS,LineCounter:kS,Pair:vt,Parser:Hd,Scalar:he,Schema:jc,YAMLError:Bd,YAMLMap:Xt,YAMLParseError:hs,YAMLSeq:Ri,YAMLWarning:yS,isAlias:ys,isCollection:$e,isDocument:bs,isMap:Or,isNode:Ie,isPair:He,isScalar:Le,isSeq:jr,parse:WN,parseAllDocuments:PN,parseDocument:jS,stringify:eC,visit:Li,visitAsync:_c},Symbol.toStringTag,{value:"Module"})),tC=({action:n,model:e,sdkLanguage:i,testIdAttributeName:r,isInspecting:l,setIsInspecting:o,highlightedElement:u,setHighlightedElement:f})=>{const[d,g]=U.useState("action"),[y]=on("shouldPopulateCanvasFromScreenshot",!1),m=U.useMemo(()=>rC(n),[n]),{snapshotInfoUrl:S,snapshotUrl:w,popoutUrl:E}=U.useMemo(()=>{const T=m[d];return e&&T?aC(e.traceUrl,T,y):{snapshotInfoUrl:void 0,snapshotUrl:void 0,popoutUrl:void 0}},[m,d,y,e]),_=U.useMemo(()=>S!==void 0?{snapshotInfoUrl:S,snapshotUrl:w,popoutUrl:E}:void 0,[S,w,E]);return v.jsxs("div",{className:"snapshot-tab vbox",children:[v.jsxs(ed,{children:[v.jsx(Ht,{className:"pick-locator",title:"Pick locator",icon:"target",toggled:l,onClick:()=>o(!l)}),v.jsx("div",{className:"hbox",style:{height:"100%"},role:"tablist",children:["action","before","after"].map(T=>v.jsx(Db,{id:T,title:sC(T),selected:d===T,onSelect:()=>g(T)},T))}),v.jsx("div",{style:{flex:"auto"}}),v.jsx(Ht,{icon:"link-external",title:"Open snapshot in a new tab",disabled:!(_!=null&&_.popoutUrl),onClick:()=>{const T=window.open((_==null?void 0:_.popoutUrl)||"","_blank");T==null||T.addEventListener("DOMContentLoaded",()=>{new Dv(T,{isUnderTest:DS,sdkLanguage:i,testIdAttributeName:r,stableRafCount:1,browserName:"chromium",customEngines:[]}).consoleApi.install()})}})]}),v.jsx(nC,{snapshotUrls:_,sdkLanguage:i,testIdAttributeName:r,isInspecting:l,setIsInspecting:o,highlightedElement:u,setHighlightedElement:f})]})},nC=({snapshotUrls:n,sdkLanguage:e,testIdAttributeName:i,isInspecting:r,setIsInspecting:l,highlightedElement:o,setHighlightedElement:u})=>{const f=U.useRef(null),d=U.useRef(null),[g,y]=U.useState({viewport:BS,url:""}),m=U.useRef({iteration:0,visibleIframe:0});return U.useEffect(()=>{(async()=>{const S=m.current.iteration+1,w=1-m.current.visibleIframe;m.current.iteration=S;const E=await lC(n==null?void 0:n.snapshotInfoUrl);if(m.current.iteration!==S)return;const _=[f,d][w].current;if(_){let T=()=>{};const N=new Promise(M=>T=M);try{_.addEventListener("load",T),_.addEventListener("error",T);const M=(n==null?void 0:n.snapshotUrl)||oC;_.contentWindow?_.contentWindow.location.replace(M):_.src=M,await N}catch{}finally{_.removeEventListener("load",T),_.removeEventListener("error",T)}}m.current.iteration===S&&(m.current.visibleIframe=w,y(E))})()},[n]),v.jsxs("div",{className:"vbox",tabIndex:0,onKeyDown:S=>{S.key==="Escape"&&r&&l(!1)},children:[v.jsx(V0,{isInspecting:r,sdkLanguage:e,testIdAttributeName:i,highlightedElement:o,setHighlightedElement:u,iframe:f.current,iteration:m.current.iteration}),v.jsx(V0,{isInspecting:r,sdkLanguage:e,testIdAttributeName:i,highlightedElement:o,setHighlightedElement:u,iframe:d.current,iteration:m.current.iteration}),v.jsx(iC,{snapshotInfo:g,children:v.jsxs("div",{className:"snapshot-switcher",children:[v.jsx("iframe",{ref:f,name:"snapshot",title:"DOM Snapshot",className:Fe(m.current.visibleIframe===0&&"snapshot-visible")}),v.jsx("iframe",{ref:d,name:"snapshot",title:"DOM Snapshot",className:Fe(m.current.visibleIframe===1&&"snapshot-visible")})]})})]})},iC=({snapshotInfo:n,children:e})=>{const[i,r]=gs(),l=40,o={width:n.viewport.width,height:n.viewport.height},u={width:Math.max(o.width,480),height:Math.max(o.height+l,320)},f=Math.min(i.width/u.width,i.height/u.height,1),d={x:(i.width-u.width)/2,y:(i.height-u.height)/2};return v.jsx("div",{ref:r,className:"snapshot-wrapper",children:v.jsxs("div",{className:"snapshot-container",style:{width:u.width+"px",height:u.height+"px",transform:`translate(${d.x}px, ${d.y}px) scale(${f})`},children:[v.jsx(KA,{url:n.url}),v.jsx("div",{className:"snapshot-browser-body",children:v.jsx("div",{style:{width:o.width+"px",height:o.height+"px"},children:e})})]})})};function sC(n){return n==="before"?"Before":n==="after"?"After":n==="action"?"Action":n}const V0=({iframe:n,isInspecting:e,sdkLanguage:i,testIdAttributeName:r,highlightedElement:l,setHighlightedElement:o,iteration:u})=>(U.useEffect(()=>{const f=l.lastEdited==="ariaSnapshot"?l.ariaSnapshot:void 0,d=l.lastEdited==="locator"?l.locator:void 0,g=!!f||!!d||e,y=[],m=new URLSearchParams(window.location.search).get("isUnderTest")==="true";try{RS(y,g,i,r,m,"",n==null?void 0:n.contentWindow)}catch{}const S=f?td(LS,f):void 0,w=d?VA(i,d,r):void 0;for(const{recorder:E,frameSelector:_}of y){const T=w!=null&&w.startsWith(_)?w.substring(_.length).trim():void 0,N=(S==null?void 0:S.errors.length)===0?S.fragment:void 0;E.setUIState({mode:e?"inspecting":"none",actionSelector:T,ariaTemplate:N,language:i,testIdAttributeName:r,overlay:{offsetX:0}},{async elementPicked(M){o({locator:Mi(i,_+M.selector),ariaSnapshot:M.ariaSnapshot,lastEdited:"none"})},highlightUpdated(){for(const M of y)M.recorder!==E&&M.recorder.clearHighlight()}})}},[n,e,l,o,i,r,u]),v.jsx(v.Fragment,{}));function RS(n,e,i,r,l,o,u){if(!u)return;const f=u;if(!f._recorder&&e){const d=new Dv(u,{isUnderTest:l,sdkLanguage:i,testIdAttributeName:r,stableRafCount:1,browserName:"chromium",customEngines:[]}),g=new zA(d);f._injectedScript=d,f._recorder={recorder:g,frameSelector:o},l&&(window._weakRecordersForTest=window._weakRecordersForTest||new Set,window._weakRecordersForTest.add(new WeakRef(g)))}f._recorder&&n.push(f._recorder);for(let d=0;d<u.frames.length;++d){const g=u.frames[d],y=g.frameElement?f._injectedScript.generateSelectorSimple(g.frameElement,{omitInternalEngines:!0,testIdAttributeName:r})+" >> internal:control=enter-frame >> ":"";RS(n,e,i,r,l,o+y,g)}}const qa=(n,e,i=!1)=>{if(!n)return;const r=n[e];if(r){if(!n.pageId){console.error("snapshot action must have a pageId");return}return{action:n,snapshotName:r,pageId:n.pageId,point:n.point,hasInputTarget:i}}};function rC(n){if(!n)return{};let e=qa(n,"beforeSnapshot");if(!e){for(let l=Jy(n);l;l=Jy(l))if(l.endTime<=n.startTime&&l.afterSnapshot){e=qa(l,"afterSnapshot");break}}let i=qa(n,"afterSnapshot");if(!i){let l;for(let o=Zy(n);o&&o.startTime<=n.endTime;o=Zy(o))o.endTime>n.endTime||!o.afterSnapshot||l&&l.endTime>o.endTime||(l=o);l?i=qa(l,"afterSnapshot"):i=e}const r=qa(n,"inputSnapshot",!0)??i;return r&&(r.point=n.point),{action:r,before:e,after:i}}const DS=new URLSearchParams(window.location.search).has("isUnderTest");function aC(n,e,i){const r=new URLSearchParams;r.set("trace",n),r.set("name",e.snapshotName),DS&&r.set("isUnderTest","true"),e.point&&(r.set("pointX",String(e.point.x)),r.set("pointY",String(e.point.y)),e.hasInputTarget&&r.set("hasInputTarget","1")),i&&r.set("shouldPopulateCanvasFromScreenshot","1");const l=new URL(`snapshot/${e.pageId}?${r.toString()}`,window.location.href).toString(),o=new URL(`snapshotInfo/${e.pageId}?${r.toString()}`,window.location.href).toString(),u=new URLSearchParams;u.set("r",l),u.set("trace",n);const f=new URL(`snapshot.html?${u.toString()}`,window.location.href).toString();return{snapshotInfoUrl:o,snapshotUrl:l,popoutUrl:f}}async function lC(n){const e={url:"",viewport:BS,timestamp:void 0,wallTime:void 0};if(n){const r=await(await fetch(n)).json();r.error||(e.url=r.url,e.viewport=r.viewport,e.timestamp=r.timestamp,e.wallTime=r.wallTime)}return e}const BS={width:1280,height:720},oC='data:text/html,<body style="background: #ddd"></body>',zS={width:200,height:45},dr=2.5,cC=zS.height+dr*2,uC=({boundaries:n,previewPoint:e})=>{var y,m;const i=Di(),[r,l]=gs(),o=U.useRef(null);let u=0;if(o.current&&e){const S=o.current.getBoundingClientRect();u=(e.clientY-S.top+o.current.scrollTop)/cC|0}const f=(m=(y=i==null?void 0:i.pages)==null?void 0:y[u])==null?void 0:m.screencastFrames;let d,g;if(e!==void 0&&f&&f.length){const S=n.minimum+(n.maximum-n.minimum)*e.x/r.width;d=f[K0(f,S,US)-1];const w={width:Math.min(800,window.innerWidth/2|0),height:Math.min(800,window.innerHeight/2|0)};g=d?HS({width:d.width,height:d.height},w):void 0}return v.jsxs("div",{className:"film-strip",ref:l,children:[v.jsx("div",{className:"film-strip-lanes",ref:o,children:i==null?void 0:i.pages.map((S,w)=>S.screencastFrames.length?v.jsx(fC,{boundaries:n,page:S,width:r.width},w):null)}),i&&(e==null?void 0:e.x)!==void 0&&v.jsxs("div",{className:"film-strip-hover",style:{top:r.bottom+5,left:Math.min(e.x,r.width-(g?g.width:0)-10)},children:[e.action&&v.jsx("div",{className:"film-strip-hover-title",children:Ph(e.action,e)}),d&&g&&v.jsx("div",{style:{width:g.width,height:g.height},children:v.jsx("img",{src:i.createRelativeUrl(`sha1/${d.sha1}`),width:g.width,height:g.height})})]})]})},fC=({boundaries:n,page:e,width:i})=>{const r=Di(),l={width:0,height:0},o=e.screencastFrames;for(const T of o)l.width=Math.max(l.width,T.width),l.height=Math.max(l.height,T.height);const u=HS(l,zS),f=o[0].timestamp,d=o[o.length-1].timestamp,g=n.maximum-n.minimum,y=(f-n.minimum)/g*i,m=(n.maximum-d)/g*i,w=(d-f)/g*i/(u.width+2*dr)|0,E=(d-f)/w,_=[];for(let T=0;f&&E&&T<w;++T){const N=f+E*T,M=K0(o,N,US)-1;_.push(v.jsx("div",{className:"film-strip-frame",style:{width:u.width,height:u.height,backgroundImage:`url(${r==null?void 0:r.createRelativeUrl("sha1/"+o[M].sha1)})`,backgroundSize:`${u.width}px ${u.height}px`,margin:dr,marginRight:dr}},T))}return _.push(v.jsx("div",{className:"film-strip-frame",style:{width:u.width,height:u.height,backgroundImage:`url(${r==null?void 0:r.createRelativeUrl("sha1/"+o[o.length-1].sha1)})`,backgroundSize:`${u.width}px ${u.height}px`,margin:dr,marginRight:dr}},_.length)),v.jsx("div",{className:"film-strip-lane",style:{marginLeft:y+"px",marginRight:m+"px"},children:_})};function US(n,e){return n-e.timestamp}function HS(n,e){const i=Math.max(n.width/e.width,n.height/e.height);return{width:n.width/i|0,height:n.height/i|0}}const hC=({model:n,boundaries:e,consoleEntries:i,networkResources:r,onSelected:l,highlightedAction:o,highlightedResourceOrdinal:u,highlightedConsoleEntryOrdinal:f,selectedTime:d,setSelectedTime:g,sdkLanguage:y})=>{const[m,S]=gs(),[w,E]=U.useState(),[_,T]=U.useState(),[N]=on("actionsFilter",[]),{offsets:M,curtainLeft:$,curtainRight:I}=U.useMemo(()=>{let J=d||e;if(w&&w.startX!==w.endX){const Z=En(m.width,e,w.startX),se=En(m.width,e,w.endX);J={minimum:Math.min(Z,se),maximum:Math.max(Z,se)}}const W=an(m.width,e,J.minimum),z=an(m.width,e,e.maximum)-an(m.width,e,J.maximum);return{offsets:dC(m.width,e),curtainLeft:W,curtainRight:z}},[d,e,w,m]),D=U.useMemo(()=>n==null?void 0:n.filteredActions(N),[n,N]),K=U.useMemo(()=>{const J=[];for(const W of D||[])J.push({action:W,leftTime:W.startTime,rightTime:W.endTime||e.maximum,leftPosition:an(m.width,e,W.startTime),rightPosition:an(m.width,e,W.endTime||e.maximum),active:!1,error:!!W.error});for(const W of(n==null?void 0:n.resources)||[]){const Ae=W._monotonicTime,z=W._monotonicTime+W.time;J.push({resource:W,leftTime:Ae,rightTime:z,leftPosition:an(m.width,e,Ae),rightPosition:an(m.width,e,z),active:!1,error:!1})}for(const W of i||[])J.push({consoleMessage:W,leftTime:W.timestamp,rightTime:W.timestamp,leftPosition:an(m.width,e,W.timestamp),rightPosition:an(m.width,e,W.timestamp),active:!1,error:W.isError});return J},[n,D,i,e,m]);U.useMemo(()=>{for(const J of K)o?J.active=J.action===o:u!==void 0?J.active=J.resource===(r==null?void 0:r[u]):f!==void 0?J.active=J.consoleMessage===(i==null?void 0:i[f]):J.active=!1},[K,o,u,f,i,r]);const Q=U.useCallback(J=>{if(T(void 0),!S.current)return;const W=J.clientX-S.current.getBoundingClientRect().left,Ae=En(m.width,e,W),z=d?an(m.width,e,d.minimum):0,Z=d?an(m.width,e,d.maximum):0;d&&Math.abs(W-z)<10?E({startX:Z,endX:W,type:"resize"}):d&&Math.abs(W-Z)<10?E({startX:z,endX:W,type:"resize"}):d&&Ae>d.minimum&&Ae<d.maximum&&J.clientY-S.current.getBoundingClientRect().top<20?E({startX:z,endX:Z,pivot:W,type:"move"}):E({startX:W,endX:W,type:"resize"})},[e,m,S,d]),q=U.useCallback(J=>{if(!S.current)return;const W=J.clientX-S.current.getBoundingClientRect().left,Ae=En(m.width,e,W),z=D==null?void 0:D.findLast(we=>we.startTime<=Ae);if(!J.buttons){E(void 0);return}if(z&&l(z),!w)return;let Z=w;if(w.type==="resize")Z={...w,endX:W};else{const we=W-w.pivot;let C=w.startX+we,Y=w.endX+we;C<0&&(C=0,Y=C+(w.endX-w.startX)),Y>m.width&&(Y=m.width,C=Y-(w.endX-w.startX)),Z={...w,startX:C,endX:Y,pivot:W}}E(Z);const se=En(m.width,e,Z.startX),Se=En(m.width,e,Z.endX);se!==Se&&g({minimum:Math.min(se,Se),maximum:Math.max(se,Se)})},[e,w,m,D,l,S,g]),j=U.useCallback(()=>{if(T(void 0),!!w){if(w.startX!==w.endX){const J=En(m.width,e,w.startX),W=En(m.width,e,w.endX);g({minimum:Math.min(J,W),maximum:Math.max(J,W)})}else{const J=En(m.width,e,w.startX),W=D==null?void 0:D.findLast(Ae=>Ae.startTime<=J);W&&l(W),g(void 0)}E(void 0)}},[e,w,m,D,g,l]),ne=U.useCallback(J=>{if(!S.current)return;const W=J.clientX-S.current.getBoundingClientRect().left,Ae=En(m.width,e,W),z=D==null?void 0:D.findLast(Z=>Z.startTime<=Ae);T({x:W,clientY:J.clientY,action:z,sdkLanguage:y})},[e,m,D,S,y]),le=U.useCallback(()=>{T(void 0)},[]),V=U.useCallback(()=>{g(void 0)},[g]);return v.jsxs("div",{className:"timeline-view-container",children:[!!w&&v.jsx(Cb,{cursor:(w==null?void 0:w.type)==="resize"?"ew-resize":"grab",onPaneMouseUp:j,onPaneMouseMove:q,onPaneDoubleClick:V}),v.jsxs("div",{ref:S,className:"timeline-view",onMouseDown:Q,onMouseMove:ne,onMouseLeave:le,children:[v.jsx("div",{className:"timeline-grid",children:M.map((J,W)=>v.jsx("div",{className:"timeline-divider",style:{left:J.position+"px"},children:v.jsx("div",{className:"timeline-time",children:Et(J.time-e.minimum)})},W))}),v.jsx("div",{style:{height:8}}),v.jsx(uC,{boundaries:e,previewPoint:_}),v.jsx("div",{className:"timeline-bars",children:K.filter(J=>!J.action||J.action.class!=="Test").map((J,W)=>v.jsx("div",{className:Fe("timeline-bar",J.action&&"action",J.resource&&"network",J.consoleMessage&&"console-message",J.active&&"active",J.error&&"error"),style:{left:J.leftPosition,width:Math.max(5,J.rightPosition-J.leftPosition),top:pC(J),bottom:0}},W))}),v.jsx("div",{className:"timeline-marker",style:{display:_!==void 0?"block":"none",left:((_==null?void 0:_.x)||0)+"px"}}),d&&v.jsxs("div",{className:"timeline-window",children:[v.jsx("div",{className:"timeline-window-curtain left",style:{width:$}}),v.jsx("div",{className:"timeline-window-resizer",style:{left:-5}}),v.jsx("div",{className:"timeline-window-center",children:v.jsx("div",{className:"timeline-window-drag"})}),v.jsx("div",{className:"timeline-window-resizer",style:{left:5}}),v.jsx("div",{className:"timeline-window-curtain right",style:{width:I}})]})]})]})};function dC(n,e){let r=n/64;const l=e.maximum-e.minimum,o=n/l;let u=l/r;const f=Math.ceil(Math.log(u)/Math.LN10);u=Math.pow(10,f),u*o>=320&&(u=u/5),u*o>=128&&(u=u/2);const d=e.minimum;let g=e.maximum;g+=64/o,r=Math.ceil((g-d)/u),u||(r=0);const y=[];for(let m=0;m<r;++m){const S=d+u*m;y.push({position:an(n,e,S),time:S})}return y}function an(n,e,i){return(i-e.minimum)/(e.maximum-e.minimum)*n}function En(n,e,i){return i/n*(e.maximum-e.minimum)+e.minimum}function pC(n){return n.resource?25:20}const gC=({model:n})=>{var i,r;if(!n)return v.jsx(v.Fragment,{});const e=n.wallTime!==void 0?new Date(n.wallTime).toLocaleString(void 0,{timeZoneName:"short"}):void 0;return v.jsxs("div",{style:{flex:"auto",display:"block",overflow:"hidden auto"},children:[v.jsx("div",{className:"call-section",style:{paddingTop:2},children:"Time"}),!!e&&v.jsxs("div",{className:"call-line",children:["start time:",v.jsx("span",{className:"call-value datetime",title:e,children:e})]}),v.jsxs("div",{className:"call-line",children:["duration:",v.jsx("span",{className:"call-value number",title:Et(n.endTime-n.startTime),children:Et(n.endTime-n.startTime)})]}),v.jsx("div",{className:"call-section",children:"Browser"}),v.jsxs("div",{className:"call-line",children:["engine:",v.jsx("span",{className:"call-value string",title:n.browserName,children:n.browserName})]}),n.channel&&v.jsxs("div",{className:"call-line",children:["channel:",v.jsx("span",{className:"call-value string",title:n.channel,children:n.channel})]}),n.platform&&v.jsxs("div",{className:"call-line",children:["platform:",v.jsx("span",{className:"call-value string",title:n.platform,children:n.platform})]}),n.playwrightVersion&&v.jsxs("div",{className:"call-line",children:["playwright version:",v.jsx("span",{className:"call-value string",title:n.playwrightVersion,children:n.playwrightVersion})]}),n.options.userAgent&&v.jsxs("div",{className:"call-line",children:["user agent:",v.jsx("span",{className:"call-value datetime",title:n.options.userAgent,children:n.options.userAgent})]}),n.options.baseURL&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"call-section",style:{paddingTop:2},children:"Config"}),v.jsxs("div",{className:"call-line",children:["baseURL:",v.jsx("a",{className:"call-value string",href:n.options.baseURL,title:n.options.baseURL,target:"_blank",rel:"noopener noreferrer",children:n.options.baseURL})]})]}),v.jsx("div",{className:"call-section",children:"Viewport"}),n.options.viewport&&v.jsxs("div",{className:"call-line",children:["width:",v.jsx("span",{className:"call-value number",title:String(!!((i=n.options.viewport)!=null&&i.width)),children:n.options.viewport.width})]}),n.options.viewport&&v.jsxs("div",{className:"call-line",children:["height:",v.jsx("span",{className:"call-value number",title:String(!!((r=n.options.viewport)!=null&&r.height)),children:n.options.viewport.height})]}),v.jsxs("div",{className:"call-line",children:["is mobile:",v.jsx("span",{className:"call-value boolean",title:String(!!n.options.isMobile),children:String(!!n.options.isMobile)})]}),n.options.deviceScaleFactor&&v.jsxs("div",{className:"call-line",children:["device scale:",v.jsx("span",{className:"call-value number",title:String(n.options.deviceScaleFactor),children:String(n.options.deviceScaleFactor)})]}),v.jsx("div",{className:"call-section",children:"Counts"}),v.jsxs("div",{className:"call-line",children:["pages:",v.jsx("span",{className:"call-value number",children:n.pages.length})]}),v.jsxs("div",{className:"call-line",children:["actions:",v.jsx("span",{className:"call-value number",children:n.actions.length})]}),v.jsxs("div",{className:"call-line",children:["events:",v.jsx("span",{className:"call-value number",children:n.events.length})]})]})},mC=({annotations:n})=>n.length?v.jsx("div",{className:"annotations-tab",children:n.map((e,i)=>v.jsxs("div",{className:"annotation-item",children:[v.jsx("span",{style:{fontWeight:"bold"},children:e.type}),e.description&&v.jsxs("span",{children:[": ",Ob(e.description)]})]},`annotation-${i}`))}):v.jsx(ms,{text:"No annotations"}),yC=({sdkLanguage:n,isInspecting:e,setIsInspecting:i,highlightedElement:r,setHighlightedElement:l})=>{const[o,u]=U.useState(),f=U.useCallback(d=>{const{errors:g}=td(LS,d,{prettyErrors:!1}),y=g.map(m=>({message:m.message,line:m.range[1].line,column:m.range[1].col,type:"subtle-error"}));u(y),l({...r,ariaSnapshot:d,lastEdited:"ariaSnapshot"}),i(!1)},[r,l,i]);return v.jsxs("div",{style:{flex:"auto",backgroundColor:"var(--vscode-sideBar-background)",padding:"0 10px 10px 10px",overflow:"auto"},children:[v.jsxs("div",{className:"hbox",style:{lineHeight:"28px",color:"var(--vscode-editorCodeLens-foreground)"},children:[v.jsx("div",{children:"Locator"}),v.jsx(Ht,{style:{margin:"0 4px"},title:"Pick locator",icon:"target",toggled:e,onClick:()=>i(!e)}),v.jsx("div",{style:{flex:"auto"}}),v.jsx(Ht,{icon:"files",title:"Copy locator",onClick:()=>{qy(r.locator||"")}})]}),v.jsx("div",{style:{height:50},children:v.jsx(xr,{text:r.locator||"",highlighter:n,isFocused:!0,wrapLines:!0,onChange:d=>{l({...r,locator:d,lastEdited:"locator"}),i(!1)}})}),v.jsxs("div",{className:"hbox",style:{lineHeight:"28px",color:"var(--vscode-editorCodeLens-foreground)"},children:[v.jsx("div",{style:{flex:"auto"},children:"Aria snapshot"}),v.jsx(Ht,{icon:"files",title:"Copy snapshot",onClick:()=>{qy(r.ariaSnapshot||"")}})]}),v.jsx("div",{style:{height:150},children:v.jsx(xr,{text:r.ariaSnapshot||"",highlighter:"yaml",wrapLines:!1,highlight:o,onChange:f})})]})},bC=({className:n,style:e,open:i,isModal:r,minWidth:l,verticalOffset:o,requestClose:u,anchor:f,dataTestId:d,children:g})=>{const y=U.useRef(null),[m,S]=U.useState(0),[w]=Eh(y),[E,_]=Eh(f),T=f?vC(w,E,o):void 0;return U.useEffect(()=>{const N=$=>{!y.current||!($.target instanceof Node)||y.current.contains($.target)||u==null||u()},M=$=>{$.key==="Escape"&&(u==null||u())};return i?(document.addEventListener("mousedown",N),document.addEventListener("keydown",M),()=>{document.removeEventListener("mousedown",N),document.removeEventListener("keydown",M)}):()=>{}},[i,u]),U.useLayoutEffect(()=>_(),[i,_]),U.useEffect(()=>{const N=()=>S(M=>M+1);return window.addEventListener("resize",N),()=>{window.removeEventListener("resize",N)}},[]),U.useLayoutEffect(()=>{y.current&&(i?r?y.current.showModal():y.current.show():y.current.close())},[i,r]),v.jsx("dialog",{ref:y,style:{position:"fixed",margin:T?0:void 0,zIndex:110,top:T==null?void 0:T.top,left:T==null?void 0:T.left,minWidth:l||0,...e},className:n,"data-testid":d,children:g})};function vC(n,e,i=4,r=4){let l=Math.max(r,e.left);l+n.width>window.innerWidth-r&&(l=window.innerWidth-n.width-r);let o=Math.max(0,e.bottom)+i;return o+n.height>window.innerHeight-i&&(Math.max(0,e.top)>n.height+i?o=Math.max(0,e.top)-n.height-i:o=window.innerHeight-i-n.height),{left:l,top:o}}const SC=({title:n,icon:e,buttonChildren:i,anchorRef:r,dialogDataTestId:l,children:o})=>{const u=U.useRef(null),f=r??u,[d,g]=U.useState(!1);return v.jsxs(v.Fragment,{children:[v.jsx(Ht,{ref:u,icon:e,title:n,onClick:()=>g(y=>!y),children:i}),v.jsx(bC,{style:{backgroundColor:"var(--vscode-sideBar-background)",padding:"4px 8px"},open:d,verticalOffset:8,requestClose:()=>g(!1),anchor:f,dataTestId:l,children:o})]})},qS=({settings:n})=>v.jsx("div",{className:"vbox settings-view",children:n.map(e=>{const i=`setting-${e.name.replaceAll(/\s+/g,"-")}`;return v.jsx("div",{className:`setting setting-${e.type}`,title:e.title,children:wC(e,i)},e.name)})}),wC=(n,e)=>{switch(n.type){case"check":return v.jsxs(v.Fragment,{children:[v.jsx("input",{type:"checkbox",id:e,checked:n.value,onChange:()=>n.set(!n.value)}),v.jsxs("label",{htmlFor:e,children:[n.name,!!n.count&&v.jsx("span",{className:"setting-counter",children:n.count})]})]});case"select":return v.jsxs(v.Fragment,{children:[v.jsxs("label",{htmlFor:e,children:[n.name,":",!!n.count&&v.jsx("span",{className:"setting-counter",children:n.count})]}),v.jsx("select",{id:e,value:n.value,onChange:i=>n.set(i.target.value),children:n.options.map(i=>v.jsx("option",{value:i.value,children:i.label},i.value))})]});default:return null}},jC=n=>{var i;const e=((i=n.model)==null?void 0:i.traceUrl)??"default";return v.jsx(jb.Provider,{value:n.model,children:v.jsx(_C,{partition:e,...n})})},_C=n=>{var gl;const{partition:e,model:i,showSourcesFirst:r,rootDir:l,fallbackLocation:o,isLive:u,hideTimeline:f,status:d,annotations:g,inert:y,onOpenExternally:m,revealSource:S,testRunMetadata:w}=n,[E,_]=on("navigatorTab","actions"),[T,N]=on("propertiesTab",r?"source":"call"),[M,$]=on("propertiesSidebarLocation","bottom"),[I]=on("actionsFilter",[]),[D,K]=Ci("selectedCallId"),[Q,q]=Ci("selectedTime"),[j,ne]=Ci("highlightedCallId"),[le,V]=Ci("revealedErrorKey"),[J,W]=Ci("highlightedConsoleMessageOrdinal"),[Ae,z]=Ci("revealedAttachmentCallId"),[Z,se]=Ci("highlightedResourceOrdinal"),[Se,we]=Ci("treeState",{expandedItems:new Map});l_(e);const[C,Y]=U.useState({lastEdited:"none"}),[P,ee]=U.useState(!1),ue=U.useCallback(ce=>{K(ce==null?void 0:ce.callId),V(void 0)},[K,V]),re=U.useMemo(()=>i==null?void 0:i.filteredActions(I),[i,I]),_e=((i==null?void 0:i.actions.length)??0)-((re==null?void 0:re.length)??0),tt=U.useMemo(()=>re==null?void 0:re.find(ce=>ce.callId===j),[re,j]),Re=U.useCallback(ce=>{ne(ce==null?void 0:ce.callId)},[ne]),zi=U.useMemo(()=>(i==null?void 0:i.sources)||new Map,[i]);U.useEffect(()=>{q(void 0),V(void 0)},[i,q,V]);const kn=U.useMemo(()=>{if(D){const Sn=re==null?void 0:re.find(Ft=>Ft.callId===D);if(Sn)return Sn}const ce=i==null?void 0:i.failedAction();if(ce)return ce;if(re!=null&&re.length){let Sn=re.length-1;for(let Ft=0;Ft<re.length;++Ft)if(re[Ft].title==="After Hooks"&&Ft){Sn=Ft-1;break}return re[Sn]}},[i,re,D]),hn=U.useMemo(()=>tt||kn,[kn,tt]),Br=U.useCallback(ce=>{ue(ce),Re(void 0)},[ue,Re]),nt=U.useCallback(ce=>{N(ce),ce!=="inspector"&&ee(!1)},[N]),vs=U.useCallback(ce=>{!P&&ce&&nt("inspector"),ee(ce)},[ee,nt,P]),zr=U.useCallback(ce=>{Y(ce),nt("inspector")},[nt]),Bc=U.useCallback(ce=>{nt("attachments"),z({callId:ce})},[nt,z]);U.useEffect(()=>{S&&nt("source")},[S,nt]);const Ss=eT(i,Q),Ui=ET(i,Q),ti=Qx(i),Ur=U.useMemo(()=>{var ce;return le!==void 0?(ce=ti.errors.get(le))==null?void 0:ce.stack:hn==null?void 0:hn.stack},[hn,le,ti]),ni=(i==null?void 0:i.sdkLanguage)||"javascript",zc={id:"inspector",title:"Locator",render:()=>v.jsx(yC,{sdkLanguage:ni,isInspecting:P,setIsInspecting:vs,highlightedElement:C,setHighlightedElement:Y})},St={id:"call",title:"Call",render:()=>v.jsx(mx,{action:hn,startTimeOffset:(i==null?void 0:i.startTime)??0,sdkLanguage:ni})},Uc={id:"log",title:"Log",render:()=>v.jsx(vx,{action:hn,isLive:u})},dl={id:"errors",title:"Errors",errorCount:ti.errors.size,render:()=>v.jsx(Zx,{errorsModel:ti,testRunMetadata:w,sdkLanguage:ni,revealInSource:ce=>{ce.action?ue(ce.action):V(ce.message),nt("source")},wallTime:(i==null?void 0:i.wallTime)??0})};let Hr;!kn&&o&&(Hr=(gl=o.source)==null?void 0:gl.errors.length);const ii={id:"source",title:"Source",errorCount:Hr,render:()=>v.jsx(Yx,{stack:Ur,sources:zi,rootDir:l,stackFrameLocation:M==="bottom"?"right":"bottom",fallbackLocation:o,onOpenExternally:m})},Hc={id:"console",title:"Console",count:Ss.entries.length,render:()=>v.jsx(tT,{consoleModel:Ss,boundaries:Mn,selectedTime:Q,onAccepted:ce=>q({minimum:ce.timestamp,maximum:ce.timestamp}),onEntryHovered:W})},pl={id:"network",title:"Network",count:Ui.resources.length,render:()=>v.jsx(AT,{boundaries:Mn,networkModel:Ui,onResourceHovered:se,sdkLanguage:(i==null?void 0:i.sdkLanguage)??"javascript"})},qc={id:"attachments",title:"Attachments",count:i==null?void 0:i.visibleAttachments.length,render:()=>v.jsx(Ux,{revealedAttachmentCallId:Ae})},Hi=[zc,St,Uc,dl,Hc,pl,ii,qc];if(g!==void 0){const ce={id:"annotations",title:"Annotations",count:g.length,render:()=>v.jsx(mC,{annotations:g})};Hi.push(ce)}if(r){const ce=Hi.indexOf(ii);Hi.splice(ce,1),Hi.splice(1,0,ii)}const{boundaries:Mn}=U.useMemo(()=>{const ce={minimum:(i==null?void 0:i.startTime)||0,maximum:(i==null?void 0:i.endTime)||3e4};return ce.minimum>ce.maximum&&(ce.minimum=0,ce.maximum=3e4),ce.maximum+=(ce.maximum-ce.minimum)/20,{boundaries:ce}},[i]);let rt=0;!u&&i&&i.endTime>=0?rt=i.endTime-i.startTime:i&&i.wallTime&&(rt=Date.now()-i.wallTime);const vn={id:"actions",title:"Actions",component:v.jsxs("div",{className:"vbox",children:[d&&v.jsxs("div",{className:"workbench-run-status",children:[v.jsx("span",{className:Fe("codicon",Ab(d))}),v.jsx("div",{children:dx(d)}),v.jsx("div",{className:"spacer"}),v.jsx("div",{className:"workbench-run-duration",children:rt?Et(rt):""})]}),v.jsx(gx,{sdkLanguage:ni,actions:re||[],selectedAction:i?kn:void 0,selectedTime:Q,setSelectedTime:q,treeState:Se,setTreeState:we,onSelected:Br,onHighlighted:Re,revealActionAttachment:Bc,revealConsole:()=>nt("console"),isLive:u})]})},wt={id:"metadata",title:"Metadata",component:v.jsx(gC,{model:i})},$c=E==="actions"&&v.jsx(xC,{counters:i==null?void 0:i.actionCounters,hiddenActionsCount:_e});return v.jsxs("div",{className:"vbox workbench",...y?{inert:!0}:{},children:[!f&&v.jsx(hC,{model:i,consoleEntries:Ss.entries,networkResources:Ui.resources,boundaries:Mn,highlightedAction:tt,highlightedResourceOrdinal:Z,highlightedConsoleEntryOrdinal:J,onSelected:Br,sdkLanguage:ni,selectedTime:Q,setSelectedTime:q}),v.jsx(nc,{sidebarSize:250,orientation:M==="bottom"?"vertical":"horizontal",settingName:"propertiesSidebar",main:v.jsx(nc,{sidebarSize:250,orientation:"horizontal",sidebarIsFirst:!0,settingName:"actionListSidebar",main:v.jsx(tC,{action:hn,model:i,sdkLanguage:ni,testIdAttributeName:(i==null?void 0:i.testIdAttributeName)||"data-testid",isInspecting:P,setIsInspecting:vs,highlightedElement:C,setHighlightedElement:zr}),sidebar:v.jsx(jh,{tabs:[vn,wt],rightToolbar:[$c],selectedTab:E,setSelectedTab:_})}),sidebar:v.jsx(jh,{tabs:Hi,selectedTab:T,setSelectedTab:nt,rightToolbar:[M==="bottom"?v.jsx(Ht,{title:"Dock to right",icon:"layout-sidebar-right-off",onClick:()=>{$("right")}}):v.jsx(Ht,{title:"Dock to bottom",icon:"layout-panel-off",onClick:()=>{$("bottom")}})],mode:M==="bottom"?"default":"select"})})]})},xC=({counters:n,hiddenActionsCount:e})=>{const[i,r]=on("actionsFilter",[]),l=U.useRef(null),o=v.jsxs(v.Fragment,{children:[e>0&&v.jsxs("span",{className:"workbench-actions-hidden-count",title:e+" actions hidden by filters",children:[e," hidden"]}),v.jsx("span",{ref:l,className:"codicon codicon-filter"})]});return v.jsx(SC,{title:"Filter actions",dialogDataTestId:"actions-filter-dialog",buttonChildren:o,anchorRef:l,children:v.jsx(qS,{settings:[{type:"check",value:i.includes("getter"),set:u=>r(u?[...i,"getter"]:i.filter(f=>f!=="getter")),name:"Getters",count:n==null?void 0:n.get("getter")},{type:"check",value:i.includes("route"),set:u=>r(u?[...i,"route"]:i.filter(f=>f!=="route")),name:"Network routes",count:n==null?void 0:n.get("route")},{type:"check",value:i.includes("configuration"),set:u=>r(u?[...i,"configuration"]:i.filter(f=>f!=="configuration")),name:"Configuration",count:n==null?void 0:n.get("configuration")}]})})};var G0;(n=>{function e(i){for(const r of i.splice(0))r.dispose()}n.disposeAll=e})(G0||(G0={}));class ur{constructor(){this._listeners=new Set,this.event=(e,i)=>{this._listeners.add(e);let r=!1;const l=this,o={dispose(){r||(r=!0,l._listeners.delete(e))}};return i&&i.push(o),o}}fire(e){const i=!this._deliveryQueue;this._deliveryQueue||(this._deliveryQueue=[]);for(const r of this._listeners)this._deliveryQueue.push({listener:r,event:e});if(i){for(let r=0;r<this._deliveryQueue.length;r++){const{listener:l,event:o}=this._deliveryQueue[r];l.call(null,o)}this._deliveryQueue=void 0}}dispose(){this._listeners.clear(),this._deliveryQueue&&(this._deliveryQueue=[])}}class TC extends Error{constructor(){super("Test server connection closed")}}class LC{constructor(e){this._ws=new WebSocket(e)}onmessage(e){this._ws.addEventListener("message",i=>e(i.data.toString()))}onopen(e){this._ws.addEventListener("open",e)}onerror(e){this._ws.addEventListener("error",e)}onclose(e){this._ws.addEventListener("close",e)}send(e){this._ws.send(e)}close(){this._ws.close()}}class RC{constructor(e){this._onCloseEmitter=new ur,this._onReportEmitter=new ur,this._onStdioEmitter=new ur,this._onTestFilesChangedEmitter=new ur,this._onLoadTraceRequestedEmitter=new ur,this._onTestPausedEmitter=new ur,this._lastId=0,this._callbacks=new Map,this._isClosed=!1,this.onClose=this._onCloseEmitter.event,this.onReport=this._onReportEmitter.event,this.onStdio=this._onStdioEmitter.event,this.onTestFilesChanged=this._onTestFilesChangedEmitter.event,this.onLoadTraceRequested=this._onLoadTraceRequestedEmitter.event,this.onTestPaused=this._onTestPausedEmitter.event,this._transport=e,this._transport.onmessage(r=>{const l=JSON.parse(r),{id:o,result:u,error:f,method:d,params:g}=l;if(o){const y=this._callbacks.get(o);if(!y)return;this._callbacks.delete(o),f?y.reject(new Error(f)):y.resolve(u)}else this._dispatchEvent(d,g)});const i=setInterval(()=>this._sendMessage("ping").catch(()=>{}),3e4);this._connectedPromise=new Promise((r,l)=>{this._transport.onopen(r),this._transport.onerror(l)}),this._transport.onclose(()=>{this._isClosed=!0,this._onCloseEmitter.fire(),clearInterval(i);for(const r of this._callbacks.values())r.reject(new TC);this._callbacks.clear()})}isClosed(){return this._isClosed}async _sendMessage(e,i){const r=globalThis.__logForTest;r==null||r({method:e,params:i}),await this._connectedPromise;const l=++this._lastId,o={id:l,method:e,params:i};return this._transport.send(JSON.stringify(o)),new Promise((u,f)=>{this._callbacks.set(l,{resolve:u,reject:f})})}_sendMessageNoReply(e,i){this._sendMessage(e,i).catch(()=>{})}_dispatchEvent(e,i){e==="report"?this._onReportEmitter.fire(i):e==="stdio"?this._onStdioEmitter.fire(i):e==="testFilesChanged"?this._onTestFilesChangedEmitter.fire(i):e==="loadTraceRequested"?this._onLoadTraceRequestedEmitter.fire(i):e==="testPaused"&&this._onTestPausedEmitter.fire(i)}async initialize(e){await this._sendMessage("initialize",e)}async ping(e){await this._sendMessage("ping",e)}async pingNoReply(e){this._sendMessageNoReply("ping",e)}async watch(e){await this._sendMessage("watch",e)}watchNoReply(e){this._sendMessageNoReply("watch",e)}async open(e){await this._sendMessage("open",e)}openNoReply(e){this._sendMessageNoReply("open",e)}async resizeTerminal(e){await this._sendMessage("resizeTerminal",e)}resizeTerminalNoReply(e){this._sendMessageNoReply("resizeTerminal",e)}async checkBrowsers(e){return await this._sendMessage("checkBrowsers",e)}async installBrowsers(e){await this._sendMessage("installBrowsers",e)}async runGlobalSetup(e){return await this._sendMessage("runGlobalSetup",e)}async runGlobalTeardown(e){return await this._sendMessage("runGlobalTeardown",e)}async startDevServer(e){return await this._sendMessage("startDevServer",e)}async stopDevServer(e){return await this._sendMessage("stopDevServer",e)}async clearCache(e){return await this._sendMessage("clearCache",e)}async listFiles(e){return await this._sendMessage("listFiles",e)}async listTests(e){return await this._sendMessage("listTests",e)}async runTests(e){return await this._sendMessage("runTests",e)}async findRelatedTestFiles(e){return await this._sendMessage("findRelatedTestFiles",e)}async stopTests(e){await this._sendMessage("stopTests",e)}stopTestsNoReply(e){this._sendMessageNoReply("stopTests",e)}async closeGracefully(e){await this._sendMessage("closeGracefully",e)}close(){try{this._transport.close()}catch{}}}const DC=({location:n})=>{const[e,i]=on("shouldPopulateCanvasFromScreenshot",!1),[r,l]=d_(),[o,u]=on("mergeFiles",!1);return v.jsx(qS,{settings:[{type:"select",value:r,set:l,name:"Theme",options:f_},...n==="ui-mode"?[{type:"check",value:o,set:u,name:"Merge files"}]:[],{type:"check",value:e,set:i,name:"Display canvas content",title:"Attempt to display the captured canvas appearance in the snapshot preview. May not be accurate."}]})};export{SC as D,Mb as E,gt as R,nc as S,MC as T,LC as W,Cx as _,RC as a,DC as b,jC as c,bC as d,AC as e,kC as f,h_ as g,NC as h,CC as i,v as j,Fe as k,fx as l,Et as m,ed as n,Ht as o,on as p,qS as q,U as r,ls as s,Ab as t,gs as u,n_ as v};
|
|
266
|
+
`,i)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const i=qo(e),r=cr(i);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const i=qo(e),r=cr(i);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,i){return this.type!=="comment"||this.indent<=i?!1:e.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function OS(n){const e=n.prettyErrors!==!1;return{lineCounter:n.lineCounter||e&&new kS||null,prettyErrors:e}}function PN(n,e={}){const{lineCounter:i,prettyErrors:r}=OS(e),l=new Hd(i==null?void 0:i.addNewLine),o=new Ud(e),u=Array.from(o.compose(l.parse(n)));if(r&&i)for(const f of u)f.errors.forEach(dc(n,i)),f.warnings.forEach(dc(n,i));return u.length>0?u:Object.assign([],{empty:!0},o.streamInfo())}function jS(n,e={}){const{lineCounter:i,prettyErrors:r}=OS(e),l=new Hd(i==null?void 0:i.addNewLine),o=new Ud(e);let u=null;for(const f of o.compose(l.parse(n),!0,n.length))if(!u)u=f;else if(u.options.logLevel!=="silent"){u.errors.push(new hs(f.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&i&&(u.errors.forEach(dc(n,i)),u.warnings.forEach(dc(n,i))),u}function WN(n,e,i){let r;typeof e=="function"?r=e:i===void 0&&e&&typeof e=="object"&&(i=e);const l=jS(n,i);if(!l)return null;if(l.warnings.forEach(o=>Pv(l.options.logLevel,o)),l.errors.length>0){if(l.options.logLevel!=="silent")throw l.errors[0];l.errors=[]}return l.toJS(Object.assign({reviver:r},i))}function eC(n,e,i){let r=null;if(typeof e=="function"||Array.isArray(e)?r=e:i===void 0&&e&&(i=e),typeof i=="string"&&(i=i.length),typeof i=="number"){const l=Math.round(i);i=l<1?void 0:l>8?{indent:8}:{indent:l}}if(n===void 0){const{keepUndefined:l}=i??e??{};if(!l)return}return bs(n)&&!r?n.toString(i):new Dr(n,r,i).toString(i)}const LS=Object.freeze(Object.defineProperty({__proto__:null,Alias:xc,CST:QN,Composer:Ud,Document:Dr,Lexer:CS,LineCounter:kS,Pair:vt,Parser:Hd,Scalar:he,Schema:jc,YAMLError:Bd,YAMLMap:Xt,YAMLParseError:hs,YAMLSeq:Ri,YAMLWarning:yS,isAlias:ys,isCollection:$e,isDocument:bs,isMap:Or,isNode:Ie,isPair:He,isScalar:Le,isSeq:jr,parse:WN,parseAllDocuments:PN,parseDocument:jS,stringify:eC,visit:Li,visitAsync:_c},Symbol.toStringTag,{value:"Module"})),tC=({action:n,model:e,sdkLanguage:i,testIdAttributeName:r,isInspecting:l,setIsInspecting:o,highlightedElement:u,setHighlightedElement:f})=>{const[d,g]=U.useState("action"),[y]=on("shouldPopulateCanvasFromScreenshot",!1),m=U.useMemo(()=>rC(n),[n]),{snapshotInfoUrl:S,snapshotUrl:w,popoutUrl:E}=U.useMemo(()=>{const T=m[d];return e&&T?aC(e.traceUri,T,y):{snapshotInfoUrl:void 0,snapshotUrl:void 0,popoutUrl:void 0}},[m,d,y,e]),_=U.useMemo(()=>S!==void 0?{snapshotInfoUrl:S,snapshotUrl:w,popoutUrl:E}:void 0,[S,w,E]);return v.jsxs("div",{className:"snapshot-tab vbox",children:[v.jsxs(ed,{children:[v.jsx(Ht,{className:"pick-locator",title:"Pick locator",icon:"target",toggled:l,onClick:()=>o(!l)}),v.jsx("div",{className:"hbox",style:{height:"100%"},role:"tablist",children:["action","before","after"].map(T=>v.jsx(Db,{id:T,title:sC(T),selected:d===T,onSelect:()=>g(T)},T))}),v.jsx("div",{style:{flex:"auto"}}),v.jsx(Ht,{icon:"link-external",title:"Open snapshot in a new tab",disabled:!(_!=null&&_.popoutUrl),onClick:()=>{const T=window.open((_==null?void 0:_.popoutUrl)||"","_blank");T==null||T.addEventListener("DOMContentLoaded",()=>{new Dv(T,{isUnderTest:DS,sdkLanguage:i,testIdAttributeName:r,stableRafCount:1,browserName:"chromium",customEngines:[]}).consoleApi.install()})}})]}),v.jsx(nC,{snapshotUrls:_,sdkLanguage:i,testIdAttributeName:r,isInspecting:l,setIsInspecting:o,highlightedElement:u,setHighlightedElement:f})]})},nC=({snapshotUrls:n,sdkLanguage:e,testIdAttributeName:i,isInspecting:r,setIsInspecting:l,highlightedElement:o,setHighlightedElement:u})=>{const f=U.useRef(null),d=U.useRef(null),[g,y]=U.useState({viewport:BS,url:""}),m=U.useRef({iteration:0,visibleIframe:0});return U.useEffect(()=>{(async()=>{const S=m.current.iteration+1,w=1-m.current.visibleIframe;m.current.iteration=S;const E=await lC(n==null?void 0:n.snapshotInfoUrl);if(m.current.iteration!==S)return;const _=[f,d][w].current;if(_){let T=()=>{};const N=new Promise(M=>T=M);try{_.addEventListener("load",T),_.addEventListener("error",T);const M=(n==null?void 0:n.snapshotUrl)||oC;_.contentWindow?_.contentWindow.location.replace(M):_.src=M,await N}catch{}finally{_.removeEventListener("load",T),_.removeEventListener("error",T)}}m.current.iteration===S&&(m.current.visibleIframe=w,y(E))})()},[n]),v.jsxs("div",{className:"vbox",tabIndex:0,onKeyDown:S=>{S.key==="Escape"&&r&&l(!1)},children:[v.jsx(V0,{isInspecting:r,sdkLanguage:e,testIdAttributeName:i,highlightedElement:o,setHighlightedElement:u,iframe:f.current,iteration:m.current.iteration}),v.jsx(V0,{isInspecting:r,sdkLanguage:e,testIdAttributeName:i,highlightedElement:o,setHighlightedElement:u,iframe:d.current,iteration:m.current.iteration}),v.jsx(iC,{snapshotInfo:g,children:v.jsxs("div",{className:"snapshot-switcher",children:[v.jsx("iframe",{ref:f,name:"snapshot",title:"DOM Snapshot",className:Fe(m.current.visibleIframe===0&&"snapshot-visible")}),v.jsx("iframe",{ref:d,name:"snapshot",title:"DOM Snapshot",className:Fe(m.current.visibleIframe===1&&"snapshot-visible")})]})})]})},iC=({snapshotInfo:n,children:e})=>{const[i,r]=gs(),l=40,o={width:n.viewport.width,height:n.viewport.height},u={width:Math.max(o.width,480),height:Math.max(o.height+l,320)},f=Math.min(i.width/u.width,i.height/u.height,1),d={x:(i.width-u.width)/2,y:(i.height-u.height)/2};return v.jsx("div",{ref:r,className:"snapshot-wrapper",children:v.jsxs("div",{className:"snapshot-container",style:{width:u.width+"px",height:u.height+"px",transform:`translate(${d.x}px, ${d.y}px) scale(${f})`},children:[v.jsx(KA,{url:n.url}),v.jsx("div",{className:"snapshot-browser-body",children:v.jsx("div",{style:{width:o.width+"px",height:o.height+"px"},children:e})})]})})};function sC(n){return n==="before"?"Before":n==="after"?"After":n==="action"?"Action":n}const V0=({iframe:n,isInspecting:e,sdkLanguage:i,testIdAttributeName:r,highlightedElement:l,setHighlightedElement:o,iteration:u})=>(U.useEffect(()=>{const f=l.lastEdited==="ariaSnapshot"?l.ariaSnapshot:void 0,d=l.lastEdited==="locator"?l.locator:void 0,g=!!f||!!d||e,y=[],m=new URLSearchParams(window.location.search).get("isUnderTest")==="true";try{RS(y,g,i,r,m,"",n==null?void 0:n.contentWindow)}catch{}const S=f?td(LS,f):void 0,w=d?VA(i,d,r):void 0;for(const{recorder:E,frameSelector:_}of y){const T=w!=null&&w.startsWith(_)?w.substring(_.length).trim():void 0,N=(S==null?void 0:S.errors.length)===0?S.fragment:void 0;E.setUIState({mode:e?"inspecting":"none",actionSelector:T,ariaTemplate:N,language:i,testIdAttributeName:r,overlay:{offsetX:0}},{async elementPicked(M){o({locator:Mi(i,_+M.selector),ariaSnapshot:M.ariaSnapshot,lastEdited:"none"})},highlightUpdated(){for(const M of y)M.recorder!==E&&M.recorder.clearHighlight()}})}},[n,e,l,o,i,r,u]),v.jsx(v.Fragment,{}));function RS(n,e,i,r,l,o,u){if(!u)return;const f=u;if(!f._recorder&&e){const d=new Dv(u,{isUnderTest:l,sdkLanguage:i,testIdAttributeName:r,stableRafCount:1,browserName:"chromium",customEngines:[]}),g=new zA(d);f._injectedScript=d,f._recorder={recorder:g,frameSelector:o},l&&(window._weakRecordersForTest=window._weakRecordersForTest||new Set,window._weakRecordersForTest.add(new WeakRef(g)))}f._recorder&&n.push(f._recorder);for(let d=0;d<u.frames.length;++d){const g=u.frames[d],y=g.frameElement?f._injectedScript.generateSelectorSimple(g.frameElement,{omitInternalEngines:!0,testIdAttributeName:r})+" >> internal:control=enter-frame >> ":"";RS(n,e,i,r,l,o+y,g)}}const qa=(n,e,i=!1)=>{if(!n)return;const r=n[e];if(r){if(!n.pageId){console.error("snapshot action must have a pageId");return}return{action:n,snapshotName:r,pageId:n.pageId,point:n.point,hasInputTarget:i}}};function rC(n){if(!n)return{};let e=qa(n,"beforeSnapshot");if(!e){for(let l=Jy(n);l;l=Jy(l))if(l.endTime<=n.startTime&&l.afterSnapshot){e=qa(l,"afterSnapshot");break}}let i=qa(n,"afterSnapshot");if(!i){let l;for(let o=Zy(n);o&&o.startTime<=n.endTime;o=Zy(o))o.endTime>n.endTime||!o.afterSnapshot||l&&l.endTime>o.endTime||(l=o);l?i=qa(l,"afterSnapshot"):i=e}const r=qa(n,"inputSnapshot",!0)??i;return r&&(r.point=n.point),{action:r,before:e,after:i}}const DS=new URLSearchParams(window.location.search).has("isUnderTest");function aC(n,e,i){const r=new URLSearchParams;r.set("trace",n),r.set("name",e.snapshotName),DS&&r.set("isUnderTest","true"),e.point&&(r.set("pointX",String(e.point.x)),r.set("pointY",String(e.point.y)),e.hasInputTarget&&r.set("hasInputTarget","1")),i&&r.set("shouldPopulateCanvasFromScreenshot","1");const l=new URL(`snapshot/${e.pageId}?${r.toString()}`,window.location.href).toString(),o=new URL(`snapshotInfo/${e.pageId}?${r.toString()}`,window.location.href).toString(),u=new URLSearchParams;u.set("r",l),u.set("trace",n);const f=new URL(`snapshot.html?${u.toString()}`,window.location.href).toString();return{snapshotInfoUrl:o,snapshotUrl:l,popoutUrl:f}}async function lC(n){const e={url:"",viewport:BS,timestamp:void 0,wallTime:void 0};if(n){const r=await(await fetch(n)).json();r.error||(e.url=r.url,e.viewport=r.viewport,e.timestamp=r.timestamp,e.wallTime=r.wallTime)}return e}const BS={width:1280,height:720},oC='data:text/html,<body style="background: #ddd"></body>',zS={width:200,height:45},dr=2.5,cC=zS.height+dr*2,uC=({boundaries:n,previewPoint:e})=>{var y,m;const i=Di(),[r,l]=gs(),o=U.useRef(null);let u=0;if(o.current&&e){const S=o.current.getBoundingClientRect();u=(e.clientY-S.top+o.current.scrollTop)/cC|0}const f=(m=(y=i==null?void 0:i.pages)==null?void 0:y[u])==null?void 0:m.screencastFrames;let d,g;if(e!==void 0&&f&&f.length){const S=n.minimum+(n.maximum-n.minimum)*e.x/r.width;d=f[K0(f,S,US)-1];const w={width:Math.min(800,window.innerWidth/2|0),height:Math.min(800,window.innerHeight/2|0)};g=d?HS({width:d.width,height:d.height},w):void 0}return v.jsxs("div",{className:"film-strip",ref:l,children:[v.jsx("div",{className:"film-strip-lanes",ref:o,children:i==null?void 0:i.pages.map((S,w)=>S.screencastFrames.length?v.jsx(fC,{boundaries:n,page:S,width:r.width},w):null)}),i&&(e==null?void 0:e.x)!==void 0&&v.jsxs("div",{className:"film-strip-hover",style:{top:r.bottom+5,left:Math.min(e.x,r.width-(g?g.width:0)-10)},children:[e.action&&v.jsx("div",{className:"film-strip-hover-title",children:Ph(e.action,e)}),d&&g&&v.jsx("div",{style:{width:g.width,height:g.height},children:v.jsx("img",{src:i.createRelativeUrl(`sha1/${d.sha1}`),width:g.width,height:g.height})})]})]})},fC=({boundaries:n,page:e,width:i})=>{const r=Di(),l={width:0,height:0},o=e.screencastFrames;for(const T of o)l.width=Math.max(l.width,T.width),l.height=Math.max(l.height,T.height);const u=HS(l,zS),f=o[0].timestamp,d=o[o.length-1].timestamp,g=n.maximum-n.minimum,y=(f-n.minimum)/g*i,m=(n.maximum-d)/g*i,w=(d-f)/g*i/(u.width+2*dr)|0,E=(d-f)/w,_=[];for(let T=0;f&&E&&T<w;++T){const N=f+E*T,M=K0(o,N,US)-1;_.push(v.jsx("div",{className:"film-strip-frame",style:{width:u.width,height:u.height,backgroundImage:`url(${r==null?void 0:r.createRelativeUrl("sha1/"+o[M].sha1)})`,backgroundSize:`${u.width}px ${u.height}px`,margin:dr,marginRight:dr}},T))}return _.push(v.jsx("div",{className:"film-strip-frame",style:{width:u.width,height:u.height,backgroundImage:`url(${r==null?void 0:r.createRelativeUrl("sha1/"+o[o.length-1].sha1)})`,backgroundSize:`${u.width}px ${u.height}px`,margin:dr,marginRight:dr}},_.length)),v.jsx("div",{className:"film-strip-lane",style:{marginLeft:y+"px",marginRight:m+"px"},children:_})};function US(n,e){return n-e.timestamp}function HS(n,e){const i=Math.max(n.width/e.width,n.height/e.height);return{width:n.width/i|0,height:n.height/i|0}}const hC=({model:n,boundaries:e,consoleEntries:i,networkResources:r,onSelected:l,highlightedAction:o,highlightedResourceOrdinal:u,highlightedConsoleEntryOrdinal:f,selectedTime:d,setSelectedTime:g,sdkLanguage:y})=>{const[m,S]=gs(),[w,E]=U.useState(),[_,T]=U.useState(),[N]=on("actionsFilter",[]),{offsets:M,curtainLeft:$,curtainRight:I}=U.useMemo(()=>{let J=d||e;if(w&&w.startX!==w.endX){const Z=En(m.width,e,w.startX),se=En(m.width,e,w.endX);J={minimum:Math.min(Z,se),maximum:Math.max(Z,se)}}const W=an(m.width,e,J.minimum),z=an(m.width,e,e.maximum)-an(m.width,e,J.maximum);return{offsets:dC(m.width,e),curtainLeft:W,curtainRight:z}},[d,e,w,m]),D=U.useMemo(()=>n==null?void 0:n.filteredActions(N),[n,N]),K=U.useMemo(()=>{const J=[];for(const W of D||[])J.push({action:W,leftTime:W.startTime,rightTime:W.endTime||e.maximum,leftPosition:an(m.width,e,W.startTime),rightPosition:an(m.width,e,W.endTime||e.maximum),active:!1,error:!!W.error});for(const W of(n==null?void 0:n.resources)||[]){const Ae=W._monotonicTime,z=W._monotonicTime+W.time;J.push({resource:W,leftTime:Ae,rightTime:z,leftPosition:an(m.width,e,Ae),rightPosition:an(m.width,e,z),active:!1,error:!1})}for(const W of i||[])J.push({consoleMessage:W,leftTime:W.timestamp,rightTime:W.timestamp,leftPosition:an(m.width,e,W.timestamp),rightPosition:an(m.width,e,W.timestamp),active:!1,error:W.isError});return J},[n,D,i,e,m]);U.useMemo(()=>{for(const J of K)o?J.active=J.action===o:u!==void 0?J.active=J.resource===(r==null?void 0:r[u]):f!==void 0?J.active=J.consoleMessage===(i==null?void 0:i[f]):J.active=!1},[K,o,u,f,i,r]);const Q=U.useCallback(J=>{if(T(void 0),!S.current)return;const W=J.clientX-S.current.getBoundingClientRect().left,Ae=En(m.width,e,W),z=d?an(m.width,e,d.minimum):0,Z=d?an(m.width,e,d.maximum):0;d&&Math.abs(W-z)<10?E({startX:Z,endX:W,type:"resize"}):d&&Math.abs(W-Z)<10?E({startX:z,endX:W,type:"resize"}):d&&Ae>d.minimum&&Ae<d.maximum&&J.clientY-S.current.getBoundingClientRect().top<20?E({startX:z,endX:Z,pivot:W,type:"move"}):E({startX:W,endX:W,type:"resize"})},[e,m,S,d]),q=U.useCallback(J=>{if(!S.current)return;const W=J.clientX-S.current.getBoundingClientRect().left,Ae=En(m.width,e,W),z=D==null?void 0:D.findLast(we=>we.startTime<=Ae);if(!J.buttons){E(void 0);return}if(z&&l(z),!w)return;let Z=w;if(w.type==="resize")Z={...w,endX:W};else{const we=W-w.pivot;let C=w.startX+we,Y=w.endX+we;C<0&&(C=0,Y=C+(w.endX-w.startX)),Y>m.width&&(Y=m.width,C=Y-(w.endX-w.startX)),Z={...w,startX:C,endX:Y,pivot:W}}E(Z);const se=En(m.width,e,Z.startX),Se=En(m.width,e,Z.endX);se!==Se&&g({minimum:Math.min(se,Se),maximum:Math.max(se,Se)})},[e,w,m,D,l,S,g]),j=U.useCallback(()=>{if(T(void 0),!!w){if(w.startX!==w.endX){const J=En(m.width,e,w.startX),W=En(m.width,e,w.endX);g({minimum:Math.min(J,W),maximum:Math.max(J,W)})}else{const J=En(m.width,e,w.startX),W=D==null?void 0:D.findLast(Ae=>Ae.startTime<=J);W&&l(W),g(void 0)}E(void 0)}},[e,w,m,D,g,l]),ne=U.useCallback(J=>{if(!S.current)return;const W=J.clientX-S.current.getBoundingClientRect().left,Ae=En(m.width,e,W),z=D==null?void 0:D.findLast(Z=>Z.startTime<=Ae);T({x:W,clientY:J.clientY,action:z,sdkLanguage:y})},[e,m,D,S,y]),le=U.useCallback(()=>{T(void 0)},[]),V=U.useCallback(()=>{g(void 0)},[g]);return v.jsxs("div",{className:"timeline-view-container",children:[!!w&&v.jsx(Cb,{cursor:(w==null?void 0:w.type)==="resize"?"ew-resize":"grab",onPaneMouseUp:j,onPaneMouseMove:q,onPaneDoubleClick:V}),v.jsxs("div",{ref:S,className:"timeline-view",onMouseDown:Q,onMouseMove:ne,onMouseLeave:le,children:[v.jsx("div",{className:"timeline-grid",children:M.map((J,W)=>v.jsx("div",{className:"timeline-divider",style:{left:J.position+"px"},children:v.jsx("div",{className:"timeline-time",children:Et(J.time-e.minimum)})},W))}),v.jsx("div",{style:{height:8}}),v.jsx(uC,{boundaries:e,previewPoint:_}),v.jsx("div",{className:"timeline-bars",children:K.filter(J=>!J.action||J.action.class!=="Test").map((J,W)=>v.jsx("div",{className:Fe("timeline-bar",J.action&&"action",J.resource&&"network",J.consoleMessage&&"console-message",J.active&&"active",J.error&&"error"),style:{left:J.leftPosition,width:Math.max(5,J.rightPosition-J.leftPosition),top:pC(J),bottom:0}},W))}),v.jsx("div",{className:"timeline-marker",style:{display:_!==void 0?"block":"none",left:((_==null?void 0:_.x)||0)+"px"}}),d&&v.jsxs("div",{className:"timeline-window",children:[v.jsx("div",{className:"timeline-window-curtain left",style:{width:$}}),v.jsx("div",{className:"timeline-window-resizer",style:{left:-5}}),v.jsx("div",{className:"timeline-window-center",children:v.jsx("div",{className:"timeline-window-drag"})}),v.jsx("div",{className:"timeline-window-resizer",style:{left:5}}),v.jsx("div",{className:"timeline-window-curtain right",style:{width:I}})]})]})]})};function dC(n,e){let r=n/64;const l=e.maximum-e.minimum,o=n/l;let u=l/r;const f=Math.ceil(Math.log(u)/Math.LN10);u=Math.pow(10,f),u*o>=320&&(u=u/5),u*o>=128&&(u=u/2);const d=e.minimum;let g=e.maximum;g+=64/o,r=Math.ceil((g-d)/u),u||(r=0);const y=[];for(let m=0;m<r;++m){const S=d+u*m;y.push({position:an(n,e,S),time:S})}return y}function an(n,e,i){return(i-e.minimum)/(e.maximum-e.minimum)*n}function En(n,e,i){return i/n*(e.maximum-e.minimum)+e.minimum}function pC(n){return n.resource?25:20}const gC=({model:n})=>{var i,r;if(!n)return v.jsx(v.Fragment,{});const e=n.wallTime!==void 0?new Date(n.wallTime).toLocaleString(void 0,{timeZoneName:"short"}):void 0;return v.jsxs("div",{style:{flex:"auto",display:"block",overflow:"hidden auto"},children:[v.jsx("div",{className:"call-section",style:{paddingTop:2},children:"Time"}),!!e&&v.jsxs("div",{className:"call-line",children:["start time:",v.jsx("span",{className:"call-value datetime",title:e,children:e})]}),v.jsxs("div",{className:"call-line",children:["duration:",v.jsx("span",{className:"call-value number",title:Et(n.endTime-n.startTime),children:Et(n.endTime-n.startTime)})]}),v.jsx("div",{className:"call-section",children:"Browser"}),v.jsxs("div",{className:"call-line",children:["engine:",v.jsx("span",{className:"call-value string",title:n.browserName,children:n.browserName})]}),n.channel&&v.jsxs("div",{className:"call-line",children:["channel:",v.jsx("span",{className:"call-value string",title:n.channel,children:n.channel})]}),n.platform&&v.jsxs("div",{className:"call-line",children:["platform:",v.jsx("span",{className:"call-value string",title:n.platform,children:n.platform})]}),n.playwrightVersion&&v.jsxs("div",{className:"call-line",children:["playwright version:",v.jsx("span",{className:"call-value string",title:n.playwrightVersion,children:n.playwrightVersion})]}),n.options.userAgent&&v.jsxs("div",{className:"call-line",children:["user agent:",v.jsx("span",{className:"call-value datetime",title:n.options.userAgent,children:n.options.userAgent})]}),n.options.baseURL&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"call-section",style:{paddingTop:2},children:"Config"}),v.jsxs("div",{className:"call-line",children:["baseURL:",v.jsx("a",{className:"call-value string",href:n.options.baseURL,title:n.options.baseURL,target:"_blank",rel:"noopener noreferrer",children:n.options.baseURL})]})]}),v.jsx("div",{className:"call-section",children:"Viewport"}),n.options.viewport&&v.jsxs("div",{className:"call-line",children:["width:",v.jsx("span",{className:"call-value number",title:String(!!((i=n.options.viewport)!=null&&i.width)),children:n.options.viewport.width})]}),n.options.viewport&&v.jsxs("div",{className:"call-line",children:["height:",v.jsx("span",{className:"call-value number",title:String(!!((r=n.options.viewport)!=null&&r.height)),children:n.options.viewport.height})]}),v.jsxs("div",{className:"call-line",children:["is mobile:",v.jsx("span",{className:"call-value boolean",title:String(!!n.options.isMobile),children:String(!!n.options.isMobile)})]}),n.options.deviceScaleFactor&&v.jsxs("div",{className:"call-line",children:["device scale:",v.jsx("span",{className:"call-value number",title:String(n.options.deviceScaleFactor),children:String(n.options.deviceScaleFactor)})]}),v.jsx("div",{className:"call-section",children:"Counts"}),v.jsxs("div",{className:"call-line",children:["pages:",v.jsx("span",{className:"call-value number",children:n.pages.length})]}),v.jsxs("div",{className:"call-line",children:["actions:",v.jsx("span",{className:"call-value number",children:n.actions.length})]}),v.jsxs("div",{className:"call-line",children:["events:",v.jsx("span",{className:"call-value number",children:n.events.length})]})]})},mC=({annotations:n})=>n.length?v.jsx("div",{className:"annotations-tab",children:n.map((e,i)=>v.jsxs("div",{className:"annotation-item",children:[v.jsx("span",{style:{fontWeight:"bold"},children:e.type}),e.description&&v.jsxs("span",{children:[": ",Ob(e.description)]})]},`annotation-${i}`))}):v.jsx(ms,{text:"No annotations"}),yC=({sdkLanguage:n,isInspecting:e,setIsInspecting:i,highlightedElement:r,setHighlightedElement:l})=>{const[o,u]=U.useState(),f=U.useCallback(d=>{const{errors:g}=td(LS,d,{prettyErrors:!1}),y=g.map(m=>({message:m.message,line:m.range[1].line,column:m.range[1].col,type:"subtle-error"}));u(y),l({...r,ariaSnapshot:d,lastEdited:"ariaSnapshot"}),i(!1)},[r,l,i]);return v.jsxs("div",{style:{flex:"auto",backgroundColor:"var(--vscode-sideBar-background)",padding:"0 10px 10px 10px",overflow:"auto"},children:[v.jsxs("div",{className:"hbox",style:{lineHeight:"28px",color:"var(--vscode-editorCodeLens-foreground)"},children:[v.jsx("div",{children:"Locator"}),v.jsx(Ht,{style:{margin:"0 4px"},title:"Pick locator",icon:"target",toggled:e,onClick:()=>i(!e)}),v.jsx("div",{style:{flex:"auto"}}),v.jsx(Ht,{icon:"files",title:"Copy locator",onClick:()=>{qy(r.locator||"")}})]}),v.jsx("div",{style:{height:50},children:v.jsx(xr,{text:r.locator||"",highlighter:n,isFocused:!0,wrapLines:!0,onChange:d=>{l({...r,locator:d,lastEdited:"locator"}),i(!1)}})}),v.jsxs("div",{className:"hbox",style:{lineHeight:"28px",color:"var(--vscode-editorCodeLens-foreground)"},children:[v.jsx("div",{style:{flex:"auto"},children:"Aria snapshot"}),v.jsx(Ht,{icon:"files",title:"Copy snapshot",onClick:()=>{qy(r.ariaSnapshot||"")}})]}),v.jsx("div",{style:{height:150},children:v.jsx(xr,{text:r.ariaSnapshot||"",highlighter:"yaml",wrapLines:!1,highlight:o,onChange:f})})]})},bC=({className:n,style:e,open:i,isModal:r,minWidth:l,verticalOffset:o,requestClose:u,anchor:f,dataTestId:d,children:g})=>{const y=U.useRef(null),[m,S]=U.useState(0),[w]=Eh(y),[E,_]=Eh(f),T=f?vC(w,E,o):void 0;return U.useEffect(()=>{const N=$=>{!y.current||!($.target instanceof Node)||y.current.contains($.target)||u==null||u()},M=$=>{$.key==="Escape"&&(u==null||u())};return i?(document.addEventListener("mousedown",N),document.addEventListener("keydown",M),()=>{document.removeEventListener("mousedown",N),document.removeEventListener("keydown",M)}):()=>{}},[i,u]),U.useLayoutEffect(()=>_(),[i,_]),U.useEffect(()=>{const N=()=>S(M=>M+1);return window.addEventListener("resize",N),()=>{window.removeEventListener("resize",N)}},[]),U.useLayoutEffect(()=>{y.current&&(i?r?y.current.showModal():y.current.show():y.current.close())},[i,r]),v.jsx("dialog",{ref:y,style:{position:"fixed",margin:T?0:void 0,zIndex:110,top:T==null?void 0:T.top,left:T==null?void 0:T.left,minWidth:l||0,...e},className:n,"data-testid":d,children:g})};function vC(n,e,i=4,r=4){let l=Math.max(r,e.left);l+n.width>window.innerWidth-r&&(l=window.innerWidth-n.width-r);let o=Math.max(0,e.bottom)+i;return o+n.height>window.innerHeight-i&&(Math.max(0,e.top)>n.height+i?o=Math.max(0,e.top)-n.height-i:o=window.innerHeight-i-n.height),{left:l,top:o}}const SC=({title:n,icon:e,buttonChildren:i,anchorRef:r,dialogDataTestId:l,children:o})=>{const u=U.useRef(null),f=r??u,[d,g]=U.useState(!1);return v.jsxs(v.Fragment,{children:[v.jsx(Ht,{ref:u,icon:e,title:n,onClick:()=>g(y=>!y),children:i}),v.jsx(bC,{style:{backgroundColor:"var(--vscode-sideBar-background)",padding:"4px 8px"},open:d,verticalOffset:8,requestClose:()=>g(!1),anchor:f,dataTestId:l,children:o})]})},qS=({settings:n})=>v.jsx("div",{className:"vbox settings-view",children:n.map(e=>{const i=`setting-${e.name.replaceAll(/\s+/g,"-")}`;return v.jsx("div",{className:`setting setting-${e.type}`,title:e.title,children:wC(e,i)},e.name)})}),wC=(n,e)=>{switch(n.type){case"check":return v.jsxs(v.Fragment,{children:[v.jsx("input",{type:"checkbox",id:e,checked:n.value,onChange:()=>n.set(!n.value)}),v.jsxs("label",{htmlFor:e,children:[n.name,!!n.count&&v.jsx("span",{className:"setting-counter",children:n.count})]})]});case"select":return v.jsxs(v.Fragment,{children:[v.jsxs("label",{htmlFor:e,children:[n.name,":",!!n.count&&v.jsx("span",{className:"setting-counter",children:n.count})]}),v.jsx("select",{id:e,value:n.value,onChange:i=>n.set(i.target.value),children:n.options.map(i=>v.jsx("option",{value:i.value,children:i.label},i.value))})]});default:return null}},LC=n=>{var i;const e=TC((i=n.model)==null?void 0:i.traceUri);return v.jsx(jb.Provider,{value:n.model,children:v.jsx(_C,{partition:e,...n})})},_C=n=>{var gl;const{partition:e,model:i,showSourcesFirst:r,rootDir:l,fallbackLocation:o,isLive:u,hideTimeline:f,status:d,annotations:g,inert:y,onOpenExternally:m,revealSource:S,testRunMetadata:w}=n,[E,_]=on("navigatorTab","actions"),[T,N]=on("propertiesTab",r?"source":"call"),[M,$]=on("propertiesSidebarLocation","bottom"),[I]=on("actionsFilter",[]),[D,K]=Ci("selectedCallId"),[Q,q]=Ci("selectedTime"),[j,ne]=Ci("highlightedCallId"),[le,V]=Ci("revealedErrorKey"),[J,W]=Ci("highlightedConsoleMessageOrdinal"),[Ae,z]=Ci("revealedAttachmentCallId"),[Z,se]=Ci("highlightedResourceOrdinal"),[Se,we]=Ci("treeState",{expandedItems:new Map});l_(e);const[C,Y]=U.useState({lastEdited:"none"}),[P,ee]=U.useState(!1),ue=U.useCallback(ce=>{K(ce==null?void 0:ce.callId),V(void 0)},[K,V]),re=U.useMemo(()=>i==null?void 0:i.filteredActions(I),[i,I]),_e=((i==null?void 0:i.actions.length)??0)-((re==null?void 0:re.length)??0),tt=U.useMemo(()=>re==null?void 0:re.find(ce=>ce.callId===j),[re,j]),Re=U.useCallback(ce=>{ne(ce==null?void 0:ce.callId)},[ne]),zi=U.useMemo(()=>(i==null?void 0:i.sources)||new Map,[i]);U.useEffect(()=>{q(void 0),V(void 0)},[i,q,V]);const kn=U.useMemo(()=>{if(D){const Sn=re==null?void 0:re.find(Ft=>Ft.callId===D);if(Sn)return Sn}const ce=i==null?void 0:i.failedAction();if(ce)return ce;if(re!=null&&re.length){let Sn=re.length-1;for(let Ft=0;Ft<re.length;++Ft)if(re[Ft].title==="After Hooks"&&Ft){Sn=Ft-1;break}return re[Sn]}},[i,re,D]),hn=U.useMemo(()=>tt||kn,[kn,tt]),Br=U.useCallback(ce=>{ue(ce),Re(void 0)},[ue,Re]),nt=U.useCallback(ce=>{N(ce),ce!=="inspector"&&ee(!1)},[N]),vs=U.useCallback(ce=>{!P&&ce&&nt("inspector"),ee(ce)},[ee,nt,P]),zr=U.useCallback(ce=>{Y(ce),nt("inspector")},[nt]),Bc=U.useCallback(ce=>{nt("attachments"),z({callId:ce})},[nt,z]);U.useEffect(()=>{S&&nt("source")},[S,nt]);const Ss=eT(i,Q),Ui=ET(i,Q),ti=Qx(i),Ur=U.useMemo(()=>{var ce;return le!==void 0?(ce=ti.errors.get(le))==null?void 0:ce.stack:hn==null?void 0:hn.stack},[hn,le,ti]),ni=(i==null?void 0:i.sdkLanguage)||"javascript",zc={id:"inspector",title:"Locator",render:()=>v.jsx(yC,{sdkLanguage:ni,isInspecting:P,setIsInspecting:vs,highlightedElement:C,setHighlightedElement:Y})},St={id:"call",title:"Call",render:()=>v.jsx(mx,{action:hn,startTimeOffset:(i==null?void 0:i.startTime)??0,sdkLanguage:ni})},Uc={id:"log",title:"Log",render:()=>v.jsx(vx,{action:hn,isLive:u})},dl={id:"errors",title:"Errors",errorCount:ti.errors.size,render:()=>v.jsx(Zx,{errorsModel:ti,testRunMetadata:w,sdkLanguage:ni,revealInSource:ce=>{ce.action?ue(ce.action):V(ce.message),nt("source")},wallTime:(i==null?void 0:i.wallTime)??0})};let Hr;!kn&&o&&(Hr=(gl=o.source)==null?void 0:gl.errors.length);const ii={id:"source",title:"Source",errorCount:Hr,render:()=>v.jsx(Yx,{stack:Ur,sources:zi,rootDir:l,stackFrameLocation:M==="bottom"?"right":"bottom",fallbackLocation:o,onOpenExternally:m})},Hc={id:"console",title:"Console",count:Ss.entries.length,render:()=>v.jsx(tT,{consoleModel:Ss,boundaries:Mn,selectedTime:Q,onAccepted:ce=>q({minimum:ce.timestamp,maximum:ce.timestamp}),onEntryHovered:W})},pl={id:"network",title:"Network",count:Ui.resources.length,render:()=>v.jsx(AT,{boundaries:Mn,networkModel:Ui,onResourceHovered:se,sdkLanguage:(i==null?void 0:i.sdkLanguage)??"javascript"})},qc={id:"attachments",title:"Attachments",count:i==null?void 0:i.visibleAttachments.length,render:()=>v.jsx(Ux,{revealedAttachmentCallId:Ae})},Hi=[zc,St,Uc,dl,Hc,pl,ii,qc];if(g!==void 0){const ce={id:"annotations",title:"Annotations",count:g.length,render:()=>v.jsx(mC,{annotations:g})};Hi.push(ce)}if(r){const ce=Hi.indexOf(ii);Hi.splice(ce,1),Hi.splice(1,0,ii)}const{boundaries:Mn}=U.useMemo(()=>{const ce={minimum:(i==null?void 0:i.startTime)||0,maximum:(i==null?void 0:i.endTime)||3e4};return ce.minimum>ce.maximum&&(ce.minimum=0,ce.maximum=3e4),ce.maximum+=(ce.maximum-ce.minimum)/20,{boundaries:ce}},[i]);let rt=0;!u&&i&&i.endTime>=0?rt=i.endTime-i.startTime:i&&i.wallTime&&(rt=Date.now()-i.wallTime);const vn={id:"actions",title:"Actions",component:v.jsxs("div",{className:"vbox",children:[d&&v.jsxs("div",{className:"workbench-run-status",children:[v.jsx("span",{className:Fe("codicon",Ab(d))}),v.jsx("div",{children:dx(d)}),v.jsx("div",{className:"spacer"}),v.jsx("div",{className:"workbench-run-duration",children:rt?Et(rt):""})]}),v.jsx(gx,{sdkLanguage:ni,actions:re||[],selectedAction:i?kn:void 0,selectedTime:Q,setSelectedTime:q,treeState:Se,setTreeState:we,onSelected:Br,onHighlighted:Re,revealActionAttachment:Bc,revealConsole:()=>nt("console"),isLive:u})]})},wt={id:"metadata",title:"Metadata",component:v.jsx(gC,{model:i})},$c=E==="actions"&&v.jsx(xC,{counters:i==null?void 0:i.actionCounters,hiddenActionsCount:_e});return v.jsxs("div",{className:"vbox workbench",...y?{inert:!0}:{},children:[!f&&v.jsx(hC,{model:i,consoleEntries:Ss.entries,networkResources:Ui.resources,boundaries:Mn,highlightedAction:tt,highlightedResourceOrdinal:Z,highlightedConsoleEntryOrdinal:J,onSelected:Br,sdkLanguage:ni,selectedTime:Q,setSelectedTime:q}),v.jsx(nc,{sidebarSize:250,orientation:M==="bottom"?"vertical":"horizontal",settingName:"propertiesSidebar",main:v.jsx(nc,{sidebarSize:250,orientation:"horizontal",sidebarIsFirst:!0,settingName:"actionListSidebar",main:v.jsx(tC,{action:hn,model:i,sdkLanguage:ni,testIdAttributeName:(i==null?void 0:i.testIdAttributeName)||"data-testid",isInspecting:P,setIsInspecting:vs,highlightedElement:C,setHighlightedElement:zr}),sidebar:v.jsx(jh,{tabs:[vn,wt],rightToolbar:[$c],selectedTab:E,setSelectedTab:_})}),sidebar:v.jsx(jh,{tabs:Hi,selectedTab:T,setSelectedTab:nt,rightToolbar:[M==="bottom"?v.jsx(Ht,{title:"Dock to right",icon:"layout-sidebar-right-off",onClick:()=>{$("right")}}):v.jsx(Ht,{title:"Dock to bottom",icon:"layout-panel-off",onClick:()=>{$("bottom")}})],mode:M==="bottom"?"default":"select"})})]})},xC=({counters:n,hiddenActionsCount:e})=>{const[i,r]=on("actionsFilter",[]),l=U.useRef(null),o=v.jsxs(v.Fragment,{children:[e>0&&v.jsxs("span",{className:"workbench-actions-hidden-count",title:e+" actions hidden by filters",children:[e," hidden"]}),v.jsx("span",{ref:l,className:"codicon codicon-filter"})]});return v.jsx(SC,{title:"Filter actions",dialogDataTestId:"actions-filter-dialog",buttonChildren:o,anchorRef:l,children:v.jsx(qS,{settings:[{type:"check",value:i.includes("getter"),set:u=>r(u?[...i,"getter"]:i.filter(f=>f!=="getter")),name:"Getters",count:n==null?void 0:n.get("getter")},{type:"check",value:i.includes("route"),set:u=>r(u?[...i,"route"]:i.filter(f=>f!=="route")),name:"Network routes",count:n==null?void 0:n.get("route")},{type:"check",value:i.includes("configuration"),set:u=>r(u?[...i,"configuration"]:i.filter(f=>f!=="configuration")),name:"Configuration",count:n==null?void 0:n.get("configuration")}]})})};function TC(n){if(!n)return"default";const e=new URL(n,"http://localhost");return e.searchParams.delete("timestamp"),e.toString()}var G0;(n=>{function e(i){for(const r of i.splice(0))r.dispose()}n.disposeAll=e})(G0||(G0={}));class ur{constructor(){this._listeners=new Set,this.event=(e,i)=>{this._listeners.add(e);let r=!1;const l=this,o={dispose(){r||(r=!0,l._listeners.delete(e))}};return i&&i.push(o),o}}fire(e){const i=!this._deliveryQueue;this._deliveryQueue||(this._deliveryQueue=[]);for(const r of this._listeners)this._deliveryQueue.push({listener:r,event:e});if(i){for(let r=0;r<this._deliveryQueue.length;r++){const{listener:l,event:o}=this._deliveryQueue[r];l.call(null,o)}this._deliveryQueue=void 0}}dispose(){this._listeners.clear(),this._deliveryQueue&&(this._deliveryQueue=[])}}class EC extends Error{constructor(){super("Test server connection closed")}}class RC{constructor(e){this._ws=new WebSocket(e)}onmessage(e){this._ws.addEventListener("message",i=>e(i.data.toString()))}onopen(e){this._ws.addEventListener("open",e)}onerror(e){this._ws.addEventListener("error",e)}onclose(e){this._ws.addEventListener("close",e)}send(e){this._ws.send(e)}close(){this._ws.close()}}class DC{constructor(e){this._onCloseEmitter=new ur,this._onReportEmitter=new ur,this._onStdioEmitter=new ur,this._onTestFilesChangedEmitter=new ur,this._onLoadTraceRequestedEmitter=new ur,this._onTestPausedEmitter=new ur,this._lastId=0,this._callbacks=new Map,this._isClosed=!1,this.onClose=this._onCloseEmitter.event,this.onReport=this._onReportEmitter.event,this.onStdio=this._onStdioEmitter.event,this.onTestFilesChanged=this._onTestFilesChangedEmitter.event,this.onLoadTraceRequested=this._onLoadTraceRequestedEmitter.event,this.onTestPaused=this._onTestPausedEmitter.event,this._transport=e,this._transport.onmessage(r=>{const l=JSON.parse(r),{id:o,result:u,error:f,method:d,params:g}=l;if(o){const y=this._callbacks.get(o);if(!y)return;this._callbacks.delete(o),f?y.reject(new Error(f)):y.resolve(u)}else this._dispatchEvent(d,g)});const i=setInterval(()=>this._sendMessage("ping").catch(()=>{}),3e4);this._connectedPromise=new Promise((r,l)=>{this._transport.onopen(r),this._transport.onerror(l)}),this._transport.onclose(()=>{this._isClosed=!0,this._onCloseEmitter.fire(),clearInterval(i);for(const r of this._callbacks.values())r.reject(new EC);this._callbacks.clear()})}isClosed(){return this._isClosed}async _sendMessage(e,i){const r=globalThis.__logForTest;r==null||r({method:e,params:i}),await this._connectedPromise;const l=++this._lastId,o={id:l,method:e,params:i};return this._transport.send(JSON.stringify(o)),new Promise((u,f)=>{this._callbacks.set(l,{resolve:u,reject:f})})}_sendMessageNoReply(e,i){this._sendMessage(e,i).catch(()=>{})}_dispatchEvent(e,i){e==="report"?this._onReportEmitter.fire(i):e==="stdio"?this._onStdioEmitter.fire(i):e==="testFilesChanged"?this._onTestFilesChangedEmitter.fire(i):e==="loadTraceRequested"?this._onLoadTraceRequestedEmitter.fire(i):e==="testPaused"&&this._onTestPausedEmitter.fire(i)}async initialize(e){await this._sendMessage("initialize",e)}async ping(e){await this._sendMessage("ping",e)}async pingNoReply(e){this._sendMessageNoReply("ping",e)}async watch(e){await this._sendMessage("watch",e)}watchNoReply(e){this._sendMessageNoReply("watch",e)}async open(e){await this._sendMessage("open",e)}openNoReply(e){this._sendMessageNoReply("open",e)}async resizeTerminal(e){await this._sendMessage("resizeTerminal",e)}resizeTerminalNoReply(e){this._sendMessageNoReply("resizeTerminal",e)}async checkBrowsers(e){return await this._sendMessage("checkBrowsers",e)}async installBrowsers(e){await this._sendMessage("installBrowsers",e)}async runGlobalSetup(e){return await this._sendMessage("runGlobalSetup",e)}async runGlobalTeardown(e){return await this._sendMessage("runGlobalTeardown",e)}async startDevServer(e){return await this._sendMessage("startDevServer",e)}async stopDevServer(e){return await this._sendMessage("stopDevServer",e)}async clearCache(e){return await this._sendMessage("clearCache",e)}async listFiles(e){return await this._sendMessage("listFiles",e)}async listTests(e){return await this._sendMessage("listTests",e)}async runTests(e){return await this._sendMessage("runTests",e)}async findRelatedTestFiles(e){return await this._sendMessage("findRelatedTestFiles",e)}async stopTests(e){await this._sendMessage("stopTests",e)}stopTestsNoReply(e){this._sendMessageNoReply("stopTests",e)}async closeGracefully(e){await this._sendMessage("closeGracefully",e)}close(){try{this._transport.close()}catch{}}}const BC=({location:n})=>{const[e,i]=on("shouldPopulateCanvasFromScreenshot",!1),[r,l]=d_(),[o,u]=on("mergeFiles",!1);return v.jsx(qS,{settings:[{type:"select",value:r,set:l,name:"Theme",options:f_},...n==="ui-mode"?[{type:"check",value:o,set:u,name:"Merge files"}]:[],{type:"check",value:e,set:i,name:"Display canvas content",title:"Attempt to display the captured canvas appearance in the snapshot preview. May not be accurate."}]})};export{SC as D,Mb as E,gt as R,nc as S,OC as T,RC as W,Cx as _,DC as a,BC as b,LC as c,bC as d,NC as e,MC as f,h_ as g,CC as h,kC as i,v as j,Fe as k,fx as l,Et as m,ed as n,Ht as o,on as p,qS as q,U as r,ls as s,Ab as t,gs as u,n_ as v};
|