venetian 0.4.2-aarch64-linux → 0.4.4-aarch64-linux

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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/exe/aarch64-linux/node +2 -2
  3. data/exe/aarch64-linux/package/browsers.json +7 -7
  4. data/exe/aarch64-linux/package/lib/coreBundle.js +1805 -1077
  5. data/exe/aarch64-linux/package/lib/server/electron/loader.js +27 -17
  6. data/exe/aarch64-linux/package/lib/tools/cli-client/channelSessions.js +10 -8
  7. data/exe/aarch64-linux/package/lib/tools/cli-client/help.json +12 -7
  8. data/exe/aarch64-linux/package/lib/tools/skills/playwright-cli/SKILL.md +1 -1
  9. data/exe/aarch64-linux/package/lib/tools/skills/playwright-cli/references/running-code.md +2 -0
  10. data/exe/aarch64-linux/package/lib/tools/skills/playwright-cli/references/storage-state.md +3 -0
  11. data/exe/aarch64-linux/package/lib/tools/skills/playwright-cli/references/test-generation.md +1 -1
  12. data/exe/aarch64-linux/package/lib/tools/skills/playwright-cli/references/tracing.md +12 -5
  13. data/exe/aarch64-linux/package/lib/utilsBundle.js +10410 -4080
  14. data/exe/aarch64-linux/package/lib/utilsBundle.js.LICENSE +43 -16
  15. data/exe/aarch64-linux/package/lib/vite/dashboard/assets/{codeMirrorModule-CQ8RZGBm.js → codeMirrorModule-D5SeAdMv.js} +4 -4
  16. data/exe/aarch64-linux/package/lib/vite/dashboard/assets/index-BnQkOdFO.css +1 -0
  17. data/exe/aarch64-linux/package/lib/vite/dashboard/assets/{index-hRvO4yU2.js → index-C_gcIYdA.js} +4 -4
  18. data/exe/aarch64-linux/package/lib/vite/dashboard/index.html +3 -3
  19. data/exe/aarch64-linux/package/lib/vite/htmlReport/report.js +2 -2
  20. data/exe/aarch64-linux/package/lib/vite/recorder/assets/{codeMirrorModule-DK72OMRi.js → codeMirrorModule-ClnuDfLq.js} +4 -4
  21. data/exe/aarch64-linux/package/lib/vite/recorder/assets/{index-Cn0mmDuv.js → index-BwOPSdeb.js} +7 -7
  22. data/exe/aarch64-linux/package/lib/vite/recorder/index.html +1 -1
  23. data/exe/aarch64-linux/package/lib/vite/traceViewer/assets/{codeMirrorModule-BEB2e8M3.js → codeMirrorModule-DNqxPF-E.js} +7 -7
  24. data/exe/aarch64-linux/package/lib/vite/traceViewer/assets/defaultSettingsView-BQT9Z6FV.js +184 -0
  25. data/exe/aarch64-linux/package/lib/vite/traceViewer/assets/rolldown-runtime-QTnfLwEv.js +1 -0
  26. data/exe/aarch64-linux/package/lib/vite/traceViewer/assets/urlMatch-Cgl6axSs.js +1 -0
  27. data/exe/aarch64-linux/package/lib/vite/traceViewer/assets/{xtermModule-B794rD2Z.js → xtermModule-Cv6bi7od.js} +1 -1
  28. data/exe/aarch64-linux/package/lib/vite/traceViewer/index.BY2vkw8A.js +1 -0
  29. data/exe/aarch64-linux/package/lib/vite/traceViewer/index.html +4 -3
  30. data/exe/aarch64-linux/package/lib/vite/traceViewer/{snapshot.B_Jk1wbt.js → snapshot.-ChLTbql.js} +1 -1
  31. data/exe/aarch64-linux/package/lib/vite/traceViewer/snapshot.html +2 -2
  32. data/exe/aarch64-linux/package/lib/vite/traceViewer/sw.bundle.js +2 -2
  33. data/exe/aarch64-linux/package/lib/vite/traceViewer/uiMode.DuLwZHRf.js +5 -0
  34. data/exe/aarch64-linux/package/lib/vite/traceViewer/uiMode.html +4 -3
  35. data/exe/aarch64-linux/package/package.json +1 -1
  36. data/exe/aarch64-linux/package/types/protocol.d.ts +129 -19
  37. data/exe/aarch64-linux/package/types/types.d.ts +39 -17
  38. data/lib/venetian/version.rb +3 -3
  39. metadata +17 -16
  40. data/exe/aarch64-linux/package/lib/vite/dashboard/assets/index-AwgwcYie.css +0 -1
  41. data/exe/aarch64-linux/package/lib/vite/traceViewer/assets/defaultSettingsView-D-g2vrvf.js +0 -184
  42. data/exe/aarch64-linux/package/lib/vite/traceViewer/assets/urlMatch-L3liM589.js +0 -1
  43. data/exe/aarch64-linux/package/lib/vite/traceViewer/index.7-c5LSTW.js +0 -1
  44. data/exe/aarch64-linux/package/lib/vite/traceViewer/uiMode.CYwC_gH1.js +0 -5
@@ -0,0 +1,184 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./codeMirrorModule-DNqxPF-E.js","./rolldown-runtime-QTnfLwEv.js","../codeMirrorModule.-QdMvsKi.css"])))=>i.map(i=>d[i]);
2
+ import{n as e,r as t,t as n}from"./rolldown-runtime-QTnfLwEv.js";import{t as r}from"./urlMatch-Cgl6axSs.js";var i=n((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function T(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function te(e,t){return T(e.type,t,e.props)}function ne(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function re(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ie=/\/+/g;function ae(e,t){return typeof e==`object`&&e&&e.key!=null?re(``+e.key):t.toString(36)}function oe(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function se(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,se(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ae(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(ie,`$&/`)+`/`),se(o,r,i,``,function(e){return e})):o!=null&&(ne(o)&&(o=te(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ie,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ae(a,u),c+=se(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ae(a,u++),c+=se(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return se(oe(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function E(e,t,n){if(e==null)return e;var r=[],i=0;return se(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function D(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ce=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},le={map:E,forEach:function(e,t,n){E(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(e){return e})||[]},only:function(e){if(!ne(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=le,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!ee.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return T(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)ee.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return T(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=ne,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:D}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,ce)}catch(e){ce(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.7`})),a=n(((e,t)=>{t.exports=i()})),o=t(a());function s(e,t,n,r){let[i,a]=o.useState(n);return o.useEffect(()=>{let t=!1;return r!==void 0&&a(r),e().then(e=>{t||a(e)}),()=>{t=!0}},t),i}function c(){let e=o.useRef(null),[t]=l(e);return[t,e]}function l(e){let[t,n]=o.useState(new DOMRect(0,0,10,10)),r=o.useCallback(()=>{let t=e?.current;t&&n(t.getBoundingClientRect())},[e]);return o.useLayoutEffect(()=>{let t=e?.current;if(!t)return;r();let n=new ResizeObserver(r);return n.observe(t),window.addEventListener(`resize`,r),()=>{n.disconnect(),window.removeEventListener(`resize`,r)}},[r,e]),[t,r]}function u(e,t,n,r,i){let a=r||0,o=i===void 0?e.length:i;for(;a<o;){let r=a+o>>1;n(t,e[r])>=0?a=r+1:o=r}return o}function d(e){let t=document.createElement(`textarea`);t.style.position=`absolute`,t.style.zIndex=`-1000`,t.value=e,document.body.appendChild(t),t.select(),document.execCommand(`copy`),t.remove()}function f(e,t){e&&(t=v.getObject(e,t));let[n,r]=o.useState(t),i=o.useCallback(t=>{e?v.setObject(e,t):r(t)},[e,r]);return o.useEffect(()=>{if(e){let n=()=>r(v.getObject(e,t));return v.onChangeEmitter.addEventListener(e,n),()=>v.onChangeEmitter.removeEventListener(e,n)}},[t,e]),[n,i]}var p=new Map,m=new Map,h;function g(e,t){let[n,r]=o.useState();return m.set(e,{setter:r,defaultValue:t}),[n,o.useCallback(t=>{let n=p.get(h||`default`)||{};n[e]=t,p.set(h||`default`,n),r(t)},[e])]}function _(e){if(h===e)return;h=e;let t=p.get(e)||{};for(let[e,n]of m.entries())n.setter(t[e]||n.defaultValue)}var v=new class{constructor(){this.onChangeEmitter=new EventTarget}getString(e,t){return localStorage[e]||t}setString(e,t){localStorage[e]=t,this.onChangeEmitter.dispatchEvent(new Event(e)),window.saveSettings?.()}getObject(e,t){if(!localStorage[e])return t;try{return JSON.parse(localStorage[e])}catch{return t}}setObject(e,t){localStorage[e]=JSON.stringify(t),this.onChangeEmitter.dispatchEvent(new Event(e)),window.saveSettings?.()}};function y(...e){return e.filter(Boolean).join(` `)}function b(e){e&&(e?.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e?.scrollIntoView())}var x=RegExp(`(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|www\\.)[^\\s\\u0000-\\u0020\\u007f-\\u009f"]{2,}[^\\s\\u0000-\\u0020\\u007f-\\u009f"')}\\],:;.!?]`,`ug`);function S(){let[e,t]=o.useState(!1);return[e,o.useCallback(()=>{let e=[];return t(n=>(e.push(setTimeout(()=>t(!1),1e3)),n?(e.push(setTimeout(()=>t(!0),50)),!1):!0)),()=>e.forEach(clearTimeout)},[t])]}var C=`system`,w=`theme`,ee=[{label:`Dark mode`,value:`dark-mode`},{label:`Light mode`,value:`light-mode`},{label:`System`,value:`system`}],T=window.matchMedia(`(prefers-color-scheme: dark)`);function te(){document.playwrightThemeInitialized||(document.playwrightThemeInitialized=!0,document.defaultView.addEventListener(`focus`,e=>{e.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove(`inactive`)},!1),document.defaultView.addEventListener(`blur`,e=>{document.body.classList.add(`inactive`)},!1),re(oe()),T.addEventListener(`change`,()=>{re(oe())}))}var ne=new Set;function re(e){let t=se(),n=e===`system`?T.matches?`dark-mode`:`light-mode`:e;if(t!==n){t&&document.documentElement.classList.remove(t),document.documentElement.classList.add(n);for(let e of ne)e(n)}}function ie(e){ne.add(e)}function ae(e){ne.delete(e)}function oe(){return v.getString(w,C)}function se(){return document.documentElement.classList.contains(`dark-mode`)?`dark-mode`:document.documentElement.classList.contains(`light-mode`)?`light-mode`:null}function E(){let[e,t]=o.useState(oe());return o.useEffect(()=>{v.setString(w,e),re(e)},[e]),[e,t]}var D=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,ne());else{var t=n(l);t!==null&&ae(x,t.startTime-e)}}var S=!1,C=-1,w=5,ee=-1;function T(){return g?!0:!(e.unstable_now()-ee<w)}function te(){if(g=!1,S){var t=e.unstable_now();ee=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&T());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ae(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ne():S=!1}}}var ne;if(typeof y==`function`)ne=function(){y(te)};else if(typeof MessageChannel<`u`){var re=new MessageChannel,ie=re.port2;re.port1.onmessage=te,ne=function(){ie.postMessage(null)}}else ne=function(){_(te,0)};function ae(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ae(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ne()))),r},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),ce=n(((e,t)=>{t.exports=D()})),le=n((e=>{var t=a();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return s(e,t,null,r)},e.flushSync=function(e){var t=c.T,n=i.p;try{if(c.T=null,i.p=2,e)return e()}finally{c.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=l(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.7`})),ue=n(((e,t)=>{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)}}n(),t.exports=le()})),de=n((e=>{var t=ce(),n=a(),r=ue();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function c(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(s(e)!==e)throw Error(i(188))}function d(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return u(a),e;if(o===r)return u(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var c=!1,l=a.child;l;){if(l===n){c=!0,n=a,r=o;break}if(l===r){c=!0,r=a,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=a;break}if(l===r){c=!0,r=o,n=a;break}l=l.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),ee=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),te=Symbol.for(`react.activity`),ne=Symbol.for(`react.memo_cache_sentinel`),re=Symbol.iterator;function ie(e){return typeof e!=`object`||!e?null:(e=re&&e[re]||e[`@@iterator`],typeof e==`function`?e:null)}var ae=Symbol.for(`react.client.reference`);function oe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case te:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ee:return t=e.displayName||null,t===null?oe(e.type)||`Memo`:t;case T:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}var se=Array.isArray,E=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},de=[],fe=-1;function pe(e){return{current:e}}function O(e){0>fe||(e.current=de[fe],de[fe]=null,fe--)}function k(e,t){fe++,de[fe]=e.current,e.current=t}var me=pe(null),he=pe(null),ge=pe(null),_e=pe(null);function ve(e,t){switch(k(ge,t),k(he,e),k(me,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Ud(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}O(me),k(me,e)}function ye(){O(me),O(he),O(ge)}function be(e){e.memoizedState!==null&&k(_e,e);var t=me.current,n=Ud(t,e.type);t!==n&&(k(he,e),k(me,n))}function xe(e){he.current===e&&(O(me),O(he)),_e.current===e&&(O(_e),Qf._currentValue=le)}var Se,Ce;function we(e){if(Se===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||``,Ce=-1<e.stack.indexOf(`
3
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
+ `+Se+e+Ce}var Te=!1;function Ee(e,t){if(!e||Te)return``;Te=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
5
+ `),l=s.split(`
6
+ `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
7
+ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?we(n):``}function De(e,t){switch(e.tag){case 26:case 27:case 5:return we(e.type);case 16:return we(`Lazy`);case 13:return e.child!==t&&t!==null?we(`Suspense Fallback`):we(`Suspense`);case 19:return we(`SuspenseList`);case 0:case 15:return Ee(e.type,!1);case 11:return Ee(e.type.render,!1);case 1:return Ee(e.type,!0);case 31:return we(`Activity`);default:return``}}function A(e){try{var t=``,n=null;do t+=De(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8
+ Error generating stack: `+e.message+`
9
+ `+e.stack}}var Oe=Object.prototype.hasOwnProperty,ke=t.unstable_scheduleCallback,Ae=t.unstable_cancelCallback,je=t.unstable_shouldYield,Me=t.unstable_requestPaint,Ne=t.unstable_now,Pe=t.unstable_getCurrentPriorityLevel,Fe=t.unstable_ImmediatePriority,Ie=t.unstable_UserBlockingPriority,Le=t.unstable_NormalPriority,Re=t.unstable_LowPriority,ze=t.unstable_IdlePriority,Be=t.log,Ve=t.unstable_setDisableYieldValue,He=null,Ue=null;function We(e){if(typeof Be==`function`&&Ve(e),Ue&&typeof Ue.setStrictMode==`function`)try{Ue.setStrictMode(He,e)}catch{}}var Ge=Math.clz32?Math.clz32:Je,Ke=Math.log,qe=Math.LN2;function Je(e){return e>>>=0,e===0?32:31-(Ke(e)/qe|0)|0}var Ye=256,Xe=262144,Ze=4194304;function Qe(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $e(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Qe(n))):i=Qe(o):i=Qe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Qe(n))):i=Qe(o)):i=Qe(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function et(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function tt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 nt(){var e=Ze;return Ze<<=1,!(Ze&62914560)&&(Ze=4194304),e}function rt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function it(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function at(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ge(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&ot(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ot(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ge(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function st(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ge(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ct(e,t){var n=t&-t;return n=n&42?1:lt(n),(n&(e.suspendedLanes|t))===0?n:0}function lt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ut(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function dt(){var e=D.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function ft(e,t){var n=D.p;try{return D.p=e,t()}finally{D.p=n}}var pt=Math.random().toString(36).slice(2),mt=`__reactFiber$`+pt,ht=`__reactProps$`+pt,gt=`__reactContainer$`+pt,_t=`__reactEvents$`+pt,vt=`__reactListeners$`+pt,yt=`__reactHandles$`+pt,bt=`__reactResources$`+pt,xt=`__reactMarker$`+pt;function St(e){delete e[mt],delete e[ht],delete e[_t],delete e[vt],delete e[yt]}function Ct(e){var t=e[mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gt]||n[mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[mt])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function wt(e){if(e=e[mt]||e[gt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Tt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Et(e){var t=e[bt];return t||=e[bt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Dt(e){e[xt]=!0}var Ot=new Set,kt={};function At(e,t){jt(e,t),jt(e+`Capture`,t)}function jt(e,t){for(kt[e]=t,e=0;e<t.length;e++)Ot.add(t[e])}var Mt=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]*$`),Nt={},Pt={};function Ft(e){return Oe.call(Pt,e)?!0:Oe.call(Nt,e)?!1:Mt.test(e)?Pt[e]=!0:(Nt[e]=!0,!1)}function It(e,t,n){if(Ft(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Lt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Rt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function zt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Bt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Vt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ht(e){if(!e._valueTracker){var t=Bt(e)?`checked`:`value`;e._valueTracker=Vt(e,t,``+e[t])}}function Ut(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Bt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Wt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Gt=/[\n"\\]/g;function Kt(e){return e.replace(Gt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function qt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+zt(t)):e.value!==``+zt(t)&&(e.value=``+zt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Yt(e,o,zt(n)):Yt(e,o,zt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+zt(s):e.removeAttribute(`name`)}function Jt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ht(e);return}n=n==null?``:``+zt(n),t=t==null?n:``+zt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ht(e)}function Yt(e,t,n){t===`number`&&Wt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function j(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+zt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Xt(e,t,n){if(t!=null&&(t=``+zt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+zt(n)}function Zt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(se(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=zt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ht(e)}function Qt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $t=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 en(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||$t.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function tn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&en(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&en(e,o,t[o])}function nn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){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 rn=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`]]),an=/^[\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 on(e){return an.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function sn(){}var cn=null;function ln(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var un=null,dn=null;function fn(e){var t=wt(e);if(t&&(e=t.stateNode)){var n=e[ht]||null;a:switch(e=t.stateNode,t.type){case`input`:if(qt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Kt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ht]||null;if(!a)throw Error(i(90));qt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Ut(r)}break a;case`textarea`:Xt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&j(e,!!n.multiple,t,!1)}}}var pn=!1;function mn(e,t,n){if(pn)return e(t,n);pn=!0;try{return e(t)}finally{if(pn=!1,(un!==null||dn!==null)&&(Su(),un&&(t=un,e=dn,dn=un=null,fn(t),e)))for(t=0;t<e.length;t++)fn(e[t])}}function hn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ht]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var gn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),_n=!1;if(gn)try{var M={};Object.defineProperty(M,"passive",{get:function(){_n=!0}}),window.addEventListener(`test`,M,M),window.removeEventListener(`test`,M,M)}catch{_n=!1}var vn=null,yn=null,bn=null;function xn(){if(bn)return bn;var e,t=yn,n=t.length,r,i=`value`in vn?vn.value:vn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return bn=i.slice(e,1<r?1-r:void 0)}function Sn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Cn(){return!0}function wn(){return!1}function Tn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Cn:wn,this.isPropagationStopped=wn,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Cn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Cn)},persist:function(){},isPersistent:Cn}),t}var En={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dn=Tn(En),On=p({},En,{view:0,detail:0}),kn=Tn(On),An,jn,Mn,Nn=p({},On,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Mn&&(Mn&&e.type===`mousemove`?(An=e.screenX-Mn.screenX,jn=e.screenY-Mn.screenY):jn=An=0,Mn=e),An)},movementY:function(e){return`movementY`in e?e.movementY:jn}}),Pn=Tn(Nn),Fn=Tn(p({},Nn,{dataTransfer:0})),In=Tn(p({},On,{relatedTarget:0})),Ln=Tn(p({},En,{animationName:0,elapsedTime:0,pseudoElement:0})),Rn=Tn(p({},En,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),zn=Tn(p({},En,{data:0})),Bn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Vn={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`},Hn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Un(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hn[e])?!!t[e]:!1}function Wn(){return Un}var Gn=Tn(p({},On,{key:function(e){if(e.key){var t=Bn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Sn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Vn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wn,charCode:function(e){return e.type===`keypress`?Sn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Sn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Kn=Tn(p({},Nn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),qn=Tn(p({},On,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wn})),Jn=Tn(p({},En,{propertyName:0,elapsedTime:0,pseudoElement:0})),Yn=Tn(p({},Nn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Xn=Tn(p({},En,{newState:0,oldState:0})),Zn=[9,13,27,32],Qn=gn&&`CompositionEvent`in window,$n=null;gn&&`documentMode`in document&&($n=document.documentMode);var er=gn&&`TextEvent`in window&&!$n,tr=gn&&(!Qn||$n&&8<$n&&11>=$n),nr=` `,rr=!1;function ir(e,t){switch(e){case`keyup`:return Zn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function ar(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var or=!1;function sr(e,t){switch(e){case`compositionend`:return ar(t);case`keypress`:return t.which===32?(rr=!0,nr):null;case`textInput`:return e=t.data,e===nr&&rr?null:e;default:return null}}function cr(e,t){if(or)return e===`compositionend`||!Qn&&ir(e,t)?(e=xn(),bn=yn=vn=null,or=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return tr&&t.locale!==`ko`?null:t.data;default:return null}}var lr={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 ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!lr[e.type]:t===`textarea`}function dr(e,t,n,r){un?dn?dn.push(r):dn=[r]:un=r,t=Dd(t,`onChange`),0<t.length&&(n=new Dn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var fr=null,pr=null;function mr(e){xd(e,0)}function hr(e){if(Ut(Tt(e)))return e}function gr(e,t){if(e===`change`)return t}var _r=!1;if(gn){var vr;if(gn){var yr=`oninput`in document;if(!yr){var br=document.createElement(`div`);br.setAttribute(`oninput`,`return;`),yr=typeof br.oninput==`function`}vr=yr}else vr=!1;_r=vr&&(!document.documentMode||9<document.documentMode)}function xr(){fr&&(fr.detachEvent(`onpropertychange`,Sr),pr=fr=null)}function Sr(e){if(e.propertyName===`value`&&hr(pr)){var t=[];dr(t,pr,e,ln(e)),mn(mr,t)}}function Cr(e,t,n){e===`focusin`?(xr(),fr=t,pr=n,fr.attachEvent(`onpropertychange`,Sr)):e===`focusout`&&xr()}function wr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return hr(pr)}function Tr(e,t){if(e===`click`)return hr(t)}function Er(e,t){if(e===`input`||e===`change`)return hr(t)}function Dr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Or=typeof Object.is==`function`?Object.is:Dr;function kr(e,t){if(Or(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Oe.call(t,i)||!Or(e[i],t[i]))return!1}return!0}function Ar(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jr(e,t){var n=Ar(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Ar(n)}}function Mr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wt(e.document)}return t}function Pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Fr=gn&&`documentMode`in document&&11>=document.documentMode,Ir=null,Lr=null,Rr=null,zr=!1;function Br(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zr||Ir==null||Ir!==Wt(r)||(r=Ir,`selectionStart`in r&&Pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Rr&&kr(Rr,r)||(Rr=r,r=Dd(Lr,`onSelect`),0<r.length&&(t=new Dn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Ir)))}function Vr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Hr={animationend:Vr(`Animation`,`AnimationEnd`),animationiteration:Vr(`Animation`,`AnimationIteration`),animationstart:Vr(`Animation`,`AnimationStart`),transitionrun:Vr(`Transition`,`TransitionRun`),transitionstart:Vr(`Transition`,`TransitionStart`),transitioncancel:Vr(`Transition`,`TransitionCancel`),transitionend:Vr(`Transition`,`TransitionEnd`)},Ur={},Wr={};gn&&(Wr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Hr.animationend.animation,delete Hr.animationiteration.animation,delete Hr.animationstart.animation),`TransitionEvent`in window||delete Hr.transitionend.transition);function Gr(e){if(Ur[e])return Ur[e];if(!Hr[e])return e;var t=Hr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wr)return Ur[e]=t[n];return e}var Kr=Gr(`animationend`),qr=Gr(`animationiteration`),Jr=Gr(`animationstart`),Yr=Gr(`transitionrun`),Xr=Gr(`transitionstart`),Zr=Gr(`transitioncancel`),Qr=Gr(`transitionend`),$r=new Map,ei=`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(` `);ei.push(`scrollEnd`);function ti(e,t){$r.set(e,t),At(t,[e])}var ni=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ri=[],ii=0,ai=0;function oi(){for(var e=ii,t=ai=ii=0;t<e;){var n=ri[t];ri[t++]=null;var r=ri[t];ri[t++]=null;var i=ri[t];ri[t++]=null;var a=ri[t];if(ri[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ui(n,i,a)}}function si(e,t,n,r){ri[ii++]=e,ri[ii++]=t,ri[ii++]=n,ri[ii++]=r,ai|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ci(e,t,n,r){return si(e,t,n,r),di(e)}function li(e,t){return si(e,null,null,t),di(e)}function ui(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ge(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function di(e){if(50<pu)throw pu=0,mu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fi={};function pi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mi(e,t,n,r){return new pi(e,t,n,r)}function hi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gi(e,t){var n=e.alternate;return n===null?(n=mi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function _i(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function vi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)hi(e)&&(s=1);else if(typeof e==`string`)s=Uf(e,n,me.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case te:return e=mi(31,n,t,a),e.elementType=te,e.lanes=o,e;case _:return yi(n.children,a,o,t);case v:s=8,a|=24;break;case y:return e=mi(12,n,t,a|2),e.elementType=y,e.lanes=o,e;case C:return e=mi(13,n,t,a),e.elementType=C,e.lanes=o,e;case w:return e=mi(19,n,t,a),e.elementType=w,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case x:s=10;break a;case b:s=9;break a;case S:s=11;break a;case ee:s=14;break a;case T:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=mi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function yi(e,t,n,r){return e=mi(7,e,r,t),e.lanes=n,e}function bi(e,t,n){return e=mi(6,e,null,t),e.lanes=n,e}function xi(e){var t=mi(18,null,null,0);return t.stateNode=e,t}function Si(e,t,n){return t=mi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ci=new WeakMap;function wi(e,t){if(typeof e==`object`&&e){var n=Ci.get(e);return n===void 0?(t={value:e,source:t,stack:A(t)},Ci.set(e,t),t):n}return{value:e,source:t,stack:A(t)}}var Ti=[],Ei=0,Di=null,Oi=0,ki=[],Ai=0,ji=null,Mi=1,Ni=``;function Pi(e,t){Ti[Ei++]=Oi,Ti[Ei++]=Di,Di=e,Oi=t}function Fi(e,t,n){ki[Ai++]=Mi,ki[Ai++]=Ni,ki[Ai++]=ji,ji=e;var r=Mi;e=Ni;var i=32-Ge(r)-1;r&=~(1<<i),n+=1;var a=32-Ge(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Mi=1<<32-Ge(t)+i|n<<i|r,Ni=a+e}else Mi=1<<a|n<<i|r,Ni=e}function Ii(e){e.return!==null&&(Pi(e,1),Fi(e,1,0))}function Li(e){for(;e===Di;)Di=Ti[--Ei],Ti[Ei]=null,Oi=Ti[--Ei],Ti[Ei]=null;for(;e===ji;)ji=ki[--Ai],ki[Ai]=null,Ni=ki[--Ai],ki[Ai]=null,Mi=ki[--Ai],ki[Ai]=null}function Ri(e,t){ki[Ai++]=Mi,ki[Ai++]=Ni,ki[Ai++]=ji,Mi=t.id,Ni=t.overflow,ji=e}var zi=null,Bi=null,N=!1,Vi=null,Hi=!1,Ui=Error(i(519));function Wi(e){throw Xi(wi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ui}function Gi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[mt]=e,t[ht]=r,n){case`dialog`:X(`cancel`,t),X(`close`,t);break;case`iframe`:case`object`:case`embed`:X(`load`,t);break;case`video`:case`audio`:for(n=0;n<yd.length;n++)X(yd[n],t);break;case`source`:X(`error`,t);break;case`img`:case`image`:case`link`:X(`error`,t),X(`load`,t);break;case`details`:X(`toggle`,t);break;case`input`:X(`invalid`,t),Jt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:X(`invalid`,t);break;case`textarea`:X(`invalid`,t),Zt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Nd(t.textContent,n)?(r.popover!=null&&(X(`beforetoggle`,t),X(`toggle`,t)),r.onScroll!=null&&X(`scroll`,t),r.onScrollEnd!=null&&X(`scrollend`,t),r.onClick!=null&&(t.onclick=sn),t=!0):t=!1,t||Wi(e,!0)}function Ki(e){for(zi=e.return;zi;)switch(zi.tag){case 5:case 31:case 13:Hi=!1;return;case 27:case 3:Hi=!0;return;default:zi=zi.return}}function qi(e){if(e!==zi)return!1;if(!N)return Ki(e),N=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Wd(e.type,e.memoizedProps)),n=!n),n&&Bi&&Wi(e),Ki(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Bi=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Bi=uf(e)}else t===27?(t=Bi,Zd(e.type)?(e=lf,lf=null,Bi=e):Bi=t):Bi=zi?cf(e.stateNode.nextSibling):null;return!0}function Ji(){Bi=zi=null,N=!1}function Yi(){var e=Vi;return e!==null&&(eu===null?eu=e:eu.push.apply(eu,e),Vi=null),e}function Xi(e){Vi===null?Vi=[e]:Vi.push(e)}var Zi=pe(null),Qi=null,$i=null;function ea(e,t,n){k(Zi,t._currentValue),t._currentValue=n}function ta(e){e._currentValue=Zi.current,O(Zi)}function na(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ra(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),na(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),na(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ia(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Or(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===_e.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}a=a.return}e!==null&&ra(t,e,n,r),t.flags|=262144}function aa(e){for(e=e.firstContext;e!==null;){if(!Or(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function oa(e){Qi=e,$i=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function sa(e){return la(Qi,e)}function ca(e,t){return Qi===null&&oa(e),la(e,t)}function la(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},$i===null){if(e===null)throw Error(i(308));$i=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else $i=$i.next=t;return n}var ua=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},da=t.unstable_scheduleCallback,fa=t.unstable_NormalPriority,pa={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ma(){return{controller:new ua,data:new Map,refCount:0}}function ha(e){e.refCount--,e.refCount===0&&da(fa,function(){e.controller.abort()})}var ga=null,_a=0,va=0,ya=null;function ba(e,t){if(ga===null){var n=ga=[];_a=0,va=pd(),ya={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return _a++,t.then(xa,xa),t}function xa(){if(--_a===0&&ga!==null){ya!==null&&(ya.status=`fulfilled`);var e=ga;ga=null,va=0,ya=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Sa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ca=E.S;E.S=function(e,t){ru=Ne(),typeof t==`object`&&t&&typeof t.then==`function`&&ba(e,t),Ca!==null&&Ca(e,t)};var wa=pe(null);function Ta(){var e=wa.current;return e===null?W.pooledCache:e}function Ea(e,t){t===null?k(wa,wa.current):k(wa,t.pool)}function Da(){var e=Ta();return e===null?null:{parent:pa._currentValue,pool:e}}var Oa=Error(i(460)),ka=Error(i(474)),Aa=Error(i(542)),ja={then:function(){}};function Ma(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Na(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(sn,sn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,La(e),e;default:if(typeof t.status==`string`)t.then(sn,sn);else{if(e=W,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,La(e),e}throw Fa=t,Oa}}function Pa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Fa=e,Oa):e}}var Fa=null;function Ia(){if(Fa===null)throw Error(i(459));var e=Fa;return Fa=null,e}function La(e){if(e===Oa||e===Aa)throw Error(i(483))}var Ra=null,za=0;function Ba(e){var t=za;return za+=1,Ra===null&&(Ra=[]),Na(Ra,e,t)}function Va(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ha(e,t){throw t.$$typeof===m?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ua(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=gi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=bi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===_?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===T&&Pa(i)===t.type)?(t=a(t,n.props),Va(t,n),t.return=e,t):(t=vi(n.type,n.key,n.props,null,e.mode,r),Va(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Si(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=yi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=bi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case h:return n=vi(t.type,t.key,t.props,null,e.mode,n),Va(n,t),n.return=e,n;case g:return t=Si(t,e.mode,n),t.return=e,t;case T:return t=Pa(t),f(e,t,n)}if(se(t)||ie(t))return t=yi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ba(t),n);if(t.$$typeof===x)return f(e,ca(e,t),n);Ha(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case h:return n.key===i?l(e,t,n,r):null;case g:return n.key===i?u(e,t,n,r):null;case T:return n=Pa(n),p(e,t,n,r)}if(se(n)||ie(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ba(n),r);if(n.$$typeof===x)return p(e,t,ca(e,n),r);Ha(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case h:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case g:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case T:return r=Pa(r),m(e,t,n,r,i)}if(se(r)||ie(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ba(r),i);if(r.$$typeof===x)return m(e,t,n,ca(t,r),i);Ha(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),N&&Pi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return N&&Pi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),N&&Pi(i,h),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),N&&Pi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return N&&Pi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),N&&Pi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&Pa(l)===r.type){n(e,r.sibling),c=a(r,o.props),Va(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=yi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=vi(o.type,o.key,o.props,null,e.mode,c),Va(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=Si(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=Pa(o),b(e,r,o,c)}if(se(o))return v(e,r,o,c);if(ie(o)){if(l=ie(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ba(o),c);if(o.$$typeof===x)return b(e,r,ca(e,o),c);Ha(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=bi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{za=0;var i=b(e,t,n,r);return Ra=null,i}catch(t){if(t===Oa||t===Aa)throw t;var a=mi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Wa=Ua(!0),Ga=Ua(!1),P=!1;function Ka(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ja(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ya(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=di(e),ui(e,null,n),t}return si(e,r,t,n),di(e)}function Xa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,st(e,n)}}function Za(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Qa=!1;function $a(){if(Qa){var e=ya;if(e!==null)throw e}}function eo(e,t,n,r){Qa=!1;var i=e.updateQueue;P=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(K&f)===f:(r&f)===f){f!==0&&f===va&&(Qa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:P=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Jl|=o,e.lanes=o,e.memoizedState=d}}function to(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function no(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)to(n[e],t)}var ro=pe(null),io=pe(0);function ao(e,t){e=Kl,k(io,e),k(ro,t),Kl=e|t.baseLanes}function oo(){k(io,Kl),k(ro,ro.current)}function so(){Kl=io.current,O(ro),O(io)}var co=pe(null),lo=null;function uo(e){var t=e.alternate;k(ho,ho.current&1),k(co,e),lo===null&&(t===null||ro.current!==null||t.memoizedState!==null)&&(lo=e)}function fo(e){k(ho,ho.current),k(co,e),lo===null&&(lo=e)}function po(e){e.tag===22?(k(ho,ho.current),k(co,e),lo===null&&(lo=e)):mo(e)}function mo(){k(ho,ho.current),k(co,co.current)}function F(e){O(co),lo===e&&(lo=null),O(ho)}var ho=pe(0);function go(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _o=0,I=null,L=null,vo=null,yo=!1,bo=!1,xo=!1,So=0,Co=0,wo=null,To=0;function Eo(){throw Error(i(321))}function Do(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Or(e[n],t[n]))return!1;return!0}function Oo(e,t,n,r,i,a){return _o=a,I=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,E.H=e===null||e.memoizedState===null?Us:Ws,xo=!1,a=n(r,i),xo=!1,bo&&(a=Ao(t,n,r,i)),ko(e),a}function ko(e){E.H=Hs;var t=L!==null&&L.next!==null;if(_o=0,vo=L=I=null,yo=!1,Co=0,wo=null,t)throw Error(i(300));e===null||B||(e=e.dependencies,e!==null&&aa(e)&&(B=!0))}function Ao(e,t,n,r){I=e;var a=0;do{if(bo&&(wo=null),Co=0,bo=!1,25<=a)throw Error(i(301));if(a+=1,vo=L=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}E.H=Gs,o=t(n,r)}while(bo);return o}function jo(){var e=E.H,t=e.useState()[0];return t=typeof t.then==`function`?Lo(t):t,e=e.useState()[0],(L===null?null:L.memoizedState)!==e&&(I.flags|=1024),t}function Mo(){var e=So!==0;return So=0,e}function No(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Po(e){if(yo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}yo=!1}_o=0,vo=L=I=null,bo=!1,Co=So=0,wo=null}function Fo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vo===null?I.memoizedState=vo=e:vo=vo.next=e,vo}function R(){if(L===null){var e=I.alternate;e=e===null?null:e.memoizedState}else e=L.next;var t=vo===null?I.memoizedState:vo.next;if(t!==null)vo=t,L=e;else{if(e===null)throw I.alternate===null?Error(i(467)):Error(i(310));L=e,e={memoizedState:L.memoizedState,baseState:L.baseState,baseQueue:L.baseQueue,queue:L.queue,next:null},vo===null?I.memoizedState=vo=e:vo=vo.next=e}return vo}function Io(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Lo(e){var t=Co;return Co+=1,wo===null&&(wo=[]),e=Na(wo,e,t),t=I,(vo===null?t.memoizedState:vo.next)===null&&(t=t.alternate,E.H=t===null||t.memoizedState===null?Us:Ws),e}function Ro(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Lo(e);if(e.$$typeof===x)return sa(e)}throw Error(i(438,String(e)))}function zo(e){var t=null,n=I.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=I.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Io(),I.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=ne;return t.index++,n}function Bo(e,t){return typeof t==`function`?t(e):t}function Vo(e){return Ho(R(),L,e)}function Ho(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(_o&f)===f:(K&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===va&&(d=!0);else if((_o&p)===p){u=u.next,p===va&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,I.lanes|=p,Jl|=p;f=u.action,xo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,I.lanes|=f,Jl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Or(o,e.memoizedState)&&(B=!0,d&&(n=ya,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Uo(e){var t=R(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Or(o,t.memoizedState)||(B=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Wo(e,t,n){var r=I,a=R(),o=N;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Or((L||a).memoizedState,n);if(s&&(a.memoizedState=n,B=!0),a=a.queue,hs(qo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||vo!==null&&vo.memoizedState.tag&1){if(r.flags|=2048,us(9,{destroy:void 0},Ko.bind(null,r,a,n,t),null),W===null)throw Error(i(349));o||_o&127||Go(r,t,n)}return n}function Go(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=I.updateQueue,t===null?(t=Io(),I.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ko(e,t,n,r){t.value=n,t.getSnapshot=r,Jo(t)&&Yo(e)}function qo(e,t,n){return n(function(){Jo(t)&&Yo(e)})}function Jo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Or(e,n)}catch{return!0}}function Yo(e){var t=li(e,2);t!==null&&_u(t,e,2)}function Xo(e){var t=Fo();if(typeof e==`function`){var n=e;if(e=n(),xo){We(!0);try{n()}finally{We(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:e},t}function Zo(e,t,n,r){return e.baseState=n,Ho(e,L,typeof r==`function`?r:Bo)}function Qo(e,t,n,r,a){if(zs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};E.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,$o(t,o)):(o.next=n.next,t.pending=n.next=o)}}function $o(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=E.T,o={};E.T=o;try{var s=n(i,r),c=E.S;c!==null&&c(o,s),es(e,t,s)}catch(n){ns(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),E.T=a}}else try{a=n(i,r),es(e,t,a)}catch(n){ns(e,t,n)}}function es(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ts(e,t,n)},function(n){return ns(e,t,n)}):ts(e,t,n)}function ts(e,t,n){t.status=`fulfilled`,t.value=n,rs(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,$o(e,n)))}function ns(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,rs(t),t=t.next;while(t!==r)}e.action=null}function rs(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function is(e,t){return t}function as(e,t){if(N){var n=W.formState;if(n!==null){a:{var r=I;if(N){if(Bi){b:{for(var i=Bi,a=Hi;i.nodeType!==8;){if(!a){i=null;break b}if(i=cf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Bi=cf(i.nextSibling),r=i.data===`F!`;break a}}Wi(r)}r=!1}r&&(t=n[0])}}return n=Fo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:is,lastRenderedState:t},n.queue=r,n=Is.bind(null,I,r),r.dispatch=n,r=Xo(!1),a=Rs.bind(null,I,!1,r.queue),r=Fo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Qo.bind(null,I,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function os(e){return ss(R(),L,e)}function ss(e,t,n){if(t=Ho(e,t,is)[0],e=Vo(Bo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Lo(t)}catch(e){throw e===Oa?Aa:e}else r=t;t=R();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(I.flags|=2048,us(9,{destroy:void 0},cs.bind(null,i,n),null)),[r,a,e]}function cs(e,t){e.action=t}function ls(e){var t=R(),n=L;if(n!==null)return ss(t,n,e);R(),t=t.memoizedState,n=R();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function us(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=I.updateQueue,t===null&&(t=Io(),I.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ds(){return R().memoizedState}function fs(e,t,n,r){var i=Fo();I.flags|=e,i.memoizedState=us(1|t,{destroy:void 0},n,r===void 0?null:r)}function ps(e,t,n,r){var i=R();r=r===void 0?null:r;var a=i.memoizedState.inst;L!==null&&r!==null&&Do(r,L.memoizedState.deps)?i.memoizedState=us(t,a,n,r):(I.flags|=e,i.memoizedState=us(1|t,a,n,r))}function ms(e,t){fs(8390656,8,e,t)}function hs(e,t){ps(2048,8,e,t)}function gs(e){I.flags|=4;var t=I.updateQueue;if(t===null)t=Io(),I.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function _s(e){var t=R().memoizedState;return gs({ref:t,nextImpl:e}),function(){if(U&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function vs(e,t){return ps(4,2,e,t)}function ys(e,t){return ps(4,4,e,t)}function bs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function xs(e,t,n){n=n==null?null:n.concat([e]),ps(4,4,bs.bind(null,t,e),n)}function Ss(){}function Cs(e,t){var n=R();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Do(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ws(e,t){var n=R();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Do(t,r[1]))return r[0];if(r=e(),xo){We(!0);try{e()}finally{We(!1)}}return n.memoizedState=[r,t],r}function Ts(e,t,n){return n===void 0||_o&1073741824&&!(K&261930)?e.memoizedState=t:(e.memoizedState=n,e=gu(),I.lanes|=e,Jl|=e,n)}function Es(e,t,n,r){return Or(n,t)?n:ro.current===null?!(_o&42)||_o&1073741824&&!(K&261930)?(B=!0,e.memoizedState=n):(e=gu(),I.lanes|=e,Jl|=e,t):(e=Ts(e,n,r),Or(e,t)||(B=!0),e)}function z(e,t,n,r,i){var a=D.p;D.p=a!==0&&8>a?a:8;var o=E.T,s={};E.T=s,Rs(e,!1,t,n);try{var c=i(),l=E.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ls(e,t,Sa(c,r),hu(e)):Ls(e,t,r,hu(e))}catch(n){Ls(e,t,{then:function(){},status:`rejected`,reason:n},hu())}finally{D.p=a,o!==null&&s.types!==null&&(o.types=s.types),E.T=o}}function Ds(){}function Os(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ks(e).queue;z(e,a,t,le,n===null?Ds:function(){return As(e),n(r)})}function ks(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:le},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function As(e){var t=ks(e);t.next===null&&(t=e.alternate.memoizedState),Ls(e,t.next.queue,{},hu())}function js(){return sa(Qf)}function Ms(){return R().memoizedState}function Ns(){return R().memoizedState}function Ps(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=hu();e=Ja(n);var r=Ya(t,e,n);r!==null&&(_u(r,t,n),Xa(r,t,n)),t={cache:ma()},e.payload=t;return}t=t.return}}function Fs(e,t,n){var r=hu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},zs(e)?Bs(t,n):(n=ci(e,t,n,r),n!==null&&(_u(n,e,r),Vs(n,t,r)))}function Is(e,t,n){Ls(e,t,n,hu())}function Ls(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(zs(e))Bs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Or(s,o))return si(e,t,i,0),W===null&&oi(),!1}catch{}if(n=ci(e,t,i,r),n!==null)return _u(n,e,r),Vs(n,t,r),!0}return!1}function Rs(e,t,n,r){if(r={lane:2,revertLane:pd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},zs(e)){if(t)throw Error(i(479))}else t=ci(e,n,r,2),t!==null&&_u(t,e,2)}function zs(e){var t=e.alternate;return e===I||t!==null&&t===I}function Bs(e,t){bo=yo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,st(e,n)}}var Hs={readContext:sa,use:Ro,useCallback:Eo,useContext:Eo,useEffect:Eo,useImperativeHandle:Eo,useLayoutEffect:Eo,useInsertionEffect:Eo,useMemo:Eo,useReducer:Eo,useRef:Eo,useState:Eo,useDebugValue:Eo,useDeferredValue:Eo,useTransition:Eo,useSyncExternalStore:Eo,useId:Eo,useHostTransitionStatus:Eo,useFormState:Eo,useActionState:Eo,useOptimistic:Eo,useMemoCache:Eo,useCacheRefresh:Eo};Hs.useEffectEvent=Eo;var Us={readContext:sa,use:Ro,useCallback:function(e,t){return Fo().memoizedState=[e,t===void 0?null:t],e},useContext:sa,useEffect:ms,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),fs(4194308,4,bs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fs(4194308,4,e,t)},useInsertionEffect:function(e,t){fs(4,2,e,t)},useMemo:function(e,t){var n=Fo();t=t===void 0?null:t;var r=e();if(xo){We(!0);try{e()}finally{We(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Fo();if(n!==void 0){var i=n(t);if(xo){We(!0);try{n(t)}finally{We(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Fs.bind(null,I,e),[r.memoizedState,e]},useRef:function(e){var t=Fo();return e={current:e},t.memoizedState=e},useState:function(e){e=Xo(e);var t=e.queue,n=Is.bind(null,I,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ss,useDeferredValue:function(e,t){return Ts(Fo(),e,t)},useTransition:function(){var e=Xo(!1);return e=z.bind(null,I,e.queue,!0,!1),Fo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=I,a=Fo();if(N){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),W===null)throw Error(i(349));K&127||Go(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ms(qo.bind(null,r,o,e),[e]),r.flags|=2048,us(9,{destroy:void 0},Ko.bind(null,r,o,n,t),null),n},useId:function(){var e=Fo(),t=W.identifierPrefix;if(N){var n=Ni,r=Mi;n=(r&~(1<<32-Ge(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=So++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=To++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:js,useFormState:as,useActionState:as,useOptimistic:function(e){var t=Fo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Rs.bind(null,I,!0,n),n.dispatch=t,[e,t]},useMemoCache:zo,useCacheRefresh:function(){return Fo().memoizedState=Ps.bind(null,I)},useEffectEvent:function(e){var t=Fo(),n={impl:e};return t.memoizedState=n,function(){if(U&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ws={readContext:sa,use:Ro,useCallback:Cs,useContext:sa,useEffect:hs,useImperativeHandle:xs,useInsertionEffect:vs,useLayoutEffect:ys,useMemo:ws,useReducer:Vo,useRef:ds,useState:function(){return Vo(Bo)},useDebugValue:Ss,useDeferredValue:function(e,t){return Es(R(),L.memoizedState,e,t)},useTransition:function(){var e=Vo(Bo)[0],t=R().memoizedState;return[typeof e==`boolean`?e:Lo(e),t]},useSyncExternalStore:Wo,useId:Ms,useHostTransitionStatus:js,useFormState:os,useActionState:os,useOptimistic:function(e,t){return Zo(R(),L,e,t)},useMemoCache:zo,useCacheRefresh:Ns};Ws.useEffectEvent=_s;var Gs={readContext:sa,use:Ro,useCallback:Cs,useContext:sa,useEffect:hs,useImperativeHandle:xs,useInsertionEffect:vs,useLayoutEffect:ys,useMemo:ws,useReducer:Uo,useRef:ds,useState:function(){return Uo(Bo)},useDebugValue:Ss,useDeferredValue:function(e,t){var n=R();return L===null?Ts(n,e,t):Es(n,L.memoizedState,e,t)},useTransition:function(){var e=Uo(Bo)[0],t=R().memoizedState;return[typeof e==`boolean`?e:Lo(e),t]},useSyncExternalStore:Wo,useId:Ms,useHostTransitionStatus:js,useFormState:ls,useActionState:ls,useOptimistic:function(e,t){var n=R();return L===null?(n.baseState=e,[e,n.queue.dispatch]):Zo(n,L,e,t)},useMemoCache:zo,useCacheRefresh:Ns};Gs.useEffectEvent=_s;function Ks(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var qs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=hu(),i=Ja(r);i.payload=t,n!=null&&(i.callback=n),t=Ya(e,i,r),t!==null&&(_u(t,e,r),Xa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=hu(),i=Ja(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ya(e,i,r),t!==null&&(_u(t,e,r),Xa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=hu(),r=Ja(n);r.tag=2,t!=null&&(r.callback=t),t=Ya(e,r,n),t!==null&&(_u(t,e,n),Xa(t,e,n))}};function Js(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!kr(n,r)||!kr(i,a):!0}function Ys(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&qs.enqueueReplaceState(t,t.state,null)}function Xs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=p({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Zs(e){ni(e)}function Qs(e){console.error(e)}function $s(e){ni(e)}function ec(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function tc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function nc(e,t,n){return n=Ja(n),n.tag=3,n.payload={element:null},n.callback=function(){ec(e,t)},n}function rc(e){return e=Ja(e),e.tag=3,e}function ic(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){tc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){tc(t,n,r),typeof i!=`function`&&(J===null?J=new Set([this]):J.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function ac(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ia(t,n,a,!0),n=co.current,n!==null){switch(n.tag){case 31:case 13:return lo===null?ku():n.alternate===null&&ql===0&&(ql=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ja?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),qu(e,r,a)),!1;case 22:return n.flags|=65536,r===ja?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),qu(e,r,a)),!1}throw Error(i(435,n.tag))}return qu(e,r,a),ku(),!1}if(N)return t=co.current,t===null?(r!==Ui&&(t=Error(i(423),{cause:r}),Xi(wi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=wi(r,n),a=nc(e.stateNode,r,a),Za(e,a),ql!==4&&(ql=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ui&&(e=Error(i(422),{cause:r}),Xi(wi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=wi(o,n),$l===null?$l=[o]:$l.push(o),ql!==4&&(ql=2),t===null)return!0;r=wi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=nc(n.stateNode,r,e),Za(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(J===null||!J.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=rc(a),ic(a,e,n,r),Za(n,a),!1}n=n.return}while(n!==null);return!1}var oc=Error(i(461)),B=!1;function sc(e,t,n,r){t.child=e===null?Ga(t,null,n,r):Wa(t,e.child,n,r)}function cc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return oa(t),r=Oo(e,t,n,o,a,i),s=Mo(),e!==null&&!B?(No(e,t,i),Mc(e,t,i)):(N&&s&&Ii(t),t.flags|=1,sc(e,t,r,i),t.child)}function lc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!hi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,uc(e,t,a,r,i)):(e=vi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Nc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?kr:n,n(o,r)&&e.ref===t.ref)return Mc(e,t,i)}return t.flags|=1,e=gi(a,r),e.ref=t.ref,e.return=t,t.child=e}function uc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(kr(a,r)&&e.ref===t.ref)if(B=!1,t.pendingProps=r=a,Nc(e,i))e.flags&131072&&(B=!0);else return t.lanes=e.lanes,Mc(e,t,i)}return vc(e,t,n,r,i)}function dc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return pc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ea(t,a===null?null:a.cachePool),a===null?oo():ao(t,a),po(t);else return r=t.lanes=536870912,pc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ea(t,null),oo(),mo(t)):(Ea(t,a.cachePool),ao(t,a),mo(t),t.memoizedState=null);return sc(e,t,i,n),t.child}function fc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function pc(e,t,n,r,i){var a=Ta();return a=a===null?null:{parent:pa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ea(t,null),oo(),po(t),e!==null&&ia(e,t,r,!0),t.childLanes=i,null}function mc(e,t){return t=Dc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function hc(e,t,n){return Wa(t,e.child,null,n),e=mc(t,t.pendingProps),e.flags|=2,F(t),t.memoizedState=null,e}function gc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(N){if(r.mode===`hidden`)return e=mc(t,r),t.lanes=536870912,fc(null,e);if(fo(t),(e=Bi)?(e=rf(e,Hi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ji===null?null:{id:Mi,overflow:Ni},retryLane:536870912,hydrationErrors:null},n=xi(e),n.return=t,t.child=n,zi=t,Bi=null)):e=null,e===null)throw Wi(t);return t.lanes=536870912,null}return mc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(fo(t),a)if(t.flags&256)t.flags&=-257,t=hc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(B||ia(e,t,n,!1),a=(n&e.childLanes)!==0,B||a){if(r=W,r!==null&&(s=ct(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,li(e,s),_u(r,e,s),oc;ku(),t=hc(e,t,n)}else e=o.treeContext,Bi=cf(s.nextSibling),zi=t,N=!0,Vi=null,Hi=!1,e!==null&&Ri(t,e),t=mc(t,r),t.flags|=4096;return t}return e=gi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function _c(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function vc(e,t,n,r,i){return oa(t),n=Oo(e,t,n,r,void 0,i),r=Mo(),e!==null&&!B?(No(e,t,i),Mc(e,t,i)):(N&&r&&Ii(t),t.flags|=1,sc(e,t,n,i),t.child)}function yc(e,t,n,r,i,a){return oa(t),t.updateQueue=null,n=Ao(t,r,n,i),ko(e),r=Mo(),e!==null&&!B?(No(e,t,a),Mc(e,t,a)):(N&&r&&Ii(t),t.flags|=1,sc(e,t,n,a),t.child)}function bc(e,t,n,r,i){if(oa(t),t.stateNode===null){var a=fi,o=n.contextType;typeof o==`object`&&o&&(a=sa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=qs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ka(t),o=n.contextType,a.context=typeof o==`object`&&o?sa(o):fi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ks(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&qs.enqueueReplaceState(a,a.state,null),eo(t,r,a,i),$a(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Xs(n,s);a.props=c;var l=a.context,u=n.contextType;o=fi,typeof u==`object`&&u&&(o=sa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Ys(t,a,r,o),P=!1;var f=t.memoizedState;a.state=f,eo(t,r,a,i),$a(),l=t.memoizedState,s||f!==l||P?(typeof d==`function`&&(Ks(t,n,d,r),l=t.memoizedState),(c=P||Js(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,qa(e,t),o=t.memoizedProps,u=Xs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=fi,typeof l==`object`&&l&&(c=sa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Ys(t,a,r,c),P=!1,f=t.memoizedState,a.state=f,eo(t,r,a,i),$a();var p=t.memoizedState;o!==d||f!==p||P||e!==null&&e.dependencies!==null&&aa(e.dependencies)?(typeof s==`function`&&(Ks(t,n,s,r),p=t.memoizedState),(u=P||Js(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&aa(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,_c(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Wa(t,e.child,null,i),t.child=Wa(t,null,n,i)):sc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Mc(e,t,i),e}function xc(e,t,n,r){return Ji(),t.flags|=256,sc(e,t,n,r),t.child}var Sc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cc(e){return{baseLanes:e,cachePool:Da()}}function wc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Zl),e}function Tc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(ho.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(N){if(a?uo(t):mo(t),(e=Bi)?(e=rf(e,Hi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ji===null?null:{id:Mi,overflow:Ni},retryLane:536870912,hydrationErrors:null},n=xi(e),n.return=t,t.child=n,zi=t,Bi=null)):e=null,e===null)throw Wi(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(mo(t),a=t.mode,c=Dc({mode:`hidden`,children:c},a),r=yi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Cc(n),r.childLanes=wc(e,s,n),t.memoizedState=Sc,fc(null,r)):(uo(t),Ec(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(uo(t),t.flags&=-257,t=Oc(e,t,n)):t.memoizedState===null?(mo(t),c=r.fallback,a=t.mode,r=Dc({mode:`visible`,children:r.children},a),c=yi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Wa(t,e.child,null,n),r=t.child,r.memoizedState=Cc(n),r.childLanes=wc(e,s,n),t.memoizedState=Sc,t=fc(null,r)):(mo(t),t.child=e.child,t.flags|=128,t=null);else if(uo(t),of(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Xi({value:r,source:null,stack:null}),t=Oc(e,t,n)}else if(B||ia(e,t,n,!1),s=(n&e.childLanes)!==0,B||s){if(s=W,s!==null&&(r=ct(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,li(e,r),_u(s,e,r),oc;af(c)||ku(),t=Oc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Bi=cf(c.nextSibling),zi=t,N=!0,Vi=null,Hi=!1,e!==null&&Ri(t,e),t=Ec(t,r.children),t.flags|=4096);return t}return a?(mo(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=gi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=yi(c,a,n,null),c.flags|=2):c=gi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,fc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Cc(n):(a=c.cachePool,a===null?a=Da():(l=pa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=wc(e,s,n),t.memoizedState=Sc,fc(e.child,r)):(uo(t),n=e.child,e=n.sibling,n=gi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Ec(e,t){return t=Dc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Dc(e,t){return e=mi(22,e,null,t),e.lanes=0,e}function Oc(e,t,n){return Wa(t,e.child,null,n),e=Ec(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),na(e.return,t,n)}function Ac(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function jc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=ho.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,k(ho,o),sc(e,t,r,n),r=N?Oi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kc(e,n,t);else if(e.tag===19)kc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&go(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ac(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&go(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ac(t,!0,n,null,a,r);break;case`together`:Ac(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Mc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ia(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=gi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=gi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Nc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&aa(e))):!0}function Pc(e,t,n){switch(t.tag){case 3:ve(t,t.stateNode.containerInfo),ea(t,pa,e.memoizedState.cache),Ji();break;case 27:case 5:be(t);break;case 4:ve(t,t.stateNode.containerInfo);break;case 10:ea(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,fo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(uo(t),e=Mc(e,t,n),e===null?null:e.sibling):Tc(e,t,n):(uo(t),t.flags|=128,null);uo(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(ia(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return jc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),k(ho,ho.current),r)break;return null;case 22:return t.lanes=0,dc(e,t,n,t.pendingProps);case 24:ea(t,pa,e.memoizedState.cache)}return Mc(e,t,n)}function Fc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)B=!0;else{if(!Nc(e,n)&&!(t.flags&128))return B=!1,Pc(e,t,n);B=!!(e.flags&131072)}else B=!1,N&&t.flags&1048576&&Fi(t,Oi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Pa(t.elementType),t.type=e,typeof e==`function`)hi(e)?(r=Xs(e,r),t.tag=1,t=bc(null,t,e,r,n)):(t.tag=0,t=vc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===S){t.tag=11,t=cc(null,t,e,r,n);break a}else if(a===ee){t.tag=14,t=lc(null,t,e,r,n);break a}}throw t=oe(e)||e,Error(i(306,t,``))}}return t;case 0:return vc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Xs(r,t.pendingProps),bc(e,t,r,a,n);case 3:a:{if(ve(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,qa(e,t),eo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ea(t,pa,r),r!==o.cache&&ra(t,[pa],n,!0),$a(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=xc(e,t,r,n);break a}else if(r!==a){a=wi(Error(i(424)),t),Xi(a),t=xc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Bi=cf(e.firstChild),zi=t,N=!0,Vi=null,Hi=!0,n=Ga(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ji(),r===a){t=Mc(e,t,n);break a}sc(e,t,r,n)}t=t.child}return t;case 26:return _c(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:N||(n=t.type,e=t.pendingProps,r=Vd(ge.current).createElement(n),r[mt]=t,r[ht]=e,Fd(r,n,e),Dt(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return be(t),e===null&&N&&(r=t.stateNode=ff(t.type,t.pendingProps,ge.current),zi=t,Hi=!0,a=Bi,Zd(t.type)?(lf=a,Bi=cf(r.firstChild)):Bi=a),sc(e,t,t.pendingProps.children,n),_c(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&N&&((a=r=Bi)&&(r=tf(r,t.type,t.pendingProps,Hi),r===null?a=!1:(t.stateNode=r,zi=t,Bi=cf(r.firstChild),Hi=!1,a=!0)),a||Wi(t)),be(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Wd(a,o)?r=null:s!==null&&Wd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Oo(e,t,jo,null,null,n),Qf._currentValue=a),_c(e,t),sc(e,t,r,n),t.child;case 6:return e===null&&N&&((e=n=Bi)&&(n=nf(n,t.pendingProps,Hi),n===null?e=!1:(t.stateNode=n,zi=t,Bi=null,e=!0)),e||Wi(t)),null;case 13:return Tc(e,t,n);case 4:return ve(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wa(t,null,r,n):sc(e,t,r,n),t.child;case 11:return cc(e,t,t.type,t.pendingProps,n);case 7:return sc(e,t,t.pendingProps,n),t.child;case 8:return sc(e,t,t.pendingProps.children,n),t.child;case 12:return sc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,ea(t,t.type,r.value),sc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,oa(t),a=sa(a),r=r(a),t.flags|=1,sc(e,t,r,n),t.child;case 14:return lc(e,t,t.type,t.pendingProps,n);case 15:return uc(e,t,t.type,t.pendingProps,n);case 19:return jc(e,t,n);case 31:return gc(e,t,n);case 22:return dc(e,t,n,t.pendingProps);case 24:return oa(t),r=sa(pa),e===null?(a=Ta(),a===null&&(a=W,o=ma(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ka(t),ea(t,pa,a)):((e.lanes&n)!==0&&(qa(e,t),eo(t,null,null,n),$a()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ea(t,pa,r),r!==a.cache&&ra(t,[pa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ea(t,pa,r))),sc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Ic(e){e.flags|=4}function Lc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Eu())e.flags|=8192;else throw Fa=ja,ka}else e.flags&=-16777217}function Rc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t))if(Eu())e.flags|=8192;else throw Fa=ja,ka}function zc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:nt(),e.lanes|=t,Ql|=t)}function Bc(e,t){if(!N)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function V(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Vc(e,t,n){var r=t.pendingProps;switch(Li(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return V(t),null;case 1:return V(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ta(pa),ye(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(qi(t)?Ic(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Yi())),V(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Ic(t),o===null?(V(t),Lc(t,a,null,r,n)):(V(t),Rc(t,o))):o?o===e.memoizedState?(V(t),t.flags&=-16777217):(Ic(t),V(t),Rc(t,o)):(e=e.memoizedProps,e!==r&&Ic(t),V(t),Lc(t,a,e,r,n)),null;case 27:if(xe(t),n=ge.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return V(t),null}e=me.current,qi(t)?Gi(t,e):(e=ff(a,r,n),t.stateNode=e,Ic(t))}return V(t),null;case 5:if(xe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return V(t),null}if(o=me.current,qi(t))Gi(t,o);else{var s=Vd(ge.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[mt]=t,o[ht]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Fd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ic(t)}}return V(t),Lc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ic(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ge.current,qi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=zi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[mt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Wi(t,!0)}else e=Vd(e).createTextNode(r),e[mt]=t,t.stateNode=e}return V(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=qi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[mt]=t}else Ji(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;V(t),e=!1}else n=Yi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(F(t),t):(F(t),null);if(t.flags&128)throw Error(i(558))}return V(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=qi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[mt]=t}else Ji(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;V(t),a=!1}else a=Yi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(F(t),t):(F(t),null)}return F(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),zc(t,t.updateQueue),V(t),null);case 4:return ye(),e===null&&Cd(t.stateNode.containerInfo),V(t),null;case 10:return ta(t.type),V(t),null;case 19:if(O(ho),r=t.memoizedState,r===null)return V(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Bc(r,!1);else{if(ql!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=go(e),o!==null){for(t.flags|=128,Bc(r,!1),e=o.updateQueue,t.updateQueue=e,zc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)_i(n,e),n=n.sibling;return k(ho,ho.current&1|2),N&&Pi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ne()>iu&&(t.flags|=128,a=!0,Bc(r,!1),t.lanes=4194304)}else{if(!a)if(e=go(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,zc(t,e),Bc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!N)return V(t),null}else 2*Ne()-r.renderingStartTime>iu&&n!==536870912&&(t.flags|=128,a=!0,Bc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(V(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ne(),e.sibling=null,n=ho.current,k(ho,a?n&1|2:n&1),N&&Pi(t,r.treeForkCount),e);case 22:case 23:return F(t),so(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(V(t),t.subtreeFlags&6&&(t.flags|=8192)):V(t),n=t.updateQueue,n!==null&&zc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&O(wa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ta(pa),V(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Hc(e,t){switch(Li(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ta(pa),ye(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(F(t),t.alternate===null)throw Error(i(340));Ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(F(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return O(ho),null;case 4:return ye(),null;case 10:return ta(t.type),null;case 22:case 23:return F(t),so(),e!==null&&O(wa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ta(pa),null;case 25:return null;default:return null}}function Uc(e,t){switch(Li(t),t.tag){case 3:ta(pa),ye();break;case 26:case 27:case 5:xe(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&F(t);break;case 13:F(t);break;case 19:O(ho);break;case 10:ta(t.type);break;case 22:case 23:F(t),so(),e!==null&&O(wa);break;case 24:ta(pa)}}function Wc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Y(t,t.return,e)}}function Gc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Y(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Y(t,t.return,e)}}function Kc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{no(t,n)}catch(t){Y(e,e.return,t)}}}function qc(e,t,n){n.props=Xs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Y(e,t,n)}}function Jc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Y(e,t,n)}}function Yc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Y(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Y(e,t,n)}else n.current=null}function Xc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Y(e,e.return,t)}}function Zc(e,t,n){try{var r=e.stateNode;Id(r,e.type,n,t),r[ht]=t}catch(t){Y(e,e.return,t)}}function Qc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function $c(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Qc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function el(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=sn));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}function nl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Fd(t,r,n),t[mt]=e,t[ht]=n}catch(t){Y(e,e.return,t)}}var rl=!1,il=!1,al=!1,ol=typeof WeakSet==`function`?WeakSet:Set,sl=null;function cl(e,t){if(e=e.containerInfo,zd=sp,e=Nr(e),Pr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Bd={focusedElem:e,selectionRange:n},sp=!1,sl=t;sl!==null;)if(t=sl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,sl=e;else for(;sl!==null;){switch(t=sl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Xs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Y(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,sl=e;break}sl=t.return}}function ll(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Cl(e,n),r&4&&Wc(5,n);break;case 1:if(Cl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Y(n,n.return,e)}else{var i=Xs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Y(n,n.return,e)}}r&64&&Kc(n),r&512&&Jc(n,n.return);break;case 3:if(Cl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{no(e,t)}catch(e){Y(n,n.return,e)}}break;case 27:t===null&&r&4&&nl(n);case 26:case 5:Cl(e,n),t===null&&r&4&&Xc(n),r&512&&Jc(n,n.return);break;case 12:Cl(e,n);break;case 31:Cl(e,n),r&4&&ml(e,n);break;case 13:Cl(e,n),r&4&&hl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Xu.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||rl,!r){t=t!==null&&t.memoizedState!==null||il,i=rl;var a=il;rl=r,(il=t)&&!a?Tl(e,n,(n.subtreeFlags&8772)!=0):Cl(e,n),rl=i,il=a}break;case 30:break;default:Cl(e,n)}}function ul(e){var t=e.alternate;t!==null&&(e.alternate=null,ul(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&St(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var H=null,dl=!1;function fl(e,t,n){for(n=n.child;n!==null;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(Ue&&typeof Ue.onCommitFiberUnmount==`function`)try{Ue.onCommitFiberUnmount(He,n)}catch{}switch(n.tag){case 26:il||Yc(n,t),fl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:il||Yc(n,t);var r=H,i=dl;Zd(n.type)&&(H=n.stateNode,dl=!1),fl(e,t,n),pf(n.stateNode),H=r,dl=i;break;case 5:il||Yc(n,t);case 6:if(r=H,i=dl,H=null,fl(e,t,n),H=r,dl=i,H!==null)if(dl)try{(H.nodeType===9?H.body:H.nodeName===`HTML`?H.ownerDocument.body:H).removeChild(n.stateNode)}catch(e){Y(n,t,e)}else try{H.removeChild(n.stateNode)}catch(e){Y(n,t,e)}break;case 18:H!==null&&(dl?(e=H,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(H,n.stateNode));break;case 4:r=H,i=dl,H=n.stateNode.containerInfo,dl=!0,fl(e,t,n),H=r,dl=i;break;case 0:case 11:case 14:case 15:Gc(2,n,t),il||Gc(4,n,t),fl(e,t,n);break;case 1:il||(Yc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&qc(n,t,r)),fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:il=(r=il)||n.memoizedState!==null,fl(e,t,n),il=r;break;default:fl(e,t,n)}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Y(t,t.return,e)}}}function hl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Y(t,t.return,e)}}function gl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ol),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ol),t;default:throw Error(i(435,e.tag))}}function _l(e,t){var n=gl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Zu.bind(null,e,t);t.then(r,r)}})}function vl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){H=c.stateNode,dl=!1;break a}break;case 5:H=c.stateNode,dl=!1;break a;case 3:case 4:H=c.stateNode.containerInfo,dl=!0;break a}c=c.return}if(H===null)throw Error(i(160));pl(o,s,a),H=null,dl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bl(t,e),t=t.sibling}var yl=null;function bl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vl(t,e),xl(e),r&4&&(Gc(3,e,e.return),Wc(3,e),Gc(5,e,e.return));break;case 1:vl(t,e),xl(e),r&512&&(il||n===null||Yc(n,n.return)),r&64&&rl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=yl;if(vl(t,e),xl(e),r&512&&(il||n===null||Yc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[xt]||o[mt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Fd(o,r,n),o[mt]=e,Dt(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Fd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Vf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Fd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[mt]=e,Dt(o),r=o}e.stateNode=r}else Hf(a,e.type,e.stateNode);else e.stateNode=If(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Zc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Hf(a,e.type,e.stateNode):If(a,r,e.memoizedProps))}break;case 27:vl(t,e),xl(e),r&512&&(il||n===null||Yc(n,n.return)),n!==null&&r&4&&Zc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(vl(t,e),xl(e),r&512&&(il||n===null||Yc(n,n.return)),e.flags&32){a=e.stateNode;try{Qt(a,``)}catch(t){Y(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Zc(e,a,n===null?a:n.memoizedProps)),r&1024&&(al=!0);break;case 6:if(vl(t,e),xl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Y(e,e.return,t)}}break;case 3:if(Bf=null,a=yl,yl=gf(t.containerInfo),vl(t,e),yl=a,xl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Y(e,e.return,t)}al&&(al=!1,Sl(e));break;case 4:r=yl,yl=gf(e.stateNode.containerInfo),vl(t,e),xl(e),yl=r;break;case 12:vl(t,e),xl(e);break;case 31:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 13:vl(t,e),xl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(nu=Ne()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=rl,d=il;if(rl=u||a,il=d||l,vl(t,e),il=d,rl=u,xl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||rl||il||wl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Y(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Y(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?$d(m,!0):$d(l.stateNode,!1)}catch(e){Y(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,_l(e,n))));break;case 19:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 30:break;case 21:break;default:vl(t,e),xl(e)}}function xl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Qc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;tl(e,$c(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Qt(o,``),n.flags&=-33),tl(e,$c(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;el(e,$c(e),s);break;default:throw Error(i(161))}}catch(t){Y(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ll(e,t.alternate,t),t=t.sibling}function wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Gc(4,t,t.return),wl(t);break;case 1:Yc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&qc(t,t.return,n),wl(t);break;case 27:pf(t.stateNode);case 26:case 5:Yc(t,t.return),wl(t);break;case 22:t.memoizedState===null&&wl(t);break;case 30:wl(t);break;default:wl(t)}e=e.sibling}}function Tl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Tl(i,a,n),Wc(4,a);break;case 1:if(Tl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Y(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)to(c[i],s)}catch(e){Y(r,r.return,e)}}n&&o&64&&Kc(a),Jc(a,a.return);break;case 27:nl(a);case 26:case 5:Tl(i,a,n),n&&r===null&&o&4&&Xc(a),Jc(a,a.return);break;case 12:Tl(i,a,n);break;case 31:Tl(i,a,n),n&&o&4&&ml(i,a);break;case 13:Tl(i,a,n),n&&o&4&&hl(i,a);break;case 22:a.memoizedState===null&&Tl(i,a,n),Jc(a,a.return);break;case 30:break;default:Tl(i,a,n)}t=t.sibling}}function El(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ha(n))}function Dl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ha(e))}function Ol(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kl(e,t,n,r),t=t.sibling}function kl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ol(e,t,n,r),i&2048&&Wc(9,t);break;case 1:Ol(e,t,n,r);break;case 3:Ol(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ha(e)));break;case 12:if(i&2048){Ol(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Y(t,t.return,e)}}else Ol(e,t,n,r);break;case 31:Ol(e,t,n,r);break;case 13:Ol(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Ol(e,t,n,r):(a._visibility|=2,Al(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Ol(e,t,n,r):jl(e,t),i&2048&&El(o,t);break;case 24:Ol(e,t,n,r),i&2048&&Dl(t.alternate,t);break;default:Ol(e,t,n,r)}}function Al(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Al(a,o,s,c,i),Wc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Al(a,o,s,c,i)):u._visibility&2?Al(a,o,s,c,i):jl(a,o),i&&l&2048&&El(o.alternate,o);break;case 24:Al(a,o,s,c,i),i&&l&2048&&Dl(o.alternate,o);break;default:Al(a,o,s,c,i)}t=t.sibling}}function jl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:jl(n,r),i&2048&&El(r.alternate,r);break;case 24:jl(n,r),i&2048&&Dl(r.alternate,r);break;default:jl(n,r)}t=t.sibling}}var Ml=8192;function Nl(e,t,n){if(e.subtreeFlags&Ml)for(e=e.child;e!==null;)Pl(e,t,n),e=e.sibling}function Pl(e,t,n){switch(e.tag){case 26:Nl(e,t,n),e.flags&Ml&&e.memoizedState!==null&&Gf(n,yl,e.memoizedState,e.memoizedProps);break;case 5:Nl(e,t,n);break;case 3:case 4:var r=yl;yl=gf(e.stateNode.containerInfo),Nl(e,t,n),yl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ml,Ml=16777216,Nl(e,t,n),Ml=r):Nl(e,t,n));break;default:Nl(e,t,n)}}function Fl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Il(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];sl=r,zl(r,e)}Fl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ll(e),e=e.sibling}function Ll(e){switch(e.tag){case 0:case 11:case 15:Il(e),e.flags&2048&&Gc(9,e,e.return);break;case 3:Il(e);break;case 12:Il(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rl(e)):Il(e);break;default:Il(e)}}function Rl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];sl=r,zl(r,e)}Fl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Gc(8,t,t.return),Rl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Rl(t));break;default:Rl(t)}e=e.sibling}}function zl(e,t){for(;sl!==null;){var n=sl;switch(n.tag){case 0:case 11:case 15:Gc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ha(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,sl=r;else a:for(n=e;sl!==null;){r=sl;var i=r.sibling,a=r.return;if(ul(r),r===n){sl=null;break a}if(i!==null){i.return=a,sl=i;break a}sl=a}}}var Bl={getCacheForType:function(e){var t=sa(pa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return sa(pa).controller.signal}},Vl=typeof WeakMap==`function`?WeakMap:Map,U=0,W=null,G=null,K=0,q=0,Hl=null,Ul=!1,Wl=!1,Gl=!1,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=null,eu=null,tu=!1,nu=0,ru=0,iu=1/0,au=null,J=null,ou=0,su=null,cu=null,lu=0,uu=0,du=null,fu=null,pu=0,mu=null;function hu(){return U&2&&K!==0?K&-K:E.T===null?dt():pd()}function gu(){if(Zl===0)if(!(K&536870912)||N){var e=Xe;Xe<<=1,!(Xe&3932160)&&(Xe=262144),Zl=e}else Zl=536870912;return e=co.current,e!==null&&(e.flags|=32),Zl}function _u(e,t,n){(e===W&&(q===2||q===9)||e.cancelPendingCommit!==null)&&(wu(e,0),xu(e,K,Zl,!1)),it(e,n),(!(U&2)||e!==W)&&(e===W&&(!(U&2)&&(Yl|=n),ql===4&&xu(e,K,Zl,!1)),ad(e))}function vu(e,t,n){if(U&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||et(e,t),a=r?Mu(e,t):Au(e,t,!0),o=r;do{if(a===0){Wl&&!r&&xu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!bu(n)){a=Au(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=$l;var l=c.current.memoizedState.isDehydrated;if(l&&(wu(c,s).flags|=256),s=Au(c,s,!1),s!==2){if(Gl&&!l){c.errorRecoveryDisabledLanes|=o,Yl|=o,a=4;break a}o=eu,eu=a,o!==null&&(eu===null?eu=o:eu.push.apply(eu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){wu(e,0),xu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:xu(r,t,Zl,!Ul);break a;case 2:eu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=nu+300-Ne(),10<a)){if(xu(r,t,Zl,!Ul),$e(r,0,!0)!==0)break a;lu=t,r.timeoutHandle=qd(yu.bind(null,r,n,eu,au,tu,t,Zl,Yl,Ql,Ul,o,`Throttled`,-0,0),a);break a}yu(r,n,eu,au,tu,t,Zl,Yl,Ql,Ul,o,null,-0,0)}}break}while(1);ad(e)}function yu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:sn},Pl(t,a,d);var m=(a&62914560)===a?nu-Ne():(a&4194048)===a?ru-Ne():0;if(m=qf(d,m),m!==null){lu=a,e.cancelPendingCommit=m(zu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),xu(e,a,o,!l);return}}zu(e,t,a,n,r,i,o,s,c)}function bu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Or(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xu(e,t,n,r){t&=~Xl,t&=~Yl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ge(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&ot(e,n,t)}function Su(){return U&6?!0:(od(0,!1),!1)}function Cu(){if(G!==null){if(q===0)var e=G.return;else e=G,$i=Qi=null,Po(e),Ra=null,za=0,e=G;for(;e!==null;)Uc(e.alternate,e),e=e.return;G=null}}function wu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,$(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),lu=0,Cu(),W=e,G=n=gi(e.current,null),K=t,q=0,Hl=null,Ul=!1,Wl=et(e,t),Gl=!1,Ql=Zl=Xl=Yl=Jl=ql=0,eu=$l=null,tu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ge(r),a=1<<i;t|=e[i],r&=~a}return Kl=t,oi(),n}function Tu(e,t){I=null,E.H=Hs,t===Oa||t===Aa?(t=Ia(),q=3):t===ka?(t=Ia(),q=4):q=t===oc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Hl=t,G===null&&(ql=1,ec(e,wi(t,e.current)))}function Eu(){var e=co.current;return e===null?!0:(K&4194048)===K?lo===null:(K&62914560)===K||K&536870912?e===lo:!1}function Du(){var e=E.H;return E.H=Hs,e===null?Hs:e}function Ou(){var e=E.A;return E.A=Bl,e}function ku(){ql=4,Ul||(K&4194048)!==K&&co.current!==null||(Wl=!0),!(Jl&134217727)&&!(Yl&134217727)||W===null||xu(W,K,Zl,!1)}function Au(e,t,n){var r=U;U|=2;var i=Du(),a=Ou();(W!==e||K!==t)&&(au=null,wu(e,t)),t=!1;var o=ql;a:do try{if(q!==0&&G!==null){var s=G,c=Hl;switch(q){case 8:Cu(),o=6;break a;case 3:case 2:case 9:case 6:co.current===null&&(t=!0);var l=q;if(q=0,Hl=null,Iu(e,s,c,l),n&&Wl){o=0;break a}break;default:l=q,q=0,Hl=null,Iu(e,s,c,l)}}ju(),o=ql;break}catch(t){Tu(e,t)}while(1);return t&&e.shellSuspendCounter++,$i=Qi=null,U=r,E.H=i,E.A=a,G===null&&(W=null,K=0,oi()),o}function ju(){for(;G!==null;)Pu(G)}function Mu(e,t){var n=U;U|=2;var r=Du(),a=Ou();W!==e||K!==t?(au=null,iu=Ne()+500,wu(e,t)):Wl=et(e,t);a:do try{if(q!==0&&G!==null){t=G;var o=Hl;b:switch(q){case 1:q=0,Hl=null,Iu(e,t,o,1);break;case 2:case 9:if(Ma(o)){q=0,Hl=null,Fu(t);break}t=function(){q!==2&&q!==9||W!==e||(q=7),ad(e)},o.then(t,t);break a;case 3:q=7;break a;case 4:q=5;break a;case 7:Ma(o)?(q=0,Hl=null,Fu(t)):(q=0,Hl=null,Iu(e,t,o,7));break;case 5:var s=null;switch(G.tag){case 26:s=G.memoizedState;case 5:case 27:var c=G;if(s?Wf(s):c.stateNode.complete){q=0,Hl=null;var l=c.sibling;if(l!==null)G=l;else{var u=c.return;u===null?G=null:(G=u,Lu(u))}break b}}q=0,Hl=null,Iu(e,t,o,5);break;case 6:q=0,Hl=null,Iu(e,t,o,6);break;case 8:Cu(),ql=6;break a;default:throw Error(i(462))}}Nu();break}catch(t){Tu(e,t)}while(1);return $i=Qi=null,E.H=r,E.A=a,U=n,G===null?(W=null,K=0,oi(),ql):0}function Nu(){for(;G!==null&&!je();)Pu(G)}function Pu(e){var t=Fc(e.alternate,e,Kl);e.memoizedProps=e.pendingProps,t===null?Lu(e):G=t}function Fu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=yc(n,t,t.pendingProps,t.type,void 0,K);break;case 11:t=yc(n,t,t.pendingProps,t.type.render,t.ref,K);break;case 5:Po(t);default:Uc(n,t),t=G=_i(t,Kl),t=Fc(n,t,Kl)}e.memoizedProps=e.pendingProps,t===null?Lu(e):G=t}function Iu(e,t,n,r){$i=Qi=null,Po(t),Ra=null,za=0;var i=t.return;try{if(ac(e,i,t,n,K)){ql=1,ec(e,wi(n,e.current)),G=null;return}}catch(t){if(i!==null)throw G=i,t;ql=1,ec(e,wi(n,e.current)),G=null;return}t.flags&32768?(N||r===1?e=!0:Wl||K&536870912?e=!1:(Ul=e=!0,(r===2||r===9||r===3||r===6)&&(r=co.current,r!==null&&r.tag===13&&(r.flags|=16384))),Ru(t,e)):Lu(t)}function Lu(e){var t=e;do{if(t.flags&32768){Ru(t,Ul);return}e=t.return;var n=Vc(t.alternate,t,Kl);if(n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);ql===0&&(ql=5)}function Ru(e,t){do{var n=Hc(e.alternate,e);if(n!==null){n.flags&=32767,G=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){G=e;return}G=e=n}while(e!==null);ql=6,G=null}function zu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Wu();while(ou!==0);if(U&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ai,at(e,n,o,s,c,l),e===W&&(G=W=null,K=0),cu=t,su=e,lu=n,uu=o,du=a,fu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Qu(Le,function(){return Gu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=E.T,E.T=null,a=D.p,D.p=2,s=U,U|=4;try{cl(e,t,n)}finally{U=s,D.p=a,E.T=r}}ou=1,Bu(),Vu(),Hu()}}function Bu(){if(ou===1){ou=0;var e=su,t=cu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=E.T,E.T=null;var r=D.p;D.p=2;var i=U;U|=4;try{bl(t,e);var a=Bd,o=Nr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Mr(s.ownerDocument.documentElement,s)){if(c!==null&&Pr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=jr(s,h),v=jr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!zd,Bd=zd=null}finally{U=i,D.p=r,E.T=n}}e.current=t,ou=2}}function Vu(){if(ou===2){ou=0;var e=su,t=cu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=E.T,E.T=null;var r=D.p;D.p=2;var i=U;U|=4;try{ll(e,t.alternate,t)}finally{U=i,D.p=r,E.T=n}}ou=3}}function Hu(){if(ou===4||ou===3){ou=0,Me();var e=su,t=cu,n=lu,r=fu;t.subtreeFlags&10256||t.flags&10256?ou=5:(ou=0,cu=su=null,Uu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(J=null),ut(n),t=t.stateNode,Ue&&typeof Ue.onCommitFiberRoot==`function`)try{Ue.onCommitFiberRoot(He,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=E.T,i=D.p,D.p=2,E.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{E.T=t,D.p=i}}lu&3&&Wu(),ad(e),i=e.pendingLanes,n&261930&&i&42?e===mu?pu++:(pu=0,mu=e):pu=0,od(0,!1)}}function Uu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ha(t)))}function Wu(){return Bu(),Vu(),Hu(),Gu()}function Gu(){if(ou!==5)return!1;var e=su,t=uu;uu=0;var n=ut(lu),r=E.T,a=D.p;try{D.p=32>n?32:n,E.T=null,n=du,du=null;var o=su,s=lu;if(ou=0,cu=su=null,lu=0,U&6)throw Error(i(331));var c=U;if(U|=4,Ll(o.current),kl(o,o.current,s,n),U=c,od(0,!1),Ue&&typeof Ue.onPostCommitFiberRoot==`function`)try{Ue.onPostCommitFiberRoot(He,o)}catch{}return!0}finally{D.p=a,E.T=r,Uu(e,t)}}function Ku(e,t,n){t=wi(n,t),t=nc(e.stateNode,t,2),e=Ya(e,t,2),e!==null&&(it(e,2),ad(e))}function Y(e,t,n){if(e.tag===3)Ku(e,e,n);else for(;t!==null;){if(t.tag===3){Ku(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(J===null||!J.has(r))){e=wi(n,e),n=rc(2),r=Ya(t,n,2),r!==null&&(ic(n,r,t,e),it(r,2),ad(r));break}}t=t.return}}function qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Vl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Gl=!0,i.add(n),e=Ju.bind(null,e,t,n),t.then(e,e))}function Ju(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,W===e&&(K&n)===n&&(ql===4||ql===3&&(K&62914560)===K&&300>Ne()-nu?!(U&2)&&wu(e,0):Xl|=n,Ql===K&&(Ql=0)),ad(e)}function Yu(e,t){t===0&&(t=nt()),e=li(e,t),e!==null&&(it(e,t),ad(e))}function Xu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yu(e,n)}function Zu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Yu(e,n)}function Qu(e,t){return ke(e,t)}var $u=null,ed=null,td=!1,nd=!1,rd=!1,id=0;function ad(e){e!==ed&&e.next===null&&(ed===null?$u=ed=e:ed=ed.next=e),nd=!0,td||(td=!0,fd())}function od(e,t){if(!rd&&nd){rd=!0;do for(var n=!1,r=$u;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ge(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,dd(r,a))}else a=K,a=$e(r,r===W?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||et(r,a)||(n=!0,dd(r,a));r=r.next}while(n);rd=!1}}function sd(){cd()}function cd(){nd=td=!1;var e=0;id!==0&&Kd()&&(e=id);for(var t=Ne(),n=null,r=$u;r!==null;){var i=r.next,a=ld(r,t);a===0?(r.next=null,n===null?$u=i:n.next=i,i===null&&(ed=n)):(n=r,(e!==0||a&3)&&(nd=!0)),r=i}ou!==0&&ou!==5||od(e,!1),id!==0&&(id=0)}function ld(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ge(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=tt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=W,n=K,n=$e(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(q===2||q===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ae(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||et(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ae(r),ut(n)){case 2:case 8:n=Ie;break;case 32:n=Le;break;case 268435456:n=ze;break;default:n=Le}return r=ud.bind(null,e),n=ke(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ae(r),e.callbackPriority=2,e.callbackNode=null,2}function ud(e,t){if(ou!==0&&ou!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Wu()&&e.callbackNode!==n)return null;var r=K;return r=$e(e,e===W?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(vu(e,r,t),ld(e,Ne()),e.callbackNode!=null&&e.callbackNode===n?ud.bind(null,e):null)}function dd(e,t){if(Wu())return null;vu(e,t,!0)}function fd(){Yd(function(){U&6?ke(Fe,sd):cd()})}function pd(){if(id===0){var e=va;e===0&&(e=Ye,Ye<<=1,!(Ye&261888)&&(Ye=256)),id=e}return id}function md(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:on(``+e)}function hd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function gd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=md((i[ht]||null).action),o=r.submitter;o&&(t=(t=o[ht]||null)?md(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Dn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(id!==0){var e=o?hd(i,o):new FormData(i);Os(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?hd(i,o):new FormData(i),Os(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var _d=0;_d<ei.length;_d++){var vd=ei[_d];ti(vd.toLowerCase(),`on`+(vd[0].toUpperCase()+vd.slice(1)))}ti(Kr,`onAnimationEnd`),ti(qr,`onAnimationIteration`),ti(Jr,`onAnimationStart`),ti(`dblclick`,`onDoubleClick`),ti(`focusin`,`onFocus`),ti(`focusout`,`onBlur`),ti(Yr,`onTransitionRun`),ti(Xr,`onTransitionStart`),ti(Zr,`onTransitionCancel`),ti(Qr,`onTransitionEnd`),jt(`onMouseEnter`,[`mouseout`,`mouseover`]),jt(`onMouseLeave`,[`mouseout`,`mouseover`]),jt(`onPointerEnter`,[`pointerout`,`pointerover`]),jt(`onPointerLeave`,[`pointerout`,`pointerover`]),At(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),At(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),At(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),At(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),At(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),At(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var yd=`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(` `),bd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(yd));function xd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ni(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ni(e)}i.currentTarget=null,a=c}}}}function X(e,t){var n=t[_t];n===void 0&&(n=t[_t]=new Set);var r=e+`__bubble`;n.has(r)||(wd(t,e,2,!1),n.add(r))}function Z(e,t,n){var r=0;t&&(r|=4),wd(n,e,r,t)}var Sd=`_reactListening`+Math.random().toString(36).slice(2);function Cd(e){if(!e[Sd]){e[Sd]=!0,Ot.forEach(function(t){t!==`selectionchange`&&(bd.has(t)||Z(t,!1,e),Z(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sd]||(t[Sd]=!0,Z(`selectionchange`,!1,t))}}function wd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!_n||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Td(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var c=r.stateNode.containerInfo;if(c===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;c!==null;){if(o=Ct(c),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}c=c.parentNode}}r=r.return}mn(function(){var r=a,i=ln(n),o=[];a:{var c=$r.get(e);if(c!==void 0){var l=Dn,u=e;switch(e){case`keypress`:if(Sn(n)===0)break a;case`keydown`:case`keyup`:l=Gn;break;case`focusin`:u=`focus`,l=In;break;case`focusout`:u=`blur`,l=In;break;case`beforeblur`:case`afterblur`:l=In;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Pn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Fn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=qn;break;case Kr:case qr:case Jr:l=Ln;break;case Qr:l=Jn;break;case`scroll`:case`scrollend`:l=kn;break;case`wheel`:l=Yn;break;case`copy`:case`cut`:case`paste`:l=Rn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Kn;break;case`toggle`:case`beforetoggle`:l=Xn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=hn(m,p),g!=null&&d.push(Ed(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),o.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==cn&&(u=n.relatedTarget||n.fromElement)&&(Ct(u)||u[gt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?Ct(u):null,u!==null&&(f=s(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Pn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Kn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:Tt(l),h=u==null?c:Tt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,Ct(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Od,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&kd(o,c,l,d,!1),u!==null&&f!==null&&kd(o,f,u,d,!0)}}a:{if(c=r?Tt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=gr;else if(ur(c))if(_r)v=Er;else{v=wr;var y=Cr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&nn(r.elementType)&&(v=gr):v=Tr;if(v&&=v(e,r)){dr(o,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Yt(c,`number`,c.value)}switch(y=r?Tt(r):window,e){case`focusin`:(ur(y)||y.contentEditable===`true`)&&(Ir=y,Lr=r,Rr=null);break;case`focusout`:Rr=Lr=Ir=null;break;case`mousedown`:zr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:zr=!1,Br(o,n,i);break;case`selectionchange`:if(Fr)break;case`keydown`:case`keyup`:Br(o,n,i)}var b;if(Qn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else or?ir(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(tr&&n.locale!==`ko`&&(or||x!==`onCompositionStart`?x===`onCompositionEnd`&&or&&(b=xn()):(vn=i,yn=`value`in vn?vn.value:vn.textContent,or=!0)),y=Dd(r,x),0<y.length&&(x=new zn(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=ar(n),b!==null&&(x.data=b)))),(b=er?sr(e,n):cr(e,n))&&(x=Dd(r,`onBeforeInput`),0<x.length&&(y=new zn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),gd(o,e,r,n,i)}xd(o,t)})}function Ed(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=hn(e,n),i!=null&&r.unshift(Ed(e,i,a)),i=hn(e,t),i!=null&&r.push(Ed(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Od(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function kd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=hn(n,a),l!=null&&o.unshift(Ed(n,l,c))):i||(l=hn(n,a),l!=null&&o.push(Ed(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ad=/\r\n?/g,jd=/\u0000|\uFFFD/g;function Md(e){return(typeof e==`string`?e:``+e).replace(Ad,`
10
+ `).replace(jd,``)}function Nd(e,t){return t=Md(t),Md(e)===t}function Q(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Qt(e,``+r);break;case`className`:Lt(e,`class`,r);break;case`tabIndex`:Lt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Lt(e,n,r);break;case`style`:tn(e,r,o);break;case`data`:if(t!==`object`){Lt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=on(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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 o==`function`&&(n===`formAction`?(t!==`input`&&Q(e,t,`name`,a.name,a,null),Q(e,t,`formEncType`,a.formEncType,a,null),Q(e,t,`formMethod`,a.formMethod,a,null),Q(e,t,`formTarget`,a.formTarget,a,null)):(Q(e,t,`encType`,a.encType,a,null),Q(e,t,`method`,a.method,a,null),Q(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=on(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=sn);break;case`onScroll`:r!=null&&X(`scroll`,e);break;case`onScrollEnd`:r!=null&&X(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=on(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:X(`beforetoggle`,e),X(`toggle`,e),It(e,`popover`,r);break;case`xlinkActuate`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Rt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Rt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Rt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Rt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:It(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=rn.get(n)||n,It(e,n,r))}}function Pd(e,t,n,r,a,o){switch(n){case`style`:tn(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Qt(e,``+r);break;case`onScroll`:r!=null&&X(`scroll`,e);break;case`onScrollEnd`:r!=null&&X(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=sn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!kt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ht]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):It(e,n,r)}}}function Fd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:X(`error`,e),X(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Q(e,t,o,s,n,null)}}a&&Q(e,t,`srcSet`,n.srcSet,n,null),r&&Q(e,t,`src`,n.src,n,null);return;case`input`:X(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Q(e,t,r,d,n,null)}}Jt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in X(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Q(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&j(e,!!r,n,!0):j(e,!!r,t,!1);return;case`textarea`:for(s in X(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Q(e,t,s,c,n,null)}Zt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Q(e,t,l,r,n,null)}return;case`dialog`:X(`beforetoggle`,e),X(`toggle`,e),X(`cancel`,e),X(`close`,e);break;case`iframe`:case`object`:X(`load`,e);break;case`video`:case`audio`:for(r=0;r<yd.length;r++)X(yd[r],e);break;case`image`:X(`error`,e),X(`load`,e);break;case`details`:X(`toggle`,e);break;case`embed`:case`source`:case`link`:X(`error`,e),X(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Q(e,t,u,r,n,null)}return;default:if(nn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Pd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Q(e,t,c,r,n,null))}function Id(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Q(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Q(e,t,p,m,r,f)}}qt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Q(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Q(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?j(e,!!n,n?[]:``,!1):j(e,!!n,t,!0)):j(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Q(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Q(e,t,s,a,r,o)}Xt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Q(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Q(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Q(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Q(e,t,u,p,r,m)}return;default:if(nn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Pd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Pd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Q(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Q(e,t,f,p,r,m)}function Ld(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Rd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Ld(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Ld(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var zd=null,Bd=null;function Vd(e){return e.nodeType===9?e:e.ownerDocument}function Hd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Ud(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Wd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gd=null;function Kd(){var e=window.event;return e&&e.type===`popstate`?e===Gd?!1:(Gd=e,!0):(Gd=null,!1)}var qd=typeof setTimeout==`function`?setTimeout:void 0,$=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?qd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[xt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body);n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),St(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[xt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Vd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);St(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=D.d;D.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=Su();return e||t}function yf(e){var t=wt(e);t!==null&&t.tag===5&&t.type===`form`?As(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Kt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Fd(t,`link`,e),Dt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Kt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Kt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Kt(n.imageSizes)+`"]`)):i+=`[href="`+Kt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Fd(t,`link`,e),Dt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Kt(r)+`"][href="`+Kt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Fd(r,`link`,e),Dt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=Et(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);Dt(c),Fd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=Et(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=p({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),Dt(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=Et(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),Dt(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=ge.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=Et(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=Et(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=Et(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+Kt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Fd(t,`link`,n),Dt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Kt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Kt(n.href)+`"]`);if(r)return t.instance=r,Dt(r),r;var a=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Dt(r),Fd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,Dt(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),Dt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Fd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,Dt(a),a):(r=n,(a=mf.get(o))&&(r=p({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Dt(a),Fd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[xt]||a[mt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Dt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),Dt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Fd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Rd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:x,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=rt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rt(0),this.hiddenUpdates=rt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=mi(3,null,null,t),e.current=a,a.stateNode=e,t=ma(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ka(a),e}function tp(e){return e?(e=fi,e):fi}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ja(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ya(e,r,t),n!==null&&(_u(n,e,t),Xa(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=li(e,67108864);t!==null&&_u(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=hu();t=lt(t);var n=li(e,t);n!==null&&_u(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=E.T;E.T=null;var a=D.p;try{D.p=2,up(e,t,n,r)}finally{D.p=a,E.T=i}}function lp(e,t,n,r){var i=E.T;E.T=null;var a=D.p;try{D.p=8,up(e,t,n,r)}finally{D.p=a,E.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)Td(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=wt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Qe(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ge(o);s.entanglements[1]|=c,o&=~c}ad(a),!(U&6)&&(iu=Ne()+500,od(0,!1))}}break;case 31:case 13:s=li(a,2),s!==null&&_u(s,a,2),Su(),ip(a,2)}if(a=dp(r),a===null&&Td(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Td(e,t,r,null,n)}}function dp(e){return e=ln(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=Ct(e),e!==null){var t=s(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=c(t),e!==null)return e;e=null}else if(n===31){if(e=l(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){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(Pe()){case Fe:return 2;case Ie:return 8;case Le:case Re:return 32;case ze:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`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 Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=wt(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=Ct(e.target);if(t!==null){var n=s(t);if(n!==null){if(t=n.tag,t===13){if(t=c(n),t!==null){e.blockedOn=t,ft(e.priority,function(){op(n)});return}}else if(t===31){if(t=l(n),t!==null){e.blockedOn=t,ft(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);cn=r,n.target.dispatchEvent(r),cn=null}else return t=wt(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=wt(n);a!==null&&(e.splice(t,3),t-=3,Os(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ht]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ht]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,hu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),Su(),t[gt]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=dt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.7`)throw Error(i(527,Lp,`19.2.7`));D.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:E,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{He=zp.inject(Rp),Ue=zp}catch{}}e.createRoot=function(e,t){if(!o(e))throw Error(i(299));var n=!1,r=``,a=Zs,s=Qs,c=$s;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,a,s,c,Pp),e[gt]=t.current,Cd(e),new Fp(t)}})),fe=n(((e,t)=>{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)}}n(),t.exports=de()})),pe=new Map([[`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}],[`APIRequestContext.fetch`,{title:`{method}`,subtitle:`{url}`,renderParams:[`url`,`method`]}],[`APIRequestContext.fetchResponseBody`,{title:`Get response body`,group:`getter`}],[`APIRequestContext.fetchLog`,{internal:!0}],[`APIRequestContext.addCookies`,{title:`Add cookies`,group:`configuration`}],[`APIRequestContext.clearCookies`,{title:`Clear cookies`,group:`configuration`}],[`APIRequestContext.cookies`,{title:`Get cookies`,group:`getter`}],[`APIRequestContext.storageState`,{title:`Get storage state`,group:`configuration`}],[`APIRequestContext.disposeAPIResponse`,{internal:!0}],[`APIRequestContext.dispose`,{internal:!0}],[`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}],[`Browser.startServer`,{title:`Start server`}],[`Browser.stopServer`,{title:`Stop server`}],[`Browser.close`,{title:`Close browser`,pause:!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`}],[`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`,pause:!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`,renderParams:[`offline`]}],[`BrowserContext.storageState`,{title:`Get storage state`,group:`configuration`}],[`BrowserContext.setStorageState`,{title:`Set storage state`,group:`configuration`}],[`BrowserContext.pause`,{title:`Pause`}],[`BrowserContext.showRecorder`,{internal:!0}],[`BrowserContext.startRecording`,{internal:!0}],[`BrowserContext.stopRecording`,{internal:!0}],[`BrowserContext.exposeConsoleApi`,{internal:!0}],[`BrowserContext.newCDPSession`,{title:`Create CDP session`,group:`configuration`}],[`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}"`}],[`BrowserContext.credentialsInstall`,{title:`Install virtual WebAuthn authenticator`,group:`configuration`}],[`BrowserContext.credentialsCreate`,{title:`Create virtual credential for "{rpId}"`,group:`configuration`}],[`BrowserContext.credentialsGet`,{title:`Get virtual credentials`,group:`configuration`}],[`BrowserContext.credentialsDelete`,{title:`Delete virtual credential`,group:`configuration`}],[`BrowserType.launch`,{title:`Launch browser`}],[`BrowserType.launchPersistentContext`,{title:`Launch persistent context`}],[`BrowserType.connectOverCDP`,{title:`Connect over CDP`}],[`BrowserType.connectToWorker`,{title:`Connect to worker`}],[`Disposable.dispose`,{internal:!0}],[`Electron.launch`,{title:`Launch electron`}],[`ElectronApplication.browserWindow`,{internal:!0}],[`ElectronApplication.evaluateExpression`,{title:`Evaluate`}],[`ElectronApplication.evaluateExpressionHandle`,{title:`Evaluate`}],[`ElectronApplication.updateSubscription`,{internal:!0}],[`Frame.evalOnSelector`,{title:`Evaluate`,subtitle:`{selector}`,snapshot:!0,pause:!0}],[`Frame.evalOnSelectorAll`,{title:`Evaluate`,subtitle:`{selector}`,snapshot:!0,pause:!0}],[`Frame.addScriptTag`,{title:`Add script tag`,renderParams:[`url`],snapshot:!0,pause:!0}],[`Frame.addStyleTag`,{title:`Add style tag`,renderParams:[`url`],snapshot:!0,pause:!0}],[`Frame.ariaSnapshot`,{title:`Aria snapshot`,subtitle:`{selector}`,group:`getter`}],[`Frame.ariaSnapshotJSON`,{title:`Aria snapshot JSON`,subtitle:`{selector}`,group:`getter`}],[`Frame.blur`,{title:`Blur`,subtitle:`{selector}`,slowMo:!0,snapshot:!0,pause:!0}],[`Frame.check`,{title:`Check`,subtitle:`{selector}`,renderParams:[`position`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.click`,{title:`Click`,subtitle:`{selector}`,renderParams:[`button`,`clickCount`,`modifiers`,`position`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.content`,{title:`Get content`,snapshot:!0,pause:!0}],[`Frame.dragAndDrop`,{title:`Drag and drop`,renderParams:[`source:selector`,`target:selector`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.drop`,{title:`Drop files or data onto an element`,subtitle:`{selector}`,slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.dblclick`,{title:`Double click`,subtitle:`{selector}`,renderParams:[`button`,`modifiers`,`position`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.dispatchEvent`,{title:`Dispatch "{type}"`,subtitle:`{selector}`,renderParams:[`type`],slowMo:!0,snapshot:!0,pause:!0}],[`Frame.evaluateExpression`,{title:`Evaluate`,snapshot:!0,pause:!0}],[`Frame.evaluateExpressionHandle`,{title:`Evaluate`,snapshot:!0,pause:!0}],[`Frame.fill`,{title:`Fill "{value}"`,subtitle:`{selector}`,renderParams:[`value`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.focus`,{title:`Focus`,subtitle:`{selector}`,slowMo:!0,snapshot:!0,pause:!0}],[`Frame.frameElement`,{title:`Get frame element`,group:`getter`}],[`Frame.resolveSelector`,{internal:!0}],[`Frame.highlight`,{internal:!0}],[`Frame.hideHighlight`,{internal:!0}],[`Frame.getAttribute`,{title:`Get attribute "{name}"`,subtitle:`{selector}`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.goto`,{title:`Navigate`,subtitle:`{url}`,renderParams:[`url`],slowMo:!0,snapshot:!0,pause:!0}],[`Frame.hover`,{title:`Hover`,subtitle:`{selector}`,renderParams:[`modifiers`,`position`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.innerHTML`,{title:`Get HTML`,subtitle:`{selector}`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.innerText`,{title:`Get inner text`,subtitle:`{selector}`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.inputValue`,{title:`Get input value`,subtitle:`{selector}`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.isChecked`,{title:`Is checked`,subtitle:`{selector}`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.isDisabled`,{title:`Is disabled`,subtitle:`{selector}`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.isEnabled`,{title:`Is enabled`,subtitle:`{selector}`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.isHidden`,{title:`Is hidden`,subtitle:`{selector}`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.isVisible`,{title:`Is visible`,subtitle:`{selector}`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.isEditable`,{title:`Is editable`,subtitle:`{selector}`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.press`,{title:`Press "{key}"`,subtitle:`{selector}`,renderParams:[`key`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.querySelector`,{title:`Query selector`,subtitle:`{selector}`,snapshot:!0}],[`Frame.querySelectorAll`,{title:`Query selector all`,subtitle:`{selector}`,snapshot:!0}],[`Frame.queryCount`,{title:`Query count`,subtitle:`{selector}`,snapshot:!0,pause:!0}],[`Frame.selectOption`,{title:`Select option`,subtitle:`{selector}`,renderParams:[`options`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.setContent`,{title:`Set content`,snapshot:!0,pause:!0}],[`Frame.setInputFiles`,{title:`Set input files`,subtitle:`{selector}`,renderParams:[`files=localPaths`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.tap`,{title:`Tap`,subtitle:`{selector}`,renderParams:[`modifiers`,`position`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.textContent`,{title:`Get text content`,subtitle:`{selector}`,snapshot:!0,pause:!0,group:`getter`}],[`Frame.title`,{title:`Get page title`,group:`getter`}],[`Frame.type`,{title:`Type "{text}"`,subtitle:`{selector}`,renderParams:[`text`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.uncheck`,{title:`Uncheck`,subtitle:`{selector}`,renderParams:[`position`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`Frame.waitForTimeout`,{title:`Wait for timeout`,renderParams:[`timeout=waitTimeout`],snapshot:!0}],[`Frame.waitForFunction`,{title:`Wait for function`,subtitle:`{selector}`,snapshot:!0,pause:!0}],[`Frame.waitForSelector`,{title:`Wait for selector`,subtitle:`{selector}`,renderParams:[`state`],snapshot:!0}],[`Frame.expect`,{title:`Expect "{expression}"`,subtitle:`{selector}`,snapshot:!0,pause:!0}],[`Frame.webmcpTools`,{title:`List WebMCP tools`,group:`getter`}],[`Frame.webmcpCallTool`,{title:`Call WebMCP tool`}],[`JSHandle.dispose`,{internal:!0}],[`ElementHandle.dispose`,{internal:!0}],[`JSHandle.evaluateExpression`,{title:`Evaluate`,snapshot:!0,pause:!0}],[`ElementHandle.evaluateExpression`,{title:`Evaluate`,snapshot:!0,pause:!0}],[`JSHandle.evaluateExpressionHandle`,{title:`Evaluate`,snapshot:!0,pause:!0}],[`ElementHandle.evaluateExpressionHandle`,{title:`Evaluate`,snapshot:!0,pause:!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`,subtitle:`{selector}`,snapshot:!0,pause:!0}],[`ElementHandle.evalOnSelectorAll`,{title:`Evaluate`,subtitle:`{selector}`,snapshot:!0,pause:!0}],[`ElementHandle.boundingBox`,{title:`Get bounding box`,snapshot:!0,pause:!0}],[`ElementHandle.check`,{title:`Check`,renderParams:[`position`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.click`,{title:`Click`,renderParams:[`button`,`clickCount`,`modifiers`,`position`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.contentFrame`,{title:`Get content frame`,group:`getter`}],[`ElementHandle.dblclick`,{title:`Double click`,renderParams:[`button`,`modifiers`,`position`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.dispatchEvent`,{title:`Dispatch event`,renderParams:[`type`],slowMo:!0,snapshot:!0,pause:!0}],[`ElementHandle.fill`,{title:`Fill "{value}"`,renderParams:[`value`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.focus`,{title:`Focus`,slowMo:!0,snapshot:!0,pause:!0}],[`ElementHandle.getAttribute`,{title:`Get attribute`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.hover`,{title:`Hover`,renderParams:[`modifiers`,`position`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.innerHTML`,{title:`Get HTML`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.innerText`,{title:`Get inner text`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.inputValue`,{title:`Get input value`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.isChecked`,{title:`Is checked`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.isDisabled`,{title:`Is disabled`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.isEditable`,{title:`Is editable`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.isEnabled`,{title:`Is enabled`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.isHidden`,{title:`Is hidden`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.isVisible`,{title:`Is visible`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.ownerFrame`,{title:`Get owner frame`,group:`getter`}],[`ElementHandle.press`,{title:`Press "{key}"`,renderParams:[`key`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.querySelector`,{title:`Query selector`,subtitle:`{selector}`,snapshot:!0}],[`ElementHandle.querySelectorAll`,{title:`Query selector all`,subtitle:`{selector}`,snapshot:!0}],[`ElementHandle.screenshot`,{title:`Screenshot`,renderParams:[`type`],snapshot:!0,pause:!0}],[`ElementHandle.scrollIntoViewIfNeeded`,{title:`Scroll into view`,slowMo:!0,snapshot:!0,pause:!0}],[`ElementHandle.selectOption`,{title:`Select option`,renderParams:[`options`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.selectText`,{title:`Select text`,slowMo:!0,snapshot:!0,pause:!0}],[`ElementHandle.setInputFiles`,{title:`Set input files`,renderParams:[`files=localPaths`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.tap`,{title:`Tap`,renderParams:[`modifiers`,`position`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.textContent`,{title:`Get text content`,snapshot:!0,pause:!0,group:`getter`}],[`ElementHandle.type`,{title:`Type`,renderParams:[`text`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.uncheck`,{title:`Uncheck`,renderParams:[`position`],slowMo:!0,snapshot:!0,pause:!0,input:!0,isAutoWaiting:!0}],[`ElementHandle.waitForElementState`,{title:`Wait for state`,renderParams:[`state`],snapshot:!0,pause:!0}],[`ElementHandle.waitForSelector`,{title:`Wait for selector`,subtitle:`{selector}`,renderParams:[`state`],snapshot:!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}],[`LocalUtils.asLocatorDescription`,{internal:!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.httpVersion`,{internal:!0}],[`Response.sizes`,{internal:!0}],[`Page.addInitScript`,{title:`Add init script`,group:`configuration`}],[`Page.close`,{title:`Close page`,pause:!0}],[`Page.runBeforeUnload`,{title:`Run beforeunload`,pause:!0}],[`Page.clearConsoleMessages`,{title:`Clear console messages`}],[`Page.consoleMessages`,{title:`Get console messages`,group:`getter`}],[`Page.emulateMedia`,{title:`Emulate media`,renderParams:[`media`,`colorScheme`,`reducedMotion`,`forcedColors`,`contrast`],snapshot:!0,pause:!0}],[`Page.exposeBinding`,{title:`Expose binding`,group:`configuration`}],[`Page.goBack`,{title:`Go back`,slowMo:!0,snapshot:!0,pause:!0}],[`Page.goForward`,{title:`Go forward`,slowMo:!0,snapshot:!0,pause:!0}],[`Page.requestGC`,{title:`Request garbage collection`,group:`configuration`}],[`Page.registerLocatorHandler`,{title:`Register locator handler`,subtitle:`{selector}`}],[`Page.resolveLocatorHandlerNoReply`,{internal:!0}],[`Page.unregisterLocatorHandler`,{title:`Unregister locator handler`}],[`Page.reload`,{title:`Reload`,slowMo:!0,snapshot:!0,pause:!0}],[`Page.expectScreenshot`,{title:`Expect screenshot`,subtitle:`{locator.selector}`,snapshot:!0,pause:!0}],[`Page.screenshot`,{title:`Screenshot`,renderParams:[`type`,`fullPage`],snapshot:!0,pause:!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`,renderParams:[`viewportSize.width`,`viewportSize.height`],snapshot:!0,pause:!0}],[`Page.keyboardDown`,{title:`Key down "{key}"`,renderParams:[`key`],slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.keyboardUp`,{title:`Key up "{key}"`,renderParams:[`key`],slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.keyboardInsertText`,{title:`Insert "{text}"`,renderParams:[`text`],slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.keyboardType`,{title:`Type "{text}"`,renderParams:[`text`],slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.keyboardPress`,{title:`Press "{key}"`,renderParams:[`key`],slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.mouseMove`,{title:`Mouse move`,renderParams:[`x`,`y`],slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.mouseDown`,{title:`Mouse down`,renderParams:[`button`,`clickCount`],slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.mouseUp`,{title:`Mouse up`,renderParams:[`button`,`clickCount`],slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.mouseClick`,{title:`Click`,renderParams:[`x`,`y`,`button`,`clickCount`],slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.mouseWheel`,{title:`Mouse wheel`,renderParams:[`deltaX`,`deltaY`],slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.touchscreenTap`,{title:`Tap`,renderParams:[`x`,`y`],slowMo:!0,snapshot:!0,pause:!0,input:!0}],[`Page.clearPageErrors`,{title:`Clear page errors`}],[`Page.pageErrors`,{title:`Get page errors`,group:`getter`}],[`Page.pdf`,{title:`PDF`}],[`Page.requests`,{title:`Get network requests`,group:`getter`}],[`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.pickLocator`,{title:`Pick locator`,group:`configuration`}],[`Page.cancelPickLocator`,{title:`Cancel pick locator`,group:`configuration`}],[`Page.hideHighlight`,{title:`Hide all element highlights`,group:`configuration`}],[`Page.screencastShowOverlay`,{title:`Show overlay`,group:`configuration`}],[`Page.screencastRemoveOverlay`,{title:`Remove overlay`,group:`configuration`}],[`Page.screencastChapter`,{title:`Show chapter overlay`,group:`configuration`}],[`Page.screencastSetOverlayVisible`,{title:`Set overlay visibility`,group:`configuration`}],[`Page.screencastShowActions`,{title:`Show actions`,group:`configuration`}],[`Page.screencastHideActions`,{title:`Remove actions`,group:`configuration`}],[`Page.screencastStart`,{title:`Start screencast`,group:`configuration`}],[`Page.screencastFrameAck`,{internal:!0}],[`Page.screencastStop`,{title:`Stop screencast`,group:`configuration`}],[`Page.updateSubscription`,{internal:!0}],[`Page.setDockTile`,{internal:!0}],[`Page.webStorageItems`,{title:`Get WebStorage items`,group:`getter`}],[`Page.webStorageGetItem`,{title:`Get WebStorage item`,group:`getter`}],[`Page.webStorageSetItem`,{title:`Set WebStorage item`,group:`configuration`}],[`Page.webStorageRemoveItem`,{title:`Remove WebStorage item`,group:`configuration`}],[`Page.webStorageClear`,{title:`Clear WebStorage`,group:`configuration`}],[`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}],[`JsonPipe.send`,{internal:!0}],[`JsonPipe.close`,{internal:!0}],[`CDPSession.send`,{title:`Send CDP command`,group:`configuration`}],[`CDPSession.detach`,{title:`Detach CDP session`,group:`configuration`}],[`BindingCall.reject`,{internal:!0}],[`BindingCall.resolve`,{internal:!0}],[`Debugger.requestPause`,{title:`Pause on next call`,group:`configuration`}],[`Debugger.resume`,{title:`Resume`,group:`configuration`}],[`Debugger.next`,{title:`Step to next call`,group:`configuration`}],[`Debugger.runTo`,{title:`Run to location`,group:`configuration`}],[`Debugger.enable`,{internal:!0}],[`Dialog.accept`,{title:`Accept dialog`,renderParams:[`promptText`]}],[`Dialog.dismiss`,{title:`Dismiss dialog`}],[`Tracing.tracingStart`,{title:`Start tracing`,group:`configuration`}],[`Tracing.tracingStartChunk`,{title:`Start tracing`,group:`configuration`}],[`Tracing.tracingGroup`,{title:`Trace "{name}"`,renderParams:[`name`]}],[`Tracing.tracingGroupEnd`,{title:`Group end`}],[`Tracing.tracingStopChunk`,{title:`Stop tracing`,group:`configuration`}],[`Tracing.tracingStop`,{title:`Stop tracing`,group:`configuration`}],[`Tracing.harStart`,{internal:!0}],[`Tracing.harExport`,{internal:!0}],[`Worker.disconnect`,{title:`Disconnect from worker`}],[`Worker.evaluateExpression`,{title:`Evaluate`}],[`Worker.evaluateExpressionHandle`,{title:`Evaluate`}],[`Worker.updateSubscription`,{internal:!0}]]);function O(e){return pe.get(e.type+`.`+e.method)}var k=function(e,t,n){return e>=t&&e<=n};function me(e){return k(e,48,57)}function he(e){return me(e)||k(e,65,70)||k(e,97,102)}function ge(e){return k(e,65,90)}function _e(e){return k(e,97,122)}function ve(e){return ge(e)||_e(e)}function ye(e){return e>=128}function be(e){return ve(e)||ye(e)||e===95}function xe(e){return be(e)||me(e)||e===45}function Se(e){return k(e,0,8)||e===11||k(e,14,31)||e===127}function Ce(e){return e===10}function we(e){return Ce(e)||e===9||e===32}var Te=1114111,Ee=class extends Error{constructor(e){super(e),this.name=`InvalidCharacterError`}};function De(e){let t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r===13&&e.charCodeAt(n+1)===10&&(r=10,n++),(r===13||r===12)&&(r=10),r===0&&(r=65533),k(r,55296,56319)&&k(e.charCodeAt(n+1),56320,57343)){let t=r-55296,i=e.charCodeAt(n+1)-56320;r=2**16+t*2**10+i,n++}t.push(r)}return t}function A(e){if(e<=65535)return String.fromCharCode(e);e-=2**16;let t=Math.floor(e/2**10)+55296,n=e%2**10+56320;return String.fromCharCode(t)+String.fromCharCode(n)}function Oe(e){let t=De(e),n=-1,r=[],i,a=0,o=0,s=0,c=function(){a+=1,s=o,o=0},l={line:a,column:o},u=function(e){return e>=t.length?-1:t[e]},d=function(e){if(e===void 0&&(e=1),e>3)throw`Spec Error: no more than three codepoints of lookahead.`;return u(n+e)},f=function(e){return e===void 0&&(e=1),n+=e,i=u(n),Ce(i)?c():o+=e,!0},p=function(){return--n,Ce(i)?(--a,o=s):--o,l.line=a,l.column=o,!0},m=function(e){return e===void 0&&(e=i),e===-1},h=function(){if(g(),f(),we(i)){for(;we(d());)f();return new Me}else if(i===34)return y();else if(i===35)if(xe(d())||S(d(1),d(2))){let e=new rt(``);return w(d(1),d(2),d(3))&&(e.type=`id`),e.value=ne(),e}else return new Qe(i);else if(i===36)return d()===61?(f(),new Je):new Qe(i);else if(i===39)return y();else if(i===40)return new Ue;else if(i===41)return new We;else if(i===42)return d()===61?(f(),new Ye):new Qe(i);else if(i===43)return te()?(p(),_()):new Qe(i);else if(i===44)return new Le;else if(i===45)return te()?(p(),_()):d(1)===45&&d(2)===62?(f(2),new Pe):ee()?(p(),v()):new Qe(i);else if(i===46)return te()?(p(),_()):new Qe(i);else if(i===58)return new Fe;else if(i===59)return new Ie;else if(i===60)return d(1)===33&&d(2)===45&&d(3)===45?(f(3),new Ne):new Qe(i);else if(i===64)return w(d(1),d(2),d(3))?new nt(ne()):new Qe(i);else if(i===91)return new Ve;else if(i===92)return C()?(p(),v()):new Qe(i);else if(i===93)return new He;else if(i===94)return d()===61?(f(),new qe):new Qe(i);else if(i===123)return new ze;else if(i===124)return d()===61?(f(),new Ke):d()===124?(f(),new Xe):new Qe(i);else if(i===125)return new Be;else if(i===126)return d()===61?(f(),new Ge):new Qe(i);else if(me(i))return p(),_();else if(be(i))return p(),v();else if(m())return new Ze;else return new Qe(i)},g=function(){for(;d(1)===47&&d(2)===42;)for(f(2);;)if(f(),i===42&&d()===47){f();break}else if(m())return},_=function(){let e=re();if(w(d(1),d(2),d(3))){let t=new ct;return t.value=e.value,t.repr=e.repr,t.type=e.type,t.unit=ne(),t}else if(d()===37){f();let t=new st;return t.value=e.value,t.repr=e.repr,t}else{let t=new ot;return t.value=e.value,t.repr=e.repr,t.type=e.type,t}},v=function(){let e=ne();if(e.toLowerCase()===`url`&&d()===40){for(f();we(d(1))&&we(d(2));)f();return d()===34||d()===39||we(d())&&(d(2)===34||d(2)===39)?new tt(e):b()}else if(d()===40)return f(),new tt(e);else return new et(e)},y=function(e){e===void 0&&(e=i);let t=``;for(;f();)if(i===e||m())return new it(t);else if(Ce(i))return p(),new Ae;else i===92?m(d())||(Ce(d())?f():t+=A(x())):t+=A(i);throw Error(`Internal error`)},b=function(){let e=new at(``);for(;we(d());)f();if(m(d()))return e;for(;f();)if(i===41||m())return e;else if(we(i)){for(;we(d());)f();return d()===41||m(d())?(f(),e):(ae(),new je)}else if(i===34||i===39||i===40||Se(i))return ae(),new je;else if(i===92)if(C())e.value+=A(x());else return ae(),new je;else e.value+=A(i);throw Error(`Internal error`)},x=function(){if(f(),he(i)){let e=[i];for(let t=0;t<5&&he(d());t++)f(),e.push(i);we(d())&&f();let t=parseInt(e.map(function(e){return String.fromCharCode(e)}).join(``),16);return t>Te&&(t=65533),t}else if(m())return 65533;else return i},S=function(e,t){return!(e!==92||Ce(t))},C=function(){return S(i,d())},w=function(e,t,n){return e===45?be(t)||t===45||S(t,n):be(e)?!0:e===92&&S(e,t)},ee=function(){return w(i,d(1),d(2))},T=function(e,t,n){return e===43||e===45?!!(me(t)||t===46&&me(n)):e===46?!!me(t):!!me(e)},te=function(){return T(i,d(1),d(2))},ne=function(){let e=``;for(;f();)if(xe(i))e+=A(i);else if(C())e+=A(x());else return p(),e;throw Error(`Internal parse error`)},re=function(){let e=``,t=`integer`;for((d()===43||d()===45)&&(f(),e+=A(i));me(d());)f(),e+=A(i);if(d(1)===46&&me(d(2)))for(f(),e+=A(i),f(),e+=A(i),t=`number`;me(d());)f(),e+=A(i);let n=d(1),r=d(2),a=d(3);if((n===69||n===101)&&me(r))for(f(),e+=A(i),f(),e+=A(i),t=`number`;me(d());)f(),e+=A(i);else if((n===69||n===101)&&(r===43||r===45)&&me(a))for(f(),e+=A(i),f(),e+=A(i),f(),e+=A(i),t=`number`;me(d());)f(),e+=A(i);let o=ie(e);return{type:t,value:o,repr:e}},ie=function(e){return+e},ae=function(){for(;f();)if(i===41||m())return;else C()&&x()},oe=0;for(;!m(d());)if(r.push(h()),oe++,oe>t.length*2)throw Error(`I'm infinite-looping!`);return r}var ke=class{constructor(){this.tokenType=``}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return``+this}},Ae=class extends ke{constructor(...e){super(...e),this.tokenType=`BADSTRING`}},je=class extends ke{constructor(...e){super(...e),this.tokenType=`BADURL`}},Me=class extends ke{constructor(...e){super(...e),this.tokenType=`WHITESPACE`}toString(){return`WS`}toSource(){return` `}},Ne=class extends ke{constructor(...e){super(...e),this.tokenType=`CDO`}toSource(){return`<!--`}},Pe=class extends ke{constructor(...e){super(...e),this.tokenType=`CDC`}toSource(){return`-->`}},Fe=class extends ke{constructor(...e){super(...e),this.tokenType=`:`}},Ie=class extends ke{constructor(...e){super(...e),this.tokenType=`;`}},Le=class extends ke{constructor(...e){super(...e),this.tokenType=`,`}},Re=class extends ke{constructor(...e){super(...e),this.value=``,this.mirror=``}},ze=class extends Re{constructor(){super(),this.tokenType=`{`,this.value=`{`,this.mirror=`}`}},Be=class extends Re{constructor(){super(),this.tokenType=`}`,this.value=`}`,this.mirror=`{`}},Ve=class extends Re{constructor(){super(),this.tokenType=`[`,this.value=`[`,this.mirror=`]`}},He=class extends Re{constructor(){super(),this.tokenType=`]`,this.value=`]`,this.mirror=`[`}},Ue=class extends Re{constructor(){super(),this.tokenType=`(`,this.value=`(`,this.mirror=`)`}},We=class extends Re{constructor(){super(),this.tokenType=`)`,this.value=`)`,this.mirror=`(`}},Ge=class extends ke{constructor(...e){super(...e),this.tokenType=`~=`}},Ke=class extends ke{constructor(...e){super(...e),this.tokenType=`|=`}},qe=class extends ke{constructor(...e){super(...e),this.tokenType=`^=`}},Je=class extends ke{constructor(...e){super(...e),this.tokenType=`$=`}},Ye=class extends ke{constructor(...e){super(...e),this.tokenType=`*=`}},Xe=class extends ke{constructor(...e){super(...e),this.tokenType=`||`}},Ze=class extends ke{constructor(...e){super(...e),this.tokenType=`EOF`}toSource(){return``}},Qe=class extends ke{constructor(e){super(),this.tokenType=`DELIM`,this.value=``,this.value=A(e)}toString(){return`DELIM(`+this.value+`)`}toJSON(){let e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e}toSource(){return this.value===`\\`?`\\
11
+ `:this.value}},$e=class extends ke{constructor(...e){super(...e),this.value=``}ASCIIMatch(e){return this.value.toLowerCase()===e.toLowerCase()}toJSON(){let e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e}},et=class extends $e{constructor(e){super(),this.tokenType=`IDENT`,this.value=e}toString(){return`IDENT(`+this.value+`)`}toSource(){return lt(this.value)}},tt=class extends $e{constructor(e){super(),this.tokenType=`FUNCTION`,this.value=e,this.mirror=`)`}toString(){return`FUNCTION(`+this.value+`)`}toSource(){return lt(this.value)+`(`}},nt=class extends $e{constructor(e){super(),this.tokenType=`AT-KEYWORD`,this.value=e}toString(){return`AT(`+this.value+`)`}toSource(){return`@`+lt(this.value)}},rt=class extends $e{constructor(e){super(),this.tokenType=`HASH`,this.value=e,this.type=`unrestricted`}toString(){return`HASH(`+this.value+`)`}toJSON(){let e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.type=this.type,e}toSource(){return this.type===`id`?`#`+lt(this.value):`#`+ut(this.value)}},it=class extends $e{constructor(e){super(),this.tokenType=`STRING`,this.value=e}toString(){return`"`+dt(this.value)+`"`}},at=class extends $e{constructor(e){super(),this.tokenType=`URL`,this.value=e}toString(){return`URL(`+this.value+`)`}toSource(){return`url("`+dt(this.value)+`")`}},ot=class extends ke{constructor(){super(),this.tokenType=`NUMBER`,this.type=`integer`,this.repr=``}toString(){return this.type===`integer`?`INT(`+this.value+`)`:`NUMBER(`+this.value+`)`}toJSON(){let e=super.toJSON();return e.value=this.value,e.type=this.type,e.repr=this.repr,e}toSource(){return this.repr}},st=class extends ke{constructor(){super(),this.tokenType=`PERCENTAGE`,this.repr=``}toString(){return`PERCENTAGE(`+this.value+`)`}toJSON(){let e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.repr=this.repr,e}toSource(){return this.repr+`%`}},ct=class extends ke{constructor(){super(),this.tokenType=`DIMENSION`,this.type=`integer`,this.repr=``,this.unit=``}toString(){return`DIM(`+this.value+`,`+this.unit+`)`}toJSON(){let 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(){let e=this.repr,t=lt(this.unit);return t[0].toLowerCase()===`e`&&(t[1]===`-`||k(t.charCodeAt(1),48,57))&&(t=`\\65 `+t.slice(1,t.length)),e+t}};function lt(e){e=``+e;let t=``,n=e.charCodeAt(0);for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(i===0)throw new Ee(`Invalid character: the input contains U+0000.`);k(i,1,31)||i===127||r===0&&k(i,48,57)||r===1&&k(i,48,57)&&n===45?t+=`\\`+i.toString(16)+` `:i>=128||i===45||i===95||k(i,48,57)||k(i,65,90)||k(i,97,122)?t+=e[r]:t+=`\\`+e[r]}return t}function ut(e){e=``+e;let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r===0)throw new Ee(`Invalid character: the input contains U+0000.`);r>=128||r===45||r===95||k(r,48,57)||k(r,65,90)||k(r,97,122)?t+=e[n]:t+=`\\`+r.toString(16)+` `}return t}function dt(e){e=``+e;let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r===0)throw new Ee(`Invalid character: the input contains U+0000.`);k(r,1,31)||r===127?t+=`\\`+r.toString(16)+` `:r===34||r===92?t+=`\\`+e[n]:t+=e[n]}return t}var ft=class extends Error{};function pt(e,t){let n;try{n=Oe(e),n[n.length-1]instanceof Ze||n.push(new Ze)}catch(t){let n=t.message+` while parsing css selector "${e}". Did you mean to CSS.escape it?`,r=(t.stack||``).indexOf(t.message);throw r!==-1&&(t.stack=t.stack.substring(0,r)+n+t.stack.substring(r+t.message.length)),t.message=n,t}let r=n.find(e=>e instanceof nt||e instanceof Ae||e instanceof je||e instanceof Xe||e instanceof Ne||e instanceof Pe||e instanceof Ie||e instanceof ze||e instanceof Be||e instanceof at||e instanceof st);if(r)throw new ft(`Unsupported token "${r.toSource()}" while parsing css selector "${e}". Did you mean to CSS.escape it?`);let i=0,a=new Set;function o(){return new ft(`Unexpected token "${n[i].toSource()}" while parsing css selector "${e}". Did you mean to CSS.escape it?`)}function s(){for(;n[i]instanceof Me;)i++}function c(e=i){return n[e]instanceof et}function l(e=i){return n[e]instanceof it}function u(e=i){return n[e]instanceof ot}function d(e=i){return n[e]instanceof Le}function f(e=i){return n[e]instanceof Ue}function p(e=i){return n[e]instanceof We}function m(e=i){return n[e]instanceof tt}function h(e=i){return n[e]instanceof Qe&&n[e].value===`*`}function g(e=i){return n[e]instanceof Ze}function _(e=i){return n[e]instanceof Qe&&[`>`,`+`,`~`].includes(n[e].value)}function v(e=i){return d(e)||p(e)||g(e)||_(e)||n[e]instanceof Me}function y(){let e=[b()];for(;s(),d();)i++,e.push(b());return e}function b(){return s(),u()||l()?n[i++].value:x()}function x(){let e={simples:[]};for(s(),_()?e.simples.push({selector:{functions:[{name:`scope`,args:[]}]},combinator:``}):e.simples.push({selector:S(),combinator:``});;){if(s(),_())e.simples[e.simples.length-1].combinator=n[i++].value,s();else if(v())break;e.simples.push({combinator:``,selector:S()})}return e}function S(){let e=``,r=[];for(;!v();)if(c()||h())e+=n[i++].toSource();else if(n[i]instanceof rt)e+=n[i++].toSource();else if(n[i]instanceof Qe&&n[i].value===`.`)if(i++,c())e+=`.`+n[i++].toSource();else throw o();else if(n[i]instanceof Fe)if(i++,c())if(!t.has(n[i].value.toLowerCase()))e+=`:`+n[i++].toSource();else{let e=n[i++].value.toLowerCase();r.push({name:e,args:[]}),a.add(e)}else if(m()){let c=n[i++].value.toLowerCase();if(t.has(c)?(r.push({name:c,args:y()}),a.add(c)):e+=`:${c}(${C()})`,s(),!p())throw o();i++}else throw o();else if(n[i]instanceof Ve){for(e+=`[`,i++;!(n[i]instanceof He)&&!g();)e+=n[i++].toSource();if(!(n[i]instanceof He))throw o();e+=`]`,i++}else throw o();if(!e&&!r.length)throw o();return{css:e||void 0,functions:r}}function C(){let e=``,t=1;for(;!g()&&((f()||m())&&t++,p()&&t--,t);)e+=n[i++].toSource();return e}let w=y();if(!g())throw o();if(w.some(e=>typeof e!=`object`||!(`simples`in e)))throw new ft(`Error while parsing css selector "${e}". Did you mean to CSS.escape it?`);return{selector:w,names:Array.from(a)}}var mt=new Set([`internal:has`,`internal:has-not`,`internal:and`,`internal:or`,`internal:chain`,`left-of`,`right-of`,`above`,`below`,`near`]),ht=new Set([`left-of`,`right-of`,`above`,`below`,`near`]),gt=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 _t(e){let t=St(e),n=[];for(let e of t.parts){if(e.name===`css`||e.name===`css:light`){e.name===`css:light`&&(e.body=`:light(`+e.body+`)`);let t=pt(e.body,gt);n.push({name:`css`,body:t.selector,source:e.body});continue}if(mt.has(e.name)){let t,r;try{let n=JSON.parse(`[`+e.body+`]`);if(!Array.isArray(n)||n.length<1||n.length>2||typeof n[0]!=`string`)throw new ft(`Malformed selector: ${e.name}=`+e.body);if(t=n[0],n.length===2){if(typeof n[1]!=`number`||!ht.has(e.name))throw new ft(`Malformed selector: ${e.name}=`+e.body);r=n[1]}}catch{throw new ft(`Malformed selector: ${e.name}=`+e.body)}let i={name:e.name,source:e.body,body:{parsed:_t(t),distance:r}},a=[...i.body.parsed.parts].reverse().find(e=>e.name===`internal:control`&&e.body===`enter-frame`),o=a?i.body.parsed.parts.indexOf(a):-1,s=n[0]?.name===`internal:control`&&n[0].body===`any-frame`?n.slice(1):n;if(o!==-1&&yt(i.body.parsed.parts.slice(0,o+1),s.slice(0,o+1))&&(i.body.parsed.parts.splice(0,o+1),i.body.parsed.capture!==void 0)){if(i.body.parsed.capture<=o)throw new ft(`Can not capture the selector before diving into the frame. Only use * after the last frame has been selected`);i.body.parsed.capture-=o+1}n.push(i);continue}n.push({...e,source:e.body})}if(mt.has(n[0].name))throw new ft(`"${n[0].name}" selector cannot be first`);return{capture:t.capture,parts:n}}var vt=`internal:control=any-frame`;function yt(e,t){return bt({parts:e})===bt({parts:t})}function bt(e,t){return typeof e==`string`?e:e.parts.map((n,r)=>{let i=!0;!t&&r!==e.capture&&(n.name===`css`||n.name===`xpath`&&(n.source.startsWith(`//`)||n.source.startsWith(`..`)))&&(i=!1);let a=i?n.name+`=`:``;return`${r===e.capture?`*`:``}${a}${n.source}`}).join(` >> `)}function xt(e,t){let n=(e,r)=>{for(let i of e.parts)t(i,r),mt.has(i.name)&&n(i.body.parsed,!0)};n(e,!1)}function St(e){let t=0,n,r=0,i={parts:[]},a=()=>{let n=e.substring(r,t).trim(),a=n.indexOf(`=`),o,s;a!==-1&&n.substring(0,a).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(o=n.substring(0,a).trim(),s=n.substring(a+1)):n.length>1&&n[0]===`"`&&n[n.length-1]===`"`||n.length>1&&n[0]===`'`&&n[n.length-1]===`'`?(o=`text`,s=n):/^\(*\/\//.test(n)||n.startsWith(`..`)?(o=`xpath`,s=n):(o=`css`,s=n);let c=!1;if(o[0]===`*`&&(c=!0,o=o.substring(1)),i.parts.push({name:o,body:s}),c){if(i.capture!==void 0)throw new ft(`Only one of the selectors can capture using * modifier`);i.capture=i.parts.length-1}};if(!e.includes(`>>`))return t=e.length,a(),i;let o=()=>{let n=e.substring(r,t).match(/^\s*text\s*=(.*)$/);return!!n&&!!n[1]};for(;t<e.length;){let i=e[t];i===`\\`&&t+1<e.length?t+=2:i===n?(n=void 0,t++):!n&&(i===`"`||i===`'`||i==="`")&&!o()?(n=i,t++):!n&&i===`>`&&e[t+1]===`>`?(a(),t+=2,r=t):t++}return a(),i}function Ct(e,t){let n=0,r=e.length===0,i=()=>e[n]||``,a=()=>{let t=i();return++n,r=n>=e.length,t},o=t=>{throw r?new ft(`Unexpected end of selector while parsing selector \`${e}\``):new ft(`Error while parsing selector \`${e}\` - unexpected symbol "${i()}" at position ${n}`+(t?` during `+t:``))};function s(){for(;!r&&/\s/.test(i());)a()}function c(e){return e>=`€`||e>=`0`&&e<=`9`||e>=`A`&&e<=`Z`||e>=`a`&&e<=`z`||e>=`0`&&e<=`9`||e===`_`||e===`-`}function l(){let e=``;for(s();!r&&c(i());)e+=a();return e}function u(e){let t=a();for(t!==e&&o(`parsing quoted string`);!r&&i()!==e;)i()===`\\`&&a(),t+=a();return i()!==e&&o(`parsing quoted string`),t+=a(),t}function d(){a()!==`/`&&o(`parsing regular expression`);let t=``,n=!1;for(;!r;){if(i()===`\\`)t+=a(),r&&o(`parsing regular expression`);else if(n&&i()===`]`)n=!1;else if(!n&&i()===`[`)n=!0;else if(!n&&i()===`/`)break;t+=a()}a()!==`/`&&o(`parsing regular expression`);let s=``;for(;!r&&i().match(/[dgimsuvy]/);)s+=a();try{return new RegExp(t,s)}catch(t){throw new ft(`Error while parsing selector \`${e}\`: ${t.message}`)}}function f(){let e=``;return s(),e=i()===`'`||i()===`"`?u(i()).slice(1,-1):l(),e||o(`parsing property path`),e}function p(){s();let e=``;return r||(e+=a()),!r&&e!==`=`&&(e+=a()),[`=`,`*=`,`^=`,`$=`,`|=`,`~=`].includes(e)||o(`parsing operator`),e}function m(){a();let n=[];for(n.push(f()),s();i()===`.`;)a(),n.push(f()),s();if(i()===`]`)return a(),{name:n.join(`.`),jsonPath:n,op:`<truthy>`,value:null,caseSensitive:!1};let l=p(),m,h=!0;if(s(),i()===`/`){if(l!==`=`)throw new ft(`Error while parsing selector \`${e}\` - cannot use ${l} in attribute with regular expression`);m=d()}else if(i()===`'`||i()===`"`)m=u(i()).slice(1,-1),s(),i()===`i`||i()===`I`?(h=!1,a()):(i()===`s`||i()===`S`)&&(h=!0,a());else{for(m=``;!r&&(c(i())||i()===`+`||i()===`.`);)m+=a();m===`true`?m=!0:m===`false`?m=!1:t||(m=+m,Number.isNaN(m)&&o(`parsing attribute value`))}if(s(),i()!==`]`&&o(`parsing attribute value`),a(),l!==`=`&&typeof m!=`string`)throw new ft(`Error while parsing selector \`${e}\` - cannot use ${l} in attribute with non-string matching value - ${m}`);return{name:n.join(`.`),jsonPath:n,op:l,value:m,caseSensitive:h}}let h={name:``,attributes:[]};for(h.name=l(),s();i()===`[`;)h.attributes.push(m()),s();if(r||o(void 0),!h.name&&!h.attributes.length)throw new ft(`Error while parsing selector \`${e}\` - selector cannot be empty`);return h}function wt(e,t=`'`){let n=JSON.stringify(e),r=n.substring(1,n.length-1).replace(/\\"/g,`"`);if(t===`'`)return t+r.replace(/[']/g,`\\'`)+t;if(t===`"`)return t+r.replace(/["]/g,`\\"`)+t;if(t==="`")return t+r.replace(/[`]/g,"\\`")+t;throw Error(`Invalid escape char`)}function Tt(e){return e.charAt(0).toUpperCase()+e.substring(1)}function Et(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1_$2`).replace(/([A-Z])([A-Z][a-z])/g,`$1_$2`).toLowerCase()}function Dt(e){return`"${e.replace(/["\\]/g,e=>`\\`+e)}"`}var Ot;function kt(){Ot=new Map}function At(e){let t=Ot?.get(e);return t===void 0&&(t=e.replace(/[\u200b\u00ad]/g,``).trim().replace(/\s+/g,` `),Ot?.set(e,t)),t}function jt(e){return e.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,`$1$2$3`)}function Mt(e){return e.unicode||e.unicodeSets?String(e):String(e).replace(/(^|[^\\])(\\\\)*(["'`])/g,`$1$2\\$3`).replace(/>>/g,`\\>\\>`)}function Nt(e,t){return typeof e==`string`?`${JSON.stringify(e)}${t?`s`:`i`}`:Mt(e)}function Pt(e,t){return typeof e==`string`?`"${e.replace(/\\/g,`\\\\`).replace(/["]/g,`\\"`)}"${t?`s`:`i`}`:Mt(e)}function Ft(e,t,n=``){if(e.length<=t)return e;let r=[...e];return r.length>t?r.slice(0,t-n.length).join(``)+n:r.join(``)}function It(e,t){return Ft(e,t,`…`)}function Lt(e){if(!e.startsWith(`data:`))return e;let t=e.indexOf(`,`);return t===-1?e:e.slice(0,t+1)+`…`}function Rt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function zt(e,t){let n=e.length,r=t.length,i=0,a=0,o=Array(n+1).fill(null).map(()=>Array(r+1).fill(0));for(let s=1;s<=n;s++)for(let n=1;n<=r;n++)e[s-1]===t[n-1]&&(o[s][n]=o[s-1][n-1]+1,o[s][n]>i&&(i=o[s][n],a=s));return e.slice(a-i,a)}function Bt(e,t){try{let n=_t(t);return Vt(n)||Wt(new qt[e],n,!1,1)[0]}catch{return t}}function Vt(e){let t=e.parts[e.parts.length-1];if(t?.name===`internal:describe`){let e=JSON.parse(t.body);if(typeof e==`string`)return e}}function Ht(e,t,n=!1){return Ut(e,t,n,1)[0]}function Ut(e,t,n=!1,r=20,i){try{return Wt(new qt[e](i),_t(t),n,r)}catch{return[t]}}function Wt(e,t,n=!1,r=20){let i=[...t.parts],a=[],o=n?`frame-locator`:`page`;for(let t=0;t<i.length;t++){let n=i[t],s=o;if(o=`locator`,n.name===`internal:describe`)continue;if(n.name===`nth`){n.body===`0`?a.push([e.generateLocator(s,`first`,``),e.generateLocator(s,`nth`,`0`)]):n.body===`-1`?a.push([e.generateLocator(s,`last`,``),e.generateLocator(s,`nth`,`-1`)]):a.push([e.generateLocator(s,`nth`,n.body)]);continue}if(n.name===`visible`){let t=[];n.body===`true`&&t.push(e.generateLocator(s,`visible`,``)),t.push(e.generateLocator(s,`filter-visible`,n.body),e.generateLocator(s,`default`,`visible=${n.body}`)),a.push(t);continue}if(n.name===`internal:text`){let{exact:t,text:r}=Kt(n.body);a.push([e.generateLocator(s,`text`,r,{exact:t})]);continue}if(n.name===`internal:has-text`){let{exact:t,text:r}=Kt(n.body);if(!t){a.push([e.generateLocator(s,`has-text`,r,{exact:t})]);continue}}if(n.name===`internal:has-not-text`){let{exact:t,text:r}=Kt(n.body);if(!t){a.push([e.generateLocator(s,`has-not-text`,r,{exact:t})]);continue}}if(n.name===`internal:has`){let t=Wt(e,n.body.parsed,!1,r);a.push(t.map(t=>e.generateLocator(s,`has`,t)));continue}if(n.name===`internal:has-not`){let t=Wt(e,n.body.parsed,!1,r);a.push(t.map(t=>e.generateLocator(s,`hasNot`,t)));continue}if(n.name===`internal:and`){let t=Wt(e,n.body.parsed,!1,r);a.push(t.map(t=>e.generateLocator(s,`and`,t)));continue}if(n.name===`internal:or`){let t=Wt(e,n.body.parsed,!1,r);a.push(t.map(t=>e.generateLocator(s,`or`,t)));continue}if(n.name===`internal:chain`){let t=Wt(e,n.body.parsed,!1,r);a.push(t.map(t=>e.generateLocator(s,`chain`,t)));continue}if(n.name===`internal:label`){let{exact:t,text:r}=Kt(n.body);a.push([e.generateLocator(s,`label`,r,{exact:t})]);continue}if(n.name===`internal:role`){let t=Ct(n.body,!0),r={attrs:[]};for(let e of t.attributes)if(e.name===`name`||e.name===`description`){if(typeof e.value==`string`){if(r.exact!==void 0&&r.exact!==e.caseSensitive)throw Error(`Conflicting exactness in internal:role selector: ${bt({parts:[n]})}`);r.exact=e.caseSensitive}r[e.name]=e.value}else e.name===`level`&&typeof e.value==`string`&&(e.value=+e.value),r.attrs.push({name:e.name===`include-hidden`?`includeHidden`:e.name,value:e.value});a.push([e.generateLocator(s,`role`,t.name,r)]);continue}if(n.name===`internal:testid`){let{value:t}=Ct(n.body,!0).attributes[0];a.push([e.generateLocator(s,`test-id`,t)]);continue}if(n.name===`internal:attr`){let{name:t,value:r,caseSensitive:i}=Ct(n.body,!0).attributes[0],o=r,c=!!i;if(t===`placeholder`){a.push([e.generateLocator(s,`placeholder`,o,{exact:c})]);continue}if(t===`alt`){a.push([e.generateLocator(s,`alt`,o,{exact:c})]);continue}if(t===`title`){a.push([e.generateLocator(s,`title`,o,{exact:c})]);continue}}if(n.name===`internal:control`&&n.body===`any-frame`){a.push([e.generateLocator(s,`any-frame`,``)]),o=`frame-locator`;continue}if(n.name===`internal:control`&&n.body===`enter-frame`){let n=a[a.length-1],r=i[t-1],c=n.map(t=>e.chainLocators([t,e.generateLocator(s,`frame`,``)]));[`xpath`,`css`].includes(r.name)&&c.push(e.generateLocator(s,`frame-locator`,bt({parts:[r]})),e.generateLocator(s,`frame-locator`,bt({parts:[r]},!0))),n.splice(0,n.length,...c),o=`frame-locator`;continue}let c=i[t+1],l=bt({parts:[n]}),u=e.generateLocator(s,`default`,l);if(c&&[`internal:has-text`,`internal:has-not-text`].includes(c.name)){let{exact:n,text:r}=Kt(c.body);if(!n){let i=e.generateLocator(`locator`,c.name===`internal:has-text`?`has-text`:`has-not-text`,r,{exact:n}),o={};c.name===`internal:has-text`?o.hasText=r:o.hasNotText=r;let d=e.generateLocator(s,`default`,l,o);a.push([e.chainLocators([u,i]),d]),t++;continue}}let d;if([`xpath`,`css`].includes(n.name)){let t=bt({parts:[n]},!0);d=e.generateLocator(s,`default`,t)}a.push([u,d].filter(Boolean))}return Gt(e,a,r)}function Gt(e,t,n){let r=t.map(()=>``),i=[],a=o=>{if(o===t.length)return i.push(e.chainLocators(r)),i.length<n;for(let e of t[o])if(r[o]=e,!a(o+1))return!1;return!0};return a(0),i}function Kt(e){let t=!1,n=e.match(/^\/(.*)\/([dgimsuvy]*)$/);return n?{text:new RegExp(n[1],n[2])}:(e.endsWith(`"`)?(e=JSON.parse(e),t=!0):e.endsWith(`"s`)?(e=JSON.parse(e.substring(0,e.length-1)),t=!0):e.endsWith(`"i`)&&(e=JSON.parse(e.substring(0,e.length-1)),t=!1),{exact:t,text:e})}var qt={javascript:class{constructor(e){this.preferredQuote=e}generateLocator(e,t,n,r={}){switch(t){case`default`:return r.hasText===void 0?r.hasNotText===void 0?`locator(${this.quote(n)})`:`locator(${this.quote(n)}, { hasNotText: ${this.toHasText(r.hasNotText)} })`:`locator(${this.quote(n)}, { hasText: ${this.toHasText(r.hasText)} })`;case`frame-locator`:return`frameLocator(${this.quote(n)})`;case`frame`:return`contentFrame()`;case`any-frame`:return`frameLocator()`;case`nth`:return`nth(${n})`;case`first`:return`first()`;case`last`:return`last()`;case`visible`:return`visible()`;case`filter-visible`:return`filter({ visible: ${n===`true`?`true`:`false`} })`;case`role`:let e=[];j(r.name)?e.push(`name: ${this.regexToSourceString(r.name)}`):typeof r.name==`string`&&e.push(`name: ${this.quote(r.name)}`),j(r.description)?e.push(`description: ${this.regexToSourceString(r.description)}`):typeof r.description==`string`&&e.push(`description: ${this.quote(r.description)}`),r.exact&&(typeof r.name==`string`||typeof r.description==`string`)&&e.push(`exact: true`);for(let{name:t,value:n}of r.attrs)e.push(`${t}: ${typeof n==`string`?this.quote(n):n}`);let i=e.length?`, { ${e.join(`, `)} }`:``;return`getByRole(${this.quote(n)}${i})`;case`has-text`:return`filter({ hasText: ${this.toHasText(n)} })`;case`has-not-text`:return`filter({ hasNotText: ${this.toHasText(n)} })`;case`has`:return`filter({ has: ${n} })`;case`hasNot`:return`filter({ hasNot: ${n} })`;case`and`:return`and(${n})`;case`or`:return`or(${n})`;case`chain`:return`locator(${n})`;case`test-id`:return`getByTestId(${this.toTestIdValue(n)})`;case`text`:return this.toCallWithExact(`getByText`,n,!!r.exact);case`alt`:return this.toCallWithExact(`getByAltText`,n,!!r.exact);case`placeholder`:return this.toCallWithExact(`getByPlaceholder`,n,!!r.exact);case`label`:return this.toCallWithExact(`getByLabel`,n,!!r.exact);case`title`:return this.toCallWithExact(`getByTitle`,n,!!r.exact);default:throw Error(`Unknown selector kind `+t)}}chainLocators(e){return e.join(`.`)}regexToSourceString(e){return jt(String(e))}toCallWithExact(e,t,n){return j(t)?`${e}(${this.regexToSourceString(t)})`:n?`${e}(${this.quote(t)}, { exact: true })`:`${e}(${this.quote(t)})`}toHasText(e){return j(e)?this.regexToSourceString(e):this.quote(e)}toTestIdValue(e){return j(e)?this.regexToSourceString(e):this.quote(e)}quote(e){return wt(e,this.preferredQuote??`'`)}},python:class{generateLocator(e,t,n,r={}){switch(t){case`default`:return r.hasText===void 0?r.hasNotText===void 0?`locator(${this.quote(n)})`:`locator(${this.quote(n)}, has_not_text=${this.toHasText(r.hasNotText)})`:`locator(${this.quote(n)}, has_text=${this.toHasText(r.hasText)})`;case`frame-locator`:return`frame_locator(${this.quote(n)})`;case`frame`:return`content_frame`;case`any-frame`:return`frame_locator()`;case`nth`:return`nth(${n})`;case`first`:return`first`;case`last`:return`last`;case`visible`:return`visible`;case`filter-visible`:return`filter(visible=${n===`true`?`True`:`False`})`;case`role`:let e=[];j(r.name)?e.push(`name=${this.regexToString(r.name)}`):typeof r.name==`string`&&e.push(`name=${this.quote(r.name)}`),j(r.description)?e.push(`description=${this.regexToString(r.description)}`):typeof r.description==`string`&&e.push(`description=${this.quote(r.description)}`),r.exact&&(typeof r.name==`string`||typeof r.description==`string`)&&e.push(`exact=True`);for(let{name:t,value:n}of r.attrs){let r=typeof n==`string`?this.quote(n):n;typeof n==`boolean`&&(r=n?`True`:`False`),e.push(`${Et(t)}=${r}`)}let i=e.length?`, ${e.join(`, `)}`:``;return`get_by_role(${this.quote(n)}${i})`;case`has-text`:return`filter(has_text=${this.toHasText(n)})`;case`has-not-text`:return`filter(has_not_text=${this.toHasText(n)})`;case`has`:return`filter(has=${n})`;case`hasNot`:return`filter(has_not=${n})`;case`and`:return`and_(${n})`;case`or`:return`or_(${n})`;case`chain`:return`locator(${n})`;case`test-id`:return`get_by_test_id(${this.toTestIdValue(n)})`;case`text`:return this.toCallWithExact(`get_by_text`,n,!!r.exact);case`alt`:return this.toCallWithExact(`get_by_alt_text`,n,!!r.exact);case`placeholder`:return this.toCallWithExact(`get_by_placeholder`,n,!!r.exact);case`label`:return this.toCallWithExact(`get_by_label`,n,!!r.exact);case`title`:return this.toCallWithExact(`get_by_title`,n,!!r.exact);default:throw Error(`Unknown selector kind `+t)}}chainLocators(e){return e.join(`.`)}regexToString(e){let t=Yt(e,`re`,Jt.python);return`re.compile(r"${jt(e.source).replace(/\\\//,`/`).replace(/"/g,`\\"`)}"${t})`}toCallWithExact(e,t,n){return j(t)?`${e}(${this.regexToString(t)})`:n?`${e}(${this.quote(t)}, exact=True)`:`${e}(${this.quote(t)})`}toHasText(e){return j(e)?this.regexToString(e):`${this.quote(e)}`}toTestIdValue(e){return j(e)?this.regexToString(e):this.quote(e)}quote(e){return wt(e,`"`)}},java:class{generateLocator(e,t,n,r={}){let i;switch(e){case`page`:i=`Page`;break;case`frame-locator`:i=`FrameLocator`;break;case`locator`:i=`Locator`;break}switch(t){case`default`:return r.hasText===void 0?r.hasNotText===void 0?`locator(${this.quote(n)})`:`locator(${this.quote(n)}, new ${i}.LocatorOptions().setHasNotText(${this.toHasText(r.hasNotText)}))`:`locator(${this.quote(n)}, new ${i}.LocatorOptions().setHasText(${this.toHasText(r.hasText)}))`;case`frame-locator`:return`frameLocator(${this.quote(n)})`;case`frame`:return`contentFrame()`;case`any-frame`:return`frameLocator()`;case`nth`:return`nth(${n})`;case`first`:return`first()`;case`last`:return`last()`;case`visible`:return`visible()`;case`filter-visible`:return`filter(new ${i}.FilterOptions().setVisible(${n===`true`?`true`:`false`}))`;case`role`:let e=[];j(r.name)?e.push(`.setName(${this.regexToString(r.name)})`):typeof r.name==`string`&&e.push(`.setName(${this.quote(r.name)})`),j(r.description)?e.push(`.setDescription(${this.regexToString(r.description)})`):typeof r.description==`string`&&e.push(`.setDescription(${this.quote(r.description)})`),r.exact&&(typeof r.name==`string`||typeof r.description==`string`)&&e.push(`.setExact(true)`);for(let{name:t,value:n}of r.attrs)e.push(`.set${Tt(t)}(${typeof n==`string`?this.quote(n):n})`);let a=e.length?`, new ${i}.GetByRoleOptions()${e.join(``)}`:``;return`getByRole(AriaRole.${Et(n).toUpperCase()}${a})`;case`has-text`:return`filter(new ${i}.FilterOptions().setHasText(${this.toHasText(n)}))`;case`has-not-text`:return`filter(new ${i}.FilterOptions().setHasNotText(${this.toHasText(n)}))`;case`has`:return`filter(new ${i}.FilterOptions().setHas(${n}))`;case`hasNot`:return`filter(new ${i}.FilterOptions().setHasNot(${n}))`;case`and`:return`and(${n})`;case`or`:return`or(${n})`;case`chain`:return`locator(${n})`;case`test-id`:return`getByTestId(${this.toTestIdValue(n)})`;case`text`:return this.toCallWithExact(i,`getByText`,n,!!r.exact);case`alt`:return this.toCallWithExact(i,`getByAltText`,n,!!r.exact);case`placeholder`:return this.toCallWithExact(i,`getByPlaceholder`,n,!!r.exact);case`label`:return this.toCallWithExact(i,`getByLabel`,n,!!r.exact);case`title`:return this.toCallWithExact(i,`getByTitle`,n,!!r.exact);default:throw Error(`Unknown selector kind `+t)}}chainLocators(e){return e.join(`.`)}regexToString(e){let t=Yt(e,`Pattern`,Jt.java);return`Pattern.compile(${this.quote(jt(e.source))}${t})`}toCallWithExact(e,t,n,r){return j(n)?`${t}(${this.regexToString(n)})`:r?`${t}(${this.quote(n)}, new ${e}.${Tt(t)}Options().setExact(true))`:`${t}(${this.quote(n)})`}toHasText(e){return j(e)?this.regexToString(e):this.quote(e)}toTestIdValue(e){return j(e)?this.regexToString(e):this.quote(e)}quote(e){return wt(e,`"`)}},csharp:class{generateLocator(e,t,n,r={}){switch(t){case`default`:return r.hasText===void 0?r.hasNotText===void 0?`Locator(${this.quote(n)})`:`Locator(${this.quote(n)}, new() { ${this.toHasNotText(r.hasNotText)} })`:`Locator(${this.quote(n)}, new() { ${this.toHasText(r.hasText)} })`;case`frame-locator`:return`FrameLocator(${this.quote(n)})`;case`frame`:return`ContentFrame`;case`any-frame`:return`FrameLocator()`;case`nth`:return`Nth(${n})`;case`first`:return`First`;case`last`:return`Last`;case`visible`:return`Visible`;case`filter-visible`:return`Filter(new() { Visible = ${n===`true`?`true`:`false`} })`;case`role`:let e=[];j(r.name)?e.push(`NameRegex = ${this.regexToString(r.name)}`):typeof r.name==`string`&&e.push(`Name = ${this.quote(r.name)}`),j(r.description)?e.push(`DescriptionRegex = ${this.regexToString(r.description)}`):typeof r.description==`string`&&e.push(`Description = ${this.quote(r.description)}`),r.exact&&(typeof r.name==`string`||typeof r.description==`string`)&&e.push(`Exact = true`);for(let{name:t,value:n}of r.attrs)e.push(`${Tt(t)} = ${typeof n==`string`?this.quote(n):n}`);let i=e.length?`, new() { ${e.join(`, `)} }`:``;return`GetByRole(AriaRole.${Tt(n)}${i})`;case`has-text`:return`Filter(new() { ${this.toHasText(n)} })`;case`has-not-text`:return`Filter(new() { ${this.toHasNotText(n)} })`;case`has`:return`Filter(new() { Has = ${n} })`;case`hasNot`:return`Filter(new() { HasNot = ${n} })`;case`and`:return`And(${n})`;case`or`:return`Or(${n})`;case`chain`:return`Locator(${n})`;case`test-id`:return`GetByTestId(${this.toTestIdValue(n)})`;case`text`:return this.toCallWithExact(`GetByText`,n,!!r.exact);case`alt`:return this.toCallWithExact(`GetByAltText`,n,!!r.exact);case`placeholder`:return this.toCallWithExact(`GetByPlaceholder`,n,!!r.exact);case`label`:return this.toCallWithExact(`GetByLabel`,n,!!r.exact);case`title`:return this.toCallWithExact(`GetByTitle`,n,!!r.exact);default:throw Error(`Unknown selector kind `+t)}}chainLocators(e){return e.join(`.`)}regexToString(e){let t=Yt(e,`RegexOptions`,Jt.csharp);return`new Regex(${this.quote(jt(e.source))}${t})`}toCallWithExact(e,t,n){return j(t)?`${e}(${this.regexToString(t)})`:n?`${e}(${this.quote(t)}, new() { Exact = true })`:`${e}(${this.quote(t)})`}toHasText(e){return j(e)?`HasTextRegex = ${this.regexToString(e)}`:`HasText = ${this.quote(e)}`}toTestIdValue(e){return j(e)?this.regexToString(e):this.quote(e)}toHasNotText(e){return j(e)?`HasNotTextRegex = ${this.regexToString(e)}`:`HasNotText = ${this.quote(e)}`}quote(e){return wt(e,`"`)}},jsonl:class{generateLocator(e,t,n,r={}){return JSON.stringify({kind:t,body:n,options:r})}chainLocators(e){let t=e.map(e=>JSON.parse(e));for(let e=0;e<t.length-1;++e){let n=t[e];for(;n.next;)n=n.next;n.next=t[e+1]}return JSON.stringify(t[0])}}},Jt={python:{i:`IGNORECASE`,m:`MULTILINE`,s:`DOTALL`},java:{i:`CASE_INSENSITIVE`,m:`MULTILINE`,s:`DOTALL`},csharp:{i:`IgnoreCase`,m:`Multiline`,s:`Singleline`}};function Yt(e,t,n){let r=[...e.flags].filter(e=>e in n).map(e=>`${t}.${n[e]}`);return r.length?`, ${r.join(` | `)}`:``}function j(e){return e instanceof RegExp}function Xt(e,t,n){return Zt(e,t,n)?.replaceAll(`
12
+ `,`\\n`)}function Zt(e,t,n){if(e)for(let r of t.split(`|`)){if(r===`url`)try{let t=new URL(e[r]);return t.protocol===`data:`?t.protocol:[`about:`,`chrome:`,`edge:`].includes(t.protocol)?e[r]:t.host+t.pathname+t.search}catch{if(e[r]!==void 0)return e[r]}if(r===`timeNumber`&&e[r]!==void 0)return new Date(e[r]).toString();let t=Qt(e,r);if(t!==void 0)return r===`selector`||r.endsWith(`.selector`)?Bt(n??`javascript`,t):t}}function Qt(e,t){let n=t.split(`.`),r=e;for(let e of n){if(typeof r!=`object`||!r)return;r=r[e]}if(r!==void 0)return String(r)}function $t(e,t){return(e.title??O(e)?.title??e.method).replace(/\{([^}]+)\}/g,(n,r)=>Xt(e.params,r,t)??n)}function en(e,t){let n=e.subtitle??O(e)?.subtitle;if(n===void 0)return;let r=!0,i=n.replace(/\{([^}]+)\}/g,(n,i)=>{let a=Xt(e.params,i,t);return a===void 0&&(r=!1),a??n});return r?i:void 0}function tn(e,t){let n=$t(e,t),r=en(e,t);return r?`${n} ${r}`:n}function nn(e){return O(e)?.group}var rn=Symbol(`prevByEndTime`),an=Symbol(`nextByStartTime`);function on(e){return e.pageref??e._serviceWorkerRef??e._apiRequestRef}var sn=class{constructor(e,t){this.resourceOwnerRefToTitle=new Map,this._eventsForAction=new Map,this._screenshots=new Map,this._ariaSnapshots=new Map,this._domSnapshots=new Set;let n=t.find(e=>e.origin===`library`);this.traceUri=e,this.browserName=n?.browserName||``,this.sdkLanguage=n?.sdkLanguage,this.channel=n?.channel,this.testIdAttributeName=n?.testIdAttributeName,this.platform=n?.platform||``,this.playwrightVersion=t.find(e=>e.playwrightVersion)?.playwrightVersion,this.title=n?.title||``,this.options=n?.options||{},this.testTimeout=t.find(e=>e.origin===`testRunner`)?.testTimeout,this.annotations=t.find(e=>e.origin===`testRunner`)?.annotations,this.actions=cn(t),this.pages=[].concat(...t.map(e=>e.pages)),this.videos=[],this.wallTime=t.map(e=>e.wallTime).reduce((e,t)=>Math.min(e||Number.MAX_VALUE,t),Number.MAX_VALUE),this.startTime=t.map(e=>e.startTime).reduce((e,t)=>Math.min(e,t),Number.MAX_VALUE),this.endTime=t.map(e=>e.endTime).reduce((e,t)=>Math.max(e,t),Number.MIN_VALUE),this.events=[].concat(...t.map(e=>e.events)),this.stdio=[].concat(...t.map(e=>e.stdio)),this.errors=[].concat(...t.map(e=>e.errors)),this.hasSource=t.some(e=>e.hasSource),this.hasStepData=t.some(e=>e.origin===`testRunner`),this.resources=[];for(let e=0;e<t.length;++e)for(let n of t[e].resources)this.resources.push({...n,id:`${on(n)??e}-${n.startedDateTime}-${n.request.url}`});for(let e of t){for(let t of e.screenshots||[])this._screenshots.set(`${t.callId}/${t.phase}`,t);for(let t of e.ariaSnapshots||[])this._ariaSnapshots.set(`${t.callId}/${t.phase}`,t);for(let t of e.domSnapshots||[])this._domSnapshots.add(`${t.callId}/${t.phase}`);this.videos.push(...e.videos||[])}this.hasDomSnapshots=!!this._domSnapshots.size,this.hasAriaSnapshots=!!this._screenshots.size||!!this._ariaSnapshots.size,this.attachments=this.actions.flatMap(t=>t.attachments?.map(n=>({...n,callId:t.callId,traceUri:e}))??[]),this.visibleAttachments=this.attachments.filter(e=>!e.name.startsWith(`_`)),this.pages.forEach((e,t)=>this.resourceOwnerRefToTitle.set(e.pageId,`page#`+(t+1))),this.events.sort((e,t)=>e.time-t.time),this.resources.sort((e,t)=>e._monotonicTime-t._monotonicTime);let r=0,i=0;for(let e of this.resources)e._serviceWorkerRef&&!this.resourceOwnerRefToTitle.has(e._serviceWorkerRef)&&this.resourceOwnerRefToTitle.set(e._serviceWorkerRef,`service-worker#${++r}`),e._apiRequestRef&&!this.resourceOwnerRefToTitle.has(e._apiRequestRef)&&this.resourceOwnerRefToTitle.set(e._apiRequestRef,`api#${++i}`);this.errorDescriptors=this.hasStepData?this._errorDescriptorsFromTestRunner():this._errorDescriptorsFromActions(),this.sources=mn(this.actions,this.errorDescriptors),this.actionCounters=new Map;for(let e of this.actions)e.group=e.group??nn({type:e.class,method:e.method}),e.group&&this.actionCounters.set(e.group,1+(this.actionCounters.get(e.group)||0))}createRelativeUrl(e){let t=new URL(`http://localhost/`+e);return t.searchParams.set(`trace`,this.traceUri),t.toString().substring(17)}failedAction(){return this.actions.findLast(e=>e.error)}screenshotForCall(e,t){return this._screenshots.get(`${e}/${t}`)}hasDomSnapshotForCall(e,t){return this._domSnapshots.has(`${e}/${t}`)}ariaSnapshotForCall(e,t){return this._ariaSnapshots.get(`${e}/${t}`)}eventsForAction(e){let t=this._eventsForAction.get(e);if(t)return t;let n=pn(e);for(;n&&n.class===`Route`;)n=pn(n);return t=this.events.filter(t=>t.time>=e.startTime&&(!n||t.time<n.startTime)),this._eventsForAction.set(e,t),t}stats(e){let t=0,n=0;for(let r of this.eventsForAction(e)){if(r.type===`console`){let e=r.messageType;e===`warning`?++n:e===`error`&&++t}r.type===`event`&&r.method===`pageError`&&++t}return{errors:t,warnings:n}}filteredActions(e){let t=new Set(e);return this.actions.filter(e=>!e.group||t.has(e.group))}renderActionTree(e){let{rootItem:t}=dn(this.filteredActions(e??[])),n=[],r=(e,t)=>{let i=tn({...e.action,type:e.action.class});n.push(`${t}${i||e.id}`);for(let n of e.children)r(n,t+` `)};return t.children.forEach(e=>r(e,``)),n}_errorDescriptorsFromActions(){let e=[];for(let t of this.actions||[])t.error?.message&&e.push({action:t,stack:t.stack,message:t.error.message});return e}_errorDescriptorsFromTestRunner(){return this.errors.filter(e=>!!e.message).map((e,t)=>({stack:e.stack,message:e.message}))}};function cn(e){let t=ln(e);t.sort((e,t)=>t.parentId===e.callId?1:e.parentId===t.callId?-1:e.endTime-t.endTime);for(let e=1;e<t.length;++e)t[e][rn]=t[e-1];t.sort((e,t)=>t.parentId===e.callId?-1:e.parentId===t.callId?1:e.startTime-t.startTime);for(let e=0;e+1<t.length;++e)t[e][an]=t[e+1];return t}function ln(e){let t=new Map,n=e.filter(e=>e.origin===`library`),r=e.filter(e=>e.origin===`testRunner`);if(!r.length||!n.length)return e.map(e=>e.actions.map(e=>({...e}))).flat();let i=e=>e.wallTime-e.monotonicTime,a=r.find(e=>e.monotonicTime);for(let e of n)a&&e.monotonicTime&&un(e,i(e)-i(a));for(let e of n)for(let n of e.actions)t.set(n.callId,{...n});for(let e of r)for(let n of e.actions){let e=t.get(n.callId);if(!e){t.set(n.callId,{...n});continue}n.error&&(e.error=n.error),n.attachments&&(e.attachments=n.attachments),n.annotations&&(e.annotations=n.annotations),n.parentId&&(e.parentId=n.parentId),n.group&&(e.group=n.group),e.startTime=n.startTime,e.endTime=n.endTime}return[...t.values()]}function un(e,t){if(t){e.startTime+=t,e.endTime+=t,e.monotonicTime+=t;for(let n of e.actions)n.startTime&&(n.startTime+=t),n.endTime&&(n.endTime+=t);for(let n of e.events)n.time+=t;for(let n of e.stdio)n.timestamp+=t;for(let n of e.pages)for(let e of n.screencastFrames)e.timestamp+=t;for(let n of e.videos||[])n.timestamp+=t;for(let n of e.screenshots||[])n.timestamp+=t;for(let n of e.ariaSnapshots||[])n.timestamp+=t;for(let n of e.resources)n._monotonicTime&&(n._monotonicTime+=t)}}function dn(e){let t=new Map;for(let n of e)t.set(n.callId,{id:n.callId,parent:void 0,children:[],action:n});let n={action:{...hn},id:``,parent:void 0,children:[]};for(let e of t.values()){n.action.startTime=Math.min(n.action.startTime,e.action.startTime),n.action.endTime=Math.max(n.action.endTime,e.action.endTime);let r=e.action.parentId&&t.get(e.action.parentId)||n;r.children.push(e),e.parent=r}let r=e=>{for(let t of e.children)t.action.stack=t.action.stack??e.action.stack,r(t)};return r(n),{rootItem:n,itemMap:t}}function fn(e){return e[rn]}function pn(e){return e[an]}function mn(e,t){let n=new Map;for(let t of e)for(let e of t.stack||[]){let t=n.get(e.file);t||(t={errors:[],content:void 0},n.set(e.file,t))}for(let e of t){let{action:t,stack:r,message:i}=e;!t||!r||n.get(r[0].file)?.errors.push({line:r[0].line||0,message:i})}return n}var hn={type:`action`,callId:``,startTime:0,endTime:0,class:``,method:``,params:{},log:[]},gn=n((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),_n=n(((e,t)=>{t.exports=gn()})),M=_n(),vn=50,yn=({sidebarSize:e,sidebarHidden:t=!1,sidebarIsFirst:n=!1,orientation:r=`vertical`,minSidebarSize:i=vn,settingName:a,sidebar:s,main:l})=>{let u=Math.max(i,e)*window.devicePixelRatio,[d,p]=f(a?a+`.`+r+`:size`:void 0,u),[m,h]=f(a?a+`.`+r+`:size`:void 0,u),[g,_]=o.useState(null),[v,b]=c(),x;r===`vertical`?(x=m/window.devicePixelRatio,v&&v.height<x&&(x=v.height-10)):(x=d/window.devicePixelRatio,v&&v.width<x&&(x=v.width-10)),document.body.style.userSelect=g?`none`:`inherit`;let S={};return S=r===`vertical`?n?{top:g?0:x-4,bottom:g?0:void 0,height:g?`initial`:8}:{bottom:g?0:x-4,top:g?0:void 0,height:g?`initial`:8}:n?{left:g?0:x-4,right:g?0:void 0,width:g?`initial`:8}:{right:g?0:x-4,left:g?0:void 0,width:g?`initial`:8},(0,M.jsxs)(`div`,{className:y(`split-view`,r,n&&`sidebar-first`),ref:b,children:[(0,M.jsx)(`div`,{className:`split-view-main`,children:l}),!t&&(0,M.jsx)(`div`,{style:{flexBasis:x},className:`split-view-sidebar`,children:s}),!t&&(0,M.jsx)(`div`,{style:S,className:`split-view-resizer`,onMouseDown:e=>_({offset:r===`vertical`?e.clientY:e.clientX,size:x}),onMouseUp:()=>_(null),onMouseMove:e=>{if(!e.buttons)_(null);else if(g){let t=(r===`vertical`?e.clientY:e.clientX)-g.offset,a=n?g.size+t:g.size-t,o=e.target.parentElement.getBoundingClientRect(),s=Math.min(Math.max(i,a),(r===`vertical`?o.height:o.width)-i);r===`vertical`?h(s*window.devicePixelRatio):p(s*window.devicePixelRatio)}}})]})};function bn(e){if(e<0||!isFinite(e))return`-`;if(e===0)return`0ms`;if(e<1e3)return e.toFixed(0)+`ms`;let t=e/1e3;if(t<60)return t.toFixed(1)+`s`;let n=t/60;if(n<60)return n.toFixed(1)+`m`;let r=n/60;return r<24?r.toFixed(1)+`h`:(r/24).toFixed(1)+`d`}function xn(e){if(e<0||!isFinite(e))return`-`;if(e===0)return`0`;if(e<1e3)return e.toFixed(0);let t=e/1024;if(t<1e3)return t.toFixed(1)+`K`;let n=t/1024;return n<1e3?n.toFixed(1)+`M`:(n/1024).toFixed(1)+`G`}var Sn=new Map;function Cn({name:e,rootItem:t,render:n,title:r,icon:i,isError:a,isVisible:s,selectedItem:c,onAccepted:l,onSelected:u,onHighlighted:d,treeState:f,setTreeState:p,noItemsMessage:m,dataTestId:h,autoExpandDepth:g,revealSelectedKey:_}){let v=o.useMemo(()=>En(t,c,f.expandedItems,g||0,s),[t,c,f,g,s]),x=o.useRef(null),[S,C]=o.useState();o.useEffect(()=>{d?.(S)},[d,S]),o.useEffect(()=>{let t=x.current;if(!t)return;let n=()=>{Sn.set(e,t.scrollTop)};return t.addEventListener(`scroll`,n,{passive:!0}),()=>t.removeEventListener(`scroll`,n)},[e]),o.useEffect(()=>{x.current&&(x.current.scrollTop=Sn.get(e)||0)},[e]),o.useEffect(()=>{if(_===void 0)return;let e=x.current?.querySelector(`[aria-selected="true"]`);e&&b(e)},[_]);let w=o.useCallback(e=>{let{expanded:t}=v.get(e);if(t){for(let t=c;t;t=t.parent)if(t===e){u?.(e);break}f.expandedItems.set(e.id,!1)}else f.expandedItems.set(e.id,!0);p({...f})},[v,c,u,f,p]),ee=o.useCallback(e=>{let{expanded:t}=v.get(e),n=[e];for(;n.length;){let e=n.pop();n.push(...e.children),f.expandedItems.set(e.id,!t)}p({...f})},[v,f,p]);return(0,M.jsx)(`div`,{className:y(`tree-view vbox`,e+`-tree-view`),"data-testid":h||e+`-tree`,children:(0,M.jsxs)(`div`,{className:y(`tree-view-content`),role:v.size>0?`tree`:void 0,tabIndex:0,onKeyDown:e=>{if(c&&e.key===`Enter`&&e.target===e.currentTarget){l?.(c);return}if(e.key!==`ArrowDown`&&e.key!==`ArrowUp`&&e.key!==`ArrowLeft`&&e.key!==`ArrowRight`)return;if(e.stopPropagation(),e.preventDefault(),c&&e.key===`ArrowLeft`){let{expanded:e,parent:t}=v.get(c);e?(f.expandedItems.set(c.id,!1),p({...f})):t&&u?.(t);return}if(c&&e.key===`ArrowRight`){c.children.length&&(f.expandedItems.set(c.id,!0),p({...f}));return}let t=c;if(e.key===`ArrowDown`&&(c?t=v.get(c).next:v.size&&(t=[...v.keys()][0])),e.key===`ArrowUp`){if(c)t=v.get(c).prev;else if(v.size){let e=[...v.keys()];t=e[e.length-1]}}d?.(void 0),t&&u?.(t),C(void 0)},ref:x,children:[m&&v.size===0&&(0,M.jsx)(`div`,{className:`tree-view-empty`,children:m}),t.children.map(e=>v.get(e)&&(0,M.jsx)(wn,{item:e,treeItems:v,selectedItem:c,onSelected:u,onAccepted:l,isError:a,toggleExpanded:w,toggleSubtree:ee,highlightedItem:S,setHighlightedItem:C,render:n,icon:i,title:r},e.id))]})})}function wn({item:e,treeItems:t,selectedItem:n,onSelected:r,highlightedItem:i,setHighlightedItem:a,isError:s,onAccepted:c,toggleExpanded:l,toggleSubtree:u,render:d,title:f,icon:p}){let m=o.useId(),h=o.useRef(null);o.useEffect(()=>{n?.id===e.id&&h.current&&b(h.current)},[e.id,n?.id]);let g=t.get(e),_=g.depth,v=g.expanded,x=`codicon-blank`;typeof v==`boolean`&&(x=v?`codicon-chevron-down`:`codicon-chevron-right`);let S=d(e),C=v&&e.children.length?e.children:[],w=f?.(e),ee=p?.(e)||`codicon-blank`;return(0,M.jsxs)(`div`,{ref:h,role:`treeitem`,"aria-selected":e===n,"aria-expanded":v,"aria-controls":m,title:w,className:`vbox`,style:{flex:`none`},children:[(0,M.jsxs)(`div`,{onDoubleClick:()=>c?.(e),className:y(`tree-view-entry`,n===e&&`selected`,i===e&&`highlighted`,s?.(e)&&`error`),onClick:()=>r?.(e),onMouseEnter:()=>a(e),onMouseLeave:()=>a(void 0),children:[_?Array(_).fill(0).map((e,t)=>(0,M.jsx)(`div`,{className:`tree-view-indent`},`indent-`+t)):void 0,(0,M.jsx)(`div`,{"aria-hidden":`true`,className:`codicon `+x,style:{minWidth:16,marginRight:4},onDoubleClick:e=>{e.preventDefault(),e.stopPropagation()},onClick:t=>{t.stopPropagation(),t.preventDefault(),t.altKey?u(e):l(e)}}),p&&(0,M.jsx)(`div`,{className:`codicon `+ee,style:{minWidth:16,marginRight:4},"aria-label":`[`+ee.replace(`codicon`,`icon`)+`]`}),typeof S==`string`?(0,M.jsx)(`div`,{style:{textOverflow:`ellipsis`,overflow:`hidden`},children:S}):S]}),!!C.length&&(0,M.jsx)(`div`,{id:m,role:`group`,children:C.map(e=>t.get(e)&&(0,M.jsx)(wn,{item:e,treeItems:t,selectedItem:n,onSelected:r,onAccepted:c,isError:s,toggleExpanded:l,toggleSubtree:u,highlightedItem:i,setHighlightedItem:a,render:d,title:f,icon:p},e.id))})]})}function Tn(e,t,n){let r=n.get(e.id);if(r!==void 0)return r;let i=t(e),a=i===`if-needed`?e.children.some(e=>Tn(e,t,n)):i;return n.set(e.id,a),a}function En(e,t,n,r,i=()=>!0){let a=new Map;if(!Tn(e,i,a))return new Map;let o=new Map,s=new Set;for(let e=t?.parent;e;e=e.parent)s.add(e.id);let c=null,l=(t,u)=>{for(let d of t.children){if(!Tn(d,i,a))continue;let f=s.has(d.id)||n.get(d.id),p=r>u&&o.size<25&&f!==!1,m=d.children.length?f??p:void 0,h={depth:u,expanded:m,parent:e===t?null:t,next:null,prev:c};c&&(o.get(c).next=d),c=d,o.set(d,h),m&&l(d,u+1)}};return l(e,0),o}var Dn=o.createContext(void 0),On=()=>o.useContext(Dn),kn=o.forwardRef(function({children:e,title:t=``,icon:n,disabled:r=!1,toggled:i=!1,onClick:a=()=>{},style:s,testId:c,className:l,ariaLabel:u,errorBadge:d},f){let p=o.useId();return(0,M.jsxs)(`button`,{ref:f,className:y(l,`toolbar-button`,n,i&&`toggled`),onMouseDown:An,onClick:a,onDoubleClick:An,title:t,disabled:!!r,style:s,"data-testid":c,"aria-label":u||t,"aria-describedby":d?p:void 0,children:[n&&(0,M.jsx)(`span`,{className:`codicon codicon-${n}`,style:e?{marginRight:5}:{}}),e,d&&(0,M.jsx)(`span`,{id:p,className:`toolbar-button-error-badge`,title:d,"aria-label":d})]})}),An=e=>{e.stopPropagation(),e.preventDefault()};function jn(e){return e===`scheduled`?`codicon-clock`:e===`running`?`codicon-loading`:e===`failed`?`codicon-error`:e===`passed`?`codicon-check`:e===`skipped`?`codicon-circle-slash`:`codicon-circle-outline`}function Mn(e){return e===`scheduled`?`Pending`:e===`running`?`Running`:e===`failed`?`Failed`:e===`passed`?`Passed`:e===`skipped`?`Skipped`:`Did not run`}var Nn=Cn,Pn=({actions:e,selectedAction:t,selectedTime:n,setSelectedTime:r,treeState:i,setTreeState:a,sdkLanguage:s,onSelected:c,onHighlighted:l,revealConsole:u,revealActionAttachment:d,isLive:f,actionFilterText:p})=>{let m=On(),{rootItem:h,itemMap:g}=o.useMemo(()=>dn(e),[e]),{selectedItem:_}=o.useMemo(()=>({selectedItem:t?g.get(t.callId):void 0}),[g,t]),v=o.useCallback(e=>!!e.action.error?.message,[]),y=o.useCallback(e=>r({minimum:e.action.startTime,maximum:e.action.endTime}),[r]),b=o.useCallback(e=>{let t=!!d&&!!e.action.attachments?.length;return Fn(e.action,{model:m,sdkLanguage:s,revealConsole:u,revealActionAttachment:()=>d?.(e.action.callId),isLive:f,showDuration:!0,showBadges:!0,showAttachments:t})},[m,f,u,d,s]),x=o.useCallback(e=>{if(!(!n||!e.action||e.action.startTime<=n.maximum&&e.action.endTime>=n.minimum))return!1;if(!p)return!0;let{title:t,subtitle:r}=In(e.action,s);return(r?`${t} ${r}`:t).toLowerCase().includes(p.toLowerCase())?!0:`if-needed`},[n,p,s]),S=o.useCallback(e=>{c?.(e.action)},[c]),C=o.useCallback(e=>{l?.(e?.action)},[l]),[w,ee]=o.useState(),T=o.useCallback(()=>{r(void 0),ee(e=>(e??0)+1)},[r]);return(0,M.jsxs)(`div`,{className:`vbox action-list-container`,children:[n&&(0,M.jsx)(kn,{className:`action-list-show-all`,icon:`triangle-left`,onClick:T,children:`Show all`}),(0,M.jsx)(Nn,{name:`actions`,rootItem:h,treeState:i,setTreeState:a,selectedItem:_,onSelected:S,onHighlighted:C,onAccepted:y,isError:v,isVisible:x,render:b,autoExpandDepth:p?.trim()?5:0,revealSelectedKey:w})]})},Fn=(e,t)=>{let{model:n,sdkLanguage:r,revealConsole:i,revealActionAttachment:a,isLive:o,showDuration:s,showBadges:c,showAttachments:l}=t,{errors:u,warnings:d}=n?.stats(e)??{errors:0,warnings:0},f=[Ln(u,`error`),Ln(d,`warning`)].filter(Boolean).join(`, `),p=e.class===`Test`&&e.method===`test.step`&&e.annotations?.some(e=>e.type===`skip`),m=``;e.endTime?m=bn(e.endTime-e.startTime):e.error?m=`Timed out`:o||(m=`-`);let{elements:h,title:g,subtitle:_}=In(e,r);return(0,M.jsxs)(`div`,{className:`action-title vbox`,children:[(0,M.jsxs)(`div`,{className:`hbox`,children:[(0,M.jsx)(`span`,{className:`action-title-method`,title:g,children:h}),(s||c||l||p)&&(0,M.jsx)(`div`,{className:`spacer`}),l&&(0,M.jsx)(kn,{icon:`attach`,title:`Open Attachment`,onClick:()=>a?.()}),s&&!p&&(0,M.jsx)(`div`,{className:`action-duration`,children:m||(0,M.jsx)(`span`,{className:`codicon codicon-loading`})}),p&&(0,M.jsx)(`span`,{className:y(`action-skipped`,`codicon`,jn(`skipped`)),title:`skipped`}),c&&!!f&&(0,M.jsxs)(kn,{className:`action-icons`,title:`Reveal console`,ariaLabel:`Reveal console, ${f}`,onClick:()=>i?.(),children:[!!u&&(0,M.jsxs)(`span`,{className:`action-icon`,children:[(0,M.jsx)(`span`,{className:`codicon codicon-error`}),(0,M.jsx)(`span`,{className:`action-icon-value`,children:u})]}),!!d&&(0,M.jsxs)(`span`,{className:`action-icon`,children:[(0,M.jsx)(`span`,{className:`codicon codicon-warning`}),(0,M.jsx)(`span`,{className:`action-icon-value`,children:d})]})]})]}),_&&(0,M.jsx)(`div`,{className:`action-title-subtitle`,title:_,children:_})]})};function In(e,t){let n=e.title??O({type:e.class,method:e.method})?.title??e.method;n=n.replace(/\n/g,` `);let r=[],i=[],a=0,o=/\{([^}]+)\}/g,s;for(;(s=o.exec(n))!==null;){let[o,c]=s,l=n.slice(a,s.index);r.push(l),i.push(l);let u=Xt(e.params,c,t);u===void 0?(r.push(o),i.push(o)):s.index===0?(r.push(u),i.push(u)):(r.push((0,M.jsx)(`span`,{className:`action-title-param`,children:u},r.length)),i.push(u)),a=s.index+o.length}if(a<n.length){let e=n.slice(a);r.push(e),i.push(e)}let c=en({type:e.class,method:e.method,params:e.params,subtitle:e.subtitle},t);return{elements:r,title:i.join(``),subtitle:c}}function Ln(e,t){return e?`${e} ${t}${e===1?``:`s`}`:``}var Rn=({value:e,description:t})=>{let[n,r]=o.useState(`copy`),i=o.useCallback(()=>{(typeof e==`function`?e():Promise.resolve(e)).then(e=>{navigator.clipboard.writeText(e).then(()=>{r(`check`),setTimeout(()=>{r(`copy`)},3e3)},()=>{r(`close`)})},()=>{r(`close`)})},[e]);return(0,M.jsx)(kn,{title:t||`Copy`,icon:n,onClick:i})},zn=({value:e,description:t,copiedDescription:n=t,style:r})=>{let[i,a]=o.useState(!1);return(0,M.jsx)(kn,{style:r,title:t,onClick:o.useCallback(async()=>{let t=typeof e==`function`?await e():e;await navigator.clipboard.writeText(t),a(!0),setTimeout(()=>a(!1),3e3)},[e]),className:`copy-to-clipboard-text-button`,children:i?n:t})},Bn=({text:e})=>(0,M.jsx)(`div`,{className:`fill`,style:{display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:24,fontWeight:`bold`,opacity:.5},children:e}),Vn=({action:e,startTimeOffset:t,sdkLanguage:n})=>{let r=o.useMemo(()=>Object.keys(e?.params??{}).filter(e=>e!==`info`),[e]);if(!e)return(0,M.jsx)(Bn,{text:`No action selected`});let i=bn(e.startTime-t),{title:a,subtitle:s}=In(e,n);return(0,M.jsxs)(`div`,{className:`call-tab`,children:[(0,M.jsx)(`div`,{className:`call-line`,children:s?`${a} ${s}`:a}),(0,M.jsx)(`div`,{className:`call-section`,children:`Time`}),Un({name:`start`,type:`literal`,text:i}),Un({name:`duration`,type:`literal`,text:Hn(e)}),!!r.length&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`call-section`,children:`Parameters`}),r.map(t=>Un(Wn(e,t,e.params[t],n)))]}),!!e.result&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`call-section`,children:`Return value`}),Object.keys(e.result).map(t=>Un(Wn(e,t,e.result[t],n)))]})]})};function Hn(e){return e.endTime?bn(e.endTime-e.startTime):e.error?`Timed Out`:`Running`}function Un(e){let t=e.text;return t.length>1e3&&(t=t.slice(0,1e3)+`…`),t=t.replace(/\n/g,`↵`),e.type===`string`&&(t=`"${t}"`),(0,M.jsxs)(`div`,{className:`call-line`,children:[e.name,`:`,(0,M.jsx)(`span`,{className:y(`call-value`,e.type),title:t,children:t}),[`literal`,`string`,`number`,`object`,`locator`].includes(e.type)&&(0,M.jsx)(Rn,{value:e.text})]},e.name)}function Wn(e,t,n,r){let i=e.method.includes(`eval`)||e.method===`waitForFunction`;if(t===`files`)return{text:`<files>`,type:`string`,name:t};if((t===`eventInit`||t===`expectedValue`||t===`arg`&&i)&&(n=Gn(n.value,Array(10).fill({handle:`<handle>`}))),t===`value`&&i&&(n=Gn(n,Array(10).fill({handle:`<handle>`}))),t===`received`&&e.method===`expect`){let e=n&&typeof n==`object`&&(`value`in n||`ariaSnapshot`in n)?n.value:n;n=e===void 0?void 0:Gn(e,Array(10).fill({handle:`<handle>`}))}if(t===`selector`)return{text:Ht(r||`javascript`,e.params.selector),type:`locator`,name:`locator`};let a=typeof n;return a!==`object`||n===null?{text:String(n),type:a,name:t}:n.guid?{text:`<handle>`,type:`handle`,name:t}:{text:JSON.stringify(n),type:`object`,name:t}}function Gn(e,t){if(e.n!==void 0)return e.n;if(e.s!==void 0)return e.s;if(e.b!==void 0)return e.b;if(e.v!==void 0){if(e.v===`undefined`)return;if(e.v===`null`)return null;if(e.v===`NaN`)return NaN;if(e.v===`Infinity`)return 1/0;if(e.v===`-Infinity`)return-1/0;if(e.v===`-0`)return-0}if(e.d!==void 0)return new Date(e.d);if(e.r!==void 0)return new RegExp(e.r.p,e.r.f);if(e.a!==void 0)return e.a.map(e=>Gn(e,t));if(e.o!==void 0){let n={};for(let{k:r,v:i}of e.o)n[r]=Gn(i,t);return n}return e.h===void 0||t===void 0?`<object>`:t[e.h]}var Kn=new Map;function qn({name:e,items:t=[],id:n,render:r,icon:i,isError:a,isWarning:s,isInfo:c,selectedItem:l,onAccepted:u,onSelected:d,onHighlighted:f,onIconClicked:p,noItemsMessage:m,dataTestId:h,notSelectable:g,ariaLabel:_}){let v=o.useRef(null),[x,S]=o.useState();return o.useEffect(()=>{f?.(x)},[f,x]),o.useEffect(()=>{let t=v.current;if(!t)return;let n=()=>{Kn.set(e,t.scrollTop)};return t.addEventListener(`scroll`,n,{passive:!0}),()=>t.removeEventListener(`scroll`,n)},[e]),o.useEffect(()=>{v.current&&(v.current.scrollTop=Kn.get(e)||0)},[e]),(0,M.jsx)(`div`,{className:y(`list-view vbox`,e+`-list-view`),role:t.length>0?`listbox`:void 0,"aria-label":_,children:(0,M.jsxs)(`div`,{className:y(`list-view-content`,g&&`not-selectable`),tabIndex:0,onKeyDown:e=>{if(l&&e.key===`Enter`){u?.(l,t.indexOf(l));return}if(e.key!==`ArrowDown`&&e.key!==`ArrowUp`)return;e.stopPropagation(),e.preventDefault();let n=l?t.indexOf(l):-1,r=n;e.key===`ArrowDown`&&(r=n===-1?0:Math.min(n+1,t.length-1)),e.key===`ArrowUp`&&(r=n===-1?t.length-1:Math.max(n-1,0));let i=v.current?.children.item(r);b(i||void 0),f?.(void 0),d?.(t[r],r),S(void 0)},ref:v,children:[m&&t.length===0&&(0,M.jsx)(`div`,{className:`list-view-empty`,children:m}),t.map((e,t)=>{let o=r(e,t);return(0,M.jsxs)(`div`,{onDoubleClick:()=>u?.(e,t),role:`option`,className:y(`list-view-entry`,l===e&&`selected`,!g&&x===e&&`highlighted`,a?.(e,t)&&`error`,s?.(e,t)&&`warning`,c?.(e,t)&&`info`),"aria-selected":l===e,onClick:()=>d?.(e,t),onMouseEnter:()=>S(e),onMouseLeave:()=>S(void 0),children:[i&&(0,M.jsx)(`div`,{className:`codicon `+(i(e,t)||`codicon-blank`),style:{minWidth:16,marginRight:4},onDoubleClick:e=>{e.preventDefault(),e.stopPropagation()},onClick:n=>{n.stopPropagation(),n.preventDefault(),p?.(e,t)}}),typeof o==`string`?(0,M.jsx)(`div`,{style:{textOverflow:`ellipsis`,overflow:`hidden`},children:o}):o]},n?.(e,t)||t)})]})})}var Jn=qn,Yn=({action:e,isLive:t})=>{let n=On(),r=o.useMemo(()=>{if(!e||!e.log.length)return[];let r=e.log,i=n?(n.wallTime??0)-n.startTime:0,a=[];for(let n=0;n<r.length;++n){let o=``;if(r[n].time!==-1){let a=r[n]?.time;o=n+1<r.length?bn(r[n+1].time-a):e.endTime>0?bn(e.endTime-a):t?bn(Date.now()-i-a):`-`}a.push({message:r[n].message,time:o})}return a},[n,e,t]);return r.length?(0,M.jsx)(Jn,{name:`log`,ariaLabel:`Log entries`,items:r,render:e=>(0,M.jsxs)(`div`,{className:`log-list-item`,children:[(0,M.jsx)(`span`,{className:`log-list-duration`,children:e.time}),e.message]}),notSelectable:!0}):(0,M.jsx)(Bn,{text:`No log entries`})};function Xn(e,t){let n=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,r=[],i,a={},o=!1,s=t?.fg,c=t?.bg;for(;(i=n.exec(e))!==null;){let[,,e,,n]=i;if(e)for(let n of e.split(`;`)){let e=+n;switch(e){case 0:a={};break;case 1:a[`font-weight`]=`bold`;break;case 2:a.opacity=`0.8`;break;case 3:a[`font-style`]=`italic`;break;case 4:a[`text-decoration`]=`underline`;break;case 7:o=!0;break;case 8:a.display=`none`;break;case 9:a[`text-decoration`]=`line-through`;break;case 22:delete a[`font-weight`],delete a[`font-style`],delete a.opacity,delete a[`text-decoration`];break;case 23:delete a[`font-weight`],delete a[`font-style`],delete a.opacity;break;case 24:delete a[`text-decoration`];break;case 27:o=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:s=Zn[e-30];break;case 39:s=t?.fg;break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:c=Zn[e-40];break;case 49:c=t?.bg;break;case 53:a[`text-decoration`]=`overline`;break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:s=Qn[e-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:c=Qn[e-100];break}}else if(n){let e={...a},t=o?c:s;t!==void 0&&(e.color=t),o&&s&&(e[`background-color`]=s),r.push(`<span style="${er(e)}">${$n(n)}</span>`)}}return r.join(``)}var Zn={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)`},Qn={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 $n(e){return e.replace(/[&"<>]/g,e=>({"&":`&amp;`,'"':`&quot;`,"<":`&lt;`,">":`&gt;`})[e])}function er(e){return Object.entries(e).map(([e,t])=>`${e}: ${t}`).join(`; `)}var tr=({error:e})=>(0,M.jsx)(`div`,{className:`error-message`,dangerouslySetInnerHTML:{__html:o.useMemo(()=>Xn(e,{bg:`var(--vscode-editor-background)`,fg:`var(--vscode-editor-foreground)`}),[e])||``}}),nr=({cursor:e,onPaneMouseMove:t,onPaneMouseUp:n,onPaneDoubleClick:r})=>(o.useEffect(()=>{let i=document.createElement(`div`);return i.style.position=`fixed`,i.style.top=`0`,i.style.right=`0`,i.style.bottom=`0`,i.style.left=`0`,i.style.zIndex=`9999`,i.style.cursor=e,document.body.appendChild(i),t&&i.addEventListener(`mousemove`,t),n&&i.addEventListener(`mouseup`,n),r&&document.body.addEventListener(`dblclick`,r),()=>{t&&i.removeEventListener(`mousemove`,t),n&&i.removeEventListener(`mouseup`,n),r&&document.body.removeEventListener(`dblclick`,r),document.body.removeChild(i)}},[e,t,n,r]),(0,M.jsx)(M.Fragment,{})),rr={position:`absolute`,top:0,right:0,bottom:0,left:0},ir=({orientation:e,offsets:t,setOffsets:n,resizerColor:r,resizerWidth:i,minColumnWidth:a})=>{let s=a||0,[l,u]=o.useState(null),[d,f]=c(),p={position:`absolute`,right:e===`horizontal`?void 0:0,bottom:e===`horizontal`?0:void 0,width:e===`horizontal`?7:void 0,height:e===`horizontal`?void 0:7,borderTopWidth:e===`horizontal`?void 0:(7-i)/2,borderRightWidth:e===`horizontal`?(7-i)/2:void 0,borderBottomWidth:e===`horizontal`?void 0:(7-i)/2,borderLeftWidth:e===`horizontal`?(7-i)/2:void 0,borderColor:`transparent`,borderStyle:`solid`,cursor:e===`horizontal`?`ew-resize`:`ns-resize`};return(0,M.jsxs)(`div`,{style:{position:`absolute`,top:0,right:0,bottom:0,left:-(7-i)/2,zIndex:100,pointerEvents:`none`},ref:f,children:[!!l&&(0,M.jsx)(nr,{cursor:e===`horizontal`?`ew-resize`:`ns-resize`,onPaneMouseUp:()=>u(null),onPaneMouseMove:r=>{if(!r.buttons)u(null);else if(l){let i=e===`horizontal`?r.clientX-l.clientX:r.clientY-l.clientY,a=l.offset+i,o=l.index>0?t[l.index-1]:0,c=e===`horizontal`?d.width:d.height,u=Math.min(Math.max(o+s,a),c-s)-t[l.index];for(let e=l.index;e<t.length;++e)t[e]=t[e]+u;n([...t])}}}),t.map((t,n)=>(0,M.jsx)(`div`,{style:{...p,top:e===`horizontal`?0:t,left:e===`horizontal`?t:0,pointerEvents:`initial`},onMouseDown:e=>u({clientX:e.clientX,clientY:e.clientY,offset:t,index:n}),children:(0,M.jsx)(`div`,{style:{...rr,background:r}})},n))]})};async function ar(e){let t=new Image;return e&&(t.src=e,await new Promise((e,n)=>{t.onload=e,t.onerror=e})),t}var or={backgroundImage:`linear-gradient(45deg, #80808020 25%, transparent 25%),
13
+ linear-gradient(-45deg, #80808020 25%, transparent 25%),
14
+ linear-gradient(45deg, transparent 75%, #80808020 75%),
15
+ linear-gradient(-45deg, transparent 75%, #80808020 75%)`,backgroundSize:`20px 20px`,backgroundPosition:`0 0, 0 10px, 10px -10px, -10px 0px`,boxShadow:`rgb(0 0 0 / 10%) 0px 1.8px 1.9px,
16
+ rgb(0 0 0 / 15%) 0px 6.1px 6.3px,
17
+ rgb(0 0 0 / 10%) 0px -2px 4px,
18
+ rgb(0 0 0 / 15%) 0px -6.1px 12px,
19
+ rgb(0 0 0 / 25%) 0px 6px 12px`},sr=({diff:e,noTargetBlank:t,hideDetails:n})=>{let[r,i]=o.useState(e.diff?`diff`:`actual`),[a,s]=o.useState(!1),[l,u]=o.useState(null),[d,f]=o.useState(`Expected`),[p,m]=o.useState(null),[h,g]=o.useState(null),[_,v]=c();o.useEffect(()=>{(async()=>{u(await ar(e.expected?.attachment.path)),f(e.expected?.title||`Expected`),m(await ar(e.actual?.attachment.path)),g(await ar(e.diff?.attachment.path))})()},[e]);let y=l&&p&&h,b=y?Math.max(l.naturalWidth,p.naturalWidth,200):500,x=y?Math.max(l.naturalHeight,p.naturalHeight,200):500,S=Math.min(1,(_.width-30)/b),C=Math.min(1,(_.width-50)/b/2),w=b*S,ee=x*S,T=(e,t)=>(0,M.jsx)(`button`,{role:`tab`,"aria-selected":r===e,className:`image-diff-mode`,style:{fontWeight:r===e?600:`initial`},onClick:()=>i(e),children:t});return(0,M.jsx)(`div`,{"data-testid":`test-result-image-mismatch`,style:{display:`flex`,flexDirection:`column`,alignItems:`center`,flex:`auto`},ref:v,children:y&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(`div`,{role:`tablist`,"data-testid":`test-result-image-mismatch-tabs`,style:{display:`flex`,margin:`10px 0 20px`},children:[e.diff&&T(`diff`,`Diff`),T(`actual`,`Actual`),T(`expected`,d),T(`sxs`,`Side by side`),T(`slider`,`Slider`)]}),(0,M.jsxs)(`div`,{style:{display:`flex`,justifyContent:`center`,flex:`auto`,minHeight:ee+60},children:[e.diff&&r===`diff`&&(0,M.jsx)(lr,{image:h,alt:`Diff`,hideSize:n,canvasWidth:w,canvasHeight:ee,scale:S}),e.diff&&r===`actual`&&(0,M.jsx)(lr,{image:p,alt:`Actual`,hideSize:n,canvasWidth:w,canvasHeight:ee,scale:S}),e.diff&&r===`expected`&&(0,M.jsx)(lr,{image:l,alt:d,hideSize:n,canvasWidth:w,canvasHeight:ee,scale:S}),e.diff&&r===`slider`&&(0,M.jsx)(cr,{expectedImage:l,actualImage:p,hideSize:n,canvasWidth:w,canvasHeight:ee,scale:S,expectedTitle:d}),e.diff&&r===`sxs`&&(0,M.jsxs)(`div`,{style:{display:`flex`},children:[(0,M.jsx)(lr,{image:l,title:d,hideSize:n,canvasWidth:C*b,canvasHeight:C*x,scale:C}),(0,M.jsx)(lr,{image:a?h:p,title:a?`Diff`:`Actual`,onClick:()=>s(!a),hideSize:n,canvasWidth:C*b,canvasHeight:C*x,scale:C})]}),!e.diff&&r===`actual`&&(0,M.jsx)(lr,{image:p,title:`Actual`,hideSize:n,canvasWidth:w,canvasHeight:ee,scale:S}),!e.diff&&r===`expected`&&(0,M.jsx)(lr,{image:l,title:d,hideSize:n,canvasWidth:w,canvasHeight:ee,scale:S}),!e.diff&&r===`sxs`&&(0,M.jsxs)(`div`,{style:{display:`flex`},children:[(0,M.jsx)(lr,{image:l,title:d,canvasWidth:C*b,canvasHeight:C*x,scale:C}),(0,M.jsx)(lr,{image:p,title:`Actual`,canvasWidth:C*b,canvasHeight:C*x,scale:C})]})]}),!n&&(0,M.jsxs)(`div`,{style:{alignSelf:`start`,lineHeight:`18px`,marginLeft:`15px`},children:[(0,M.jsx)(`div`,{children:e.diff&&(0,M.jsx)(`a`,{target:`_blank`,href:e.diff.attachment.path,rel:`noreferrer`,children:e.diff.attachment.name})}),(0,M.jsx)(`div`,{children:(0,M.jsx)(`a`,{target:t?``:`_blank`,href:e.actual.attachment.path,rel:`noreferrer`,children:e.actual.attachment.name})}),(0,M.jsx)(`div`,{children:(0,M.jsx)(`a`,{target:t?``:`_blank`,href:e.expected.attachment.path,rel:`noreferrer`,children:e.expected.attachment.name})})]})]})})},cr=({expectedImage:e,actualImage:t,canvasWidth:n,canvasHeight:r,scale:i,expectedTitle:a,hideSize:s})=>{let c={position:`absolute`,top:0,left:0},[l,u]=o.useState(n/2),d=e.naturalWidth===t.naturalWidth&&e.naturalHeight===t.naturalHeight;return(0,M.jsxs)(`div`,{style:{flex:`none`,display:`flex`,alignItems:`center`,flexDirection:`column`,userSelect:`none`},children:[!s&&(0,M.jsxs)(`div`,{style:{margin:5},children:[!d&&(0,M.jsx)(`span`,{style:{flex:`none`,margin:`0 5px`},children:`Actual `}),!d&&(0,M.jsx)(`span`,{children:t.naturalWidth}),!d&&(0,M.jsx)(`span`,{style:{flex:`none`,margin:`0 5px`},children:`x`}),!d&&(0,M.jsx)(`span`,{children:t.naturalHeight}),!d&&(0,M.jsxs)(`span`,{style:{flex:`none`,margin:`0 5px 0 15px`},children:[a,` `]}),(0,M.jsx)(`span`,{children:e.naturalWidth}),(0,M.jsx)(`span`,{style:{flex:`none`,margin:`0 5px`},children:`x`}),(0,M.jsx)(`span`,{children:e.naturalHeight})]}),(0,M.jsxs)(`div`,{style:{position:`relative`,width:n,height:r,margin:15,...or},children:[(0,M.jsx)(ir,{orientation:`horizontal`,offsets:[l],setOffsets:e=>u(e[0]),resizerColor:`#57606a80`,resizerWidth:6}),(0,M.jsx)(`img`,{alt:a,style:{width:e.naturalWidth*i,height:e.naturalHeight*i},draggable:`false`,src:e.src}),(0,M.jsx)(`div`,{style:{...c,bottom:0,overflow:`hidden`,width:l,...or},children:(0,M.jsx)(`img`,{alt:`Actual`,style:{width:t.naturalWidth*i,height:t.naturalHeight*i},draggable:`false`,src:t.src})})]})]})},lr=({image:e,title:t,alt:n,hideSize:r,canvasWidth:i,canvasHeight:a,scale:o,onClick:s})=>(0,M.jsxs)(`div`,{style:{flex:`none`,display:`flex`,alignItems:`center`,flexDirection:`column`},children:[!r&&(0,M.jsxs)(`div`,{style:{margin:5},children:[t&&(0,M.jsx)(`span`,{style:{flex:`none`,margin:`0 5px`},children:t}),(0,M.jsx)(`span`,{children:e.naturalWidth}),(0,M.jsx)(`span`,{style:{flex:`none`,margin:`0 5px`},children:`x`}),(0,M.jsx)(`span`,{children:e.naturalHeight})]}),(0,M.jsx)(`div`,{style:{display:`flex`,flex:`none`,width:i,height:a,margin:15,...or},children:(0,M.jsx)(`img`,{width:e.naturalWidth*o,height:e.naturalHeight*o,alt:t||n,style:{cursor:s?`pointer`:`initial`},draggable:`false`,src:e.src,onClick:s})})]}),ur=`modulepreload`,dr=function(e,t){return new URL(e,t).href},fr={},pr=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=dr(t,n),t=s(t),t in fr)return;fr[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:ur,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},mr=({text:e,highlighter:t,mimeType:n,linkify:r,readOnly:i,highlight:a,revealLine:s,lineNumbers:l,isFocused:u,focusOnChange:d,wrapLines:f,onChange:p,dataTestId:m,placeholder:h})=>{let[g,_]=c(),[v]=o.useState(pr(()=>import(`./codeMirrorModule-DNqxPF-E.js`).then(e=>e.default),__vite__mapDeps([0,1,2]),import.meta.url)),y=o.useRef(null),[b,x]=o.useState();return o.useEffect(()=>{(async()=>{let e=await v;_r(e);let a=_.current;if(!a)return;let o=yr(t)||vr(n)||(r?`text/linkified`:``);if(y.current&&o===y.current.cm.getOption(`mode`)&&!!i===y.current.cm.getOption(`readOnly`)&&l===y.current.cm.getOption(`lineNumbers`)&&f===y.current.cm.getOption(`lineWrapping`)&&h===y.current.cm.getOption(`placeholder`))return;y.current?.cm?.getWrapperElement().remove();let s=e(a,{value:``,mode:o,readOnly:!!i,lineNumbers:l,lineWrapping:f,placeholder:h,matchBrackets:!0,autoCloseBrackets:!0,extraKeys:{"Ctrl-F":`findPersistent`,"Cmd-F":`findPersistent`,Tab:!1,"Shift-Tab":!1}});return y.current={cm:s},u&&s.focus(),x(s),s})()},[v,b,_,t,n,r,l,f,i,u,h]),o.useEffect(()=>{y.current&&y.current.cm.setSize(g.width,g.height)},[g]),o.useLayoutEffect(()=>{if(!b)return;let t=!1;if(b.getValue()!==e&&(b.setValue(e),t=!0,d&&(b.execCommand(`selectAll`),b.focus())),t||JSON.stringify(a)!==JSON.stringify(y.current.highlight)){for(let e of y.current.highlight||[])b.removeLineClass(e.line-1,`wrap`);for(let e of a||[])b.addLineClass(e.line-1,`wrap`,`source-line-${e.type}`);for(let e of y.current.widgets||[])b.removeLineWidget(e);for(let e of y.current.markers||[])e.clear();let e=[],t=[];for(let n of a||[]){if(n.type!==`subtle-error`&&n.type!==`error`)continue;let r=y.current?.cm.getLine(n.line-1);if(r){let e={};e.title=n.message||``,t.push(b.markText({line:n.line-1,ch:0},{line:n.line-1,ch:n.column||r.length},{className:`source-line-error-underline`,attributes:e}))}if(n.type===`error`){let t=document.createElement(`div`);t.innerHTML=Xn(n.message||``,{bg:`var(--vscode-inputValidation-errorBackground)`,fg:`var(--vscode-editor-foreground)`}),t.className=`source-line-error-widget`,e.push(b.addLineWidget(n.line,t,{above:!0,coverGutter:!1}))}}y.current.highlight=a,y.current.widgets=e,y.current.markers=t}typeof s==`number`&&y.current.cm.lineCount()>=s&&b.scrollIntoView({line:Math.max(0,s-1),ch:0},50);let n;return p&&(n=()=>p(b.getValue()),b.on(`change`,n)),()=>{n&&b.off(`change`,n)}},[b,e,a,s,d,p]),(0,M.jsx)(`div`,{"data-testid":m,className:`cm-wrapper`,ref:_,onClick:hr})};function hr(e){if(!(e.target instanceof HTMLElement))return;let t;e.target.classList.contains(`cm-linkified`)?t=e.target.textContent:e.target.classList.contains(`cm-link`)&&e.target.nextElementSibling?.classList.contains(`cm-url`)&&(t=e.target.nextElementSibling.textContent.slice(1,-1)),t&&(e.preventDefault(),e.stopPropagation(),t.startsWith(`www.`)&&(t=`https://`+t),/^https?:\/\//i.test(t)&&window.open(t,`_blank`,`noopener,noreferrer`))}var gr=!1;function _r(e){gr||(gr=!0,e.defineSimpleMode(`text/linkified`,{start:[{regex:x,token:`linkified`}]}))}function vr(e){if(e){if(e.includes(`javascript`)||e.includes(`json`))return`javascript`;if(e.includes(`python`))return`python`;if(e.includes(`csharp`))return`text/x-csharp`;if(e.includes(`java`))return`text/x-java`;if(e.includes(`markdown`))return`markdown`;if(e.includes(`html`)||e.includes(`svg`))return`htmlmixed`;if(e.includes(`css`))return`css`}}function yr(e){if(e)return{javascript:`javascript`,jsonl:`javascript`,python:`python`,csharp:`text/x-csharp`,java:`text/x-java`,markdown:`markdown`,html:`htmlmixed`,css:`css`,yaml:`yaml`}[e]}function br(e){return!!e.match(/^(application\/json|application\/.*?\+json|text\/(x-)?json)(;\s*charset=.*)?$/)}function xr(e){return!!e.match(/^(application\/xml|application\/.*?\+xml|text\/xml)(;\s*charset=.*)?$/)}function Sr(e){return!!e.match(/^(text\/.*?|application\/(json|(x-)?javascript|xml.*?|ecmascript|graphql|x-www-form-urlencoded)|image\/svg(\+xml)?|application\/.*?(\+json|\+xml))(;\s*charset=.*)?$/)}var Cr=({title:e,children:t,setExpanded:n,expanded:r,expandOnTitleClick:i,titleSuffix:a,className:s})=>{let c=o.useId(),l=o.useId(),u=o.useCallback(()=>n(!r),[r,n]),d=(0,M.jsx)(`div`,{className:y(`codicon`,r?`codicon-chevron-down`:`codicon-chevron-right`),style:{color:`var(--vscode-foreground)`,marginLeft:`5px`}});return(0,M.jsxs)(`div`,{className:y(`expandable`,r&&`expanded`,s),children:[(0,M.jsxs)(`div`,{className:`expandable-title`,id:i?void 0:c,children:[i?(0,M.jsxs)(`button`,{id:c,"aria-expanded":r,"aria-controls":l,className:`expandable-title-button`,onClick:u,children:[d,e]}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`button`,{"aria-expanded":r,"aria-controls":l,"aria-label":r?`Collapse`:`Expand`,className:`expandable-title-button`,onClick:u,children:d}),e]}),a]}),r&&(0,M.jsx)(`div`,{id:l,"aria-labelledby":c,role:`region`,className:`expandable-content`,children:t})]})};function wr(e){let t=[],n=0,r;for(;(r=x.exec(e))!==null;){let i=e.substring(n,r.index);i&&t.push(i);let a=r[0];t.push(Tr(a)),n=r.index+a.length}let i=e.substring(n);return i&&t.push(i),t}function Tr(e){let t=e;return t.startsWith(`www.`)&&(t=`https://`+t),(0,M.jsx)(`a`,{href:t,target:`_blank`,rel:`noopener noreferrer`,children:e})}var Er=({attachment:e,reveal:t})=>{let n=On(),[r,i]=o.useState(!1),[a,s]=o.useState(null),[c,l]=o.useState(null),[u,d]=S(),f=o.useRef(null),p=Sr(e.contentType),m=!!e.file||!!e.path;o.useEffect(()=>{if(t)return f.current?.scrollIntoView({behavior:`smooth`}),d()},[t,d]),o.useEffect(()=>{r&&a===null&&c===null&&(l(`Loading ...`),fetch(Or(n,e)).then(e=>e.text()).then(e=>{s(e),l(null)}).catch(e=>{l(`Failed to load: `+e.message)}))},[n,r,a,c,e]);let h=o.useMemo(()=>{let e=a?a.split(`
20
+ `).length:0;return Math.min(Math.max(5,e),20)*20},[a]),g=(0,M.jsx)(`span`,{style:{marginLeft:5},ref:f,"aria-label":e.name,children:wr(e.name)}),_=m&&(0,M.jsx)(`a`,{style:{marginLeft:5},href:kr(n,e),children:`download`});return!p||!m?(0,M.jsxs)(`div`,{style:{marginLeft:20},children:[g,_]}):(0,M.jsxs)(`div`,{className:y(u&&`yellow-flash`),children:[(0,M.jsx)(Cr,{title:g,titleSuffix:_,expanded:r,setExpanded:i,expandOnTitleClick:!0,children:c&&(0,M.jsx)(`i`,{children:c})}),r&&a!==null&&(0,M.jsx)(`div`,{className:`vbox`,style:{height:h},children:(0,M.jsx)(mr,{text:a,readOnly:!0,mimeType:e.contentType,linkify:!0,lineNumbers:!0,wrapLines:!1})})]})},Dr=({revealedAttachmentCallId:e})=>{let t=On(),{diffMap:n,screenshots:r,attachments:i}=o.useMemo(()=>{let e=new Set(t?.visibleAttachments??[]),n=new Set,r=new Map;for(let t of e){if(!t.path&&!t.file)continue;let i=t.name.match(/^(.*)-(expected|actual|diff)\.png$/);if(i){let n=i[1],a=i[2],o=r.get(n)||{expected:void 0,actual:void 0,diff:void 0};o[a]=t,r.set(n,o),e.delete(t)}else t.contentType.startsWith(`image/`)&&(n.add(t),e.delete(t))}return{diffMap:r,attachments:e,screenshots:n}},[t]);return!n.size&&!r.size&&!i.size?(0,M.jsx)(Bn,{text:`No attachments`}):(0,M.jsxs)(`div`,{className:`attachments-tab`,children:[[...n.values()].map(({expected:e,actual:n,diff:r})=>(0,M.jsxs)(M.Fragment,{children:[e&&n&&(0,M.jsx)(`div`,{className:`attachments-section`,children:`Image diff`}),e&&n&&(0,M.jsx)(sr,{noTargetBlank:!0,diff:{name:`Image diff`,expected:{attachment:{...e,path:kr(t,e)},title:`Expected`},actual:{attachment:{...n,path:kr(t,n)}},diff:r?{attachment:{...r,path:kr(t,r)}}:void 0}})]})),r.size?(0,M.jsx)(`div`,{className:`attachments-section`,children:`Screenshots`}):void 0,[...r.values()].map((e,n)=>{let r=Or(t,e);return(0,M.jsxs)(`div`,{className:`attachment-item`,children:[(0,M.jsx)(`div`,{children:(0,M.jsx)(`img`,{draggable:`false`,src:r})}),(0,M.jsx)(`div`,{children:(0,M.jsx)(`a`,{target:`_blank`,href:r,rel:`noreferrer`,children:e.name})})]},`screenshot-${n}`)}),i.size?(0,M.jsx)(`div`,{className:`attachments-section`,children:`Attachments`}):void 0,[...i.values()].map((t,n)=>(0,M.jsx)(`div`,{className:`attachment-item`,children:(0,M.jsx)(Er,{attachment:t,reveal:e&&t.callId===e.callId?e:void 0})},Ar(t,n)))]})};function Or(e,t){return e&&t.file?e.createRelativeUrl(`file/${t.file}`):`file?path=${encodeURIComponent(t.path)}`}function kr(e,t){let n=t.contentType?`&dn=${encodeURIComponent(t.name)}`:``;return t.contentType&&(n+=`&dct=${encodeURIComponent(t.contentType)}`),Or(e,t)+n}function Ar(e,t){return t+`-`+(e.file?`file-`+e.file:`path-`+e.path)}var jr=({prompt:e})=>(0,M.jsx)(zn,{value:e,description:`Copy prompt`,copiedDescription:(0,M.jsxs)(M.Fragment,{children:[`Copied `,(0,M.jsx)(`span`,{className:`codicon codicon-copy`,style:{marginLeft:`5px`}})]}),style:{width:`120px`,justifyContent:`center`}});function Mr(e){return o.useMemo(()=>{if(!e)return{errors:new Map};let t=new Map;for(let n of e.errorDescriptors)t.set(n.message,n);return{errors:t}},[e])}function Nr({message:e,error:t,sdkLanguage:n,revealInSource:r}){let i,a,o=t.stack?.[0];return o&&(i=o.file.replace(/.*[/\\](.*)/,`$1`)+`:`+o.line,a=o.file+`:`+o.line),(0,M.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,overflowX:`clip`},children:[(0,M.jsxs)(`div`,{className:`hbox`,style:{alignItems:`center`,padding:`5px 10px`,minHeight:36,fontWeight:`bold`,color:`var(--vscode-errorForeground)`,flex:0},children:[t.action&&Fn(t.action,{sdkLanguage:n}),i&&(0,M.jsxs)(`div`,{className:`action-location`,children:[`@ `,(0,M.jsx)(`button`,{type:`button`,title:a,"aria-label":`Go to source: ${a}`,onClick:()=>r(t),children:i})]})]}),(0,M.jsx)(tr,{error:e})]})}var Pr=({errorsModel:e,sdkLanguage:t,revealInSource:n,wallTime:r,testRunMetadata:i})=>{let a=On(),o=s(async()=>{let e=a?.attachments.find(e=>e.name===`error-context`);if(!e)return;let t=await fetch(Or(a,e)).then(e=>e.text());if(t)return i?.gitDiff&&(t+=`
21
+
22
+ # Local changes
23
+
24
+ \`\`\`diff
25
+ `+i.gitDiff+"\n```"),t},[a,i],void 0);return e.errors.size?(0,M.jsxs)(`div`,{className:`fill`,style:{overflow:`auto`},children:[(0,M.jsx)(`span`,{style:{position:`absolute`,right:`5px`,top:`5px`,zIndex:1},children:o&&(0,M.jsx)(jr,{prompt:o})}),[...e.errors.entries()].map(([e,i])=>{let a=`error-${r}-${e}`;return(0,M.jsx)(Nr,{message:e,error:i,revealInSource:n,sdkLanguage:t},a)})]}):(0,M.jsx)(Bn,{text:`No errors`})},Fr=qn,Ir={log:{bg:`var(--vscode-editor-background)`,fg:`var(--vscode-editor-foreground)`},warning:{fg:`var(--vscode-list-warningForeground)`,bg:`var(--vscode-inputValidation-warningBackground)`},error:{fg:`var(--vscode-list-errorForeground)`,bg:`var(--vscode-inputValidation-errorBackground)`}};function Lr(e,t,n){let{entries:r}=o.useMemo(()=>{if(!e)return{entries:[]};let t=t=>t&&e.resourceOwnerRefToTitle.get(t)||``,r=[];function i(e){let t=r[r.length-1];t&&e.browserMessage?.bodyString===t.browserMessage?.bodyString&&e.browserMessage?.location===t.browserMessage?.location&&e.browserError===t.browserError&&e.nodeMessage?.html===t.nodeMessage?.html&&e.isError===t.isError&&e.isWarning===t.isWarning&&e.pageId===t.pageId&&e.timestamp-t.timestamp<1e3?t.repeat++:r.push({...e,repeat:1})}let a=[...e.events,...e.stdio].sort((e,t)=>(`time`in e?e.time:e.timestamp)-(`time`in t?t.time:t.timestamp));for(let e of a){if(e.type===`console`){if(n&&e.pageId!==n)continue;let r=e.messageType===`error`?Ir.error:e.messageType===`warning`?Ir.warning:Ir.log,a=e.args&&e.args.length?zr(e.args,r):Br(e.text,r),o=e.location.url,s=`${o?o.substring(o.lastIndexOf(`/`)+1):`<anonymous>`}:${e.location.lineNumber}`;i({browserMessage:{body:a,bodyString:e.text,location:s},isError:e.messageType===`error`,isWarning:e.messageType===`warning`,pageId:t(e.pageId),timestamp:e.time})}if(e.type===`event`&&e.method===`pageError`){if(n&&e.pageId!==n)continue;i({browserError:e.params.error,isError:!0,isWarning:!1,pageId:t(e.pageId),timestamp:e.time})}if(e.type===`stderr`||e.type===`stdout`){let t=``,n=e.type===`stderr`?Ir.error:Ir.log;e.text&&(t=Xn(e.text.trim(),n)||``),e.base64&&(t=Xn(atob(e.base64).trim(),n)||``),i({nodeMessage:{html:t},isError:e.type===`stderr`,isWarning:!1,pageId:``,timestamp:e.timestamp})}}return{entries:r}},[e,n]),i=o.useMemo(()=>t?r.filter(e=>e.timestamp>=t.minimum&&e.timestamp<=t.maximum):r,[r,t]),a=o.useMemo(()=>new Set(i.map(e=>e.pageId).filter(Boolean)).size>1,[i]);return{entries:i,hasMultiplePages:a,showSource:o.useMemo(()=>a||i.some(e=>!e.browserMessage&&!e.browserError),[i,a])}}var Rr=({consoleModel:e,boundaries:t,onEntryHovered:n,onAccepted:r})=>e.entries.length?(0,M.jsx)(`div`,{className:`console-tab`,children:(0,M.jsx)(Fr,{name:`console`,onAccepted:r,onHighlighted:e=>n?.(e?{minimum:e.timestamp,maximum:e.timestamp}:void 0),items:e.entries,isError:e=>e.isError,isWarning:e=>e.isWarning,render:n=>{let r=(0,M.jsx)(`span`,{className:`console-time`,children:bn(n.timestamp-t.minimum)}),i=!!(n.browserMessage||n.browserError),a=i?e.hasMultiplePages&&n.pageId||`page`:`test`,o=e.showSource?(0,M.jsx)(`span`,{className:`console-source`,title:i?`Browser message`:`Runner message`,children:a}):void 0,s,c,l,u,{browserMessage:d,browserError:f,nodeMessage:p}=n;if(d&&(s=d.location,c=d.body),f){let{error:e,value:t}=f;e?(c=e.message,u=e.stack):c=String(t)}return p&&(l=p.html),(0,M.jsxs)(`div`,{className:`console-line`,children:[r,o,s&&(0,M.jsx)(`span`,{className:`console-location`,children:s}),n.repeat>1&&(0,M.jsx)(`span`,{className:`console-repeat`,children:n.repeat}),c&&(0,M.jsx)(`span`,{className:`console-line-message`,children:c}),l&&(0,M.jsx)(`span`,{className:`console-line-message`,dangerouslySetInnerHTML:{__html:l}}),u&&(0,M.jsx)(`div`,{className:`console-stack`,children:u})]})}})}):(0,M.jsx)(Bn,{text:`No console entries`});function zr(e,t){if(e.length===1)return Br(e[0].preview,t);let n=typeof e[0].value==`string`&&e[0].value.includes(`%`),r=n?e[0].value:``,i=n?e.slice(1):e,a=0,o=/%([%sdifoOc])/g,s,c=[],l=[];c.push((0,M.jsx)(`span`,{children:l},c.length+1));let u=0;for(;(s=o.exec(r))!==null;){let e=r.substring(u,s.index);l.push((0,M.jsx)(`span`,{children:e},l.length+1)),u=s.index+2;let t=s[0][1];if(t===`%`)l.push((0,M.jsx)(`span`,{children:`%`},l.length+1));else if(t===`s`||t===`o`||t===`O`||t===`d`||t===`i`||t===`f`){let e=i[a++],t={};typeof e?.value!=`string`&&(t.color=`var(--vscode-debugTokenExpression-number)`),l.push((0,M.jsx)(`span`,{style:t,children:e?.preview||``},l.length+1))}else if(t===`c`){l=[];let e=i[a++],t=e?Vr(e.preview):{};c.push((0,M.jsx)(`span`,{style:t,children:l},c.length+1))}}for(u<r.length&&l.push((0,M.jsx)(`span`,{children:r.substring(u)},l.length+1));a<i.length;a++){let e=i[a],t={};l.length&&l.push((0,M.jsx)(`span`,{children:` `},l.length+1)),typeof e?.value!=`string`&&(t.color=`var(--vscode-debugTokenExpression-number)`),l.push((0,M.jsx)(`span`,{style:t,children:e?.preview||``},l.length+1))}return c}function Br(e,t){return[(0,M.jsx)(`span`,{dangerouslySetInnerHTML:{__html:Xn(e.trim(),t)}})]}function Vr(e){try{let t={},n=e.split(`;`);for(let e of n){let n=e.trim();if(!n)continue;let[r,i]=n.split(`:`);if(r=r.trim(),i=i.trim(),!Hr(r))continue;let a=r.replace(/-([a-z])/g,e=>e[1].toUpperCase());t[a]=i}return t}catch{return{}}}function Hr(e){return[`background`,`border`,`color`,`font`,`line`,`margin`,`padding`,`text`].some(t=>e.startsWith(t))}var Ur=({noShadow:e,children:t,noMinHeight:n,className:r,sidebarBackground:i,onClick:a})=>(0,M.jsx)(`div`,{className:y(`toolbar`,e&&`no-shadow`,n&&`no-min-height`,r,i&&`toolbar-sidebar-background`),onClick:a,children:t}),Wr=({tabs:e,selectedTab:t,setSelectedTab:n,leftToolbar:r,rightToolbar:i,dataTestId:a,mode:s})=>{let c=o.useId();return t||=e[0].id,s||=`default`,(0,M.jsx)(`div`,{className:`tabbed-pane`,"data-testid":a,children:(0,M.jsxs)(`div`,{className:`vbox`,children:[(0,M.jsxs)(Ur,{children:[r&&(0,M.jsx)(`div`,{style:{flex:`none`,display:`flex`,margin:`0 4px`,alignItems:`center`},children:[...r]}),s==="default"&&(0,M.jsx)(`div`,{style:{flex:`auto`,display:`flex`,height:`100%`,overflow:`hidden`},role:`tablist`,children:[...e.map(e=>(0,M.jsx)(Gr,{id:e.id,ariaControls:`${c}-${e.id}`,title:e.title,count:e.count,errorCount:e.errorCount,selected:t===e.id,onSelect:n},e.id))]}),s===`select`&&(0,M.jsx)(`div`,{style:{flex:`auto`,display:`flex`,height:`100%`,overflow:`hidden`},role:`tablist`,children:(0,M.jsx)(`select`,{style:{width:`100%`,background:`none`,cursor:`pointer`},value:t,onChange:t=>{n?.(e[t.currentTarget.selectedIndex].id)},children:e.map(e=>{let t=``;return e.count&&(t=` (${e.count})`),e.errorCount&&(t=` (${e.errorCount})`),(0,M.jsxs)(`option`,{value:e.id,role:`tab`,"aria-controls":`${c}-${e.id}`,children:[e.title,t]},e.id)})})}),i&&(0,M.jsx)(`div`,{style:{flex:`none`,display:`flex`,alignItems:`center`},children:[...i]})]}),e.map(e=>{let n=`tab-content tab-`+e.id;if(e.component)return(0,M.jsx)(`div`,{id:`${c}-${e.id}`,role:`tabpanel`,"aria-label":e.title,className:n,style:{display:t===e.id?`inherit`:`none`},children:e.component},e.id);if(t===e.id)return(0,M.jsx)(`div`,{id:`${c}-${e.id}`,role:`tabpanel`,"aria-label":e.title,className:n,children:e.render()},e.id)})]})})},Gr=({id:e,title:t,count:n,errorCount:r,selected:i,onSelect:a,ariaControls:o})=>(0,M.jsxs)(`button`,{className:y(`tabbed-pane-tab`,i&&`selected`),onClick:()=>a?.(e),role:`tab`,title:t,"aria-controls":o,"aria-selected":i,children:[(0,M.jsx)(`div`,{className:`tabbed-pane-tab-label`,children:t}),!!n&&(0,M.jsx)(`div`,{className:`tabbed-pane-tab-counter`,children:n}),!!r&&(0,M.jsx)(`div`,{className:`tabbed-pane-tab-counter error`,children:r})]});async function Kr(e,t){let n=navigator.platform.includes(`Win`)?`win`:`unix`,r=[],i=new Set([`accept-encoding`,`host`,`method`,`path`,`scheme`,`version`,`authority`,`protocol`]);function a(e){return`^"`+e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/[^a-zA-Z0-9\s_\-:=+~'\/.',?;()*`]/g,`^$&`).replace(/%(?=[a-zA-Z0-9_])/g,`%^`).replace(/[^ -~\r\n]/g,` `).replace(/\r?\n|\r/g,`^
26
+
27
+ `)+`^"`}function o(e){function t(e){let t=e.charCodeAt(0).toString(16);for(;t.length<4;)t=`0`+t;return`\\u`+t}return/[\0-\x1F\x7F-\x9F!]|\'/.test(e)?`$'`+e.replace(/\\/g,`\\\\`).replace(/\'/g,`\\'`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\0-\x1F\x7F-\x9F!]/g,t)+`'`:`'`+e+`'`}let s=n===`win`?a:o;r.push(s(t.request.url).replace(/[[{}\]]/g,`\\$&`));let c=`GET`,l=[],u=await Jr(e,t);u&&(l.push(`--data-raw `+s(u)),i.add(`content-length`),c=`POST`),t.request.method!==c&&r.push(`-X `+s(t.request.method));let d=t.request.headers;for(let e=0;e<d.length;e++){let t=d[e],n=t.name.replace(/^:/,``);if(i.has(n.toLowerCase()))continue;let a=t.value;a.trim()?n.toLowerCase()===`cookie`?r.push(`-b `+s(a)):r.push(`-H `+s(n+`: `+a)):r.push(`-H `+s(n+`;`))}return r=r.concat(l),`curl `+r.join(r.length>=3?n===`win`?` ^
28
+ `:` \\
29
+ `:` `)}async function qr(e,t,n=0){let r=new Set([`method`,`path`,`scheme`,`version`,`accept-charset`,`accept-encoding`,`access-control-request-headers`,`access-control-request-method`,`connection`,`content-length`,`cookie`,`cookie2`,`date`,`dnt`,`expect`,`host`,`keep-alive`,`origin`,`referer`,`te`,`trailer`,`transfer-encoding`,`upgrade`,`via`,`user-agent`]),i=new Set([`cookie`,`authorization`]),a=JSON.stringify(t.request.url),o=t.request.headers,s=o.reduce((e,t)=>{let n=t.name;return!r.has(n.toLowerCase())&&!n.includes(`:`)&&e.append(n,t.value),e},new Headers),c={};for(let e of s)c[e[0]]=e[1];let l=t.request.cookies.length||o.some(({name:e})=>i.has(e.toLowerCase()))?`include`:`omit`,u=o.find(({name:e})=>e.toLowerCase()===`referer`),d=u?u.value:void 0,f=await Jr(e,t),p={headers:Object.keys(c).length?c:void 0,referrer:d,body:f,method:t.request.method,mode:`cors`};if(n===1){let e=o.find(e=>e.name.toLowerCase()===`cookie`),t={};delete p.mode,e&&(t.cookie=e.value),d&&(delete p.referrer,t.Referer=d),Object.keys(t).length&&(p.headers={...c,...t})}else p.credentials=l;return`fetch(${a}, ${JSON.stringify(p,null,2)});`}async function Jr(e,t){return e&&t.request.postData?._file?await fetch(e.createRelativeUrl(`file/${t.request.postData._file}`)).then(e=>e.text()):t.request.postData?.text}var Yr=class{generatePlaywrightRequestCall(e,t){let n=e.method.toLowerCase(),r=new URL(e.url),i=`${r.origin}${r.pathname}`,a={};[`delete`,`get`,`head`,`post`,`put`,`patch`].includes(n)||(a.method=n,n=`fetch`),r.searchParams.size&&(a.params=Object.fromEntries(r.searchParams.entries())),t&&(a.data=t),e.headers.length&&(a.headers=Object.fromEntries(e.headers.map(e=>[e.name,e.value])));let o=[`'${i}'`];return Object.keys(a).length>0&&o.push(this.prettyPrintObject(a)),`await page.request.${n}(${o.join(`, `)});`}prettyPrintObject(e,t=2,n=0){if(e===null)return`null`;if(e===void 0)return`undefined`;if(typeof e!=`object`)return typeof e==`string`?this.stringLiteral(e):String(e);if(Array.isArray(e)){if(e.length===0)return`[]`;let r=` `.repeat(n*t),i=` `.repeat((n+1)*t);return`[\n${e.map(e=>`${i}${this.prettyPrintObject(e,t,n+1)}`).join(`,
30
+ `)}\n${r}]`}if(Object.keys(e).length===0)return`{}`;let r=` `.repeat(n*t),i=` `.repeat((n+1)*t);return`{\n${Object.entries(e).map(([e,r])=>{let a=this.prettyPrintObject(r,t,n+1),o=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(e)?e:this.stringLiteral(e);return`${i}${o}: ${a}`}).join(`,
31
+ `)}\n${r}}`}stringLiteral(e){return e=e.replace(/\\/g,`\\\\`).replace(/'/g,`\\'`),e.includes(`
32
+ `)||e.includes(`\r`)||e.includes(` `)?"`"+e+"`":`'${e}'`}},Xr=class{generatePlaywrightRequestCall(e,t){let n=new URL(e.url),r=[`"${`${n.origin}${n.pathname}`}"`],i=e.method.toLowerCase();[`delete`,`get`,`head`,`post`,`put`,`patch`].includes(i)||(r.push(`method="${i}"`),i=`fetch`),n.searchParams.size&&r.push(`params=${this.prettyPrintObject(Object.fromEntries(n.searchParams.entries()))}`),t&&r.push(`data=${this.prettyPrintObject(t)}`),e.headers.length&&r.push(`headers=${this.prettyPrintObject(Object.fromEntries(e.headers.map(e=>[e.name,e.value])))}`);let a=r.length===1?r[0]:`\n${r.map(e=>this.indent(e,2)).join(`,
33
+ `)}\n`;return`await page.request.${i}(${a})`}indent(e,t){return e.split(`
34
+ `).map(e=>` `.repeat(t)+e).join(`
35
+ `)}prettyPrintObject(e,t=2,n=0){if(e==null)return`None`;if(typeof e!=`object`)return typeof e==`string`?this.stringLiteral(e):typeof e==`boolean`?e?`True`:`False`:String(e);if(Array.isArray(e)){if(e.length===0)return`[]`;let r=` `.repeat(n*t),i=` `.repeat((n+1)*t);return`[\n${e.map(e=>`${i}${this.prettyPrintObject(e,t,n+1)}`).join(`,
36
+ `)}\n${r}]`}if(Object.keys(e).length===0)return`{}`;let r=` `.repeat(n*t),i=` `.repeat((n+1)*t);return`{\n${Object.entries(e).map(([e,r])=>{let a=this.prettyPrintObject(r,t,n+1);return`${i}${this.stringLiteral(e)}: ${a}`}).join(`,
37
+ `)}\n${r}}`}stringLiteral(e){return JSON.stringify(e)}},Zr=class{generatePlaywrightRequestCall(e,t){let n=new URL(e.url),r=`${n.origin}${n.pathname}`,i={},a=[],o=e.method.toLowerCase();[`delete`,`get`,`head`,`post`,`put`,`patch`].includes(o)||(i.Method=o,o=`fetch`),n.searchParams.size&&(i.Params=Object.fromEntries(n.searchParams.entries())),t&&(i.Data=t),e.headers.length&&(i.Headers=Object.fromEntries(e.headers.map(e=>[e.name,e.value])));let s=[`"${r}"`];return Object.keys(i).length>0&&s.push(this.prettyPrintObject(i)),`${a.join(`
38
+ `)}${a.length?`
39
+ `:``}await request.${this.toFunctionName(o)}(${s.join(`, `)});`}toFunctionName(e){return e[0].toUpperCase()+e.slice(1)+`Async`}prettyPrintObject(e,t=2,n=0){if(e==null)return`null`;if(typeof e!=`object`)return typeof e==`string`?this.stringLiteral(e):typeof e==`boolean`?e?`true`:`false`:String(e);if(Array.isArray(e)){if(e.length===0)return`new object[] {}`;let r=` `.repeat(n*t),i=` `.repeat((n+1)*t);return`new object[] {\n${e.map(e=>`${i}${this.prettyPrintObject(e,t,n+1)}`).join(`,
40
+ `)}\n${r}}`}if(Object.keys(e).length===0)return`new {}`;let r=` `.repeat(n*t),i=` `.repeat((n+1)*t);return`new() {\n${Object.entries(e).map(([e,r])=>{let a=this.prettyPrintObject(r,t,n+1),o=n===0?e:`[${this.stringLiteral(e)}]`;return`${i}${o} = ${a}`}).join(`,
41
+ `)}\n${r}}`}stringLiteral(e){return JSON.stringify(e)}},Qr=class{generatePlaywrightRequestCall(e,t){let n=new URL(e.url),r=[`"${n.origin}${n.pathname}"`],i=[],a=e.method.toLowerCase();[`delete`,`get`,`head`,`post`,`put`,`patch`].includes(a)||(i.push(`setMethod("${a}")`),a=`fetch`);for(let[e,t]of n.searchParams)i.push(`setQueryParam(${this.stringLiteral(e)}, ${this.stringLiteral(t)})`);t&&i.push(`setData(${this.stringLiteral(t)})`);for(let t of e.headers)i.push(`setHeader(${this.stringLiteral(t.name)}, ${this.stringLiteral(t.value)})`);return i.length>0&&r.push(`RequestOptions.create()\n .${i.join(`
42
+ .`)}\n`),`request.${a}(${r.join(`, `)});`}stringLiteral(e){return JSON.stringify(e)}};function $r(e){if(e===`javascript`)return new Yr;if(e===`python`)return new Xr;if(e===`csharp`)return new Zr;if(e===`java`)return new Qr;throw Error(`Unsupported language: `+e)}var ei=({resource:e,sdkLanguage:t,startTimeOffset:n,onClose:r})=>{let[i,a]=o.useState(`headers`),c=On(),l=s(async()=>{if(c&&e.request.postData){let t=e.request.headers.find(e=>e.name.toLowerCase()===`content-type`),n=t?t.value:``;return e.request.postData._file?{text:await(await fetch(c.createRelativeUrl(`file/${e.request.postData._file}`))).text(),mimeType:n}:{text:e.request.postData.text,mimeType:n}}else return null},[e],null);return(0,M.jsx)(Wr,{leftToolbar:[(0,M.jsx)(kn,{icon:`close`,title:`Close`,onClick:r},`close`)],rightToolbar:[(0,M.jsx)(ti,{requestBody:l,resource:e,sdkLanguage:t},`dropdown`)],tabs:[{id:`headers`,title:`Headers`,render:()=>(0,M.jsx)(ii,{resource:e,startTimeOffset:n})},{id:`payload`,title:`Payload`,render:()=>(0,M.jsx)(ai,{resource:e,requestBody:l})},{id:`response`,title:`Response`,render:()=>(0,M.jsx)(oi,{resource:e})}],selectedTab:i,setSelectedTab:a})},ti=({resource:e,sdkLanguage:t,requestBody:n})=>{let r=On(),i=(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`span`,{className:`codicon codicon-check`,style:{marginRight:`5px`}}),` Copied `]});return(0,M.jsxs)(`div`,{className:`copy-request-dropdown`,children:[(0,M.jsxs)(kn,{className:`copy-request-dropdown-toggle`,children:[(0,M.jsx)(`span`,{className:`codicon codicon-copy`,style:{marginRight:`5px`}}),`Copy request`,(0,M.jsx)(`span`,{className:`codicon codicon-chevron-down`,style:{marginLeft:`5px`}})]}),(0,M.jsxs)(`div`,{className:`copy-request-dropdown-menu`,children:[(0,M.jsx)(zn,{description:`Copy as cURL`,copiedDescription:i,value:()=>Kr(r,e)}),(0,M.jsx)(zn,{description:`Copy as Fetch`,copiedDescription:i,value:()=>qr(r,e)}),(0,M.jsx)(zn,{description:`Copy as Playwright`,copiedDescription:i,value:async()=>$r(t).generatePlaywrightRequestCall(e.request,n?.text)})]})]})},ni=({toggled:e,error:t,onToggle:n})=>(0,M.jsx)(kn,{icon:`json`,title:`Pretty print`,toggled:e,errorBadge:t?`Formatting failed`:void 0,onClick:e=>{e.stopPropagation(),n()}}),ri=({title:e,data:t,showCount:n,children:r,titleChildren:i,className:a})=>{let[o,s]=f(`trace-viewer-network-details-${e.replaceAll(` `,`-`)}`,!0);return(0,M.jsxs)(Cr,{expanded:o,setExpanded:s,expandOnTitleClick:!0,title:(0,M.jsxs)(`span`,{className:`network-request-details-header`,children:[e,n&&(0,M.jsxs)(`span`,{className:`network-request-details-header-count`,children:[` × `,t?.length??0]})]}),titleSuffix:i,className:a,children:[t&&(0,M.jsx)(`table`,{className:`network-request-details-table`,children:(0,M.jsx)(`tbody`,{children:t.map(({name:e,value:t},n)=>t!==null&&(0,M.jsxs)(`tr`,{children:[(0,M.jsx)(`td`,{children:e}),(0,M.jsx)(`td`,{children:t})]},n))})}),r]})},ii=({resource:e,startTimeOffset:t})=>{let n=o.useMemo(()=>Object.entries({URL:e.request.url,Method:e.request.method,"Status Code":e.response.status===-1?`canceled`:e.response.status>0&&(0,M.jsxs)(`span`,{className:gi(e.response.status),children:[` `,e.response.status,` `,e.response.statusText]}),Start:bn(t),Duration:bn(e.time)}).map(([e,t])=>({name:e,value:t})),[e,t]);return(0,M.jsxs)(`div`,{className:`vbox network-request-details-tab`,children:[(0,M.jsx)(ri,{title:`General`,data:n}),(0,M.jsx)(ri,{title:`Request Headers`,showCount:!0,data:e.request.headers}),(0,M.jsx)(ri,{title:`Response Headers`,showCount:!0,data:e.response.headers})]})},ai=({resource:e,requestBody:t})=>{let[n,r]=f(`trace-viewer-network-details-show-formatted-payload`,!0),i=e.request.queryString.length>0,a=!!(t||e.request.postData),o=xi(t,n);return(0,M.jsxs)(`div`,{className:`vbox network-request-details-tab`,children:[!i&&!a&&(0,M.jsx)(`em`,{className:`network-request-no-payload`,children:`No payload for this request.`}),i&&(0,M.jsx)(ri,{title:`Query String Parameters`,showCount:!0,data:e.request.queryString}),t&&(0,M.jsx)(ri,{title:`Request Body`,className:`network-request-request-body`,titleChildren:(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{style:{margin:`auto`}}),(0,M.jsx)(ni,{toggled:n,error:o.error,onToggle:()=>r(!n)})]}),children:(0,M.jsx)(mr,{text:o.text,mimeType:t.mimeType,readOnly:!0,lineNumbers:!0})})]})},oi=({resource:e})=>{let t=On(),[n,r]=o.useState(null);o.useEffect(()=>{(async()=>{if(t&&e.response.content._file){let n=e.response.content.mimeType.includes(`image`),i=e.response.content.mimeType.includes(`font`),a=await fetch(t.createRelativeUrl(`file/${e.response.content._file}`));if(n){let e=await a.blob(),t=new FileReader,n=new Promise(e=>t.onload=e);t.readAsDataURL(e),r({dataUrl:(await n).target.result})}else if(i){let e=await a.arrayBuffer();r({font:e})}else r({text:await a.text(),mimeType:e.response.content.mimeType})}else r(null)})()},[e,t]);let[i,a]=f(`trace-viewer-network-details-show-formatted-response`,!0),s=xi(n,i);return(0,M.jsxs)(`div`,{className:`vbox network-request-details-tab`,children:[!e.response.content._file&&(0,M.jsx)(`div`,{children:`Response body is not available for this request.`}),n&&n.font&&(0,M.jsx)(si,{font:n.font}),n&&n.dataUrl&&(0,M.jsx)(`div`,{children:(0,M.jsx)(`img`,{draggable:`false`,src:n.dataUrl})}),n&&n.text!==void 0&&(0,M.jsxs)(`div`,{className:`vbox network-response-body`,children:[(0,M.jsx)(mr,{text:s.text,mimeType:n.mimeType,readOnly:!0,lineNumbers:!0}),(0,M.jsxs)(Ur,{noShadow:!0,noMinHeight:!0,className:`network-response-toolbar`,children:[(0,M.jsx)(`div`,{style:{margin:`auto`}}),(0,M.jsx)(ni,{toggled:i,error:s.error,onToggle:()=>a(!i)})]})]})]})},si=({font:e})=>{let[t,n]=o.useState(!1);return o.useEffect(()=>{let t;try{t=new FontFace(`font-preview`,e),t.status===`loaded`&&document.fonts.add(t),t.status===`error`&&n(!0)}catch{n(!0)}return()=>{document.fonts.delete(t)}},[e]),t?(0,M.jsx)(`div`,{className:`network-font-preview-error`,children:`Could not load font preview`}):(0,M.jsxs)(`div`,{className:`network-font-preview`,children:[`ABCDEFGHIJKLM`,(0,M.jsx)(`br`,{}),`NOPQRSTUVWXYZ`,(0,M.jsx)(`br`,{}),`abcdefghijklm`,(0,M.jsx)(`br`,{}),`nopqrstuvwxyz`,(0,M.jsx)(`br`,{}),`1234567890`]})},ci=({resource:e,startTimeOffset:t,onClose:n})=>{let[r,i]=o.useState(`messages`);return(0,M.jsx)(Wr,{leftToolbar:[(0,M.jsx)(kn,{icon:`close`,title:`Close`,onClick:n},`close`)],tabs:[{id:`headers`,title:`Headers`,render:()=>(0,M.jsx)(ii,{resource:e,startTimeOffset:t})},{id:`messages`,title:`Messages`,render:()=>(0,M.jsx)(li,{resource:e})}],selectedTab:r,setSelectedTab:i})},li=({resource:e})=>{let t=On(),n=s(async()=>{if(e._webSocketMessages)return e._webSocketMessages.map((e,t)=>({...e,index:t,byteLength:mi(e)}));if(t&&e.response.content._file)try{let n=await fetch(t.createRelativeUrl(`file/${e.response.content._file}`));return n.ok?(await n.text()).split(`
43
+ `).filter(Boolean).map(e=>JSON.parse(e)).map((e,t)=>({...e,index:t,byteLength:mi(e)})):[]}catch{return[]}return[]},[e,t],void 0),[r,i]=o.useState(void 0),a=r===void 0?void 0:n?.[r],c=o.useMemo(()=>{if(n){for(let e of n)if(e.time>0)return e.time}},[n]);if(n===void 0)return(0,M.jsx)(Bn,{text:`Loading...`});if(n.length===0)return(0,M.jsx)(Bn,{text:`No messages captured`});let l=(0,M.jsx)(ui,{name:`network-websocket-messages`,ariaLabel:`WebSocket messages`,items:n,id:e=>String(e.index),selectedItem:a,onSelected:e=>i(e.index),render:e=>fi(e,c)});return a?(0,M.jsx)(yn,{sidebarSize:200,orientation:`vertical`,sidebarIsFirst:!1,settingName:`networkWebSocketMessageDetails`,main:l,sidebar:(0,M.jsx)(di,{message:a})}):l},ui=qn,di=({message:e})=>{let[t,n]=f(`trace-viewer-network-details-show-formatted-message`,!0),r=o.useMemo(()=>{if(e.opcode===1){let t=e.data,n;try{JSON.parse(t),n=`application/json`}catch{n=`text/plain`}return{text:t,mimeType:n}}if(e.opcode===8||e.opcode===9||e.opcode===10){if(!e.data)return{text:``};try{return{text:Ci(e.data),mimeType:`text/plain`}}catch{return{text:wi(e.data)}}}return{text:wi(e.data)}},[e]),i=xi(r,t);return(0,M.jsxs)(`div`,{className:`vbox network-websocket-message-detail`,children:[(0,M.jsxs)(Ur,{noShadow:!0,noMinHeight:!0,className:`network-websocket-message-detail-toolbar`,children:[(0,M.jsxs)(`span`,{className:`network-websocket-message-detail-summary`,children:[e.type===`send`?`Sent`:`Received`,` · `,pi(e.opcode),` · `,xn(mi(e))]}),(0,M.jsx)(`div`,{style:{margin:`auto`}}),(0,M.jsx)(ni,{toggled:t,error:i.error,onToggle:()=>n(!t)})]}),(0,M.jsx)(`div`,{className:`vbox network-websocket-message-detail-body`,children:(0,M.jsx)(mr,{text:i.text,mimeType:r.mimeType,readOnly:!0,lineNumbers:!0})})]})};function fi(e,t){let n=e.type===`send`?`codicon-arrow-up`:`codicon-arrow-down`,r=e.type===`send`?`Sent`:`Received`,i=pi(e.opcode),a=e.time>0&&t!==void 0?bn(e.time-t):`-`,o=hi(e);return(0,M.jsxs)(`div`,{className:`network-websocket-message-row`,children:[(0,M.jsx)(`span`,{className:`network-websocket-message-direction-${e.type} codicon ${n}`,title:r}),(0,M.jsx)(`span`,{className:`network-websocket-message-preview`,title:o,children:o}),(0,M.jsx)(`span`,{className:`network-websocket-message-opcode`,title:`Opcode ${e.opcode}`,children:i}),(0,M.jsx)(`span`,{className:`network-websocket-message-length`,title:`${e.byteLength} bytes`,children:xn(e.byteLength)}),(0,M.jsx)(`span`,{className:`network-websocket-message-time`,children:a})]})}function pi(e){switch(e){case 0:return`Continuation`;case 1:return`Text`;case 2:return`Binary`;case 8:return`Close`;case 9:return`Ping`;case 10:return`Pong`;default:return`Opcode ${e}`}}function mi(e){return e.opcode===1?new TextEncoder().encode(e.data).length:Si(e.data)}function hi(e){if(e.opcode===1){let t=e.data.replace(/\s+/g,` `);return t.length>200?t.substring(0,200)+`…`:t}return e.opcode===8?`(close)`:e.opcode===9?`(ping)`:e.opcode===10?`(pong)`:`(binary, ${xn(Si(e.data))})`}function gi(e){return e<300||e===304?`green-circle`:e<400?`yellow-circle`:`red-circle`}var _i=/<[^>]+>[^<]*<\//;function vi(e,t=` `){let n=0,r=[],i=e.replace(/>\s*</g,`>
44
+ <`).split(`
45
+ `);for(let e of i){let i=e.trim();i&&(i.startsWith(`</`)?(n=Math.max(n-1,0),r.push(t.repeat(n)+i)):i.endsWith(`/>`)||i.startsWith(`<?`)||_i.test(i)?r.push(t.repeat(n)+i):i.startsWith(`<`)?(r.push(t.repeat(n)+i),n++):r.push(t.repeat(n)+i))}return r.join(`
46
+ `)}function yi(e){let t=JSON.rawJSON;return JSON.stringify(JSON.parse(e,t&&((e,n,r)=>typeof n==`number`&&r?.source!==void 0?t(r.source):n)),null,2)}function bi(e,t){return!e.trim()||!t?e:br(t)?yi(e):xr(t)?vi(e):t.includes(`application/x-www-form-urlencoded`)?decodeURIComponent(e):e}var xi=(e,t)=>o.useMemo(()=>{if(e?.text===void 0)return{text:``};if(!t)return{text:e.text};try{return{text:bi(e.text,e.mimeType)}}catch{return{text:e.text,error:!0}}},[e,t]);function Si(e){if(!e)return 0;let t=e[e.length-2]===`=`?2:+(e[e.length-1]===`=`);return Math.max(0,Math.floor(e.length*3/4)-t)}function Ci(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return new TextDecoder(`utf-8`,{fatal:!1}).decode(n)}function wi(e){if(!e)return``;let t=atob(e),n=[];for(let e=0;e<t.length;e+=16){let r=Math.min(16,t.length-e),i=[],a=[];for(let n=0;n<16;++n){if(n<r){let r=t.charCodeAt(e+n);i.push(r.toString(16).padStart(2,`0`)),a.push(r>=32&&r<127?t[e+n]:`.`)}else i.push(` `);n===7&&i.push(``)}n.push(`${e.toString(16).padStart(8,`0`)} ${i.join(` `)} ${a.join(``)}`)}return n.join(`
47
+ `)}function Ti(e){let[t,n]=o.useState([]);o.useEffect(()=>{let t=[];for(let n=0;n<e.columns.length-1;++n){let r=e.columns[n];t[n]=(t[n-1]||0)+e.columnWidths.get(r)}n(t)},[e.columns,e.columnWidths]);function r(t){let n=new Map(e.columnWidths.entries());for(let r=0;r<t.length;++r){let i=t[r]-(t[r-1]||0),a=e.columns[r];n.set(a,i)}e.setColumnWidths(n)}let i=o.useCallback(t=>{e.setSorting?.({by:t,negate:e.sorting?.by===t&&!e.sorting.negate})},[e]);return(0,M.jsxs)(`div`,{className:`grid-view ${e.name}-grid-view`,children:[(0,M.jsx)(ir,{orientation:`horizontal`,offsets:t,setOffsets:r,resizerColor:`var(--vscode-panel-border)`,resizerWidth:1,minColumnWidth:25}),(0,M.jsxs)(`div`,{className:`vbox`,children:[(0,M.jsx)(`div`,{className:`grid-view-header`,children:e.columns.map((t,n)=>(0,M.jsxs)(`div`,{className:`grid-view-header-cell `+Ei(t,e.sorting),style:{width:n<e.columns.length-1?e.columnWidths.get(t):void 0},onClick:()=>e.setSorting&&i(t),children:[(0,M.jsx)(`span`,{className:`grid-view-header-cell-title`,children:e.columnTitle(t)}),(0,M.jsx)(`span`,{className:`codicon codicon-triangle-up`}),(0,M.jsx)(`span`,{className:`codicon codicon-triangle-down`})]},e.columnTitle(t)))}),(0,M.jsx)(qn,{name:e.name,items:e.items,ariaLabel:e.ariaLabel,id:e.id,render:(t,n)=>(0,M.jsx)(M.Fragment,{children:e.columns.map((r,i)=>{let{body:a,title:o}=e.render(t,r,n);return(0,M.jsx)(`div`,{className:`grid-view-cell grid-view-column-${String(r)}`,title:o,style:{width:i<e.columns.length-1?e.columnWidths.get(r):void 0},children:a},e.columnTitle(r))})}),icon:e.icon,isError:e.isError,isWarning:e.isWarning,isInfo:e.isInfo,selectedItem:e.selectedItem,onAccepted:e.onAccepted,onSelected:e.onSelected,onHighlighted:e.onHighlighted,onIconClicked:e.onIconClicked,noItemsMessage:e.noItemsMessage,dataTestId:e.dataTestId,notSelectable:e.notSelectable})]})]})}function Ei(e,t){return e===t?.by?` filter-`+(t.negate?`negative`:`positive`):``}var Di=[`Fetch`,`HTML`,`JS`,`CSS`,`Font`,`Image`,`WS`],Oi={searchValue:``,resourceTypes:new Set},ki=({filterState:e,onFilterStateChange:t})=>(0,M.jsxs)(`div`,{className:`network-filters`,children:[(0,M.jsx)(`input`,{type:`search`,placeholder:`Filter network`,"aria-label":`Filter network`,spellCheck:!1,value:e.searchValue,onChange:n=>t({...e,searchValue:n.target.value})}),(0,M.jsxs)(`div`,{className:`network-filters-resource-types`,role:`tablist`,"aria-multiselectable":`true`,children:[(0,M.jsx)(`button`,{title:`All`,onClick:()=>t({...e,resourceTypes:new Set}),className:`network-filters-resource-type ${e.resourceTypes.size===0?`selected`:``}`,role:`tab`,"aria-selected":e.resourceTypes.size===0,children:`All`}),Di.map(n=>(0,M.jsx)(`button`,{title:n,onClick:r=>{let i;i=r.ctrlKey||r.metaKey?e.resourceTypes.symmetricDifference(new Set([n])):new Set([n]),t({...e,resourceTypes:i})},className:`network-filters-resource-type ${e.resourceTypes.has(n)?`selected`:``}`,role:`tab`,"aria-selected":e.resourceTypes.has(n),children:n},n))]})]}),Ai=Ti;function ji(e,t,n){return{resources:o.useMemo(()=>(e?.resources||[]).filter(e=>n&&e.pageref!==n?!1:!t||!!e._monotonicTime&&e._monotonicTime>=t.minimum&&e._monotonicTime<=t.maximum),[e,t,n]),model:e}}var Mi=({boundaries:e,networkModel:t,onResourceHovered:n,sdkLanguage:r})=>{let[i,a]=o.useState(void 0),[s,c]=o.useState(void 0),[l,u]=o.useState(Oi),{renderedEntries:d,multipleContexts:f}=o.useMemo(()=>{let n=t.resources.map(n=>zi(n,e,t.model)).filter(Wi(l));return i&&Vi(n,i),{renderedEntries:n,multipleContexts:new Set(n.map(e=>e.contextId).filter(Boolean)).size>1}},[t.resources,t.model,l,i,e]),p=o.useMemo(()=>s?d.find(e=>e.resource.id===s):void 0,[s,d]),[m,h]=o.useState(()=>new Map(Ii().map(e=>[e,Pi(e)]))),g=o.useCallback(e=>{u(e),c(void 0)},[]);if(!t.resources.length)return(0,M.jsx)(Bn,{text:`No network calls`});let _=(0,M.jsx)(Ai,{name:`network`,ariaLabel:`Network requests`,items:d,selectedItem:p,onSelected:e=>c(e.resource.id),onHighlighted:e=>n?.(e?Bi(e.resource):void 0),columns:Fi(!!p,f),columnTitle:Ni,columnWidths:m,setColumnWidths:h,isError:e=>e.status.code>=400||e.status.code===-1,isInfo:e=>!!e.route,render:(e,t)=>Li(e,t),sorting:i,setSorting:a});return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(ki,{filterState:l,onFilterStateChange:g}),!p&&_,p&&(0,M.jsx)(yn,{sidebarSize:m.get(`name`),sidebarIsFirst:!0,orientation:`horizontal`,settingName:`networkResourceDetails`,main:p.resource._resourceType===`websocket`?(0,M.jsx)(ci,{resource:p.resource,startTimeOffset:p.start,onClose:()=>c(void 0)}):(0,M.jsx)(ei,{resource:p.resource,sdkLanguage:r,startTimeOffset:p.start,onClose:()=>c(void 0)}),sidebar:_})]})},Ni=e=>e===`contextId`?`Source`:e===`name`?`Name`:e===`method`?`Method`:e===`status`?`Status`:e===`contentType`?`Content Type`:e===`duration`?`Duration`:e===`size`?`Size`:e===`start`?`Start`:e===`route`?`Route`:``,Pi=e=>e===`name`?200:e===`method`||e===`status`?60:e===`contentType`?200:e===`contextId`?60:100;function Fi(e,t){if(e){let e=[`name`];return t&&e.unshift(`contextId`),e}let n=Ii();return t||(n=n.filter(e=>e!==`contextId`)),n}function Ii(){return[`contextId`,`name`,`method`,`status`,`contentType`,`duration`,`size`,`start`,`route`]}var Li=(e,t)=>t===`contextId`?{body:e.contextId,title:e.name.url}:t===`name`?{body:e.name.name,title:e.name.url}:t===`method`?{body:e.method}:t===`status`?{body:e.status.code===-1?`canceled`:e.status.code>0?e.status.code:``,title:e.status.code===-1?`canceled`:e.status.text}:t===`contentType`?{body:e.contentType}:t===`duration`?{body:bn(e.duration)}:t===`size`?{body:xn(e.size)}:t===`start`?{body:bn(e.start)}:t===`route`?{body:e.route}:{body:``};function Ri(e,t){let n=on(t);return!e||!n?``:e.resourceOwnerRefToTitle.get(n)||``}var zi=(e,t,n)=>{let r=N(e),i;try{let t=new URL(e.request.url);i=t.pathname.substring(t.pathname.lastIndexOf(`/`)+1),i||=t.host,t.search&&(i+=t.search)}catch{i=e.request.url}let a;if(e._resourceType===`websocket`)a=`websocket`;else{a=e.response.content.mimeType;let t=a.match(/^(.*);\s*charset=.*$/);t&&(a=t[1])}return{name:{name:i,url:e.request.url},method:e.request.method,status:{code:e.response.status,text:e.response.statusText},contentType:a,duration:e.time,size:e.response._transferSize>0?e.response._transferSize:e.response.bodySize,start:e._monotonicTime-t.minimum,route:r,resource:e,contextId:Ri(n,e)}};function Bi(e){if(e._monotonicTime)return{minimum:e._monotonicTime,maximum:e._monotonicTime+e.time}}function N(e){return e._wasAborted?`aborted`:e._wasContinued?`continued`:e._wasFulfilled?`fulfilled`:e._apiRequestRef?`api`:``}function Vi(e,t){let n=Hi(t?.by);n&&e.sort(n),t.negate&&e.reverse()}function Hi(e){if(e===`start`)return(e,t)=>e.start-t.start;if(e===`duration`)return(e,t)=>e.duration-t.duration;if(e===`status`)return(e,t)=>e.status.code-t.status.code;if(e===`method`)return(e,t)=>{let n=e.method,r=t.method;return n.localeCompare(r)};if(e===`size`)return(e,t)=>e.size-t.size;if(e===`contentType`)return(e,t)=>e.contentType.localeCompare(t.contentType);if(e===`name`)return(e,t)=>e.name.name.localeCompare(t.name.name);if(e===`route`)return(e,t)=>e.route.localeCompare(t.route);if(e===`contextId`)return(e,t)=>e.contextId.localeCompare(t.contextId)}var Ui={Fetch:e=>e.contentType===`application/json`,HTML:e=>e.contentType===`text/html`,CSS:e=>e.contentType===`text/css`,JS:e=>e.contentType.includes(`javascript`),Font:e=>e.contentType.includes(`font`),Image:e=>e.contentType.includes(`image`),WS:e=>e.resource._resourceType===`websocket`};function Wi({searchValue:e,resourceTypes:t}){return n=>(t.size===0||Array.from(t).some(e=>Ui[e](n)))&&n.name.url.toLowerCase().includes(e.toLowerCase())}function Gi(e){return e.box.cursor===`pointer`}function Ki(e,t,n={}){let r=new e.LineCounter,i={keepSourceTokens:!0,lineCounter:r,...n},a=e.parseDocument(t,i),o=[],s=e=>[r.linePos(e[0]),r.linePos(e[1])],c=e=>{o.push({message:e.message,range:[r.linePos(e.pos[0]),r.linePos(e.pos[1])]})},l=(t,n)=>{for(let r of n.items){if(r instanceof e.Scalar&&typeof r.value==`string`){let e=Xi.parse(r,i,o);e&&(t.children=t.children||[],t.children.push(e));continue}if(r instanceof e.YAMLMap){u(t,r);continue}o.push({message:`Sequence items should be strings or maps`,range:s(r.range||n.range)})}},u=(t,n)=>{for(let r of n.items){if(t.children=t.children||[],!(r.key instanceof e.Scalar&&typeof r.key.value==`string`)){o.push({message:`Only string keys are supported`,range:s(r.key.range||n.range)});continue}let a=r.key,c=r.value;if(a.value===`text`){if(!(c instanceof e.Scalar&&typeof c.value==`string`)){o.push({message:`Text value should be a string`,range:s(r.value.range||n.range)});continue}t.children.push({kind:`text`,text:Yi(c.value)});continue}if(a.value===`/children`){if(!(c instanceof e.Scalar&&typeof c.value==`string`)||c.value!==`contain`&&c.value!==`equal`&&c.value!==`deep-equal`){o.push({message:`Strict value should be "contain", "equal" or "deep-equal"`,range:s(r.value.range||n.range)});continue}t.containerMode=c.value;continue}if(a.value.startsWith(`/`)){if(!(c instanceof e.Scalar&&typeof c.value==`string`)){o.push({message:`Property value should be a string`,range:s(r.value.range||n.range)});continue}t.props=t.props??{},t.props[a.value.slice(1)]=Yi(c.value);continue}let u=Xi.parse(a,i,o);if(u){if(c instanceof e.Scalar){let e=typeof c.value;if(e!==`string`&&e!==`number`&&e!==`boolean`){o.push({message:`Node value should be a string or a sequence`,range:s(r.value.range||n.range)});continue}t.children.push({...u,children:[{kind:`text`,text:Yi(String(c.value))}]});continue}if(c instanceof e.YAMLSeq){t.children.push(u),l(u,c);continue}o.push({message:`Map values should be strings or sequences`,range:s(r.value.range||n.range)})}}},d={kind:`role`,role:`fragment`};return a.errors.forEach(c),o.length||(a.contents instanceof e.YAMLSeq||o.push({message:`Aria snapshot must be a YAML sequence, elements starting with " -"`,range:a.contents?s(a.contents.range):[{line:0,col:0},{line:0,col:0}]}),o.length)?{errors:o,fragment:d}:(l(d,a.contents),o.length?{errors:o,fragment:qi}:d.children?.length===1&&(!d.containerMode||d.containerMode===`contain`)?{fragment:d.children[0],errors:[]}:{fragment:d,errors:[]})}var qi={kind:`role`,role:`fragment`};function Ji(e){return e.replace(/[\u200b\u00ad]/g,``).replace(/[\r\n\s\t]+/g,` `).trim()}function Yi(e){return{raw:e,normalized:Ji(e)}}var Xi=class e{static parse(t,n,r){try{return new e(t.value)._parse()}catch(e){if(e instanceof Zi){let i=n.prettyErrors===!1?e.message:e.message+`:
48
+
49
+ `+t.value+`
50
+ `+` `.repeat(e.pos)+`^
51
+ `;return r.push({message:i,range:[n.lineCounter.linePos(t.range[0]),n.lineCounter.linePos(t.range[0]+e.pos)]}),null}throw e}}constructor(e){this._input=e,this._pos=0,this._length=e.length}_peek(){return this._input[this._pos]||``}_next(){return this._pos<this._length?this._input[this._pos++]:null}_eof(){return this._pos>=this._length}_isWhitespace(){return!this._eof()&&/\s/.test(this._peek())}_skipWhitespace(){for(;this._isWhitespace();)this._pos++}_readIdentifier(e){this._eof()&&this._throwError(`Unexpected end of input when expecting ${e}`);let t=this._pos;for(;!this._eof()&&/[a-zA-Z]/.test(this._peek());)this._pos++;return this._input.slice(t,this._pos)}_readString(){let e=``,t=!1;for(;!this._eof();){let n=this._next();if(t)e+=n,t=!1;else if(n===`\\`)t=!0;else if(n===`"`)return e;else e+=n}this._throwError(`Unterminated string`)}_throwError(e,t=0){throw new Zi(e,t||this._pos)}_readRegex(){let e=``,t=!1,n=!1;for(;!this._eof();){let r=this._next();if(t)e+=r,t=!1;else if(r===`\\`)t=!0,e+=r;else if(r===`/`&&!n)return{pattern:e};else r===`[`?(n=!0,e+=r):r===`]`&&n?(e+=r,n=!1):e+=r}this._throwError(`Unterminated regex`)}_readStringOrRegex(){let e=this._peek();return e===`"`?(this._next(),Ji(this._readString())):e===`/`?(this._next(),this._readRegex()):null}_readAttributes(e){let t=this._pos;for(;this._skipWhitespace(),this._peek()===`[`;){this._next(),this._skipWhitespace(),t=this._pos;let n=this._readIdentifier(`attribute`);this._skipWhitespace();let r=``;if(this._peek()===`=`)for(this._next(),this._skipWhitespace(),t=this._pos;this._peek()!==`]`&&!this._isWhitespace()&&!this._eof();)r+=this._next();this._skipWhitespace(),this._peek()!==`]`&&this._throwError(`Expected ]`),this._next(),this._applyAttribute(e,n,r||`true`,t)}}_parse(){this._skipWhitespace();let e=this._readIdentifier(`role`);this._skipWhitespace();let t={kind:`role`,role:e,name:this._readStringOrRegex()||``};return this._readAttributes(t),this._skipWhitespace(),this._eof()||this._throwError(`Unexpected input`),t}_applyAttribute(e,t,n,r){if(t===`checked`){this._assert(n===`true`||n===`false`||n===`mixed`,`Value of "checked" attribute must be a boolean or "mixed"`,r),e.checked=n===`true`||n!==`false`&&`mixed`;return}if(t===`disabled`){this._assert(n===`true`||n===`false`,`Value of "disabled" attribute must be a boolean`,r),e.disabled=n===`true`;return}if(t===`expanded`){this._assert(n===`true`||n===`false`,`Value of "expanded" attribute must be a boolean`,r),e.expanded=n===`true`;return}if(t===`active`){this._assert(n===`true`||n===`false`,`Value of "active" attribute must be a boolean`,r),e.active=n===`true`;return}if(t===`invalid`){this._assert(n===`true`||n===`false`||n===`grammar`||n===`spelling`,`Value of "invalid" attribute must be a boolean, "grammar" or "spelling"`,r),e.invalid=n===`true`||n!==`false`&&n;return}if(t===`level`){this._assert(!isNaN(Number(n)),`Value of "level" attribute must be a number`,r),e.level=Number(n);return}if(t===`pressed`){this._assert(n===`true`||n===`false`||n===`mixed`,`Value of "pressed" attribute must be a boolean or "mixed"`,r),e.pressed=n===`true`||n!==`false`&&`mixed`;return}if(t===`selected`){this._assert(n===`true`||n===`false`,`Value of "selected" attribute must be a boolean`,r),e.selected=n===`true`;return}this._assert(!1,`Unsupported attribute [${t}]`,r)}_assert(e,t,n){e||this._throwError(t||`Assertion error`,n)}},Zi=class extends Error{constructor(e,t){super(e),this.pos=t}};function Qi(e,t){function n(e,t,r){let i=1,a=r+i;for(let r of e.children||[])typeof r==`string`?(i++,a++):(i+=n(r,t,a),a+=i);if(![`none`,`presentation`,`fragment`,`iframe`,`generic`].includes(e.role)&&e.name){let n=t.get(e.role);n||(n=new Map,t.set(e.role,n));let a=n.get(e.name),o=i*100-r;(!a||a.sizeAndPosition<o)&&n.set(e.name,{node:e,sizeAndPosition:o})}return i}let r=new Map;e&&n(e,r,0);let i=new Map;n(t,i,0);let a=[];for(let[e,t]of i)for(let[n,i]of t)r.get(e)?.get(n)||a.push(i);return a.sort((e,t)=>t.sizeAndPosition-e.sizeAndPosition),a[0]?.node}function $i(e){return ta(e)?`'`+e.replace(/'/g,`''`)+`'`:e}function ea(e){return ta(e)?`"`+e.replace(/[\\"\x00-\x1f\x7f-\x9f]/g,e=>{switch(e){case`\\`:return`\\\\`;case`"`:return`\\"`;case`\b`:return`\\b`;case`\f`:return`\\f`;case`
52
+ `:return`\\n`;case`\r`:return`\\r`;case` `:return`\\t`;default:return`\\x`+e.charCodeAt(0).toString(16).padStart(2,`0`)}})+`"`:e}function ta(e){return!!(e.length===0||/^\s|\s$/.test(e)||/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f]/.test(e)||/^-/.test(e)||/[\n:](\s|$)/.test(e)||/\s#/.test(e)||/[\n\r]/.test(e)||/^[&*\],?!>|@"'#%]/.test(e)||/[{}`]/.test(e)||/^\[/.test(e)||!isNaN(Number(e))||[`y`,`n`,`yes`,`no`,`true`,`false`,`on`,`off`,`null`,`~`].includes(e.toLowerCase())||/^[-+]?\.(inf|nan)$/i.test(e))}function na(e,t={}){let n=[],r=t.convertStringsToRegex?aa:()=>!0,i=t.convertStringsToRegex?ia:e=>e,a=(e,t)=>{let r=ea(i(e));r&&n.push(ra(t)+`- text: `+r)},o=e=>{let n=e.role;if(e.name&&e.name.length<=900){let r=i(e.name);if(r){let i=t.convertStringsToRegex&&r!==e.name;n+=` `+(i?r:JSON.stringify(r))}}return e.checked===`mixed`&&(n+=` [checked=mixed]`),e.checked===!0&&(n+=` [checked]`),e.disabled&&(n+=` [disabled]`),e.expanded&&(n+=` [expanded]`),e.active&&(n+=` [active]`),(e.invalid===`grammar`||e.invalid===`spelling`)&&(n+=` [invalid=${e.invalid}]`),e.invalid===!0&&(n+=` [invalid]`),e.level&&(n+=` [level=${e.level}]`),e.pressed===`mixed`&&(n+=` [pressed=mixed]`),e.pressed===!0&&(n+=` [pressed]`),e.selected===!0&&(n+=` [selected]`),e.ariaHidden&&(n+=` [aria-hidden]`),e.ref&&(n+=` [ref=${e.ref}]`,e.cursor===`pointer`&&(n+=` [cursor=pointer]`)),e.box&&(n+=` [box=${e.box.x},${e.box.y},${e.box.width},${e.box.height}]`),n},s=(e,c)=>{if(e.role===`text`){a(e.text||``,c);return}t.lineToNode?.set(n.length,e);let l=ra(c)+`- `+$i(o(e)),u=[];if(e.url!==void 0&&u.push([`url`,e.url]),e.placeholder!==void 0&&u.push([`placeholder`,e.placeholder]),e.text===void 0&&!u.length&&!e.children?.length)n.push(l);else if(e.text!==void 0&&!u.length)r(e,e.text)?n.push(l+`: `+ea(i(e.text))):n.push(l);else{n.push(l+`:`);for(let[e,t]of u)n.push(ra(c+1)+`- /`+e+`: `+ea(t));if(e.text!==void 0)a(r(e,e.text)?e.text:``,c+1);else for(let t of e.children||[])typeof t==`string`?a(r(e,t)?t:``,c+1):s(t,c+1)}};for(let t of e)s(t,0);return n.join(`
53
+ `)}function ra(e){return` `.repeat(e)}function ia(e){let t=[{regex:/\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\b/,replacement:`[0-9a-fA-F-]+`},{regex:/\b[\d,.]+[bkmBKM]+\b/,replacement:`[\\d,.]+[bkmBKM]+`},{regex:/\b\d+[hmsp]+\b/,replacement:`\\d+[hmsp]+`},{regex:/\b[\d,.]+[hmsp]+\b/,replacement:`[\\d,.]+[hmsp]+`},{regex:/\b\d+,\d+\b/,replacement:`\\d+,\\d+`},{regex:/\b\d+\.\d{2,}\b/,replacement:`\\d+\\.\\d+`},{regex:/\b\d{2,}\.\d+\b/,replacement:`\\d+\\.\\d+`},{regex:/\b\d{2,}\b/,replacement:`\\d+`}],n=``,r=0,i=new RegExp(t.map(e=>`(`+e.regex.source+`)`).join(`|`),`g`);return e.replace(i,(i,...a)=>{let o=a[a.length-2],s=a.slice(0,-2);n+=Rt(e.slice(r,o));for(let e=0;e<s.length;e++)if(s[e]){let{replacement:r}=t[e];n+=r;break}return r=o+i.length,i}),n?(n+=Rt(e.slice(r)),String(new RegExp(n))):e}function aa(e,t){if(!t.length)return!1;if(!e.name)return!0;let n=t.length<=200&&e.name.length<=200?zt(t,e.name):``,r=t;for(;n&&r.includes(n);)r=r.replace(n,``);return r.trim().length/t.length>.1}function oa(e,t,n){return`internal:attr=[${e}=${Pt(t,n?.exact||!1)}]`}function sa(e){return e.split(`,`)}function ca(e){return e.includes(`,`)?JSON.stringify(e):e}function la(e,t){return`internal:testid=[${ca(e)}=${Pt(t,!0)}]`}function ua(e,t){return`internal:label=`+Nt(e,!!t?.exact)}function da(e,t){return oa(`alt`,e,t)}function fa(e,t){return oa(`title`,e,t)}function pa(e,t){return oa(`placeholder`,e,t)}function ma(e,t){return`internal:text=`+Nt(e,!!t?.exact)}function ha(e,t={}){let n=[];return t.checked!==void 0&&n.push([`checked`,String(t.checked)]),t.disabled!==void 0&&n.push([`disabled`,String(t.disabled)]),t.selected!==void 0&&n.push([`selected`,String(t.selected)]),t.expanded!==void 0&&n.push([`expanded`,String(t.expanded)]),t.includeHidden!==void 0&&n.push([`include-hidden`,String(t.includeHidden)]),t.level!==void 0&&n.push([`level`,String(t.level)]),t.name!==void 0&&n.push([`name`,Pt(t.name,!!t.exact)]),t.description!==void 0&&n.push([`description`,Pt(t.description,!!t.exact)]),t.pressed!==void 0&&n.push([`pressed`,String(t.pressed)]),`internal:role=${e}${n.map(([e,t])=>`[${e}=${t}]`).join(``)}`}function ga(e,t){_a(e,t.mode===`ai`?Oa:Da,t)}function _a(e,t,n){let r={snapshot:e,depth:-1,maxDepth:n.depth,ancestors:[],pendingContentRefs:new Set},i=(e,n)=>{let a=[],o=e=>{if(typeof e==`string`){a.push(e);return}r.depth=n+1;for(let n of t){let t=n.enter?.(e,r);if(t===`remove`)return;if(t===`unwrap`){e.children.forEach(o);return}}i(e,n+1),r.depth=n+1;for(let n of t){let t=n.exit?.(e,r);if(t===`remove`)return;if(t===`unwrap`){a.push(...e.children);return}}a.push(e)};r.ancestors.push(e),e.children.forEach(o),r.ancestors.pop(),e.children=a};for(let n of t)n.enter?.(e.root,r);i(e.root,-1),r.depth=-1;for(let n of t)n.exit?.(e.root,r)}function va(e){return e.role===`generic`&&e.children.every(e=>typeof e==`string`)}function ya(e,t){return!!e.ref&&Gi(e)&&!t.ancestors.some(e=>!!e.ref&&Gi(e))}var ba={name:`mergeStringChildren`,exit(e){let t=[],n=[],r=()=>{if(!n.length)return;let e=At(n.join(``));e&&t.push(e),n.length=0};for(let i of e.children)typeof i==`string`?n.push(i):(r(),t.push(i));r(),e.children=t,e.children.length===1&&e.children[0]===e.name&&(e.children=[])}},xa={name:`unwrapSingleChildGenerics`,exit(e,t){if(!(e.role!==`generic`||e.name||e.children.length>1||!e.children.every(e=>typeof e!=`string`&&!!e.ref))&&!(!e.children.length&&ya(e,t)))return`unwrap`}},Sa={name:`removeNamelessImages`,exit(e,t){if(e.role===`img`&&!e.name&&!e.children.length&&!ya(e,t))return`remove`}},Ca=new Set(`alertdialog.dialog.banner.complementary.contentinfo.form.main.navigation.region.search.application.document.figure.group.grid.listbox.menu.menubar.radiogroup.tablist.tabpanel.toolbar.tree.treegrid.table.columnheader.rowheader`.split(`.`)),wa={name:`removeRedundantNames`,enter(e,t){if(e.ref){for(let n of t.snapshot.info.get(e.ref)?.nameFromContentRefs||[])t.pendingContentRefs.add(n);!(t.maxDepth&&t.depth>t.maxDepth)&&!va(e)&&t.pendingContentRefs.delete(e.ref)}},exit(e,t){if(!e.ref)return;let n=t.snapshot.info.get(e.ref)?.nameFromContentRefs;if(n?.length)if(!Ca.has(e.role)&&n.every(e=>!t.pendingContentRefs.has(e)))e.name=``;else for(let e of n)t.pendingContentRefs.delete(e)}},Ta={name:`removeNameRepeatingChild`,exit(e,t){let n=t.ancestors[t.ancestors.length-1];if(!n?.name||e.role!==`generic`||e.active||Object.keys(e.props).length)return;let r=e.children.length===1&&typeof e.children[0]==`string`?e.children[0]:void 0,i=e.name?e.children.length?void 0:e.name:r;if(i&&i===n.name)return e.ref&&t.pendingContentRefs.add(e.ref),`remove`}},Ea={name:`inlineTextIntoGeneric`,exit(e){if(e.role!==`generic`||Object.keys(e.props).length||e.children.length!==1)return;let t=e.children[0];typeof t!=`string`&&(t.role!==`generic`||t.name||t.active||Object.keys(t.props).length||t.children.length===1&&typeof t.children[0]==`string`&&(e.children=[t.children[0]]))}},Da=[ba,xa],Oa=[ba,Sa,wa,Ea,Ta,xa],ka={};function Aa(e){ka=e}function ja(e,t){for(;t;){if(e.contains(t))return!0;t=Fa(t)}return!1}function Ma(e){if(e.parentElement)return e.parentElement;if(e.parentNode&&e.parentNode.nodeType===11&&e.parentNode.host)return e.parentNode.host}function Na(e){for(let t=e;t;t=Ma(t))if(t.hasAttribute(`inert`))return!0;return!1}function Pa(e){let t=e;for(;t.parentNode;)t=t.parentNode;if(t.nodeType===11||t.nodeType===9)return t}function Fa(e){for(;e.parentElement;)e=e.parentElement;return Ma(e)}function Ia(e,t,n){for(;e;){let r=e.closest(t);if(n&&r!==n&&r?.contains(n))return;if(r)return r;e=Fa(e)}}function La(e,t){let n=t===`::before`?qa:t===`::after`?Ja:Ka;if(n&&n.has(e))return n.get(e);let r=e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,t):void 0;return n?.set(e,r),r}function Ra(e,t){let n=Ya?.get(e);if(n!==void 0)return n;let r=za(e,t);return Ya?.set(e,r),r}function za(e,t){return t??=La(e),!t||!(!e.checkVisibility()&&!Va(e,t)||t.visibility!==`visible`)}function Ba(e){return e.multiple||e.size>1}function Va(e,t){if(ka.browserNameForWorkarounds!==`webkit`||e.nodeName!==`OPTION`||t.display===`none`)return!1;let n=e.closest(`select`);if(!n||!Ba(n))return!1;for(let t=e.parentElement;t&&t!==n;t=t.parentElement)if(La(t)?.display===`none`)return!1;return Ra(n)}function Ha(e){let t=La(e);if(!t)return{visible:!0,inline:!1};let n=t.cursor;if(t.display===`contents`){for(let t=e.firstChild;t;t=t.nextSibling){if(t.nodeType===1&&Ua(t))return{visible:!0,inline:!1,cursor:n};if(t.nodeType===3&&Ga(t))return{visible:!0,inline:!0,cursor:n}}return{visible:!1,inline:!1,cursor:n}}if(!Ra(e,t))return{cursor:n,visible:!1,inline:!1};let r=e.getBoundingClientRect();return{cursor:n,visible:r.width>0&&r.height>0,inline:t.display===`inline`}}function Ua(e){return Ha(e).visible}var Wa=Symbol(`playwrightTextNodeRange`);function Ga(e){let t=e.ownerDocument,n=t[Wa]??=t.createRange();n.selectNode(e);let r=n.getBoundingClientRect(),i=r.width>0&&r.height>0;return n.setStart(t,0),n.collapse(!0),i}function P(e){let t=e.tagName;if(typeof t==`string`){let e=t.charCodeAt(0);return e>=97&&e<=122?t.toUpperCase():t}return e instanceof HTMLFormElement?`FORM`:e.tagName.toUpperCase()}var Ka,qa,Ja,Ya,Xa=0;function Za(){++Xa,Ka??=new Map,qa??=new Map,Ja??=new Map,Ya??=new Map}function Qa(){--Xa||(Ka=void 0,qa=void 0,Ja=void 0,Ya=void 0)}function $a(e){return e.hasAttribute(`aria-label`)||e.hasAttribute(`aria-labelledby`)}var eo=`article:not([role]), aside:not([role]), main:not([role]), nav:not([role]), section:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]`,to=[[`aria-atomic`,void 0],[`aria-busy`,void 0],[`aria-controls`,void 0],[`aria-current`,void 0],[`aria-describedby`,void 0],[`aria-details`,void 0],[`aria-dropeffect`,void 0],[`aria-flowto`,void 0],[`aria-grabbed`,void 0],[`aria-hidden`,void 0],[`aria-keyshortcuts`,void 0],[`aria-label`,[`caption`,`code`,`deletion`,`emphasis`,`generic`,`insertion`,`paragraph`,`presentation`,`strong`,`subscript`,`superscript`]],[`aria-labelledby`,[`caption`,`code`,`deletion`,`emphasis`,`generic`,`insertion`,`paragraph`,`presentation`,`strong`,`subscript`,`superscript`]],[`aria-live`,void 0],[`aria-owns`,void 0],[`aria-relevant`,void 0],[`aria-roledescription`,[`generic`]]];function no(e,t){return to.some(([n,r])=>!r?.includes(t||``)&&e.hasAttribute(n))}function ro(e){return!Number.isNaN(Number(String(e.getAttribute(`tabindex`))))}function io(e){return!ts(e)&&(ao(e)||ro(e))}function ao(e){let t=P(e);return[`BUTTON`,`DETAILS`,`SELECT`,`TEXTAREA`].includes(t)?!0:t===`A`||t===`AREA`?e.hasAttribute(`href`):t===`INPUT`&&!e.hidden}var oo={A:e=>e.hasAttribute(`href`)?`link`:null,AREA:e=>e.hasAttribute(`href`)?`link`:null,ARTICLE:()=>`article`,ASIDE:()=>`complementary`,BLOCKQUOTE:()=>`blockquote`,BUTTON:()=>`button`,CAPTION:()=>`caption`,CODE:()=>`code`,DATALIST:()=>`listbox`,DD:()=>`definition`,DEL:()=>`deletion`,DETAILS:()=>`group`,DFN:()=>`term`,DIALOG:()=>`dialog`,DT:()=>`term`,EM:()=>`emphasis`,FIELDSET:()=>`group`,FIGURE:()=>`figure`,FOOTER:e=>Ia(e,eo)?null:`contentinfo`,FORM:e=>$a(e)?`form`:null,H1:()=>`heading`,H2:()=>`heading`,H3:()=>`heading`,H4:()=>`heading`,H5:()=>`heading`,H6:()=>`heading`,HEADER:e=>Ia(e,eo)?null:`banner`,HR:()=>`separator`,HTML:()=>`document`,IMG:e=>e.getAttribute(`alt`)===``&&!e.getAttribute(`title`)&&!no(e)&&!ro(e)?`presentation`:`img`,INPUT:e=>{let t=e.type.toLowerCase();if([`email`,`search`,`tel`,`text`,`url`,``].includes(t)){let n=yo(e,e.getAttribute(`list`))[0];return n&&P(n)===`DATALIST`?`combobox`:t===`search`?`searchbox`:`textbox`}return t===`hidden`?null:t===`file`?`button`:Ts[t]||`textbox`},INS:()=>`insertion`,LI:()=>`listitem`,MAIN:()=>`main`,MARK:()=>`mark`,MATH:()=>`math`,MENU:()=>`list`,METER:()=>`meter`,NAV:()=>`navigation`,OL:()=>`list`,OPTGROUP:()=>`group`,OPTION:()=>`option`,OUTPUT:()=>`status`,P:()=>`paragraph`,PROGRESS:()=>`progressbar`,SEARCH:()=>`search`,SECTION:e=>$a(e)?`region`:null,SELECT:e=>Ba(e)?`listbox`:`combobox`,STRONG:()=>`strong`,SUB:()=>`subscript`,SUP:()=>`superscript`,SVG:()=>`img`,TABLE:()=>`table`,TBODY:()=>`rowgroup`,TD:e=>{let t=Ia(e,`table`),n=t?po(t):``;return n===`grid`||n===`treegrid`?`gridcell`:`cell`},TEXTAREA:()=>`textbox`,TFOOT:()=>`rowgroup`,TH:e=>{let t=e.getAttribute(`scope`);if(t===`col`||t===`colgroup`)return`columnheader`;if(t===`row`||t===`rowgroup`)return`rowheader`;let n=e.nextElementSibling,r=e.previousElementSibling,i=e.parentElement&&P(e.parentElement)===`TR`?e.parentElement:void 0;if(!n&&!r){if(i){let e=Ia(i,`table`);if(e&&e.rows.length<=1)return null}return`columnheader`}return so(n)&&so(r)?`columnheader`:co(n)||co(r)?`rowheader`:`columnheader`},THEAD:()=>`rowgroup`,TIME:()=>`time`,TR:()=>`row`,UL:()=>`list`};function so(e){return!!e&&P(e)===`TH`}function co(e){return!e||P(e)!==`TD`?!1:!!(e.textContent?.trim()||e.children.length>0)}var lo={DD:[`DL`,`DIV`],DIV:[`DL`],DT:[`DL`,`DIV`],LI:[`OL`,`UL`],TBODY:[`TABLE`],TD:[`TR`],TFOOT:[`TABLE`],TH:[`TR`],THEAD:[`TABLE`],TR:[`THEAD`,`TBODY`,`TFOOT`,`TABLE`]};function uo(e){let t=oo[P(e)]?.(e)||``;if(!t)return null;let n=e;for(;n;){let e=Ma(n),t=lo[P(n)];if(!t||!e||!t.includes(P(e)))break;let r=po(e);if((r===`none`||r===`presentation`)&&!mo(e,r))return r;n=e}return t}var fo=`alert.alertdialog.application.article.banner.blockquote.button.caption.cell.checkbox.code.columnheader.combobox.complementary.contentinfo.definition.deletion.dialog.directory.document.emphasis.feed.figure.form.generic.grid.gridcell.group.heading.img.insertion.link.list.listbox.listitem.log.main.mark.marquee.math.meter.menu.menubar.menuitem.menuitemcheckbox.menuitemradio.navigation.none.note.option.paragraph.presentation.progressbar.radio.radiogroup.region.row.rowgroup.rowheader.scrollbar.search.searchbox.separator.slider.spinbutton.status.strong.subscript.superscript.switch.tab.table.tablist.tabpanel.term.textbox.time.timer.toolbar.tooltip.tree.treegrid.treeitem`.split(`.`);function po(e){return(e.getAttribute(`role`)||``).toLowerCase().split(` `).map(e=>e.trim()).find(e=>fo.includes(e))||null}function mo(e,t){return no(e,t)||io(e)}function F(e){let t=bs?.get(e);if(t!==void 0)return t;let n=ho(e);return bs?.set(e,n),n}function ho(e){let t=po(e);if(!t)return uo(e);if(t===`none`||t===`presentation`){let t=uo(e);if(mo(e,t))return t}return t}function go(e){return e===null?void 0:e.toLowerCase()===`true`}function _o(e){return[`STYLE`,`SCRIPT`,`NOSCRIPT`,`TEMPLATE`].includes(P(e))}function I(e){if(_o(e))return!0;let t=La(e),n=e.nodeName===`SLOT`;if(t?.display===`contents`&&!n){for(let t=e.firstChild;t;t=t.nextSibling)if(t.nodeType===1&&!I(t)||t.nodeType===3&&Ga(t))return!1;return!0}return!(e.nodeName===`OPTION`&&e.closest(`select`))&&!n&&!Ra(e,t)||L(e)}function L(e){let t=hs?.get(e);if(t===void 0){if(t=!1,e.parentElement&&e.parentElement.shadowRoot&&!e.assignedSlot&&(t=!0),!t){let n=La(e);t=!n||n.display===`none`||go(e.getAttribute(`aria-hidden`))===!0}if(!t){let n=Ma(e);n&&(t=L(n))}hs?.set(e,t)}return t}function vo(e){let t=e.parentElement;return t?!!(t.shadowRoot&&!e.assignedSlot||P(t)===`DETAILS`&&!t.open):!1}function yo(e,t){if(!t)return[];let n=Pa(e);if(!n)return[];try{let e=t.split(/[ \t\n\f\r]+/).filter(e=>!!e),r=[];for(let t of e){let e=n.querySelector(`#`+CSS.escape(t));e&&!r.includes(e)&&r.push(e)}return r}catch{return[]}}function bo(e){return e.trim()}function xo(e){return e.split(`\xA0`).map(e=>e.replace(/\r\n/g,`
54
+ `).replace(/[\u200b\u00ad]/g,``).replace(/\s\s*/g,` `)).join(`\xA0`).trim()}function So(e,t){let n=[...e.querySelectorAll(t)];for(let r of yo(e,e.getAttribute(`aria-owns`)))r.matches(t)&&n.push(r),n.push(...r.querySelectorAll(t));return n}function Co(e,t){let n=t===`::before`?_s:t===`::after`?vs:gs;if(n?.has(e))return n?.get(e);let r=La(e,t),i;if(r){let n=r.content;n&&n!==`none`&&n!==`normal`&&r.display!==`none`&&r.visibility!==`hidden`&&(i=wo(e,n,!!t))}return t&&i!==void 0&&(r?.display||`inline`)!==`inline`&&(i=` `+i+` `),n&&n.set(e,i),i}function wo(e,t,n){if(!(!t||t===`none`||t===`normal`))try{let r=Oe(t).filter(e=>!(e instanceof Me)),i=r.findIndex(e=>e instanceof Qe&&e.value===`/`);if(i!==-1)r=r.slice(i+1);else if(!n)return;let a=[],o=0;for(;o<r.length;)if(r[o]instanceof it)a.push(r[o].value),o++;else if(o+2<r.length&&r[o]instanceof tt&&r[o].value===`attr`&&r[o+1]instanceof et&&r[o+2]instanceof We){let t=r[o+1].value;a.push(e.getAttribute(t)||``),o+=3}else return;return a.join(``)}catch{}}function To(e){let t=e.ariaLabelledByElements||yo(e,e.getAttribute(`aria-labelledby`));return t?.length?[...t]:null}function Eo(e,t){let n=[`button`,`cell`,`checkbox`,`columnheader`,`gridcell`,`heading`,`link`,`menuitem`,`menuitemcheckbox`,`menuitemradio`,`option`,`radio`,`row`,`rowheader`,`switch`,`tab`,`tooltip`,`treeitem`].includes(e),r=t&&[``,`caption`,`code`,`contentinfo`,`definition`,`deletion`,`emphasis`,`insertion`,`list`,`listitem`,`mark`,`none`,`paragraph`,`presentation`,`region`,`row`,`rowgroup`,`section`,`strong`,`subscript`,`superscript`,`table`,`term`,`time`].includes(e);return n||r}function Do(e,t,n){if([`caption`,`code`,`definition`,`deletion`,`emphasis`,`generic`,`insertion`,`mark`,`paragraph`,`presentation`,`strong`,`subscript`,`suggestion`,`superscript`,`term`,`time`].includes(F(e)||``))return{...Es(),derivedFromContent:!1};let r={value:!1},i=R(e,{includeHidden:t,collectElements:n,outDerivedFromContent:r,visitedElements:new Set,embeddedInTargetElement:`self`});return{text:xo(i.text),elements:i.elements,derivedFromContent:r.value}}function Oo(e,t){let n=t?ls:cs,r=n?.get(e);return r===void 0&&(r=Do(e,t,!0),n?.set(e,r)),r}function ko(e,t){let n=(t?ls:cs)?.get(e);if(n!==void 0)return n.text;let r=t?ds:us,i=r?.get(e);return i===void 0&&(i=Do(e,t,!1).text,r?.set(e,i)),i}function Ao(e,t){let n=t?ps:fs,r=n?.get(e);if(r===void 0){if(r={text:``,derivedFromContent:!1},e.hasAttribute(`aria-describedby`)){let n=yo(e,e.getAttribute(`aria-describedby`));r.text=xo(n.map(e=>R(e,{includeHidden:t,visitedElements:new Set,embeddedInDescribedBy:{element:e,hidden:I(e)}}).text).join(` `)),r.derivedFromContent=n.some(t=>t===e||e.contains(t))}else e.hasAttribute(`aria-description`)?r.text=xo(e.getAttribute(`aria-description`)||``):r.text=xo(e.getAttribute(`title`)||``);n?.set(e,r)}return r}var jo=[`application`,`checkbox`,`columnheader`,`combobox`,`gridcell`,`listbox`,`radiogroup`,`rowheader`,`searchbox`,`slider`,`spinbutton`,`switch`,`textbox`,`tree`];function Mo(e){let t=e.getAttribute(`aria-invalid`)?.toLowerCase();return!t||t.trim()===``||t===`false`?`false`:t===`true`||t===`grammar`||t===`spelling`?t:`true`}function No(e){return`validity`in e&&e.validity?.valid===!1}function Po(e){let t=ms,n=ms?.get(e);if(n===void 0){n=``;let r=Mo(e)!==`false`,i=No(e);(r||i)&&(n=yo(e,e.getAttribute(`aria-errormessage`)).map(e=>xo(R(e,{visitedElements:new Set,embeddedInDescribedBy:{element:e,hidden:I(e)}}).text)).join(` `).trim()),t?.set(e,n)}return n}function Fo(e){return e.embeddedInTargetElement===`self`||e.embeddedInTargetElement===`descendant`}function R(e,t){if(t.visitedElements.has(e))return Es();let n={...t,embeddedInTargetElement:t.embeddedInTargetElement===`self`?`descendant`:t.embeddedInTargetElement};if(!t.includeHidden&&(_o(e)||!Io(t)&&I(e)))return t.visitedElements.add(e),Es();let r=To(e);if(!t.embeddedInLabelledBy){let n=Ds((r||[]).map(e=>R(e,{...t,embeddedInLabelledBy:{element:e,hidden:I(e)},embeddedInDescribedBy:void 0,embeddedInTargetElement:void 0,embeddedInLabel:void 0,embeddedInNativeTextAlternative:void 0})),` `,t.collectElements);if(n.text)return t.outDerivedFromContent&&Fo(t)&&(r||[]).some(t=>t===e||e.contains(t))&&(t.outDerivedFromContent.value=!0),n}let i=F(e)||``,a=P(e);if(t.embeddedInLabel||t.embeddedInLabelledBy||t.embeddedInTargetElement===`descendant`){let o=[...e.labels||[]].includes(e),s=(r||[]).includes(e);if(!o&&!s){if(i===`textbox`||i===`searchbox`)return t.visitedElements.add(e),z(a===`INPUT`||a===`TEXTAREA`?e.value:e.textContent,e,t.collectElements);if([`combobox`,`listbox`].includes(i)){t.visitedElements.add(e);let r;if(a===`SELECT`)r=[...e.selectedOptions],!r.length&&e.options.length&&r.push(e.options[0]);else{let t=i===`combobox`?So(e,`*`).find(e=>F(e)===`listbox`):e;r=t?So(t,`[aria-selected="true" i]`).filter(e=>F(e)===`option`):[]}return!r.length&&a===`INPUT`?z(e.value,e,t.collectElements):Ds(r.map(e=>R(e,n)),` `,t.collectElements)}if([`progressbar`,`scrollbar`,`slider`,`spinbutton`,`meter`].includes(i))return t.visitedElements.add(e),e.hasAttribute(`aria-valuetext`)?z(e.getAttribute(`aria-valuetext`),e,t.collectElements):e.hasAttribute(`aria-valuenow`)?z(e.getAttribute(`aria-valuenow`),e,t.collectElements):z(e.getAttribute(`value`),e,t.collectElements);if([`menu`].includes(i))return t.visitedElements.add(e),Es()}}let o=e.getAttribute(`aria-label`)||``;if(bo(o))return t.visitedElements.add(e),z(o,e,t.collectElements);if(![`presentation`,`none`].includes(i)){if(a===`INPUT`&&[`button`,`submit`,`reset`].includes(e.type)){t.visitedElements.add(e);let n=e.value||``;return bo(n)?z(n,e,t.collectElements):e.type===`submit`?z(`Submit`,e,t.collectElements):e.type===`reset`?z(`Reset`,e,t.collectElements):z(e.getAttribute(`title`)||``,e,t.collectElements)}if(a===`INPUT`&&e.type===`file`){t.visitedElements.add(e);let n=e.labels||[];return n.length&&!t.embeddedInLabelledBy?os(n,t):z(`Choose File`,e,t.collectElements)}if(a===`INPUT`&&e.type===`image`){t.visitedElements.add(e);let n=e.labels||[];if(n.length&&!t.embeddedInLabelledBy)return os(n,t);let r=e.getAttribute(`alt`)||``;if(bo(r))return z(r,e,t.collectElements);let i=e.getAttribute(`title`)||``;return bo(i)?z(i,e,t.collectElements):z(`Submit`,e,t.collectElements)}if(!r&&a===`BUTTON`){t.visitedElements.add(e);let n=e.labels||[];if(n.length)return os(n,t)}if(!r&&a===`OUTPUT`){t.visitedElements.add(e);let n=e.labels||[];return n.length?os(n,t):z(e.getAttribute(`title`)||``,e,t.collectElements)}if(!r&&(a===`TEXTAREA`||a===`SELECT`||a===`INPUT`||a===`METER`||a===`PROGRESS`)){t.visitedElements.add(e);let n=e.labels||[];if(n.length)return os(n,t);let r=a===`INPUT`&&[`text`,`password`,`number`,`search`,`tel`,`email`,`url`].includes(e.type)||a===`TEXTAREA`,i=e.getAttribute(`placeholder`)||``,o=e.getAttribute(`title`)||``;return z(!r||o?o:i,e,t.collectElements)}if(!r&&a===`FIELDSET`){t.visitedElements.add(e);for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(P(t)===`LEGEND`)return R(t,{...n,embeddedInNativeTextAlternative:{element:t,hidden:I(t)}});return z(e.getAttribute(`title`)||``,e,t.collectElements)}if(!r&&a===`FIGURE`){t.visitedElements.add(e);for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(P(t)===`FIGCAPTION`)return R(t,{...n,embeddedInNativeTextAlternative:{element:t,hidden:I(t)}});return z(e.getAttribute(`title`)||``,e,t.collectElements)}if(a===`IMG`){t.visitedElements.add(e);let n=e.getAttribute(`alt`)||``;return bo(n)?z(n,e,t.collectElements):z(e.getAttribute(`title`)||``,e,t.collectElements)}if(a===`TABLE`){t.visitedElements.add(e);for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(P(t)===`CAPTION`)return R(t,{...n,embeddedInNativeTextAlternative:{element:t,hidden:I(t)}});let r=e.getAttribute(`summary`)||``;if(r)return z(r,e,t.collectElements)}if(a===`AREA`){t.visitedElements.add(e);let n=e.getAttribute(`alt`)||``;return bo(n)?z(n,e,t.collectElements):z(e.getAttribute(`title`)||``,e,t.collectElements)}if(a===`SVG`||e.ownerSVGElement){t.visitedElements.add(e);for(let t=e.firstElementChild;t;t=t.nextElementSibling)if(P(t)===`TITLE`&&t.ownerSVGElement)return R(t,{...n,embeddedInLabelledBy:{element:t,hidden:I(t)}})}if(e.ownerSVGElement&&a===`A`){let n=e.getAttribute(`xlink:title`)||``;if(bo(n))return t.visitedElements.add(e),z(n,e,t.collectElements)}}let s=a===`SUMMARY`&&![`presentation`,`none`].includes(i);if(Eo(i,t.embeddedInTargetElement===`descendant`)||s||t.embeddedInLabelledBy||t.embeddedInDescribedBy||t.embeddedInLabel||t.embeddedInNativeTextAlternative){t.visitedElements.add(e);let r=Lo(e,n);if(t.embeddedInTargetElement===`self`?bo(r.text):r.text)return t.outDerivedFromContent&&Fo(t)&&bo(r.text)&&(t.outDerivedFromContent.value=!0),bo(r.text)&&r.elements?.add(e),r}if(![`presentation`,`none`].includes(i)||a===`IFRAME`||a===`FRAME`){t.visitedElements.add(e);let n=e.getAttribute(`title`)||``;if(bo(n))return z(n,e,t.collectElements)}return t.visitedElements.add(e),Es()}function Io(e){return!!e.embeddedInLabelledBy?.hidden||!!e.embeddedInDescribedBy?.hidden||!!e.embeddedInNativeTextAlternative?.hidden||!!e.embeddedInLabel?.hidden}function Lo(e,t){let n=[],r=!t.includeHidden&&!Io(t),i=t.collectElements?new Set:void 0,a=(e,a)=>{if(!(a&&e.assignedSlot)){if(e.nodeType===1){let r=La(e)?.display||`inline`,a=R(e,t),o=a.text;for(let e of a.elements||[])i?.add(e);(r!==`inline`||e.nodeName===`BR`)&&(o=` `+o+` `),n.push(o)}else if(e.nodeType===3){if(r&&vo(e))return;n.push(e.textContent||``)}}};n.push(Co(e,`::before`)||``);let o=Co(e);if(o!==void 0)n.push(o);else{let t=e.nodeName===`SLOT`?e.assignedNodes():[];if(t.length)for(let e of t)a(e,!1);else{for(let t=e.firstChild;t;t=t.nextSibling)a(t,!0);if(e.shadowRoot)for(let t=e.shadowRoot.firstChild;t;t=t.nextSibling)a(t,!0);for(let t of yo(e,e.getAttribute(`aria-owns`)))a(t,!0)}}return n.push(Co(e,`::after`)||``),{text:n.join(``),elements:i}}var Ro=[`gridcell`,`option`,`row`,`tab`,`rowheader`,`columnheader`,`treeitem`];function zo(e){return P(e)===`OPTION`?e.selected:Ro.includes(F(e)||``)?go(e.getAttribute(`aria-selected`))===!0:!1}var Bo=[`checkbox`,`menuitemcheckbox`,`option`,`radio`,`switch`,`menuitemradio`,`treeitem`];function Vo(e){let t=Wo(e,!0);return t!==`error`&&t}function Ho(e){return Wo(e,!0)}function Uo(e){return Wo(e,!1)}function Wo(e,t){let n=P(e);if(t&&n===`INPUT`&&e.indeterminate)return`mixed`;if(n===`INPUT`&&[`checkbox`,`radio`].includes(e.type))return e.checked;if(Bo.includes(F(e)||``)){let n=e.getAttribute(`aria-checked`)?.toLowerCase();return n===`true`?!0:t&&n===`mixed`?`mixed`:!1}return`error`}var Go=[`checkbox`,`combobox`,`grid`,`gridcell`,`listbox`,`radiogroup`,`slider`,`spinbutton`,`textbox`,`columnheader`,`rowheader`,`searchbox`,`switch`,`treegrid`];function Ko(e){let t=P(e);return[`INPUT`,`TEXTAREA`,`SELECT`].includes(t)?e.hasAttribute(`readonly`):Go.includes(F(e)||``)?go(e.getAttribute(`aria-readonly`))===!0:!e.isContentEditable&&`error`}var qo=[`button`];function Jo(e){if(qo.includes(F(e)||``)){let t=e.getAttribute(`aria-pressed`)?.toLowerCase();if(t===`true`)return!0;if(t===`mixed`)return`mixed`}return!1}var Yo=[`application`,`button`,`checkbox`,`combobox`,`gridcell`,`link`,`listbox`,`menuitem`,`row`,`rowheader`,`tab`,`treeitem`,`columnheader`,`menuitemcheckbox`,`menuitemradio`,`rowheader`,`switch`];function Xo(e){if(P(e)===`DETAILS`)return e.open;if(Yo.includes(F(e)||``))return go(e.getAttribute(`aria-expanded`))}var Zo=[`heading`,`listitem`,`row`,`treeitem`];function Qo(e){let t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[P(e)];if(t)return t;if(Zo.includes(F(e)||``)){let t=e.getAttribute(`aria-level`),n=t===null?NaN:Number(t);if(Number.isInteger(n)&&n>=1)return n}return 0}var $o=`application.button.composite.gridcell.group.input.link.menuitem.scrollbar.separator.tab.checkbox.columnheader.combobox.grid.listbox.menu.menubar.menuitemcheckbox.menuitemradio.option.radio.radiogroup.row.rowheader.searchbox.select.slider.spinbutton.switch.tablist.textbox.toolbar.tree.treegrid.treeitem`.split(`.`);function es(e){return ts(e)||is(e)}function ts(e){return[`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`OPTION`,`OPTGROUP`].includes(P(e))&&(e.hasAttribute(`disabled`)||ns(e)||rs(e))}function ns(e){return P(e)===`OPTION`&&!!e.closest(`OPTGROUP[DISABLED]`)}function rs(e){let t=e?.closest(`FIELDSET[DISABLED]`);if(!t)return!1;let n=t.querySelector(`:scope > LEGEND`);return!n||!n.contains(e)}function is(e){return $o.includes(F(e)||``)?as(e):!1}function as(e){let t=xs?.get(e);if(t===void 0){let n=(e.getAttribute(`aria-disabled`)||``).toLowerCase();if(n===`true`)t=!0;else if(n===`false`)t=!1;else{let n=Ma(e);t=n?as(n):!1}xs?.set(e,t)}return t}function os(e,t){return Ds([...e].map(e=>R(e,{...t,embeddedInLabel:{element:e,hidden:I(e)},embeddedInNativeTextAlternative:void 0,embeddedInLabelledBy:void 0,embeddedInDescribedBy:void 0,embeddedInTargetElement:void 0})).filter(e=>!!e.text),` `,t.collectElements)}function ss(e){let t=ys,n=e,r,i=[];for(;n;n=Ma(n)){let e=t.get(n);if(e!==void 0){r=e;break}i.push(n);let a=La(n);if(!a){r=!0;break}let o=a.pointerEvents;if(o){r=o!==`none`;break}}r===void 0&&(r=!0);for(let e of i)t.set(e,r);return r}var cs,ls,us,ds,fs,ps,ms,hs,gs,_s,vs,ys,bs,xs,Ss=0;function Cs(){Za(),++Ss,bs??=new Map,xs??=new Map,cs??=new Map,ls??=new Map,us??=new Map,ds??=new Map,fs??=new Map,ps??=new Map,ms??=new Map,hs??=new Map,gs??=new Map,_s??=new Map,vs??=new Map,ys??=new Map}function ws(){--Ss||(cs=void 0,ls=void 0,us=void 0,ds=void 0,fs=void 0,ps=void 0,ms=void 0,hs=void 0,gs=void 0,_s=void 0,vs=void 0,ys=void 0,bs=void 0,xs=void 0),Qa()}var Ts={button:`button`,checkbox:`checkbox`,image:`button`,number:`spinbutton`,radio:`radio`,range:`slider`,reset:`button`,submit:`button`};function Es(){return{text:``}}function z(e,t,n){return{text:e||``,elements:e&&n?new Set([t]):void 0}}function Ds(e,t,n){let r;if(n){r=new Set;for(let t of e)for(let e of t.elements||[])r.add(e)}return{text:e.map(e=>e.text).join(t),elements:r}}var Os=0;function ks(e){let t=e.boxes;return e.mode===`ai`?{visibility:`ariaOrVisible`,refs:`interactable`,refPrefix:e.refPrefix,includeGenericRole:!0,renderActive:!e.doNotRenderActive,renderCursorPointer:!0,renderBoxes:t}:e.mode===`autoexpect`?{visibility:`ariaAndVisible`,refs:`none`,renderBoxes:t}:{visibility:`aria`,refs:`none`,renderBoxes:t}}function As(e,t){let n=ks(t),r=new Set,i=new Map,a={root:{role:`fragment`,name:``,children:[],props:{},box:Ha(e),receivesPointerEvents:!0},info:new Map,refs:new Map,iframeRefs:[]};Ks(a.root,e);let o=(t,o,c)=>{if(r.has(o))return;if(r.add(o),o.nodeType===Node.TEXT_NODE&&o.nodeValue){if(!c||vo(o))return;let e=o.nodeValue;t.role!==`textbox`&&e&&t.children.push(o.nodeValue||``);return}if(o.nodeType!==Node.ELEMENT_NODE)return;let l=o,u=!I(l),d=u;if(n.visibility===`ariaOrVisible`&&(d=u||Ua(l)),n.visibility===`ariaAndVisible`&&(d=u&&Ua(l)),n.visibility===`aria`&&!d)return;let f=[];if(l.hasAttribute(`aria-owns`)){let t=l.getAttribute(`aria-owns`).split(/\s+/);for(let n of t){let t=e.ownerDocument.getElementById(n);t&&f.push(t)}}let p=d?Ms(l,n,i):null;p&&l.getAttribute(`aria-hidden`)?.toLowerCase()===`true`&&(p.props[`aria-hidden`]=`true`);let m;if(p&&(p.ref&&(m={element:l,nameFromContentRefs:[]},a.info.set(p.ref,m),a.refs.set(l,p.ref),p.role===`iframe`&&a.iframeRefs.push(p.ref)),t.children.push(p)),s(p||t,l,f,d),m)for(let e of i.get(p)||[]){let t=a.refs.get(e);t&&t!==p.ref&&m.nameFromContentRefs.push(t)}};function s(e,t,n,r){let i=(La(t)?.display||`inline`)!==`inline`||t.nodeName===`BR`?` `:``;i&&e.children.push(i),e.children.push(Co(t,`::before`)||``);let a=t.nodeName===`SLOT`?t.assignedNodes():[];if(a.length)for(let t of a)o(e,t,r);else{for(let n=t.firstChild;n;n=n.nextSibling)n.assignedSlot||o(e,n,r);if(t.shadowRoot)for(let n=t.shadowRoot.firstChild;n;n=n.nextSibling)o(e,n,r)}for(let t of n)o(e,t,r);if(e.children.push(Co(t,`::after`)||``),i&&e.children.push(i),e.children.length===1&&e.name===e.children[0]&&(e.children=[]),e.role===`link`&&t.hasAttribute(`href`)){let n=t.getAttribute(`href`);e.props.url=Lt(n)}if(e.role===`textbox`&&t.hasAttribute(`placeholder`)&&t.getAttribute(`placeholder`)!==e.name){let n=t.getAttribute(`placeholder`);e.props.placeholder=n}}Cs();try{o(a.root,e,!0)}finally{ws()}return ga(a,t),a}function js(e,t){if(t.refs===`none`||t.refs===`interactable`&&(!e.box.visible||!e.receivesPointerEvents))return;let n=Gs(e),r=n._ariaRef;(!r||r.role!==e.role||r.name!==e.name)&&(r={role:e.role,name:e.name,ref:(t.refPrefix??``)+`e`+ ++Os},n._ariaRef=r),e.ref=r.ref}function Ms(e,t,n){let r=e.ownerDocument.activeElement===e&&e.ownerDocument.hasFocus();if(e.nodeName===`IFRAME`||e.nodeName===`FRAME`){let n={role:`iframe`,name:``,children:[],props:{},box:Ha(e),receivesPointerEvents:!0,active:r};return Ks(n,e),js(n,t),n}let i=t.includeGenericRole?`generic`:null,a=F(e)??i;if(!a||a===`presentation`||a===`none`)return null;let o=Oo(e,!1),s=ss(e),c=Ha(e);if(a===`generic`&&c.inline&&e.childNodes.length===1&&e.childNodes[0].nodeType===Node.TEXT_NODE)return null;let l={role:a,name:At(o.text),children:[],props:{},box:c,receivesPointerEvents:s,active:r};if(Ks(l,e),n.set(l,o.elements),js(l,t),Bo.includes(a)&&(l.checked=Vo(e)),$o.includes(a)&&(l.disabled=es(e)),Yo.includes(a)&&(l.expanded=Xo(e)),jo.includes(a)){let t=Mo(e);l.invalid=t===`false`?!1:t===`true`||t}return Zo.includes(a)&&(l.level=Qo(e)),qo.includes(a)&&(l.pressed=Jo(e)),Ro.includes(a)&&(l.selected=zo(e)),(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&e.type!==`checkbox`&&e.type!==`radio`&&e.type!==`file`&&(l.children=[e.value]),l}function Ns(e,t){return t?e?typeof t==`string`?e===t:!!e.match(new RegExp(t.pattern)):!1:!0}function Ps(e,t){if(!t?.normalized)return!0;if(!e)return!1;if(e===t.normalized||e===t.raw)return!0;let n=Is(t);return n?!!e.match(n):!1}var Fs=Symbol(`cachedRegex`);function Is(e){if(e[Fs]!==void 0)return e[Fs];let{raw:t}=e,n=t.startsWith(`/`)&&t.endsWith(`/`)&&t.length>1,r;try{r=n?new RegExp(t.slice(1,-1)):null}catch{r=null}return e[Fs]=r,r}function Ls(e,t){let n=As(e,{mode:`default`}),r=Hs(n.root,t,!1,!1),{json:i}=Us(n,{mode:`default`});return{matches:r,received:{raw:na(i),regex:na(i,{convertStringsToRegex:!0})}}}function Rs(e,t){let n=As(e,{mode:`default`}).root;return Hs(n,t,!0,!1).map(e=>Gs(e))}function zs(e,t,n){return typeof e==`string`&&t.kind===`text`?Ps(e,t.text):typeof e!=`object`||!e||t.kind!==`role`||t.role!==`fragment`&&t.role!==e.role||t.checked!==void 0&&t.checked!==e.checked||t.disabled!==void 0&&t.disabled!==e.disabled||t.expanded!==void 0&&t.expanded!==e.expanded||t.invalid!==void 0&&t.invalid!==e.invalid||t.level!==void 0&&t.level!==e.level||t.pressed!==void 0&&t.pressed!==e.pressed||t.selected!==void 0&&t.selected!==e.selected||!Ns(e.name,t.name)||!Ps(e.props.url,t.props?.url)?!1:t.containerMode===`contain`?Vs(e.children||[],t.children||[]):t.containerMode===`equal`?Bs(e.children||[],t.children||[],!1):t.containerMode===`deep-equal`||n?Bs(e.children||[],t.children||[],!0):Vs(e.children||[],t.children||[])}function Bs(e,t,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!zs(e[r],t[r],n))return!1;return!0}function Vs(e,t){if(t.length>e.length)return!1;let n=e.slice(),r=t.slice();for(let e of r){let t=n.shift();for(;t&&!zs(t,e,!1);)t=n.shift();if(!t)return!1}return!0}function Hs(e,t,n,r){let i=[],a=(e,o)=>{if(zs(e,t,r)){let t=typeof e==`string`?o:e;return t&&i.push(t),!n}if(typeof e==`string`)return!1;for(let t of e.children||[])if(a(t,e))return!0;return!1};return a(e,null),i}function Us(e,t){let n=ks(t),r={},i=(e,a,o)=>{e.role===`iframe`&&e.ref&&(r[e.ref]=a);let s={role:e.role};if(e.name&&(s.name=e.name),(e.checked===`mixed`||e.checked===!0)&&(s.checked=e.checked),e.disabled&&(s.disabled=!0),e.expanded&&(s.expanded=!0),e.active&&n.renderActive&&(s.active=!0),e.invalid&&(s.invalid=e.invalid),e.level&&(s.level=e.level),(e.pressed===`mixed`||e.pressed===!0)&&(s.pressed=e.pressed),e.selected===!0&&(s.selected=!0),e.ref&&(s.ref=e.ref,o&&Gi(e)&&(s.cursor=`pointer`)),n.renderBoxes){let t=Gs(e);if(t){let e=t.getBoundingClientRect();s.box={x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height)}}}e.props.url!==void 0&&(s.url=e.props.url),e.props.placeholder!==void 0&&(s.placeholder=e.props.placeholder),e.props[`aria-hidden`]!==void 0&&(s.ariaHidden=!0);let c=e.children.length===1&&typeof e.children[0]==`string`?e.children[0]:void 0,l=!!t.depth&&a===t.depth;if(c!==void 0)s.text=c;else if(!l&&e.children.length){let t=!!e.ref&&o&&Gi(e);s.children=e.children.map(e=>typeof e==`string`?e:i(e,a+1,o&&!t))}return s},a=[],o=e.root.role===`fragment`?e.root.children:[e.root];for(let e of o)typeof e==`string`?a.push({role:`text`,text:e}):a.push(i(e,0,!!n.renderCursorPointer));return{json:a,iframeDepths:r}}var Ws=Symbol(`element`);function Gs(e){return e[Ws]}function Ks(e,t){e[Ws]=t}function qs(e,t){let n=Qi(e,t);return n?Gs(n):void 0}var Js=`:host{color:#333;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:system-ui,Ubuntu,Droid Sans,sans-serif;font-size:13px}svg{height:0;position:absolute}x-pw-tooltip{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background-color:#fff;border-radius:6px;flex-direction:column;max-width:600px;padding:0;font-size:12.8px;font-weight:400;line-height:1.5;display:none;position:absolute;top:0;left:0;overflow:hidden;box-shadow:0 .5rem 1.2rem #0000004d}x-pw-tooltip-line{-webkit-user-select:none;user-select:none;cursor:pointer;max-width:600px;padding:6px;display:flex}x-pw-tooltip-footer{-webkit-user-select:none;user-select:none;color:#777;max-width:600px;padding:6px;display:flex}x-pw-dialog{pointer-events:auto;z-index:10;background-color:#fff;border-radius:6px;flex-direction:column;font-size:13px;display:flex;position:absolute;box-shadow:0 .5rem 1.2rem #0000004d}x-pw-dialog:not(.autosize){width:400px;height:150px}x-pw-dialog-body{flex-direction:column;flex:auto;display:flex}x-pw-dialog-body label{flex-direction:row;align-items:center;margin:5px 8px;display:flex}x-pw-highlight{width:0;height:0;position:absolute;top:0;left:0}x-pw-action-point{z-index:2;background:red;border-radius:10px;width:20px;height:20px;margin:-10px 0 0 -10px;position:absolute}x-pw-screencast-highlight,x-pw-screencast-point,x-pw-title{animation:pw-fade-out var(--pw-fade-duration) ease-out var(--pw-fade-delay,0s) forwards}x-pw-screencast-highlight,x-pw-screencast-point{pointer-events:none;position:absolute}x-pw-screencast-highlight{z-index:1}x-pw-screencast-point{z-index:2;width:0;height:0;overflow:visible;translate:-50% -50%}x-pw-action-cursor{pointer-events:none;z-index:4;filter:drop-shadow(0 1px 1.5px #00000059);width:14px;height:21px;position:absolute}x-pw-action-cursor svg{width:100%;height:100%;position:static;overflow:visible}x-pw-title{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);color:#fff;white-space:nowrap;-webkit-user-select:none;user-select:none;z-index:3;background-color:#00000080;border-radius:6px;padding:6px;font-size:24px;line-height:1.4;position:absolute}x-pw-user-overlays,x-pw-user-overlay{position:absolute;inset:0}@keyframes pw-fade-out{0%{opacity:1}to{opacity:0}}x-pw-separator{background:#949494e6;height:1px;margin:6px 9px}x-pw-tool-gripper{cursor:grab;width:24px;height:28px;margin:2px 0}x-pw-tool-gripper:active{cursor:grabbing}x-pw-tool-gripper>x-div{clip-path:url(#icon-gripper);background-color:#555;width:16px;height:16px;margin:6px 4px}x-pw-tools-list>label{-webkit-user-select:none;user-select:none;align-items:center;margin:0 10px;display:flex}x-pw-tools-list{border-bottom:1px solid #ddd;width:100%;display:flex}x-pw-tool-item{pointer-events:auto;border-radius:3px;width:28px;height:28px}x-pw-tool-item:not(.disabled){cursor:pointer}x-pw-tool-item:not(.disabled):hover{background-color:#dbdbdb}x-pw-tool-item.toggled{background-color:#8acae480}x-pw-tool-item.toggled:not(.disabled):hover{background-color:#8acae4c4}x-pw-tool-item>x-div{background-color:#3a3a3a;width:16px;height:16px;margin:6px}x-pw-tool-item.disabled>x-div{cursor:default;background-color:#61616180}x-pw-tool-item.record.toggled{background-color:#0000}x-pw-tool-item.record.toggled:not(.disabled):hover{background-color:#dbdbdb}x-pw-tool-item.record.toggled>x-div{background-color:#a1260d}x-pw-tool-item.record.disabled.toggled>x-div{opacity:.8}x-pw-tool-item.accept>x-div{background-color:#388a34}x-pw-tool-item.record>x-div{clip-path:url(#icon-circle-large-filled)}x-pw-tool-item.record.toggled>x-div{clip-path:url(#icon-stop-circle)}x-pw-tool-item.pick-locator>x-div{clip-path:url(#icon-inspect)}x-pw-tool-item.text>x-div{clip-path:url(#icon-whole-word)}x-pw-tool-item.visibility>x-div{clip-path:url(#icon-eye)}x-pw-tool-item.value>x-div{clip-path:url(#icon-symbol-constant)}x-pw-tool-item.snapshot>x-div{clip-path:url(#icon-gist)}x-pw-tool-item.accept>x-div{clip-path:url(#icon-check)}x-pw-tool-item.cancel>x-div{clip-path:url(#icon-close)}x-pw-tool-item.succeeded>x-div{clip-path:url(#icon-pass);background-color:#388a34!important}x-pw-overlay{z-index:2147483647;pointer-events:auto;background:0 0;max-width:min-content;position:absolute;top:0}x-pw-overlay x-pw-tools-list{background-color:#fffd;border-bottom:none;border-radius:3px;box-shadow:0 5px 5px #0000001a}x-pw-overlay x-pw-tool-item{margin:2px}textarea.text-editor{color:#333;resize:none;border:none;flex:auto;margin:6px 10px;padding:0;font-family:system-ui,Ubuntu,Droid Sans,sans-serif;font-size:13px;outline:1px solid #0000!important}textarea.text-editor.does-not-match{outline:1px solid red!important}x-div{display:block}x-spacer{flex:auto}*{box-sizing:border-box}[hidden]{display:none!important}x-locator-editor{border-bottom:1px solid #ddd;outline:1px solid #0000;flex:none;width:100%;height:60px;padding:4px}x-locator-editor.does-not-match{outline:1px solid red}.CodeMirror{width:100%!important;height:100%!important}x-pw-action-list{-webkit-user-select:none;user-select:none;flex-direction:column;flex:auto;display:flex}x-pw-action-item{cursor:pointer;padding:6px 10px;overflow:hidden}x-pw-action-item:hover{background-color:#f2f2f2}x-pw-action-item:last-child{border-bottom-right-radius:6px;border-bottom-left-radius:6px}`,Ys=class{constructor(e){this._renderedEntries=[],this._screencastDecorations=[],this._userOverlays=new Map,this._userOverlayHidden=!1,this._language=`javascript`,this._elementHighlights=[],this._injectedScript=e;let t=e.document;if(this._isUnderTest=e.isUnderTest,this._glassPaneElement=t.createElement(`x-pw-glass`),this._glassPaneElement.setAttribute(`popover`,`manual`),this._glassPaneElement.style.inset=`0`,this._glassPaneElement.style.width=`100%`,this._glassPaneElement.style.height=`100%`,this._glassPaneElement.style.maxWidth=`none`,this._glassPaneElement.style.maxHeight=`none`,this._glassPaneElement.style.padding=`0`,this._glassPaneElement.style.margin=`0`,this._glassPaneElement.style.border=`none`,this._glassPaneElement.style.overflow=`visible`,this._glassPaneElement.style.pointerEvents=`none`,this._glassPaneElement.style.display=`flex`,this._glassPaneElement.style.backgroundColor=`transparent`,this._actionCursorElement=t.createElement(`x-pw-action-cursor`),this._actionCursorElement.style.visibility=`hidden`,this._actionCursorElement.appendChild(this._createCursorSvg(t)),this._titleElement=t.createElement(`x-pw-title`),this._titleElement.setAttribute(`hidden`,`true`),this._userOverlayContainer=t.createElement(`x-pw-user-overlays`),this._userOverlayContainer.setAttribute(`hidden`,`true`),this._glassPaneShadow=this._glassPaneElement.attachShadow({mode:this._isUnderTest?`open`:`closed`}),typeof this._glassPaneShadow.adoptedStyleSheets.push==`function`){let e=new this._injectedScript.window.CSSStyleSheet;e.replaceSync(Js),this._glassPaneShadow.adoptedStyleSheets.push(e)}else{let e=this._injectedScript.document.createElement(`style`);e.textContent=Js,this._glassPaneShadow.appendChild(e)}this._glassPaneShadow.appendChild(this._actionCursorElement),this._glassPaneShadow.appendChild(this._titleElement),this._glassPaneShadow.appendChild(this._userOverlayContainer)}install(){this._injectedScript.document.documentElement&&((!this._injectedScript.document.documentElement.contains(this._glassPaneElement)||this._glassPaneElement.nextElementSibling)&&this._injectedScript.document.documentElement.appendChild(this._glassPaneElement),this._bringToFront())}_bringToFront(){this._glassPaneElement.hidePopover(),this._glassPaneElement.showPopover()}setLanguage(e){this._language=e}setElementHighlights(e){let t=this._elementHighlights.length>0;this._elementHighlights=e,this._elementHighlights.length?this._ensureElementHighlightRaf():t&&(this._rafRequest&&=(this._injectedScript.utils.builtins.cancelAnimationFrame(this._rafRequest),void 0),this.clearHighlight())}_ensureElementHighlightRaf(){if(this._rafRequest)return;let e=()=>{let t=[],n=[...this._injectedScript.document.querySelectorAll(`x-pw-glass`)];for(let{selector:e,cssStyle:r}of this._elementHighlights){let i=[];try{i=this._injectedScript.querySelectorAll(e,this._injectedScript.document.documentElement)}catch{}i=i.filter(e=>!n.some(t=>this._injectedScript.utils.isInsideScope(t,e)));let a=e.parts.some(e=>e.name===`aria-template`)?void 0:Ht(this._language,bt(e)),o=i.length>1?`#f6b26b7f`:`#6fa8dc7f`;for(let e=0;e<i.length;++e){let n=i.length>1?` [${e+1} of ${i.length}]`:``;t.push({element:i[e],color:o,tooltipText:a===void 0?void 0:a+n,cssStyle:r})}}this.updateHighlight(t),this._rafRequest=this._injectedScript.utils.builtins.requestAnimationFrame(e)};this._rafRequest=this._injectedScript.utils.builtins.requestAnimationFrame(e)}uninstall(){this._rafRequest&&=(this._injectedScript.utils.builtins.cancelAnimationFrame(this._rafRequest),void 0),this._elementHighlights=[],this._clearUserOverlayTimer(),this._glassPaneElement.remove()}showActionPoint(e,t){this._actionPointElement||(this._actionPointElement=this._injectedScript.document.createElement(`x-pw-action-point`),this._glassPaneShadow.appendChild(this._actionPointElement)),this._actionPointElement.style.top=t+`px`,this._actionPointElement.style.left=e+`px`,this._actionPointElement.hidden=!1}hideActionPoint(){this._actionPointElement&&(this._actionPointElement.hidden=!0)}showScreencastHighlight(e,t,n){let r=this._createScreencastDecoration(`x-pw-screencast-highlight`,t,n);r.style.left=e.x+`px`,r.style.top=e.y+`px`,r.style.width=e.width+`px`,r.style.height=e.height+`px`}showScreencastPoint(e,t,n,r){let i=this._createScreencastDecoration(`x-pw-screencast-point`,n,r);i.style.left=e+`px`,i.style.top=t+`px`}hideScreencastDecorations(){for(let e of this._screencastDecorations)e.remove();this._screencastDecorations=[]}_createScreencastDecoration(e,t,n){let r=this._injectedScript.document.createElement(e);return r.style.cssText=t,n&&r.style.setProperty(`--pw-fade-duration`,n+`ms`),this._glassPaneShadow.appendChild(r),this._screencastDecorations.push(r),r}moveActionCursor(e,t,n){let r=this._actionCursorElement,i=r.getBoundingClientRect(),a=r.style.visibility===`visible`;this._actionCursorAnimation?.cancel(),this._actionCursorAnimation=void 0,r.style.left=e+`px`,r.style.top=t+`px`,r.style.visibility=`visible`;let o=i.left-e,s=i.top-t;if(!a||!n||Math.hypot(o,s)<1)return;let c=Math.max(80,Math.min(n*.6,400));this._actionCursorAnimation=r.animate(Xs(o,s,e+t+o+s),{duration:c,easing:`cubic-bezier(0.5, 0, 0.3, 1)`})}restoreActionCursor(e,t){this._actionCursorElement.style.visibility!==`visible`&&this.moveActionCursor(e,t)}hideActionCursor(){this._actionCursorElement.style.visibility=`hidden`}_createCursorSvg(e){let t=`http://www.w3.org/2000/svg`,n=e.createElementNS(t,`svg`);n.setAttribute(`viewBox`,`0 0 12 18`);let r=e.createElementNS(t,`path`);return r.setAttribute(`d`,`M0 0 L0 15.8 L3.9 12.4 L6.6 18.6 L8.9 17.6 L6.2 11.4 L11.2 11.4 Z`),r.setAttribute(`fill`,`black`),r.setAttribute(`stroke`,`white`),r.setAttribute(`stroke-width`,`1.6`),r.setAttribute(`stroke-linejoin`,`round`),r.setAttribute(`paint-order`,`stroke`),n.appendChild(r),n}showActionTitle(e,t,n,r){if(this._titleElement.textContent=e,this._titleElement.hidden=!1,this._titleElement.style.cssText=r??``,t){let e=t/4;this._titleElement.style.setProperty(`--pw-fade-duration`,e+`ms`),this._titleElement.style.setProperty(`--pw-fade-delay`,t-e+`ms`)}switch(n){case`top-left`:this._titleElement.style.top=`6px`,this._titleElement.style.left=`6px`;break;case`top`:this._titleElement.style.top=`6px`,this._titleElement.style.left=`50%`,this._titleElement.style.transform=`translateX(-50%)`;break;case`bottom-left`:this._titleElement.style.bottom=`6px`,this._titleElement.style.left=`6px`;break;case`bottom`:this._titleElement.style.bottom=`6px`,this._titleElement.style.left=`50%`,this._titleElement.style.transform=`translateX(-50%)`;break;case`bottom-right`:this._titleElement.style.bottom=`6px`,this._titleElement.style.right=`6px`;break;default:this._titleElement.style.top=`6px`,this._titleElement.style.right=`6px`;break}}hideActionTitle(){this._titleElement.hidden=!0}addUserOverlay(e,t){let n=this._injectedScript.document.createElement(`div`);n.className=`x-pw-user-overlay`,n.innerHTML=t;for(let e of n.querySelectorAll(`script`))e.remove();for(let e of n.querySelectorAll(`*`))for(let t of[...e.attributes])t.name.startsWith(`on`)&&e.removeAttribute(t.name);return this._userOverlays.set(e,n),this._userOverlayContainer.appendChild(n),this._userOverlayContainer.hidden=this._userOverlayHidden,this._ensureUserOverlayTimer(),e}getUserOverlay(e){return this._userOverlays.get(e)}removeUserOverlay(e){let t=this._userOverlays.get(e);t&&(t.remove(),this._userOverlays.delete(e)),this._userOverlays.size===0&&(this._userOverlayContainer.hidden=!0,this._clearUserOverlayTimer())}_ensureUserOverlayTimer(){if(this._userOverlayTimer!==void 0)return;let e=()=>{this.install(),this._userOverlayTimer=this._injectedScript.utils.builtins.setTimeout(e,500)};this._userOverlayTimer=this._injectedScript.utils.builtins.setTimeout(e,500)}_clearUserOverlayTimer(){this._userOverlayTimer!==void 0&&(this._injectedScript.utils.builtins.clearTimeout(this._userOverlayTimer),this._userOverlayTimer=void 0)}setUserOverlaysVisible(e){this._userOverlayHidden=!e,this._userOverlayContainer.hidden=!e||this._userOverlays.size===0}clearHighlight(){for(let e of this._renderedEntries)e.highlightElement?.remove(),e.tooltipElement?.remove();this._renderedEntries=[]}addMaskedElements(e,t){let n=this._renderedEntries.map(e=>({element:e.targetElement,color:e.color})),r=e.map(e=>({element:e,color:t}));this.updateHighlight([...n,...r])}updateHighlight(e){if(!this._highlightIsUpToDate(e)){this.clearHighlight();for(let t of e){let e=this._createHighlightElement();this._glassPaneShadow.appendChild(e);let n;if(t.tooltipText){n=this._injectedScript.document.createElement(`x-pw-tooltip`),this._glassPaneShadow.appendChild(n),n.style.top=`0`,n.style.left=`0`,n.style.display=`flex`;let e=this._injectedScript.document.createElement(`x-pw-tooltip-line`);e.textContent=t.tooltipText,n.appendChild(e)}this._renderedEntries.push({targetElement:t.element,box:Zs(t.box),color:t.color,cssStyle:t.cssStyle,tooltipElement:n,highlightElement:e})}for(let e of this._renderedEntries){if(!e.box&&!e.targetElement||(e.box=e.box||e.targetElement.getBoundingClientRect(),!e.tooltipElement))continue;let{anchorLeft:t,anchorTop:n}=this.tooltipPosition(e.box,e.tooltipElement);e.tooltipTop=n,e.tooltipLeft=t}for(let e of this._renderedEntries){e.tooltipElement&&(e.tooltipElement.style.top=e.tooltipTop+`px`,e.tooltipElement.style.left=e.tooltipLeft+`px`);let t=e.box;e.highlightElement.style.backgroundColor=e.color,e.highlightElement.style.left=t.x+`px`,e.highlightElement.style.top=t.y+`px`,e.highlightElement.style.width=t.width+`px`,e.highlightElement.style.height=t.height+`px`,e.highlightElement.style.display=`block`,e.cssStyle&&(e.highlightElement.style.cssText+=`;`+e.cssStyle),this._isUnderTest&&console.error(`Highlight box for test: `+JSON.stringify({x:t.x,y:t.y,width:t.width,height:t.height}))}}}firstBox(){return this._renderedEntries[0]?.box}firstTooltipBox(){let e=this._renderedEntries[0];if(!(!e||!e.tooltipElement||e.tooltipLeft===void 0||e.tooltipTop===void 0))return{x:e.tooltipLeft,y:e.tooltipTop,left:e.tooltipLeft,top:e.tooltipTop,width:e.tooltipElement.offsetWidth,height:e.tooltipElement.offsetHeight,bottom:e.tooltipTop+e.tooltipElement.offsetHeight,right:e.tooltipLeft+e.tooltipElement.offsetWidth,toJSON:()=>{}}}tooltipPosition(e,t){let n=t.offsetWidth,r=t.offsetHeight,i=this._glassPaneElement.offsetWidth,a=this._glassPaneElement.offsetHeight,o=Math.max(5,e.left);o+n>i-5&&(o=i-n-5);let s=Math.max(0,e.bottom)+5;return s+r>a-5&&(s=Math.max(0,e.top)>r+5?Math.max(0,e.top)-r-5:a-5-r),{anchorLeft:o,anchorTop:s}}_highlightIsUpToDate(e){if(e.length!==this._renderedEntries.length)return!1;for(let t=0;t<this._renderedEntries.length;++t){if(e[t].element!==this._renderedEntries[t].targetElement||e[t].color!==this._renderedEntries[t].color||e[t].cssStyle!==this._renderedEntries[t].cssStyle)return!1;let n=this._renderedEntries[t].box;if(!n)return!1;let r=e[t].box?Zs(e[t].box):e[t].element.getBoundingClientRect();if(r.top!==n.top||r.right!==n.right||r.bottom!==n.bottom||r.left!==n.left)return!1}return!0}_createHighlightElement(){return this._injectedScript.document.createElement(`x-pw-highlight`)}appendChild(e){this._glassPaneShadow.appendChild(e)}onGlassPaneClick(e){this._glassPaneElement.style.pointerEvents=`auto`,this._glassPaneElement.style.backgroundColor=`rgba(0, 0, 0, 0.3)`,this._glassPaneElement.addEventListener(`click`,e)}offGlassPaneClick(e){this._glassPaneElement.style.pointerEvents=`none`,this._glassPaneElement.style.backgroundColor=`transparent`,this._glassPaneElement.removeEventListener(`click`,e)}};function Xs(e,t,n){let r=e=>{let t=Math.sin(n*12.9898+e*78.233)*43758.5453;return t-Math.floor(t)},i=Math.hypot(e,t),a=-t/i,o=e/i,s=r(1)<.5?-1:1,c=s*i*(.03+.03*r(2)),l=s*i*(.01+.02*r(3)),u=e*2/3+a*c,d=t*2/3+o*c,f=e/3+a*l,p=t/3+o*l,m=[];for(let n=0;n<=30;n++){let r=n/30,i=1-r,a=i*i*i*e+3*i*i*r*u+3*i*r*r*f,o=i*i*i*t+3*i*i*r*d+3*i*r*r*p;m.push({transform:`translate(${a}px, ${o}px)`})}return m}function Zs(e){if(e)return new DOMRect(e.x,e.y,e.width,e.height)}function Qs(e,t,n){let r=e.left-t.right;if(!(r<0||n!==void 0&&r>n))return r+Math.max(t.bottom-e.bottom,0)+Math.max(e.top-t.top,0)}function $s(e,t,n){let r=t.left-e.right;if(!(r<0||n!==void 0&&r>n))return r+Math.max(t.bottom-e.bottom,0)+Math.max(e.top-t.top,0)}function ec(e,t,n){let r=t.top-e.bottom;if(!(r<0||n!==void 0&&r>n))return r+Math.max(e.left-t.left,0)+Math.max(t.right-e.right,0)}function tc(e,t,n){let r=e.top-t.bottom;if(!(r<0||n!==void 0&&r>n))return r+Math.max(e.left-t.left,0)+Math.max(t.right-e.right,0)}function nc(e,t,n){let r=n===void 0?50:n,i=0;return e.left-t.right>=0&&(i+=e.left-t.right),t.left-e.right>=0&&(i+=t.left-e.right),t.top-e.bottom>=0&&(i+=t.top-e.bottom),e.top-t.bottom>=0&&(i+=e.top-t.bottom),i>r?void 0:i}var rc=[`left-of`,`right-of`,`above`,`below`,`near`];function ic(e,t,n,r){let i=t.getBoundingClientRect(),a={"left-of":$s,"right-of":Qs,above:ec,below:tc,near:nc}[e],o;for(let e of n){if(e===t)continue;let n=a(i,e.getBoundingClientRect(),r);n!==void 0&&(o===void 0||n<o)&&(o=n)}return o}function ac(e,t){let n=typeof e==`string`&&!t.caseSensitive?e.toUpperCase():e,r=typeof t.value==`string`&&!t.caseSensitive?t.value.toUpperCase():t.value;return t.op===`<truthy>`?!!n:t.op===`=`?r instanceof RegExp?(r.lastIndex=0,typeof n==`string`&&!!n.match(r)):n===r:typeof n!=`string`||typeof r!=`string`?!1:t.op===`*=`?n.includes(r):t.op===`^=`?n.startsWith(r):t.op===`$=`?n.endsWith(r):t.op===`|=`?n===r||n.startsWith(r+`-`):t.op===`~=`&&n.split(` `).includes(r)}function oc(e){let t=e.ownerDocument;return e.nodeName===`SCRIPT`||e.nodeName===`NOSCRIPT`||e.nodeName===`STYLE`||t.head&&t.head.contains(e)}function B(e,t){let n=e.get(t);if(n===void 0){if(n={full:``,normalized:``,immediate:[]},!oc(t)){let r=``;if(t instanceof HTMLInputElement&&(t.type===`submit`||t.type===`button`||t.type===`reset`))n={full:t.value,normalized:At(t.value),immediate:[t.value]};else{for(let i=t.firstChild;i;i=i.nextSibling)if(i.nodeType===Node.TEXT_NODE)n.full+=i.nodeValue||``,r+=i.nodeValue||``;else if(i.nodeType===Node.COMMENT_NODE)continue;else r&&n.immediate.push(r),r=``,i.nodeType===Node.ELEMENT_NODE&&(n.full+=B(e,i).full);r&&n.immediate.push(r),t.shadowRoot&&(n.full+=B(e,t.shadowRoot).full),n.full&&(n.normalized=At(n.full))}}e.set(t,n)}return n}function sc(e,t,n){if(oc(t)||!n(B(e,t)))return`none`;for(let r=t.firstChild;r;r=r.nextSibling)if(r.nodeType===Node.ELEMENT_NODE&&n(B(e,r)))return`selfAndChildren`;return t.shadowRoot&&n(B(e,t.shadowRoot))?`selfAndChildren`:`self`}function cc(e,t,n){let r=To(t);if(r)return n?.skipRefsInsideElement&&(r=r.filter(e=>e!==t&&!t.contains(e))),r.map(t=>B(e,t));let i=t.getAttribute(`aria-label`);if(i!==null&&i.trim())return[{full:i,normalized:At(i),immediate:[i]}];let a=t.nodeName===`INPUT`&&t.type!==`hidden`;if([`BUTTON`,`METER`,`OUTPUT`,`PROGRESS`,`SELECT`,`TEXTAREA`].includes(t.nodeName)||a){let n=t.labels;if(n)return[...n].map(t=>B(e,t))}return[]}var lc=[`selected`,`checked`,`pressed`,`expanded`,`level`,`disabled`,`name`,`description`,`include-hidden`];lc.sort();function uc(e,t,n){if(!t.includes(n))throw Error(`"${e}" attribute is only supported for roles: ${t.slice().sort().map(e=>`"${e}"`).join(`, `)}`)}function dc(e,t){if(e.op!==`<truthy>`&&!t.includes(e.value))throw Error(`"${e.name}" must be one of ${t.map(e=>JSON.stringify(e)).join(`, `)}`)}function fc(e,t){if(!t.includes(e.op))throw Error(`"${e.name}" does not support "${e.op}" matcher`)}function pc(e,t){let n={role:t};for(let r of e)switch(r.name){case`checked`:uc(r.name,Bo,t),dc(r,[!0,!1,`mixed`]),fc(r,[`<truthy>`,`=`]),n.checked=r.op===`<truthy>`||r.value;break;case`pressed`:uc(r.name,qo,t),dc(r,[!0,!1,`mixed`]),fc(r,[`<truthy>`,`=`]),n.pressed=r.op===`<truthy>`||r.value;break;case`selected`:uc(r.name,Ro,t),dc(r,[!0,!1]),fc(r,[`<truthy>`,`=`]),n.selected=r.op===`<truthy>`||r.value;break;case`expanded`:uc(r.name,Yo,t),dc(r,[!0,!1]),fc(r,[`<truthy>`,`=`]),n.expanded=r.op===`<truthy>`||r.value;break;case`level`:if(uc(r.name,Zo,t),typeof r.value==`string`&&(r.value=+r.value),r.op!==`=`||typeof r.value!=`number`||Number.isNaN(r.value))throw Error(`"level" attribute must be compared to a number`);n.level=r.value;break;case`disabled`:dc(r,[!0,!1]),fc(r,[`<truthy>`,`=`]),n.disabled=r.op===`<truthy>`||r.value;break;case`name`:if(r.op===`<truthy>`)throw Error(`"name" attribute must have a value`);if(typeof r.value!=`string`&&!(r.value instanceof RegExp))throw Error(`"name" attribute must be a string or a regular expression`);n.name=r.value,n.nameOp=r.op,n.nameExact=r.caseSensitive;break;case`description`:if(r.op===`<truthy>`)throw Error(`"description" attribute must have a value`);if(typeof r.value!=`string`&&!(r.value instanceof RegExp))throw Error(`"description" attribute must be a string or a regular expression`);n.description=r.value,n.descriptionOp=r.op,n.descriptionExact=r.caseSensitive;break;case`include-hidden`:dc(r,[!0,!1]),fc(r,[`<truthy>`,`=`]),n.includeHidden=r.op===`<truthy>`||r.value;break;default:throw Error(`Unknown attribute "${r.name}", must be one of ${lc.map(e=>`"${e}"`).join(`, `)}.`)}return n}function mc(e,t,n){let r=[],i=e=>{if(F(e)===t.role&&!(t.selected!==void 0&&zo(e)!==t.selected)&&!(t.checked!==void 0&&Vo(e)!==t.checked)&&!(t.pressed!==void 0&&Jo(e)!==t.pressed)&&!(t.expanded!==void 0&&Xo(e)!==t.expanded)&&!(t.level!==void 0&&Qo(e)!==t.level)&&!(t.disabled!==void 0&&es(e)!==t.disabled)&&!(!t.includeHidden&&I(e))){if(t.name!==void 0){let r=At(ko(e,!!t.includeHidden));if(typeof t.name==`string`&&(t.name=At(t.name)),n&&!t.nameExact&&t.nameOp===`=`&&(t.nameOp=`*=`),!ac(r,{name:``,jsonPath:[],op:t.nameOp||`=`,value:t.name,caseSensitive:!!t.nameExact}))return}if(t.description!==void 0){let r=At(Ao(e,!!t.includeHidden).text);if(typeof t.description==`string`&&(t.description=At(t.description)),n&&!t.descriptionExact&&t.descriptionOp===`=`&&(t.descriptionOp=`*=`),!ac(r,{name:``,jsonPath:[],op:t.descriptionOp||`=`,value:t.description,caseSensitive:!!t.descriptionExact}))return}r.push(e)}},a=e=>{let t=[];e.shadowRoot&&t.push(e.shadowRoot);for(let n of e.querySelectorAll(`*`))i(n),n.shadowRoot&&t.push(n.shadowRoot);t.forEach(a)};return a(e),r}function hc(e){return{queryAll:(t,n)=>{let r=Ct(n,!0),i=r.name.toLowerCase();if(!i)throw Error(`Role must not be empty`);let a=pc(r.attributes,i);Cs();try{return mc(t,a,e)}finally{ws()}}}}var gc=class{constructor(){this._retainCacheCounter=0,this._cacheText=new Map,this._cacheQueryCSS=new Map,this._cacheMatches=new Map,this._cacheQuery=new Map,this._cacheMatchesSimple=new Map,this._cacheMatchesParents=new Map,this._cacheCallMatches=new Map,this._cacheCallQuery=new Map,this._cacheQuerySimple=new Map,this._engines=new Map,this._engines.set(`not`,bc),this._engines.set(`is`,_c),this._engines.set(`where`,_c),this._engines.set(`has`,vc),this._engines.set(`scope`,yc),this._engines.set(`light`,xc),this._engines.set(`visible`,Sc),this._engines.set(`text`,Cc),this._engines.set(`text-is`,wc),this._engines.set(`text-matches`,Tc),this._engines.set(`has-text`,Ec),this._engines.set(`right-of`,Dc(`right-of`)),this._engines.set(`left-of`,Dc(`left-of`)),this._engines.set(`above`,Dc(`above`)),this._engines.set(`below`,Dc(`below`)),this._engines.set(`near`,Dc(`near`)),this._engines.set(`nth-match`,Oc);let e=[...this._engines.keys()];e.sort();let t=[...gt];if(t.sort(),e.join(`|`)!==t.join(`|`))throw Error(`Please keep customCSSNames in sync with evaluator engines: ${e.join(`|`)} vs ${t.join(`|`)}`)}begin(){++this._retainCacheCounter}end(){--this._retainCacheCounter,this._retainCacheCounter||(this._cacheQueryCSS.clear(),this._cacheMatches.clear(),this._cacheQuery.clear(),this._cacheMatchesSimple.clear(),this._cacheMatchesParents.clear(),this._cacheCallMatches.clear(),this._cacheCallQuery.clear(),this._cacheQuerySimple.clear(),this._cacheText.clear())}_cached(e,t,n,r){e.has(t)||e.set(t,[]);let i=e.get(t),a=i.find(e=>n.every((t,n)=>e.rest[n]===t));if(a)return a.result;let o=r();return i.push({rest:n,result:o}),o}_checkSelector(e){if(!(typeof e==`object`&&e&&(Array.isArray(e)||`simples`in e&&e.simples.length)))throw Error(`Malformed selector "${e}"`);return e}matches(e,t,n){let r=this._checkSelector(t);this.begin();try{return this._cached(this._cacheMatches,e,[r,n.scope,n.pierceShadow,n.originalScope],()=>Array.isArray(r)?this._matchesEngine(_c,e,r,n):(this._hasScopeClause(r)&&(n=this._expandContextForScopeMatching(n)),this._matchesSimple(e,r.simples[r.simples.length-1].selector,n)?this._matchesParents(e,r,r.simples.length-2,n):!1))}finally{this.end()}}query(e,t){let n=this._checkSelector(t);this.begin();try{return this._cached(this._cacheQuery,n,[e.scope,e.pierceShadow,e.originalScope],()=>{if(Array.isArray(n))return this._queryEngine(_c,e,n);this._hasScopeClause(n)&&(e=this._expandContextForScopeMatching(e));let t=this._scoreMap;this._scoreMap=new Map;let r=this._querySimple(e,n.simples[n.simples.length-1].selector);return r=r.filter(t=>this._matchesParents(t,n,n.simples.length-2,e)),this._scoreMap.size&&r.sort((e,t)=>{let n=this._scoreMap.get(e),r=this._scoreMap.get(t);return n===r?0:n===void 0?1:r===void 0?-1:n-r}),this._scoreMap=t,r})}finally{this.end()}}_markScore(e,t){this._scoreMap&&this._scoreMap.set(e,t)}_hasScopeClause(e){return e.simples.some(e=>e.selector.functions.some(e=>e.name===`scope`))}_expandContextForScopeMatching(e){if(e.scope.nodeType!==1)return e;let t=Ma(e.scope);return t?{...e,scope:t,originalScope:e.originalScope||e.scope}:e}_matchesSimple(e,t,n){return this._cached(this._cacheMatchesSimple,e,[t,n.scope,n.pierceShadow,n.originalScope],()=>{if(e===n.scope||t.css&&!this._matchesCSS(e,t.css))return!1;for(let r of t.functions)if(!this._matchesEngine(this._getEngine(r.name),e,r.args,n))return!1;return!0})}_querySimple(e,t){return t.functions.length?this._cached(this._cacheQuerySimple,t,[e.scope,e.pierceShadow,e.originalScope],()=>{let n=t.css,r=t.functions;n===`*`&&r.length&&(n=void 0);let i,a=-1;n===void 0?(a=r.findIndex(e=>this._getEngine(e.name).query!==void 0),a===-1&&(a=0),i=this._queryEngine(this._getEngine(r[a].name),e,r[a].args)):i=this._queryCSS(e,n);for(let t=0;t<r.length;t++){if(t===a)continue;let n=this._getEngine(r[t].name);n.matches!==void 0&&(i=i.filter(i=>this._matchesEngine(n,i,r[t].args,e)))}for(let t=0;t<r.length;t++){if(t===a)continue;let n=this._getEngine(r[t].name);n.matches===void 0&&(i=i.filter(i=>this._matchesEngine(n,i,r[t].args,e)))}return i}):this._queryCSS(e,t.css||`*`)}_matchesParents(e,t,n,r){return n<0||this._cached(this._cacheMatchesParents,e,[t,n,r.scope,r.pierceShadow,r.originalScope],()=>{let{selector:i,combinator:a}=t.simples[n];if(a===`>`){let a=kc(e,r);return!a||!this._matchesSimple(a,i,r)?!1:this._matchesParents(a,t,n-1,r)}if(a===`+`){let a=Ac(e,r);return!a||!this._matchesSimple(a,i,r)?!1:this._matchesParents(a,t,n-1,r)}if(a===``){let a=kc(e,r);for(;a;){if(this._matchesSimple(a,i,r)){if(this._matchesParents(a,t,n-1,r))return!0;if(t.simples[n-1].combinator===``)break}a=kc(a,r)}return!1}if(a===`~`){let a=Ac(e,r);for(;a;){if(this._matchesSimple(a,i,r)){if(this._matchesParents(a,t,n-1,r))return!0;if(t.simples[n-1].combinator===`~`)break}a=Ac(a,r)}return!1}if(a===`>=`){let a=e;for(;a;){if(this._matchesSimple(a,i,r)){if(this._matchesParents(a,t,n-1,r))return!0;if(t.simples[n-1].combinator===``)break}a=kc(a,r)}return!1}throw Error(`Unsupported combinator "${a}"`)})}_matchesEngine(e,t,n,r){if(e.matches)return this._callMatches(e,t,n,r);if(e.query)return this._callQuery(e,n,r).includes(t);throw Error(`Selector engine should implement "matches" or "query"`)}_queryEngine(e,t,n){if(e.query)return this._callQuery(e,n,t);if(e.matches)return this._queryCSS(t,`*`).filter(r=>this._callMatches(e,r,n,t));throw Error(`Selector engine should implement "matches" or "query"`)}_callMatches(e,t,n,r){return this._cached(this._cacheCallMatches,t,[e,r.scope,r.pierceShadow,r.originalScope,...n],()=>e.matches(t,n,r,this))}_callQuery(e,t,n){return this._cached(this._cacheCallQuery,e,[n.scope,n.pierceShadow,n.originalScope,...t],()=>e.query(n,t,this))}_matchesCSS(e,t){return e.matches(t)}_queryCSS(e,t){return this._cached(this._cacheQueryCSS,t,[e.scope,e.pierceShadow,e.originalScope],()=>{let n=[];function r(i){if(n=n.concat([...i.querySelectorAll(t)]),e.pierceShadow){i.shadowRoot&&r(i.shadowRoot);for(let e of i.querySelectorAll(`*`))e.shadowRoot&&r(e.shadowRoot)}}return r(e.scope),n})}_getEngine(e){let t=this._engines.get(e);if(!t)throw Error(`Unknown selector engine "${e}"`);return t}},_c={matches(e,t,n,r){if(t.length===0)throw Error(`"is" engine expects non-empty selector list`);return t.some(t=>r.matches(e,t,n))},query(e,t,n){if(t.length===0)throw Error(`"is" engine expects non-empty selector list`);let r=[];for(let i of t)r=r.concat(n.query(e,i));return t.length===1?r:jc(r)}},vc={matches(e,t,n,r){if(t.length===0)throw Error(`"has" engine expects non-empty selector list`);return r.query({...n,scope:e},t).length>0}},yc={matches(e,t,n,r){if(t.length!==0)throw Error(`"scope" engine expects no arguments`);let i=n.originalScope||n.scope;return i.nodeType===9?e===i.documentElement:e===i},query(e,t,n){if(t.length!==0)throw Error(`"scope" engine expects no arguments`);let r=e.originalScope||e.scope;if(r.nodeType===9){let e=r.documentElement;return e?[e]:[]}return r.nodeType===1?[r]:[]}},bc={matches(e,t,n,r){if(t.length===0)throw Error(`"not" engine expects non-empty selector list`);return!r.matches(e,t,n)}},xc={query(e,t,n){return n.query({...e,pierceShadow:!1},t)},matches(e,t,n,r){return r.matches(e,t,{...n,pierceShadow:!1})}},Sc={matches(e,t,n,r){if(t.length)throw Error(`"visible" engine expects no arguments`);return Ua(e)}},Cc={matches(e,t,n,r){if(t.length!==1||typeof t[0]!=`string`)throw Error(`"text" engine expects a single string`);let i=At(t[0]).toLowerCase();return sc(r._cacheText,e,e=>e.normalized.toLowerCase().includes(i))===`self`}},wc={matches(e,t,n,r){if(t.length!==1||typeof t[0]!=`string`)throw Error(`"text-is" engine expects a single string`);let i=At(t[0]);return sc(r._cacheText,e,e=>!i&&!e.immediate.length||e.immediate.some(e=>At(e)===i))!==`none`}},Tc={matches(e,t,n,r){if(t.length===0||typeof t[0]!=`string`||t.length>2||t.length===2&&typeof t[1]!=`string`)throw Error(`"text-matches" engine expects a regexp body and optional regexp flags`);let i=new RegExp(t[0],t.length===2?t[1]:void 0);return sc(r._cacheText,e,e=>(i.lastIndex=0,i.test(e.full)))===`self`}},Ec={matches(e,t,n,r){if(t.length!==1||typeof t[0]!=`string`)throw Error(`"has-text" engine expects a single string`);if(oc(e))return!1;let i=At(t[0]).toLowerCase();return(e=>e.normalized.toLowerCase().includes(i))(B(r._cacheText,e))}};function Dc(e){return{matches(t,n,r,i){let a=n.length&&typeof n[n.length-1]==`number`?n[n.length-1]:void 0,o=a===void 0?n:n.slice(0,n.length-1);if(n.length<1+(a===void 0?0:1))throw Error(`"${e}" engine expects a selector list and optional maximum distance in pixels`);let s=ic(e,t,i.query(r,o),a);return s===void 0?!1:(i._markScore(t,s),!0)}}}var Oc={query(e,t,n){let r=t[t.length-1];if(t.length<2)throw Error(`"nth-match" engine expects non-empty selector list and an index argument`);if(typeof r!=`number`||r<1)throw Error(`"nth-match" engine expects a one-based index as the last argument`);let i=_c.query(e,t.slice(0,t.length-1),n);return r--,r<i.length?[i[r]]:[]}};function kc(e,t){if(e!==t.scope)return t.pierceShadow?Ma(e):e.parentElement||void 0}function Ac(e,t){if(e!==t.scope)return e.previousElementSibling||void 0}function jc(e){let t=new Map,n=[],r=[];function i(e){let r=t.get(e);if(r)return r;let a=Ma(e);return a?i(a).children.push(e):n.push(e),r={children:[],taken:!1},t.set(e,r),r}for(let t of e)i(t).taken=!0;function a(e){let n=t.get(e);if(n.taken&&r.push(e),n.children.length>1){let t=new Set(n.children);n.children=[];let r=e.firstElementChild;for(;r&&n.children.length<t.size;)t.has(r)&&n.children.push(r),r=r.nextElementSibling;for(r=e.shadowRoot?e.shadowRoot.firstElementChild:null;r&&n.children.length<t.size;)t.has(r)&&n.children.push(r),r=r.nextElementSibling}n.children.forEach(a)}return n.forEach(a),r}var Mc=10,Nc=1,Pc=2,Fc=10,Ic=50,Lc=100,Rc=120,zc=140,Bc=160,V=180,Vc=200,Hc=250,Uc=125,Wc=145,Gc=105,Kc=165,qc=185,Jc=205,Yc=300,Xc=500,Zc=510,Qc=520,$c=530,el=1e4,tl=1e7,nl=1e3;function rl(e,t,n){e._evaluator.begin();let r={allowText:new Map,disallowText:new Map};Cs(),Za();try{let i;if(n.forTextExpect){i=cl(e,t.ownerDocument.documentElement,n);for(let a=t;a;a=Ma(a)){let t=il(r,e,a,{...n,noText:!0});if(t&&H(t)<=nl){i=t;break}}}else{if(!t.matches(`input,textarea,select`)&&!t.isContentEditable){let e=Ia(t,`button,select,input,[role=button],[role=checkbox],[role=radio],a,[role=link]`,n.root);e&&Ua(e)&&(t=e)}i=il(r,e,t,n)||cl(e,t,n)}let a=ul(i),o=e.parseSelector(a);return{selector:a,elements:e.querySelectorAll(o,n.root??t.ownerDocument)}}finally{Qa(),ws(),e._evaluator.end()}}function il(e,t,n,r){if(r.root&&!ja(r.root,n))throw Error(`Target element must belong to the root's subtree`);if(n===r.root)return[{engine:`css`,selector:`:scope`,score:1}];if(n.ownerDocument.documentElement===n)return[{engine:`css`,selector:`html`,score:1}];let i=null,a=e=>{(!i||H(e)<H(i))&&(i=e)},o=[];for(let e of ol(t,n,!r.isRecursive,r))o.push({candidate:e,isTextCandidate:!0});for(let e of al(t,n,r))r.omitInternalEngines&&e.engine.startsWith(`internal:`)||o.push({candidate:[e],isTextCandidate:!1});o.sort((e,t)=>H(e.candidate)-H(t.candidate));for(let{candidate:s,isTextCandidate:c}of o){let o=t.querySelectorAll(t.parseSelector(ul(s)),r.root??n.ownerDocument);if(!o.includes(n))continue;if(o.length===1){a(s);break}let l=o.indexOf(n);if(!(l>5)&&(a([...s,{engine:`nth`,selector:String(l),score:el}]),!r.isRecursive))for(let u=Ma(n);u&&u!==r.root;u=Ma(u)){let d=o.filter(e=>ja(u,e)&&e!==u),f=d.indexOf(n);if(d.length>5||f===-1||f===l&&d.length>1)continue;let p=d.length===1?s:[...s,{engine:`nth`,selector:String(f),score:el}];if(i&&H([{engine:``,selector:``,score:1},...p])>=H(i))continue;let m=!!r.noText||c,h=m?e.disallowText:e.allowText,g=h.get(u);g===void 0&&(g=il(e,t,u,{...r,isRecursive:!0,noText:m})||cl(t,u,r),h.set(u,g)),g&&a([...g,...p])}}return i}function al(e,t,n){let r=[],i=sa(n.testIdAttributeName);{for(let e of[`data-testid`,`data-test-id`,`data-test`])!i.includes(e)&&t.getAttribute(e)&&r.push({engine:`css`,selector:`[${e}=${Dt(t.getAttribute(e))}]`,score:Pc});let e=t.getAttribute(`id`);e&&!dl(e)&&r.push({engine:`css`,selector:sl(e),score:Xc}),r.push({engine:`css`,selector:ml(t),score:$c})}if(t.nodeName===`IFRAME`||t.nodeName===`FRAME`){for(let e of[`name`,`title`])t.getAttribute(e)&&r.push({engine:`css`,selector:`${ml(t)}[${e}=${Dt(t.getAttribute(e))}]`,score:Fc});for(let e of i)t.getAttribute(e)&&r.push({engine:`css`,selector:`[${e}=${Dt(t.getAttribute(e))}]`,score:Nc});return ll([r]),r}for(let e of i)t.getAttribute(e)&&r.push({engine:`internal:testid`,selector:`[${e}=${Pt(t.getAttribute(e),!0)}]`,score:Nc});if(t.nodeName===`INPUT`||t.nodeName===`TEXTAREA`){let e=t;if(e.placeholder){r.push({engine:`internal:attr`,selector:`[placeholder=${Pt(e.placeholder,!0)}]`,score:Uc});for(let t of pl(e.placeholder))r.push({engine:`internal:attr`,selector:`[placeholder=${Pt(t.text,!1)}]`,score:Rc-t.scoreBonus})}}let a=cc(e._evaluator._cacheText,t,{skipRefsInsideElement:n.noText});for(let e of a){let t=e.normalized;r.push({engine:`internal:label`,selector:Nt(t,!0),score:Wc});for(let e of pl(t))r.push({engine:`internal:label`,selector:Nt(e.text,!1),score:zc-e.scoreBonus})}let o=F(t);return o&&![`none`,`presentation`].includes(o)&&r.push({engine:`internal:role`,selector:o,score:Zc}),t.getAttribute(`name`)&&[`BUTTON`,`FORM`,`FIELDSET`,`FRAME`,`IFRAME`,`INPUT`,`KEYGEN`,`OBJECT`,`OUTPUT`,`SELECT`,`TEXTAREA`,`MAP`,`META`,`PARAM`].includes(t.nodeName)&&r.push({engine:`css`,selector:`${ml(t)}[name=${Dt(t.getAttribute(`name`))}]`,score:Qc}),[`INPUT`,`TEXTAREA`].includes(t.nodeName)&&t.getAttribute(`type`)!==`hidden`&&t.getAttribute(`type`)&&r.push({engine:`css`,selector:`${ml(t)}[type=${Dt(t.getAttribute(`type`))}]`,score:Qc}),[`INPUT`,`TEXTAREA`,`SELECT`].includes(t.nodeName)&&t.getAttribute(`type`)!==`hidden`&&r.push({engine:`css`,selector:ml(t),score:521}),ll([r]),r}function ol(e,t,n,r){if(t.nodeName===`SELECT`)return[];let i=[];if(!r.noText){let e=t.getAttribute(`title`);if(e){i.push([{engine:`internal:attr`,selector:`[title=${Pt(e,!0)}]`,score:Jc}]);for(let t of pl(e))i.push([{engine:`internal:attr`,selector:`[title=${Pt(t.text,!1)}]`,score:Vc-t.scoreBonus}])}let n=t.getAttribute(`alt`);if(n&&[`APPLET`,`AREA`,`IMG`,`INPUT`].includes(t.nodeName)){i.push([{engine:`internal:attr`,selector:`[alt=${Pt(n,!0)}]`,score:Kc}]);for(let e of pl(n))i.push([{engine:`internal:attr`,selector:`[alt=${Pt(e.text,!1)}]`,score:Bc-e.scoreBonus}])}}let a=r.noText?``:B(e._evaluator._cacheText,t).normalized,o=a?pl(a):[];if(a){if(n){a.length<=80&&i.push([{engine:`internal:text`,selector:Nt(a,!0),score:qc}]);for(let e of o)i.push([{engine:`internal:text`,selector:Nt(e.text,!1),score:V-e.scoreBonus}])}let e={engine:`css`,selector:ml(t),score:$c};for(let t of o)i.push([e,{engine:`internal:has-text`,selector:Nt(t.text,!1),score:V-t.scoreBonus}]);if(n&&a.length<=80){let t=RegExp(`^`+Rt(a)+`$`);i.push([e,{engine:`internal:has-text`,selector:Nt(t,!1),score:Hc}])}}let s=F(t);if(s&&![`none`,`presentation`].includes(s)){let e=Oo(t,!1),c=r.noText&&e.derivedFromContent?``:e.text,l=Ao(t,!1),u=r.noText&&l.derivedFromContent?``:l.text;if(c&&!c.match(/^\p{Co}+$/u)){let e={engine:`internal:role`,selector:`${s}[name=${Pt(c,!0)}]`,score:Gc};i.push([e]);for(let e of pl(c))i.push([{engine:`internal:role`,selector:`${s}[name=${Pt(e.text,!1)}]`,score:Lc-e.scoreBonus}]);if(u){i.push([{engine:`internal:role`,selector:`${s}[name=${Pt(c,!0)}][description=${Pt(u,!0)}]`,score:106}]);for(let e of pl(c))i.push([{engine:`internal:role`,selector:`${s}[name=${Pt(e.text,!1)}][description=${Pt(u,!1)}]`,score:Lc-e.scoreBonus+1}])}}else{let e={engine:`internal:role`,selector:`${s}`,score:Zc};u&&i.push([{engine:`internal:role`,selector:`${s}[description=${Pt(u,!0)}]`,score:511}]);for(let t of o)i.push([e,{engine:`internal:has-text`,selector:Nt(t.text,!1),score:V-t.scoreBonus}]);if(!r.noText&&n&&a.length<=80){let t=RegExp(`^`+Rt(a)+`$`);i.push([e,{engine:`internal:has-text`,selector:Nt(t,!1),score:Hc}])}}}return ll(i),i}function sl(e){return/^[a-zA-Z][a-zA-Z0-9\-\_]+$/.test(e)?`#`+e:`[id=${Dt(e)}]`}function cl(e,t,n){let r=n.root??t.ownerDocument,i=[];function a(n){let a=i.slice();n&&a.unshift(n);let o=a.join(` > `),s=e.parseSelector(o);return e.querySelector(s,r,!1)===t?o:void 0}function o(n){let i={engine:`css`,selector:n,score:tl},a=e.parseSelector(n),o=e.querySelectorAll(a,r);return o.length===1?[i]:[i,{engine:`nth`,selector:String(o.indexOf(t)),score:el}]}for(let e=t;e&&e!==r;e=Ma(e)){let t=``;if(e.id){let n=sl(e.id),r=a(n);if(r)return o(r);t=n}let n=e.parentNode,r=[...e.classList].map(hl);for(let e=0;e<r.length;++e){let i=`.`+r.slice(0,e+1).join(`.`),s=a(i);if(s)return o(s);!t&&n&&n.querySelectorAll(i).length===1&&(t=i)}if(n){let r=[...n.children],i=e.nodeName,s=r.filter(e=>e.nodeName===i).indexOf(e)===0?ml(e):`${ml(e)}:nth-child(${1+r.indexOf(e)})`,c=a(s);if(c)return o(c);t||=s}else t||=ml(e);i.unshift(t)}return o(i.join(` > `))}function ll(e){for(let t of e)for(let e of t)e.score>Ic&&e.score<Yc&&(e.score+=Math.min(Mc,e.selector.length/10|0))}function ul(e){let t=[],n=``;for(let{engine:r,selector:i}of e)t.length&&(n!==`css`||r!==`css`||i.startsWith(`:nth-match(`))&&t.push(`>>`),n=r,r===`css`?t.push(i):t.push(`${r}=${i}`);return t.join(` `)}function H(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n].score*(e.length-n);return t}function dl(e){let t,n=0;for(let r=0;r<e.length;++r){let i=e[r],a;if(!(i===`-`||i===`_`)){if(a=i>=`a`&&i<=`z`?`lower`:i>=`A`&&i<=`Z`?`upper`:i>=`0`&&i<=`9`?`digit`:`other`,a===`lower`&&t===`upper`){t=a;continue}t&&t!==a&&++n,t=a}}return n>=e.length/4}function fl(e,t){if(e.length<=t)return e;e=e.substring(0,t);let n=e.match(/^(.*)\b(.+?)$/);return n?n[1].trimEnd():``}function pl(e){let t=[];{let n=e.match(/^([\d.,]+)[^.,\w]/),r=n?n[1].length:0;if(r){let n=fl(e.substring(r).trimStart(),80);t.push({text:n,scoreBonus:n.length<=30?2:1})}}{let n=e.match(/[^.,\w]([\d.,]+)$/),r=n?n[1].length:0;if(r){let n=fl(e.substring(0,e.length-r).trimEnd(),80);t.push({text:n,scoreBonus:n.length<=30?2:1})}}return e.length<=30?t.push({text:e,scoreBonus:0}):(t.push({text:fl(e,80),scoreBonus:0}),t.push({text:fl(e,30),scoreBonus:1})),t=t.filter(e=>e.text),t.length||t.push({text:e.substring(0,80),scoreBonus:0}),t}function ml(e){return e.nodeName.toLocaleLowerCase().replace(/[:\.]/g,e=>`\\`+e)}function hl(e){let t=``;for(let n=0;n<e.length;n++)t+=gl(e,n);return t}function gl(e,t){let n=e.charCodeAt(t);return n===0?`�`:n>=1&&n<=31||n>=48&&n<=57&&(t===0||t===1&&e.charCodeAt(0)===45)?`\\`+n.toString(16)+` `:t===0&&n===45&&e.length===1?`\\`+e.charAt(t):n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122?e.charAt(t):`\\`+e.charAt(t)}var _l={queryAll(e,t){t.startsWith(`/`)&&e.nodeType!==Node.DOCUMENT_NODE&&(t=`.`+t);let n=[],r=e.ownerDocument||e;if(!r)return n;let i=r.evaluate(t,e,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE);for(let e=i.iterateNext();e;e=i.iterateNext())e.nodeType===Node.ELEMENT_NODE&&n.push(e);return n}},vl=Symbol(`selector`),yl=class e{constructor(t,n,r){if(r?.hasText&&(n+=` >> internal:has-text=${Nt(r.hasText,!1)}`),r?.hasNotText&&(n+=` >> internal:has-not-text=${Nt(r.hasNotText,!1)}`),r?.has&&(n+=` >> internal:has=`+JSON.stringify(r.has[vl])),r?.hasNot&&(n+=` >> internal:has-not=`+JSON.stringify(r.hasNot[vl])),r?.visible!==void 0&&(n+=` >> visible=${r.visible?`true`:`false`}`),this[vl]=n,n){let e=t.parseSelector(n);this.element=t.querySelector(e,t.document,!1),this.elements=t.querySelectorAll(e,t.document)}let i=n,a=this;a.locator=(n,r)=>new e(t,i?i+` >> `+n:n,r),a.getByTestId=e=>a.locator(la(t.testIdAttributeNameForStrictErrorAndConsoleCodegen(),e)),a.getByAltText=(e,t)=>a.locator(da(e,t)),a.getByLabel=(e,t)=>a.locator(ua(e,t)),a.getByPlaceholder=(e,t)=>a.locator(pa(e,t)),a.getByText=(e,t)=>a.locator(ma(e,t)),a.getByTitle=(e,t)=>a.locator(fa(e,t)),a.getByRole=(e,t={})=>a.locator(ha(e,t)),a.filter=r=>new e(t,n,r),a.visible=()=>new e(t,n,{visible:!0}),a.first=()=>a.locator(`nth=0`),a.last=()=>a.locator(`nth=-1`),a.nth=e=>a.locator(`nth=${e}`),a.and=n=>new e(t,i+` >> internal:and=`+JSON.stringify(n[vl])),a.or=n=>new e(t,i+` >> internal:or=`+JSON.stringify(n[vl]))}},bl=class{constructor(e){this._injectedScript=e}install(){this._injectedScript.window.playwright||(this._injectedScript.window.playwright={$:(e,t)=>this._querySelector(e,!!t),$$:e=>this._querySelectorAll(e),inspect:e=>this._inspect(e),selector:e=>this._selector(e),generateLocator:(e,t)=>this._generateLocator(e,t),ariaSnapshot:(e,t)=>this._injectedScript.ariaSnapshot(e||this._injectedScript.document.body,t||{mode:`default`}),resume:()=>this._resume(),...new yl(this._injectedScript,``)},delete this._injectedScript.window.playwright.filter,delete this._injectedScript.window.playwright.visible,delete this._injectedScript.window.playwright.first,delete this._injectedScript.window.playwright.last,delete this._injectedScript.window.playwright.nth,delete this._injectedScript.window.playwright.and,delete this._injectedScript.window.playwright.or)}_querySelector(e,t){if(typeof e!=`string`)throw Error(`Usage: playwright.query('Playwright >> selector').`);let n=this._injectedScript.parseSelector(e);return this._injectedScript.querySelector(n,this._injectedScript.document,t)}_querySelectorAll(e){if(typeof e!=`string`)throw Error(`Usage: playwright.$$('Playwright >> selector').`);let t=this._injectedScript.parseSelector(e);return this._injectedScript.querySelectorAll(t,this._injectedScript.document)}_inspect(e){if(typeof e!=`string`)throw Error(`Usage: playwright.inspect('Playwright >> selector').`);this._injectedScript.window.inspect(this._querySelector(e,!1))}_selector(e){if(!(e instanceof Element))throw Error(`Usage: playwright.selector(element).`);return this._injectedScript.generateSelectorSimple(e)}_generateLocator(e,t){if(!(e instanceof Element))throw Error(`Usage: playwright.locator(element).`);let n=this._injectedScript.generateSelectorSimple(e);return Ht(t||`javascript`,n)}_resume(){if(!this._injectedScript.window.__pw_resume)return!1;this._injectedScript.window.__pw_resume().catch(()=>{})}},xl=`__playwright__binding__controller__`;function Sl(e){try{return e instanceof RegExp||Object.prototype.toString.call(e)===`[object RegExp]`}catch{return!1}}function Cl(e){try{return e instanceof Date||Object.prototype.toString.call(e)===`[object Date]`}catch{return!1}}function wl(e){try{return e instanceof URL||Object.prototype.toString.call(e)===`[object URL]`}catch{return!1}}function Tl(e){try{return e instanceof Error||e&&Object.getPrototypeOf(e)?.name===`Error`}catch{return!1}}function El(e,t){try{return e instanceof t||Object.prototype.toString.call(e)===`[object ${t.name}]`}catch{return!1}}function Dl(e){try{return e instanceof ArrayBuffer||Object.prototype.toString.call(e)===`[object ArrayBuffer]`}catch{return!1}}function Ol(e){try{return e instanceof Map||Object.prototype.toString.call(e)===`[object Map]`}catch{return!1}}function kl(e){try{return e instanceof Set||Object.prototype.toString.call(e)===`[object Set]`}catch{return!1}}var Al={i8:Int8Array,ui8:Uint8Array,ui8c:Uint8ClampedArray,i16:Int16Array,ui16:Uint16Array,i32:Int32Array,ui32:Uint32Array,f32:Float32Array,f64:Float64Array,bi64:BigInt64Array,bui64:BigUint64Array};function jl(e){if(`toBase64`in e)return e.toBase64();let t=Array.from(new Uint8Array(e.buffer,e.byteOffset,e.byteLength)).map(e=>String.fromCharCode(e)).join(``);return btoa(t)}function Ml(e,t){let n=atob(e),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return new t(r.buffer)}function Nl(e,t=[],n=new Map){if(!Object.is(e,void 0)){if(typeof e==`object`&&e){if(`ref`in e)return n.get(e.ref);if(`v`in e)return e.v===`undefined`?void 0:e.v===`null`?null:e.v===`NaN`?NaN:e.v===`Infinity`?1/0:e.v===`-Infinity`?-1/0:e.v===`-0`?-0:void 0;if(`d`in e)return new Date(e.d);if(`u`in e)return new URL(e.u);if(`bi`in e)return BigInt(e.bi);if(`e`in e){let t=Error(e.e.m);return t.name=e.e.n,t.stack=e.e.s,t}if(`r`in e)return new RegExp(e.r.p,e.r.f);if(`a`in e){let r=[];n.set(e.id,r);for(let i of e.a)r.push(Nl(i,t,n));return r}if(`o`in e){let r={};n.set(e.id,r);for(let{k:i,v:a}of e.o)i!==`__proto__`&&(r[i]=Nl(a,t,n));return r}if(`m`in e){let r=new Map;n.set(e.id,r);for(let{k:i,v:a}of e.m)r.set(Nl(i,t,n),Nl(a,t,n));return r}if(`s`in e){let r=new Set;n.set(e.id,r);for(let i of e.s)r.add(Nl(i,t,n));return r}if(`h`in e)return t[e.h];if(`fn`in e){let t=e.fn;return(...e)=>globalThis[xl].callBinding(t,...e)}if(`ta`in e)return Ml(e.ta.b,Al[e.ta.k]);if(`ab`in e)return Ml(e.ab.b,Uint8Array).buffer}return e}}function Pl(e,t,n={}){return Fl(e,t,{visited:new Map,lastId:0,extendedSerialization:n.extendedSerialization})}function Fl(e,t,n){if(e&&typeof e==`object`){if(typeof globalThis.Window==`function`&&e instanceof globalThis.Window)return`ref: <Window>`;if(typeof globalThis.Document==`function`&&e instanceof globalThis.Document)return`ref: <Document>`;if(typeof globalThis.Node==`function`&&e instanceof globalThis.Node)return`ref: <Node>`}return Il(e,t,n)}function Il(e,t,n){let r=t(e);if(`fallThrough`in r)e=r.fallThrough;else return r;if(typeof e==`symbol`||Object.is(e,void 0))return{v:`undefined`};if(Object.is(e,null))return{v:`null`};if(Object.is(e,NaN))return{v:`NaN`};if(Object.is(e,1/0))return{v:`Infinity`};if(Object.is(e,-1/0))return{v:`-Infinity`};if(Object.is(e,-0))return{v:`-0`};if(typeof e==`boolean`||typeof e==`number`||typeof e==`string`)return e;if(typeof e==`bigint`)return{bi:e.toString()};if(Tl(e)){let t;return t=e.stack?.startsWith(e.name+`: `+e.message)?e.stack:`${e.name}: ${e.message}\n${e.stack}`,{e:{n:e.name,m:e.message,s:t}}}if(Cl(e))return{d:e.toJSON()};if(wl(e))return{u:e.toJSON()};if(Sl(e))return{r:{p:e.source,f:e.flags}};for(let[t,n]of Object.entries(Al))if(El(e,n))return{ta:{b:jl(e),k:t}};if(Dl(e))return{ab:{b:jl(new Uint8Array(e))}};let i=n.visited.get(e);if(i)return{ref:i};if(n.extendedSerialization){if(Ol(e)){let r=[],i=++n.lastId;n.visited.set(e,i);let a=e.entries(),o=new Map().entries().next;for(;;){let e=o.call(a);if(e.done)break;r.push({k:Fl(e.value[0],t,n),v:Fl(e.value[1],t,n)})}return{m:r,id:i}}if(kl(e)){let r=[],i=++n.lastId;n.visited.set(e,i);let a=e.values(),o=new Set().values().next;for(;;){let e=o.call(a);if(e.done)break;r.push(Fl(e.value,t,n))}return{s:r,id:i}}}if(Array.isArray(e)){let r=[],i=++n.lastId;n.visited.set(e,i);for(let i=0;i<e.length;++i)r.push(Fl(e[i],t,n));return{a:r,id:i}}if(typeof e==`object`){let r=[],i=++n.lastId;n.visited.set(e,i);for(let i of Object.keys(e)){let a;try{a=e[i]}catch{continue}i===`toJSON`&&typeof a==`function`?r.push({k:i,v:{o:[],id:0}}):r.push({k:i,v:Fl(a,t,n)})}let a;try{r.length===0&&e.toJSON&&typeof e.toJSON==`function`&&(a={value:e.toJSON()})}catch{}return a?Il(a.value,t,n):{o:r,id:i}}if(typeof e==`function`&&e.name.startsWith(`__pw_fn_`))return{fn:e.name}}var Ll=class{constructor(e,t){this.global=e,this.isUnderTest=t,e.__pwClock?this.builtins=e.__pwClock.builtins:this.builtins={setTimeout:e.setTimeout?.bind(e),clearTimeout:e.clearTimeout?.bind(e),setInterval:e.setInterval?.bind(e),clearInterval:e.clearInterval?.bind(e),requestAnimationFrame:e.requestAnimationFrame?.bind(e),cancelAnimationFrame:e.cancelAnimationFrame?.bind(e),requestIdleCallback:e.requestIdleCallback?.bind(e),cancelIdleCallback:e.cancelIdleCallback?.bind(e),performance:e.performance,Intl:e.Intl,Date:e.Date,AbortSignal:e.AbortSignal,Temporal:e.Temporal},this.isUnderTest&&(e.builtins=this.builtins)}evaluate(e,t,n,r,...i){let a=i.slice(0,r),o=i.slice(r),s=[];for(let e=0;e<a.length;e++)s[e]=Nl(a[e],o);let c=this.global.eval(n);return e===!0?c=c(...s):e===!1?c=c:typeof c==`function`&&(c=c(...s)),Rl(c)?(async()=>{let e=await c;return t?this._jsonValueNoThrow(e):e})():t?this._jsonValueNoThrow(c):c}jsonValue(e,t){if(t!==void 0)return Pl(t,e=>({fallThrough:e}))}_jsonValueNoThrow(e){try{return this.jsonValue(!0,e)}catch{return}}};function Rl(e){return e&&typeof e==`object`&&typeof e.then==`function`}var zl=class{constructor(e,t){this._testIdAttributeNameForStrictErrorAndConsoleCodegen=`data-testid`,this.utils={asLocator:Ht,cacheNormalizedWhitespaces:kt,elementText:B,getAriaRole:F,getElementAccessibleNameText:ko,getElementAccessibleDescription:Ao,isElementVisible:Ua,isInsideScope:ja,normalizeWhiteSpace:At,parseAriaSnapshot:Ki,generateAriaTree:As,findNewElement:qs,builtins:null},this.window=e,this.document=e.document,this.isUnderTest=t.isUnderTest,this.utils.builtins=new Ll(e,t.isUnderTest).builtins,this._sdkLanguage=t.sdkLanguage,this._frameSeq=t.frameSeq,this._testIdAttributeNameForStrictErrorAndConsoleCodegen=t.testIdAttributeName,this._evaluator=new gc,this.consoleApi=new bl(this),this.onGlobalListenersRemoved=new Set,this._autoClosingTags=new Set([`AREA`,`BASE`,`BR`,`COL`,`COMMAND`,`EMBED`,`HR`,`IMG`,`INPUT`,`KEYGEN`,`LINK`,`MENUITEM`,`META`,`PARAM`,`SOURCE`,`TRACK`,`WBR`]),this._booleanAttributes=new Set([`checked`,`selected`,`disabled`,`readonly`,`multiple`]),this._eventTypes=new Map([[`auxclick`,`mouse`],[`click`,`mouse`],[`dblclick`,`mouse`],[`mousedown`,`mouse`],[`mouseeenter`,`mouse`],[`mouseleave`,`mouse`],[`mousemove`,`mouse`],[`mouseout`,`mouse`],[`mouseover`,`mouse`],[`mouseup`,`mouse`],[`mouseleave`,`mouse`],[`mousewheel`,`mouse`],[`keydown`,`keyboard`],[`keyup`,`keyboard`],[`keypress`,`keyboard`],[`textInput`,`keyboard`],[`touchstart`,`touch`],[`touchmove`,`touch`],[`touchend`,`touch`],[`touchcancel`,`touch`],[`pointerover`,`pointer`],[`pointerout`,`pointer`],[`pointerenter`,`pointer`],[`pointerleave`,`pointer`],[`pointerdown`,`pointer`],[`pointerup`,`pointer`],[`pointermove`,`pointer`],[`pointercancel`,`pointer`],[`gotpointercapture`,`pointer`],[`lostpointercapture`,`pointer`],[`focus`,`focus`],[`blur`,`focus`],[`drag`,`drag`],[`dragstart`,`drag`],[`dragend`,`drag`],[`dragover`,`drag`],[`dragenter`,`drag`],[`dragleave`,`drag`],[`dragexit`,`drag`],[`drop`,`drag`],[`wheel`,`wheel`],[`deviceorientation`,`deviceorientation`],[`deviceorientationabsolute`,`deviceorientation`],[`devicemotion`,`devicemotion`]]),this._hoverHitTargetInterceptorEvents=new Set([`mousemove`]),this._tapHitTargetInterceptorEvents=new Set([`pointerdown`,`pointerup`,`touchstart`,`touchend`,`touchcancel`]),this._mouseHitTargetInterceptorEvents=new Set([`mousedown`,`mouseup`,`pointerdown`,`pointerup`,`click`,`auxclick`,`dblclick`,`contextmenu`]),this._allHitTargetInterceptorEvents=new Set([...this._hoverHitTargetInterceptorEvents,...this._tapHitTargetInterceptorEvents,...this._mouseHitTargetInterceptorEvents]),this._engines=new Map,this._engines.set(`xpath`,_l),this._engines.set(`xpath:light`,_l),this._engines.set(`role`,hc(!1)),this._engines.set(`text`,this._createTextEngine(!0,!1)),this._engines.set(`text:light`,this._createTextEngine(!1,!1)),this._engines.set(`id`,this._createAttributeEngine(`id`,!0)),this._engines.set(`id:light`,this._createAttributeEngine(`id`,!1)),this._engines.set(`data-testid`,this._createAttributeEngine(`data-testid`,!0)),this._engines.set(`data-testid:light`,this._createAttributeEngine(`data-testid`,!1)),this._engines.set(`data-test-id`,this._createAttributeEngine(`data-test-id`,!0)),this._engines.set(`data-test-id:light`,this._createAttributeEngine(`data-test-id`,!1)),this._engines.set(`data-test`,this._createAttributeEngine(`data-test`,!0)),this._engines.set(`data-test:light`,this._createAttributeEngine(`data-test`,!1)),this._engines.set(`css`,this._createCSSEngine()),this._engines.set(`nth`,{queryAll:()=>[]}),this._engines.set(`visible`,this._createVisibleEngine()),this._engines.set(`internal:control`,this._createControlEngine()),this._engines.set(`internal:has`,this._createHasEngine()),this._engines.set(`internal:has-not`,this._createHasNotEngine()),this._engines.set(`internal:and`,{queryAll:()=>[]}),this._engines.set(`internal:or`,{queryAll:()=>[]}),this._engines.set(`internal:chain`,this._createInternalChainEngine()),this._engines.set(`internal:label`,this._createInternalLabelEngine()),this._engines.set(`internal:text`,this._createTextEngine(!0,!0)),this._engines.set(`internal:has-text`,this._createInternalHasTextEngine()),this._engines.set(`internal:has-not-text`,this._createInternalHasNotTextEngine()),this._engines.set(`internal:attr`,this._createNamedAttributeEngine()),this._engines.set(`internal:testid`,this._createTestIdEngine()),this._engines.set(`internal:role`,hc(!0)),this._engines.set(`internal:describe`,this._createDescribeEngine()),this._engines.set(`aria-ref`,this._createAriaRefEngine()),this._engines.set(`aria-template`,this._createAriaTemplateEngine());for(let{name:e,source:n}of t.customEngines)this._engines.set(e,this.eval(n));this._stableRafCount=t.stableRafCount,this._browserName=t.browserName,this._shouldPrependErrorPrefix=!!t.shouldPrependErrorPrefix,this._isUtilityWorld=!!t.isUtilityWorld,Aa({browserNameForWorkarounds:t.browserName}),this._setupGlobalListenersRemovalDetection(),this._setupHitTargetInterceptors(),this.isUnderTest&&(this.window.__injectedScript=this)}eval(e){return this.window.eval(e)}testIdAttributeNameForStrictErrorAndConsoleCodegen(){return this._testIdAttributeNameForStrictErrorAndConsoleCodegen}parseSelector(e){let t=_t(e);return xt(t,t=>{if(!this._engines.has(t.name))throw this.createStacklessError(`Unknown engine "${t.name}" while parsing selector ${e}`)}),t}generateSelector(e,t){return rl(this,e,t)}generateSelectorSimple(e,t){return rl(this,e,{...t,testIdAttributeName:this._testIdAttributeNameForStrictErrorAndConsoleCodegen}).selector}querySelector(e,t,n){let r=this.querySelectorAll(e,t);if(n&&r.length>1)throw this.strictModeViolationError(e,r);return this.checkDeprecatedSelectorUsage(e,r),r[0]}_queryNth(e,t){let n=[...e],r=+t.body;return r===-1&&(r=n.length-1),new Set(n.slice(r,r+1))}_queryLayoutSelector(e,t,n){let r=t.name,i=t.body,a=[],o=this.querySelectorAll(i.parsed,n);for(let t of e){let e=ic(r,t,o,i.distance);e!==void 0&&a.push({element:t,score:e})}return a.sort((e,t)=>e.score-t.score),new Set(a.map(e=>e.element))}ariaSnapshot(e,t){let{json:n}=this.ariaSnapshotJSON(e,t);return na(n,{convertStringsToRegex:t.mode===`codegen`})}ariaSnapshotJSON(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw this.createStacklessError(`Can only capture aria snapshot of Element nodes.`);t={...t,refPrefix:this._frameSeq&&t.mode===`ai`?`f`+this._frameSeq:``};let n=As(e,t),r=Us(n,t);return this._lastAriaSnapshotForQuery=n,{json:r.json,iframeRefs:n.iframeRefs,iframeDepths:r.iframeDepths}}ariaSnapshotForRecorder(){let e=As(this.document.body,{mode:`ai`}),{json:t}=Us(e,{mode:`ai`});return{ariaSnapshot:na(t),refs:e.refs}}ariaSnapshotForExpectFailure(e,t){let{json:n}=Us(As(e,t),t);return na(n)}documentContent(e){let t=``;this.document.doctype&&(t=new XMLSerializer().serializeToString(this.document.doctype));let n=this.document.documentElement;if(!n)return t;if(!e)return t+n.outerHTML;let r=[],i=e=>{for(let t of e.querySelectorAll(`*`))t.shadowRoot&&(r.push(t.shadowRoot),i(t.shadowRoot))};i(this.document);let a=n.cloneNode(!1).outerHTML,o=a.lastIndexOf(`</`);return t+a.slice(0,o)+n.getHTML({shadowRoots:r})+a.slice(o)}getAllElementsMatchingExpectAriaTemplate(e,t){return Rs(e.documentElement,t)}querySelectorAll(e,t){if(e.capture!==void 0){if(e.parts.some(e=>e.name===`nth`))throw this.createStacklessError(`Can't query n-th element in a request with the capture.`);let n={parts:e.parts.slice(0,e.capture+1)};if(e.capture<e.parts.length-1){let t={parts:e.parts.slice(e.capture+1)},r={name:`internal:has`,body:{parsed:t},source:bt(t)};n.parts.push(r)}return this.querySelectorAll(n,t)}if(!t.querySelectorAll)throw this.createStacklessError(`Node is not queryable.`);if(e.capture!==void 0)throw this.createStacklessError(`Internal error: there should not be a capture in the selector.`);if(t.nodeType===11&&e.parts.length===1&&e.parts[0].name===`css`&&e.parts[0].source===`:scope`)return[t];this._evaluator.begin();try{let n=new Set([t]);for(let r of e.parts)if(r.name===`nth`)n=this._queryNth(n,r);else if(r.name===`internal:and`){let e=this.querySelectorAll(r.body.parsed,t);n=new Set(e.filter(e=>n.has(e)))}else if(r.name===`internal:or`){let e=this.querySelectorAll(r.body.parsed,t);n=new Set(jc(new Set([...n,...e])))}else if(rc.includes(r.name))n=this._queryLayoutSelector(n,r,t);else{let e=new Set;for(let t of n){let n=this._queryEngineAll(r,t);for(let t of n)e.add(t)}n=e}return[...n]}finally{this._evaluator.end()}}_queryEngineAll(e,t){let n=this._engines.get(e.name).queryAll(t,e.body);for(let e of n)if(!(`nodeName`in e))throw this.createStacklessError(`Expected a Node but got ${Object.prototype.toString.call(e)}`);return n}_createAttributeEngine(e,t){let n=t=>[{simples:[{selector:{css:`[${e}=${JSON.stringify(t)}]`,functions:[]},combinator:``}]}];return{queryAll:(e,r)=>this._evaluator.query({scope:e,pierceShadow:t},n(r))}}_createCSSEngine(){return{queryAll:(e,t)=>this._evaluator.query({scope:e,pierceShadow:!0},t)}}_createTextEngine(e,t){return{queryAll:(n,r)=>{let{matcher:i,kind:a}=W(r,t),o=[],s=null,c=e=>{if(a===`lax`&&s&&s.contains(e))return!1;let n=sc(this._evaluator._cacheText,e,i);n===`none`&&(s=e),(n===`self`||n===`selfAndChildren`&&a===`strict`&&!t)&&o.push(e)};n.nodeType===Node.ELEMENT_NODE&&c(n);let l=this._evaluator._queryCSS({scope:n,pierceShadow:e},`*`);for(let e of l)c(e);return o}}}_createInternalHasTextEngine(){return{queryAll:(e,t)=>{if(e.nodeType!==1)return[];let n=e,r=B(this._evaluator._cacheText,n),{matcher:i}=W(t,!0);return i(r)?[n]:[]}}}_createInternalHasNotTextEngine(){return{queryAll:(e,t)=>{if(e.nodeType!==1)return[];let n=e,r=B(this._evaluator._cacheText,n),{matcher:i}=W(t,!0);return i(r)?[]:[n]}}}_createInternalLabelEngine(){return{queryAll:(e,t)=>{let{matcher:n}=W(t,!0);return this._evaluator._queryCSS({scope:e,pierceShadow:!0},`*`).filter(e=>cc(this._evaluator._cacheText,e).some(e=>n(e)))}}}_createNamedAttributeEngine(){return{queryAll:(e,t)=>{let n=Ct(t,!0);if(n.name||n.attributes.length!==1)throw Error(`Malformed attribute selector: `+t);let{name:r}=n.attributes[0],i=Vl(n.attributes[0]);return this._evaluator._queryCSS({scope:e,pierceShadow:!0},`[${r}]`).filter(e=>i(e.getAttribute(r)))}}}_createTestIdEngine(){return{queryAll:(e,t)=>{let n=Ct(t,!0);if(n.name||n.attributes.length!==1)throw Error(`Malformed test id selector: `+t);let r=sa(n.attributes[0].name),i=Vl(n.attributes[0]),a=r.map(e=>`[${e}]`).join(`,`);return this._evaluator._queryCSS({scope:e,pierceShadow:!0},a).filter(e=>r.some(t=>{let n=e.getAttribute(t);return n!==null&&i(n)}))}}}_createDescribeEngine(){return{queryAll:e=>e.nodeType===1?[e]:[]}}_createControlEngine(){return{queryAll(e,t){if(t===`enter-frame`||t===`any-frame`||t===`return-empty`)return[];if(t===`component`)return e.nodeType===1?[e.childElementCount===1?e.firstElementChild:e]:[];throw Error(`Internal error, unknown internal:control selector ${t}`)}}}_createHasEngine(){return{queryAll:(e,t)=>e.nodeType===1&&this.querySelector(t.parsed,e,!1)?[e]:[]}}_createHasNotEngine(){return{queryAll:(e,t)=>e.nodeType===1?this.querySelector(t.parsed,e,!1)?[]:[e]:[]}}_createVisibleEngine(){return{queryAll:(e,t)=>{if(e.nodeType!==1)return[];let n=t===`true`;return Ua(e)===n?[e]:[]}}}_createInternalChainEngine(){return{queryAll:(e,t)=>this.querySelectorAll(t.parsed,e)}}extend(e,t){return new(this.window.eval(`
55
+ (() => {
56
+ const module = {};
57
+ ${e}
58
+ return module.exports.default();
59
+ })()`))(this,t)}async viewportRatio(e){return await new Promise(t=>{let n=new IntersectionObserver(e=>{t(e[0].intersectionRatio),n.disconnect()});n.observe(e),this.utils.builtins.requestAnimationFrame(()=>{})})}getElementBorderWidth(e){if(e.nodeType!==Node.ELEMENT_NODE||!e.ownerDocument||!e.ownerDocument.defaultView)return{left:0,top:0};let t=e.ownerDocument.defaultView.getComputedStyle(e);return{left:parseInt(t.borderLeftWidth||``,10),top:parseInt(t.borderTopWidth||``,10)}}describeIFrameStyle(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return`error:notconnected`;let t=e.ownerDocument.defaultView;for(let n=e;n;n=Ma(n))if(t.getComputedStyle(n).transform!==`none`)return`transformed`;let n=t.getComputedStyle(e);return{left:parseInt(n.borderLeftWidth||``,10)+parseInt(n.paddingLeft||``,10),top:parseInt(n.borderTopWidth||``,10)+parseInt(n.paddingTop||``,10)}}retarget(e,t){let n=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement;if(!n)return null;if(t===`none`)return n;if(!n.matches(`input, textarea, select`)&&!n.isContentEditable&&(n=t===`button-link`?n.closest(`button, [role=button], a, [role=link]`)||n:n.closest(`button, [role=button], [role=checkbox], [role=radio]`)||n),t===`follow-label`&&!n.matches(`a, input, textarea, button, select, option, optgroup, [role=link], [role=button], [role=checkbox], [role=radio]`)&&!n.isContentEditable){let e=n.closest(`label`);e&&e.control&&(n=e.control)}return n}async checkElementStates(e,t,n){if(t.includes(`stable`)){let t=await this._checkElementIsStable(e);if(t===!1)return{missingState:`stable`};if(t===`error:notconnected`)return`error:notconnected`}for(let r of t)if(r!==`stable`){let t=this.elementState(e,r,n);if(t.received===`error:notconnected`)return`error:notconnected`;if(!t.matches)return{missingState:r}}}async _checkElementIsStable(e){let t=Symbol(`continuePolling`),n,r=0,i=0,a=()=>{let a=this.retarget(e,`no-follow-label`);if(!a)return`error:notconnected`;let o=this.utils.builtins.performance.now();if(this._stableRafCount>1&&o-i<15)return t;i=o;let s=a.getBoundingClientRect(),c={x:s.top,y:s.left,width:s.width,height:s.height};if(n){if(!(c.x===n.x&&c.y===n.y&&c.width===n.width&&c.height===n.height))return!1;if(++r>=this._stableRafCount)return!0}return n=c,t},o,s,c=new Promise((e,t)=>{o=e,s=t}),l=()=>{try{let e=a();e===t?this.utils.builtins.requestAnimationFrame(l):o(e)}catch(e){s(e)}};return this.utils.builtins.requestAnimationFrame(l),c}_createAriaRefEngine(){return{queryAll:(e,t)=>{let n=this._lastAriaSnapshotForQuery?.info?.get(t);return n&&n.element.isConnected?[n.element]:[]}}}_createAriaTemplateEngine(){return{queryAll:(e,t)=>{let n=JSON.parse(t),r=e.nodeType===9?e.documentElement:e;return r?Rs(r,n):[]}}}elementState(e,t,n){let r=this.retarget(e,[`visible`,`hidden`].includes(t)?`none`:`follow-label`);if(!r||!r.isConnected)return t===`hidden`?{matches:!0,received:`hidden`}:{matches:!1,received:`error:notconnected`};if(t===`visible`||t===`hidden`){let e=!!n&&Ua(r);return{matches:t===`visible`?e:!e,received:e?`visible`:`hidden`}}if(t===`disabled`||t===`enabled`){let e=es(r);return{matches:t===`disabled`?e:!e,received:e?`disabled`:`enabled`}}if(t===`non-inert`){let e=Na(r);return{matches:!e,received:e?`inert`:`non-inert`}}if(t===`editable`){let e=es(r),t=Ko(r);if(t===`error`)throw this.createStacklessError(`Element is not an <input>, <textarea>, <select> or [contenteditable] and does not have a role allowing [aria-readonly]`);return{matches:!e&&!t,received:e?`disabled`:t?`readOnly`:`editable`}}if(t===`checked`||t===`unchecked`){let e=t===`checked`,n=Uo(r);if(n===`error`)throw this.createStacklessError(`Not a checkbox or radio button`);let i=r.nodeName===`INPUT`&&r.type===`radio`;return{matches:e===n,received:n?`checked`:`unchecked`,isRadio:i}}if(t===`indeterminate`){let e=Ho(r);if(e===`error`)throw this.createStacklessError(`Not a checkbox or radio button`);return{matches:e===`mixed`,received:e===!0?`checked`:e===!1?`unchecked`:`mixed`}}throw this.createStacklessError(`Unexpected element state "${t}"`)}selectOptions(e,t){let n=this.retarget(e,`follow-label`);if(!n)return`error:notconnected`;if(n.nodeName.toLowerCase()!==`select`)throw this.createStacklessError(`Element is not a <select> element`);let r=n,i=[...r.options],a=[],o=t.slice();for(let e=0;e<i.length;e++){let t=i[e],n=At(t.label),s=r=>{if(r instanceof Node)return t===r;let i=e=>e===t.label||At(e)===n,a=!0;return r.valueOrLabel!==void 0&&(a&&=r.valueOrLabel===t.value||i(r.valueOrLabel)),r.value!==void 0&&(a&&=r.value===t.value),r.label!==void 0&&(a&&=i(r.label)),r.index!==void 0&&(a&&=r.index===e),a};if(o.some(s)){if(!this.elementState(t,`enabled`).matches)return`error:optionnotenabled`;if(a.push(t),r.multiple)o=o.filter(e=>!s(e));else{o=[];break}}}return o.length?`error:optionsnotfound`:(r.value=void 0,a.forEach(e=>e.selected=!0),r.dispatchEvent(new Event(`input`,{bubbles:!0,composed:!0})),r.dispatchEvent(new Event(`change`,{bubbles:!0})),a.map(e=>e.value))}fill(e,t){let n=this.retarget(e,`follow-label`);if(!n)return`error:notconnected`;if(n.nodeName.toLowerCase()===`input`){let e=n,r=e.type.toLowerCase(),i=new Set([`color`,`date`,`time`,`datetime-local`,`month`,`range`,`week`]);if(!new Set([``,`email`,`number`,`password`,`search`,`tel`,`text`,`url`]).has(r)&&!i.has(r))throw this.createStacklessError(`Input of type "${r}" cannot be filled`);if(r===`number`&&(t=t.trim(),isNaN(Number(t))))throw this.createStacklessError(`Cannot type text into input[type=number]`);if(i.has(r))return t=t.trim(),e.focus(),e.value=t,n.dispatchEvent(new Event(`input`,{bubbles:!0,composed:!0})),n.dispatchEvent(new Event(`change`,{bubbles:!0})),`done`}else if(n.nodeName.toLowerCase()!==`textarea`&&!n.isContentEditable)throw this.createStacklessError(`Element is not an <input>, <textarea> or [contenteditable] element`);return this.selectText(n),`needsinput`}selectText(e){let t=this.retarget(e,`follow-label`);if(!t)return`error:notconnected`;if(t.nodeName.toLowerCase()===`input`){let e=t;return e.select(),e.focus(),`done`}if(t.nodeName.toLowerCase()===`textarea`){let e=t;return e.selectionStart=0,e.selectionEnd=e.value.length,e.focus(),`done`}let n=t;for(;n.isContentEditable&&n.parentElement?.isContentEditable;)n=n.parentElement;n.focus();let r=t.ownerDocument.createRange();r.selectNodeContents(t);let i=t.ownerDocument.defaultView.getSelection();return i&&(i.removeAllRanges(),i.addRange(r)),`done`}_activelyFocused(e){let t=e.getRootNode().activeElement;return{activeElement:t,isFocused:t===e&&!!e.ownerDocument&&e.ownerDocument.hasFocus()}}focusNode(e,t){if(!e.isConnected)return`error:notconnected`;if(e.nodeType!==Node.ELEMENT_NODE)throw this.createStacklessError(`Node is not an element`);let{activeElement:n,isFocused:r}=this._activelyFocused(e);if(e.isContentEditable&&!r&&n&&n.blur&&n.blur(),e.focus(),e.focus(),t&&!r&&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,t){if(e.nodeType!==Node.ELEMENT_NODE)return`Node is not of type HTMLElement`;let n=e;if(n.nodeName!==`INPUT`)return`Not an <input> element`;let r=n;if((r.getAttribute(`type`)||``).toLowerCase()!==`file`)return`Not an input[type=file] element`;let i=t.map(e=>{let t=Uint8Array.from(atob(e.buffer),e=>e.charCodeAt(0));return new File([t],e.name,{type:e.mimeType,lastModified:e.lastModifiedMs})}),a=new DataTransfer;for(let e of i)a.items.add(e);r.files=a.files,r.dispatchEvent(new Event(`input`,{bubbles:!0,composed:!0})),r.dispatchEvent(new Event(`change`,{bubbles:!0}))}expectHitTarget(e,t){let n=[],r=t;for(;r;){let e=Pa(r);if(!e||(n.push(e),e.nodeType===9))break;r=e.host}let i;for(let t=n.length-1;t>=0;t--){let r=n[t],a=r.elementsFromPoint(e.x,e.y),o=r.elementFromPoint(e.x,e.y);o&&a[0]&&Ma(o)===a[0]&&this.window.getComputedStyle(o)?.display===`contents`&&a.unshift(o),a[0]&&a[1]===o&&n.slice(t).some(e=>e.host===a[0])&&a.shift();let s=a[0];if(!s||(i=s,t&&s!==n[t-1].host))break}let a=[];for(;i&&i!==t;)a.push(i),i=i.assignedSlot??Ma(i);if(i===t)return`done`;let o=this.previewNode(a[0]||this.document.documentElement),s,c=t;for(;c;){let e=a.indexOf(c);if(e!==-1){e>1&&(s=this.previewNode(a[e-1]));break}c=Ma(c)}return s?{hitTargetDescription:`${o} from ${s} subtree`}:{hitTargetDescription:o}}setupHitTargetInterceptor(e,t,n,r){let i=this.retarget(e,`button-link`);if(!i||!i.isConnected)return`error:notconnected`;if(n){let e=this.expectHitTarget(n,i);if(e!==`done`)return e.hitTargetDescription}if(t===`drag`)return{stop:()=>`done`};let a={hover:this._hoverHitTargetInterceptorEvents,tap:this._tapHitTargetInterceptorEvents,mouse:this._mouseHitTargetInterceptorEvents}[t],o,s=e=>{if(!a.has(e.type)||!e.isTrusted&&!e.__pwTrustedSynthetic)return;let t=this.window.TouchEvent&&e instanceof this.window.TouchEvent?e.touches[0]:e;o===void 0&&t&&(o=this.expectHitTarget({x:t.clientX,y:t.clientY},i)),(r||o!==`done`&&o!==void 0)&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation())},c=()=>(this._hitTargetInterceptor===s&&(this._hitTargetInterceptor=void 0),s=void 0,o||`done`);return this._hitTargetInterceptor=s,{stop:c}}dispatchEvent(e,t,n){let r,i={bubbles:!0,cancelable:!0,composed:!0,...n};switch(this._eventTypes.get(t)){case`mouse`:r=new MouseEvent(t,i);break;case`keyboard`:r=new KeyboardEvent(t,i);break;case`touch`:if(this._browserName===`webkit`){let n=t=>{if(t instanceof Touch)return t;let n=t.pageX;n===void 0&&t.clientX!==void 0&&(n=t.clientX+(this.document.scrollingElement?.scrollLeft||0));let r=t.pageY;return r===void 0&&t.clientY!==void 0&&(r=t.clientY+(this.document.scrollingElement?.scrollTop||0)),this.document.createTouch(this.window,t.target??e,t.identifier,n,r,t.screenX,t.screenY,t.radiusX,t.radiusY,t.rotationAngle,t.force)},a=e=>e instanceof TouchList||!e?e:this.document.createTouchList(...e.map(n));i.target??=e,i.touches=a(i.touches),i.targetTouches=a(i.targetTouches),i.changedTouches=a(i.changedTouches),r=new TouchEvent(t,i)}else i.target??=e,i.touches=i.touches?.map(t=>t instanceof Touch?t:new Touch({...t,target:t.target??e})),i.targetTouches=i.targetTouches?.map(t=>t instanceof Touch?t:new Touch({...t,target:t.target??e})),i.changedTouches=i.changedTouches?.map(t=>t instanceof Touch?t:new Touch({...t,target:t.target??e})),r=new TouchEvent(t,i);break;case`pointer`:r=new PointerEvent(t,i);break;case`focus`:r=new FocusEvent(t,i);break;case`drag`:r=new DragEvent(t,i);break;case`wheel`:r=new WheelEvent(t,i);break;case`deviceorientation`:try{r=new DeviceOrientationEvent(t,i)}catch{let{bubbles:e,cancelable:n,alpha:a,beta:o,gamma:s,absolute:c}=i;r=this.document.createEvent(`DeviceOrientationEvent`),r.initDeviceOrientationEvent(t,e,n,a,o,s,c)}break;case`devicemotion`:try{r=new DeviceMotionEvent(t,i)}catch{let{bubbles:e,cancelable:n,acceleration:a,accelerationIncludingGravity:o,rotationRate:s,interval:c}=i;r=this.document.createEvent(`DeviceMotionEvent`),r.initDeviceMotionEvent(t,e,n,a,o,s,c)}break;default:r=new Event(t,i);break}e.dispatchEvent(r)}previewNode(e){if(e.nodeType===Node.TEXT_NODE)return Bl(`#text=${e.nodeValue||``}`);if(e.nodeType!==Node.ELEMENT_NODE)return Bl(`<${e.nodeName.toLowerCase()} />`);let t=e,n=[];for(let e=0;e<t.attributes.length;e++){let{name:r,value:i}=t.attributes[e];r!==`style`&&(!i&&this._booleanAttributes.has(r)?n.push(` ${r}`):n.push(` ${r}="${i}"`))}n.sort((e,t)=>e.length-t.length);let r=It(n.join(``),500);if(this._autoClosingTags.has(t.nodeName))return Bl(`<${t.nodeName.toLowerCase()}${r}/>`);let i=t.childNodes,a=!1;if(i.length<=5){a=!0;for(let e=0;e<i.length;e++)a&&=i[e].nodeType===Node.TEXT_NODE}let o=a?t.textContent||``:i.length?`…`:``;return Bl(`<${t.nodeName.toLowerCase()}${r}>${It(o,50)}</${t.nodeName.toLowerCase()}>`)}_generateSelectors(e){this._evaluator.begin(),Cs(),Za();try{let t=this._isUtilityWorld&&this._browserName===`firefox`?2:10;return e.slice(0,t).map(e=>({preview:this.previewNode(e),selector:this.generateSelectorSimple(e)})).map((e,t)=>`${t+1}) ${e.preview} aka ${Ht(this._sdkLanguage,e.selector)}`)}finally{Qa(),ws(),this._evaluator.end()}}strictModeViolationError(e,t){let n=this._generateSelectors(t).map(e=>`
60
+ `+e);return n.length<t.length&&n.push(`
61
+ ...`),this.createStacklessError(`strict mode violation: ${Ht(this._sdkLanguage,bt(e))} resolved to ${t.length} elements:${n.join(``)}\n`)}checkDeprecatedSelectorUsage(e,t){let n=new Set([`_react`,`_vue`,`xpath:light`,`text:light`,`id:light`,`data-testid:light`,`data-test-id:light`,`data-test:light`]);if(!t.length)return;let r=e.parts.find(e=>n.has(e.name));if(!r)return;let i=this._generateSelectors(t).map(e=>`
62
+ `+e);throw i.length<t.length&&i.push(`
63
+ ...`),this.createStacklessError(`"${r.name}" selector is not supported: ${Ht(this._sdkLanguage,bt(e))} resolved to ${t.length} element${t.length===1?``:`s`}:${i.join(``)}\n`)}createStacklessError(e){let t=this._shouldPrependErrorPrefix?Error(`Error: `+e):Error(e);return this._browserName===`firefox`?(t.stack=``,t):(delete t.stack,t)}createHighlight(){return new Ys(this)}addMaskedElements(e,t){this._ensureHighlight().addMaskedElements(e,t)}_ensureHighlight(){return this._highlight||=new Ys(this),this._highlight.install(),this._highlight}setHighlights(e){!e.length&&!this._highlight||this._ensureHighlight().setElementHighlights(e)}setScreencastAnnotation(e){let t=this._ensureHighlight();if(t.hideScreencastDecorations(),!e){t.hideActionTitle();return}let n=e.duration??500;e.box&&e.style?.highlight&&t.showScreencastHighlight(e.box,e.style.highlight,n),e.point&&(e.cursor!==`none`&&(e.lastCursorPoint&&t.restoreActionCursor(e.lastCursorPoint.x,e.lastCursorPoint.y),t.moveActionCursor(e.point.x,e.point.y,n)),e.style?.point&&t.showScreencastPoint(e.point.x,e.point.y,e.style.point,n)),e.actionTitle&&t.showActionTitle(e.actionTitle,n,e.position,e.style?.title)}restoreScreencastCursor(e){this._ensureHighlight().restoreActionCursor(e.x,e.y)}hideScreencastCursor(){this._highlight?.hideActionCursor()}addUserOverlay(e,t){this._ensureHighlight().addUserOverlay(e,t)}getUserOverlay(e){return this._ensureHighlight().getUserOverlay(e)}removeUserOverlay(e){this._ensureHighlight().removeUserOverlay(e)}setUserOverlaysVisible(e){this._ensureHighlight().setUserOverlaysVisible(e)}hideHighlight(){this._highlight&&(this._highlight.uninstall(),delete this._highlight)}markTargetElements(e){let t=new CustomEvent(`__playwright_reset_targets__`,{bubbles:!0,cancelable:!0,composed:!0});this.document.dispatchEvent(t);let n=new CustomEvent(`__playwright_mark_target__`,{bubbles:!0,cancelable:!0,composed:!0});for(let t of e)t.dispatchEvent(n)}_setupGlobalListenersRemovalDetection(){let e=`__playwright_global_listeners_check__`,t=!1,n=()=>t=!0;this.window.addEventListener(e,n),new MutationObserver(r=>{if(r.some(e=>Array.from(e.addedNodes).includes(this.document.documentElement))&&(t=!1,this.window.dispatchEvent(new CustomEvent(e)),!t)){this.window.addEventListener(e,n);for(let e of this.onGlobalListenersRemoved)e()}}).observe(this.document,{childList:!0})}_setupHitTargetInterceptors(){let e=e=>this._hitTargetInterceptor?.(e),t=()=>{for(let t of this._allHitTargetInterceptorEvents)this.window.addEventListener(t,e,{capture:!0,passive:!1})};t(),this.onGlobalListenersRemoved.add(t)}async expect(e,t,n,r){let i=t.expression===`to.have.count`||t.expression.endsWith(`.array`)?this.expectArray(n,t):await this.expectSingleElement(e,t,r),a=i.matches===t.isNot?this._ariaSnapshotForExpect(e,t,r):void 0;return i.received===void 0&&a===void 0?{matches:i.matches}:{matches:i.matches,received:{value:i.received,ariaSnapshot:a}}}_ariaSnapshotForExpect(e,t,n){let r=t.expression;if(!(r===`to.have.count`||r.endsWith(`.array`)||r===`to.match.aria`)){if(n&&Ua(e)&&r!==`to.have.title`&&r!==`to.have.url`){let t=r===`to.have.text`;return this.ariaSnapshotForExpectFailure(e,{mode:`default`,depth:t?void 0:1})}if(this.document.body)return this.ariaSnapshotForExpectFailure(this.document.body,{mode:`default`})}}async expectSingleElement(e,t,n){let r=t.expression;if(r===`to.have.title`){let e=this.document.title;return{received:e,matches:new G(t.expectedText[0]).matches(e)}}if(r===`to.have.url`){let e=this.document.location.href;return{received:e,matches:new G(t.expectedText[0]).matches(e)}}{let i;if(r===`to.have.attribute`){let n=e.hasAttribute(t.expressionArg);i={matches:n,received:n?`attribute present`:`attribute not present`}}else if(r===`to.be.checked`){let{checked:n,indeterminate:r}=t.expectedValue;if(r){if(n!==void 0)throw this.createStacklessError(`Can't assert indeterminate and checked at the same time`);i=this.elementState(e,`indeterminate`)}else i=this.elementState(e,n===!1?`unchecked`:`checked`)}else if(r===`to.be.disabled`)i=this.elementState(e,`disabled`);else if(r===`to.be.editable`)i=this.elementState(e,`editable`);else if(r===`to.be.readonly`)i=this.elementState(e,`editable`),i.matches=!i.matches;else if(r===`to.be.empty`)if(e.nodeName===`INPUT`||e.nodeName===`TEXTAREA`){let t=e.value;i={matches:!t,received:t?`notEmpty`:`empty`}}else{let t=e.textContent?.trim();i={matches:!t,received:t?`notEmpty`:`empty`}}else if(r===`to.be.enabled`)i=this.elementState(e,`enabled`);else if(r===`to.be.focused`){let t=this._activelyFocused(e).isFocused;i={matches:t,received:t?`focused`:`inactive`}}else r===`to.be.hidden`?i=this.elementState(e,`hidden`,n):r===`to.be.visible`?i=this.elementState(e,`visible`,n):r===`to.be.attached`?i={matches:!0,received:`attached`}:r===`to.be.detached`&&(i={matches:!1,received:`attached`});if(i){if(i.received===`error:notconnected`)throw this.createStacklessError(`Element is not connected`);return i}}if(r===`to.have.property`){let n=e,r=t.expressionArg.split(`.`);for(let e=0;e<r.length-1;e++){if(typeof n!=`object`||!(r[e]in n))return{received:void 0,matches:!1};n=n[r[e]]}let i=n[r[r.length-1]];return{received:i,matches:K(i,t.expectedValue)}}if(r===`to.be.in.viewport`){let n=await this.viewportRatio(e);return{received:`viewport ratio ${n}`,matches:n>0&&n>(t.expectedNumber??0)-1e-9}}if(r===`to.have.values`){if(e=this.retarget(e,`follow-label`),e.nodeName!==`SELECT`||!e.multiple)throw this.createStacklessError(`Not a select element with a multiple attribute`);let n=[...e.selectedOptions].map(e=>e.value);return n.length===t.expectedText.length?{received:n,matches:n.map((e,n)=>new G(t.expectedText[n]).matches(e)).every(Boolean)}:{received:n,matches:!1}}if(r===`to.match.aria`){let n=Ls(e,t.expectedValue);return{received:n.received,matches:!!n.matches.length}}{let n;if(r===`to.have.attribute.value`){let r=e.getAttribute(t.expressionArg);if(r===null)return{received:null,matches:!1};n=r}else if([`to.have.class`,`to.contain.class`].includes(r)){if(!t.expectedText)throw this.createStacklessError(`Expected text is not provided for `+r);return{received:e.classList.toString(),matches:new G(t.expectedText[0]).matchesClassList(this,e.classList,r===`to.contain.class`)}}else if(r===`to.have.css`)n=this.window.getComputedStyle(e,t.pseudo?`::${t.pseudo}`:void 0).getPropertyValue(t.expressionArg);else if(r===`to.have.id`)n=e.id;else if(r===`to.have.text`)n=t.useInnerText?e.innerText:B(new Map,e).full;else if(r===`to.have.accessible.name`)n=ko(e,!1);else if(r===`to.have.accessible.description`)n=Ao(e,!1).text;else if(r===`to.have.accessible.error.message`)n=Po(e);else if(r===`to.have.role`)n=F(e)||``;else if(r===`to.have.value`){if(e=this.retarget(e,`follow-label`),e.nodeName!==`INPUT`&&e.nodeName!==`TEXTAREA`&&e.nodeName!==`SELECT`)throw this.createStacklessError(`Not an input element`);n=e.value}if(n!==void 0&&t.expectedText){let e=new G(t.expectedText[0]);return{received:n,matches:e.matches(n)}}}throw this.createStacklessError(`Unknown expect matcher: `+r)}expectArray(e,t){let n=t.expression;if(n===`to.have.count`){let n=e.length;return{received:n,matches:n===t.expectedNumber}}if(!t.expectedText)throw this.createStacklessError(`Expected text is not provided for `+n);if([`to.have.class.array`,`to.contain.class.array`].includes(n)){let r=e.map(e=>e.classList),i=r.map(String);return r.length===t.expectedText.length?{received:i,matches:this._matchSequentially(t.expectedText,r,(e,t)=>e.matchesClassList(this,t,n===`to.contain.class.array`))}:{received:i,matches:!1}}if(![`to.contain.text.array`,`to.have.text.array`].includes(n))throw this.createStacklessError(`Unknown expect matcher: `+n);let r=e.map(e=>t.useInnerText?e.innerText:B(new Map,e).full),i=n!==`to.contain.text.array`;return r.length===t.expectedText.length||!i?{received:r,matches:this._matchSequentially(t.expectedText,r,(e,t)=>e.matches(t))}:{received:r,matches:!1}}_matchSequentially(e,t,n){let r=e.map(e=>new G(e)),i=0,a=0;for(;i<r.length&&a<t.length;)n(r[i],t[a])&&++i,++a;return i===r.length}};function Bl(e){return e.replace(/\n/g,`↵`).replace(/\t/g,`⇆`)}function Vl(e){let{value:t,caseSensitive:n}=e;if(t instanceof RegExp)return e=>(t.lastIndex=0,!!e.match(t));if(n)return e=>e===t;let r=t.toLowerCase();return e=>e.toLowerCase().includes(r)}function U(e){if(e=e.substring(1,e.length-1),!e.includes(`\\`))return e;let t=[],n=0;for(;n<e.length;)e[n]===`\\`&&n+1<e.length&&n++,t.push(e[n++]);return t.join(``)}function W(e,t){if(e[0]===`/`&&e.lastIndexOf(`/`)>0){let t=e.lastIndexOf(`/`),n=new RegExp(e.substring(1,t),e.substring(t+1));return{matcher:e=>(n.lastIndex=0,n.test(e.full)),kind:`regex`}}let n=t?JSON.parse.bind(JSON):U,r=!1;return e.length>1&&e[0]===`"`&&e[e.length-1]===`"`?(e=n(e),r=!0):t&&e.length>1&&e[0]===`"`&&e[e.length-2]===`"`&&e[e.length-1]===`i`?(e=n(e.substring(0,e.length-1)),r=!1):t&&e.length>1&&e[0]===`"`&&e[e.length-2]===`"`&&e[e.length-1]===`s`?(e=n(e.substring(0,e.length-1)),r=!0):e.length>1&&e[0]===`'`&&e[e.length-1]===`'`&&(e=n(e),r=!0),e=At(e),r?t?{kind:`strict`,matcher:t=>t.normalized===e}:{matcher:t=>!e&&!t.immediate.length||t.immediate.some(t=>At(t)===e),kind:`strict`}:(e=e.toLowerCase(),{kind:`lax`,matcher:t=>t.normalized.toLowerCase().includes(e)})}var G=class{constructor(e){if(this._normalizeWhiteSpace=e.normalizeWhiteSpace,this._ignoreCase=e.ignoreCase,this._string=e.matchSubstring?void 0:this.normalize(e.string),this._substring=e.matchSubstring?this.normalize(e.string):void 0,e.regexSource){let t=new Set((e.regexFlags||``).split(``));e.ignoreCase===!1&&t.delete(`i`),e.ignoreCase===!0&&t.add(`i`),this._regex=new RegExp(e.regexSource,[...t].join(``))}}matches(e){return this._regex||(e=this.normalize(e)),this._string===void 0?this._substring===void 0?this._regex?(this._regex.lastIndex=0,!!this._regex.test(e)):!1:e.includes(this._substring):e===this._string}matchesClassList(e,t,n){if(n){if(this._regex)throw e.createStacklessError(`Partial matching does not support regular expressions. Please provide a string value.`);return this._string.split(/\s+/g).filter(Boolean).every(e=>t.contains(e))}return this.matches(t.toString())}normalize(e){return e&&(this._normalizeWhiteSpace&&(e=At(e)),this._ignoreCase&&(e=e.toLocaleLowerCase()),e)}};function K(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!K(e[n],t[n]))return!1;return!0}if(e instanceof RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let e=0;e<n.length;++e)if(!t.hasOwnProperty(n[e]))return!1;for(let r of n)if(!K(e[r],t[r]))return!1;return!0}return typeof e==`number`&&typeof t==`number`&&isNaN(e)&&isNaN(t)}var q={tagName:`svg`,children:[{tagName:`defs`,children:[{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-gripper`},children:[{tagName:`path`,attrs:{d:`M5 3h2v2H5zm0 4h2v2H5zm0 4h2v2H5zm4-8h2v2H9zm0 4h2v2H9zm0 4h2v2H9z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-circle-large-filled`},children:[{tagName:`path`,attrs:{d:`M8 1a6.8 6.8 0 0 1 1.86.253 6.899 6.899 0 0 1 3.083 1.805 6.903 6.903 0 0 1 1.804 3.083C14.916 6.738 15 7.357 15 8s-.084 1.262-.253 1.86a6.9 6.9 0 0 1-.704 1.674 7.157 7.157 0 0 1-2.516 2.509 6.966 6.966 0 0 1-1.668.71A6.984 6.984 0 0 1 8 15a6.984 6.984 0 0 1-1.86-.246 7.098 7.098 0 0 1-1.674-.711 7.3 7.3 0 0 1-1.415-1.094 7.295 7.295 0 0 1-1.094-1.415 7.098 7.098 0 0 1-.71-1.675A6.985 6.985 0 0 1 1 8c0-.643.082-1.262.246-1.86a6.968 6.968 0 0 1 .711-1.667 7.156 7.156 0 0 1 2.509-2.516 6.895 6.895 0 0 1 1.675-.704A6.808 6.808 0 0 1 8 1z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-stop-circle`},children:[{tagName:`path`,attrs:{d:`M6 6h4v4H6z`}},{tagName:`path`,attrs:{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8.6 1c1.6.1 3.1.9 4.2 2 1.3 1.4 2 3.1 2 5.1 0 1.6-.6 3.1-1.6 4.4-1 1.2-2.4 2.1-4 2.4-1.6.3-3.2.1-4.6-.7-1.4-.8-2.5-2-3.1-3.5C.9 9.2.8 7.5 1.3 6c.5-1.6 1.4-2.9 2.8-3.8C5.4 1.3 7 .9 8.6 1zm.5 12.9c1.3-.3 2.5-1 3.4-2.1.8-1.1 1.3-2.4 1.2-3.8 0-1.6-.6-3.2-1.7-4.3-1-1-2.2-1.6-3.6-1.7-1.3-.1-2.7.2-3.8 1-1.1.8-1.9 1.9-2.3 3.3-.4 1.3-.4 2.7.2 4 .6 1.3 1.5 2.3 2.7 3 1.2.7 2.6.9 3.9.6z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-inspect`},children:[{tagName:`path`,attrs:{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M1 3l1-1h12l1 1v6h-1V3H2v8h5v1H2l-1-1V3zm14.707 9.707L9 6v9.414l2.707-2.707h4zM10 13V8.414l3.293 3.293h-2L10 13z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-whole-word`},children:[{tagName:`path`,attrs:{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M0 11H1V13H15V11H16V14H15H1H0V11Z`}},{tagName:`path`,attrs:{d:`M6.84048 11H5.95963V10.1406H5.93814C5.555 10.7995 4.99104 11.1289 4.24625 11.1289C3.69839 11.1289 3.26871 10.9839 2.95718 10.6938C2.64924 10.4038 2.49527 10.0189 2.49527 9.53906C2.49527 8.51139 3.10041 7.91341 4.3107 7.74512L5.95963 7.51416C5.95963 6.57959 5.58186 6.1123 4.82632 6.1123C4.16389 6.1123 3.56591 6.33789 3.03238 6.78906V5.88672C3.57307 5.54297 4.19612 5.37109 4.90152 5.37109C6.19416 5.37109 6.84048 6.05501 6.84048 7.42285V11ZM5.95963 8.21777L4.63297 8.40039C4.22476 8.45768 3.91682 8.55973 3.70914 8.70654C3.50145 8.84977 3.39761 9.10579 3.39761 9.47461C3.39761 9.74316 3.4925 9.96338 3.68228 10.1353C3.87564 10.3035 4.13166 10.3877 4.45035 10.3877C4.8872 10.3877 5.24706 10.2355 5.52994 9.93115C5.8164 9.62321 5.95963 9.2347 5.95963 8.76562V8.21777Z`}},{tagName:`path`,attrs:{d:`M9.3475 10.2051H9.32601V11H8.44515V2.85742H9.32601V6.4668H9.3475C9.78076 5.73633 10.4146 5.37109 11.2489 5.37109C11.9543 5.37109 12.5057 5.61816 12.9032 6.1123C13.3042 6.60286 13.5047 7.26172 13.5047 8.08887C13.5047 9.00911 13.2809 9.74674 12.8333 10.3018C12.3857 10.8532 11.7734 11.1289 10.9964 11.1289C10.2695 11.1289 9.71989 10.821 9.3475 10.2051ZM9.32601 7.98682V8.75488C9.32601 9.20964 9.47282 9.59635 9.76644 9.91504C10.0636 10.2301 10.4396 10.3877 10.8944 10.3877C11.4279 10.3877 11.8451 10.1836 12.1458 9.77539C12.4502 9.36719 12.6024 8.79964 12.6024 8.07275C12.6024 7.46045 12.4609 6.98063 12.1781 6.6333C11.8952 6.28597 11.512 6.1123 11.0286 6.1123C10.5166 6.1123 10.1048 6.29134 9.7933 6.64941C9.48177 7.00391 9.32601 7.44971 9.32601 7.98682Z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-eye`},children:[{tagName:`path`,attrs:{d:`M7.99993 6.00316C9.47266 6.00316 10.6666 7.19708 10.6666 8.66981C10.6666 10.1426 9.47266 11.3365 7.99993 11.3365C6.52715 11.3365 5.33324 10.1426 5.33324 8.66981C5.33324 7.19708 6.52715 6.00316 7.99993 6.00316ZM7.99993 7.00315C7.07946 7.00315 6.33324 7.74935 6.33324 8.66981C6.33324 9.59028 7.07946 10.3365 7.99993 10.3365C8.9204 10.3365 9.6666 9.59028 9.6666 8.66981C9.6666 7.74935 8.9204 7.00315 7.99993 7.00315ZM7.99993 3.66675C11.0756 3.66675 13.7307 5.76675 14.4673 8.70968C14.5344 8.97755 14.3716 9.24908 14.1037 9.31615C13.8358 9.38315 13.5643 9.22041 13.4973 8.95248C12.8713 6.45205 10.6141 4.66675 7.99993 4.66675C5.38454 4.66675 3.12664 6.45359 2.50182 8.95555C2.43491 9.22341 2.16348 9.38635 1.89557 9.31948C1.62766 9.25255 1.46471 8.98115 1.53162 8.71321C2.26701 5.76856 4.9229 3.66675 7.99993 3.66675Z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-symbol-constant`},children:[{tagName:`path`,attrs:{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M4 6h8v1H4V6zm8 3H4v1h8V9z`}},{tagName:`path`,attrs:{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M1 4l1-1h12l1 1v8l-1 1H2l-1-1V4zm1 0v8h12V4H2z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-check`},children:[{tagName:`path`,attrs:{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M14.431 3.323l-8.47 10-.79-.036-3.35-4.77.818-.574 2.978 4.24 8.051-9.506.764.646z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-close`},children:[{tagName:`path`,attrs:{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8 8.707l3.646 3.647.708-.707L8.707 8l3.647-3.646-.707-.708L8 7.293 4.354 3.646l-.707.708L7.293 8l-3.646 3.646.707.708L8 8.707z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-pass`},children:[{tagName:`path`,attrs:{d:`M6.27 10.87h.71l4.56-4.56-.71-.71-4.2 4.21-1.92-1.92L4 8.6l2.27 2.27z`}},{tagName:`path`,attrs:{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M8.6 1c1.6.1 3.1.9 4.2 2 1.3 1.4 2 3.1 2 5.1 0 1.6-.6 3.1-1.6 4.4-1 1.2-2.4 2.1-4 2.4-1.6.3-3.2.1-4.6-.7-1.4-.8-2.5-2-3.1-3.5C.9 9.2.8 7.5 1.3 6c.5-1.6 1.4-2.9 2.8-3.8C5.4 1.3 7 .9 8.6 1zm.5 12.9c1.3-.3 2.5-1 3.4-2.1.8-1.1 1.3-2.4 1.2-3.8 0-1.6-.6-3.2-1.7-4.3-1-1-2.2-1.6-3.6-1.7-1.3-.1-2.7.2-3.8 1-1.1.8-1.9 1.9-2.3 3.3-.4 1.3-.4 2.7.2 4 .6 1.3 1.5 2.3 2.7 3 1.2.7 2.6.9 3.9.6z`}}]},{tagName:`clipPath`,attrs:{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,id:`icon-gist`},children:[{tagName:`path`,attrs:{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M10.57 1.14l3.28 3.3.15.36v9.7l-.5.5h-11l-.5-.5v-13l.5-.5h7.72l.35.14zM10 5h3l-3-3v3zM3 2v12h10V6H9.5L9 5.5V2H3zm2.062 7.533l1.817-1.828L6.17 7 4 9.179v.707l2.171 2.174.707-.707-1.816-1.82zM8.8 7.714l.7-.709 2.189 2.175v.709L9.5 12.062l-.705-.709 1.831-1.82L8.8 7.714z`}}]}]}]},Hl={multiple:`#f6b26b7f`,single:`#6fa8dc7f`,assert:`#8acae480`,action:`#dc6f6f7f`},Ul=class{},Wl=class{constructor(e,t){this._hoveredModel=null,this._hoveredElement=null,this._recorder=e,this._assertVisibility=t}cursor(){return`pointer`}uninstall(){this._hoveredModel=null,this._hoveredElement=null}onClick(e){tu(e),e.button===0&&this._hoveredModel?.selector&&this._commit(this._hoveredModel.selector,this._hoveredModel)}onPointerDown(e){tu(e)}onPointerUp(e){tu(e)}onMouseDown(e){tu(e)}onMouseUp(e){tu(e)}onMouseMove(e){tu(e);let t=this._recorder.deepEventTarget(e);if(t.isConnected||(t=null),this._hoveredElement===t)return;this._hoveredElement=t;let n=null;if(this._hoveredElement){let e=this._recorder.injectedScript.generateSelector(this._hoveredElement,{testIdAttributeName:this._recorder.state.testIdAttributeName});n={selector:e.selector,elements:e.elements,tooltipText:this._recorder.injectedScript.utils.asLocator(this._recorder.state.language,e.selector),color:this._assertVisibility?Hl.assert:Hl.single}}this._hoveredModel?.selector!==n?.selector&&(this._hoveredModel=n,this._recorder.updateHighlight(n,!0))}onMouseEnter(e){tu(e)}onMouseLeave(e){tu(e);let t=this._recorder.injectedScript.window;t.top!==t&&this._recorder.deepEventTarget(e).nodeType===Node.DOCUMENT_NODE&&this._reset(!0)}onKeyDown(e){tu(e),e.key===`Escape`&&this._assertVisibility&&this._recorder.setMode(`recording`)}onKeyUp(e){tu(e)}onScroll(e){this._reset(!1)}_commit(e,t){this._assertVisibility?(this._recorder.recordAction({name:`assertVisible`,selector:e}),this._recorder.setMode(`recording`),this._recorder.overlay?.flashToolSucceeded(`assertingVisibility`)):this._recorder.elementPicked(e,t)}_reset(e){this._hoveredElement=null,this._hoveredModel=null,this._recorder.updateHighlight(null,e)}},Gl=class{constructor(e){this._hoveredModel=null,this._hoveredElement=null,this._activeModel=null,this._observer=null,this._recorder=e,this._performingActions=new Set,this._dialog=new Xl(e)}cursor(){return`pointer`}_installObserverIfNeeded(){this._observer||this._recorder.injectedScript.document?.body&&(this._observer=new MutationObserver(e=>{if(this._hoveredElement)for(let t of e)for(let e of t.removedNodes)(e===this._hoveredElement||e.contains(this._hoveredElement))&&this._resetHoveredModel()}),this._observer.observe(this._recorder.injectedScript.document.body,{childList:!0,subtree:!0}))}uninstall(){this._observer?.disconnect(),this._observer=null,this._hoveredModel=null,this._hoveredElement=null,this._activeModel=null,this._dialog.close()}onClick(e){if(this._dialog.isShowing()){e.button===2&&e.type===`auxclick`&&tu(e);return}if(ru(this._hoveredElement)||this._shouldIgnoreMouseEvent(e))return;if(e.button===2&&e.type===`auxclick`){this._performingActions.size||this._showActionListDialog(e);return}if(e.detail===0)return;let t=this._recorder.deepEventTarget(e),n=nu(t);if(n&&e.detail===1){this._recordAction({name:n.checked?`check`:`uncheck`,selector:this._hoveredModel?.selector??this._selectorForElement(t)},{autoExpect:!0});return}this._recordAction({name:`click`,selector:this._hoveredModel?.selector??this._selectorForElement(t),position:eu(e),button:$l(e),modifiers:Ql(e),clickCount:e.detail},{autoExpect:!0})}onContextMenu(e){if(this._dialog.isShowing()){tu(e);return}if(!this._shouldIgnoreMouseEvent(e)){if(this._performingActions.size){let t=this._recorder.deepEventTarget(e);this._recordAction({name:`click`,selector:this._hoveredModel?.selector??this._selectorForElement(t),position:eu(e),button:`right`,modifiers:Ql(e),clickCount:1},{autoExpect:!0});return}this._showActionListDialog(e)}}onPointerDown(e){this._dialog.isShowing()||this._shouldIgnoreMouseEvent(e)||this._consumeRightButtonEvent(e)}onPointerUp(e){this._dialog.isShowing()||this._shouldIgnoreMouseEvent(e)||this._consumeRightButtonEvent(e)}onMouseDown(e){this._dialog.isShowing()||this._shouldIgnoreMouseEvent(e)||(this._consumeRightButtonEvent(e),this._activeModel=this._hoveredModel)}onMouseUp(e){this._dialog.isShowing()||this._shouldIgnoreMouseEvent(e)||this._consumeRightButtonEvent(e)}onMouseMove(e){if(this._dialog.isShowing())return;let t=this._recorder.deepEventTarget(e);this._hoveredElement!==t&&(this._hoveredElement=t,this._updateModelForHoveredElement())}onMouseLeave(e){if(this._dialog.isShowing())return;let t=this._recorder.injectedScript.window;t.top!==t&&this._recorder.deepEventTarget(e).nodeType===Node.DOCUMENT_NODE&&(this._hoveredElement=null,this._updateModelForHoveredElement())}onFocus(e){this._dialog.isShowing()||this._onFocus(!0)}onInput(e){if(this._dialog.isShowing())return;let t=this._recorder.deepEventTarget(e);if(t.nodeName===`INPUT`&&t.type.toLowerCase()===`file`){let e=t===this._hoveredElement&&this._hoveredModel?this._hoveredModel.selector:this._selectorForElement(t);this._recordAction({name:`setInputFiles`,selector:e,files:[...t.files||[]].map(e=>e.name)});return}if(ru(t)){this._recordAction({name:`fill`,selector:this._hoveredModel?.selector??this._selectorForElement(t),text:t.value});return}if([`INPUT`,`TEXTAREA`].includes(t.nodeName)||t.isContentEditable){if(t.nodeName===`INPUT`&&[`checkbox`,`radio`].includes(t.type.toLowerCase()))return;let n=t.isContentEditable?this._selectorForElement(t,{noText:!0}):this._activeSelectorForEvent(e);this._recordAction({name:`fill`,selector:n,text:t.isContentEditable?t.innerText:t.value})}if(t.nodeName===`SELECT`){let n=t;this._recordAction({name:`select`,selector:this._activeSelectorForEvent(e),options:[...n.selectedOptions].map(e=>e.value)})}}onKeyDown(e){if(!this._dialog.isShowing()&&this._shouldGenerateKeyPressFor(e)){if(e.key===` `){let t=nu(this._recorder.deepEventTarget(e));if(t&&e.detail===0){this._recordAction({name:t.checked?`uncheck`:`check`,selector:this._activeSelectorForEvent(e)},{autoExpect:!0});return}}this._recordAction({name:`press`,selector:this._activeSelectorForEvent(e),key:e.key,modifiers:Ql(e)},{autoExpect:!0})}}onScroll(e){this._dialog.isShowing()||this._resetHoveredModel()}_showActionListDialog(e){tu(e);let t=this._hoveredModel??this._modelForElement(this._recorder.deepEventTarget(e));if(!t)return;let n=eu(e),r=[{title:`Click`,cb:()=>this._performAction({name:`click`,selector:t.selector,position:n,button:`left`,modifiers:0,clickCount:1})},{title:`Right click`,cb:()=>this._performAction({name:`click`,selector:t.selector,position:n,button:`right`,modifiers:0,clickCount:1})},{title:`Double click`,cb:()=>this._performAction({name:`click`,selector:t.selector,position:n,button:`left`,modifiers:0,clickCount:2})},{title:`Hover`,cb:()=>this._recordAction({name:`hover`,selector:t.selector,position:n})},{title:`Pick locator`,cb:()=>this._recorder.elementPicked(t.selector,t)}],i=this._recorder.document.createElement(`x-pw-action-list`);i.setAttribute(`role`,`list`),i.setAttribute(`aria-label`,`Choose action`);for(let e of r){let t=this._recorder.document.createElement(`x-pw-action-item`);t.setAttribute(`role`,`listitem`),t.textContent=e.title,t.setAttribute(`aria-label`,e.title),t.addEventListener(`click`,()=>{this._dialog.close(),e.cb()}),i.appendChild(t)}let a=this._dialog.show({label:`Choose action`,body:i,autosize:!0}),o=this._recorder.highlight.firstTooltipBox()||t.elements[0].getBoundingClientRect(),s=this._recorder.highlight.tooltipPosition(o,a);this._dialog.moveTo(s.anchorTop,s.anchorLeft)}_resetHoveredModel(){this._hoveredModel=null,this._hoveredElement=null,this._updateHighlight(!1)}_onFocus(e){let t=Zl(this._recorder.document);if(e&&t===this._recorder.document.body)return;let n=t?this._recorder.injectedScript.generateSelector(t,{testIdAttributeName:this._recorder.state.testIdAttributeName}):null;this._activeModel=n&&n.selector?{...n,color:Hl.action}:null,e&&(this._hoveredElement=t,this._updateModelForHoveredElement())}_shouldIgnoreMouseEvent(e){return au(this._recorder.deepEventTarget(e))}_consumeRightButtonEvent(e){e.button===2&&!this._performingActions.size&&tu(e)}_selectorForElement(e,t){return this._recorder.injectedScript.generateSelector(e,{...t,testIdAttributeName:this._recorder.state.testIdAttributeName}).selector}_modelForElement(e){let{selector:t,elements:n}=this._recorder.injectedScript.generateSelector(e,{testIdAttributeName:this._recorder.state.testIdAttributeName});return t?{selector:t,elements:n,color:Hl.action}:null}_activeSelectorForEvent(e){let t=this._recorder.deepEventTarget(e);return this._activeModel&&this._activeModel.elements[0]===t?this._activeModel.selector:this._selectorForElement(t)}_reportPerformedActionForTests(){this._recorder.injectedScript.isUnderTest&&console.error(`Action performed for test: `+JSON.stringify({hovered:this._hoveredModel?this._hoveredModel.selector:null,active:this._activeModel?this._activeModel.selector:null}))}_recordAction(e,t){this._recorder.recordAction(e,t).then(()=>this._reportPerformedActionForTests())}_performAction(e){this._recorder.updateHighlight(null,!1),this._performingActions.add(e),this._recorder.performAction(e).finally(()=>{this._performingActions.delete(e),this._onFocus(!1)}).then(()=>this._reportPerformedActionForTests())}_shouldGenerateKeyPressFor(e){if(typeof e.key!=`string`||e.key===`Enter`&&(this._recorder.deepEventTarget(e).nodeName===`TEXTAREA`||this._recorder.deepEventTarget(e).isContentEditable)||[`Backspace`,`Delete`,`AltGraph`].includes(e.key)||e.key===`@`&&e.code===`KeyL`)return!1;if(navigator.platform.includes(`Mac`)){if(e.key===`v`&&e.metaKey)return!1}else if(e.key===`v`&&e.ctrlKey||e.key===`Insert`&&e.shiftKey)return!1;if([`Shift`,`Control`,`Meta`,`Alt`,`Process`].includes(e.key))return!1;let t=e.ctrlKey||e.altKey||e.metaKey;return e.key.length===1&&!t?!!nu(this._recorder.deepEventTarget(e)):!0}_updateModelForHoveredElement(){if(this._installObserverIfNeeded(),this._performingActions.size)return;if(!this._hoveredElement||!this._hoveredElement.isConnected){this._hoveredModel=null,this._hoveredElement=null,this._updateHighlight(!0);return}let{selector:e,elements:t}=this._recorder.injectedScript.generateSelector(this._hoveredElement,{testIdAttributeName:this._recorder.state.testIdAttributeName});this._hoveredModel&&this._hoveredModel.selector===e||(this._hoveredModel=e?{selector:e,elements:t,color:Hl.action}:null,this._updateHighlight(!0))}_updateHighlight(e){this._recorder.updateHighlight(this._hoveredModel,e)}},Kl=class{constructor(e){this._recorder=e}install(){this._recorder.highlight.uninstall()}uninstall(){this._recorder.highlight.install()}onClick(e){let t=this._recorder.deepEventTarget(e);if(ru(t)||e.button===2&&e.type===`auxclick`||this._shouldIgnoreMouseEvent(e))return;let n=nu(t),{ariaSnapshot:r,selector:i,ref:a}=this._ariaSnapshot(t);if(n&&e.detail===1){this._recorder.recordAction({name:n.checked?`check`:`uncheck`,selector:i,ref:a,ariaSnapshot:r});return}this._recorder.recordAction({name:`click`,selector:i,ref:a,ariaSnapshot:r,position:eu(e),button:$l(e),modifiers:Ql(e),clickCount:e.detail})}onContextMenu(e){let t=this._recorder.deepEventTarget(e),{ariaSnapshot:n,selector:r,ref:i}=this._ariaSnapshot(t);this._recorder.recordAction({name:`click`,selector:r,ref:i,ariaSnapshot:n,position:eu(e),button:`right`,modifiers:Ql(e),clickCount:1})}onInput(e){let t=this._recorder.deepEventTarget(e),{ariaSnapshot:n,selector:r,ref:i}=this._ariaSnapshot(t);if(ru(t)){this._recorder.recordAction({name:`fill`,selector:r,ref:i,ariaSnapshot:n,text:t.value});return}if([`INPUT`,`TEXTAREA`].includes(t.nodeName)||t.isContentEditable){if(t.nodeName===`INPUT`&&[`checkbox`,`radio`].includes(t.type.toLowerCase()))return;this._recorder.recordAction({name:`fill`,ref:i,selector:r,ariaSnapshot:n,text:t.isContentEditable?t.innerText:t.value});return}if(t.nodeName===`SELECT`){let e=t;this._recorder.recordAction({name:`select`,selector:r,ref:i,ariaSnapshot:n,options:[...e.selectedOptions].map(e=>e.value)});return}}onKeyDown(e){if(!this._shouldGenerateKeyPressFor(e))return;let t=this._recorder.deepEventTarget(e),{ariaSnapshot:n,selector:r,ref:i}=this._ariaSnapshot(t);if(e.key===` `){let a=nu(t);if(a&&e.detail===0){this._recorder.recordAction({name:a.checked?`uncheck`:`check`,selector:r,ref:i,ariaSnapshot:n});return}}this._recorder.recordAction({name:`press`,selector:r,ref:i,ariaSnapshot:n,key:e.key,modifiers:Ql(e)})}_shouldIgnoreMouseEvent(e){return au(this._recorder.deepEventTarget(e))}_shouldGenerateKeyPressFor(e){if(typeof e.key!=`string`||e.key===`Enter`&&(this._recorder.deepEventTarget(e).nodeName===`TEXTAREA`||this._recorder.deepEventTarget(e).isContentEditable)||[`Backspace`,`Delete`,`AltGraph`].includes(e.key)||e.key===`@`&&e.code===`KeyL`)return!1;if(navigator.platform.includes(`Mac`)){if(e.key===`v`&&e.metaKey)return!1}else if(e.key===`v`&&e.ctrlKey||e.key===`Insert`&&e.shiftKey)return!1;if([`Shift`,`Control`,`Meta`,`Alt`,`Process`].includes(e.key))return!1;let t=e.ctrlKey||e.altKey||e.metaKey;return e.key.length===1&&!t?!this._isEditable(this._recorder.deepEventTarget(e)):!0}_isEditable(e){return!!(e.nodeName===`TEXTAREA`||e.nodeName===`INPUT`||e.isContentEditable)}_ariaSnapshot(e){let{ariaSnapshot:t,refs:n}=this._recorder.injectedScript.ariaSnapshotForRecorder(),r=e?n.get(e):void 0;return{ariaSnapshot:t,selector:(e?this._recorder.injectedScript.generateSelector(e,{testIdAttributeName:this._recorder.state.testIdAttributeName}):void 0)?.selector,ref:r}}},ql=class{constructor(e,t){this._hoverHighlight=null,this._action=null,this._recorder=e,this._textCache=new Map,this._kind=t,this._dialog=new Xl(e)}cursor(){return`pointer`}uninstall(){this._dialog.close(),this._hoverHighlight=null}onClick(e){tu(e),this._kind===`value`?this._commitAssertValue():this._dialog.isShowing()||this._showDialog()}onMouseDown(e){let t=this._recorder.deepEventTarget(e);this._elementHasValue(t)&&e.preventDefault()}onPointerUp(e){let t=this._hoverHighlight?.elements[0];this._kind===`value`&&t&&(t.nodeName===`INPUT`||t.nodeName===`SELECT`)&&t.disabled&&this._commitAssertValue()}onMouseMove(e){if(this._dialog.isShowing())return;let t=this._recorder.deepEventTarget(e);if(this._hoverHighlight?.elements[0]!==t){if(this._kind===`text`||this._kind===`snapshot`)this._hoverHighlight=this._recorder.injectedScript.utils.elementText(this._textCache,t).full?{elements:[t],selector:``,color:Hl.assert}:null;else if(this._elementHasValue(t)){let e=this._recorder.injectedScript.generateSelector(t,{testIdAttributeName:this._recorder.state.testIdAttributeName});this._hoverHighlight={selector:e.selector,elements:e.elements,color:Hl.assert}}else this._hoverHighlight=null;this._recorder.updateHighlight(this._hoverHighlight,!0)}}onKeyDown(e){e.key===`Escape`&&this._recorder.setMode(`recording`),tu(e)}onScroll(e){this._recorder.updateHighlight(this._hoverHighlight,!1)}_elementHasValue(e){return e.nodeName===`TEXTAREA`||e.nodeName===`SELECT`||e.nodeName===`INPUT`&&![`button`,`image`,`reset`,`submit`].includes(e.type)}_generateAction(){this._textCache.clear();let e=this._hoverHighlight?.elements[0];if(!e)return null;if(this._kind===`value`){if(!this._elementHasValue(e))return null;let{selector:t}=this._recorder.injectedScript.generateSelector(e,{testIdAttributeName:this._recorder.state.testIdAttributeName});return e.nodeName===`INPUT`&&[`checkbox`,`radio`].includes(e.type.toLowerCase())?{name:`assertChecked`,selector:t,checked:!e.checked}:{name:`assertValue`,selector:t,value:e.value}}else if(this._kind===`snapshot`){let t=this._recorder.injectedScript.generateSelector(e,{testIdAttributeName:this._recorder.state.testIdAttributeName,forTextExpect:!0});return this._hoverHighlight={selector:t.selector,elements:t.elements,color:Hl.assert},this._recorder.updateHighlight(this._hoverHighlight,!0),{name:`assertSnapshot`,selector:this._hoverHighlight.selector,ariaSnapshot:this._recorder.injectedScript.ariaSnapshot(e,{mode:`codegen`})}}else{let t=this._recorder.injectedScript.generateSelector(e,{testIdAttributeName:this._recorder.state.testIdAttributeName,forTextExpect:!0});return this._hoverHighlight={selector:t.selector,elements:t.elements,color:Hl.assert},this._recorder.updateHighlight(this._hoverHighlight,!0),{name:`assertText`,selector:this._hoverHighlight.selector,text:this._recorder.injectedScript.utils.elementText(this._textCache,e).normalized,substring:!0}}}_renderValue(e){return e?.name===`assertText`?this._recorder.injectedScript.utils.normalizeWhiteSpace(e.text):e?.name===`assertChecked`?String(e.checked):e?.name===`assertValue`?e.value:e?.name===`assertSnapshot`?e.ariaSnapshot:``}_commit(){!this._action||!this._dialog.isShowing()||(this._dialog.close(),this._recorder.recordAction(this._action),this._recorder.setMode(`recording`))}_showDialog(){this._hoverHighlight?.elements[0]&&(this._action=this._generateAction(),this._action?.name===`assertText`?this._showTextDialog(this._action):this._action?.name===`assertSnapshot`&&(this._recorder.recordAction(this._action),this._recorder.setMode(`recording`),this._recorder.overlay?.flashToolSucceeded(`assertingSnapshot`)))}_showTextDialog(e){let t=this._recorder.document.createElement(`textarea`);t.setAttribute(`spellcheck`,`false`),t.value=this._renderValue(e),t.classList.add(`text-editor`),t.addEventListener(`input`,()=>{let n=this._recorder.injectedScript.utils.normalizeWhiteSpace(t.value),r=this._hoverHighlight?.elements[0];if(!r)return;e.text=n;let i=this._recorder.injectedScript.utils.elementText(this._textCache,r).normalized,a=n&&i.includes(n);t.classList.toggle(`does-not-match`,!a)});let n=this._dialog.show({label:`Assert that element contains text`,body:t,onCommit:()=>this._commit()}),r=this._recorder.highlight.tooltipPosition(this._recorder.highlight.firstBox(),n);this._dialog.moveTo(r.anchorTop,r.anchorLeft),t.focus()}_commitAssertValue(){if(this._kind!==`value`)return;let e=this._generateAction();e&&(this._recorder.recordAction(e),this._recorder.setMode(`recording`),this._recorder.overlay?.flashToolSucceeded(`assertingValue`))}},Jl=class{constructor(e){this._listeners=[],this._offsetX=0,this._measure={width:0,height:0},this._recorder=e;let t=this._recorder.document;this._overlayElement=t.createElement(`x-pw-overlay`);let n=t.createElement(`x-pw-tools-list`);this._overlayElement.appendChild(n),this._dragHandle=t.createElement(`x-pw-tool-gripper`),this._dragHandle.appendChild(t.createElement(`x-div`)),n.appendChild(this._dragHandle),this._recordToggle=this._recorder.document.createElement(`x-pw-tool-item`),this._recordToggle.title=`Record`,this._recordToggle.classList.add(`record`),this._recordToggle.appendChild(this._recorder.document.createElement(`x-div`)),n.appendChild(this._recordToggle),this._pickLocatorToggle=this._recorder.document.createElement(`x-pw-tool-item`),this._pickLocatorToggle.title=`Pick locator`,this._pickLocatorToggle.classList.add(`pick-locator`),this._pickLocatorToggle.appendChild(this._recorder.document.createElement(`x-div`)),n.appendChild(this._pickLocatorToggle),this._assertVisibilityToggle=this._recorder.document.createElement(`x-pw-tool-item`),this._assertVisibilityToggle.title=`Assert visibility`,this._assertVisibilityToggle.classList.add(`visibility`),this._assertVisibilityToggle.appendChild(this._recorder.document.createElement(`x-div`)),n.appendChild(this._assertVisibilityToggle),this._assertTextToggle=this._recorder.document.createElement(`x-pw-tool-item`),this._assertTextToggle.title=`Assert text`,this._assertTextToggle.classList.add(`text`),this._assertTextToggle.appendChild(this._recorder.document.createElement(`x-div`)),n.appendChild(this._assertTextToggle),this._assertValuesToggle=this._recorder.document.createElement(`x-pw-tool-item`),this._assertValuesToggle.title=`Assert value`,this._assertValuesToggle.classList.add(`value`),this._assertValuesToggle.appendChild(this._recorder.document.createElement(`x-div`)),n.appendChild(this._assertValuesToggle),this._assertSnapshotToggle=this._recorder.document.createElement(`x-pw-tool-item`),this._assertSnapshotToggle.title=`Assert snapshot`,this._assertSnapshotToggle.classList.add(`snapshot`),this._assertSnapshotToggle.appendChild(this._recorder.document.createElement(`x-div`)),n.appendChild(this._assertSnapshotToggle),this._updateVisualPosition(),this._refreshListeners()}_refreshListeners(){ou(this._listeners),this._listeners=[J(this._dragHandle,`mousedown`,e=>{this._dragState={offsetX:this._offsetX,dragStart:{x:e.clientX,y:0}}}),J(this._recordToggle,`click`,()=>{this._recordToggle.classList.contains(`disabled`)||this._recorder.setMode(this._recorder.state.mode===`none`||this._recorder.state.mode===`standby`||this._recorder.state.mode===`inspecting`?`recording`:`standby`)}),J(this._pickLocatorToggle,`click`,()=>{this._pickLocatorToggle.classList.contains(`disabled`)||this._recorder.setMode({inspecting:`standby`,none:`inspecting`,standby:`inspecting`,recording:`recording-inspecting`,"recording-inspecting":`recording`,assertingText:`recording-inspecting`,assertingVisibility:`recording-inspecting`,assertingValue:`recording-inspecting`,assertingSnapshot:`recording-inspecting`}[this._recorder.state.mode])}),J(this._assertVisibilityToggle,`click`,()=>{this._assertVisibilityToggle.classList.contains(`disabled`)||this._recorder.setMode(this._recorder.state.mode===`assertingVisibility`?`recording`:`assertingVisibility`)}),J(this._assertTextToggle,`click`,()=>{this._assertTextToggle.classList.contains(`disabled`)||this._recorder.setMode(this._recorder.state.mode===`assertingText`?`recording`:`assertingText`)}),J(this._assertValuesToggle,`click`,()=>{this._assertValuesToggle.classList.contains(`disabled`)||this._recorder.setMode(this._recorder.state.mode===`assertingValue`?`recording`:`assertingValue`)}),J(this._assertSnapshotToggle,`click`,()=>{this._assertSnapshotToggle.classList.contains(`disabled`)||this._recorder.setMode(this._recorder.state.mode===`assertingSnapshot`?`recording`:`assertingSnapshot`)})]}install(){this._recorder.highlight.appendChild(this._overlayElement),this._refreshListeners(),this._updateVisualPosition()}contains(e){return this._recorder.injectedScript.utils.isInsideScope(this._overlayElement,e)}setUIState(e){let t=e.mode===`recording`||e.mode===`assertingText`||e.mode===`assertingVisibility`||e.mode===`assertingValue`||e.mode===`assertingSnapshot`||e.mode===`recording-inspecting`;this._recordToggle.classList.toggle(`toggled`,t),this._recordToggle.title=t?`Stop Recording`:`Start Recording`,this._pickLocatorToggle.classList.toggle(`toggled`,e.mode===`inspecting`||e.mode===`recording-inspecting`),this._assertVisibilityToggle.classList.toggle(`toggled`,e.mode===`assertingVisibility`),this._assertVisibilityToggle.classList.toggle(`disabled`,e.mode===`none`||e.mode===`standby`||e.mode===`inspecting`),this._assertTextToggle.classList.toggle(`toggled`,e.mode===`assertingText`),this._assertTextToggle.classList.toggle(`disabled`,e.mode===`none`||e.mode===`standby`||e.mode===`inspecting`),this._assertValuesToggle.classList.toggle(`toggled`,e.mode===`assertingValue`),this._assertValuesToggle.classList.toggle(`disabled`,e.mode===`none`||e.mode===`standby`||e.mode===`inspecting`),this._assertSnapshotToggle.classList.toggle(`toggled`,e.mode===`assertingSnapshot`),this._assertSnapshotToggle.classList.toggle(`disabled`,e.mode===`none`||e.mode===`standby`||e.mode===`inspecting`),this._offsetX!==e.overlay.offsetX&&(this._offsetX=e.overlay.offsetX,this._updateVisualPosition()),e.mode===`none`?this._hideOverlay():this._showOverlay()}flashToolSucceeded(e){let t;t=e===`assertingVisibility`?this._assertVisibilityToggle:e===`assertingSnapshot`?this._assertSnapshotToggle:this._assertValuesToggle,t.classList.add(`succeeded`),this._recorder.injectedScript.utils.builtins.setTimeout(()=>t.classList.remove(`succeeded`),2e3)}_hideOverlay(){this._overlayElement.setAttribute(`hidden`,`true`)}_showOverlay(){this._overlayElement.hasAttribute(`hidden`)&&(this._overlayElement.removeAttribute(`hidden`),this._updateVisualPosition())}_updateVisualPosition(){this._measure=this._overlayElement.getBoundingClientRect(),this._overlayElement.style.left=(this._recorder.injectedScript.window.innerWidth-this._measure.width)/2+this._offsetX+`px`}onMouseMove(e){if(!e.buttons)return this._dragState=void 0,!1;if(this._dragState){this._offsetX=this._dragState.offsetX+e.clientX-this._dragState.dragStart.x;let t=(this._recorder.injectedScript.window.innerWidth-this._measure.width)/2-10;return this._offsetX=Math.max(-t,Math.min(t,this._offsetX)),this._updateVisualPosition(),this._recorder.setOverlayState({offsetX:this._offsetX}),tu(e),!0}return!1}onMouseUp(e){return this._dragState?(tu(e),!0):!1}onClick(e){return this._dragState?(this._dragState=void 0,tu(e),!0):!1}onDblClick(e){return!1}},Yl=class{constructor(e,t){this._listeners=[],this.state={mode:`none`,testIdAttributeName:`data-testid`,language:`javascript`,overlay:{offsetX:0}},this._delegate={},this.document=e.document,this.injectedScript=e,this.highlight=e.createHighlight(),this._tools={none:new Ul,standby:new Ul,inspecting:new Wl(this,!1),recording:t?.recorderMode===`api`?new Kl(this):new Gl(this),"recording-inspecting":new Wl(this,!1),assertingText:new ql(this,`text`),assertingVisibility:new Wl(this,!0),assertingValue:new ql(this,`value`),assertingSnapshot:new ql(this,`snapshot`)},this._currentTool=this._tools.none,this._currentTool.install?.(),e.window.top===e.window&&!t?.hideToolbar&&(this.overlay=new Jl(this),this.overlay.setUIState(this.state)),this._stylesheet=new e.window.CSSStyleSheet,this._stylesheet.replaceSync(`
64
+ body[data-pw-cursor=pointer] *, body[data-pw-cursor=pointer] *::after { cursor: pointer !important; }
65
+ body[data-pw-cursor=text] *, body[data-pw-cursor=text] *::after { cursor: text !important; }
66
+ `),this.installListeners(),e.utils.cacheNormalizedWhitespaces(),e.isUnderTest&&console.error(`Recorder script ready for test`),e.consoleApi.install()}installListeners(){ou(this._listeners),this._listeners=[J(this.document,`click`,e=>this._onClick(e),!0),J(this.document,`auxclick`,e=>this._onClick(e),!0),J(this.document,`dblclick`,e=>this._onDblClick(e),!0),J(this.document,`contextmenu`,e=>this._onContextMenu(e),!0),J(this.document,`dragstart`,e=>this._onDragStart(e),!0),J(this.document,`input`,e=>this._onInput(e),!0),J(this.document,`keydown`,e=>this._onKeyDown(e),!0),J(this.document,`keyup`,e=>this._onKeyUp(e),!0),J(this.document,`pointerdown`,e=>this._onPointerDown(e),!0),J(this.document,`pointerup`,e=>this._onPointerUp(e),!0),J(this.document,`mousedown`,e=>this._onMouseDown(e),!0),J(this.document,`mouseup`,e=>this._onMouseUp(e),!0),J(this.document,`mousemove`,e=>this._onMouseMove(e),!0),J(this.document,`mouseleave`,e=>this._onMouseLeave(e),!0),J(this.document,`mouseenter`,e=>this._onMouseEnter(e),!0),J(this.document,`focus`,e=>this._onFocus(e),!0),J(this.document,`scroll`,e=>this._onScroll(e),!0)],this.highlight.install();let e,t=()=>{this.highlight.install(),e=this.injectedScript.utils.builtins.setTimeout(t,500)};e=this.injectedScript.utils.builtins.setTimeout(t,500),this._listeners.push(()=>this.injectedScript.utils.builtins.clearTimeout(e)),this.highlight.appendChild(su(this.document,q)),this.overlay?.install(),this._currentTool?.install?.(),this.document.adoptedStyleSheets.push(this._stylesheet)}_switchCurrentTool(){let e=this._tools[this.state.mode];if(e===this._currentTool)return;this._currentTool.uninstall?.(),this.clearHighlight(),this._currentTool=e,this._currentTool.install?.();let t=e.cursor?.();t&&this.injectedScript.document.body?.setAttribute(`data-pw-cursor`,t)}setUIState(e,t){this._delegate=t,e.actionPoint&&this.state.actionPoint&&e.actionPoint.x===this.state.actionPoint.x&&e.actionPoint.y===this.state.actionPoint.y||!e.actionPoint&&!this.state.actionPoint||(e.actionPoint?this.highlight.showActionPoint(e.actionPoint.x,e.actionPoint.y):this.highlight.hideActionPoint()),this.state=e,this.highlight.setLanguage(e.language),this._switchCurrentTool(),this.overlay?.setUIState(e)}clearHighlight(){this.updateHighlight(null,!1)}_onClick(e){e.isTrusted&&(this.overlay?.onClick(e)||this._ignoreOverlayEvent(e)||this._currentTool.onClick?.(e))}_onDblClick(e){e.isTrusted&&(this.overlay?.onDblClick(e)||this._ignoreOverlayEvent(e)||this._currentTool.onDblClick?.(e))}_onContextMenu(e){e.isTrusted&&this._currentTool.onContextMenu?.(e)}_onDragStart(e){e.isTrusted&&(this._ignoreOverlayEvent(e)||this._currentTool.onDragStart?.(e))}_onPointerDown(e){e.isTrusted&&(this._ignoreOverlayEvent(e)||this._currentTool.onPointerDown?.(e))}_onPointerUp(e){e.isTrusted&&(this._ignoreOverlayEvent(e)||this._currentTool.onPointerUp?.(e))}_onMouseDown(e){e.isTrusted&&(this._ignoreOverlayEvent(e)||this._currentTool.onMouseDown?.(e))}_onMouseUp(e){e.isTrusted&&(this.overlay?.onMouseUp(e)||this._ignoreOverlayEvent(e)||this._currentTool.onMouseUp?.(e))}_onMouseMove(e){e.isTrusted&&(this.overlay?.onMouseMove(e)||this._ignoreOverlayEvent(e)||this._currentTool.onMouseMove?.(e))}_onMouseEnter(e){e.isTrusted&&(this._ignoreOverlayEvent(e)||this._currentTool.onMouseEnter?.(e))}_onMouseLeave(e){e.isTrusted&&(this._ignoreOverlayEvent(e)||this._currentTool.onMouseLeave?.(e))}_onFocus(e){e.isTrusted&&(this._ignoreOverlayEvent(e)||this._currentTool.onFocus?.(e))}_onScroll(e){e.isTrusted&&(this.highlight.hideActionPoint(),this._currentTool.onScroll?.(e))}_onInput(e){this._ignoreOverlayEvent(e)||this._currentTool.onInput?.(e)}_onKeyDown(e){e.isTrusted&&(this._ignoreOverlayEvent(e)||this._currentTool.onKeyDown?.(e))}_onKeyUp(e){e.isTrusted&&(this._ignoreOverlayEvent(e)||this._currentTool.onKeyUp?.(e))}updateHighlight(e,t){this._updateHighlight(e,t)}_updateHighlight(e,t){let n=e?.tooltipText;n===void 0&&e?.selector&&(n=this.injectedScript.utils.asLocator(this.state.language,e.selector)),e?this.highlight.updateHighlight(e.elements.map(t=>({element:t,color:e.color,tooltipText:n}))):this.highlight.clearHighlight(),t&&this._delegate.highlightUpdated?.()}_ignoreOverlayEvent(e){return e.composedPath().some(e=>(e.nodeName||``).toLowerCase()===`x-pw-glass`)}deepEventTarget(e){for(let t of e.composedPath())if(!this.overlay?.contains(t))return t;return e.composedPath()[0]}setMode(e){this._delegate.setMode?.(e)}_captureAutoExpectSnapshot(){let e=this.injectedScript.document.documentElement;return e?this.injectedScript.utils.generateAriaTree(e,{mode:`autoexpect`}):void 0}_computeAutoExpectPrecondition(e,t){let n=this._lastActionAutoexpectSnapshot;if(this._lastActionAutoexpectSnapshot=this._captureAutoExpectSnapshot(),!t||cu(e)||!this._lastActionAutoexpectSnapshot)return;let r=this.injectedScript.utils.findNewElement(n?.root,this._lastActionAutoexpectSnapshot.root),i=r?this.injectedScript.generateSelector(r,{testIdAttributeName:this.state.testIdAttributeName}).selector:void 0;return`selector`in e&&i===e.selector&&(i=void 0),i}async performAction(e){await this._delegate.performAction?.(e).catch(()=>{})}async recordAction(e,t){let n=this._computeAutoExpectPrecondition(e,!!t?.autoExpect);await this._delegate.recordAction?.(e,n)}setOverlayState(e){this._delegate.setOverlayState?.(e)}elementPicked(e,t){let n=this.injectedScript.ariaSnapshot(t.elements[0],{mode:`default`});this._delegate.elementPicked?.({selector:e,ariaSnapshot:n})}},Xl=class{constructor(e){this._dialogElement=null,this._recorder=e}isShowing(){return!!this._dialogElement}show(e){let t=this._recorder.document.createElement(`x-pw-tool-item`);t.title=`Accept`,t.classList.add(`accept`),t.appendChild(this._recorder.document.createElement(`x-div`)),t.addEventListener(`click`,()=>e.onCommit?.());let n=this._recorder.document.createElement(`x-pw-tool-item`);n.title=`Close`,n.classList.add(`cancel`),n.appendChild(this._recorder.document.createElement(`x-div`)),n.addEventListener(`click`,()=>{this.close(),e.onCancel?.()}),this._dialogElement=this._recorder.document.createElement(`x-pw-dialog`),e.autosize&&this._dialogElement.classList.add(`autosize`),this._keyboardListener=t=>{if(t.key===`Escape`){this.close(),e.onCancel?.();return}if(e.onCommit&&t.key===`Enter`&&(t.ctrlKey||t.metaKey)){this._dialogElement&&e.onCommit();return}},this._onGlassPaneClickHandler=t=>{this.close(),e.onCancel?.()},this._dialogElement.addEventListener(`click`,e=>e.stopPropagation());let r=this._recorder.document.createElement(`x-pw-tools-list`),i=this._recorder.document.createElement(`label`);i.textContent=e.label,r.appendChild(i),r.appendChild(this._recorder.document.createElement(`x-spacer`)),e.onCommit&&r.appendChild(t),r.appendChild(n),this._dialogElement.appendChild(r);let a=this._recorder.document.createElement(`x-pw-dialog-body`);return a.appendChild(e.body),this._dialogElement.appendChild(a),this._recorder.highlight.appendChild(this._dialogElement),this._recorder.highlight.onGlassPaneClick(this._onGlassPaneClickHandler),this._recorder.document.addEventListener(`keydown`,this._keyboardListener,!0),this._dialogElement}moveTo(e,t){this._dialogElement&&(this._dialogElement.style.top=e+`px`,this._dialogElement.style.left=t+`px`)}close(){this._dialogElement&&=(this._dialogElement.remove(),this._recorder.highlight.offGlassPaneClick(this._onGlassPaneClickHandler),this._recorder.document.removeEventListener(`keydown`,this._keyboardListener),null)}};function Zl(e){let t=e.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function Ql(e){return!!e.altKey|(e.ctrlKey?2:0)|(e.metaKey?4:0)|(e.shiftKey?8:0)}function $l(e){switch(e.which){case 1:return`left`;case 2:return`middle`;case 3:return`right`}return`left`}function eu(e){if(e.target.nodeName===`CANVAS`)return{x:e.offsetX,y:e.offsetY}}function tu(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()}function nu(e){if(!e||e.nodeName!==`INPUT`)return null;let t=e;return[`checkbox`,`radio`].includes(t.type)?t:null}function ru(e){return!e||e.nodeName!==`INPUT`?!1:e.type.toLowerCase()===`range`}var iu=new Set([`color`,`date`,`datetime-local`,`file`,`month`,`range`,`time`,`week`]);function au(e){let t=e.nodeName;return!!(t===`SELECT`||t===`OPTION`||t===`INPUT`&&iu.has(e.type))}function J(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function ou(e){for(let t of e)t();e.splice(0,e.length)}function su(e,{tagName:t,attrs:n,children:r}){let i=e.createElementNS(`http://www.w3.org/2000/svg`,t);if(n)for(let[e,t]of Object.entries(n))i.setAttribute(e,t);if(r)for(let t of r)i.appendChild(su(e,t));return i}function cu(e){return e.name.startsWith(`assert`)}var lu=`data:text/html;base64,`+btoa(`<body></body><style>body { color-scheme: light dark; background: light-dark(white, #333) }</style>`),uu=new Map([[`n`,`
67
+ `],[`r`,`\r`],[`t`,` `],[`b`,`\b`],[`f`,`\f`]]),du=/[A-Za-z_$][\w$]*/y,fu=/-?\d+(\.\d+)?/y,pu=/[a-z]*/y;function mu(e,t){let n=[],r=0,i=t=>{t.lastIndex=r;let n=t.exec(e)?.[0];return n&&(r+=n.length),n},a=(n,a,o=!1)=>{let s=``,c=!1;for(++r;r<e.length&&(e[r]!==n||c);){if(n==="`"&&e.startsWith("${",r))throw Error(`Template literal placeholders are not supported in ${e}`);if(e[r]!==`\\`){let t=e[r++];o&&(t===`[`?c=!0:t===`]`&&(c=!1)),s+=t;continue}let l=e[r+1]??``;if(r+=2,a){s+=l===n?l:`\\`+l;continue}let u=t.escape(l,i);if(u===void 0)throw Error(`Invalid escape sequence in ${e}`);s+=u}if(r>=e.length)throw Error(`Unterminated ${o?`regular expression`:`string`} in ${e}`);return++r,s},o=()=>{let t=``;for(r+=2;r<e.length;){if(e[r]===`"`&&e[r+1]!==`"`)return++r,t;e[r]===`"`&&++r,t+=e[r++]}throw Error(`Unterminated string in ${e}`)};for(;r<e.length;){let s=e[r],c;if(/\s/.test(s))++r;else if(t.quotes.includes(s))n.push({kind:`string`,value:a(s,!1)});else if(t.rawStrings&&s===`r`&&t.quotes.includes(e[r+1]))n.push({kind:`string`,value:a(e[++r],!0)});else if(t.verbatimStrings&&s===`@`&&e[r+1]===`"`)n.push({kind:`string`,value:o()});else if(t.regexLiterals&&s===`/`){let e=a(`/`,!0,!0);n.push({kind:`regex`,value:new RegExp(e,i(pu))})}else if(`(){}.,:=|`.includes(s))n.push({kind:`punctuation`,value:s}),++r;else if(c=i(du))n.push({kind:`identifier`,value:c});else if(c=i(fu))n.push({kind:`number`,value:+c});else throw Error(`Unexpected character "${s}" in ${e}`)}return n.push({kind:`end`}),n}function hu(e){let t=parseInt(e??``,16);return Number.isNaN(t)||t>1114111?void 0:String.fromCodePoint(t)}function gu(e,t){return e===`x`?hu(t(/[\da-f]{2}/iy)):e===`u`?hu(t(/[\da-f]{4}/iy)??t(/\{[\da-f]{1,6}\}/iy)?.slice(1,-1)):uu.get(e)??e}function _u(e,t){return e===`x`?hu(t(/[\da-f]{2}/iy)):e===`u`?hu(t(/[\da-f]{4}/iy)):e===`U`?hu(t(/[\da-f]{8}/iy)):uu.get(e)??(`\\'"`.includes(e)?e:`\\`+e)}function vu(e,t){return e===`u`?hu(t(/[\da-f]{4}/iy)):uu.get(e)??e}function yu(e,t){return e===`x`?hu(t(/[\da-f]{1,4}/iy)):e===`u`?hu(t(/[\da-f]{4}/iy)):e===`U`?hu(t(/[\da-f]{8}/iy)):uu.get(e)??e}function bu(e,t,n){return e.kind===t&&e.value===n}var xu=class{constructor(e,t,n){this._pos=0,this._tokens=mu(e,t),this._methods=t.methods,this._booleans=t.booleans??[`true`,`false`],this._trailingCommas=!!t.trailingCommas,this._testIdAttributeName=n}parse(){let e=this.parseLocator();return this.peek().kind!==`end`&&this.unexpected(),{parts:e.type===`FrameLocator`?qu(e,[]):e.parts}}parseLocator(){let e={type:`Page`,parts:[]};do{let t=this.expectIdentifier(),n=this._methods.get(t);if(!n)throw Error(`Unsupported locator method ${t}`);e=n(this.parseArguments(t),e,this._testIdAttributeName)}while(this.eat(`.`));return e}parseArguments(e){let t={method:e,args:[],options:new Map,hasOptions:!1};if(this.eat(`(`)&&!this.eat(`)`)){do this.parseArgument(t);while(this.eat(`,`)&&!(this._trailingCommas&&bu(this.peek(),`punctuation`,`)`)));this.expect(`)`)}return t}addArgument(e,t){if(e.hasOptions)throw Error(`Unexpected argument after options for ${e.method}`);e.args.push(t)}startOptions(e){if(e.hasOptions)throw Error(`Unexpected options for ${e.method}`);e.hasOptions=!0}parseValue(){let e=this.peek();if(e.kind===`string`||e.kind===`number`||e.kind===`regex`)return this.next(),e.value;e.kind!==`identifier`&&this.unexpected();let[t,n]=this._booleans;if(this.eatIdentifier(t))return!0;if(this.eatIdentifier(n))return!1;if(this.eatIdentifier(`AriaRole`))return this.expect(`.`),this.expectIdentifier().toLowerCase();let r=this.parseRegex();if(r)return r;let i=this.parseLocator();if(i.type!==`Locator`)throw Error(`Expected a locator, got ${i.type}`);return{parts:i.parts}}parseOptionsBag(e,t,n){for(this.startOptions(e);!this.eat(`}`);){let r=n(this.expectIdentifier());if(this.expect(t),e.options.set(r,this.parseValue()),!this.eat(`,`)){this.expect(`}`);break}}}parseRegexArguments(e,t,n){this.expect(`(`);let r=this.expectString(),i=``;if(this.eat(`,`)){n&&bu(this.peek(1),`punctuation`,`=`)&&(this.expectIdentifier(n),this.expect(`=`));do{this.expectIdentifier(e),this.expect(`.`);let n=this.expectIdentifier(),r=t.get(n);if(!r)throw Error(`Unsupported regular expression flag ${e}.${n}`);i+=r}while(this.eat(`|`))}return this.expect(`)`),new RegExp(r,i)}peek(e=0){return this._tokens[Math.min(this._pos+e,this._tokens.length-1)]}next(){let e=this.peek();return e.kind!==`end`&&++this._pos,e}eat(e){return bu(this.peek(),`punctuation`,e)?(this.next(),!0):!1}eatIdentifier(e){return bu(this.peek(),`identifier`,e)?(this.next(),!0):!1}expect(e){this.eat(e)||this.unexpected()}expectIdentifier(e){let t=this.peek();return(t.kind!==`identifier`||e!==void 0&&t.value!==e)&&this.unexpected(),this.next(),t.value}expectString(){let e=this.next();return e.kind!==`string`&&this.unexpected(),e.value}unexpected(){let e=this.peek();throw Error(`Unexpected ${e.kind===`end`?`end of input`:`token "${e.value}"`}`)}},Su={javascript:class extends xu{constructor(e,t){super(e,{methods:Gu,quotes:`'"\``,escape:gu,regexLiterals:!0,trailingCommas:!0},t)}parseArgument(e){this.eat(`{`)?this.parseOptionsBag(e,`:`,e=>e):this.addArgument(e,this.parseValue())}parseRegex(){if(!this.eatIdentifier(`new`))return;this.expectIdentifier(`RegExp`),this.expect(`(`);let e=this.expectString(),t=this.eat(`,`)?this.expectString():``;return this.expect(`)`),new RegExp(e,t)}},python:class extends xu{constructor(e,t){super(e,{methods:Ku,quotes:`'"`,escape:_u,rawStrings:!0,trailingCommas:!0,booleans:[`True`,`False`]},t)}parseArgument(e){if(!bu(this.peek(1),`punctuation`,`=`)){this.addArgument(e,this.parseValue());return}let t=this.expectIdentifier();this.expect(`=`),e.hasOptions=!0,e.options.set(t.replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),this.parseValue())}parseRegex(){if(this.eatIdentifier(`re`))return this.expect(`.`),this.expectIdentifier(`compile`),this.parseRegexArguments(`re`,wu,`flags`)}},java:class extends xu{constructor(e,t){super(e,{methods:Gu,quotes:`"`,escape:vu},t)}parseArgument(e){if(!this.eatIdentifier(`new`)){this.addArgument(e,this.parseValue());return}for(this.startOptions(e),this.expectIdentifier(),this.expect(`.`),this.expectIdentifier(),this.expect(`(`),this.expect(`)`);this.eat(`.`);){let t=this.expectIdentifier();if(!t.startsWith(`set`))throw Error(`Unexpected options method ${t}`);this.expect(`(`),e.options.set(cd(t.substring(3)),this.parseValue()),this.expect(`)`)}}parseRegex(){if(this.eatIdentifier(`Pattern`))return this.expect(`.`),this.expectIdentifier(`compile`),this.parseRegexArguments(`Pattern`,Cu(Jt.java))}},csharp:class extends xu{constructor(e,t){super(e,{methods:Y,quotes:`"`,escape:yu,verbatimStrings:!0},t)}parseArgument(e){if(!this.eatOptionsType()){this.addArgument(e,this.parseValue());return}this.expect(`{`),this.parseOptionsBag(e,`=`,e=>cd(e.replace(/Regex$/,``)))}eatOptionsType(){if(!bu(this.peek(),`identifier`,`new`))return!1;let e=this.peek(1);return bu(e,`punctuation`,`(`)?(this.next(),this.expect(`(`),this.expect(`)`),!0):e.kind!==`identifier`||!e.value.endsWith(`Options`)?!1:(this.next(),this.next(),this.eat(`(`)&&this.expect(`)`),!0)}parseRegex(){if(this.eatIdentifier(`new`))return this.expectIdentifier(`Regex`),this.parseRegexArguments(`RegexOptions`,Cu(Jt.csharp))}}};function Cu(e){return new Map(Object.entries(e).map(([e,t])=>[t,e]))}var wu=new Map([...Cu(Jt.python),[`I`,`i`],[`M`,`m`],[`S`,`s`]]),Tu=[`hasText`,`hasNotText`,`has`,`hasNot`],Eu=[...Tu,`visible`],Du=[`checked`,`disabled`,`selected`,`expanded`,`includeHidden`,`level`,`name`,`description`,`pressed`,`exact`];function Ou(e,t){return(n,r,i)=>{if(!e.includes(r.type))throw Error(`Unsupported method ${n.method} for ${r.type}`);return t(n,r,i)}}function ku(e,t){Qu(e,1,Tu);let n=t.type===`Page`?$u(e,0,td):$u(e,0,sd),r;return r=td(n)?_t(n).parts:t.type===`FrameLocator`?n.parts:[Zu(`internal:chain`,n)],{type:`Locator`,parts:[...qu(t,r),...Yu(e)]}}function Au(e,t){return Qu(e,0,Eu),{type:`Locator`,parts:[...t.parts,...Yu(e)]}}function ju(e,t){return Qu(e,1,[]),{type:`Locator`,parts:[...$u(e,0,od).parts,Zu(`internal:chain`,{parts:t.parts})]}}function Mu(e){return(t,n)=>(Qu(t,1,[]),{type:`Locator`,parts:[...n.parts,Zu(e,$u(t,0,od))]})}function Nu(e,t){return Qu(e,1,[]),t.type===`Page`&&!e.args.length?{type:`FrameLocator`,parts:_t(vt).parts}:{type:`FrameLocator`,parts:qu(t,_t($u(e,0,td)).parts)}}function Pu(e,t){return Qu(e,0,[]),{type:`FrameLocator`,parts:t.parts}}function Fu(e,t){return Qu(e,0,[]),{type:`Locator`,parts:t.parts}}function Iu(e,t){return(n,r)=>{if(Qu(n,e,[]),Ju(r))throw Error(`Selecting the nth frame is not allowed on frameLocator()`);return{type:r.type,parts:[...r.parts,Xu(`nth`,t(n))]}}}function Lu(e,t){return Qu(e,0,[]),{type:`Locator`,parts:[...t.parts,Xu(`visible`,`true`)]}}function Ru(e,t){return Qu(e,1,[]),{type:`Locator`,parts:[...t.parts,Xu(`internal:describe`,JSON.stringify($u(e,0,td)))]}}function zu(e){return(t,n,r)=>({type:`Locator`,parts:qu(n,_t(e(t,r)).parts)})}function Bu(e){return t=>(Qu(t,1,[`exact`]),e($u(t,0,nd),{exact:ed(t,`exact`,id)}))}function Vu(e){return Qu(e,1,Du),ha($u(e,0,td),{checked:ed(e,`checked`,ad),disabled:ed(e,`disabled`,id),selected:ed(e,`selected`,id),expanded:ed(e,`expanded`,id),includeHidden:ed(e,`includeHidden`,id),level:ed(e,`level`,rd),name:ed(e,`name`,nd),description:ed(e,`description`,nd),pressed:ed(e,`pressed`,ad),exact:ed(e,`exact`,id)})}function Hu(e,t){return Qu(e,1,[]),la(t,$u(e,0,nd))}function Uu(e){return Qu(e,1,[]),{type:`Locator`,parts:[Xu(`aria-ref`,$u(e,0,td))]}}var Wu={locator:Ou([`Page`,`Locator`,`FrameLocator`],ku),filter:Ou([`Locator`],Au),within:Ou([`Locator`],ju),and:Ou([`Locator`],Mu(`internal:and`)),or:Ou([`Locator`],Mu(`internal:or`)),frameLocator:Ou([`Page`,`Locator`,`FrameLocator`],Nu),contentFrame:Ou([`Locator`],Pu),owner:Ou([`FrameLocator`],Fu),first:Ou([`Locator`,`FrameLocator`],Iu(0,()=>`0`)),last:Ou([`Locator`,`FrameLocator`],Iu(0,()=>`-1`)),nth:Ou([`Locator`,`FrameLocator`],Iu(1,e=>String($u(e,0,rd)))),visible:Ou([`Locator`],Lu),describe:Ou([`Locator`],Ru),getByRole:Ou([`Page`,`Locator`,`FrameLocator`],zu(Vu)),getByText:Ou([`Page`,`Locator`,`FrameLocator`],zu(Bu(ma))),getByLabel:Ou([`Page`,`Locator`,`FrameLocator`],zu(Bu(ua))),getByTestId:Ou([`Page`,`Locator`,`FrameLocator`],zu(Hu)),getByRef:Ou([`Page`],Uu),getByAltText:Ou([`Page`,`Locator`,`FrameLocator`],zu(Bu(da))),getByPlaceholder:Ou([`Page`,`Locator`,`FrameLocator`],zu(Bu(pa))),getByTitle:Ou([`Page`,`Locator`,`FrameLocator`],zu(Bu(fa)))},Gu=new Map(Object.entries(Wu)),Ku=new Map(Object.entries(Wu).map(([e,t])=>[e===`and`||e===`or`?e+`_`:Et(e),t])),Y=new Map(Object.entries(Wu).map(([e,t])=>[Tt(e),t]));function qu(e,t){return e.type!==`FrameLocator`||Ju(e)?[...e.parts,...t]:[...e.parts,Xu(`internal:control`,`enter-frame`),...t]}function Ju(e){return e.type===`FrameLocator`&&bt({parts:e.parts})===`internal:control=any-frame`}function Yu(e){let t=[],n=ed(e,`hasText`,nd);n!==void 0&&t.push(Xu(`internal:has-text`,Nt(n,!1)));let r=ed(e,`hasNotText`,nd);r!==void 0&&t.push(Xu(`internal:has-not-text`,Nt(r,!1)));let i=ed(e,`has`,od);i&&t.push(Zu(`internal:has`,i));let a=ed(e,`hasNot`,od);a&&t.push(Zu(`internal:has-not`,a));let o=ed(e,`visible`,id);return o!==void 0&&t.push(Xu(`visible`,String(o))),t}function Xu(e,t){return{name:e,body:t,source:t}}function Zu(e,t){return{name:e,body:{parsed:t},source:JSON.stringify(bt(t))}}function Qu(e,t,n){if(e.args.length>t)throw Error(`Too many arguments for ${e.method}`);for(let t of e.options.keys())if(!n.includes(t))throw Error(`Unsupported option ${t} for ${e.method}`)}function $u(e,t,n){let r=e.args[t];if(r===void 0||!n(r))throw Error(`Unexpected argument #${t} for ${e.method}`);return r}function ed(e,t,n){let r=e.options.get(t);if(r!==void 0&&!n(r))throw Error(`Unexpected ${t} option for ${e.method}`);return r}function td(e){return typeof e==`string`}function nd(e){return typeof e==`string`||e instanceof RegExp}function rd(e){return typeof e==`number`}function id(e){return typeof e==`boolean`}function ad(e){return id(e)||e===`mixed`}function od(e){return typeof e==`object`&&!(e instanceof RegExp)}function sd(e){return td(e)||od(e)}function cd(e){return e.charAt(0).toLowerCase()+e.substring(1)}function ld(e,t,n=`data-testid`){try{return ud(e,t,n)}catch{return``}}function ud(e,t,n=`data-testid`){try{return _t(t),t}catch{}let r=Su[e];return r?bt(new r(t,n).parse()):``}var dd=({url:e})=>(0,M.jsxs)(`div`,{className:`browser-frame-header`,children:[(0,M.jsxs)(`div`,{className:`browser-traffic-lights`,children:[(0,M.jsx)(`span`,{className:`browser-frame-dot`,style:{backgroundColor:`rgb(242, 95, 88)`}}),(0,M.jsx)(`span`,{className:`browser-frame-dot`,style:{backgroundColor:`rgb(251, 190, 60)`}}),(0,M.jsx)(`span`,{className:`browser-frame-dot`,style:{backgroundColor:`rgb(88, 203, 66)`}})]}),(0,M.jsxs)(`div`,{className:`browser-frame-address-bar`,title:e||`about:blank`,children:[(0,M.jsx)(`span`,{className:`browser-frame-address`,children:e||`about:blank`}),e&&(0,M.jsx)(Rn,{value:e})]}),(0,M.jsx)(`div`,{style:{marginLeft:`auto`},children:(0,M.jsxs)(`div`,{children:[(0,M.jsx)(`span`,{className:`browser-frame-menu-bar`}),(0,M.jsx)(`span`,{className:`browser-frame-menu-bar`}),(0,M.jsx)(`span`,{className:`browser-frame-menu-bar`})]})})]}),fd=Symbol.for(`yaml.alias`),pd=Symbol.for(`yaml.document`),md=Symbol.for(`yaml.map`),hd=Symbol.for(`yaml.pair`),gd=Symbol.for(`yaml.scalar`),_d=Symbol.for(`yaml.seq`),vd=Symbol.for(`yaml.node.type`),yd=e=>!!e&&typeof e==`object`&&e[vd]===fd,bd=e=>!!e&&typeof e==`object`&&e[vd]===pd,xd=e=>!!e&&typeof e==`object`&&e[vd]===md,X=e=>!!e&&typeof e==`object`&&e[vd]===hd,Z=e=>!!e&&typeof e==`object`&&e[vd]===gd,Sd=e=>!!e&&typeof e==`object`&&e[vd]===_d;function Cd(e){if(e&&typeof e==`object`)switch(e[vd]){case md:case _d:return!0}return!1}function wd(e){if(e&&typeof e==`object`)switch(e[vd]){case fd:case md:case gd:case _d:return!0}return!1}var Td=e=>(Z(e)||Cd(e))&&!!e.anchor,Ed=Symbol(`break visit`),Dd=Symbol(`skip children`),Od=Symbol(`remove node`);function kd(e,t){let n=Nd(t);bd(e)?Ad(null,e.contents,n,Object.freeze([e]))===Od&&(e.contents=null):Ad(null,e,n,Object.freeze([]))}kd.BREAK=Ed,kd.SKIP=Dd,kd.REMOVE=Od;function Ad(e,t,n,r){let i=Q(e,t,n,r);if(wd(i)||X(i))return Pd(e,r,i),Ad(e,i,n,r);if(typeof i!=`symbol`){if(Cd(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=Ad(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===Ed)return Ed;else i===Od&&(t.items.splice(e,1),--e)}}else if(X(t)){r=Object.freeze(r.concat(t));let e=Ad(`key`,t.key,n,r);if(e===Ed)return Ed;e===Od&&(t.key=null);let i=Ad(`value`,t.value,n,r);if(i===Ed)return Ed;i===Od&&(t.value=null)}}return i}async function jd(e,t){let n=Nd(t);bd(e)?await Md(null,e.contents,n,Object.freeze([e]))===Od&&(e.contents=null):await Md(null,e,n,Object.freeze([]))}jd.BREAK=Ed,jd.SKIP=Dd,jd.REMOVE=Od;async function Md(e,t,n,r){let i=await Q(e,t,n,r);if(wd(i)||X(i))return Pd(e,r,i),Md(e,i,n,r);if(typeof i!=`symbol`){if(Cd(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=await Md(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===Ed)return Ed;else i===Od&&(t.items.splice(e,1),--e)}}else if(X(t)){r=Object.freeze(r.concat(t));let e=await Md(`key`,t.key,n,r);if(e===Ed)return Ed;e===Od&&(t.key=null);let i=await Md(`value`,t.value,n,r);if(i===Ed)return Ed;i===Od&&(t.value=null)}}return i}function Nd(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Q(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(xd(t))return n.Map?.(e,t,r);if(Sd(t))return n.Seq?.(e,t,r);if(X(t))return n.Pair?.(e,t,r);if(Z(t))return n.Scalar?.(e,t,r);if(yd(t))return n.Alias?.(e,t,r)}function Pd(e,t,n){let r=t[t.length-1];if(Cd(r))r.items[e]=n;else if(X(r))e===`key`?r.key=n:r.value=n;else if(bd(r))r.contents=n;else{let e=yd(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var Fd={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},Id=e=>e.replace(/[!,[\]{}]/g,e=>Fd[e]),Ld=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+Id(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&wd(e.contents)){let t={};kd(e.contents,(e,n)=>{wd(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)i===`!!`&&a===`tag:yaml.org,2002:`||(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(`
68
+ `)}};Ld.defaultYaml={explicit:!1,version:`1.2`},Ld.defaultTags={"!!":`tag:yaml.org,2002:`};function Rd(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function zd(e){let t=new Set;return kd(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function Bd(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function Vd(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=zd(e);let a=Bd(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(Z(t.node)||Cd(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function Hd(e,t,n,r){if(r&&typeof r==`object`)if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=Hd(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=Hd(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=Hd(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=Hd(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}return e.call(t,n,r)}function Ud(e,t,n){if(Array.isArray(e))return e.map((e,t)=>Ud(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!Td(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var Wd=class{constructor(e){Object.defineProperty(this,vd,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!bd(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=Ud(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?Hd(i,{"":o},``,o):o}},Gd=class extends Wd{constructor(e){super(fd),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],kd(e,{Node:(e,t)=>{(yd(t)||Td(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}return r}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(a);if(o||=(Ud(a,null,t),n.get(a)),o?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=Kd(r,a,n)),o.count*o.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(Rd(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function Kd(e,t,n){if(yd(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(Cd(t)){let r=0;for(let i of t.items){let t=Kd(e,i,n);t>r&&(r=t)}return r}else if(X(t)){let r=Kd(e,t.key,n),i=Kd(e,t.value,n);return Math.max(r,i)}return 1}var qd=e=>!e||typeof e!=`function`&&typeof e!=`object`,$=class extends Wd{constructor(e){super(gd),this.value=e}toJSON(e,t){return t?.keep?this.value:Ud(this.value,e,t)}toString(){return String(this.value)}};$.BLOCK_FOLDED=`BLOCK_FOLDED`,$.BLOCK_LITERAL=`BLOCK_LITERAL`,$.PLAIN=`PLAIN`,$.QUOTE_DOUBLE=`QUOTE_DOUBLE`,$.QUOTE_SINGLE=`QUOTE_SINGLE`;var Jd=`tag:yaml.org,2002:`;function Yd(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function Xd(e,t,n){if(bd(e)&&(e=e.contents),wd(e))return e;if(X(e)){let t=n.schema[md].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??=i(e),new Gd(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=Jd+t.slice(2));let l=Yd(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new $(e);return c&&(c.node=t),t}l=e instanceof Map?o[md]:Symbol.iterator in Object(e)?o[_d]:o[md]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new $(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}function Zd(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return Xd(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var Qd=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,$d=class extends Wd{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>wd(t)||X(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Qd(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(Cd(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,Zd(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(Cd(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&Z(i)?i.value:i:Cd(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!X(t))return!1;let n=t.value;return n==null||e&&Z(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return Cd(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(Cd(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,Zd(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},ef=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function tf(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var nf=(e,t,n)=>e.endsWith(`
69
+ `)?tf(n,t):n.includes(`
70
+ `)?`
71
+ `+tf(n,t):(e.endsWith(` `)?``:` `)+n,rf=`flow`,af=`block`,of=`quoted`;function sf(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;i<a&&(a=0);let c=Math.max(1+a,1+i-t.length);if(e.length<=c)return e;let l=[],u={},d=i-t.length;typeof r==`number`&&(r>i-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=cf(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===`
72
+ `)n===`block`&&(h=cf(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==`
73
+ `&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==`
74
+ `&&t!==` `&&(f=h)}if(h>=d)if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){let i=l[r],a=l[r+1]||e.length;i===0?v=`\n${t}${e.slice(0,a)}`:(n===`quoted`&&u[i]&&(v+=`${e[i]}\\`),v+=`\n${t}${e.slice(i+1,a)}`)}return v}function cf(e,t,n){let r=t,i=t+1,a=e[i];for(;a===` `||a===` `;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
75
+ `);r=t,i=t+1,a=e[i]}return r}var lf=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),uf=e=>/^(%|---|\.\.\.)/m.test(e);function df(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
76
+ `){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function ff(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(uf(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length<i)e+=1;else{for(o+=n.slice(s,e)+`
77
+
78
+ `;n[e+2]===`\\`&&n[e+3]===`n`&&n[e+4]!==`"`;)o+=`
79
+ `,e+=2;o+=a,n[e+2]===` `&&(o+=`\\`),e+=1,s=e+1}break;default:e+=1}return o=s?o+n.slice(s):n,r?o:sf(o,a,of,lf(t,!1))}function pf(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
80
+ `)||/[ \t]\n|\n[ \t]/.test(e))return ff(e,t);let n=t.indent||(uf(e)?` `:``),r=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&\n${n}`)+`'`;return t.implicitKey?r:sf(r,n,rf,lf(t,!1))}function mf(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=ff;else{let t=e.includes(`"`),i=e.includes(`'`);r=t&&!i?pf:i&&!t?ff:n?pf:ff}return r(e,t)}var hf;try{hf=RegExp(`(^|(?<!
81
+ ))
82
+ +(?!
83
+ |$)`,`g`)}catch{hf=/\n+(?!\n|$)/g}function gf({comment:e,type:t,value:n},r,i,a){let{blockQuote:o,commentString:s,lineWidth:c}=r.options;if(!o||/\n[\t ]+$/.test(n))return mf(n,r);let l=r.indent||(r.forceBlockIndent||uf(n)?` `:``),u=o===`literal`?!0:o===`folded`||t===$.BLOCK_FOLDED?!1:t===$.BLOCK_LITERAL||!df(n,c,l.length);if(!n)return u?`|
84
+ `:`>
85
+ `;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==`
86
+ `&&e!==` `&&e!==` `)break}let p=n.substring(f),m=p.indexOf(`
87
+ `);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===`
88
+ `&&(p=p.slice(0,-1)),p.replace(hf,`$&${l}`));let h=!1,g,_=-1;for(g=0;g<n.length;++g){let e=n[g];if(e===` `)h=!0;else if(e===`
89
+ `)_=g;else break}let v=n.substring(0,_<g?_+1:g);v&&=(n=n.substring(v.length),v.replace(/\n+/g,`$&${l}`));let y=(h?l?`2`:`1`:``)+d;if(e&&(y+=` `+s(e.replace(/ ?[\r\n]+/g,` `)),i&&i()),!u){let e=n.replace(/\n+/g,`
90
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${l}`),i=!1,a=lf(r,!0);o!==`folded`&&t!==$.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=sf(`${v}${e}${p}`,l,af,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function _f(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(`
91
+ `)||u&&/[[\]{},]/.test(a))return mf(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(`
92
+ `)?mf(a,t):gf(e,t,n,r);if(!s&&!u&&i!==$.PLAIN&&a.includes(`
93
+ `))return gf(e,t,n,r);if(uf(a)){if(c===``)return t.forceBlockIndent=!0,gf(e,t,n,r);if(s&&c===l)return mf(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return mf(a,t)}return s?d:sf(d,c,rf,lf(t,!1))}function vf(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==$.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=$.QUOTE_DOUBLE);let c=e=>{switch(e){case $.BLOCK_FOLDED:case $.BLOCK_LITERAL:return i||a?mf(o.value,t):gf(o,t,n,r);case $.QUOTE_DOUBLE:return ff(o.value,t);case $.QUOTE_SINGLE:return pf(o.value,t);case $.PLAIN:return _f(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}function yf(e,t){let n=Object.assign({blockQuote:!0,commentString:ef,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:r,options:n}}function bf(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(Z(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function xf(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(Z(e)||Cd(e))&&e.anchor;a&&Rd(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function Sf(e,t,n,r){if(X(e))return e.toString(t,n,r);if(yd(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=wd(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=bf(t.doc.schema.tags,a);let o=xf(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):Z(a)?vf(a,t,n,r):a.toString(t,n,r);return o?Z(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function Cf({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=wd(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(Cd(e)||!wd(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||Cd(e)||(Z(e)?e.type===$.BLOCK_FOLDED||e.type===$.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=Sf(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=nf(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=nf(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=nf(g,n.indent,l(f))));let _,v,y;wd(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&Z(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&Sd(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=Sf(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?`
94
+ `:``,v){let e=l(v);S+=`\n${tf(e,n.indent)}`}x===``&&!n.inFlow?S===`
95
+ `&&y&&(S=`
96
+
97
+ `):S+=`\n${n.indent}`}else if(!p&&Cd(t)){let e=x[0],r=x.indexOf(`
98
+ `),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&n<r&&x[n+1]===`!`&&(n=x.indexOf(` `,n+1)),(n===-1||r<n)&&(t=!0)}t||(S=`\n${n.indent}`)}}else(x===``||x[0]===`
99
+ `)&&(S=``);return g+=S+x,n.inFlow?b&&r&&r():y&&!b?g+=nf(g,n.indent,l(y)):h&&i&&i(),g}function wf(e,t){(e===`debug`||e===`warn`)&&console.warn(t)}var Tf=`<<`,Ef={identify:e=>e===Tf||typeof e==`symbol`&&e.description===Tf,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new $(Symbol(Tf)),{addToJSMap:Of}),stringify:()=>Tf},Df=(e,t)=>(Ef.identify(t)||Z(t)&&(!t.type||t.type===$.PLAIN)&&Ef.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===Ef.tag&&e.default);function Of(e,t,n){let r=Af(e,n);if(Sd(r))for(let n of r.items)kf(e,t,n);else if(Array.isArray(r))for(let n of r)kf(e,t,n);else kf(e,t,r)}function kf(e,t,n){let r=Af(e,n);if(!xd(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function Af(e,t){return e&&yd(t)?t.resolve(e.doc,e):t}function jf(e,t,{key:n,value:r}){if(wd(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Df(e,n))Of(e,t,r);else{let i=Ud(n,``,e);if(t instanceof Map)t.set(i,Ud(r,i,e));else if(t instanceof Set)t.add(i);else{let a=Mf(n,i,e),o=Ud(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function Mf(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(wd(e)&&n?.doc){let t=yf(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),wf(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function Nf(e,t,n){return new Pf(Xd(e,void 0,n),Xd(t,void 0,n))}var Pf=class e{constructor(e,t=null){Object.defineProperty(this,vd,{value:hd}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return wd(n)&&(n=n.clone(t)),wd(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return jf(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?Cf(this,e,t,n):JSON.stringify(this)}};function Ff(e,t,n){return(t.inFlow??e.flow?Lf:If)(e,t,n)}function If({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(wd(i))!d&&i.spaceBefore&&f.push(``),Rf(n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(X(i)){let e=wd(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push(``),Rf(n,f,e.commentBefore,d))}d=!1;let s=Sf(i,u,()=>o=null,()=>d=!0);o&&(s+=nf(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;e<f.length;++e){let t=f[e];p+=t?`\n${c}${t}`:`
100
+ `}}return e?(p+=`
101
+ `+tf(l(e),c),s&&s()):d&&o&&o(),p}function Lf({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;r+=a;let c=Object.assign({},t,{indent:r,inFlow:!0,type:null}),l=!1,u=0,d=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if(wd(i))i.spaceBefore&&d.push(``),Rf(t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(X(i)){let e=wd(i.key)?i.key:null;e&&(e.spaceBefore&&d.push(``),Rf(t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=wd(i.value)?i.value:null;n?(n.comment&&(a=n.comment),n.commentBefore&&(l=!0)):i.value==null&&e?.comment&&(a=e.comment)}a&&(l=!0);let o=Sf(i,c,()=>a=null);l||=d.length>u||o.includes(`
102
+ `),n<e.length-1?o+=`,`:t.options.trailingComma&&(t.options.lineWidth>0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=nf(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:`
103
+ `;return`${e}\n${i}${p}`}else return`${f}${o}${d.join(` `)}${o}${p}`}function Rf({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=tf(t(r),e);n.push(i.trimStart())}}function zf(e,t){let n=Z(t)?t.value:t;for(let r of e)if(X(r)&&(r.key===t||r.key===n||Z(r.key)&&r.key.value===n))return r}var Bf=class extends $d{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(md,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(Nf(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=X(e)?e:!e||typeof e!=`object`||!(`key`in e)?new Pf(e,e?.value):new Pf(e.key,e.value);let r=zf(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);Z(r.value)&&qd(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=zf(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=zf(this.items,e)?.value;return(!t&&Z(n)?n.value:n)??void 0}has(e){return!!zf(this.items,e)}set(e,t){this.add(new Pf(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)jf(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!X(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Ff(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}},Vf={collection:`map`,default:!0,nodeClass:Bf,tag:`tag:yaml.org,2002:map`,resolve(e,t){return xd(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>Bf.from(e,t,n)},Hf=class extends $d{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(_d,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=Uf(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=Uf(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&Z(r)?r.value:r}has(e){let t=Uf(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=Uf(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];Z(r)&&qd(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(Ud(e,String(r++),t));return n}toString(e,t,n){return e?Ff(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+` `,onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let a of t){if(typeof r==`function`){let n=t instanceof Set?a:String(e++);a=r.call(t,n,a)}i.items.push(Xd(a,void 0,n))}}return i}};function Uf(e){let t=Z(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}var Wf={collection:`seq`,default:!0,nodeClass:Hf,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return Sd(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>Hf.from(e,t,n)},Gf={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),vf(e,t,n,r)}},Kf={identify:e=>e==null,createNode:()=>new $(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new $(null),stringify:({source:e},t)=>typeof e==`string`&&Kf.test.test(e)?e:t.options.nullStr},qf={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new $(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},n){return e&&qf.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?n.options.trueStr:n.options.falseStr}};function Jf({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-->0;)a+=`0`}return a}var Yf={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:Jf},Xf={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Jf(e)}},Zf={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new $(parseFloat(e)),n=e.indexOf(`.`);return n!==-1&&e[e.length-1]===`0`&&(t.minFractionDigits=e.length-n-1),t},stringify:Jf},Qf=e=>typeof e==`bigint`||Number.isInteger(e),$f=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function ep(e,t,n){let{value:r}=e;return Qf(r)&&r>=0?n+r.toString(t):Jf(e)}var tp={identify:e=>Qf(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>$f(e,2,8,n),stringify:e=>ep(e,8,`0o`)},np={identify:Qf,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>$f(e,0,10,n),stringify:Jf},rp={identify:e=>Qf(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>$f(e,2,16,n),stringify:e=>ep(e,16,`0x`)},ip=[Vf,Wf,Gf,Kf,qf,tp,np,rp,Yf,Xf,Zf];function ap(e){return typeof e==`bigint`||Number.isInteger(e)}var op=({value:e})=>JSON.stringify(e),sp=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:op},{identify:e=>e==null,createNode:()=>new $(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:op},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:op},{identify:ap,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>ap(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:op}],cp=[Vf,Wf].concat(sp,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}}),lp={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,t){if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}else return t(`This environment does not support reading binary tags; either Buffer or atob is required`),e},stringify({comment:e,type:t,value:n},r,i,a){if(!n)return``;let o=n,s;if(typeof btoa==`function`){let e=``;for(let t=0;t<o.length;++t)e+=String.fromCharCode(o[t]);s=btoa(e)}else throw Error(`This environment does not support writing binary tags; either Buffer or btoa is required`);if(t??=$.BLOCK_LITERAL,t!==$.QUOTE_DOUBLE){let e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(s.length/e),i=Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=s.substr(r,e);s=i.join(t===$.BLOCK_LITERAL?`
104
+ `:` `)}return vf({comment:e,type:t,value:s},r,i,a)}};function up(e,t){if(Sd(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!X(r)){if(xd(r)){r.items.length>1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new Pf(new $(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=X(r)?r:new Pf(r)}}else t(`Expected a sequence for this tag`);return e}function dp(e,t,n){let{replacer:r}=n,i=new Hf(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e))if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(Nf(o,s,n))}return i}var fp={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:up,createNode:dp},pp=class e extends Hf{constructor(){super(),this.add=Bf.prototype.add.bind(this),this.delete=Bf.prototype.delete.bind(this),this.get=Bf.prototype.get.bind(this),this.has=Bf.prototype.has.bind(this),this.set=Bf.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(X(e)?(r=Ud(e.key,``,t),i=Ud(e.value,r,t)):r=Ud(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=dp(e,t,n),i=new this;return i.items=r.items,i}};pp.tag=`tag:yaml.org,2002:omap`;var mp={collection:`seq`,identify:e=>e instanceof Map,nodeClass:pp,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=up(e,t),r=[];for(let{key:e}of n.items)Z(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new pp,n)},createNode:(e,t,n)=>pp.from(e,t,n)};function hp({value:e,source:t},n){return t&&(e?gp:_p).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var gp={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new $(!0),stringify:hp},_p={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new $(!1),stringify:hp},vp={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:Jf},yp={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Jf(e)}},bp={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new $(parseFloat(e.replace(/_/g,``))),n=e.indexOf(`.`);if(n!==-1){let r=e.substring(n+1).replace(/_/g,``);r[r.length-1]===`0`&&(t.minFractionDigits=r.length)}return t},stringify:Jf},xp=e=>typeof e==`bigint`||Number.isInteger(e);function Sp(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function Cp(e,t,n){let{value:r}=e;if(xp(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return Jf(e)}var wp={identify:xp,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Sp(e,2,2,n),stringify:e=>Cp(e,2,`0b`)},Tp={identify:xp,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Sp(e,1,8,n),stringify:e=>Cp(e,8,`0`)},Ep={identify:xp,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Sp(e,0,10,n),stringify:Jf},Dp={identify:xp,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Sp(e,2,16,n),stringify:e=>Cp(e,16,`0x`)},Op=class e extends Bf{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=X(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new Pf(e.key,null):new Pf(e,null),zf(this.items,t.key)||this.items.push(t)}get(e,t){let n=zf(this.items,e);return!t&&X(n)?Z(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=zf(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Pf(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(Nf(e,null,n));return i}};Op.tag=`tag:yaml.org,2002:set`;var kp={collection:`map`,identify:e=>e instanceof Set,nodeClass:Op,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>Op.from(e,t,n),resolve(e,t){if(xd(e)){if(e.hasAllNullValues(!0))return Object.assign(new Op,e);t(`Set items must all have null values`)}else t(`Expected a mapping for this tag`);return e}};function Ap(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function jp(e){let{value:t}=e,n=e=>e;if(typeof t==`bigint`)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return Jf(e);let r=``;t<0&&(r=`-`,t*=n(-1));let i=n(60),a=[t%i];return t<60?a.unshift(0):(t=(t-a[0])/i,a.unshift(t%i),t>=60&&(t=(t-a[0])/i,a.unshift(t))),r+a.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}var Mp={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Ap(e,n),stringify:jp},Np={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Ap(e,!1),stringify:jp},Pp={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(Pp.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,n,r,i,a,o,s]=t.map(Number),c=t[7]?Number((t[7]+`00`).substr(1,3)):0,l=Date.UTC(n,r-1,i,a||0,o||0,s||0,c),u=t[8];if(u&&u!==`Z`){let e=Ap(u,!1);Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``},Fp=[Vf,Wf,Gf,Kf,gp,_p,wp,Tp,Ep,Dp,vp,yp,bp,lp,Ef,mp,fp,kp,Mp,Np,Pp],Ip=new Map([[`core`,ip],[`failsafe`,[Vf,Wf,Gf]],[`json`,cp],[`yaml11`,Fp],[`yaml-1.1`,Fp]]),Lp={binary:lp,bool:qf,float:Zf,floatExp:Xf,floatNaN:Yf,floatTime:Np,int:np,intHex:rp,intOct:tp,intTime:Mp,map:Vf,merge:Ef,null:Kf,omap:mp,pairs:fp,seq:Wf,set:kp,timestamp:Pp},Rp={"tag:yaml.org,2002:binary":lp,"tag:yaml.org,2002:merge":Ef,"tag:yaml.org,2002:omap":mp,"tag:yaml.org,2002:pairs":fp,"tag:yaml.org,2002:set":kp,"tag:yaml.org,2002:timestamp":Pp};function zp(e,t,n){let r=Ip.get(t);if(r&&!e)return n&&!r.includes(Ef)?r.concat(Ef):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(Ip.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(Ef)),i.reduce((e,t)=>{let n=typeof t==`string`?Lp[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(Lp).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}var Bp=(e,t)=>e.key<t.key?-1:+(e.key>t.key),Vp=class e{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(e)?zp(e,`compat`):e?zp(null,e):null,this.name=typeof i==`string`&&i||`core`,this.knownTags=r?Rp:{},this.tags=zp(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,md,{value:Vf}),Object.defineProperty(this,gd,{value:Gf}),Object.defineProperty(this,_d,{value:Wf}),this.sortMapEntries=typeof a==`function`?a:a===!0?Bp:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};function Hp(e,t){let n=[],r=t.directives===!0;if(t.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push(`---`);let i=yf(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift(``);let t=a(e.commentBefore);n.unshift(tf(t,``))}let o=!1,s=null;if(e.contents){if(wd(e.contents)){if(e.contents.spaceBefore&&r&&n.push(``),e.contents.commentBefore){let t=a(e.contents.commentBefore);n.push(tf(t,``))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>o=!0,c=Sf(e.contents,i,()=>s=null,t);s&&(c+=nf(c,``,a(s))),(c[0]===`|`||c[0]===`>`)&&n[n.length-1]===`---`?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(Sf(e.contents,i));if(e.directives?.docEnd)if(e.comment){let t=a(e.comment);t.includes(`
105
+ `)?(n.push(`...`),n.push(tf(t,``))):n.push(`... ${t}`)}else n.push(`...`);else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,``)),t&&((!o||s)&&n[n.length-1]!==``&&n.push(``),n.push(tf(a(t),``)))}return n.join(`
106
+ `)+`
107
+ `}var Up=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,vd,{value:pd});let r=null;typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new Ld({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[vd]:{value:pd}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=wd(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){Wp(this.contents)&&this.contents.add(e)}addIn(e,t){Wp(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=zd(this);e.anchor=!t||n.has(t)?Bd(t||`a`,n):t}return new Gd(e.anchor)}createNode(e,t,n){let r;if(typeof t==`function`)e=t.call({"":e},``,e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:f}=Vd(this,a||`a`),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=Xd(e,l,p);return o&&Cd(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){return new Pf(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return Wp(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Qd(e)?this.contents==null?!1:(this.contents=null,!0):Wp(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return Cd(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Qd(e)?!t&&Z(this.contents)?this.contents.value:this.contents:Cd(this.contents)?this.contents.getIn(e,t):void 0}has(e){return Cd(this.contents)?this.contents.has(e):!1}hasIn(e){return Qd(e)?this.contents!==void 0:Cd(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=Zd(this.schema,[e],t):Wp(this.contents)&&this.contents.set(e,t)}setIn(e,t){Qd(e)?this.contents=t:this.contents==null?this.contents=Zd(this.schema,Array.from(e),t):Wp(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new Ld({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new Ld({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new Vp(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},s=Ud(this.contents,t??``,o);if(typeof i==`function`)for(let{count:e,res:t}of o.anchors.values())i(t,e);return typeof a==`function`?Hd(a,{"":s},``,s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return Hp(this,e)}};function Wp(e){if(Cd(e))return!0;throw Error(`Expected a YAML collection as document contents`)}var Gp=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},Kp=class extends Gp{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},qp=class extends Gp{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}},Jp=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`…
108
+ `),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}};function Yp(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}function Xp(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
109
+ `))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let t of e.items){for(let e of t.start)if(e.type===`newline`)return!0;if(t.sep){for(let e of t.sep)if(e.type===`newline`)return!0}if(Xp(t.key)||Xp(t.value))return!0}return!1;default:return!0}}function Zp(e,t,n){if(t?.type===`flow-collection`){let r=t.end[0];r.indent===e&&(r.source===`]`||r.source===`}`)&&Xp(t)&&n(r,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}function Qp(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r==`function`?r:(e,t)=>e===t||Z(e)&&Z(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}var $p=`All mapping items must start at the same column`;function em({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??Bf)(n.schema);n.atRoot&&=!1;let s=r.offset,c=null;for(let a of r.items){let{start:l,key:u,sep:d,value:f}=a,p=Yp(l,{indicator:`explicit-key-ind`,next:u??d?.[0],offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!p.found;if(m){if(u&&(u.type===`block-seq`?i(s,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in u&&u.indent!==r.indent&&i(s,`BAD_INDENT`,$p)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+=`
110
+ `+p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||Xp(u))&&i(u??l[l.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else p.found?.indent!==r.indent&&i(s,`BAD_INDENT`,$p);n.atKey=!0;let h=p.end,g=u?e(n,u,p,i):t(n,h,l,null,p,i);n.schema.compat&&Zp(r.indent,u,i),n.atKey=!1,Qp(n,o.items,g)&&i(h,`DUPLICATE_KEY`,`Map keys must be unique`);let _=Yp(d??[],{indicator:`map-value-ind`,next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!u||u.type===`block-scalar`});if(s=_.end,_.found){m&&(f?.type===`block-map`&&!_.hasNewline&&i(s,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),n.options.strict&&p.start<_.found.offset-1024&&i(g.range,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit block mapping key`));let c=f?e(n,f,_,i):t(n,s,d,null,_,i);n.schema.compat&&Zp(r.indent,f,i),s=c.range[2];let l=new Pf(g,c);n.options.keepSourceTokens&&(l.srcToken=a),o.items.push(l)}else{m&&i(g.range,`MISSING_CHAR`,`Implicit map keys need to be followed by map values`),_.comment&&(g.comment?g.comment+=`
111
+ `+_.comment:g.comment=_.comment);let e=new Pf(g);n.options.keepSourceTokens&&(e.srcToken=a),o.items.push(e)}}return c&&c<s&&i(c,`IMPOSSIBLE`,`Map comment with trailing content`),o.range=[r.offset,s,c??s],o}function tm({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??Hf)(n.schema);n.atRoot&&=!1,n.atKey&&=!1;let s=r.offset,c=null;for(let{start:a,value:l}of r.items){let u=Yp(a,{indicator:`seq-item-ind`,next:l,offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!u.found)if(u.anchor||u.tag||l)l?.type===`block-seq`?i(u.end,`BAD_INDENT`,`All sequence items must start at the same column`):i(s,`MISSING_CHAR`,`Sequence item without - indicator`);else{c=u.end,u.comment&&(o.comment=u.comment);continue}let d=l?e(n,l,u,i):t(n,u.end,a,null,u,i);n.schema.compat&&Zp(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}function nm(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}var rm=`Block collections are not allowed within flow collections`,im=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function am({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=r.start.source===`{`,s=o?`flow map`:`flow sequence`,c=new((a?.nodeClass)??(o?Bf:Hf))(n.schema);c.flow=!0;let l=n.atRoot;l&&(n.atRoot=!1),n.atKey&&=!1;let u=r.offset+r.start.source.length;for(let a=0;a<r.items.length;++a){let l=r.items[a],{start:d,key:f,sep:p,value:m}=l,h=Yp(d,{flow:s,indicator:`explicit-key-ind`,next:f??p?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!h.found){if(!h.anchor&&!h.tag&&!p&&!m){a===0&&h.comma?i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`):a<r.items.length-1&&i(h.start,`UNEXPECTED_TOKEN`,`Unexpected empty item in ${s}`),h.comment&&(c.comment?c.comment+=`
112
+ `+h.comment:c.comment=h.comment),u=h.end;continue}!o&&n.options.strict&&Xp(f)&&i(f,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`)}if(a===0)h.comma&&i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`);else if(h.comma||i(h.start,`MISSING_CHAR`,`Missing , between ${s} items`),h.comment){let e=``;loop:for(let t of d)switch(t.type){case`comma`:case`space`:break;case`comment`:e=t.source.substring(1);break loop;default:break loop}if(e){let t=c.items[c.items.length-1];X(t)&&(t=t.value??t.key),t.comment?t.comment+=`
113
+ `+e:t.comment=e,h.comment=h.comment.substring(e.length+1)}}if(!o&&!p&&!h.found){let r=m?e(n,m,h,i):t(n,h.end,p,null,h,i);c.items.push(r),u=r.range[2],im(m)&&i(r.range,`BLOCK_IN_FLOW`,rm)}else{n.atKey=!0;let a=h.end,g=f?e(n,f,h,i):t(n,a,d,null,h,i);im(f)&&i(g.range,`BLOCK_IN_FLOW`,rm),n.atKey=!1;let _=Yp(p??[],{flow:s,indicator:`map-value-ind`,next:m,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(_.found){if(!o&&!h.found&&n.options.strict){if(p)for(let e of p){if(e===_.found)break;if(e.type===`newline`){i(e,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`);break}}h.start<_.found.offset-1024&&i(_.found,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit flow sequence key`)}}else m&&(`source`in m&&m.source?.[0]===`:`?i(m,`MISSING_CHAR`,`Missing space after : in ${s}`):i(_.start,`MISSING_CHAR`,`Missing , or : between ${s} items`));let v=m?e(n,m,_,i):_.found?t(n,_.end,p,null,_,i):null;v?im(m)&&i(v.range,`BLOCK_IN_FLOW`,rm):_.comment&&(g.comment?g.comment+=`
114
+ `+_.comment:g.comment=_.comment);let y=new Pf(g,v);if(n.options.keepSourceTokens&&(y.srcToken=l),o){let e=c;Qp(n,e.items,g)&&i(a,`DUPLICATE_KEY`,`Map keys must be unique`),e.items.push(y)}else{let e=new Bf(n.schema);e.flow=!0,e.items.push(y);let t=(v??g).range;e.range=[g.range[0],t[1],t[2]],c.items.push(e)}u=v?v.range[2]:_.end}}let d=o?`}`:`]`,[f,...p]=r.end,m=u;if(f?.source===d)m=f.offset+f.source.length;else{let e=s[0].toUpperCase()+s.substring(1),t=l?`${e} must end with a ${d}`:`${e} in block collection must be sufficiently indented and end with a ${d}`;i(u,l?`MISSING_CHAR`:`BAD_INDENT`,t),f&&f.source.length!==1&&p.unshift(f)}if(p.length>0){let e=nm(p,m,n.options.strict,i);e.comment&&(c.comment?c.comment+=`
115
+ `+e.comment:c.comment=e.comment),c.range=[r.offset,m,e.offset]}else c.range=[r.offset,m,m];return c}function om(e,t,n,r,i,a){let o=n.type===`block-map`?em(e,t,n,r,a):n.type===`block-seq`?tm(e,t,n,r,a):am(e,t,n,r,a),s=o.constructor;return i===`!`||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function sm(e,t,n,r,i){let a=r.tag,o=a?t.directives.tagName(a.source,e=>i(a,`TAG_RESOLVE_FAILED`,e)):null;if(n.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=r,n=e&&a?e.offset>a.offset?e:a:e??a;n&&(!t||t.offset<n.offset)&&i(n,`MISSING_CHAR`,`Missing newline after block sequence props`)}let s=n.type===`block-map`?`map`:n.type===`block-seq`?`seq`:n.start.source===`{`?`map`:`seq`;if(!a||!o||o===`!`||o===Bf.tagName&&s===`map`||o===Hf.tagName&&s===`seq`)return om(e,t,n,i,o);let c=t.schema.tags.find(e=>e.tag===o&&e.collection===s);if(!c){let r=t.schema.knownTags[o];if(r?.collection===s)t.schema.tags.push(Object.assign({},r,{default:!1})),c=r;else return r?i(a,`BAD_COLLECTION_TYPE`,`${r.tag} used for ${s} collection, but expects ${r.collection??`scalar`}`,!0):i(a,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${o}`,!0),om(e,t,n,i,o)}let l=om(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a,`TAG_RESOLVE_FAILED`,e),t.options)??l,d=wd(u)?u:new $(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}function cm(e,t,n){let r=t.offset,i=lm(t,e.options.strict,n);if(!i)return{value:``,type:null,comment:``,range:[r,r,r]};let a=i.mode===`>`?$.BLOCK_FOLDED:$.BLOCK_LITERAL,o=t.source?um(t.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(t===``||t===`\r`)s=e;else break}if(s===0){let e=i.chomp===`+`&&o.length>0?`
116
+ `.repeat(Math.max(1,o.length-1)):``,n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:a,comment:i.comment,range:[r,n,n]}}let c=t.indent+i.indent,l=t.offset+i.length,u=0;for(let t=0;t<s;++t){let[r,a]=o[t];if(a===``||a===`\r`)i.indent===0&&r.length>c&&(c=r.length);else{r.length<c&&n(l+r.length,`MISSING_CHAR`,`Block scalars with more-indented leading empty lines must use an explicit indentation indicator`),i.indent===0&&(c=r.length),u=t,c===0&&!e.atRoot&&n(l,`BAD_INDENT`,`Block scalar values in collections must be indented`);break}l+=r.length+a.length+1}for(let e=o.length-1;e>=s;--e)o[e][0].length>c&&(s=e+1);let d=``,f=``,p=!1;for(let e=0;e<u;++e)d+=o[e][0].slice(c)+`
117
+ `;for(let e=u;e<s;++e){let[t,r]=o[e];l+=t.length+r.length+1;let s=r[r.length-1]===`\r`;if(s&&(r=r.slice(0,-1)),r&&t.length<c){let e=`Block scalar lines must not be less indented than their ${i.indent?`explicit indentation indicator`:`first line`}`;n(l-r.length-(s?2:1),`BAD_INDENT`,e),t=``}a===$.BLOCK_LITERAL?(d+=f+t.slice(c)+r,f=`
118
+ `):t.length>c||r[0]===` `?(f===` `?f=`
119
+ `:!p&&f===`
120
+ `&&(f=`
121
+
122
+ `),d+=f+t.slice(c)+r,f=`
123
+ `,p=!0):r===``?f===`
124
+ `?d+=`
125
+ `:f=`
126
+ `:(d+=f+r,f=` `,p=!1)}switch(i.chomp){case`-`:break;case`+`:for(let e=s;e<o.length;++e)d+=`
127
+ `+o[e][0].slice(c);d[d.length-1]!==`
128
+ `&&(d+=`
129
+ `);break;default:d+=`
130
+ `}let m=r+i.length+t.source.length;return{value:d,type:a,comment:i.comment,range:[r,m,m]}}function lm({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n===`-`||n===`+`))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c,`UNEXPECTED_TOKEN`,`Block scalar header includes extra characters: ${i}`);let l=!1,u=``,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case`space`:l=!0;case`newline`:d+=i.source.length;break;case`comment`:n&&!l&&r(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`),d+=i.source.length,u=i.source.substring(1);break;case`error`:r(i,`UNEXPECTED_TOKEN`,i.message),d+=i.source.length;break;default:{r(i,`UNEXPECTED_TOKEN`,`Unexpected token in block scalar header: ${i.type}`);let e=i.source;e&&typeof e==`string`&&(d+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function um(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:[``,n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}function dm(e,t,n){let{offset:r,type:i,source:a,end:o}=e,s,c,l=(e,t,i)=>n(r+e,t,i);switch(i){case`scalar`:s=$.PLAIN,c=fm(a,l);break;case`single-quoted-scalar`:s=$.QUOTE_SINGLE,c=pm(a,l);break;case`double-quoted-scalar`:s=$.QUOTE_DOUBLE,c=hm(a,l);break;default:return n(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${i}`),{value:``,type:null,comment:``,range:[r,r+a.length,r+a.length]}}let u=r+a.length,d=nm(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function fm(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`;break}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),mm(e)}function pm(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),mm(e.slice(1,-1)).replace(/''/g,`'`)}function mm(e){let t,n;try{t=RegExp(`(.*?)(?<![ ])[ ]*\r?
131
+ `,`sy`),n=RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
132
+ `,`sy`)}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],a=` `,o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)r[1]===``?a===`
133
+ `?i+=a:a=`
134
+ `:(i+=a+r[1],a=` `),o=n.lastIndex;let s=/[ \t]*(.*)/sy;return s.lastIndex=o,r=s.exec(e),i+a+(r?.[1]??``)}function hm(e,t){let n=``;for(let r=1;r<e.length-1;++r){let i=e[r];if(!(i===`\r`&&e[r+1]===`
135
+ `))if(i===`
136
+ `){let{fold:t,offset:i}=gm(e,r);n+=t,r=i}else if(i===`\\`){let i=e[++r],a=_m[i];if(a)n+=a;else if(i===`
137
+ `)for(i=e[r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`\r`&&e[r+1]===`
138
+ `)for(i=e[++r+1];i===` `||i===` `;)i=e[++r+1];else if(i===`x`||i===`u`||i===`U`){let a=i===`x`?2:i===`u`?4:8;n+=vm(e,r+1,a,t),r+=a}else{let i=e.substr(r-1,2);t(r-1,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),n+=i}}else if(i===` `||i===` `){let t=r,a=e[r+1];for(;a===` `||a===` `;)a=e[++r+1];a!==`
139
+ `&&!(a===`\r`&&e[r+2]===`
140
+ `)&&(n+=r>t?e.slice(t,r+1):i)}else n+=i}return(e[e.length-1]!==`"`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing "quote`),n}function gm(e,t){let n=``,r=e[t+1];for(;(r===` `||r===` `||r===`
141
+ `||r===`\r`)&&!(r===`\r`&&e[t+2]!==`
142
+ `);)r===`
143
+ `&&(n+=`
144
+ `),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}var _m={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:`
145
+ `,r:`\r`,t:` `,v:`\v`,N:`…`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `};function vm(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(a)}catch{let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}}function ym(e,t,n,r){let{value:i,type:a,comment:o,range:s}=t.type===`block-scalar`?cm(e,t,r):dm(t,e.options.strict,r),c=n?e.directives.tagName(n.source,e=>r(n,`TAG_RESOLVE_FAILED`,e)):null,l;l=e.options.stringKeys&&e.atKey?e.schema[gd]:c?bm(e.schema,i,c,n,r):t.type===`scalar`?xm(e,i,t,r):e.schema[gd];let u;try{let a=l.resolve(i,e=>r(n??t,`TAG_RESOLVE_FAILED`,e),e.options);u=Z(a)?a:new $(a)}catch(e){let a=e instanceof Error?e.message:String(e);r(n??t,`TAG_RESOLVE_FAILED`,a),u=new $(i)}return u.range=s,u.source=i,a&&(u.type=a),c&&(u.tag=c),l.format&&(u.format=l.format),o&&(u.comment=o),u}function bm(e,t,n,r,i){if(n===`!`)return e[gd];let a=[];for(let t of e.tags)if(!t.collection&&t.tag===n)if(t.default&&t.test)a.push(t);else return t;for(let e of a)if(e.test?.test(t))return e;let o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${n}`,n!==`tag:yaml.org,2002:str`),e[gd])}function xm({atKey:e,directives:t,schema:n},r,i,a){let o=n.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(r))||n[gd];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[gd];o.tag!==e.tag&&a(i,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`,!0)}return o}function Sm(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}var Cm={composeNode:wm,composeEmptyNode:Tm};function wm(e,t,n,r){let i=e.atKey,{spaceBefore:a,comment:o,anchor:s,tag:c}=n,l,u=!0;switch(t.type){case`alias`:l=Em(e,t,r),(s||c)&&r(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:l=ym(e,t,c,r),s&&(l.anchor=s.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{l=sm(Cm,e,t,n,r),s&&(l.anchor=s.source.substring(1))}catch(e){r(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:r(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),u=!1}return l??=Tm(e,t.offset,void 0,null,n,r),s&&l.anchor===``&&r(s,`BAD_ALIAS`,`Anchor cannot be an empty string`),i&&e.options.stringKeys&&(!Z(l)||typeof l.value!=`string`||l.tag&&l.tag!==`tag:yaml.org,2002:str`)&&r(c??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),a&&(l.spaceBefore=!0),o&&(t.type===`scalar`&&t.source===``?l.comment=o:l.commentBefore=o),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function Tm(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:c},l){let u=ym(e,{type:`scalar`,offset:Sm(t,n,r),indent:-1,source:``},s,l);return o&&(u.anchor=o.source.substring(1),u.anchor===``&&l(o,`BAD_ALIAS`,`Anchor cannot be an empty string`)),i&&(u.spaceBefore=!0),a&&(u.comment=a,u.range[2]=c),u}function Em({options:e},{offset:t,source:n,end:r},i){let a=new Gd(n.substring(1));a.source===``&&i(t,`BAD_ALIAS`,`Alias cannot be an empty string`),a.source.endsWith(`:`)&&i(t+n.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let o=t+n.length,s=nm(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}function Dm(e,t,{offset:n,start:r,value:i,end:a},o){let s=new Up(void 0,Object.assign({_directives:t},e)),c={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},l=Yp(r,{indicator:`doc-start`,next:i??a?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});l.found&&(s.directives.docStart=!0,i&&(i.type===`block-map`||i.type===`block-seq`)&&!l.hasNewline&&o(l.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),s.contents=i?wm(c,i,l,o):Tm(c,l.end,r,null,l,o);let u=s.contents.range[2],d=nm(a,u,!1,o);return d.comment&&(s.comment=d.comment),s.range=[n,u,d.offset],s}function Om(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function km(e){let t=``,n=!1,r=!1;for(let i=0;i<e.length;++i){let a=e[i];switch(a[0]){case`#`:t+=(t===``?``:r?`
146
+
147
+ `:`
148
+ `)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}var Am=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=Om(e);r?this.warnings.push(new qp(i,t,n)):this.errors.push(new Kp(i,t,n))},this.directives=new Ld({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=km(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(Cd(i)&&!i.flow&&i.items.length>0){let e=i.items[0];X(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:km(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case`directive`:this.directives.add(e.source,(t,n,r)=>{let i=Om(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=Dm(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new Kp(Om(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new Kp(Om(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=nm(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Kp(Om(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new Up(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),e.range=[0,t,t],this.decorate(e,!1),yield e}}};function jm(e,t=!0,n){if(e){let r=(e,t,r)=>{let i=typeof e==`number`?e:Array.isArray(e)?e[0]:e.offset;if(n)n(i,t,r);else throw new Kp([i,i+1],t,r)};switch(e.type){case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return dm(e,t,r);case`block-scalar`:return cm({options:{strict:t}},e,r)}}return null}function Mm(e,t){let{implicitKey:n=!1,indent:r,inFlow:i=!1,offset:a=-1,type:o=`PLAIN`}=t,s=vf({type:o,value:e},{implicitKey:n,indent:r>0?` `.repeat(r):``,inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),c=t.end??[{type:`newline`,offset:-1,indent:r,source:`
149
+ `}];switch(s[0]){case`|`:case`>`:{let e=s.indexOf(`
150
+ `),t=s.substring(0,e),n=s.substring(e+1)+`
151
+ `,i=[{type:`block-scalar-header`,offset:a,indent:r,source:t}];return Fm(i,c)||i.push({type:`newline`,offset:-1,indent:r,source:`
152
+ `}),{type:`block-scalar`,offset:a,indent:r,props:i,source:n}}case`"`:return{type:`double-quoted-scalar`,offset:a,indent:r,source:s,end:c};case`'`:return{type:`single-quoted-scalar`,offset:a,indent:r,source:s,end:c};default:return{type:`scalar`,offset:a,indent:r,source:s,end:c}}}function Nm(e,t,n={}){let{afterKey:r=!1,implicitKey:i=!1,inFlow:a=!1,type:o}=n,s=`indent`in e?e.indent:null;if(r&&typeof s==`number`&&(s+=2),!o)switch(e.type){case`single-quoted-scalar`:o=`QUOTE_SINGLE`;break;case`double-quoted-scalar`:o=`QUOTE_DOUBLE`;break;case`block-scalar`:{let t=e.props[0];if(t.type!==`block-scalar-header`)throw Error(`Invalid block scalar header`);o=t.source[0]===`>`?`BLOCK_FOLDED`:`BLOCK_LITERAL`;break}default:o=`PLAIN`}let c=vf({type:o,value:t},{implicitKey:i||s===null,indent:s!==null&&s>0?` `.repeat(s):``,inFlow:a,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case`|`:case`>`:Pm(e,c);break;case`"`:Im(e,c,`double-quoted-scalar`);break;case`'`:Im(e,c,`single-quoted-scalar`);break;default:Im(e,c,`scalar`)}}function Pm(e,t){let n=t.indexOf(`
153
+ `),r=t.substring(0,n),i=t.substring(n+1)+`
154
+ `;if(e.type===`block-scalar`){let t=e.props[0];if(t.type!==`block-scalar-header`)throw Error(`Invalid block scalar header`);t.source=r,e.source=i}else{let{offset:t}=e,n=`indent`in e?e.indent:-1,a=[{type:`block-scalar-header`,offset:t,indent:n,source:r}];Fm(a,`end`in e?e.end:void 0)||a.push({type:`newline`,offset:-1,indent:n,source:`
155
+ `});for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:`block-scalar`,indent:n,props:a,source:i})}}function Fm(e,t){if(t)for(let n of t)switch(n.type){case`space`:case`comment`:e.push(n);break;case`newline`:return e.push(n),!0}return!1}function Im(e,t,n){switch(e.type){case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:e.type=n,e.source=t;break;case`block-scalar`:{let r=e.props.slice(1),i=t.length;e.props[0].type===`block-scalar-header`&&(i-=e.props[0].source.length);for(let e of r)e.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case`block-map`:case`block-seq`:{let r={type:`newline`,offset:e.offset+t.length,indent:e.indent,source:`
156
+ `};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{let r=`indent`in e?e.indent:-1,i=`end`in e&&Array.isArray(e.end)?e.end.filter(e=>e.type===`space`||e.type===`comment`||e.type===`newline`):[];for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}var Lm=e=>`type`in e?Rm(e):zm(e);function Rm(e){switch(e.type){case`block-scalar`:{let t=``;for(let n of e.props)t+=Rm(n);return t+e.source}case`block-map`:case`block-seq`:{let t=``;for(let n of e.items)t+=zm(n);return t}case`flow-collection`:{let t=e.start.source;for(let n of e.items)t+=zm(n);for(let n of e.end)t+=n.source;return t}case`document`:{let t=zm(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if(`end`in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function zm({start:e,key:t,sep:n,value:r}){let i=``;for(let t of e)i+=t.source;if(t&&(i+=Rm(t)),n)for(let e of n)i+=e.source;return r&&(i+=Rm(r)),i}var Bm=Symbol(`break visit`),Vm=Symbol(`skip children`),Hm=Symbol(`remove item`);function Um(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),Wm(Object.freeze([]),e,t)}Um.BREAK=Bm,Um.SKIP=Vm,Um.REMOVE=Hm,Um.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},Um.parentCollection=(e,t)=>{let n=Um.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&`items`in i)return i;throw Error(`Parent collection not found`)};function Wm(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;t<a.items.length;++t){let r=Wm(Object.freeze(e.concat([[i,t]])),a.items[t],n);if(typeof r==`number`)t=r-1;else if(r===Bm)return Bm;else r===Hm&&(a.items.splice(t,1),--t)}typeof r==`function`&&i===`key`&&(r=r(t,e))}}return typeof r==`function`?r(t,e):r}var Gm=e({BOM:()=>``,DOCUMENT:()=>``,FLOW_END:()=>``,SCALAR:()=>``,createScalarToken:()=>Mm,isCollection:()=>Km,isScalar:()=>qm,prettyToken:()=>Jm,resolveAsScalar:()=>jm,setScalarValue:()=>Nm,stringify:()=>Lm,tokenType:()=>Ym,visit:()=>Um}),Km=e=>!!e&&`items`in e,qm=e=>!!e&&(e.type===`scalar`||e.type===`single-quoted-scalar`||e.type===`double-quoted-scalar`||e.type===`block-scalar`);function Jm(e){switch(e){case``:return`<BOM>`;case``:return`<DOC>`;case``:return`<FLOW_END>`;case``:return`<SCALAR>`;default:return JSON.stringify(e)}}function Ym(e){switch(e){case``:return`byte-order-mark`;case``:return`doc-mode`;case``:return`flow-error-end`;case``:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case`
157
+ `:case`\r
158
+ `:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}function Xm(e){switch(e){case void 0:case` `:case`
159
+ `:case`\r`:case` `:return!0;default:return!1}}var Zm=new Set(`0123456789ABCDEFabcdef`),Qm=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),$m=new Set(`,[]{}`),eh=new Set(` ,[]{}
160
+ \r `),th=e=>!e||eh.has(e),nh=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer=``,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===` `;)t=this.buffer[++e];return!t||t===`#`||t===`
161
+ `||t===`\r`&&this.buffer[e+1]===`
162
+ `}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===` `;)t=this.buffer[++n+e];if(t===`\r`){let t=this.buffer[n+e+1];if(t===`
163
+ `||!t&&!this.atEnd)return e+n+1}return t===`
164
+ `||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t===`-`||t===`.`){let t=this.buffer.substr(e,3);if((t===`---`||t===`...`)&&Xm(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!=`number`||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
165
+ `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]===`\r`&&--e,this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case`stream`:return yield*this.parseStream();case`line-start`:return yield*this.parseLineStart();case`block-start`:return yield*this.parseBlockStart();case`doc`:return yield*this.parseDocument();case`flow`:return yield*this.parseFlowCollection();case`quoted-scalar`:return yield*this.parseQuotedScalar();case`block-scalar`:return yield*this.parseBlockScalar();case`plain-scalar`:return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext(`stream`);if(e[0]===``&&(yield*this.pushCount(1),e=e.substring(1)),e[0]===`%`){let t=e.length,n=e.indexOf(`#`);for(;n!==-1;){let r=e[n-1];if(r===` `||r===` `){t=n-1;break}else n=e.indexOf(`#`,n+1)}for(;;){let n=e[t-1];if(n===` `||n===` `)--t;else break}let r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),`stream`}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),`stream`}return yield``,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext(`line-start`);if(e===`-`||e===`.`){if(!this.atEnd&&!this.hasChars(4))return this.setNext(`line-start`);let e=this.peek(3);if((e===`---`||e===`...`)&&Xm(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,e===`---`?`doc`:`stream`}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Xm(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext(`block-start`);if((e===`-`||e===`?`||e===`:`)&&Xm(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,`block-start`}return`doc`}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext(`doc`);let t=yield*this.pushIndicators();switch(e[t]){case`#`:yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),`doc`;case`*`:return yield*this.pushUntil(th),`doc`;case`"`:case`'`:return yield*this.parseQuotedScalar();case`|`:case`>`:return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(r===null)return this.setNext(`flow`);if((n!==-1&&n<this.indentNext&&r[0]!==`#`||n===0&&(r.startsWith(`---`)||r.startsWith(`...`))&&Xm(r[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(r[0]===`]`||r[0]===`}`)))return this.flowLevel=0,yield``,yield*this.parseLineStart();let i=0;for(;r[i]===`,`;)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),r[i]){case void 0:return`flow`;case`#`:return yield*this.pushCount(r.length-i),`flow`;case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),this.flowKey=!0,--this.flowLevel,this.flowLevel?`flow`:`doc`;case`*`:return yield*this.pushUntil(th),`flow`;case`"`:case`'`:return this.flowKey=!0,yield*this.parseQuotedScalar();case`:`:{let e=this.charAt(1);if(this.flowKey||Xm(e)||e===`,`)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),`flow`}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e===`'`)for(;t!==-1&&this.buffer[t+1]===`'`;)t=this.buffer.indexOf(`'`,t+2);else for(;t!==-1;){let e=0;for(;this.buffer[t-1-e]===`\\`;)e+=1;if(e%2==0)break;t=this.buffer.indexOf(`"`,t+1)}let n=this.buffer.substring(0,t),r=n.indexOf(`
166
+ `,this.pos);if(r!==-1){for(;r!==-1;){let e=this.continueScalar(r+1);if(e===-1)break;r=n.indexOf(`
167
+ `,e)}r!==-1&&(t=r-(n[r-1]===`\r`?2:1))}if(t===-1){if(!this.atEnd)return this.setNext(`quoted-scalar`);t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?`flow`:`doc`}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t===`+`)this.blockScalarKeep=!0;else if(t>`0`&&t<=`9`)this.blockScalarIndent=Number(t)-1;else if(t!==`-`)break}return yield*this.pushUntil(e=>Xm(e)||e===`#`)}*parseBlockScalar(){let e=this.pos-1,t=0,n;loop:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case` `:t+=1;break;case`
168
+ `:e=r,t=0;break;case`\r`:{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext(`block-scalar`);if(e===`
169
+ `)break}default:break loop}if(!n&&!this.atEnd)return this.setNext(`block-scalar`);if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf(`
170
+ `,t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext(`block-scalar`);e=this.buffer.length}}let r=e+1;for(n=this.buffer[r];n===` `;)n=this.buffer[++r];if(n===` `){for(;n===` `||n===` `||n===`\r`||n===`
171
+ `;)n=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)do{let n=e-1,r=this.buffer[n];r===`\r`&&(r=this.buffer[--n]);let i=n;for(;r===` `;)r=this.buffer[--n];if(r===`
172
+ `&&n>=this.pos&&n+1+t>i)e=n;else break}while(!0);return yield``,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,r;for(;r=this.buffer[++n];)if(r===`:`){let r=this.buffer[n+1];if(Xm(r)||e&&$m.has(r))break;t=n}else if(Xm(r)){let i=this.buffer[n+1];if(r===`\r`&&(i===`
173
+ `?(n+=1,r=`
174
+ `,i=this.buffer[n+1]):t=n),i===`#`||e&&$m.has(i))break;if(r===`
175
+ `){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&$m.has(r))break;t=n}return!r&&!this.atEnd?this.setNext(`plain-scalar`):(yield``,yield*this.pushToIndex(t+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case`&`:e+=yield*this.pushUntil(th),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,n=this.charAt(1);if(Xm(n)||t&&$m.has(n)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!Xm(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Qm.has(t))t=this.buffer[++e];else if(t===`%`&&Zm.has(this.buffer[e+1])&&Zm.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
176
+ `?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===`
177
+ `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}},rh=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}};function ih(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function ah(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}function oh(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}function sh(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}function ch(e){if(e.length===0)return[];let t=e.length;loop:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function lh(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function uh(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!ih(t.start,`explicit-key-ind`)&&!ih(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,oh(t.value)?t.value.end?lh(t.value.end,t.sep):t.value.end=t.sep:lh(t.start,t.sep),delete t.sep)}var dh=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new nh,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=Ym(e);if(!t){let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}else if(t===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=t,yield*this.step(),t){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&uh(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&ah(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent<t.indent))&&(e.type===`document`?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case`directive-line`:yield{type:`directive`,offset:this.offset,source:this.source};return;case`byte-order-mark`:case`space`:case`comment`:case`newline`:yield this.sourceToken;return;case`doc-mode`:case`doc-start`:{let e={type:`document`,offset:this.offset,start:[]};this.type===`doc-start`&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case`doc-start`:ah(e.start)===-1?e.start.push(this.sourceToken):(yield*this.pop(),yield*this.step());return;case`anchor`:case`tag`:case`space`:case`comment`:case`newline`:e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type===`map-value-ind`){let t=ch(sh(this.peek(2))),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case`space`:case`comment`:case`newline`:e.props.push(this.sourceToken);return;case`scalar`:if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf(`
178
+ `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
179
+ `,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){lh(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,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(t.explicitKey)if(!t.sep)if(ih(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=ch(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ih(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(oh(t.key)&&!ih(t.sep,`newline`)){let e=ch(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken);else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):ih(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!ih(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){lh(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||ih(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=ch(sh(t));uh(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(`
180
+ `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
181
+ `,e)+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;let t=ch(sh(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=ch(sh(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.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;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};function fh(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new rh||null,prettyErrors:t}}function ph(e,t={}){let{lineCounter:n,prettyErrors:r}=fh(t),i=new dh(n?.addNewLine),a=new Am(t),o=Array.from(a.compose(i.parse(e)));if(r&&n)for(let t of o)t.errors.forEach(Jp(e,n)),t.warnings.forEach(Jp(e,n));return o.length>0?o:Object.assign([],{empty:!0},a.streamInfo())}function mh(e,t={}){let{lineCounter:n,prettyErrors:r}=fh(t),i=new dh(n?.addNewLine),a=new Am(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new Kp(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(Jp(e,n)),o.warnings.forEach(Jp(e,n))),o}function hh(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=mh(e,n);if(!i)return null;if(i.warnings.forEach(e=>wf(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function gh(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return bd(e)&&!r?e.toString(n):new Up(e,r,n).toString(n)}var _h=e({Alias:()=>Gd,CST:()=>Gm,Composer:()=>Am,Document:()=>Up,Lexer:()=>nh,LineCounter:()=>rh,Pair:()=>Pf,Parser:()=>dh,Scalar:()=>$,Schema:()=>Vp,YAMLError:()=>Gp,YAMLMap:()=>Bf,YAMLParseError:()=>Kp,YAMLSeq:()=>Hf,YAMLWarning:()=>qp,isAlias:()=>yd,isCollection:()=>Cd,isDocument:()=>bd,isMap:()=>xd,isNode:()=>wd,isPair:()=>X,isScalar:()=>Z,isSeq:()=>Sd,parse:()=>hh,parseAllDocuments:()=>ph,parseDocument:()=>mh,stringify:()=>gh,visit:()=>kd,visitAsync:()=>jd}),vh=[.5,1,2];function yh(e,t,n,r,i){let[a,s]=o.useState(!1),[c,l]=o.useState(1),[u,d]=o.useState(!1),[f,p]=o.useState(void 0),m=vh[c],h=t?e.indexOf(t):-1,g=i.minimum,_=i.maximum,v=_-g||1,y=r?r.maximum:_,b=o.useMemo(()=>r?e.filter(e=>e.startTime>=r.minimum&&e.startTime<=r.maximum):e,[e,r]),x=b.length?e.indexOf(b[0]):0,S=b.length?e.indexOf(b[b.length-1]):e.length-1,C=o.useRef(e);C.current=e;let w=o.useRef(n);w.current=n;let ee=o.useRef(null),T=o.useCallback(e=>Math.max(x,Math.min(S,e)),[x,S]),te=o.useCallback(t=>{let n=0,r=e.length-1;for(;n<r;){let i=n+r+1>>1;e[i].startTime<=t?n=i:r=i-1}return n},[e]),ne=t?t.startTime:g,re=f??ne,ie=Math.max(0,Math.min(100,(re-g)/v*100)),ae=o.useRef(y);ae.current=y,o.useEffect(()=>{if(!a)return;let e,t,n=re,r=T(te(n)),i=a=>{if(t!==void 0){let e=(a-t)*m;n=Math.min(n+e,ae.current)}t=a,p(n);let o=T(te(n));if(o!==r&&(r=o,w.current(C.current[o])),n>=ae.current){s(!1),p(void 0);return}e=requestAnimationFrame(i)};return e=requestAnimationFrame(i),()=>cancelAnimationFrame(e)},[a,m]);let oe=o.useCallback(()=>{if(e.length){if(a){s(!1),p(void 0);return}(h>=S||h<x)&&n(e[x]),s(!0)}},[a,e,h,n,x,S]),se=o.useCallback(e=>{s(!1),p(void 0),w.current(e)},[]),E=o.useCallback(()=>{s(!1),p(void 0)},[]),D=o.useCallback(()=>{s(!1),p(void 0),e.length&&n(e[x])},[e,n,x]),ce=h>x,le=h<S,ue=o.useCallback(()=>{ce&&se(e[h-1])},[e,ce,h,se]),de=o.useCallback(()=>{le&&se(e[h+1])},[e,le,h,se]),fe=o.useCallback(()=>{l(e=>(e+1)%vh.length)},[]);o.useEffect(()=>{s(!1),p(void 0)},[e]);let pe=o.useCallback((t,n)=>{let r=ee.current.getBoundingClientRect(),i=Math.max(0,Math.min(1,(t.clientX-r.left)/r.width)),a=g+i*v;p(n?void 0:a);let o=te(a),s=e[o+1];s&&s.startTime-a<a-e[o].startTime&&++o,w.current(e[T(o)])},[e,g,v,T,te]),O=o.useRef(null);o.useEffect(()=>()=>O.current?.(),[]);let k=o.useCallback(t=>{if(!e.length||t.button!==0)return;t.preventDefault(),t.stopPropagation(),ee.current?.focus(),d(!0),s(!1),pe(t,!1);let n=e=>{pe(e,!1)},r=e=>{document.removeEventListener(`mousemove`,n),document.removeEventListener(`mouseup`,r),O.current=null,pe(e,!0),d(!1)};document.addEventListener(`mousemove`,n),document.addEventListener(`mouseup`,r),O.current=()=>{document.removeEventListener(`mousemove`,n),document.removeEventListener(`mouseup`,r)}},[e,pe]),me=!a&&!u,he=e.length>0&&e.length<=200?e.map(e=>(e.startTime-g)/v*100):void 0,ge=a||h>x;return{playing:a,speed:m,currentIndex:h,percent:ie,animating:me,screencastTime:f,togglePlay:oe,stop:D,prev:ue,next:de,cycleSpeed:fe,selectAction:se,showSelectedAction:E,onScrubberMouseDown:k,scrubberRef:ee,actionsLength:e.length,canPrev:ce,canNext:le,canStop:ge,ticks:he}}var bh=({playback:e})=>(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(kn,{icon:`chevron-left`,title:`Previous action`,onClick:e.prev,disabled:!e.canPrev}),(0,M.jsx)(kn,{icon:e.playing?`debug-pause`:`play`,disabled:!e.actionsLength,title:e.playing?`Pause`:`Play`,onClick:e.togglePlay}),(0,M.jsx)(kn,{icon:`debug-stop`,title:`Stop`,onClick:e.stop,disabled:!e.canStop}),(0,M.jsx)(kn,{icon:`chevron-right`,title:`Next action`,onClick:e.next,disabled:!e.canNext}),(0,M.jsxs)(`button`,{className:`playback-speed`,onClick:e.cycleSpeed,title:`Playback speed`,children:[e.speed,`x`]})]}),xh=({playback:e})=>{let t=o.useCallback(t=>{t.key===`ArrowLeft`?(t.preventDefault(),e.prev()):t.key===`ArrowRight`&&(t.preventDefault(),e.next())},[e]);return(0,M.jsxs)(`div`,{className:`playback-scrubber`,ref:e.scrubberRef,onMouseDown:e.onScrubberMouseDown,onKeyDown:t,tabIndex:0,role:`slider`,"aria-label":`Playback position`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(e.percent),children:[(0,M.jsx)(`div`,{className:`playback-track`}),(0,M.jsx)(`div`,{className:`playback-track-filled`+(e.animating?` animated`:``),style:{width:`${e.percent}%`}}),e.ticks?.map((e,t)=>(0,M.jsx)(`div`,{className:`playback-tick`,style:{left:`${e}%`}},t)),(0,M.jsx)(`div`,{className:`playback-thumb`+(e.animating?` animated`:``),style:{left:`${e.percent}%`}})]})};function Sh(e){return!!e?.hasDomSnapshots&&!!e?.hasAriaSnapshots}function Ch(e,t){return Sh(e)?t:!!e?.hasAriaSnapshots}function wh(e,t){if(!t)return{};let n=(t,n)=>!!e.screenshotForCall(t,n)||!!e.ariaSnapshotForCall(t,n),r=n(t.callId,`before`)?{callId:t.callId,phase:`before`}:void 0;if(!r){for(let e=fn(t);e;e=fn(e))if(e.endTime<=t.startTime&&n(e.callId,`after`)){r={callId:e.callId,phase:`after`};break}}let i=n(t.callId,`after`)?{callId:t.callId,phase:`after`}:void 0;if(!i){let e;for(let r=pn(t);r&&r.startTime<=t.endTime;r=pn(r))r.endTime>t.endTime||!n(r.callId,`after`)||e&&e.endTime>r.endTime||(e=r);i=e?{callId:e.callId,phase:`after`}:r}return{action:n(t.callId,`action`)?{callId:t.callId,phase:`action`}:i,before:r,after:i}}function Th(e){let t=new Map,n=(e,r)=>{if(typeof e==`string`)return;e.box&&t.set(e,{...e.box,x:e.box.x+r.x,y:e.box.y+r.y});let i=e.role===`iframe`&&e.box?{x:r.x+e.box.x,y:r.y+e.box.y}:r;for(let t of e.children||[])n(t,i);delete e.box};for(let t of e)n(t,{x:0,y:0});let r=new Map;return na(e,{lineToNode:r}).split(`
182
+ `).map((e,n)=>{let i=r.get(n);return{text:e,box:i?t.get(i):void 0}})}var Eh=/("(?:[^"\\]|\\.)*")|(\/(?:[^/\\]|\\.)*\/)|(\[[^\]]*\])/g;function Dh(e){let t=[],n=e.match(/^(\s*- )([\w-]+)/),r=0;n&&(t.push(n[1]),t.push((0,M.jsx)(`span`,{className:`aria-mode-role`,children:n[2]},`role`)),r=n[0].length);let i=e.substring(r),a=0,o=0;for(let e of i.matchAll(Eh))e.index>a&&t.push(i.substring(a,e.index)),t.push((0,M.jsx)(`span`,{className:e[3]?`aria-mode-attribute`:`aria-mode-string`,children:e[0]},++o)),a=e.index+e[0].length;return a<i.length&&t.push(i.substring(a)),t}var Oh=({model:e,target:t,point:n,box:r,screencastFrame:i})=>{let a=e&&t?e.screenshotForCall(t.callId,t.phase):void 0,s=e&&t?e.ariaSnapshotForCall(t.callId,t.phase):void 0,[c,l]=o.useState([]),[u,d]=o.useState();return o.useEffect(()=>{if(d(void 0),!e||!s){l([]);return}let t=!1;return fetch(e.createRelativeUrl(`file/${s.file}`)).then(e=>e.json()).then(e=>{t||l(Th(e))}).catch(()=>{t||l([])}),()=>{t=!0}},[e,s]),!a&&!s&&!i?(0,M.jsx)(Bn,{text:`No aria snapshot`}):(0,M.jsxs)(`div`,{className:`aria-mode-view hbox`,children:[(0,M.jsx)(kh,{imageUrl:e&&a?e.createRelativeUrl(`file/${a.file}`):void 0,screencastFrame:i,highlightedBox:i?void 0:u,point:i?void 0:n,box:i?void 0:r}),(0,M.jsxs)(`div`,{className:`aria-mode-snapshot vbox`,children:[s&&(0,M.jsx)(`div`,{className:`aria-mode-lines`,onMouseLeave:()=>d(void 0),children:c.map((e,t)=>(0,M.jsx)(`div`,{className:y(`aria-mode-line`,e.box&&`aria-mode-line-hoverable`),onMouseEnter:()=>d(e.box),children:Dh(e.text)},t))}),!s&&(0,M.jsx)(Bn,{text:`No aria snapshot`})]})]})},kh=({imageUrl:e,screencastFrame:t,highlightedBox:n,point:r,box:i})=>{let[a,s]=c(),[l,u]=o.useState(),d;if(e&&l&&a.width){let e=a.width-20,t=a.height-20,o=Math.min(e/l.width,t/l.height,1),s=10+(e-l.width*o)/2,c=10+(t-l.height*o)/2,u=e=>({left:s+e.x*o+`px`,top:c+e.y*o+`px`,width:e.width*o+`px`,height:e.height*o+`px`});d=(0,M.jsxs)(M.Fragment,{children:[i&&(0,M.jsx)(`div`,{className:`aria-mode-action-highlight`,style:u(i)}),r&&(0,M.jsx)(`div`,{className:`aria-mode-action-point`,style:(e=>({left:s+e.x*o+`px`,top:c+e.y*o+`px`,width:20*o+`px`,height:20*o+`px`}))(r)}),n&&(0,M.jsx)(`div`,{className:`aria-mode-highlight`,style:u(n)})]})}return(0,M.jsxs)(`div`,{ref:s,className:`aria-mode-screenshot`,children:[t,!t&&e&&(0,M.jsx)(`img`,{src:e,alt:`Screenshot`,onLoad:e=>u({width:e.currentTarget.naturalWidth,height:e.currentTarget.naturalHeight})}),!t&&!e&&(0,M.jsx)(Bn,{text:`No screenshot`}),d]})},Ah=new Map,jh=120,Mh=2;function Nh(e){let[,t]=o.useState(0),n=e.map(({video:e,url:t})=>Ph(e,t)),r=e.map(({url:e})=>e).join(`
183
+ `);return o.useEffect(()=>{let e=()=>t(e=>e+1),n=r?r.split(`
184
+ `).map(e=>Ah.get(e)):[];for(let t of n)t.listeners.add(e);return()=>{for(let t of n)t.listeners.delete(e)}},[r]),n}function Ph(e,t){let n=Ah.get(t);return n||(n={url:void 0,thumbnails:[],listeners:new Set,started:!1},Ah.set(t,n)),n.started||(n.started=!0,Fh(n,e,t).catch(()=>{})),n}async function Fh(e,t,n){let r=await(await fetch(n)).blob(),i=URL.createObjectURL(r);e.url=i;for(let t of e.listeners)t();let a=document.createElement(`video`);a.muted=!0,a.preload=`auto`,a.src=i;try{await new Promise((e,t)=>{a.addEventListener(`loadedmetadata`,()=>e(),{once:!0}),a.addEventListener(`error`,()=>t(Error(`video failed to load`)),{once:!0})});let n=a.duration;if((!isFinite(n)||n<=0)&&(a.currentTime=2**53-1,await new Promise(e=>a.addEventListener(`seeked`,()=>e(),{once:!0})),n=a.duration,!isFinite(n)||n<=0))return;let r=a.videoWidth||t.width,i=a.videoHeight||t.height,o=document.createElement(`canvas`);o.width=r,o.height=i;let s=o.getContext(`2d`);if(!s)return;let c=Math.max(1,Math.min(jh,Math.ceil(n*Mh))),l=n/c;for(let u=0;u<=c;++u){let c=Math.min(u*l,Math.max(0,n-.001));await Ih(a,c),s.drawImage(a,0,0,r,i);let d=await new Promise(e=>o.toBlob(e,`image/jpeg`,.8));if(d){e.thumbnails.push({timestamp:t.timestamp+c*1e3,url:URL.createObjectURL(d),width:r,height:i});for(let t of e.listeners)t()}}}finally{a.removeAttribute(`src`),a.load()}}async function Ih(e,t){Math.abs(e.currentTime-t)<.001&&e.readyState>=2||await new Promise(n=>{e.addEventListener(`seeked`,()=>n(),{once:!0}),e.currentTime=t})}var Lh=.25;function Rh(e,t){let n=-1;return e.forEach((r,i)=>{r.timestamp<=t&&(n===-1||r.timestamp>e[n].timestamp)&&(n=i)}),n}var zh=({url:e,startTime:t,time:n,playing:r,speed:i,className:a,width:s,height:c})=>{let l=o.useRef(null),u=Math.max(0,(n-t)/1e3),d=o.useRef(u);return d.current=u,o.useEffect(()=>{let e=l.current;if(e){if(!r){e.pause(),Math.abs(e.currentTime-u)>.001&&(e.currentTime=u);return}e.playbackRate=i??1,Math.abs(e.currentTime-u)>Lh&&(e.currentTime=u),e.paused&&e.play().catch(()=>{})}},[e,u,r,i]),(0,M.jsx)(`video`,{ref:l,className:a,src:e,width:s,height:c,muted:!0,playsInline:!0,preload:`auto`,onLoadedMetadata:e=>e.currentTarget.currentTime=d.current})},Bh=({action:e,model:t,sdkLanguage:n,testIdAttributeName:r,isInspecting:i,setIsInspecting:a,highlightedElement:s,setHighlightedElement:c,screencastTime:l,playback:u})=>{let[d,p]=o.useState(`action`),[m]=f(`shouldPopulateCanvasFromScreenshot`,!1),[h]=f(`displayAriaMode`,!1),g=Ch(t,h),_=Qh(t,l,u.playing,u.speed),v=o.useMemo(()=>qh(t,e),[t,e]),y=o.useMemo(()=>t&&g?wh(t,e):{},[t,e,g]);o.useEffect(()=>{g&&i&&a(!1)},[g,i,a]);let{snapshotInfoUrl:b,snapshotUrl:x,popoutUrl:S}=o.useMemo(()=>{let e=v[d];return t&&e?Yh(t.traceUri,e,m):{snapshotInfoUrl:void 0,snapshotUrl:void 0,popoutUrl:void 0}},[v,d,m,t]),C=o.useMemo(()=>b===void 0?void 0:{snapshotInfoUrl:b,snapshotUrl:x,popoutUrl:S},[b,x,S]);return(0,M.jsxs)(`div`,{className:`snapshot-tab vbox`,children:[(0,M.jsxs)(Ur,{children:[(0,M.jsx)(kn,{className:`pick-locator`,title:`Pick locator`,icon:`target`,disabled:g,toggled:i,onClick:()=>a(!i)}),(0,M.jsx)(`div`,{className:`hbox`,style:{height:`100%`},role:`tablist`,children:[`action`,`before`,`after`].map(e=>(0,M.jsx)(Gr,{id:e,title:Uh(e),selected:d===e,onSelect:()=>p(e)},e))}),(0,M.jsx)(`div`,{style:{flex:`auto`}}),(0,M.jsx)(bh,{playback:u}),(0,M.jsx)(kn,{icon:`link-external`,title:`Open snapshot in a new tab`,disabled:g||!C?.popoutUrl,onClick:()=>{let e=window.open(C?.popoutUrl||``,`_blank`);e?.addEventListener(`DOMContentLoaded`,()=>{new zl(e,{isUnderTest:Jh,frameSeq:0,sdkLanguage:n,testIdAttributeName:r,stableRafCount:1,browserName:`chromium`,customEngines:[]}).consoleApi.install()})}})]}),g&&(0,M.jsx)(Oh,{model:t,target:y[d],point:d===`action`?e?.point:void 0,box:d===`action`?e?.box:void 0,screencastFrame:_}),!g&&(0,M.jsx)(Vh,{snapshotUrls:C,sdkLanguage:n,testIdAttributeName:r,isInspecting:i,setIsInspecting:a,highlightedElement:s,setHighlightedElement:c,screencastFrame:_})]})},Vh=({snapshotUrls:e,sdkLanguage:t,testIdAttributeName:n,isInspecting:r,setIsInspecting:i,highlightedElement:a,setHighlightedElement:s,screencastFrame:c})=>{let l=o.useRef(null),u=o.useRef(null),[d,f]=o.useState({viewport:Zh,url:``}),p=o.useRef({iteration:0,visibleIframe:0});return o.useEffect(()=>{(async()=>{let t=p.current.iteration+1,n=1-p.current.visibleIframe;p.current.iteration=t;let r=await Xh(e?.snapshotInfoUrl);if(p.current.iteration!==t)return;let i=c?void 0:[l,u][n].current;if(i){let t=()=>{},n=new Promise(e=>t=e);try{i.addEventListener(`load`,t),i.addEventListener(`error`,t);let r=e?.snapshotUrl||lu;i.contentWindow?i.contentWindow.location.replace(r):i.src=r,await n}catch{}finally{i.removeEventListener(`load`,t),i.removeEventListener(`error`,t)}}p.current.iteration===t&&(i&&(p.current.visibleIframe=n),f(r))})()},[e,c]),(0,M.jsxs)(`div`,{className:`vbox`,tabIndex:0,onKeyDown:e=>{e.key===`Escape`&&r&&i(!1)},children:[(0,M.jsx)(Wh,{isInspecting:r,sdkLanguage:t,testIdAttributeName:n,highlightedElement:a,setHighlightedElement:s,iframe:l.current,iteration:p.current.iteration}),(0,M.jsx)(Wh,{isInspecting:r,sdkLanguage:t,testIdAttributeName:n,highlightedElement:a,setHighlightedElement:s,iframe:u.current,iteration:p.current.iteration}),(0,M.jsx)(Hh,{snapshotInfo:d,children:(0,M.jsxs)(`div`,{className:`snapshot-switcher`,children:[(0,M.jsx)(`iframe`,{ref:l,name:`snapshot`,title:`DOM Snapshot`,sandbox:`allow-same-origin allow-scripts`,className:y(p.current.visibleIframe===0&&`snapshot-visible`)}),(0,M.jsx)(`iframe`,{ref:u,name:`snapshot`,title:`DOM Snapshot`,sandbox:`allow-same-origin allow-scripts`,className:y(p.current.visibleIframe===1&&`snapshot-visible`)}),c]})})]})},Hh=({snapshotInfo:e,children:t})=>{let[n,r]=c(),i={width:e.viewport.width,height:e.viewport.height},a={width:Math.max(i.width,320),height:Math.max(i.height+40,320)},o=n.width-20,s=n.height-20,l=Math.min(o/a.width,s/a.height,1),u={x:(n.width-a.width)/2-10,y:(n.height-a.height)/2-10};return(0,M.jsx)(`div`,{ref:r,className:`snapshot-wrapper`,children:(0,M.jsxs)(`div`,{className:`snapshot-container`,style:{width:a.width+`px`,height:a.height+`px`,transform:`translate(${u.x}px, ${u.y}px) scale(${l})`},children:[(0,M.jsx)(dd,{url:e.url}),(0,M.jsx)(`div`,{className:`snapshot-browser-body`,children:(0,M.jsx)(`div`,{style:{width:i.width+`px`,height:i.height+`px`},children:t})})]})})};function Uh(e){return e===`before`?`Before`:e===`after`?`After`:e===`action`?`Action`:e}var Wh=({iframe:e,isInspecting:t,sdkLanguage:n,testIdAttributeName:r,highlightedElement:i,setHighlightedElement:a,iteration:s})=>(o.useEffect(()=>{let o=i.lastEdited===`ariaSnapshot`?i.ariaSnapshot:void 0,s=i.lastEdited===`locator`?i.locator:void 0,c=!!o||!!s||t,l=[],u=new URLSearchParams(window.location.search).get(`isUnderTest`)===`true`;try{Gh(l,c,n,r,u,``,e?.contentWindow)}catch{}let d=o?Ki(_h,o):void 0,f=s?ld(n,s,r):void 0;for(let{recorder:e,frameSelector:i}of l){let o=f?.startsWith(i)?f.substring(i.length).trim():void 0,s=d?.errors.length===0?d.fragment:void 0;try{let t=o||(s?`aria-template=`+JSON.stringify(s):void 0);t?e.injectedScript.setHighlights([{selector:e.injectedScript.parseSelector(t)}]):e.injectedScript.setHighlights([])}catch{e.injectedScript.setHighlights([])}e.setUIState({mode:t?`inspecting`:`none`,language:n,testIdAttributeName:r,overlay:{offsetX:0}},{async elementPicked(e){a({locator:Ht(n,i+e.selector),ariaSnapshot:e.ariaSnapshot,lastEdited:`none`})},highlightUpdated(){for(let t of l)t.recorder!==e&&t.recorder.clearHighlight()}})}},[e,t,i,a,n,r,s]),(0,M.jsx)(M.Fragment,{}));function Gh(e,t,n,r,i,a,o){if(!o)return;let s=o;if(!s._recorder&&t){let e=new zl(o,{isUnderTest:i,frameSeq:0,sdkLanguage:n,testIdAttributeName:r,stableRafCount:1,browserName:`chromium`,customEngines:[]}),t=new Yl(e);s._injectedScript=e,s._recorder={recorder:t,frameSelector:a},i&&(window._weakRecordersForTest=window._weakRecordersForTest||new Set,window._weakRecordersForTest.add(new WeakRef(t)))}s._recorder&&e.push(s._recorder);for(let c=0;c<o.frames.length;++c){let l=o.frames[c];Gh(e,t,n,r,i,a+(l.frameElement?s._injectedScript.generateSelectorSimple(l.frameElement,{omitInternalEngines:!0,testIdAttributeName:r})+` >> internal:control=enter-frame >> `:``),l)}}var Kh=(e,t,n)=>{if(!(!t||!e.hasDomSnapshotForCall(t.callId,n)))return{action:t,phase:n,point:t.point}};function qh(e,t){if(!e||!t)return{};let n=(t,n)=>e.hasDomSnapshotForCall(t,n),r=Kh(e,t,`before`);if(!r){for(let i=fn(t);i;i=fn(i))if(i.endTime<=t.startTime&&n(i.callId,`after`)){r=Kh(e,i,`after`);break}}let i=Kh(e,t,`after`);if(!i){let a;for(let e=pn(t);e&&e.startTime<=t.endTime;e=pn(e))e.endTime>t.endTime||!n(e.callId,`after`)||a&&a.endTime>e.endTime||(a=e);i=a?Kh(e,a,`after`):r}let a=Kh(e,t,`action`)??i;return a&&(a.point=t.point),{action:a,before:r,after:i}}var Jh=new URLSearchParams(window.location.search).has(`isUnderTest`);function Yh(e,t,n){let r=new URLSearchParams;r.set(`trace`,e),Jh&&r.set(`isUnderTest`,`true`),t.point&&(r.set(`pointX`,String(t.point.x)),r.set(`pointY`,String(t.point.y))),n&&r.set(`shouldPopulateCanvasFromScreenshot`,`1`),r.set(`phase`,t.phase);let i=encodeURIComponent(t.action.callId),a=new URL(`snapshot/${i}?${r.toString()}`,window.location.href).toString(),o=new URL(`snapshotInfo/${i}?${r.toString()}`,window.location.href).toString(),s=new URLSearchParams;return s.set(`r`,a),s.set(`trace`,e),{snapshotInfoUrl:o,snapshotUrl:a,popoutUrl:new URL(`snapshot.html?${s.toString()}`,window.location.href).toString()}}async function Xh(e){let t={url:``,viewport:Zh,timestamp:void 0,wallTime:void 0};if(e){let n=await(await fetch(e)).json();n.error||(t.url=n.url,t.viewport=n.viewport,t.timestamp=n.timestamp,t.wallTime=n.wallTime)}return t}var Zh={width:1280,height:720};function Qh(e,t,n,r){let i=e&&t!==void 0?e.videos.map(t=>({video:t,url:e.createRelativeUrl(`file/${t.file}`)})):[],a=Nh(i);if(!e||t===void 0)return;let o;for(let n of e.pages){let e=n.screencastFrames[u(n.screencastFrames,t,(e,t)=>e-t.timestamp)-1];e&&(!o||e.timestamp>o.timestamp)&&(o=e)}if(o)return(0,M.jsx)(`img`,{className:`screencast-frame`,src:e.createRelativeUrl(`file/${o.file}`),alt:`Screencast frame`});let s=Rh(i.map(({video:e})=>e),t),c=a[s]?.url;if(c)return(0,M.jsx)(zh,{className:`screencast-frame`,url:c,startTime:i[s].video.timestamp,time:t,playing:n,speed:r})}var $h=qn,eg=({stack:e,setSelectedFrame:t,selectedFrame:n})=>{let r=e||[];return(0,M.jsx)($h,{name:`stack-trace`,ariaLabel:`Stack trace`,items:r,selectedItem:r[n],render:e=>{let t=e.file[1]===`:`?`\\`:`/`;return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`span`,{className:`stack-trace-frame-function`,children:e.function||`(anonymous)`}),(0,M.jsx)(`span`,{className:`stack-trace-frame-location`,children:e.file.split(t).pop()}),(0,M.jsx)(`span`,{className:`stack-trace-frame-line`,children:`:`+e.line})]})},onSelected:e=>t(r.indexOf(e))})};function tg(e){let t=e.substring(Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`))+1),n=t.lastIndexOf(`.`);return n<=0?``:t.substring(n)}function ng(e,t,n,r,i){let a=On();return s(async()=>{let o=e?.[t],s=o?.file?o:i;if(!s)return{source:{file:``,errors:[],content:void 0},targetLine:0,highlight:[]};let c=s.file,l=n.get(c);l||(l={errors:i?.source?.errors||[],content:i?.source?.content},n.set(c,l));let u=s?.line||l.errors[0]?.line||0,d=r&&c.startsWith(r)?c.substring(r.length+1):c,f=l.errors.map(e=>({type:`error`,line:e.line,message:e.message}));if(f.push({line:u,type:`running`}),i?.source?.content!==void 0)l.content=i.source.content;else if(l.content===void 0||s===i){let e=await ig(c);try{let t=a?await fetch(a.createRelativeUrl(`file/src/${e}${tg(c)}`)):void 0;(!t||t.status===404)&&(t=a?await fetch(a.createRelativeUrl(`file/resources/src@${e}.txt`)):void 0),(!t||t.status===404)&&(t=await fetch(`file?path=${encodeURIComponent(c)}`)),t.status>=400?l.content=``:l.content=await t.text()}catch{l.content=`<Unable to read "${c}">`}}return{model:a,source:l,highlight:f,targetLine:u,fileName:d,location:s}},[e,t,r,i],{source:{errors:[],content:`Loading…`},highlight:[]})}var rg=({stack:e,sources:t,rootDir:n,fallbackLocation:r,stackFrameLocation:i,onOpenExternally:a})=>{let[s,c]=o.useState(),[l,u]=o.useState(0);o.useEffect(()=>{s!==e&&(c(e),u(0))},[e,s,c,u]);let{source:d,highlight:f,targetLine:p,fileName:m,location:h}=ng(e,l,t,n,r),g=o.useCallback(()=>{h&&(a?a(h):window.location.href=`vscode://file//${h.file}:${h.line}`)},[a,h]),_=(e?.length??0)>1,v=ag(m),y=v.endsWith(`.md`)?`markdown`:`javascript`;return(0,M.jsx)(yn,{sidebarSize:200,orientation:i===`bottom`?`vertical`:`horizontal`,sidebarHidden:!_,main:(0,M.jsxs)(`div`,{className:`vbox`,"data-testid":`source-code`,children:[m&&(0,M.jsxs)(Ur,{children:[(0,M.jsx)(`div`,{className:`source-tab-file-name`,title:m,children:(0,M.jsx)(`div`,{children:v})}),(0,M.jsx)(Rn,{description:`Copy filename`,value:v}),h&&(0,M.jsx)(kn,{icon:`link-external`,title:`Open in VS Code`,onClick:g})]}),(0,M.jsx)(mr,{text:d.content||``,highlighter:y,highlight:f,revealLine:p,readOnly:!0,lineNumbers:!0,dataTestId:`source-code-mirror`})]}),sidebar:(0,M.jsx)(eg,{stack:e,selectedFrame:l,setSelectedFrame:u})})};async function ig(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest(`SHA-1`,t),r=[],i=new DataView(n);for(let e=0;e<i.byteLength;e+=1){let t=i.getUint8(e).toString(16).padStart(2,`0`);r.push(t)}return r.join(``)}function ag(e){if(!e)return``;let t=e?.includes(`/`)?`/`:`\\`;return e?.split(t).pop()??``}var og={width:200,height:45},sg=2.5,cg=og.height+sg*2,lg=({boundaries:e,previewPoint:t})=>{let n=On(),[r,i]=c(),a=o.useRef(null),s=(n?.videos??[]).map(e=>({video:e,url:n.createRelativeUrl(`file/${e.file}`)})),l=Nh(s),d=0;if(a.current&&t){let e=a.current.getBoundingClientRect();d=(t.clientY-e.top+a.current.scrollTop)/cg|0}let f=(n?.pages??[]).filter(e=>e.screencastFrames.length),p=ug(s.map(({video:e})=>e),l),m,h;if(n&&t!==void 0){let i=e.minimum+(e.maximum-e.minimum)*t.x/r.width,a={width:Math.min(800,window.innerWidth/2|0),height:Math.min(800,window.innerHeight/2|0)},o=f[d]?.screencastFrames,s=o?.[u(o,i,pg)-1],c=p[d-f.length],l=c?Rh(c.videos,i):-1,g=l===-1?void 0:c.sources[l].url;if(s)h=mg(s,a),m=(0,M.jsx)(`img`,{src:n.createRelativeUrl(`file/${s.file}`),width:h.width,height:h.height});else if(g){let e=c.videos[l];h=mg(e,a),m=(0,M.jsx)(zh,{url:g,startTime:e.timestamp,time:i,width:h.width,height:h.height})}}return(0,M.jsxs)(`div`,{className:`film-strip`,ref:i,children:[(0,M.jsxs)(`div`,{className:`film-strip-lanes`,ref:a,children:[f.map((t,n)=>(0,M.jsx)(fg,{boundaries:e,page:t,width:r.width},n)),p.map((t,n)=>(0,M.jsx)(dg,{boundaries:e,thumbnails:t.thumbnails,width:r.width},`video-`+n))]}),t&&m&&h&&(0,M.jsx)(`div`,{className:`film-strip-hover`,style:{top:r.bottom+5,left:Math.min(t.x,r.width-h.width-10),width:h.width,height:h.height},children:m})]})};function ug(e,t){let n=new Map;return e.forEach((e,r)=>{let i=n.get(e.pageId);i||(i={videos:[],sources:[],thumbnails:[]},n.set(e.pageId,i)),i.videos.push(e),i.sources.push(t[r]),i.thumbnails.push(...t[r].thumbnails)}),[...n.values()].filter(e=>e.thumbnails.length).map(e=>(e.thumbnails.sort((e,t)=>e.timestamp-t.timestamp),e))}var dg=({boundaries:e,thumbnails:t,width:n})=>{let r={width:0,height:0};for(let e of t)r.width=Math.max(r.width,e.width),r.height=Math.max(r.height,e.height);let i=mg(r,og),a=t[0].timestamp,o=t[t.length-1].timestamp,s=e.maximum-e.minimum,c=(a-e.minimum)/s*n,l=(e.maximum-o)/s*n,d=(o-a)/s*n/(i.width+2*sg)|0,f=(o-a)/d,p=[];for(let e=0;a&&f&&e<d;++e){let n=u(t,a+f*e,pg)-1;p.push((0,M.jsx)(`div`,{className:`film-strip-frame`,style:{width:i.width,height:i.height,backgroundImage:`url(${t[n].url})`,backgroundSize:`${i.width}px ${i.height}px`,margin:sg,marginRight:sg}},e))}return p.push((0,M.jsx)(`div`,{className:`film-strip-frame`,style:{width:i.width,height:i.height,backgroundImage:`url(${t[t.length-1].url})`,backgroundSize:`${i.width}px ${i.height}px`,margin:sg,marginRight:sg}},p.length)),(0,M.jsx)(`div`,{className:`film-strip-lane`,style:{marginLeft:c+`px`,marginRight:l+`px`},children:p})},fg=({boundaries:e,page:t,width:n})=>{let r=On(),i={width:0,height:0},a=t.screencastFrames;for(let e of a)i.width=Math.max(i.width,e.width),i.height=Math.max(i.height,e.height);let o=mg(i,og),s=a[0].timestamp,c=a[a.length-1].timestamp,l=e.maximum-e.minimum,d=(s-e.minimum)/l*n,f=(e.maximum-c)/l*n,p=(c-s)/l*n/(o.width+2*sg)|0,m=(c-s)/p,h=[];for(let e=0;s&&m&&e<p;++e){let t=u(a,s+m*e,pg)-1;h.push((0,M.jsx)(`div`,{className:`film-strip-frame`,style:{width:o.width,height:o.height,backgroundImage:`url(${r?.createRelativeUrl(`file/`+a[t].file)})`,backgroundSize:`${o.width}px ${o.height}px`,margin:sg,marginRight:sg}},e))}return h.push((0,M.jsx)(`div`,{className:`film-strip-frame`,style:{width:o.width,height:o.height,backgroundImage:`url(${r?.createRelativeUrl(`file/`+a[a.length-1].file)})`,backgroundSize:`${o.width}px ${o.height}px`,margin:sg,marginRight:sg}},h.length)),(0,M.jsx)(`div`,{className:`film-strip-lane`,style:{marginLeft:d+`px`,marginRight:f+`px`},children:h})};function pg(e,t){return e-t.timestamp}function mg(e,t){let n=Math.max(e.width/t.width,e.height/t.height);return{width:e.width/n|0,height:e.height/n|0}}var hg=({model:e,boundaries:t,onSelected:n,selectedTime:r,setSelectedTime:i,highlightedTime:a,scrubber:s})=>{let[l,u]=c(),[d,p]=o.useState(),[m,h]=o.useState(),[g]=f(`actionsFilter`,[]),{offsets:_,curtainLeft:v,curtainRight:y}=o.useMemo(()=>{let e=r||t;if(d&&d.startX!==d.endX){let n=vg(l.width,t,d.startX),r=vg(l.width,t,d.endX);e={minimum:Math.min(n,r),maximum:Math.max(n,r)}}let n=_g(l.width,t,e.minimum),i=_g(l.width,t,t.maximum)-_g(l.width,t,e.maximum);return{offsets:gg(l.width,t),curtainLeft:n,curtainRight:i}},[r,t,d,l]),b=o.useMemo(()=>e?.filteredActions(g),[e,g]),x=o.useMemo(()=>{if(!a)return;let e=_g(l.width,t,a.minimum),n=_g(l.width,t,a.maximum);return{left:e,width:Math.max(2,n-e)}},[a,t,l]),S=o.useCallback(e=>{if(h(void 0),!u.current)return;let n=e.clientX-u.current.getBoundingClientRect().left,i=vg(l.width,t,n),a=r?_g(l.width,t,r.minimum):0,o=r?_g(l.width,t,r.maximum):0;r&&Math.abs(n-a)<10?p({startX:o,endX:n,type:`resize`}):r&&Math.abs(n-o)<10?p({startX:a,endX:n,type:`resize`}):r&&i>r.minimum&&i<r.maximum&&e.clientY-u.current.getBoundingClientRect().top<20?p({startX:a,endX:o,pivot:n,type:`move`}):p({startX:n,endX:n,type:`resize`})},[t,l,u,r]),C=o.useCallback(e=>{if(!u.current)return;let r=e.clientX-u.current.getBoundingClientRect().left,a=vg(l.width,t,r),o=b?.findLast(e=>e.startTime<=a);if(!e.buttons){p(void 0);return}if(o&&n(o),!d)return;let s=d;if(d.type===`resize`)s={...d,endX:r};else{let e=r-d.pivot,t=d.startX+e,n=d.endX+e;t<0&&(t=0,n=t+(d.endX-d.startX)),n>l.width&&(n=l.width,t=n-(d.endX-d.startX)),s={...d,startX:t,endX:n,pivot:r}}p(s);let c=vg(l.width,t,s.startX),f=vg(l.width,t,s.endX);c!==f&&i({minimum:Math.min(c,f),maximum:Math.max(c,f)})},[t,d,l,b,n,u,i]),w=o.useCallback(()=>{if(h(void 0),d){if(d.startX!==d.endX){let e=vg(l.width,t,d.startX),n=vg(l.width,t,d.endX);i({minimum:Math.min(e,n),maximum:Math.max(e,n)})}else{let e=vg(l.width,t,d.startX),r=b?.findLast(t=>t.startTime<=e);r&&n(r),i(void 0)}p(void 0)}},[t,d,l,b,i,n]),ee=o.useCallback(e=>{if(!u.current)return;let t=e.clientX-u.current.getBoundingClientRect().left;h({x:t,clientY:e.clientY})},[u]),T=o.useCallback(()=>{h(void 0)},[]),te=o.useCallback(()=>{i(void 0)},[i]);return(0,M.jsxs)(`div`,{className:`timeline-view-container`,children:[!!d&&(0,M.jsx)(nr,{cursor:d?.type===`resize`?`ew-resize`:`grab`,onPaneMouseUp:w,onPaneMouseMove:C,onPaneDoubleClick:te}),(0,M.jsxs)(`div`,{ref:u,className:`timeline-view`,onMouseDown:S,onMouseMove:ee,onMouseLeave:T,children:[(0,M.jsx)(`div`,{className:`timeline-grid`,children:_.map((e,n)=>(0,M.jsx)(`div`,{className:`timeline-divider`,style:{left:e.position+`px`},children:(0,M.jsx)(`div`,{className:`timeline-time`,children:bn(e.time-t.minimum)})},n))}),(0,M.jsx)(lg,{boundaries:t,previewPoint:m}),s,x&&(0,M.jsx)(`div`,{className:`timeline-highlight`,style:{left:x.left,width:x.width}}),r&&(0,M.jsxs)(`div`,{className:`timeline-window`,children:[(0,M.jsx)(`div`,{className:`timeline-window-curtain left`,style:{width:v}}),(0,M.jsx)(`div`,{className:`timeline-window-resizer`,style:{left:-5}}),(0,M.jsx)(`div`,{className:`timeline-window-center`,children:(0,M.jsx)(`div`,{className:`timeline-window-drag`})}),(0,M.jsx)(`div`,{className:`timeline-window-resizer`,style:{left:5}}),(0,M.jsx)(`div`,{className:`timeline-window-curtain right`,style:{width:y}})]})]})]})};function gg(e,t){let n=e/64,r=t.maximum-t.minimum,i=e/r,a=r/n;a=10**Math.ceil(Math.log(a)/Math.LN10),a*i>=320&&(a/=5),a*i>=128&&(a/=2);let o=t.minimum,s=t.maximum;s+=64/i,n=Math.ceil((s-o)/a),a||(n=0);let c=[];for(let r=0;r<n;++r){let n=o+a*r;c.push({position:_g(e,t,n),time:n})}return c}function _g(e,t,n){return(n-t.minimum)/(t.maximum-t.minimum)*e}function vg(e,t,n){return n/e*(t.maximum-t.minimum)+t.minimum}var yg=({model:e})=>{if(!e)return(0,M.jsx)(M.Fragment,{});let t=e.wallTime===void 0?void 0:new Date(e.wallTime).toLocaleString(void 0,{timeZoneName:`short`});return(0,M.jsxs)(`div`,{style:{flex:`auto`,display:`block`,overflow:`hidden auto`},children:[(0,M.jsx)(`div`,{className:`call-section`,style:{paddingTop:2},children:`Time`}),!!t&&(0,M.jsxs)(`div`,{className:`call-line`,children:[`start time:`,(0,M.jsx)(`span`,{className:`call-value datetime`,title:t,children:t})]}),(0,M.jsxs)(`div`,{className:`call-line`,children:[`duration:`,(0,M.jsx)(`span`,{className:`call-value number`,title:bn(e.endTime-e.startTime),children:bn(e.endTime-e.startTime)})]}),e.testTimeout!==void 0&&(0,M.jsxs)(`div`,{className:`call-line`,children:[`test timeout:`,(0,M.jsx)(`span`,{className:`call-value number`,title:bn(e.testTimeout),children:bn(e.testTimeout)})]}),(0,M.jsx)(`div`,{className:`call-section`,children:`Browser`}),(0,M.jsxs)(`div`,{className:`call-line`,children:[`engine:`,(0,M.jsx)(`span`,{className:`call-value string`,title:e.browserName,children:e.browserName})]}),e.channel&&(0,M.jsxs)(`div`,{className:`call-line`,children:[`channel:`,(0,M.jsx)(`span`,{className:`call-value string`,title:e.channel,children:e.channel})]}),e.platform&&(0,M.jsxs)(`div`,{className:`call-line`,children:[`platform:`,(0,M.jsx)(`span`,{className:`call-value string`,title:e.platform,children:e.platform})]}),e.playwrightVersion&&(0,M.jsxs)(`div`,{className:`call-line`,children:[`playwright version:`,(0,M.jsx)(`span`,{className:`call-value string`,title:e.playwrightVersion,children:e.playwrightVersion})]}),e.options.userAgent&&(0,M.jsxs)(`div`,{className:`call-line`,children:[`user agent:`,(0,M.jsx)(`span`,{className:`call-value datetime`,title:e.options.userAgent,children:e.options.userAgent})]}),e.options.baseURL&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{className:`call-section`,style:{paddingTop:2},children:`Config`}),(0,M.jsxs)(`div`,{className:`call-line`,children:[`baseURL:`,r(e.options.baseURL)?(0,M.jsx)(`a`,{className:`call-value string`,href:e.options.baseURL,title:e.options.baseURL,target:`_blank`,rel:`noopener noreferrer`,children:e.options.baseURL}):(0,M.jsx)(`span`,{className:`call-value string`,title:e.options.baseURL,children:e.options.baseURL})]})]}),(0,M.jsx)(`div`,{className:`call-section`,children:`Viewport`}),e.options.viewport&&(0,M.jsxs)(`div`,{className:`call-line`,children:[`width:`,(0,M.jsx)(`span`,{className:`call-value number`,title:String(!!e.options.viewport?.width),children:e.options.viewport.width})]}),e.options.viewport&&(0,M.jsxs)(`div`,{className:`call-line`,children:[`height:`,(0,M.jsx)(`span`,{className:`call-value number`,title:String(!!e.options.viewport?.height),children:e.options.viewport.height})]}),(0,M.jsxs)(`div`,{className:`call-line`,children:[`is mobile:`,(0,M.jsx)(`span`,{className:`call-value boolean`,title:String(!!e.options.isMobile),children:String(!!e.options.isMobile)})]}),e.options.deviceScaleFactor&&(0,M.jsxs)(`div`,{className:`call-line`,children:[`device scale:`,(0,M.jsx)(`span`,{className:`call-value number`,title:String(e.options.deviceScaleFactor),children:String(e.options.deviceScaleFactor)})]}),(0,M.jsx)(`div`,{className:`call-section`,children:`Counts`}),(0,M.jsxs)(`div`,{className:`call-line`,children:[`pages:`,(0,M.jsx)(`span`,{className:`call-value number`,children:e.pages.length})]}),(0,M.jsxs)(`div`,{className:`call-line`,children:[`actions:`,(0,M.jsx)(`span`,{className:`call-value number`,children:e.actions.length})]}),(0,M.jsxs)(`div`,{className:`call-line`,children:[`events:`,(0,M.jsx)(`span`,{className:`call-value number`,children:e.events.length})]})]})},bg=({annotations:e})=>e.length?(0,M.jsx)(`div`,{className:`annotations-tab`,children:e.map((e,t)=>(0,M.jsxs)(`div`,{className:`annotation-item`,children:[(0,M.jsx)(`span`,{style:{fontWeight:`bold`},children:e.type}),e.description&&(0,M.jsxs)(`span`,{children:[`: `,wr(e.description)]})]},`annotation-${t}`))}):(0,M.jsx)(Bn,{text:`No annotations`}),xg=({sdkLanguage:e,isInspecting:t,setIsInspecting:n,highlightedElement:r,setHighlightedElement:i})=>{let[a,s]=o.useState(),c=o.useCallback(e=>{let{errors:t}=Ki(_h,e,{prettyErrors:!1}),a=t.map(e=>({message:e.message,line:e.range[1].line,column:e.range[1].col,type:`subtle-error`}));s(a),i({...r,ariaSnapshot:e,lastEdited:`ariaSnapshot`}),n(!1)},[r,i,n]);return(0,M.jsxs)(`div`,{style:{flex:`auto`,backgroundColor:`var(--vscode-sideBar-background)`,padding:`0 10px 10px 10px`,overflow:`auto`},children:[(0,M.jsxs)(`div`,{className:`hbox`,style:{lineHeight:`28px`,color:`var(--vscode-editorCodeLens-foreground)`},children:[(0,M.jsx)(`div`,{children:`Locator`}),(0,M.jsx)(kn,{style:{margin:`0 4px`},title:`Pick locator`,icon:`target`,toggled:t,onClick:()=>n(!t)}),(0,M.jsx)(`div`,{style:{flex:`auto`}}),(0,M.jsx)(kn,{icon:`files`,title:`Copy locator`,onClick:()=>{d(r.locator||``)}})]}),(0,M.jsx)(`div`,{style:{height:50},children:(0,M.jsx)(mr,{text:r.locator||``,highlighter:e,isFocused:!0,wrapLines:!0,onChange:e=>{i({...r,locator:e,lastEdited:`locator`}),n(!1)}})}),(0,M.jsxs)(`div`,{className:`hbox`,style:{lineHeight:`28px`,color:`var(--vscode-editorCodeLens-foreground)`},children:[(0,M.jsx)(`div`,{style:{flex:`auto`},children:`Aria snapshot`}),(0,M.jsx)(kn,{icon:`files`,title:`Copy snapshot`,onClick:()=>{d(r.ariaSnapshot||``)}})]}),(0,M.jsx)(`div`,{style:{height:150},children:(0,M.jsx)(mr,{text:r.ariaSnapshot||``,highlighter:`yaml`,wrapLines:!1,highlight:a,onChange:c})})]})},Sg=({className:e,style:t,open:n,isModal:r,minWidth:i,verticalOffset:a,requestClose:s,anchor:c,dataTestId:u,children:d})=>{let f=o.useRef(null),[p,m]=o.useState(0),[h]=l(f),[g,_]=l(c),v=c?Cg(h,g,a):void 0;return o.useEffect(()=>{let e=e=>{!f.current||!(e.target instanceof Node)||f.current.contains(e.target)||s?.()},t=e=>{e.key===`Escape`&&s?.()};return n?(document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}):()=>{}},[n,s]),o.useLayoutEffect(()=>_(),[n,_]),o.useEffect(()=>{let e=()=>m(e=>e+1);return window.addEventListener(`resize`,e),()=>{window.removeEventListener(`resize`,e)}},[]),o.useLayoutEffect(()=>{f.current&&(n?r?f.current.showModal():f.current.show():f.current.close())},[n,r]),(0,M.jsx)(`dialog`,{ref:f,style:{position:`fixed`,margin:v?0:void 0,zIndex:110,top:v?.top,left:v?.left,minWidth:i||0,...t},className:e,"data-testid":u,children:d})};function Cg(e,t,n=4,r=4){let i=Math.max(r,t.left);i+e.width>window.innerWidth-r&&(i=window.innerWidth-e.width-r);let a=Math.max(0,t.bottom)+n;return a+e.height>window.innerHeight-n&&(a=Math.max(0,t.top)>e.height+n?Math.max(0,t.top)-e.height-n:window.innerHeight-n-e.height),{left:i,top:a}}var wg=({title:e,icon:t,buttonChildren:n,anchorRef:r,dialogDataTestId:i,children:a})=>{let s=o.useRef(null),c=r??s,[l,u]=o.useState(!1);return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(kn,{ref:s,icon:t,title:e,onClick:()=>u(e=>!e),children:n}),(0,M.jsx)(Sg,{style:{backgroundColor:`var(--vscode-sideBar-background)`,padding:`4px 8px`},open:l,verticalOffset:8,requestClose:()=>u(!1),anchor:c,dataTestId:i,children:a})]})},Tg=({settings:e})=>(0,M.jsx)(`div`,{className:`vbox settings-view`,children:e.map(e=>{let t=`setting-${e.name.replaceAll(/\s+/g,`-`)}`;return(0,M.jsx)(`div`,{className:y(`setting`,`setting-${e.type}`,e.disabled&&`setting-disabled`),title:e.title,children:Eg(e,t)},e.name)})}),Eg=(e,t)=>{switch(e.type){case`check`:return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`input`,{type:`checkbox`,id:t,checked:e.value,disabled:e.disabled,onChange:()=>e.set(!e.value)}),(0,M.jsxs)(`label`,{htmlFor:t,children:[e.name,!!e.count&&(0,M.jsx)(`span`,{className:`setting-counter`,children:e.count})]})]});case`select`:return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(`label`,{htmlFor:t,children:[e.name,`:`,!!e.count&&(0,M.jsx)(`span`,{className:`setting-counter`,children:e.count})]}),(0,M.jsx)(`select`,{id:t,value:e.value,disabled:e.disabled,onChange:t=>e.set(t.target.value),children:e.options.map(e=>(0,M.jsx)(`option`,{value:e.value,children:e.label},e.value))})]});default:return null}},Dg=e=>{let t=Ag(e.model?.traceUri);return(0,M.jsx)(Dn.Provider,{value:e.model,children:(0,M.jsx)(Og,{partition:t,...e})})},Og=e=>{let{partition:t,model:n,showSourcesFirst:r,rootDir:i,fallbackLocation:a,isLive:s,hideTimeline:c,status:l,inert:u,onOpenExternally:d,revealSource:p,testRunMetadata:m}=e,h=n?.annotations??e.defaultAnnotations,[v,b]=f(`navigatorTab`,`actions`),[x,S]=f(`propertiesTab`,r?`source`:`call`),[C,w]=f(`propertiesSidebarLocation`,`bottom`),[ee]=f(`actionsFilter`,[]),[T,te]=g(`selectedCallId`),[ne,re]=g(`selectedTime`),[ie,ae]=g(`highlightedCallId`),[oe,se]=g(`revealedErrorKey`),[E,D]=g(`revealedAttachmentCallId`),[ce,le]=g(`treeState`,{expandedItems:new Map}),[ue,de]=o.useState(``);_(t);let[fe,pe]=o.useState({lastEdited:`none`}),[O,k]=o.useState(!1),[me,he]=o.useState(void 0),ge=o.useCallback(e=>{te(e?.callId),se(void 0)},[te,se]),_e=o.useMemo(()=>n?.filteredActions(ee),[n,ee]),ve=(n?.actions.length??0)-(_e?.length??0),ye=o.useMemo(()=>_e?.find(e=>e.callId===ie),[_e,ie]),be=o.useCallback(e=>{ae(e?.callId)},[ae]),xe=o.useMemo(()=>n?.sources||new Map,[n]);o.useEffect(()=>{re(void 0),se(void 0)},[n,re,se]);let Se=o.useMemo(()=>{if(T){let e=_e?.find(e=>e.callId===T);if(e)return e}let e=n?.failedAction();if(e)return e;if(_e?.length){let e=_e.length-1;for(let t=0;t<_e.length;++t)if(_e[t].title===`After Hooks`&&t){e=t-1;break}return _e[e]}},[n,_e,T]),Ce=o.useMemo(()=>ye||Se,[Se,ye]),we=o.useCallback(e=>{ge(e),be(void 0)},[ge,be]),{boundaries:Te}=o.useMemo(()=>{let e={minimum:n?.startTime||0,maximum:n?.endTime||3e4};return e.minimum>e.maximum&&(e.minimum=0,e.maximum=3e4),e.maximum+=(e.maximum-e.minimum)/20,{boundaries:e}},[n]),Ee=yh(_e||[],Se,we,ne,Te),{showSelectedAction:De}=Ee,A=o.useCallback(e=>{S(e),e!==`inspector`&&k(!1)},[S]),Oe=o.useCallback(e=>{!O&&e&&A(`inspector`),e&&De(),k(e)},[k,A,O,De]),ke=o.useCallback(e=>{pe(e),A(`inspector`)},[A]),Ae=o.useCallback(e=>{A(`attachments`),D({callId:e})},[A,D]);o.useEffect(()=>{p&&A(`source`)},[p,A]);let je=Lr(n,ne),Me=ji(n,ne),Ne=Mr(n),Pe=o.useMemo(()=>oe===void 0?Ce?.stack:Ne.errors.get(oe)?.stack,[Ce,oe,Ne]),Fe=n?.sdkLanguage||`javascript`,Ie={id:`inspector`,title:`Locator`,render:()=>(0,M.jsx)(xg,{sdkLanguage:Fe,isInspecting:O,setIsInspecting:Oe,highlightedElement:fe,setHighlightedElement:pe})},Le={id:`call`,title:`Call`,render:()=>(0,M.jsx)(Vn,{action:Ce,startTimeOffset:n?.startTime??0,sdkLanguage:Fe})},Re={id:`log`,title:`Log`,render:()=>(0,M.jsx)(Yn,{action:Ce,isLive:s})},ze={id:`errors`,title:`Errors`,errorCount:Ne.errors.size,render:()=>(0,M.jsx)(Pr,{errorsModel:Ne,testRunMetadata:m,sdkLanguage:Fe,revealInSource:e=>{e.action?Ee.selectAction(e.action):se(e.message),A(`source`)},wallTime:n?.wallTime??0})},Be;!Se&&a&&(Be=a.source?.errors.length);let Ve={id:`source`,title:`Source`,errorCount:Be,render:()=>(0,M.jsx)(rg,{stack:Pe,sources:xe,rootDir:i,stackFrameLocation:C===`bottom`?`right`:`bottom`,fallbackLocation:a,onOpenExternally:d})},He=[Ie,Le,Re,ze,{id:`console`,title:`Console`,count:je.entries.length,render:()=>(0,M.jsx)(Rr,{consoleModel:je,boundaries:Te,selectedTime:ne,onEntryHovered:he,onAccepted:e=>re({minimum:e.timestamp,maximum:e.timestamp})})},{id:`network`,title:`Network`,count:Me.resources.length,render:()=>(0,M.jsx)(Mi,{boundaries:Te,networkModel:Me,onResourceHovered:he,sdkLanguage:n?.sdkLanguage??`javascript`})},Ve,{id:`attachments`,title:`Attachments`,count:n?.visibleAttachments.length,render:()=>(0,M.jsx)(Dr,{revealedAttachmentCallId:E})}];if(h!==void 0){let e={id:`annotations`,title:`Annotations`,count:h.length,render:()=>(0,M.jsx)(bg,{annotations:h})};He.push(e)}if(r){let e=He.indexOf(Ve);He.splice(e,1),He.splice(1,0,Ve)}let Ue=0;!s&&n&&n.endTime>=0?Ue=n.endTime-n.startTime:n&&n.wallTime&&(Ue=Date.now()-n.wallTime);let We={id:`actions`,title:`Actions`,component:(0,M.jsxs)(`div`,{className:`vbox`,children:[l&&(0,M.jsxs)(`div`,{className:`workbench-run-status`,"data-testid":`workbench-run-status`,children:[(0,M.jsx)(`span`,{className:y(`codicon`,jn(l))}),(0,M.jsx)(`div`,{children:Mn(l)}),(0,M.jsx)(`div`,{className:`spacer`}),(0,M.jsx)(`div`,{className:`workbench-run-duration`,children:Ue?bn(Ue):``})]}),(0,M.jsx)(`div`,{className:`workbench-action-filter`,children:(0,M.jsx)(`input`,{type:`search`,placeholder:`Filter actions`,"aria-label":`Filter actions`,spellCheck:!1,value:ue,onChange:e=>de(e.target.value)})}),(0,M.jsx)(Pn,{sdkLanguage:Fe,actions:_e||[],selectedAction:n?Se:void 0,selectedTime:ne,setSelectedTime:re,treeState:ce,setTreeState:le,onSelected:Ee.selectAction,onHighlighted:be,revealActionAttachment:Ae,revealConsole:()=>A(`console`),isLive:s,actionFilterText:ue})]})},Ge={id:`metadata`,title:`Metadata`,component:(0,M.jsx)(yg,{model:n})},Ke=v===`actions`&&(0,M.jsx)(kg,{counters:n?.actionCounters,hiddenActionsCount:ve});return(0,M.jsxs)(`div`,{className:`vbox workbench`,...u?{inert:!0}:{},children:[!c&&(0,M.jsx)(hg,{model:n,boundaries:Te,onSelected:Ee.selectAction,selectedTime:ne,setSelectedTime:re,highlightedTime:me,scrubber:(0,M.jsx)(xh,{playback:Ee})}),(0,M.jsx)(yn,{sidebarSize:250,orientation:C===`bottom`?`vertical`:`horizontal`,settingName:`propertiesSidebar`,main:(0,M.jsx)(yn,{sidebarSize:250,orientation:`horizontal`,sidebarIsFirst:!0,settingName:`actionListSidebar`,main:(0,M.jsx)(Bh,{action:Ce,model:n,sdkLanguage:Fe,testIdAttributeName:n?.testIdAttributeName||`data-testid`,isInspecting:O,setIsInspecting:Oe,highlightedElement:fe,setHighlightedElement:ke,screencastTime:ye?void 0:Ee.screencastTime,playback:Ee}),sidebar:(0,M.jsx)(Wr,{tabs:[We,Ge],rightToolbar:[Ke],selectedTab:v,setSelectedTab:b})}),sidebar:(0,M.jsx)(Wr,{tabs:He,selectedTab:x,setSelectedTab:A,rightToolbar:[C===`bottom`?(0,M.jsx)(kn,{title:`Dock to right`,icon:`layout-sidebar-right-off`,onClick:()=>{w(`right`)}}):(0,M.jsx)(kn,{title:`Dock to bottom`,icon:`layout-panel-off`,onClick:()=>{w(`bottom`)}})],mode:C===`bottom`?`default`:`select`})})]})},kg=({counters:e,hiddenActionsCount:t})=>{let[n,r]=f(`actionsFilter`,[]),i=o.useRef(null);return(0,M.jsx)(wg,{title:`Filter actions`,dialogDataTestId:`actions-filter-dialog`,buttonChildren:(0,M.jsxs)(M.Fragment,{children:[t>0&&(0,M.jsxs)(`span`,{className:`workbench-actions-hidden-count`,title:t+` actions hidden by filters`,children:[t,` hidden`]}),(0,M.jsx)(`span`,{ref:i,className:`codicon codicon-filter`})]}),anchorRef:i,children:(0,M.jsx)(Tg,{settings:[{type:`check`,value:n.includes(`getter`),set:e=>r(e?[...n,`getter`]:n.filter(e=>e!==`getter`)),name:`Getters`,count:e?.get(`getter`)},{type:`check`,value:n.includes(`route`),set:e=>r(e?[...n,`route`]:n.filter(e=>e!==`route`)),name:`Network routes`,count:e?.get(`route`)},{type:`check`,value:n.includes(`configuration`),set:e=>r(e?[...n,`configuration`]:n.filter(e=>e!==`configuration`)),name:`Configuration`,count:e?.get(`configuration`)}]})})};function Ag(e){if(!e)return`default`;let t=new URL(e,`http://localhost`);return t.searchParams.delete(`timestamp`),t.toString()}var jg;(function(e){function t(e){for(let t of e.splice(0))t.dispose()}e.disposeAll=t})(jg||={});var Mg=class{constructor(){this._listeners=new Set,this.event=(e,t)=>{this._listeners.add(e);let n=!1,r=this,i={dispose(){n||(n=!0,r._listeners.delete(e))}};return t&&t.push(i),i}}fire(e){let t=!this._deliveryQueue;this._deliveryQueue||=[];for(let t of this._listeners)this._deliveryQueue.push({listener:t,event:e});if(t){for(let e=0;e<this._deliveryQueue.length;e++){let{listener:t,event:n}=this._deliveryQueue[e];t.call(null,n)}this._deliveryQueue=void 0}}dispose(){this._listeners.clear(),this._deliveryQueue&&=[]}},Ng=class extends Error{},Pg=class{constructor(e){this._ws=new WebSocket(e)}onmessage(e){this._ws.addEventListener(`message`,t=>e(t.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()}},Fg=class{constructor(e){this._onCloseEmitter=new Mg,this._onReportEmitter=new Mg,this._onStdioEmitter=new Mg,this._onTestFilesChangedEmitter=new Mg,this._onLoadTraceRequestedEmitter=new Mg,this._onTestPausedEmitter=new Mg,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(e=>{let{id:t,result:n,error:r,method:i,params:a}=JSON.parse(e);if(t){let e=this._callbacks.get(t);if(!e)return;this._callbacks.delete(t),r?e.reject(Error(r)):e.resolve(n)}else this._dispatchEvent(i,a)});let t=setInterval(()=>this._sendMessage(`ping`).catch(()=>{}),3e4);this._connectedPromise=new Promise((e,t)=>{this._transport.onopen(e),this._transport.onerror(t)}),this._transport.onclose(()=>{this._isClosed=!0,this._onCloseEmitter.fire(),clearInterval(t);for(let e of this._callbacks.values())e.reject(e.error);this._callbacks.clear()})}isClosed(){return this._isClosed}async _sendMessage(e,t){let n=globalThis.__logForTest;n?.({method:e,params:t}),await this._connectedPromise;let r=++this._lastId,i={id:r,method:e,params:t},a=new Ng(`${e}: test server connection closed`);return this._transport.send(JSON.stringify(i)),new Promise((e,t)=>{this._callbacks.set(r,{resolve:e,reject:t,error:a})})}_sendMessageNoReply(e,t){this._sendMessage(e,t).catch(()=>{})}_dispatchEvent(e,t){e===`report`?this._onReportEmitter.fire(t):e===`stdio`?this._onStdioEmitter.fire(t):e===`testFilesChanged`?this._onTestFilesChangedEmitter.fire(t):e===`loadTraceRequested`?this._onLoadTraceRequestedEmitter.fire(t):e===`testPaused`&&this._onTestPausedEmitter.fire(t)}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 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{}}},Ig=({location:e,model:t})=>{let[n,r]=f(`shouldPopulateCanvasFromScreenshot`,!1),[i,a]=f(`displayAriaMode`,!1),[o,s]=E(),[c,l]=f(`mergeFiles`,!1),u=Sh(t);return(0,M.jsx)(Tg,{settings:[{type:`select`,value:o,set:s,name:`Theme`,options:ee},...e===`ui-mode`?[{type:`check`,value:c,set:l,name:`Merge files`}]:[],{type:`check`,value:n,set:r,name:`Display canvas content`,title:`Attempt to display the captured canvas appearance in the snapshot preview. May not be accurate.`},{type:`check`,value:Ch(t,i),set:a,name:`Display Aria`,disabled:!u,title:u?`Display the action screenshot and aria snapshot instead of the DOM snapshot.`:`The trace does not have both DOM and aria snapshots, so there is nothing to switch between.`}]})};export{y as C,a as D,f as E,ae as S,c as T,sn as _,Tg as a,te as b,Ur as c,jn as d,kn as f,_n as g,yn as h,Dg as i,Cr as l,bn as m,Fg as n,wg as o,Cn as p,Pg as r,Sg as s,Ig as t,pr as u,fe as v,v as w,se as x,ie as y};