playwright-core 1.56.0-alpha-2025-09-18 → 1.56.0-alpha-1758292576000

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 (33) hide show
  1. package/browsers.json +1 -1
  2. package/lib/client/browserContext.js +1 -1
  3. package/lib/client/consoleMessage.js +2 -3
  4. package/lib/client/electron.js +1 -1
  5. package/lib/client/page.js +9 -0
  6. package/lib/client/worker.js +1 -1
  7. package/lib/generated/injectedScriptSource.js +1 -1
  8. package/lib/generated/pollingRecorderSource.js +1 -1
  9. package/lib/protocol/validator.js +17 -0
  10. package/lib/server/bidi/bidiExecutionContext.js +4 -4
  11. package/lib/server/bidi/bidiFirefox.js +2 -0
  12. package/lib/server/bidi/bidiPage.js +1 -1
  13. package/lib/server/chromium/crPage.js +2 -2
  14. package/lib/server/dispatchers/browserContextDispatcher.js +1 -12
  15. package/lib/server/dispatchers/pageDispatcher.js +19 -0
  16. package/lib/server/firefox/ffPage.js +1 -2
  17. package/lib/server/page.js +26 -13
  18. package/lib/server/webkit/wkPage.js +1 -2
  19. package/lib/utils/isomorphic/protocolMetainfo.js +2 -0
  20. package/lib/vite/htmlReport/index.html +36 -27
  21. package/lib/vite/recorder/assets/{codeMirrorModule-Cd2xO0gi.js → codeMirrorModule-Ba8ryMC6.js} +1 -1
  22. package/lib/vite/recorder/assets/index-DkR8nwDU.js +193 -0
  23. package/lib/vite/recorder/index.html +1 -1
  24. package/lib/vite/traceViewer/assets/{codeMirrorModule-DhpE2H4B.js → codeMirrorModule-CH3lnpjO.js} +1 -1
  25. package/lib/vite/traceViewer/assets/defaultSettingsView-DgM9VrMC.js +265 -0
  26. package/lib/vite/traceViewer/{index.Crh0qFFe.js → index.Cttd86pV.js} +1 -1
  27. package/lib/vite/traceViewer/index.html +2 -2
  28. package/lib/vite/traceViewer/{uiMode.FHTK_3hI.js → uiMode.D_Oj-H2U.js} +1 -1
  29. package/lib/vite/traceViewer/uiMode.html +2 -2
  30. package/package.json +1 -1
  31. package/types/types.d.ts +12 -0
  32. package/lib/vite/recorder/assets/index-7GrUNblV.js +0 -184
  33. package/lib/vite/traceViewer/assets/defaultSettingsView-DS7Ulphs.js +0 -256
@@ -1,184 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/codeMirrorModule-Cd2xO0gi.js","assets/codeMirrorModule-C3UTv-Ge.css"])))=>i.map(i=>d[i]);
2
- (function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&l(f)}).observe(document,{childList:!0,subtree:!0});function r(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function l(o){if(o.ep)return;o.ep=!0;const u=r(o);fetch(o.href,u)}})();function Xm(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var xa={exports:{}},xs={},Na={exports:{}},ue={};/**
3
- * @license React
4
- * react.production.min.js
5
- *
6
- * Copyright (c) Facebook, Inc. and its affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var id;function Zm(){if(id)return ue;id=1;var i=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),S=Symbol.iterator;function T(C){return C===null||typeof C!="object"?null:(C=S&&C[S]||C["@@iterator"],typeof C=="function"?C:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,v={};function w(C,D,ae){this.props=C,this.context=D,this.refs=v,this.updater=ae||E}w.prototype.isReactComponent={},w.prototype.setState=function(C,D){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,D,"setState")},w.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function A(){}A.prototype=w.prototype;function P(C,D,ae){this.props=C,this.context=D,this.refs=v,this.updater=ae||E}var M=P.prototype=new A;M.constructor=P,L(M,w.prototype),M.isPureReactComponent=!0;var V=Array.isArray,q=Object.prototype.hasOwnProperty,z={current:null},ee={key:!0,ref:!0,__self:!0,__source:!0};function U(C,D,ae){var ce,he={},pe=null,Se=null;if(D!=null)for(ce in D.ref!==void 0&&(Se=D.ref),D.key!==void 0&&(pe=""+D.key),D)q.call(D,ce)&&!ee.hasOwnProperty(ce)&&(he[ce]=D[ce]);var ge=arguments.length-2;if(ge===1)he.children=ae;else if(1<ge){for(var Te=Array(ge),ht=0;ht<ge;ht++)Te[ht]=arguments[ht+2];he.children=Te}if(C&&C.defaultProps)for(ce in ge=C.defaultProps,ge)he[ce]===void 0&&(he[ce]=ge[ce]);return{$$typeof:i,type:C,key:pe,ref:Se,props:he,_owner:z.current}}function O(C,D){return{$$typeof:i,type:C.type,key:D,ref:C.ref,props:C.props,_owner:C._owner}}function se(C){return typeof C=="object"&&C!==null&&C.$$typeof===i}function oe(C){var D={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(ae){return D[ae]})}var j=/\/+/g;function Z(C,D){return typeof C=="object"&&C!==null&&C.key!=null?oe(""+C.key):D.toString(36)}function we(C,D,ae,ce,he){var pe=typeof C;(pe==="undefined"||pe==="boolean")&&(C=null);var Se=!1;if(C===null)Se=!0;else switch(pe){case"string":case"number":Se=!0;break;case"object":switch(C.$$typeof){case i:case n:Se=!0}}if(Se)return Se=C,he=he(Se),C=ce===""?"."+Z(Se,0):ce,V(he)?(ae="",C!=null&&(ae=C.replace(j,"$&/")+"/"),we(he,D,ae,"",function(ht){return ht})):he!=null&&(se(he)&&(he=O(he,ae+(!he.key||Se&&Se.key===he.key?"":(""+he.key).replace(j,"$&/")+"/")+C)),D.push(he)),1;if(Se=0,ce=ce===""?".":ce+":",V(C))for(var ge=0;ge<C.length;ge++){pe=C[ge];var Te=ce+Z(pe,ge);Se+=we(pe,D,ae,Te,he)}else if(Te=T(C),typeof Te=="function")for(C=Te.call(C),ge=0;!(pe=C.next()).done;)pe=pe.value,Te=ce+Z(pe,ge++),Se+=we(pe,D,ae,Te,he);else if(pe==="object")throw D=String(C),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.");return Se}function rt(C,D,ae){if(C==null)return C;var ce=[],he=0;return we(C,ce,"","",function(pe){return D.call(ae,pe,he++)}),ce}function He(C){if(C._status===-1){var D=C._result;D=D(),D.then(function(ae){(C._status===0||C._status===-1)&&(C._status=1,C._result=ae)},function(ae){(C._status===0||C._status===-1)&&(C._status=2,C._result=ae)}),C._status===-1&&(C._status=0,C._result=D)}if(C._status===1)return C._result.default;throw C._result}var Ne={current:null},W={transition:null},re={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:W,ReactCurrentOwner:z};function J(){throw Error("act(...) is not supported in production builds of React.")}return ue.Children={map:rt,forEach:function(C,D,ae){rt(C,function(){D.apply(this,arguments)},ae)},count:function(C){var D=0;return rt(C,function(){D++}),D},toArray:function(C){return rt(C,function(D){return D})||[]},only:function(C){if(!se(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},ue.Component=w,ue.Fragment=r,ue.Profiler=o,ue.PureComponent=P,ue.StrictMode=l,ue.Suspense=p,ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,ue.act=J,ue.cloneElement=function(C,D,ae){if(C==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+C+".");var ce=L({},C.props),he=C.key,pe=C.ref,Se=C._owner;if(D!=null){if(D.ref!==void 0&&(pe=D.ref,Se=z.current),D.key!==void 0&&(he=""+D.key),C.type&&C.type.defaultProps)var ge=C.type.defaultProps;for(Te in D)q.call(D,Te)&&!ee.hasOwnProperty(Te)&&(ce[Te]=D[Te]===void 0&&ge!==void 0?ge[Te]:D[Te])}var Te=arguments.length-2;if(Te===1)ce.children=ae;else if(1<Te){ge=Array(Te);for(var ht=0;ht<Te;ht++)ge[ht]=arguments[ht+2];ce.children=ge}return{$$typeof:i,type:C.type,key:he,ref:pe,props:ce,_owner:Se}},ue.createContext=function(C){return C={$$typeof:f,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},C.Provider={$$typeof:u,_context:C},C.Consumer=C},ue.createElement=U,ue.createFactory=function(C){var D=U.bind(null,C);return D.type=C,D},ue.createRef=function(){return{current:null}},ue.forwardRef=function(C){return{$$typeof:h,render:C}},ue.isValidElement=se,ue.lazy=function(C){return{$$typeof:N,_payload:{_status:-1,_result:C},_init:He}},ue.memo=function(C,D){return{$$typeof:g,type:C,compare:D===void 0?null:D}},ue.startTransition=function(C){var D=W.transition;W.transition={};try{C()}finally{W.transition=D}},ue.unstable_act=J,ue.useCallback=function(C,D){return Ne.current.useCallback(C,D)},ue.useContext=function(C){return Ne.current.useContext(C)},ue.useDebugValue=function(){},ue.useDeferredValue=function(C){return Ne.current.useDeferredValue(C)},ue.useEffect=function(C,D){return Ne.current.useEffect(C,D)},ue.useId=function(){return Ne.current.useId()},ue.useImperativeHandle=function(C,D,ae){return Ne.current.useImperativeHandle(C,D,ae)},ue.useInsertionEffect=function(C,D){return Ne.current.useInsertionEffect(C,D)},ue.useLayoutEffect=function(C,D){return Ne.current.useLayoutEffect(C,D)},ue.useMemo=function(C,D){return Ne.current.useMemo(C,D)},ue.useReducer=function(C,D,ae){return Ne.current.useReducer(C,D,ae)},ue.useRef=function(C){return Ne.current.useRef(C)},ue.useState=function(C){return Ne.current.useState(C)},ue.useSyncExternalStore=function(C,D,ae){return Ne.current.useSyncExternalStore(C,D,ae)},ue.useTransition=function(){return Ne.current.useTransition()},ue.version="18.3.1",ue}var ld;function Ha(){return ld||(ld=1,Na.exports=Zm()),Na.exports}/**
11
- * @license React
12
- * react-jsx-runtime.production.min.js
13
- *
14
- * Copyright (c) Facebook, Inc. and its affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */var od;function eg(){if(od)return xs;od=1;var i=Ha(),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,o=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function f(h,p,g){var N,S={},T=null,E=null;g!==void 0&&(T=""+g),p.key!==void 0&&(T=""+p.key),p.ref!==void 0&&(E=p.ref);for(N in p)l.call(p,N)&&!u.hasOwnProperty(N)&&(S[N]=p[N]);if(h&&h.defaultProps)for(N in p=h.defaultProps,p)S[N]===void 0&&(S[N]=p[N]);return{$$typeof:n,type:h,key:T,ref:E,props:S,_owner:o.current}}return xs.Fragment=r,xs.jsx=f,xs.jsxs=f,xs}var ad;function tg(){return ad||(ad=1,xa.exports=eg()),xa.exports}var K=tg(),fe=Ha();const Un=Xm(fe);function Dd(){const i=Un.useRef(null),[n,r]=Un.useState(new DOMRect(0,0,10,10));return Un.useLayoutEffect(()=>{const l=i.current;if(!l)return;const o=l.getBoundingClientRect();r(new DOMRect(0,0,o.width,o.height));const u=new ResizeObserver(f=>{const h=f[f.length-1];h&&h.contentRect&&r(h.contentRect)});return u.observe(l),()=>u.disconnect()},[i]),[n,i]}function ng(i){if(i<0||!isFinite(i))return"-";if(i===0)return"0";if(i<1e3)return i.toFixed(0)+"ms";const n=i/1e3;if(n<60)return n.toFixed(1)+"s";const r=n/60;if(r<60)return r.toFixed(1)+"m";const l=r/60;return l<24?l.toFixed(1)+"h":(l/24).toFixed(1)+"d"}function ud(i){const n=document.createElement("textarea");n.style.position="absolute",n.style.zIndex="-1000",n.value=i,document.body.appendChild(n),n.select(),document.execCommand("copy"),n.remove()}function ll(i,n){i&&(n=Dn.getObject(i,n));const[r,l]=Un.useState(n),o=Un.useCallback(u=>{i?Dn.setObject(i,u):l(u)},[i,l]);return Un.useEffect(()=>{if(i){const u=()=>l(Dn.getObject(i,n));return Dn.onChangeEmitter.addEventListener(i,u),()=>Dn.onChangeEmitter.removeEventListener(i,u)}},[n,i]),[r,o]}class rg{constructor(){this.onChangeEmitter=new EventTarget}getString(n,r){return localStorage[n]||r}setString(n,r){var l;localStorage[n]=r,this.onChangeEmitter.dispatchEvent(new Event(n)),(l=window.saveSettings)==null||l.call(window)}getObject(n,r){if(!localStorage[n])return r;try{return JSON.parse(localStorage[n])}catch{return r}}setObject(n,r){var l;localStorage[n]=JSON.stringify(r),this.onChangeEmitter.dispatchEvent(new Event(n)),(l=window.saveSettings)==null||l.call(window)}}const Dn=new rg;function Vn(...i){return i.filter(Boolean).join(" ")}const cd="\\u0000-\\u0020\\u007f-\\u009f",sg=new RegExp("(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|www\\.)[^\\s"+cd+'"]{2,}[^\\s'+cd+`"')}\\],:;.!?]`,"ug");function ig(){if(document.playwrightThemeInitialized)return;document.playwrightThemeInitialized=!0,document.defaultView.addEventListener("focus",l=>{l.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove("inactive")},!1),document.defaultView.addEventListener("blur",l=>{document.body.classList.add("inactive")},!1);const n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark-mode":"light-mode";Dn.getString("theme",n)==="dark-mode"&&document.body.classList.add("dark-mode")}const lg=new Set;function og(){const i=ba(),n=i==="dark-mode"?"light-mode":"dark-mode";document.body.classList.remove(i),document.body.classList.add(n),Dn.setString("theme",n);for(const r of lg)r(n)}function ba(){return document.body.classList.contains("dark-mode")?"dark-mode":"light-mode"}function ag(){const[i,n]=Un.useState(ba()==="dark-mode");return[i,r=>{ba()==="dark-mode"!==r&&og(),n(r)}]}var Wi={},Ta={exports:{}},ut={},Ca={exports:{}},_a={};/**
19
- * @license React
20
- * scheduler.production.min.js
21
- *
22
- * Copyright (c) Facebook, Inc. and its affiliates.
23
- *
24
- * This source code is licensed under the MIT license found in the
25
- * LICENSE file in the root directory of this source tree.
26
- */var fd;function ug(){return fd||(fd=1,(function(i){function n(W,re){var J=W.length;W.push(re);e:for(;0<J;){var C=J-1>>>1,D=W[C];if(0<o(D,re))W[C]=re,W[J]=D,J=C;else break e}}function r(W){return W.length===0?null:W[0]}function l(W){if(W.length===0)return null;var re=W[0],J=W.pop();if(J!==re){W[0]=J;e:for(var C=0,D=W.length,ae=D>>>1;C<ae;){var ce=2*(C+1)-1,he=W[ce],pe=ce+1,Se=W[pe];if(0>o(he,J))pe<D&&0>o(Se,he)?(W[C]=Se,W[pe]=J,C=pe):(W[C]=he,W[ce]=J,C=ce);else if(pe<D&&0>o(Se,J))W[C]=Se,W[pe]=J,C=pe;else break e}}return re}function o(W,re){var J=W.sortIndex-re.sortIndex;return J!==0?J:W.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;i.unstable_now=function(){return u.now()}}else{var f=Date,h=f.now();i.unstable_now=function(){return f.now()-h}}var p=[],g=[],N=1,S=null,T=3,E=!1,L=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function M(W){for(var re=r(g);re!==null;){if(re.callback===null)l(g);else if(re.startTime<=W)l(g),re.sortIndex=re.expirationTime,n(p,re);else break;re=r(g)}}function V(W){if(v=!1,M(W),!L)if(r(p)!==null)L=!0,He(q);else{var re=r(g);re!==null&&Ne(V,re.startTime-W)}}function q(W,re){L=!1,v&&(v=!1,A(U),U=-1),E=!0;var J=T;try{for(M(re),S=r(p);S!==null&&(!(S.expirationTime>re)||W&&!oe());){var C=S.callback;if(typeof C=="function"){S.callback=null,T=S.priorityLevel;var D=C(S.expirationTime<=re);re=i.unstable_now(),typeof D=="function"?S.callback=D:S===r(p)&&l(p),M(re)}else l(p);S=r(p)}if(S!==null)var ae=!0;else{var ce=r(g);ce!==null&&Ne(V,ce.startTime-re),ae=!1}return ae}finally{S=null,T=J,E=!1}}var z=!1,ee=null,U=-1,O=5,se=-1;function oe(){return!(i.unstable_now()-se<O)}function j(){if(ee!==null){var W=i.unstable_now();se=W;var re=!0;try{re=ee(!0,W)}finally{re?Z():(z=!1,ee=null)}}else z=!1}var Z;if(typeof P=="function")Z=function(){P(j)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,rt=we.port2;we.port1.onmessage=j,Z=function(){rt.postMessage(null)}}else Z=function(){w(j,0)};function He(W){ee=W,z||(z=!0,Z())}function Ne(W,re){U=w(function(){W(i.unstable_now())},re)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(W){W.callback=null},i.unstable_continueExecution=function(){L||E||(L=!0,He(q))},i.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<W?Math.floor(1e3/W):5},i.unstable_getCurrentPriorityLevel=function(){return T},i.unstable_getFirstCallbackNode=function(){return r(p)},i.unstable_next=function(W){switch(T){case 1:case 2:case 3:var re=3;break;default:re=T}var J=T;T=re;try{return W()}finally{T=J}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function(W,re){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var J=T;T=W;try{return re()}finally{T=J}},i.unstable_scheduleCallback=function(W,re,J){var C=i.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?C+J:C):J=C,W){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=J+D,W={id:N++,callback:re,priorityLevel:W,startTime:J,expirationTime:D,sortIndex:-1},J>C?(W.sortIndex=J,n(g,W),r(p)===null&&W===r(g)&&(v?(A(U),U=-1):v=!0,Ne(V,J-C))):(W.sortIndex=D,n(p,W),L||E||(L=!0,He(q))),W},i.unstable_shouldYield=oe,i.unstable_wrapCallback=function(W){var re=T;return function(){var J=T;T=re;try{return W.apply(this,arguments)}finally{T=J}}}})(_a)),_a}var dd;function cg(){return dd||(dd=1,Ca.exports=ug()),Ca.exports}/**
27
- * @license React
28
- * react-dom.production.min.js
29
- *
30
- * Copyright (c) Facebook, Inc. and its affiliates.
31
- *
32
- * This source code is licensed under the MIT license found in the
33
- * LICENSE file in the root directory of this source tree.
34
- */var hd;function fg(){if(hd)return ut;hd=1;var i=Ha(),n=cg();function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,s=1;s<arguments.length;s++)t+="&args[]="+encodeURIComponent(arguments[s]);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."}var l=new Set,o={};function u(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(o[e]=t,e=0;e<t.length;e++)l.add(t[e])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,g=/^[: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]*$/,N={},S={};function T(e){return p.call(S,e)?!0:p.call(N,e)?!1:g.test(e)?S[e]=!0:(N[e]=!0,!1)}function E(e,t,s,a){if(s!==null&&s.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:s!==null?!s.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function L(e,t,s,a){if(t===null||typeof t>"u"||E(e,t,s,a))return!0;if(a)return!1;if(s!==null)switch(s.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function v(e,t,s,a,c,d,m){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=c,this.mustUseProperty=s,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=m}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){w[e]=new v(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];w[t]=new v(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){w[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){w[e]=new v(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){w[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){w[e]=new v(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){w[e]=new v(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){w[e]=new v(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){w[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function P(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(A,P);w[t]=new v(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(A,P);w[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(A,P);w[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){w[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),w.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){w[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});function M(e,t,s,a){var c=w.hasOwnProperty(t)?w[t]:null;(c!==null?c.type!==0:a||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(L(t,s,c,a)&&(s=null),a||c===null?T(t)&&(s===null?e.removeAttribute(t):e.setAttribute(t,""+s)):c.mustUseProperty?e[c.propertyName]=s===null?c.type===3?!1:"":s:(t=c.attributeName,a=c.attributeNamespace,s===null?e.removeAttribute(t):(c=c.type,s=c===3||c===4&&s===!0?"":""+s,a?e.setAttributeNS(a,t,s):e.setAttribute(t,s))))}var V=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,q=Symbol.for("react.element"),z=Symbol.for("react.portal"),ee=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),se=Symbol.for("react.provider"),oe=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),we=Symbol.for("react.suspense_list"),rt=Symbol.for("react.memo"),He=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),W=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var J=Object.assign,C;function D(e){if(C===void 0)try{throw Error()}catch(s){var t=s.stack.trim().match(/\n( *(at )?)/);C=t&&t[1]||""}return`
35
- `+C+e}var ae=!1;function ce(e,t){if(!e||ae)return"";ae=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(I){var a=I}Reflect.construct(e,[],t)}else{try{t.call()}catch(I){a=I}e.call(t.prototype)}else{try{throw Error()}catch(I){a=I}e()}}catch(I){if(I&&a&&typeof I.stack=="string"){for(var c=I.stack.split(`
36
- `),d=a.stack.split(`
37
- `),m=c.length-1,y=d.length-1;1<=m&&0<=y&&c[m]!==d[y];)y--;for(;1<=m&&0<=y;m--,y--)if(c[m]!==d[y]){if(m!==1||y!==1)do if(m--,y--,0>y||c[m]!==d[y]){var k=`
38
- `+c[m].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=m&&0<=y);break}}}finally{ae=!1,Error.prepareStackTrace=s}return(e=e?e.displayName||e.name:"")?D(e):""}function he(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=ce(e.type,!1),e;case 11:return e=ce(e.type.render,!1),e;case 1:return e=ce(e.type,!0),e;default:return""}}function pe(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ee:return"Fragment";case z:return"Portal";case O:return"Profiler";case U:return"StrictMode";case Z:return"Suspense";case we:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case oe:return(e.displayName||"Context")+".Consumer";case se:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rt:return t=e.displayName||null,t!==null?t:pe(e.type)||"Memo";case He:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}function Se(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(t);case 8:return t===U?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ge(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Te(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ht(e){var t=Te(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var c=s.get,d=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(m){a=""+m,d.call(this,m)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ms(e){e._valueTracker||(e._valueTracker=ht(e))}function cu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),a="";return e&&(a=Te(e)?e.checked?"true":"false":e.value),e=a,e!==s?(t.setValue(e),!0):!1}function Rs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ol(e,t){var s=t.checked;return J({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??e._wrapperState.initialChecked})}function fu(e,t){var s=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;s=ge(t.value!=null?t.value:s),e._wrapperState={initialChecked:a,initialValue:s,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function du(e,t){t=t.checked,t!=null&&M(e,"checked",t,!1)}function $l(e,t){du(e,t);var s=ge(t.value),a=t.type;if(s!=null)a==="number"?(s===0&&e.value===""||e.value!=s)&&(e.value=""+s):e.value!==""+s&&(e.value=""+s);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Il(e,t.type,s):t.hasOwnProperty("defaultValue")&&Il(e,t.type,ge(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hu(e,t,s){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,s||t===e.value||(e.value=t),e.defaultValue=t}s=e.name,s!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,s!==""&&(e.name=s)}function Il(e,t,s){(t!=="number"||Rs(e.ownerDocument)!==e)&&(s==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+s&&(e.defaultValue=""+s))}var br=Array.isArray;function Hn(e,t,s,a){if(e=e.options,t){t={};for(var c=0;c<s.length;c++)t["$"+s[c]]=!0;for(s=0;s<e.length;s++)c=t.hasOwnProperty("$"+e[s].value),e[s].selected!==c&&(e[s].selected=c),c&&a&&(e[s].defaultSelected=!0)}else{for(s=""+ge(s),t=null,c=0;c<e.length;c++){if(e[c].value===s){e[c].selected=!0,a&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Al(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return J({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function pu(e,t){var s=t.value;if(s==null){if(s=t.children,t=t.defaultValue,s!=null){if(t!=null)throw Error(r(92));if(br(s)){if(1<s.length)throw Error(r(93));s=s[0]}t=s}t==null&&(t=""),s=t}e._wrapperState={initialValue:ge(s)}}function mu(e,t){var s=ge(t.value),a=ge(t.defaultValue);s!=null&&(s=""+s,s!==e.value&&(e.value=s),t.defaultValue==null&&e.defaultValue!==s&&(e.defaultValue=s)),a!=null&&(e.defaultValue=""+a)}function gu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function yu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Pl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?yu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ds,vu=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,s,a,c){MSApp.execUnsafeLocalFunction(function(){return e(t,s,a,c)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ds=Ds||document.createElement("div"),Ds.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ds.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Br(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var zr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},np=["Webkit","ms","Moz","O"];Object.keys(zr).forEach(function(e){np.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zr[t]=zr[e]})});function wu(e,t,s){return t==null||typeof t=="boolean"||t===""?"":s||typeof t!="number"||t===0||zr.hasOwnProperty(e)&&zr[e]?(""+t).trim():t+"px"}function Su(e,t){e=e.style;for(var s in t)if(t.hasOwnProperty(s)){var a=s.indexOf("--")===0,c=wu(s,t[s],a);s==="float"&&(s="cssFloat"),a?e.setProperty(s,c):e[s]=c}}var rp=J({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function jl(e,t){if(t){if(rp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!="object")throw Error(r(62))}}function Ml(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Rl=null;function Dl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bl=null,Qn=null,Jn=null;function ku(e){if(e=as(e)){if(typeof bl!="function")throw Error(r(280));var t=e.stateNode;t&&(t=li(t),bl(e.stateNode,e.type,t))}}function Eu(e){Qn?Jn?Jn.push(e):Jn=[e]:Qn=e}function xu(){if(Qn){var e=Qn,t=Jn;if(Jn=Qn=null,ku(e),t)for(e=0;e<t.length;e++)ku(t[e])}}function Nu(e,t){return e(t)}function Tu(){}var Bl=!1;function Cu(e,t,s){if(Bl)return e(t,s);Bl=!0;try{return Nu(e,t,s)}finally{Bl=!1,(Qn!==null||Jn!==null)&&(Tu(),xu())}}function Fr(e,t){var s=e.stateNode;if(s===null)return null;var a=li(s);if(a===null)return null;s=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(r(231,t,typeof s));return s}var zl=!1;if(h)try{var Ur={};Object.defineProperty(Ur,"passive",{get:function(){zl=!0}}),window.addEventListener("test",Ur,Ur),window.removeEventListener("test",Ur,Ur)}catch{zl=!1}function sp(e,t,s,a,c,d,m,y,k){var I=Array.prototype.slice.call(arguments,3);try{t.apply(s,I)}catch(b){this.onError(b)}}var Vr=!1,bs=null,Bs=!1,Fl=null,ip={onError:function(e){Vr=!0,bs=e}};function lp(e,t,s,a,c,d,m,y,k){Vr=!1,bs=null,sp.apply(ip,arguments)}function op(e,t,s,a,c,d,m,y,k){if(lp.apply(this,arguments),Vr){if(Vr){var I=bs;Vr=!1,bs=null}else throw Error(r(198));Bs||(Bs=!0,Fl=I)}}function Nn(e){var t=e,s=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(s=t.return),e=t.return;while(e)}return t.tag===3?s:null}function _u(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 Lu(e){if(Nn(e)!==e)throw Error(r(188))}function ap(e){var t=e.alternate;if(!t){if(t=Nn(e),t===null)throw Error(r(188));return t!==e?null:e}for(var s=e,a=t;;){var c=s.return;if(c===null)break;var d=c.alternate;if(d===null){if(a=c.return,a!==null){s=a;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===s)return Lu(c),e;if(d===a)return Lu(c),t;d=d.sibling}throw Error(r(188))}if(s.return!==a.return)s=c,a=d;else{for(var m=!1,y=c.child;y;){if(y===s){m=!0,s=c,a=d;break}if(y===a){m=!0,a=c,s=d;break}y=y.sibling}if(!m){for(y=d.child;y;){if(y===s){m=!0,s=d,a=c;break}if(y===a){m=!0,a=d,s=c;break}y=y.sibling}if(!m)throw Error(r(189))}}if(s.alternate!==a)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?e:t}function Ou(e){return e=ap(e),e!==null?$u(e):null}function $u(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=$u(e);if(t!==null)return t;e=e.sibling}return null}var Iu=n.unstable_scheduleCallback,Au=n.unstable_cancelCallback,up=n.unstable_shouldYield,cp=n.unstable_requestPaint,Pe=n.unstable_now,fp=n.unstable_getCurrentPriorityLevel,Ul=n.unstable_ImmediatePriority,Pu=n.unstable_UserBlockingPriority,zs=n.unstable_NormalPriority,dp=n.unstable_LowPriority,ju=n.unstable_IdlePriority,Fs=null,Dt=null;function hp(e){if(Dt&&typeof Dt.onCommitFiberRoot=="function")try{Dt.onCommitFiberRoot(Fs,e,void 0,(e.current.flags&128)===128)}catch{}}var Lt=Math.clz32?Math.clz32:gp,pp=Math.log,mp=Math.LN2;function gp(e){return e>>>=0,e===0?32:31-(pp(e)/mp|0)|0}var Us=64,Vs=4194304;function Kr(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ks(e,t){var s=e.pendingLanes;if(s===0)return 0;var a=0,c=e.suspendedLanes,d=e.pingedLanes,m=s&268435455;if(m!==0){var y=m&~c;y!==0?a=Kr(y):(d&=m,d!==0&&(a=Kr(d)))}else m=s&~c,m!==0?a=Kr(m):d!==0&&(a=Kr(d));if(a===0)return 0;if(t!==0&&t!==a&&(t&c)===0&&(c=a&-a,d=t&-t,c>=d||c===16&&(d&4194240)!==0))return t;if((a&4)!==0&&(a|=s&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0<t;)s=31-Lt(t),c=1<<s,a|=e[s],t&=~c;return a}function yp(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vp(e,t){for(var s=e.suspendedLanes,a=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes;0<d;){var m=31-Lt(d),y=1<<m,k=c[m];k===-1?((y&s)===0||(y&a)!==0)&&(c[m]=yp(y,t)):k<=t&&(e.expiredLanes|=y),d&=~y}}function Vl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Mu(){var e=Us;return Us<<=1,(Us&4194240)===0&&(Us=64),e}function Kl(e){for(var t=[],s=0;31>s;s++)t.push(e);return t}function Wr(e,t,s){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Lt(t),e[t]=s}function wp(e,t){var s=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<s;){var c=31-Lt(s),d=1<<c;t[c]=0,a[c]=-1,e[c]=-1,s&=~d}}function Wl(e,t){var s=e.entangledLanes|=t;for(e=e.entanglements;s;){var a=31-Lt(s),c=1<<a;c&t|e[a]&t&&(e[a]|=t),s&=~c}}var ye=0;function Ru(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Du,ql,bu,Bu,zu,Hl=!1,Ws=[],tn=null,nn=null,rn=null,qr=new Map,Hr=new Map,sn=[],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 submit".split(" ");function Fu(e,t){switch(e){case"focusin":case"focusout":tn=null;break;case"dragenter":case"dragleave":nn=null;break;case"mouseover":case"mouseout":rn=null;break;case"pointerover":case"pointerout":qr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hr.delete(t.pointerId)}}function Qr(e,t,s,a,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:s,eventSystemFlags:a,nativeEvent:d,targetContainers:[c]},t!==null&&(t=as(t),t!==null&&ql(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function kp(e,t,s,a,c){switch(t){case"focusin":return tn=Qr(tn,e,t,s,a,c),!0;case"dragenter":return nn=Qr(nn,e,t,s,a,c),!0;case"mouseover":return rn=Qr(rn,e,t,s,a,c),!0;case"pointerover":var d=c.pointerId;return qr.set(d,Qr(qr.get(d)||null,e,t,s,a,c)),!0;case"gotpointercapture":return d=c.pointerId,Hr.set(d,Qr(Hr.get(d)||null,e,t,s,a,c)),!0}return!1}function Uu(e){var t=Tn(e.target);if(t!==null){var s=Nn(t);if(s!==null){if(t=s.tag,t===13){if(t=_u(s),t!==null){e.blockedOn=t,zu(e.priority,function(){bu(s)});return}}else if(t===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var s=Jl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(s===null){s=e.nativeEvent;var a=new s.constructor(s.type,s);Rl=a,s.target.dispatchEvent(a),Rl=null}else return t=as(s),t!==null&&ql(t),e.blockedOn=s,!1;t.shift()}return!0}function Vu(e,t,s){qs(e)&&s.delete(t)}function Ep(){Hl=!1,tn!==null&&qs(tn)&&(tn=null),nn!==null&&qs(nn)&&(nn=null),rn!==null&&qs(rn)&&(rn=null),qr.forEach(Vu),Hr.forEach(Vu)}function Jr(e,t){e.blockedOn===t&&(e.blockedOn=null,Hl||(Hl=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Ep)))}function Yr(e){function t(c){return Jr(c,e)}if(0<Ws.length){Jr(Ws[0],e);for(var s=1;s<Ws.length;s++){var a=Ws[s];a.blockedOn===e&&(a.blockedOn=null)}}for(tn!==null&&Jr(tn,e),nn!==null&&Jr(nn,e),rn!==null&&Jr(rn,e),qr.forEach(t),Hr.forEach(t),s=0;s<sn.length;s++)a=sn[s],a.blockedOn===e&&(a.blockedOn=null);for(;0<sn.length&&(s=sn[0],s.blockedOn===null);)Uu(s),s.blockedOn===null&&sn.shift()}var Yn=V.ReactCurrentBatchConfig,Hs=!0;function xp(e,t,s,a){var c=ye,d=Yn.transition;Yn.transition=null;try{ye=1,Ql(e,t,s,a)}finally{ye=c,Yn.transition=d}}function Np(e,t,s,a){var c=ye,d=Yn.transition;Yn.transition=null;try{ye=4,Ql(e,t,s,a)}finally{ye=c,Yn.transition=d}}function Ql(e,t,s,a){if(Hs){var c=Jl(e,t,s,a);if(c===null)ho(e,t,a,Qs,s),Fu(e,a);else if(kp(c,e,t,s,a))a.stopPropagation();else if(Fu(e,a),t&4&&-1<Sp.indexOf(e)){for(;c!==null;){var d=as(c);if(d!==null&&Du(d),d=Jl(e,t,s,a),d===null&&ho(e,t,a,Qs,s),d===c)break;c=d}c!==null&&a.stopPropagation()}else ho(e,t,a,null,s)}}var Qs=null;function Jl(e,t,s,a){if(Qs=null,e=Dl(a),e=Tn(e),e!==null)if(t=Nn(e),t===null)e=null;else if(s=t.tag,s===13){if(e=_u(t),e!==null)return e;e=null}else if(s===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qs=e,null}function Ku(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(fp()){case Ul:return 1;case Pu:return 4;case zs:case dp:return 16;case ju:return 536870912;default:return 16}default:return 16}}var ln=null,Yl=null,Js=null;function Wu(){if(Js)return Js;var e,t=Yl,s=t.length,a,c="value"in ln?ln.value:ln.textContent,d=c.length;for(e=0;e<s&&t[e]===c[e];e++);var m=s-e;for(a=1;a<=m&&t[s-a]===c[d-a];a++);return Js=c.slice(e,1<a?1-a:void 0)}function Ys(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 Gs(){return!0}function qu(){return!1}function pt(e){function t(s,a,c,d,m){this._reactName=s,this._targetInst=c,this.type=a,this.nativeEvent=d,this.target=m,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(s=e[y],this[y]=s?s(d):d[y]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Gs:qu,this.isPropagationStopped=qu,this}return J(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Gs)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Gs)},persist:function(){},isPersistent:Gs}),t}var Gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gl=pt(Gn),Gr=J({},Gn,{view:0,detail:0}),Tp=pt(Gr),Xl,Zl,Xr,Xs=J({},Gr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:to,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!==Xr&&(Xr&&e.type==="mousemove"?(Xl=e.screenX-Xr.screenX,Zl=e.screenY-Xr.screenY):Zl=Xl=0,Xr=e),Xl)},movementY:function(e){return"movementY"in e?e.movementY:Zl}}),Hu=pt(Xs),Cp=J({},Xs,{dataTransfer:0}),_p=pt(Cp),Lp=J({},Gr,{relatedTarget:0}),eo=pt(Lp),Op=J({},Gn,{animationName:0,elapsedTime:0,pseudoElement:0}),$p=pt(Op),Ip=J({},Gn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ap=pt(Ip),Pp=J({},Gn,{data:0}),Qu=pt(Pp),jp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Mp={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"},Rp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Rp[e])?!!t[e]:!1}function to(){return Dp}var bp=J({},Gr,{key:function(e){if(e.key){var t=jp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ys(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Mp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:to,charCode:function(e){return e.type==="keypress"?Ys(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ys(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Bp=pt(bp),zp=J({},Xs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ju=pt(zp),Fp=J({},Gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:to}),Up=pt(Fp),Vp=J({},Gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Kp=pt(Vp),Wp=J({},Xs,{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}),qp=pt(Wp),Hp=[9,13,27,32],no=h&&"CompositionEvent"in window,Zr=null;h&&"documentMode"in document&&(Zr=document.documentMode);var Qp=h&&"TextEvent"in window&&!Zr,Yu=h&&(!no||Zr&&8<Zr&&11>=Zr),Gu=" ",Xu=!1;function Zu(e,t){switch(e){case"keyup":return Hp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ec(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xn=!1;function Jp(e,t){switch(e){case"compositionend":return ec(t);case"keypress":return t.which!==32?null:(Xu=!0,Gu);case"textInput":return e=t.data,e===Gu&&Xu?null:e;default:return null}}function Yp(e,t){if(Xn)return e==="compositionend"||!no&&Zu(e,t)?(e=Wu(),Js=Yl=ln=null,Xn=!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 Yu&&t.locale!=="ko"?null:t.data;default:return null}}var Gp={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 tc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Gp[e.type]:t==="textarea"}function nc(e,t,s,a){Eu(a),t=ri(t,"onChange"),0<t.length&&(s=new Gl("onChange","change",null,s,a),e.push({event:s,listeners:t}))}var es=null,ts=null;function Xp(e){Sc(e,0)}function Zs(e){var t=rr(e);if(cu(t))return e}function Zp(e,t){if(e==="change")return t}var rc=!1;if(h){var ro;if(h){var so="oninput"in document;if(!so){var sc=document.createElement("div");sc.setAttribute("oninput","return;"),so=typeof sc.oninput=="function"}ro=so}else ro=!1;rc=ro&&(!document.documentMode||9<document.documentMode)}function ic(){es&&(es.detachEvent("onpropertychange",lc),ts=es=null)}function lc(e){if(e.propertyName==="value"&&Zs(ts)){var t=[];nc(t,ts,e,Dl(e)),Cu(Xp,t)}}function em(e,t,s){e==="focusin"?(ic(),es=t,ts=s,es.attachEvent("onpropertychange",lc)):e==="focusout"&&ic()}function tm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zs(ts)}function nm(e,t){if(e==="click")return Zs(t)}function rm(e,t){if(e==="input"||e==="change")return Zs(t)}function sm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:sm;function ns(e,t){if(Ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),a=Object.keys(t);if(s.length!==a.length)return!1;for(a=0;a<s.length;a++){var c=s[a];if(!p.call(t,c)||!Ot(e[c],t[c]))return!1}return!0}function oc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ac(e,t){var s=oc(e);e=0;for(var a;s;){if(s.nodeType===3){if(a=e+s.textContent.length,e<=t&&a>=t)return{node:s,offset:t-e};e=a}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=oc(s)}}function uc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cc(){for(var e=window,t=Rs();t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=Rs(e.document)}return t}function io(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")}function im(e){var t=cc(),s=e.focusedElem,a=e.selectionRange;if(t!==s&&s&&s.ownerDocument&&uc(s.ownerDocument.documentElement,s)){if(a!==null&&io(s)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in s)s.selectionStart=t,s.selectionEnd=Math.min(e,s.value.length);else if(e=(t=s.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var c=s.textContent.length,d=Math.min(a.start,c);a=a.end===void 0?d:Math.min(a.end,c),!e.extend&&d>a&&(c=a,a=d,d=c),c=ac(s,d);var m=ac(s,a);c&&m&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==m.node||e.focusOffset!==m.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),e.removeAllRanges(),d>a?(e.addRange(t),e.extend(m.node,m.offset)):(t.setEnd(m.node,m.offset),e.addRange(t)))}}for(t=[],e=s;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<t.length;s++)e=t[s],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var lm=h&&"documentMode"in document&&11>=document.documentMode,Zn=null,lo=null,rs=null,oo=!1;function fc(e,t,s){var a=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;oo||Zn==null||Zn!==Rs(a)||(a=Zn,"selectionStart"in a&&io(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),rs&&ns(rs,a)||(rs=a,a=ri(lo,"onSelect"),0<a.length&&(t=new Gl("onSelect","select",null,t,s),e.push({event:t,listeners:a}),t.target=Zn)))}function ei(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var er={animationend:ei("Animation","AnimationEnd"),animationiteration:ei("Animation","AnimationIteration"),animationstart:ei("Animation","AnimationStart"),transitionend:ei("Transition","TransitionEnd")},ao={},dc={};h&&(dc=document.createElement("div").style,"AnimationEvent"in window||(delete er.animationend.animation,delete er.animationiteration.animation,delete er.animationstart.animation),"TransitionEvent"in window||delete er.transitionend.transition);function ti(e){if(ao[e])return ao[e];if(!er[e])return e;var t=er[e],s;for(s in t)if(t.hasOwnProperty(s)&&s in dc)return ao[e]=t[s];return e}var hc=ti("animationend"),pc=ti("animationiteration"),mc=ti("animationstart"),gc=ti("transitionend"),yc=new Map,vc="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function on(e,t){yc.set(e,t),u(t,[e])}for(var uo=0;uo<vc.length;uo++){var co=vc[uo],om=co.toLowerCase(),am=co[0].toUpperCase()+co.slice(1);on(om,"on"+am)}on(hc,"onAnimationEnd"),on(pc,"onAnimationIteration"),on(mc,"onAnimationStart"),on("dblclick","onDoubleClick"),on("focusin","onFocus"),on("focusout","onBlur"),on(gc,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ss="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(" "),um=new Set("cancel close invalid load scroll toggle".split(" ").concat(ss));function wc(e,t,s){var a=e.type||"unknown-event";e.currentTarget=s,op(a,t,void 0,e),e.currentTarget=null}function Sc(e,t){t=(t&4)!==0;for(var s=0;s<e.length;s++){var a=e[s],c=a.event;a=a.listeners;e:{var d=void 0;if(t)for(var m=a.length-1;0<=m;m--){var y=a[m],k=y.instance,I=y.currentTarget;if(y=y.listener,k!==d&&c.isPropagationStopped())break e;wc(c,y,I),d=k}else for(m=0;m<a.length;m++){if(y=a[m],k=y.instance,I=y.currentTarget,y=y.listener,k!==d&&c.isPropagationStopped())break e;wc(c,y,I),d=k}}}if(Bs)throw e=Fl,Bs=!1,Fl=null,e}function Ee(e,t){var s=t[wo];s===void 0&&(s=t[wo]=new Set);var a=e+"__bubble";s.has(a)||(kc(t,e,2,!1),s.add(a))}function fo(e,t,s){var a=0;t&&(a|=4),kc(s,e,a,t)}var ni="_reactListening"+Math.random().toString(36).slice(2);function is(e){if(!e[ni]){e[ni]=!0,l.forEach(function(s){s!=="selectionchange"&&(um.has(s)||fo(s,!1,e),fo(s,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ni]||(t[ni]=!0,fo("selectionchange",!1,t))}}function kc(e,t,s,a){switch(Ku(t)){case 1:var c=xp;break;case 4:c=Np;break;default:c=Ql}s=c.bind(null,t,s,e),c=void 0,!zl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),a?c!==void 0?e.addEventListener(t,s,{capture:!0,passive:c}):e.addEventListener(t,s,!0):c!==void 0?e.addEventListener(t,s,{passive:c}):e.addEventListener(t,s,!1)}function ho(e,t,s,a,c){var d=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var m=a.tag;if(m===3||m===4){var y=a.stateNode.containerInfo;if(y===c||y.nodeType===8&&y.parentNode===c)break;if(m===4)for(m=a.return;m!==null;){var k=m.tag;if((k===3||k===4)&&(k=m.stateNode.containerInfo,k===c||k.nodeType===8&&k.parentNode===c))return;m=m.return}for(;y!==null;){if(m=Tn(y),m===null)return;if(k=m.tag,k===5||k===6){a=d=m;continue e}y=y.parentNode}}a=a.return}Cu(function(){var I=d,b=Dl(s),B=[];e:{var R=yc.get(e);if(R!==void 0){var H=Gl,Y=e;switch(e){case"keypress":if(Ys(s)===0)break e;case"keydown":case"keyup":H=Bp;break;case"focusin":Y="focus",H=eo;break;case"focusout":Y="blur",H=eo;break;case"beforeblur":case"afterblur":H=eo;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=Hu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=_p;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Up;break;case hc:case pc:case mc:H=$p;break;case gc:H=Kp;break;case"scroll":H=Tp;break;case"wheel":H=qp;break;case"copy":case"cut":case"paste":H=Ap;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Ju}var G=(t&4)!==0,je=!G&&e==="scroll",_=G?R!==null?R+"Capture":null:R;G=[];for(var x=I,$;x!==null;){$=x;var F=$.stateNode;if($.tag===5&&F!==null&&($=F,_!==null&&(F=Fr(x,_),F!=null&&G.push(ls(x,F,$)))),je)break;x=x.return}0<G.length&&(R=new H(R,Y,null,s,b),B.push({event:R,listeners:G}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",R&&s!==Rl&&(Y=s.relatedTarget||s.fromElement)&&(Tn(Y)||Y[Kt]))break e;if((H||R)&&(R=b.window===b?b:(R=b.ownerDocument)?R.defaultView||R.parentWindow:window,H?(Y=s.relatedTarget||s.toElement,H=I,Y=Y?Tn(Y):null,Y!==null&&(je=Nn(Y),Y!==je||Y.tag!==5&&Y.tag!==6)&&(Y=null)):(H=null,Y=I),H!==Y)){if(G=Hu,F="onMouseLeave",_="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(G=Ju,F="onPointerLeave",_="onPointerEnter",x="pointer"),je=H==null?R:rr(H),$=Y==null?R:rr(Y),R=new G(F,x+"leave",H,s,b),R.target=je,R.relatedTarget=$,F=null,Tn(b)===I&&(G=new G(_,x+"enter",Y,s,b),G.target=$,G.relatedTarget=je,F=G),je=F,H&&Y)t:{for(G=H,_=Y,x=0,$=G;$;$=tr($))x++;for($=0,F=_;F;F=tr(F))$++;for(;0<x-$;)G=tr(G),x--;for(;0<$-x;)_=tr(_),$--;for(;x--;){if(G===_||_!==null&&G===_.alternate)break t;G=tr(G),_=tr(_)}G=null}else G=null;H!==null&&Ec(B,R,H,G,!1),Y!==null&&je!==null&&Ec(B,je,Y,G,!0)}}e:{if(R=I?rr(I):window,H=R.nodeName&&R.nodeName.toLowerCase(),H==="select"||H==="input"&&R.type==="file")var X=Zp;else if(tc(R))if(rc)X=rm;else{X=tm;var te=em}else(H=R.nodeName)&&H.toLowerCase()==="input"&&(R.type==="checkbox"||R.type==="radio")&&(X=nm);if(X&&(X=X(e,I))){nc(B,X,s,b);break e}te&&te(e,R,I),e==="focusout"&&(te=R._wrapperState)&&te.controlled&&R.type==="number"&&Il(R,"number",R.value)}switch(te=I?rr(I):window,e){case"focusin":(tc(te)||te.contentEditable==="true")&&(Zn=te,lo=I,rs=null);break;case"focusout":rs=lo=Zn=null;break;case"mousedown":oo=!0;break;case"contextmenu":case"mouseup":case"dragend":oo=!1,fc(B,s,b);break;case"selectionchange":if(lm)break;case"keydown":case"keyup":fc(B,s,b)}var ne;if(no)e:{switch(e){case"compositionstart":var ie="onCompositionStart";break e;case"compositionend":ie="onCompositionEnd";break e;case"compositionupdate":ie="onCompositionUpdate";break e}ie=void 0}else Xn?Zu(e,s)&&(ie="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(ie="onCompositionStart");ie&&(Yu&&s.locale!=="ko"&&(Xn||ie!=="onCompositionStart"?ie==="onCompositionEnd"&&Xn&&(ne=Wu()):(ln=b,Yl="value"in ln?ln.value:ln.textContent,Xn=!0)),te=ri(I,ie),0<te.length&&(ie=new Qu(ie,e,null,s,b),B.push({event:ie,listeners:te}),ne?ie.data=ne:(ne=ec(s),ne!==null&&(ie.data=ne)))),(ne=Qp?Jp(e,s):Yp(e,s))&&(I=ri(I,"onBeforeInput"),0<I.length&&(b=new Qu("onBeforeInput","beforeinput",null,s,b),B.push({event:b,listeners:I}),b.data=ne))}Sc(B,t)})}function ls(e,t,s){return{instance:e,listener:t,currentTarget:s}}function ri(e,t){for(var s=t+"Capture",a=[];e!==null;){var c=e,d=c.stateNode;c.tag===5&&d!==null&&(c=d,d=Fr(e,s),d!=null&&a.unshift(ls(e,d,c)),d=Fr(e,t),d!=null&&a.push(ls(e,d,c))),e=e.return}return a}function tr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ec(e,t,s,a,c){for(var d=t._reactName,m=[];s!==null&&s!==a;){var y=s,k=y.alternate,I=y.stateNode;if(k!==null&&k===a)break;y.tag===5&&I!==null&&(y=I,c?(k=Fr(s,d),k!=null&&m.unshift(ls(s,k,y))):c||(k=Fr(s,d),k!=null&&m.push(ls(s,k,y)))),s=s.return}m.length!==0&&e.push({event:t,listeners:m})}var cm=/\r\n?/g,fm=/\u0000|\uFFFD/g;function xc(e){return(typeof e=="string"?e:""+e).replace(cm,`
39
- `).replace(fm,"")}function si(e,t,s){if(t=xc(t),xc(e)!==t&&s)throw Error(r(425))}function ii(){}var po=null,mo=null;function go(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yo=typeof setTimeout=="function"?setTimeout:void 0,dm=typeof clearTimeout=="function"?clearTimeout:void 0,Nc=typeof Promise=="function"?Promise:void 0,hm=typeof queueMicrotask=="function"?queueMicrotask:typeof Nc<"u"?function(e){return Nc.resolve(null).then(e).catch(pm)}:yo;function pm(e){setTimeout(function(){throw e})}function vo(e,t){var s=t,a=0;do{var c=s.nextSibling;if(e.removeChild(s),c&&c.nodeType===8)if(s=c.data,s==="/$"){if(a===0){e.removeChild(c),Yr(t);return}a--}else s!=="$"&&s!=="$?"&&s!=="$!"||a++;s=c}while(s);Yr(t)}function an(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==="$?")break;if(t==="/$")return null}}return e}function Tc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"){if(t===0)return e;t--}else s==="/$"&&t++}e=e.previousSibling}return null}var nr=Math.random().toString(36).slice(2),bt="__reactFiber$"+nr,os="__reactProps$"+nr,Kt="__reactContainer$"+nr,wo="__reactEvents$"+nr,mm="__reactListeners$"+nr,gm="__reactHandles$"+nr;function Tn(e){var t=e[bt];if(t)return t;for(var s=e.parentNode;s;){if(t=s[Kt]||s[bt]){if(s=t.alternate,t.child!==null||s!==null&&s.child!==null)for(e=Tc(e);e!==null;){if(s=e[bt])return s;e=Tc(e)}return t}e=s,s=e.parentNode}return null}function as(e){return e=e[bt]||e[Kt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function rr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function li(e){return e[os]||null}var So=[],sr=-1;function un(e){return{current:e}}function xe(e){0>sr||(e.current=So[sr],So[sr]=null,sr--)}function ke(e,t){sr++,So[sr]=e.current,e.current=t}var cn={},Qe=un(cn),st=un(!1),Cn=cn;function ir(e,t){var s=e.type.contextTypes;if(!s)return cn;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var c={},d;for(d in s)c[d]=t[d];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=c),c}function it(e){return e=e.childContextTypes,e!=null}function oi(){xe(st),xe(Qe)}function Cc(e,t,s){if(Qe.current!==cn)throw Error(r(168));ke(Qe,t),ke(st,s)}function _c(e,t,s){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return s;a=a.getChildContext();for(var c in a)if(!(c in t))throw Error(r(108,Se(e)||"Unknown",c));return J({},s,a)}function ai(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cn,Cn=Qe.current,ke(Qe,e),ke(st,st.current),!0}function Lc(e,t,s){var a=e.stateNode;if(!a)throw Error(r(169));s?(e=_c(e,t,Cn),a.__reactInternalMemoizedMergedChildContext=e,xe(st),xe(Qe),ke(Qe,e)):xe(st),ke(st,s)}var Wt=null,ui=!1,ko=!1;function Oc(e){Wt===null?Wt=[e]:Wt.push(e)}function ym(e){ui=!0,Oc(e)}function fn(){if(!ko&&Wt!==null){ko=!0;var e=0,t=ye;try{var s=Wt;for(ye=1;e<s.length;e++){var a=s[e];do a=a(!0);while(a!==null)}Wt=null,ui=!1}catch(c){throw Wt!==null&&(Wt=Wt.slice(e+1)),Iu(Ul,fn),c}finally{ye=t,ko=!1}}return null}var lr=[],or=0,ci=null,fi=0,St=[],kt=0,_n=null,qt=1,Ht="";function Ln(e,t){lr[or++]=fi,lr[or++]=ci,ci=e,fi=t}function $c(e,t,s){St[kt++]=qt,St[kt++]=Ht,St[kt++]=_n,_n=e;var a=qt;e=Ht;var c=32-Lt(a)-1;a&=~(1<<c),s+=1;var d=32-Lt(t)+c;if(30<d){var m=c-c%5;d=(a&(1<<m)-1).toString(32),a>>=m,c-=m,qt=1<<32-Lt(t)+c|s<<c|a,Ht=d+e}else qt=1<<d|s<<c|a,Ht=e}function Eo(e){e.return!==null&&(Ln(e,1),$c(e,1,0))}function xo(e){for(;e===ci;)ci=lr[--or],lr[or]=null,fi=lr[--or],lr[or]=null;for(;e===_n;)_n=St[--kt],St[kt]=null,Ht=St[--kt],St[kt]=null,qt=St[--kt],St[kt]=null}var mt=null,gt=null,Ce=!1,$t=null;function Ic(e,t){var s=Tt(5,null,null,0);s.elementType="DELETED",s.stateNode=t,s.return=e,t=e.deletions,t===null?(e.deletions=[s],e.flags|=16):t.push(s)}function Ac(e,t){switch(e.tag){case 5:var s=e.type;return t=t.nodeType!==1||s.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,mt=e,gt=an(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,mt=e,gt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(s=_n!==null?{id:qt,overflow:Ht}:null,e.memoizedState={dehydrated:t,treeContext:s,retryLane:1073741824},s=Tt(18,null,null,0),s.stateNode=t,s.return=e,e.child=s,mt=e,gt=null,!0):!1;default:return!1}}function No(e){return(e.mode&1)!==0&&(e.flags&128)===0}function To(e){if(Ce){var t=gt;if(t){var s=t;if(!Ac(e,t)){if(No(e))throw Error(r(418));t=an(s.nextSibling);var a=mt;t&&Ac(e,t)?Ic(a,s):(e.flags=e.flags&-4097|2,Ce=!1,mt=e)}}else{if(No(e))throw Error(r(418));e.flags=e.flags&-4097|2,Ce=!1,mt=e}}}function Pc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mt=e}function di(e){if(e!==mt)return!1;if(!Ce)return Pc(e),Ce=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!go(e.type,e.memoizedProps)),t&&(t=gt)){if(No(e))throw jc(),Error(r(418));for(;t;)Ic(e,t),t=an(t.nextSibling)}if(Pc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"){if(t===0){gt=an(e.nextSibling);break e}t--}else s!=="$"&&s!=="$!"&&s!=="$?"||t++}e=e.nextSibling}gt=null}}else gt=mt?an(e.stateNode.nextSibling):null;return!0}function jc(){for(var e=gt;e;)e=an(e.nextSibling)}function ar(){gt=mt=null,Ce=!1}function Co(e){$t===null?$t=[e]:$t.push(e)}var vm=V.ReactCurrentBatchConfig;function us(e,t,s){if(e=s.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(r(309));var a=s.stateNode}if(!a)throw Error(r(147,e));var c=a,d=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===d?t.ref:(t=function(m){var y=c.refs;m===null?delete y[d]:y[d]=m},t._stringRef=d,t)}if(typeof e!="string")throw Error(r(284));if(!s._owner)throw Error(r(290,e))}return e}function hi(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Mc(e){var t=e._init;return t(e._payload)}function Rc(e){function t(_,x){if(e){var $=_.deletions;$===null?(_.deletions=[x],_.flags|=16):$.push(x)}}function s(_,x){if(!e)return null;for(;x!==null;)t(_,x),x=x.sibling;return null}function a(_,x){for(_=new Map;x!==null;)x.key!==null?_.set(x.key,x):_.set(x.index,x),x=x.sibling;return _}function c(_,x){return _=wn(_,x),_.index=0,_.sibling=null,_}function d(_,x,$){return _.index=$,e?($=_.alternate,$!==null?($=$.index,$<x?(_.flags|=2,x):$):(_.flags|=2,x)):(_.flags|=1048576,x)}function m(_){return e&&_.alternate===null&&(_.flags|=2),_}function y(_,x,$,F){return x===null||x.tag!==6?(x=ya($,_.mode,F),x.return=_,x):(x=c(x,$),x.return=_,x)}function k(_,x,$,F){var X=$.type;return X===ee?b(_,x,$.props.children,F,$.key):x!==null&&(x.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===He&&Mc(X)===x.type)?(F=c(x,$.props),F.ref=us(_,x,$),F.return=_,F):(F=Di($.type,$.key,$.props,null,_.mode,F),F.ref=us(_,x,$),F.return=_,F)}function I(_,x,$,F){return x===null||x.tag!==4||x.stateNode.containerInfo!==$.containerInfo||x.stateNode.implementation!==$.implementation?(x=va($,_.mode,F),x.return=_,x):(x=c(x,$.children||[]),x.return=_,x)}function b(_,x,$,F,X){return x===null||x.tag!==7?(x=Rn($,_.mode,F,X),x.return=_,x):(x=c(x,$),x.return=_,x)}function B(_,x,$){if(typeof x=="string"&&x!==""||typeof x=="number")return x=ya(""+x,_.mode,$),x.return=_,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case q:return $=Di(x.type,x.key,x.props,null,_.mode,$),$.ref=us(_,null,x),$.return=_,$;case z:return x=va(x,_.mode,$),x.return=_,x;case He:var F=x._init;return B(_,F(x._payload),$)}if(br(x)||re(x))return x=Rn(x,_.mode,$,null),x.return=_,x;hi(_,x)}return null}function R(_,x,$,F){var X=x!==null?x.key:null;if(typeof $=="string"&&$!==""||typeof $=="number")return X!==null?null:y(_,x,""+$,F);if(typeof $=="object"&&$!==null){switch($.$$typeof){case q:return $.key===X?k(_,x,$,F):null;case z:return $.key===X?I(_,x,$,F):null;case He:return X=$._init,R(_,x,X($._payload),F)}if(br($)||re($))return X!==null?null:b(_,x,$,F,null);hi(_,$)}return null}function H(_,x,$,F,X){if(typeof F=="string"&&F!==""||typeof F=="number")return _=_.get($)||null,y(x,_,""+F,X);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case q:return _=_.get(F.key===null?$:F.key)||null,k(x,_,F,X);case z:return _=_.get(F.key===null?$:F.key)||null,I(x,_,F,X);case He:var te=F._init;return H(_,x,$,te(F._payload),X)}if(br(F)||re(F))return _=_.get($)||null,b(x,_,F,X,null);hi(x,F)}return null}function Y(_,x,$,F){for(var X=null,te=null,ne=x,ie=x=0,Ve=null;ne!==null&&ie<$.length;ie++){ne.index>ie?(Ve=ne,ne=null):Ve=ne.sibling;var me=R(_,ne,$[ie],F);if(me===null){ne===null&&(ne=Ve);break}e&&ne&&me.alternate===null&&t(_,ne),x=d(me,x,ie),te===null?X=me:te.sibling=me,te=me,ne=Ve}if(ie===$.length)return s(_,ne),Ce&&Ln(_,ie),X;if(ne===null){for(;ie<$.length;ie++)ne=B(_,$[ie],F),ne!==null&&(x=d(ne,x,ie),te===null?X=ne:te.sibling=ne,te=ne);return Ce&&Ln(_,ie),X}for(ne=a(_,ne);ie<$.length;ie++)Ve=H(ne,_,ie,$[ie],F),Ve!==null&&(e&&Ve.alternate!==null&&ne.delete(Ve.key===null?ie:Ve.key),x=d(Ve,x,ie),te===null?X=Ve:te.sibling=Ve,te=Ve);return e&&ne.forEach(function(Sn){return t(_,Sn)}),Ce&&Ln(_,ie),X}function G(_,x,$,F){var X=re($);if(typeof X!="function")throw Error(r(150));if($=X.call($),$==null)throw Error(r(151));for(var te=X=null,ne=x,ie=x=0,Ve=null,me=$.next();ne!==null&&!me.done;ie++,me=$.next()){ne.index>ie?(Ve=ne,ne=null):Ve=ne.sibling;var Sn=R(_,ne,me.value,F);if(Sn===null){ne===null&&(ne=Ve);break}e&&ne&&Sn.alternate===null&&t(_,ne),x=d(Sn,x,ie),te===null?X=Sn:te.sibling=Sn,te=Sn,ne=Ve}if(me.done)return s(_,ne),Ce&&Ln(_,ie),X;if(ne===null){for(;!me.done;ie++,me=$.next())me=B(_,me.value,F),me!==null&&(x=d(me,x,ie),te===null?X=me:te.sibling=me,te=me);return Ce&&Ln(_,ie),X}for(ne=a(_,ne);!me.done;ie++,me=$.next())me=H(ne,_,ie,me.value,F),me!==null&&(e&&me.alternate!==null&&ne.delete(me.key===null?ie:me.key),x=d(me,x,ie),te===null?X=me:te.sibling=me,te=me);return e&&ne.forEach(function(Gm){return t(_,Gm)}),Ce&&Ln(_,ie),X}function je(_,x,$,F){if(typeof $=="object"&&$!==null&&$.type===ee&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case q:e:{for(var X=$.key,te=x;te!==null;){if(te.key===X){if(X=$.type,X===ee){if(te.tag===7){s(_,te.sibling),x=c(te,$.props.children),x.return=_,_=x;break e}}else if(te.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===He&&Mc(X)===te.type){s(_,te.sibling),x=c(te,$.props),x.ref=us(_,te,$),x.return=_,_=x;break e}s(_,te);break}else t(_,te);te=te.sibling}$.type===ee?(x=Rn($.props.children,_.mode,F,$.key),x.return=_,_=x):(F=Di($.type,$.key,$.props,null,_.mode,F),F.ref=us(_,x,$),F.return=_,_=F)}return m(_);case z:e:{for(te=$.key;x!==null;){if(x.key===te)if(x.tag===4&&x.stateNode.containerInfo===$.containerInfo&&x.stateNode.implementation===$.implementation){s(_,x.sibling),x=c(x,$.children||[]),x.return=_,_=x;break e}else{s(_,x);break}else t(_,x);x=x.sibling}x=va($,_.mode,F),x.return=_,_=x}return m(_);case He:return te=$._init,je(_,x,te($._payload),F)}if(br($))return Y(_,x,$,F);if(re($))return G(_,x,$,F);hi(_,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,x!==null&&x.tag===6?(s(_,x.sibling),x=c(x,$),x.return=_,_=x):(s(_,x),x=ya($,_.mode,F),x.return=_,_=x),m(_)):s(_,x)}return je}var ur=Rc(!0),Dc=Rc(!1),pi=un(null),mi=null,cr=null,_o=null;function Lo(){_o=cr=mi=null}function Oo(e){var t=pi.current;xe(pi),e._currentValue=t}function $o(e,t,s){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===s)break;e=e.return}}function fr(e,t){mi=e,_o=cr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(lt=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(_o!==e)if(e={context:e,memoizedValue:t,next:null},cr===null){if(mi===null)throw Error(r(308));cr=e,mi.dependencies={lanes:0,firstContext:e}}else cr=cr.next=e;return t}var On=null;function Io(e){On===null?On=[e]:On.push(e)}function bc(e,t,s,a){var c=t.interleaved;return c===null?(s.next=s,Io(t)):(s.next=c.next,c.next=s),t.interleaved=s,Qt(e,a)}function Qt(e,t){e.lanes|=t;var s=e.alternate;for(s!==null&&(s.lanes|=t),s=e,e=e.return;e!==null;)e.childLanes|=t,s=e.alternate,s!==null&&(s.childLanes|=t),s=e,e=e.return;return s.tag===3?s.stateNode:null}var dn=!1;function Ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Jt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function hn(e,t,s){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(de&2)!==0){var c=a.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),a.pending=t,Qt(e,s)}return c=a.interleaved,c===null?(t.next=t,Io(a)):(t.next=c.next,c.next=t),a.interleaved=t,Qt(e,s)}function gi(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,s|=a,t.lanes=s,Wl(e,s)}}function zc(e,t){var s=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,s===a)){var c=null,d=null;if(s=s.firstBaseUpdate,s!==null){do{var m={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};d===null?c=d=m:d=d.next=m,s=s.next}while(s!==null);d===null?c=d=t:d=d.next=t}else c=d=t;s={baseState:a.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:a.shared,effects:a.effects},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}function yi(e,t,s,a){var c=e.updateQueue;dn=!1;var d=c.firstBaseUpdate,m=c.lastBaseUpdate,y=c.shared.pending;if(y!==null){c.shared.pending=null;var k=y,I=k.next;k.next=null,m===null?d=I:m.next=I,m=k;var b=e.alternate;b!==null&&(b=b.updateQueue,y=b.lastBaseUpdate,y!==m&&(y===null?b.firstBaseUpdate=I:y.next=I,b.lastBaseUpdate=k))}if(d!==null){var B=c.baseState;m=0,b=I=k=null,y=d;do{var R=y.lane,H=y.eventTime;if((a&R)===R){b!==null&&(b=b.next={eventTime:H,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var Y=e,G=y;switch(R=t,H=s,G.tag){case 1:if(Y=G.payload,typeof Y=="function"){B=Y.call(H,B,R);break e}B=Y;break e;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=G.payload,R=typeof Y=="function"?Y.call(H,B,R):Y,R==null)break e;B=J({},B,R);break e;case 2:dn=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,R=c.effects,R===null?c.effects=[y]:R.push(y))}else H={eventTime:H,lane:R,tag:y.tag,payload:y.payload,callback:y.callback,next:null},b===null?(I=b=H,k=B):b=b.next=H,m|=R;if(y=y.next,y===null){if(y=c.shared.pending,y===null)break;R=y,y=R.next,R.next=null,c.lastBaseUpdate=R,c.shared.pending=null}}while(!0);if(b===null&&(k=B),c.baseState=k,c.firstBaseUpdate=I,c.lastBaseUpdate=b,t=c.shared.interleaved,t!==null){c=t;do m|=c.lane,c=c.next;while(c!==t)}else d===null&&(c.shared.lanes=0);An|=m,e.lanes=m,e.memoizedState=B}}function Fc(e,t,s){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],c=a.callback;if(c!==null){if(a.callback=null,a=s,typeof c!="function")throw Error(r(191,c));c.call(a)}}}var cs={},Bt=un(cs),fs=un(cs),ds=un(cs);function $n(e){if(e===cs)throw Error(r(174));return e}function Po(e,t){switch(ke(ds,t),ke(fs,e),ke(Bt,cs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pl(t,e)}xe(Bt),ke(Bt,t)}function dr(){xe(Bt),xe(fs),xe(ds)}function Uc(e){$n(ds.current);var t=$n(Bt.current),s=Pl(t,e.type);t!==s&&(ke(fs,e),ke(Bt,s))}function jo(e){fs.current===e&&(xe(Bt),xe(fs))}var Le=un(0);function vi(e){for(var t=e;t!==null;){if(t.tag===13){var s=t.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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 Mo=[];function Ro(){for(var e=0;e<Mo.length;e++)Mo[e]._workInProgressVersionPrimary=null;Mo.length=0}var wi=V.ReactCurrentDispatcher,Do=V.ReactCurrentBatchConfig,In=0,Oe=null,be=null,Fe=null,Si=!1,hs=!1,ps=0,wm=0;function Je(){throw Error(r(321))}function bo(e,t){if(t===null)return!1;for(var s=0;s<t.length&&s<e.length;s++)if(!Ot(e[s],t[s]))return!1;return!0}function Bo(e,t,s,a,c,d){if(In=d,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wi.current=e===null||e.memoizedState===null?xm:Nm,e=s(a,c),hs){d=0;do{if(hs=!1,ps=0,25<=d)throw Error(r(301));d+=1,Fe=be=null,t.updateQueue=null,wi.current=Tm,e=s(a,c)}while(hs)}if(wi.current=xi,t=be!==null&&be.next!==null,In=0,Fe=be=Oe=null,Si=!1,t)throw Error(r(300));return e}function zo(){var e=ps!==0;return ps=0,e}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?Oe.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function xt(){if(be===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=be.next;var t=Fe===null?Oe.memoizedState:Fe.next;if(t!==null)Fe=t,be=e;else{if(e===null)throw Error(r(310));be=e,e={memoizedState:be.memoizedState,baseState:be.baseState,baseQueue:be.baseQueue,queue:be.queue,next:null},Fe===null?Oe.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function ms(e,t){return typeof t=="function"?t(e):t}function Fo(e){var t=xt(),s=t.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=e;var a=be,c=a.baseQueue,d=s.pending;if(d!==null){if(c!==null){var m=c.next;c.next=d.next,d.next=m}a.baseQueue=c=d,s.pending=null}if(c!==null){d=c.next,a=a.baseState;var y=m=null,k=null,I=d;do{var b=I.lane;if((In&b)===b)k!==null&&(k=k.next={lane:0,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),a=I.hasEagerState?I.eagerState:e(a,I.action);else{var B={lane:b,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null};k===null?(y=k=B,m=a):k=k.next=B,Oe.lanes|=b,An|=b}I=I.next}while(I!==null&&I!==d);k===null?m=a:k.next=y,Ot(a,t.memoizedState)||(lt=!0),t.memoizedState=a,t.baseState=m,t.baseQueue=k,s.lastRenderedState=a}if(e=s.interleaved,e!==null){c=e;do d=c.lane,Oe.lanes|=d,An|=d,c=c.next;while(c!==e)}else c===null&&(s.lanes=0);return[t.memoizedState,s.dispatch]}function Uo(e){var t=xt(),s=t.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=e;var a=s.dispatch,c=s.pending,d=t.memoizedState;if(c!==null){s.pending=null;var m=c=c.next;do d=e(d,m.action),m=m.next;while(m!==c);Ot(d,t.memoizedState)||(lt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),s.lastRenderedState=d}return[d,a]}function Vc(){}function Kc(e,t){var s=Oe,a=xt(),c=t(),d=!Ot(a.memoizedState,c);if(d&&(a.memoizedState=c,lt=!0),a=a.queue,Vo(Hc.bind(null,s,a,e),[e]),a.getSnapshot!==t||d||Fe!==null&&Fe.memoizedState.tag&1){if(s.flags|=2048,gs(9,qc.bind(null,s,a,c,t),void 0,null),Ue===null)throw Error(r(349));(In&30)!==0||Wc(s,t,c)}return c}function Wc(e,t,s){e.flags|=16384,e={getSnapshot:t,value:s},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.stores=[e]):(s=t.stores,s===null?t.stores=[e]:s.push(e))}function qc(e,t,s,a){t.value=s,t.getSnapshot=a,Qc(t)&&Jc(e)}function Hc(e,t,s){return s(function(){Qc(t)&&Jc(e)})}function Qc(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!Ot(e,s)}catch{return!0}}function Jc(e){var t=Qt(e,1);t!==null&&jt(t,e,1,-1)}function Yc(e){var t=zt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ms,lastRenderedState:e},t.queue=e,e=e.dispatch=Em.bind(null,Oe,e),[t.memoizedState,e]}function gs(e,t,s,a){return e={tag:e,create:t,destroy:s,deps:a,next:null},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.lastEffect=e.next=e):(s=t.lastEffect,s===null?t.lastEffect=e.next=e:(a=s.next,s.next=e,e.next=a,t.lastEffect=e)),e}function Gc(){return xt().memoizedState}function ki(e,t,s,a){var c=zt();Oe.flags|=e,c.memoizedState=gs(1|t,s,void 0,a===void 0?null:a)}function Ei(e,t,s,a){var c=xt();a=a===void 0?null:a;var d=void 0;if(be!==null){var m=be.memoizedState;if(d=m.destroy,a!==null&&bo(a,m.deps)){c.memoizedState=gs(t,s,d,a);return}}Oe.flags|=e,c.memoizedState=gs(1|t,s,d,a)}function Xc(e,t){return ki(8390656,8,e,t)}function Vo(e,t){return Ei(2048,8,e,t)}function Zc(e,t){return Ei(4,2,e,t)}function ef(e,t){return Ei(4,4,e,t)}function tf(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function nf(e,t,s){return s=s!=null?s.concat([e]):null,Ei(4,4,tf.bind(null,t,e),s)}function Ko(){}function rf(e,t){var s=xt();t=t===void 0?null:t;var a=s.memoizedState;return a!==null&&t!==null&&bo(t,a[1])?a[0]:(s.memoizedState=[e,t],e)}function sf(e,t){var s=xt();t=t===void 0?null:t;var a=s.memoizedState;return a!==null&&t!==null&&bo(t,a[1])?a[0]:(e=e(),s.memoizedState=[e,t],e)}function lf(e,t,s){return(In&21)===0?(e.baseState&&(e.baseState=!1,lt=!0),e.memoizedState=s):(Ot(s,t)||(s=Mu(),Oe.lanes|=s,An|=s,e.baseState=!0),t)}function Sm(e,t){var s=ye;ye=s!==0&&4>s?s:4,e(!0);var a=Do.transition;Do.transition={};try{e(!1),t()}finally{ye=s,Do.transition=a}}function of(){return xt().memoizedState}function km(e,t,s){var a=yn(e);if(s={lane:a,action:s,hasEagerState:!1,eagerState:null,next:null},af(e))uf(t,s);else if(s=bc(e,t,s,a),s!==null){var c=tt();jt(s,e,a,c),cf(s,t,a)}}function Em(e,t,s){var a=yn(e),c={lane:a,action:s,hasEagerState:!1,eagerState:null,next:null};if(af(e))uf(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var m=t.lastRenderedState,y=d(m,s);if(c.hasEagerState=!0,c.eagerState=y,Ot(y,m)){var k=t.interleaved;k===null?(c.next=c,Io(t)):(c.next=k.next,k.next=c),t.interleaved=c;return}}catch{}finally{}s=bc(e,t,c,a),s!==null&&(c=tt(),jt(s,e,a,c),cf(s,t,a))}}function af(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function uf(e,t){hs=Si=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function cf(e,t,s){if((s&4194240)!==0){var a=t.lanes;a&=e.pendingLanes,s|=a,t.lanes=s,Wl(e,s)}}var xi={readContext:Et,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},xm={readContext:Et,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:Xc,useImperativeHandle:function(e,t,s){return s=s!=null?s.concat([e]):null,ki(4194308,4,tf.bind(null,t,e),s)},useLayoutEffect:function(e,t){return ki(4194308,4,e,t)},useInsertionEffect:function(e,t){return ki(4,2,e,t)},useMemo:function(e,t){var s=zt();return t=t===void 0?null:t,e=e(),s.memoizedState=[e,t],e},useReducer:function(e,t,s){var a=zt();return t=s!==void 0?s(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=km.bind(null,Oe,e),[a.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:Yc,useDebugValue:Ko,useDeferredValue:function(e){return zt().memoizedState=e},useTransition:function(){var e=Yc(!1),t=e[0];return e=Sm.bind(null,e[1]),zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,s){var a=Oe,c=zt();if(Ce){if(s===void 0)throw Error(r(407));s=s()}else{if(s=t(),Ue===null)throw Error(r(349));(In&30)!==0||Wc(a,t,s)}c.memoizedState=s;var d={value:s,getSnapshot:t};return c.queue=d,Xc(Hc.bind(null,a,d,e),[e]),a.flags|=2048,gs(9,qc.bind(null,a,d,s,t),void 0,null),s},useId:function(){var e=zt(),t=Ue.identifierPrefix;if(Ce){var s=Ht,a=qt;s=(a&~(1<<32-Lt(a)-1)).toString(32)+s,t=":"+t+"R"+s,s=ps++,0<s&&(t+="H"+s.toString(32)),t+=":"}else s=wm++,t=":"+t+"r"+s.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Nm={readContext:Et,useCallback:rf,useContext:Et,useEffect:Vo,useImperativeHandle:nf,useInsertionEffect:Zc,useLayoutEffect:ef,useMemo:sf,useReducer:Fo,useRef:Gc,useState:function(){return Fo(ms)},useDebugValue:Ko,useDeferredValue:function(e){var t=xt();return lf(t,be.memoizedState,e)},useTransition:function(){var e=Fo(ms)[0],t=xt().memoizedState;return[e,t]},useMutableSource:Vc,useSyncExternalStore:Kc,useId:of,unstable_isNewReconciler:!1},Tm={readContext:Et,useCallback:rf,useContext:Et,useEffect:Vo,useImperativeHandle:nf,useInsertionEffect:Zc,useLayoutEffect:ef,useMemo:sf,useReducer:Uo,useRef:Gc,useState:function(){return Uo(ms)},useDebugValue:Ko,useDeferredValue:function(e){var t=xt();return be===null?t.memoizedState=e:lf(t,be.memoizedState,e)},useTransition:function(){var e=Uo(ms)[0],t=xt().memoizedState;return[e,t]},useMutableSource:Vc,useSyncExternalStore:Kc,useId:of,unstable_isNewReconciler:!1};function It(e,t){if(e&&e.defaultProps){t=J({},t),e=e.defaultProps;for(var s in e)t[s]===void 0&&(t[s]=e[s]);return t}return t}function Wo(e,t,s,a){t=e.memoizedState,s=s(a,t),s=s==null?t:J({},t,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var Ni={isMounted:function(e){return(e=e._reactInternals)?Nn(e)===e:!1},enqueueSetState:function(e,t,s){e=e._reactInternals;var a=tt(),c=yn(e),d=Jt(a,c);d.payload=t,s!=null&&(d.callback=s),t=hn(e,d,c),t!==null&&(jt(t,e,c,a),gi(t,e,c))},enqueueReplaceState:function(e,t,s){e=e._reactInternals;var a=tt(),c=yn(e),d=Jt(a,c);d.tag=1,d.payload=t,s!=null&&(d.callback=s),t=hn(e,d,c),t!==null&&(jt(t,e,c,a),gi(t,e,c))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var s=tt(),a=yn(e),c=Jt(s,a);c.tag=2,t!=null&&(c.callback=t),t=hn(e,c,a),t!==null&&(jt(t,e,a,s),gi(t,e,a))}};function ff(e,t,s,a,c,d,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,d,m):t.prototype&&t.prototype.isPureReactComponent?!ns(s,a)||!ns(c,d):!0}function df(e,t,s){var a=!1,c=cn,d=t.contextType;return typeof d=="object"&&d!==null?d=Et(d):(c=it(t)?Cn:Qe.current,a=t.contextTypes,d=(a=a!=null)?ir(e,c):cn),t=new t(s,d),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ni,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=d),t}function hf(e,t,s,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(s,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(s,a),t.state!==e&&Ni.enqueueReplaceState(t,t.state,null)}function qo(e,t,s,a){var c=e.stateNode;c.props=s,c.state=e.memoizedState,c.refs={},Ao(e);var d=t.contextType;typeof d=="object"&&d!==null?c.context=Et(d):(d=it(t)?Cn:Qe.current,c.context=ir(e,d)),c.state=e.memoizedState,d=t.getDerivedStateFromProps,typeof d=="function"&&(Wo(e,t,d,s),c.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(t=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),t!==c.state&&Ni.enqueueReplaceState(c,c.state,null),yi(e,s,c,a),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308)}function hr(e,t){try{var s="",a=t;do s+=he(a),a=a.return;while(a);var c=s}catch(d){c=`
40
- Error generating stack: `+d.message+`
41
- `+d.stack}return{value:e,source:t,stack:c,digest:null}}function Ho(e,t,s){return{value:e,source:null,stack:s??null,digest:t??null}}function Qo(e,t){try{console.error(t.value)}catch(s){setTimeout(function(){throw s})}}var Cm=typeof WeakMap=="function"?WeakMap:Map;function pf(e,t,s){s=Jt(-1,s),s.tag=3,s.payload={element:null};var a=t.value;return s.callback=function(){Ii||(Ii=!0,ua=a),Qo(e,t)},s}function mf(e,t,s){s=Jt(-1,s),s.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var c=t.value;s.payload=function(){return a(c)},s.callback=function(){Qo(e,t)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(s.callback=function(){Qo(e,t),typeof a!="function"&&(mn===null?mn=new Set([this]):mn.add(this));var m=t.stack;this.componentDidCatch(t.value,{componentStack:m!==null?m:""})}),s}function gf(e,t,s){var a=e.pingCache;if(a===null){a=e.pingCache=new Cm;var c=new Set;a.set(t,c)}else c=a.get(t),c===void 0&&(c=new Set,a.set(t,c));c.has(s)||(c.add(s),e=zm.bind(null,e,t,s),t.then(e,e))}function yf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function vf(e,t,s,a,c){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(t=Jt(-1,1),t.tag=2,hn(s,t,1))),s.lanes|=1),e):(e.flags|=65536,e.lanes=c,e)}var _m=V.ReactCurrentOwner,lt=!1;function et(e,t,s,a){t.child=e===null?Dc(t,null,s,a):ur(t,e.child,s,a)}function wf(e,t,s,a,c){s=s.render;var d=t.ref;return fr(t,c),a=Bo(e,t,s,a,d,c),s=zo(),e!==null&&!lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Yt(e,t,c)):(Ce&&s&&Eo(t),t.flags|=1,et(e,t,a,c),t.child)}function Sf(e,t,s,a,c){if(e===null){var d=s.type;return typeof d=="function"&&!ga(d)&&d.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(t.tag=15,t.type=d,kf(e,t,d,a,c)):(e=Di(s.type,null,a,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,(e.lanes&c)===0){var m=d.memoizedProps;if(s=s.compare,s=s!==null?s:ns,s(m,a)&&e.ref===t.ref)return Yt(e,t,c)}return t.flags|=1,e=wn(d,a),e.ref=t.ref,e.return=t,t.child=e}function kf(e,t,s,a,c){if(e!==null){var d=e.memoizedProps;if(ns(d,a)&&e.ref===t.ref)if(lt=!1,t.pendingProps=a=d,(e.lanes&c)!==0)(e.flags&131072)!==0&&(lt=!0);else return t.lanes=e.lanes,Yt(e,t,c)}return Jo(e,t,s,a,c)}function Ef(e,t,s){var a=t.pendingProps,c=a.children,d=e!==null?e.memoizedState:null;if(a.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ke(mr,yt),yt|=s;else{if((s&1073741824)===0)return e=d!==null?d.baseLanes|s:s,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ke(mr,yt),yt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=d!==null?d.baseLanes:s,ke(mr,yt),yt|=a}else d!==null?(a=d.baseLanes|s,t.memoizedState=null):a=s,ke(mr,yt),yt|=a;return et(e,t,c,s),t.child}function xf(e,t){var s=t.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(t.flags|=512,t.flags|=2097152)}function Jo(e,t,s,a,c){var d=it(s)?Cn:Qe.current;return d=ir(t,d),fr(t,c),s=Bo(e,t,s,a,d,c),a=zo(),e!==null&&!lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Yt(e,t,c)):(Ce&&a&&Eo(t),t.flags|=1,et(e,t,s,c),t.child)}function Nf(e,t,s,a,c){if(it(s)){var d=!0;ai(t)}else d=!1;if(fr(t,c),t.stateNode===null)Ci(e,t),df(t,s,a),qo(t,s,a,c),a=!0;else if(e===null){var m=t.stateNode,y=t.memoizedProps;m.props=y;var k=m.context,I=s.contextType;typeof I=="object"&&I!==null?I=Et(I):(I=it(s)?Cn:Qe.current,I=ir(t,I));var b=s.getDerivedStateFromProps,B=typeof b=="function"||typeof m.getSnapshotBeforeUpdate=="function";B||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(y!==a||k!==I)&&hf(t,m,a,I),dn=!1;var R=t.memoizedState;m.state=R,yi(t,a,m,c),k=t.memoizedState,y!==a||R!==k||st.current||dn?(typeof b=="function"&&(Wo(t,s,b,a),k=t.memoizedState),(y=dn||ff(t,s,y,a,R,k,I))?(B||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(t.flags|=4194308)):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=k),m.props=a,m.state=k,m.context=I,a=y):(typeof m.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{m=t.stateNode,Bc(e,t),y=t.memoizedProps,I=t.type===t.elementType?y:It(t.type,y),m.props=I,B=t.pendingProps,R=m.context,k=s.contextType,typeof k=="object"&&k!==null?k=Et(k):(k=it(s)?Cn:Qe.current,k=ir(t,k));var H=s.getDerivedStateFromProps;(b=typeof H=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(y!==B||R!==k)&&hf(t,m,a,k),dn=!1,R=t.memoizedState,m.state=R,yi(t,a,m,c);var Y=t.memoizedState;y!==B||R!==Y||st.current||dn?(typeof H=="function"&&(Wo(t,s,H,a),Y=t.memoizedState),(I=dn||ff(t,s,I,a,R,Y,k)||!1)?(b||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(a,Y,k),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(a,Y,k)),typeof m.componentDidUpdate=="function"&&(t.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof m.componentDidUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=Y),m.props=a,m.state=Y,m.context=k,a=I):(typeof m.componentDidUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),a=!1)}return Yo(e,t,s,a,d,c)}function Yo(e,t,s,a,c,d){xf(e,t);var m=(t.flags&128)!==0;if(!a&&!m)return c&&Lc(t,s,!1),Yt(e,t,d);a=t.stateNode,_m.current=t;var y=m&&typeof s.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&m?(t.child=ur(t,e.child,null,d),t.child=ur(t,null,y,d)):et(e,t,y,d),t.memoizedState=a.state,c&&Lc(t,s,!0),t.child}function Tf(e){var t=e.stateNode;t.pendingContext?Cc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Cc(e,t.context,!1),Po(e,t.containerInfo)}function Cf(e,t,s,a,c){return ar(),Co(c),t.flags|=256,et(e,t,s,a),t.child}var Go={dehydrated:null,treeContext:null,retryLane:0};function Xo(e){return{baseLanes:e,cachePool:null,transitions:null}}function _f(e,t,s){var a=t.pendingProps,c=Le.current,d=!1,m=(t.flags&128)!==0,y;if((y=m)||(y=e!==null&&e.memoizedState===null?!1:(c&2)!==0),y?(d=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),ke(Le,c&1),e===null)return To(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(m=a.children,e=a.fallback,d?(a=t.mode,d=t.child,m={mode:"hidden",children:m},(a&1)===0&&d!==null?(d.childLanes=0,d.pendingProps=m):d=bi(m,a,0,null),e=Rn(e,a,s,null),d.return=t,e.return=t,d.sibling=e,t.child=d,t.child.memoizedState=Xo(s),t.memoizedState=Go,e):Zo(t,m));if(c=e.memoizedState,c!==null&&(y=c.dehydrated,y!==null))return Lm(e,t,m,a,y,c,s);if(d){d=a.fallback,m=t.mode,c=e.child,y=c.sibling;var k={mode:"hidden",children:a.children};return(m&1)===0&&t.child!==c?(a=t.child,a.childLanes=0,a.pendingProps=k,t.deletions=null):(a=wn(c,k),a.subtreeFlags=c.subtreeFlags&14680064),y!==null?d=wn(y,d):(d=Rn(d,m,s,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,a=d,d=t.child,m=e.child.memoizedState,m=m===null?Xo(s):{baseLanes:m.baseLanes|s,cachePool:null,transitions:m.transitions},d.memoizedState=m,d.childLanes=e.childLanes&~s,t.memoizedState=Go,a}return d=e.child,e=d.sibling,a=wn(d,{mode:"visible",children:a.children}),(t.mode&1)===0&&(a.lanes=s),a.return=t,a.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=a,t.memoizedState=null,a}function Zo(e,t){return t=bi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ti(e,t,s,a){return a!==null&&Co(a),ur(t,e.child,null,s),e=Zo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lm(e,t,s,a,c,d,m){if(s)return t.flags&256?(t.flags&=-257,a=Ho(Error(r(422))),Ti(e,t,m,a)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(d=a.fallback,c=t.mode,a=bi({mode:"visible",children:a.children},c,0,null),d=Rn(d,c,m,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,(t.mode&1)!==0&&ur(t,e.child,null,m),t.child.memoizedState=Xo(m),t.memoizedState=Go,d);if((t.mode&1)===0)return Ti(e,t,m,null);if(c.data==="$!"){if(a=c.nextSibling&&c.nextSibling.dataset,a)var y=a.dgst;return a=y,d=Error(r(419)),a=Ho(d,a,void 0),Ti(e,t,m,a)}if(y=(m&e.childLanes)!==0,lt||y){if(a=Ue,a!==null){switch(m&-m){case 4:c=2;break;case 16:c=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(a.suspendedLanes|m))!==0?0:c,c!==0&&c!==d.retryLane&&(d.retryLane=c,Qt(e,c),jt(a,e,c,-1))}return ma(),a=Ho(Error(r(421))),Ti(e,t,m,a)}return c.data==="$?"?(t.flags|=128,t.child=e.child,t=Fm.bind(null,e),c._reactRetry=t,null):(e=d.treeContext,gt=an(c.nextSibling),mt=t,Ce=!0,$t=null,e!==null&&(St[kt++]=qt,St[kt++]=Ht,St[kt++]=_n,qt=e.id,Ht=e.overflow,_n=t),t=Zo(t,a.children),t.flags|=4096,t)}function Lf(e,t,s){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),$o(e.return,t,s)}function ea(e,t,s,a,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:s,tailMode:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=s,d.tailMode=c)}function Of(e,t,s){var a=t.pendingProps,c=a.revealOrder,d=a.tail;if(et(e,t,a.children,s),a=Le.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lf(e,s,t);else if(e.tag===19)Lf(e,s,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(ke(Le,a),(t.mode&1)===0)t.memoizedState=null;else switch(c){case"forwards":for(s=t.child,c=null;s!==null;)e=s.alternate,e!==null&&vi(e)===null&&(c=s),s=s.sibling;s=c,s===null?(c=t.child,t.child=null):(c=s.sibling,s.sibling=null),ea(t,!1,c,s,d);break;case"backwards":for(s=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&vi(e)===null){t.child=c;break}e=c.sibling,c.sibling=s,s=c,c=e}ea(t,!0,s,null,d);break;case"together":ea(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ci(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Yt(e,t,s){if(e!==null&&(t.dependencies=e.dependencies),An|=t.lanes,(s&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,s=wn(e,e.pendingProps),t.child=s,s.return=t;e.sibling!==null;)e=e.sibling,s=s.sibling=wn(e,e.pendingProps),s.return=t;s.sibling=null}return t.child}function Om(e,t,s){switch(t.tag){case 3:Tf(t),ar();break;case 5:Uc(t);break;case 1:it(t.type)&&ai(t);break;case 4:Po(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,c=t.memoizedProps.value;ke(pi,a._currentValue),a._currentValue=c;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(ke(Le,Le.current&1),t.flags|=128,null):(s&t.child.childLanes)!==0?_f(e,t,s):(ke(Le,Le.current&1),e=Yt(e,t,s),e!==null?e.sibling:null);ke(Le,Le.current&1);break;case 19:if(a=(s&t.childLanes)!==0,(e.flags&128)!==0){if(a)return Of(e,t,s);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ke(Le,Le.current),a)break;return null;case 22:case 23:return t.lanes=0,Ef(e,t,s)}return Yt(e,t,s)}var $f,ta,If,Af;$f=function(e,t){for(var s=t.child;s!==null;){if(s.tag===5||s.tag===6)e.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break;for(;s.sibling===null;){if(s.return===null||s.return===t)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},ta=function(){},If=function(e,t,s,a){var c=e.memoizedProps;if(c!==a){e=t.stateNode,$n(Bt.current);var d=null;switch(s){case"input":c=Ol(e,c),a=Ol(e,a),d=[];break;case"select":c=J({},c,{value:void 0}),a=J({},a,{value:void 0}),d=[];break;case"textarea":c=Al(e,c),a=Al(e,a),d=[];break;default:typeof c.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=ii)}jl(s,a);var m;s=null;for(I in c)if(!a.hasOwnProperty(I)&&c.hasOwnProperty(I)&&c[I]!=null)if(I==="style"){var y=c[I];for(m in y)y.hasOwnProperty(m)&&(s||(s={}),s[m]="")}else I!=="dangerouslySetInnerHTML"&&I!=="children"&&I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&I!=="autoFocus"&&(o.hasOwnProperty(I)?d||(d=[]):(d=d||[]).push(I,null));for(I in a){var k=a[I];if(y=c!=null?c[I]:void 0,a.hasOwnProperty(I)&&k!==y&&(k!=null||y!=null))if(I==="style")if(y){for(m in y)!y.hasOwnProperty(m)||k&&k.hasOwnProperty(m)||(s||(s={}),s[m]="");for(m in k)k.hasOwnProperty(m)&&y[m]!==k[m]&&(s||(s={}),s[m]=k[m])}else s||(d||(d=[]),d.push(I,s)),s=k;else I==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,y=y?y.__html:void 0,k!=null&&y!==k&&(d=d||[]).push(I,k)):I==="children"?typeof k!="string"&&typeof k!="number"||(d=d||[]).push(I,""+k):I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&(o.hasOwnProperty(I)?(k!=null&&I==="onScroll"&&Ee("scroll",e),d||y===k||(d=[])):(d=d||[]).push(I,k))}s&&(d=d||[]).push("style",s);var I=d;(t.updateQueue=I)&&(t.flags|=4)}},Af=function(e,t,s,a){s!==a&&(t.flags|=4)};function ys(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var s=null;t!==null;)t.alternate!==null&&(s=t),t=t.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=0,a=0;if(t)for(var c=e.child;c!==null;)s|=c.lanes|c.childLanes,a|=c.subtreeFlags&14680064,a|=c.flags&14680064,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)s|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=a,e.childLanes=s,t}function $m(e,t,s){var a=t.pendingProps;switch(xo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return it(t.type)&&oi(),Ye(t),null;case 3:return a=t.stateNode,dr(),xe(st),xe(Qe),Ro(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(di(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$t!==null&&(da($t),$t=null))),ta(e,t),Ye(t),null;case 5:jo(t);var c=$n(ds.current);if(s=t.type,e!==null&&t.stateNode!=null)If(e,t,s,a,c),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ye(t),null}if(e=$n(Bt.current),di(t)){a=t.stateNode,s=t.type;var d=t.memoizedProps;switch(a[bt]=t,a[os]=d,e=(t.mode&1)!==0,s){case"dialog":Ee("cancel",a),Ee("close",a);break;case"iframe":case"object":case"embed":Ee("load",a);break;case"video":case"audio":for(c=0;c<ss.length;c++)Ee(ss[c],a);break;case"source":Ee("error",a);break;case"img":case"image":case"link":Ee("error",a),Ee("load",a);break;case"details":Ee("toggle",a);break;case"input":fu(a,d),Ee("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!d.multiple},Ee("invalid",a);break;case"textarea":pu(a,d),Ee("invalid",a)}jl(s,d),c=null;for(var m in d)if(d.hasOwnProperty(m)){var y=d[m];m==="children"?typeof y=="string"?a.textContent!==y&&(d.suppressHydrationWarning!==!0&&si(a.textContent,y,e),c=["children",y]):typeof y=="number"&&a.textContent!==""+y&&(d.suppressHydrationWarning!==!0&&si(a.textContent,y,e),c=["children",""+y]):o.hasOwnProperty(m)&&y!=null&&m==="onScroll"&&Ee("scroll",a)}switch(s){case"input":Ms(a),hu(a,d,!0);break;case"textarea":Ms(a),gu(a);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(a.onclick=ii)}a=c,t.updateQueue=a,a!==null&&(t.flags|=4)}else{m=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=yu(s)),e==="http://www.w3.org/1999/xhtml"?s==="script"?(e=m.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=m.createElement(s,{is:a.is}):(e=m.createElement(s),s==="select"&&(m=e,a.multiple?m.multiple=!0:a.size&&(m.size=a.size))):e=m.createElementNS(e,s),e[bt]=t,e[os]=a,$f(e,t,!1,!1),t.stateNode=e;e:{switch(m=Ml(s,a),s){case"dialog":Ee("cancel",e),Ee("close",e),c=a;break;case"iframe":case"object":case"embed":Ee("load",e),c=a;break;case"video":case"audio":for(c=0;c<ss.length;c++)Ee(ss[c],e);c=a;break;case"source":Ee("error",e),c=a;break;case"img":case"image":case"link":Ee("error",e),Ee("load",e),c=a;break;case"details":Ee("toggle",e),c=a;break;case"input":fu(e,a),c=Ol(e,a),Ee("invalid",e);break;case"option":c=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},c=J({},a,{value:void 0}),Ee("invalid",e);break;case"textarea":pu(e,a),c=Al(e,a),Ee("invalid",e);break;default:c=a}jl(s,c),y=c;for(d in y)if(y.hasOwnProperty(d)){var k=y[d];d==="style"?Su(e,k):d==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&vu(e,k)):d==="children"?typeof k=="string"?(s!=="textarea"||k!=="")&&Br(e,k):typeof k=="number"&&Br(e,""+k):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(o.hasOwnProperty(d)?k!=null&&d==="onScroll"&&Ee("scroll",e):k!=null&&M(e,d,k,m))}switch(s){case"input":Ms(e),hu(e,a,!1);break;case"textarea":Ms(e),gu(e);break;case"option":a.value!=null&&e.setAttribute("value",""+ge(a.value));break;case"select":e.multiple=!!a.multiple,d=a.value,d!=null?Hn(e,!!a.multiple,d,!1):a.defaultValue!=null&&Hn(e,!!a.multiple,a.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=ii)}switch(s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ye(t),null;case 6:if(e&&t.stateNode!=null)Af(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(s=$n(ds.current),$n(Bt.current),di(t)){if(a=t.stateNode,s=t.memoizedProps,a[bt]=t,(d=a.nodeValue!==s)&&(e=mt,e!==null))switch(e.tag){case 3:si(a.nodeValue,s,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&si(a.nodeValue,s,(e.mode&1)!==0)}d&&(t.flags|=4)}else a=(s.nodeType===9?s:s.ownerDocument).createTextNode(a),a[bt]=t,t.stateNode=a}return Ye(t),null;case 13:if(xe(Le),a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ce&&gt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)jc(),ar(),t.flags|=98560,d=!1;else if(d=di(t),a!==null&&a.dehydrated!==null){if(e===null){if(!d)throw Error(r(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[bt]=t}else ar(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),d=!1}else $t!==null&&(da($t),$t=null),d=!0;if(!d)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=s,t):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Le.current&1)!==0?Be===0&&(Be=3):ma())),t.updateQueue!==null&&(t.flags|=4),Ye(t),null);case 4:return dr(),ta(e,t),e===null&&is(t.stateNode.containerInfo),Ye(t),null;case 10:return Oo(t.type._context),Ye(t),null;case 17:return it(t.type)&&oi(),Ye(t),null;case 19:if(xe(Le),d=t.memoizedState,d===null)return Ye(t),null;if(a=(t.flags&128)!==0,m=d.rendering,m===null)if(a)ys(d,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(m=vi(e),m!==null){for(t.flags|=128,ys(d,!1),a=m.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=s,s=t.child;s!==null;)d=s,e=a,d.flags&=14680066,m=d.alternate,m===null?(d.childLanes=0,d.lanes=e,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=m.childLanes,d.lanes=m.lanes,d.child=m.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=m.memoizedProps,d.memoizedState=m.memoizedState,d.updateQueue=m.updateQueue,d.type=m.type,e=m.dependencies,d.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),s=s.sibling;return ke(Le,Le.current&1|2),t.child}e=e.sibling}d.tail!==null&&Pe()>gr&&(t.flags|=128,a=!0,ys(d,!1),t.lanes=4194304)}else{if(!a)if(e=vi(m),e!==null){if(t.flags|=128,a=!0,s=e.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),ys(d,!0),d.tail===null&&d.tailMode==="hidden"&&!m.alternate&&!Ce)return Ye(t),null}else 2*Pe()-d.renderingStartTime>gr&&s!==1073741824&&(t.flags|=128,a=!0,ys(d,!1),t.lanes=4194304);d.isBackwards?(m.sibling=t.child,t.child=m):(s=d.last,s!==null?s.sibling=m:t.child=m,d.last=m)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=Pe(),t.sibling=null,s=Le.current,ke(Le,a?s&1|2:s&1),t):(Ye(t),null);case 22:case 23:return pa(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&(t.mode&1)!==0?(yt&1073741824)!==0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function Im(e,t){switch(xo(t),t.tag){case 1:return it(t.type)&&oi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dr(),xe(st),xe(Qe),Ro(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return jo(t),null;case 13:if(xe(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xe(Le),null;case 4:return dr(),null;case 10:return Oo(t.type._context),null;case 22:case 23:return pa(),null;case 24:return null;default:return null}}var _i=!1,Ge=!1,Am=typeof WeakSet=="function"?WeakSet:Set,Q=null;function pr(e,t){var s=e.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(a){Ae(e,t,a)}else s.current=null}function na(e,t,s){try{s()}catch(a){Ae(e,t,a)}}var Pf=!1;function Pm(e,t){if(po=Hs,e=cc(),io(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var a=s.getSelection&&s.getSelection();if(a&&a.rangeCount!==0){s=a.anchorNode;var c=a.anchorOffset,d=a.focusNode;a=a.focusOffset;try{s.nodeType,d.nodeType}catch{s=null;break e}var m=0,y=-1,k=-1,I=0,b=0,B=e,R=null;t:for(;;){for(var H;B!==s||c!==0&&B.nodeType!==3||(y=m+c),B!==d||a!==0&&B.nodeType!==3||(k=m+a),B.nodeType===3&&(m+=B.nodeValue.length),(H=B.firstChild)!==null;)R=B,B=H;for(;;){if(B===e)break t;if(R===s&&++I===c&&(y=m),R===d&&++b===a&&(k=m),(H=B.nextSibling)!==null)break;B=R,R=B.parentNode}B=H}s=y===-1||k===-1?null:{start:y,end:k}}else s=null}s=s||{start:0,end:0}}else s=null;for(mo={focusedElem:e,selectionRange:s},Hs=!1,Q=t;Q!==null;)if(t=Q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Q=e;else for(;Q!==null;){t=Q;try{var Y=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Y!==null){var G=Y.memoizedProps,je=Y.memoizedState,_=t.stateNode,x=_.getSnapshotBeforeUpdate(t.elementType===t.type?G:It(t.type,G),je);_.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var $=t.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(F){Ae(t,t.return,F)}if(e=t.sibling,e!==null){e.return=t.return,Q=e;break}Q=t.return}return Y=Pf,Pf=!1,Y}function vs(e,t,s){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&e)===e){var d=c.destroy;c.destroy=void 0,d!==void 0&&na(t,s,d)}c=c.next}while(c!==a)}}function Li(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var s=t=t.next;do{if((s.tag&e)===e){var a=s.create;s.destroy=a()}s=s.next}while(s!==t)}}function ra(e){var t=e.ref;if(t!==null){var s=e.stateNode;switch(e.tag){case 5:e=s;break;default:e=s}typeof t=="function"?t(e):t.current=e}}function jf(e){var t=e.alternate;t!==null&&(e.alternate=null,jf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[bt],delete t[os],delete t[wo],delete t[mm],delete t[gm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Mf(e){return e.tag===5||e.tag===3||e.tag===4}function Rf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mf(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.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sa(e,t,s){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?s.nodeType===8?s.parentNode.insertBefore(e,t):s.insertBefore(e,t):(s.nodeType===8?(t=s.parentNode,t.insertBefore(e,s)):(t=s,t.appendChild(e)),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=ii));else if(a!==4&&(e=e.child,e!==null))for(sa(e,t,s),e=e.sibling;e!==null;)sa(e,t,s),e=e.sibling}function ia(e,t,s){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(ia(e,t,s),e=e.sibling;e!==null;)ia(e,t,s),e=e.sibling}var Ke=null,At=!1;function pn(e,t,s){for(s=s.child;s!==null;)Df(e,t,s),s=s.sibling}function Df(e,t,s){if(Dt&&typeof Dt.onCommitFiberUnmount=="function")try{Dt.onCommitFiberUnmount(Fs,s)}catch{}switch(s.tag){case 5:Ge||pr(s,t);case 6:var a=Ke,c=At;Ke=null,pn(e,t,s),Ke=a,At=c,Ke!==null&&(At?(e=Ke,s=s.stateNode,e.nodeType===8?e.parentNode.removeChild(s):e.removeChild(s)):Ke.removeChild(s.stateNode));break;case 18:Ke!==null&&(At?(e=Ke,s=s.stateNode,e.nodeType===8?vo(e.parentNode,s):e.nodeType===1&&vo(e,s),Yr(e)):vo(Ke,s.stateNode));break;case 4:a=Ke,c=At,Ke=s.stateNode.containerInfo,At=!0,pn(e,t,s),Ke=a,At=c;break;case 0:case 11:case 14:case 15:if(!Ge&&(a=s.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){c=a=a.next;do{var d=c,m=d.destroy;d=d.tag,m!==void 0&&((d&2)!==0||(d&4)!==0)&&na(s,t,m),c=c.next}while(c!==a)}pn(e,t,s);break;case 1:if(!Ge&&(pr(s,t),a=s.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=s.memoizedProps,a.state=s.memoizedState,a.componentWillUnmount()}catch(y){Ae(s,t,y)}pn(e,t,s);break;case 21:pn(e,t,s);break;case 22:s.mode&1?(Ge=(a=Ge)||s.memoizedState!==null,pn(e,t,s),Ge=a):pn(e,t,s);break;default:pn(e,t,s)}}function bf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new Am),t.forEach(function(a){var c=Um.bind(null,e,a);s.has(a)||(s.add(a),a.then(c,c))})}}function Pt(e,t){var s=t.deletions;if(s!==null)for(var a=0;a<s.length;a++){var c=s[a];try{var d=e,m=t,y=m;e:for(;y!==null;){switch(y.tag){case 5:Ke=y.stateNode,At=!1;break e;case 3:Ke=y.stateNode.containerInfo,At=!0;break e;case 4:Ke=y.stateNode.containerInfo,At=!0;break e}y=y.return}if(Ke===null)throw Error(r(160));Df(d,m,c),Ke=null,At=!1;var k=c.alternate;k!==null&&(k.return=null),c.return=null}catch(I){Ae(c,t,I)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Bf(t,e),t=t.sibling}function Bf(e,t){var s=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pt(t,e),Ft(e),a&4){try{vs(3,e,e.return),Li(3,e)}catch(G){Ae(e,e.return,G)}try{vs(5,e,e.return)}catch(G){Ae(e,e.return,G)}}break;case 1:Pt(t,e),Ft(e),a&512&&s!==null&&pr(s,s.return);break;case 5:if(Pt(t,e),Ft(e),a&512&&s!==null&&pr(s,s.return),e.flags&32){var c=e.stateNode;try{Br(c,"")}catch(G){Ae(e,e.return,G)}}if(a&4&&(c=e.stateNode,c!=null)){var d=e.memoizedProps,m=s!==null?s.memoizedProps:d,y=e.type,k=e.updateQueue;if(e.updateQueue=null,k!==null)try{y==="input"&&d.type==="radio"&&d.name!=null&&du(c,d),Ml(y,m);var I=Ml(y,d);for(m=0;m<k.length;m+=2){var b=k[m],B=k[m+1];b==="style"?Su(c,B):b==="dangerouslySetInnerHTML"?vu(c,B):b==="children"?Br(c,B):M(c,b,B,I)}switch(y){case"input":$l(c,d);break;case"textarea":mu(c,d);break;case"select":var R=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!d.multiple;var H=d.value;H!=null?Hn(c,!!d.multiple,H,!1):R!==!!d.multiple&&(d.defaultValue!=null?Hn(c,!!d.multiple,d.defaultValue,!0):Hn(c,!!d.multiple,d.multiple?[]:"",!1))}c[os]=d}catch(G){Ae(e,e.return,G)}}break;case 6:if(Pt(t,e),Ft(e),a&4){if(e.stateNode===null)throw Error(r(162));c=e.stateNode,d=e.memoizedProps;try{c.nodeValue=d}catch(G){Ae(e,e.return,G)}}break;case 3:if(Pt(t,e),Ft(e),a&4&&s!==null&&s.memoizedState.isDehydrated)try{Yr(t.containerInfo)}catch(G){Ae(e,e.return,G)}break;case 4:Pt(t,e),Ft(e);break;case 13:Pt(t,e),Ft(e),c=e.child,c.flags&8192&&(d=c.memoizedState!==null,c.stateNode.isHidden=d,!d||c.alternate!==null&&c.alternate.memoizedState!==null||(aa=Pe())),a&4&&bf(e);break;case 22:if(b=s!==null&&s.memoizedState!==null,e.mode&1?(Ge=(I=Ge)||b,Pt(t,e),Ge=I):Pt(t,e),Ft(e),a&8192){if(I=e.memoizedState!==null,(e.stateNode.isHidden=I)&&!b&&(e.mode&1)!==0)for(Q=e,b=e.child;b!==null;){for(B=Q=b;Q!==null;){switch(R=Q,H=R.child,R.tag){case 0:case 11:case 14:case 15:vs(4,R,R.return);break;case 1:pr(R,R.return);var Y=R.stateNode;if(typeof Y.componentWillUnmount=="function"){a=R,s=R.return;try{t=a,Y.props=t.memoizedProps,Y.state=t.memoizedState,Y.componentWillUnmount()}catch(G){Ae(a,s,G)}}break;case 5:pr(R,R.return);break;case 22:if(R.memoizedState!==null){Uf(B);continue}}H!==null?(H.return=R,Q=H):Uf(B)}b=b.sibling}e:for(b=null,B=e;;){if(B.tag===5){if(b===null){b=B;try{c=B.stateNode,I?(d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(y=B.stateNode,k=B.memoizedProps.style,m=k!=null&&k.hasOwnProperty("display")?k.display:null,y.style.display=wu("display",m))}catch(G){Ae(e,e.return,G)}}}else if(B.tag===6){if(b===null)try{B.stateNode.nodeValue=I?"":B.memoizedProps}catch(G){Ae(e,e.return,G)}}else if((B.tag!==22&&B.tag!==23||B.memoizedState===null||B===e)&&B.child!==null){B.child.return=B,B=B.child;continue}if(B===e)break e;for(;B.sibling===null;){if(B.return===null||B.return===e)break e;b===B&&(b=null),B=B.return}b===B&&(b=null),B.sibling.return=B.return,B=B.sibling}}break;case 19:Pt(t,e),Ft(e),a&4&&bf(e);break;case 21:break;default:Pt(t,e),Ft(e)}}function Ft(e){var t=e.flags;if(t&2){try{e:{for(var s=e.return;s!==null;){if(Mf(s)){var a=s;break e}s=s.return}throw Error(r(160))}switch(a.tag){case 5:var c=a.stateNode;a.flags&32&&(Br(c,""),a.flags&=-33);var d=Rf(e);ia(e,d,c);break;case 3:case 4:var m=a.stateNode.containerInfo,y=Rf(e);sa(e,y,m);break;default:throw Error(r(161))}}catch(k){Ae(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jm(e,t,s){Q=e,zf(e)}function zf(e,t,s){for(var a=(e.mode&1)!==0;Q!==null;){var c=Q,d=c.child;if(c.tag===22&&a){var m=c.memoizedState!==null||_i;if(!m){var y=c.alternate,k=y!==null&&y.memoizedState!==null||Ge;y=_i;var I=Ge;if(_i=m,(Ge=k)&&!I)for(Q=c;Q!==null;)m=Q,k=m.child,m.tag===22&&m.memoizedState!==null?Vf(c):k!==null?(k.return=m,Q=k):Vf(c);for(;d!==null;)Q=d,zf(d),d=d.sibling;Q=c,_i=y,Ge=I}Ff(e)}else(c.subtreeFlags&8772)!==0&&d!==null?(d.return=c,Q=d):Ff(e)}}function Ff(e){for(;Q!==null;){var t=Q;if((t.flags&8772)!==0){var s=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ge||Li(5,t);break;case 1:var a=t.stateNode;if(t.flags&4&&!Ge)if(s===null)a.componentDidMount();else{var c=t.elementType===t.type?s.memoizedProps:It(t.type,s.memoizedProps);a.componentDidUpdate(c,s.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var d=t.updateQueue;d!==null&&Fc(t,d,a);break;case 3:var m=t.updateQueue;if(m!==null){if(s=null,t.child!==null)switch(t.child.tag){case 5:s=t.child.stateNode;break;case 1:s=t.child.stateNode}Fc(t,m,s)}break;case 5:var y=t.stateNode;if(s===null&&t.flags&4){s=y;var k=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&s.focus();break;case"img":k.src&&(s.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var I=t.alternate;if(I!==null){var b=I.memoizedState;if(b!==null){var B=b.dehydrated;B!==null&&Yr(B)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Ge||t.flags&512&&ra(t)}catch(R){Ae(t,t.return,R)}}if(t===e){Q=null;break}if(s=t.sibling,s!==null){s.return=t.return,Q=s;break}Q=t.return}}function Uf(e){for(;Q!==null;){var t=Q;if(t===e){Q=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Q=s;break}Q=t.return}}function Vf(e){for(;Q!==null;){var t=Q;try{switch(t.tag){case 0:case 11:case 15:var s=t.return;try{Li(4,t)}catch(k){Ae(t,s,k)}break;case 1:var a=t.stateNode;if(typeof a.componentDidMount=="function"){var c=t.return;try{a.componentDidMount()}catch(k){Ae(t,c,k)}}var d=t.return;try{ra(t)}catch(k){Ae(t,d,k)}break;case 5:var m=t.return;try{ra(t)}catch(k){Ae(t,m,k)}}}catch(k){Ae(t,t.return,k)}if(t===e){Q=null;break}var y=t.sibling;if(y!==null){y.return=t.return,Q=y;break}Q=t.return}}var Mm=Math.ceil,Oi=V.ReactCurrentDispatcher,la=V.ReactCurrentOwner,Nt=V.ReactCurrentBatchConfig,de=0,Ue=null,Re=null,We=0,yt=0,mr=un(0),Be=0,ws=null,An=0,$i=0,oa=0,Ss=null,ot=null,aa=0,gr=1/0,Gt=null,Ii=!1,ua=null,mn=null,Ai=!1,gn=null,Pi=0,ks=0,ca=null,ji=-1,Mi=0;function tt(){return(de&6)!==0?Pe():ji!==-1?ji:ji=Pe()}function yn(e){return(e.mode&1)===0?1:(de&2)!==0&&We!==0?We&-We:vm.transition!==null?(Mi===0&&(Mi=Mu()),Mi):(e=ye,e!==0||(e=window.event,e=e===void 0?16:Ku(e.type)),e)}function jt(e,t,s,a){if(50<ks)throw ks=0,ca=null,Error(r(185));Wr(e,s,a),((de&2)===0||e!==Ue)&&(e===Ue&&((de&2)===0&&($i|=s),Be===4&&vn(e,We)),at(e,a),s===1&&de===0&&(t.mode&1)===0&&(gr=Pe()+500,ui&&fn()))}function at(e,t){var s=e.callbackNode;vp(e,t);var a=Ks(e,e===Ue?We:0);if(a===0)s!==null&&Au(s),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(s!=null&&Au(s),t===1)e.tag===0?ym(Wf.bind(null,e)):Oc(Wf.bind(null,e)),hm(function(){(de&6)===0&&fn()}),s=null;else{switch(Ru(a)){case 1:s=Ul;break;case 4:s=Pu;break;case 16:s=zs;break;case 536870912:s=ju;break;default:s=zs}s=Zf(s,Kf.bind(null,e))}e.callbackPriority=t,e.callbackNode=s}}function Kf(e,t){if(ji=-1,Mi=0,(de&6)!==0)throw Error(r(327));var s=e.callbackNode;if(yr()&&e.callbackNode!==s)return null;var a=Ks(e,e===Ue?We:0);if(a===0)return null;if((a&30)!==0||(a&e.expiredLanes)!==0||t)t=Ri(e,a);else{t=a;var c=de;de|=2;var d=Hf();(Ue!==e||We!==t)&&(Gt=null,gr=Pe()+500,jn(e,t));do try{bm();break}catch(y){qf(e,y)}while(!0);Lo(),Oi.current=d,de=c,Re!==null?t=0:(Ue=null,We=0,t=Be)}if(t!==0){if(t===2&&(c=Vl(e),c!==0&&(a=c,t=fa(e,c))),t===1)throw s=ws,jn(e,0),vn(e,a),at(e,Pe()),s;if(t===6)vn(e,a);else{if(c=e.current.alternate,(a&30)===0&&!Rm(c)&&(t=Ri(e,a),t===2&&(d=Vl(e),d!==0&&(a=d,t=fa(e,d))),t===1))throw s=ws,jn(e,0),vn(e,a),at(e,Pe()),s;switch(e.finishedWork=c,e.finishedLanes=a,t){case 0:case 1:throw Error(r(345));case 2:Mn(e,ot,Gt);break;case 3:if(vn(e,a),(a&130023424)===a&&(t=aa+500-Pe(),10<t)){if(Ks(e,0)!==0)break;if(c=e.suspendedLanes,(c&a)!==a){tt(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=yo(Mn.bind(null,e,ot,Gt),t);break}Mn(e,ot,Gt);break;case 4:if(vn(e,a),(a&4194240)===a)break;for(t=e.eventTimes,c=-1;0<a;){var m=31-Lt(a);d=1<<m,m=t[m],m>c&&(c=m),a&=~d}if(a=c,a=Pe()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Mm(a/1960))-a,10<a){e.timeoutHandle=yo(Mn.bind(null,e,ot,Gt),a);break}Mn(e,ot,Gt);break;case 5:Mn(e,ot,Gt);break;default:throw Error(r(329))}}}return at(e,Pe()),e.callbackNode===s?Kf.bind(null,e):null}function fa(e,t){var s=Ss;return e.current.memoizedState.isDehydrated&&(jn(e,t).flags|=256),e=Ri(e,t),e!==2&&(t=ot,ot=s,t!==null&&da(t)),e}function da(e){ot===null?ot=e:ot.push.apply(ot,e)}function Rm(e){for(var t=e;;){if(t.flags&16384){var s=t.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var a=0;a<s.length;a++){var c=s[a],d=c.getSnapshot;c=c.value;try{if(!Ot(d(),c))return!1}catch{return!1}}}if(s=t.child,t.subtreeFlags&16384&&s!==null)s.return=t,t=s;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 vn(e,t){for(t&=~oa,t&=~$i,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var s=31-Lt(t),a=1<<s;e[s]=-1,t&=~a}}function Wf(e){if((de&6)!==0)throw Error(r(327));yr();var t=Ks(e,0);if((t&1)===0)return at(e,Pe()),null;var s=Ri(e,t);if(e.tag!==0&&s===2){var a=Vl(e);a!==0&&(t=a,s=fa(e,a))}if(s===1)throw s=ws,jn(e,0),vn(e,t),at(e,Pe()),s;if(s===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Mn(e,ot,Gt),at(e,Pe()),null}function ha(e,t){var s=de;de|=1;try{return e(t)}finally{de=s,de===0&&(gr=Pe()+500,ui&&fn())}}function Pn(e){gn!==null&&gn.tag===0&&(de&6)===0&&yr();var t=de;de|=1;var s=Nt.transition,a=ye;try{if(Nt.transition=null,ye=1,e)return e()}finally{ye=a,Nt.transition=s,de=t,(de&6)===0&&fn()}}function pa(){yt=mr.current,xe(mr)}function jn(e,t){e.finishedWork=null,e.finishedLanes=0;var s=e.timeoutHandle;if(s!==-1&&(e.timeoutHandle=-1,dm(s)),Re!==null)for(s=Re.return;s!==null;){var a=s;switch(xo(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&oi();break;case 3:dr(),xe(st),xe(Qe),Ro();break;case 5:jo(a);break;case 4:dr();break;case 13:xe(Le);break;case 19:xe(Le);break;case 10:Oo(a.type._context);break;case 22:case 23:pa()}s=s.return}if(Ue=e,Re=e=wn(e.current,null),We=yt=t,Be=0,ws=null,oa=$i=An=0,ot=Ss=null,On!==null){for(t=0;t<On.length;t++)if(s=On[t],a=s.interleaved,a!==null){s.interleaved=null;var c=a.next,d=s.pending;if(d!==null){var m=d.next;d.next=c,a.next=m}s.pending=a}On=null}return e}function qf(e,t){do{var s=Re;try{if(Lo(),wi.current=xi,Si){for(var a=Oe.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next}Si=!1}if(In=0,Fe=be=Oe=null,hs=!1,ps=0,la.current=null,s===null||s.return===null){Be=1,ws=t,Re=null;break}e:{var d=e,m=s.return,y=s,k=t;if(t=We,y.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var I=k,b=y,B=b.tag;if((b.mode&1)===0&&(B===0||B===11||B===15)){var R=b.alternate;R?(b.updateQueue=R.updateQueue,b.memoizedState=R.memoizedState,b.lanes=R.lanes):(b.updateQueue=null,b.memoizedState=null)}var H=yf(m);if(H!==null){H.flags&=-257,vf(H,m,y,d,t),H.mode&1&&gf(d,I,t),t=H,k=I;var Y=t.updateQueue;if(Y===null){var G=new Set;G.add(k),t.updateQueue=G}else Y.add(k);break e}else{if((t&1)===0){gf(d,I,t),ma();break e}k=Error(r(426))}}else if(Ce&&y.mode&1){var je=yf(m);if(je!==null){(je.flags&65536)===0&&(je.flags|=256),vf(je,m,y,d,t),Co(hr(k,y));break e}}d=k=hr(k,y),Be!==4&&(Be=2),Ss===null?Ss=[d]:Ss.push(d),d=m;do{switch(d.tag){case 3:d.flags|=65536,t&=-t,d.lanes|=t;var _=pf(d,k,t);zc(d,_);break e;case 1:y=k;var x=d.type,$=d.stateNode;if((d.flags&128)===0&&(typeof x.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(mn===null||!mn.has($)))){d.flags|=65536,t&=-t,d.lanes|=t;var F=mf(d,y,t);zc(d,F);break e}}d=d.return}while(d!==null)}Jf(s)}catch(X){t=X,Re===s&&s!==null&&(Re=s=s.return);continue}break}while(!0)}function Hf(){var e=Oi.current;return Oi.current=xi,e===null?xi:e}function ma(){(Be===0||Be===3||Be===2)&&(Be=4),Ue===null||(An&268435455)===0&&($i&268435455)===0||vn(Ue,We)}function Ri(e,t){var s=de;de|=2;var a=Hf();(Ue!==e||We!==t)&&(Gt=null,jn(e,t));do try{Dm();break}catch(c){qf(e,c)}while(!0);if(Lo(),de=s,Oi.current=a,Re!==null)throw Error(r(261));return Ue=null,We=0,Be}function Dm(){for(;Re!==null;)Qf(Re)}function bm(){for(;Re!==null&&!up();)Qf(Re)}function Qf(e){var t=Xf(e.alternate,e,yt);e.memoizedProps=e.pendingProps,t===null?Jf(e):Re=t,la.current=null}function Jf(e){var t=e;do{var s=t.alternate;if(e=t.return,(t.flags&32768)===0){if(s=$m(s,t,yt),s!==null){Re=s;return}}else{if(s=Im(s,t),s!==null){s.flags&=32767,Re=s;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Be=6,Re=null;return}}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);Be===0&&(Be=5)}function Mn(e,t,s){var a=ye,c=Nt.transition;try{Nt.transition=null,ye=1,Bm(e,t,s,a)}finally{Nt.transition=c,ye=a}return null}function Bm(e,t,s,a){do yr();while(gn!==null);if((de&6)!==0)throw Error(r(327));s=e.finishedWork;var c=e.finishedLanes;if(s===null)return null;if(e.finishedWork=null,e.finishedLanes=0,s===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var d=s.lanes|s.childLanes;if(wp(e,d),e===Ue&&(Re=Ue=null,We=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||Ai||(Ai=!0,Zf(zs,function(){return yr(),null})),d=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||d){d=Nt.transition,Nt.transition=null;var m=ye;ye=1;var y=de;de|=4,la.current=null,Pm(e,s),Bf(s,e),im(mo),Hs=!!po,mo=po=null,e.current=s,jm(s),cp(),de=y,ye=m,Nt.transition=d}else e.current=s;if(Ai&&(Ai=!1,gn=e,Pi=c),d=e.pendingLanes,d===0&&(mn=null),hp(s.stateNode),at(e,Pe()),t!==null)for(a=e.onRecoverableError,s=0;s<t.length;s++)c=t[s],a(c.value,{componentStack:c.stack,digest:c.digest});if(Ii)throw Ii=!1,e=ua,ua=null,e;return(Pi&1)!==0&&e.tag!==0&&yr(),d=e.pendingLanes,(d&1)!==0?e===ca?ks++:(ks=0,ca=e):ks=0,fn(),null}function yr(){if(gn!==null){var e=Ru(Pi),t=Nt.transition,s=ye;try{if(Nt.transition=null,ye=16>e?16:e,gn===null)var a=!1;else{if(e=gn,gn=null,Pi=0,(de&6)!==0)throw Error(r(331));var c=de;for(de|=4,Q=e.current;Q!==null;){var d=Q,m=d.child;if((Q.flags&16)!==0){var y=d.deletions;if(y!==null){for(var k=0;k<y.length;k++){var I=y[k];for(Q=I;Q!==null;){var b=Q;switch(b.tag){case 0:case 11:case 15:vs(8,b,d)}var B=b.child;if(B!==null)B.return=b,Q=B;else for(;Q!==null;){b=Q;var R=b.sibling,H=b.return;if(jf(b),b===I){Q=null;break}if(R!==null){R.return=H,Q=R;break}Q=H}}}var Y=d.alternate;if(Y!==null){var G=Y.child;if(G!==null){Y.child=null;do{var je=G.sibling;G.sibling=null,G=je}while(G!==null)}}Q=d}}if((d.subtreeFlags&2064)!==0&&m!==null)m.return=d,Q=m;else e:for(;Q!==null;){if(d=Q,(d.flags&2048)!==0)switch(d.tag){case 0:case 11:case 15:vs(9,d,d.return)}var _=d.sibling;if(_!==null){_.return=d.return,Q=_;break e}Q=d.return}}var x=e.current;for(Q=x;Q!==null;){m=Q;var $=m.child;if((m.subtreeFlags&2064)!==0&&$!==null)$.return=m,Q=$;else e:for(m=x;Q!==null;){if(y=Q,(y.flags&2048)!==0)try{switch(y.tag){case 0:case 11:case 15:Li(9,y)}}catch(X){Ae(y,y.return,X)}if(y===m){Q=null;break e}var F=y.sibling;if(F!==null){F.return=y.return,Q=F;break e}Q=y.return}}if(de=c,fn(),Dt&&typeof Dt.onPostCommitFiberRoot=="function")try{Dt.onPostCommitFiberRoot(Fs,e)}catch{}a=!0}return a}finally{ye=s,Nt.transition=t}}return!1}function Yf(e,t,s){t=hr(s,t),t=pf(e,t,1),e=hn(e,t,1),t=tt(),e!==null&&(Wr(e,1,t),at(e,t))}function Ae(e,t,s){if(e.tag===3)Yf(e,e,s);else for(;t!==null;){if(t.tag===3){Yf(t,e,s);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(mn===null||!mn.has(a))){e=hr(s,e),e=mf(t,e,1),t=hn(t,e,1),e=tt(),t!==null&&(Wr(t,1,e),at(t,e));break}}t=t.return}}function zm(e,t,s){var a=e.pingCache;a!==null&&a.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&s,Ue===e&&(We&s)===s&&(Be===4||Be===3&&(We&130023424)===We&&500>Pe()-aa?jn(e,0):oa|=s),at(e,t)}function Gf(e,t){t===0&&((e.mode&1)===0?t=1:(t=Vs,Vs<<=1,(Vs&130023424)===0&&(Vs=4194304)));var s=tt();e=Qt(e,t),e!==null&&(Wr(e,t,s),at(e,s))}function Fm(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),Gf(e,s)}function Um(e,t){var s=0;switch(e.tag){case 13:var a=e.stateNode,c=e.memoizedState;c!==null&&(s=c.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(r(314))}a!==null&&a.delete(t),Gf(e,s)}var Xf;Xf=function(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps||st.current)lt=!0;else{if((e.lanes&s)===0&&(t.flags&128)===0)return lt=!1,Om(e,t,s);lt=(e.flags&131072)!==0}else lt=!1,Ce&&(t.flags&1048576)!==0&&$c(t,fi,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Ci(e,t),e=t.pendingProps;var c=ir(t,Qe.current);fr(t,s),c=Bo(null,t,a,e,c,s);var d=zo();return t.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,it(a)?(d=!0,ai(t)):d=!1,t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,Ao(t),c.updater=Ni,t.stateNode=c,c._reactInternals=t,qo(t,a,e,s),t=Yo(null,t,a,!0,d,s)):(t.tag=0,Ce&&d&&Eo(t),et(null,t,c,s),t=t.child),t;case 16:a=t.elementType;e:{switch(Ci(e,t),e=t.pendingProps,c=a._init,a=c(a._payload),t.type=a,c=t.tag=Km(a),e=It(a,e),c){case 0:t=Jo(null,t,a,e,s);break e;case 1:t=Nf(null,t,a,e,s);break e;case 11:t=wf(null,t,a,e,s);break e;case 14:t=Sf(null,t,a,It(a.type,e),s);break e}throw Error(r(306,a,""))}return t;case 0:return a=t.type,c=t.pendingProps,c=t.elementType===a?c:It(a,c),Jo(e,t,a,c,s);case 1:return a=t.type,c=t.pendingProps,c=t.elementType===a?c:It(a,c),Nf(e,t,a,c,s);case 3:e:{if(Tf(t),e===null)throw Error(r(387));a=t.pendingProps,d=t.memoizedState,c=d.element,Bc(e,t),yi(t,a,null,s);var m=t.memoizedState;if(a=m.element,d.isDehydrated)if(d={element:a,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){c=hr(Error(r(423)),t),t=Cf(e,t,a,s,c);break e}else if(a!==c){c=hr(Error(r(424)),t),t=Cf(e,t,a,s,c);break e}else for(gt=an(t.stateNode.containerInfo.firstChild),mt=t,Ce=!0,$t=null,s=Dc(t,null,a,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(ar(),a===c){t=Yt(e,t,s);break e}et(e,t,a,s)}t=t.child}return t;case 5:return Uc(t),e===null&&To(t),a=t.type,c=t.pendingProps,d=e!==null?e.memoizedProps:null,m=c.children,go(a,c)?m=null:d!==null&&go(a,d)&&(t.flags|=32),xf(e,t),et(e,t,m,s),t.child;case 6:return e===null&&To(t),null;case 13:return _f(e,t,s);case 4:return Po(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ur(t,null,a,s):et(e,t,a,s),t.child;case 11:return a=t.type,c=t.pendingProps,c=t.elementType===a?c:It(a,c),wf(e,t,a,c,s);case 7:return et(e,t,t.pendingProps,s),t.child;case 8:return et(e,t,t.pendingProps.children,s),t.child;case 12:return et(e,t,t.pendingProps.children,s),t.child;case 10:e:{if(a=t.type._context,c=t.pendingProps,d=t.memoizedProps,m=c.value,ke(pi,a._currentValue),a._currentValue=m,d!==null)if(Ot(d.value,m)){if(d.children===c.children&&!st.current){t=Yt(e,t,s);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var y=d.dependencies;if(y!==null){m=d.child;for(var k=y.firstContext;k!==null;){if(k.context===a){if(d.tag===1){k=Jt(-1,s&-s),k.tag=2;var I=d.updateQueue;if(I!==null){I=I.shared;var b=I.pending;b===null?k.next=k:(k.next=b.next,b.next=k),I.pending=k}}d.lanes|=s,k=d.alternate,k!==null&&(k.lanes|=s),$o(d.return,s,t),y.lanes|=s;break}k=k.next}}else if(d.tag===10)m=d.type===t.type?null:d.child;else if(d.tag===18){if(m=d.return,m===null)throw Error(r(341));m.lanes|=s,y=m.alternate,y!==null&&(y.lanes|=s),$o(m,s,t),m=d.sibling}else m=d.child;if(m!==null)m.return=d;else for(m=d;m!==null;){if(m===t){m=null;break}if(d=m.sibling,d!==null){d.return=m.return,m=d;break}m=m.return}d=m}et(e,t,c.children,s),t=t.child}return t;case 9:return c=t.type,a=t.pendingProps.children,fr(t,s),c=Et(c),a=a(c),t.flags|=1,et(e,t,a,s),t.child;case 14:return a=t.type,c=It(a,t.pendingProps),c=It(a.type,c),Sf(e,t,a,c,s);case 15:return kf(e,t,t.type,t.pendingProps,s);case 17:return a=t.type,c=t.pendingProps,c=t.elementType===a?c:It(a,c),Ci(e,t),t.tag=1,it(a)?(e=!0,ai(t)):e=!1,fr(t,s),df(t,a,c),qo(t,a,c,s),Yo(null,t,a,!0,e,s);case 19:return Of(e,t,s);case 22:return Ef(e,t,s)}throw Error(r(156,t.tag))};function Zf(e,t){return Iu(e,t)}function Vm(e,t,s,a){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(e,t,s,a){return new Vm(e,t,s,a)}function ga(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Km(e){if(typeof e=="function")return ga(e)?1:0;if(e!=null){if(e=e.$$typeof,e===j)return 11;if(e===rt)return 14}return 2}function wn(e,t){var s=e.alternate;return s===null?(s=Tt(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&14680064,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s}function Di(e,t,s,a,c,d){var m=2;if(a=e,typeof e=="function")ga(e)&&(m=1);else if(typeof e=="string")m=5;else e:switch(e){case ee:return Rn(s.children,c,d,t);case U:m=8,c|=8;break;case O:return e=Tt(12,s,t,c|2),e.elementType=O,e.lanes=d,e;case Z:return e=Tt(13,s,t,c),e.elementType=Z,e.lanes=d,e;case we:return e=Tt(19,s,t,c),e.elementType=we,e.lanes=d,e;case Ne:return bi(s,c,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case se:m=10;break e;case oe:m=9;break e;case j:m=11;break e;case rt:m=14;break e;case He:m=16,a=null;break e}throw Error(r(130,e==null?e:typeof e,""))}return t=Tt(m,s,t,c),t.elementType=e,t.type=a,t.lanes=d,t}function Rn(e,t,s,a){return e=Tt(7,e,a,t),e.lanes=s,e}function bi(e,t,s,a){return e=Tt(22,e,a,t),e.elementType=Ne,e.lanes=s,e.stateNode={isHidden:!1},e}function ya(e,t,s){return e=Tt(6,e,null,t),e.lanes=s,e}function va(e,t,s){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wm(e,t,s,a,c){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Kl(0),this.expirationTimes=Kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kl(0),this.identifierPrefix=a,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function wa(e,t,s,a,c,d,m,y,k){return e=new Wm(e,t,s,y,k),t===1?(t=1,d===!0&&(t|=8)):t=0,d=Tt(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:a,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ao(d),e}function qm(e,t,s){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:a==null?null:""+a,children:e,containerInfo:t,implementation:s}}function ed(e){if(!e)return cn;e=e._reactInternals;e:{if(Nn(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(it(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var s=e.type;if(it(s))return _c(e,s,t)}return t}function td(e,t,s,a,c,d,m,y,k){return e=wa(s,a,!0,e,c,d,m,y,k),e.context=ed(null),s=e.current,a=tt(),c=yn(s),d=Jt(a,c),d.callback=t??null,hn(s,d,c),e.current.lanes=c,Wr(e,c,a),at(e,a),e}function Bi(e,t,s,a){var c=t.current,d=tt(),m=yn(c);return s=ed(s),t.context===null?t.context=s:t.pendingContext=s,t=Jt(d,m),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),e=hn(c,t,m),e!==null&&(jt(e,c,m,d),gi(e,c,m)),m}function zi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function nd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<t?s:t}}function Sa(e,t){nd(e,t),(e=e.alternate)&&nd(e,t)}function Hm(){return null}var rd=typeof reportError=="function"?reportError:function(e){console.error(e)};function ka(e){this._internalRoot=e}Fi.prototype.render=ka.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));Bi(e,t,null,null)},Fi.prototype.unmount=ka.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pn(function(){Bi(null,e,null,null)}),t[Kt]=null}};function Fi(e){this._internalRoot=e}Fi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bu();e={blockedOn:null,target:e,priority:t};for(var s=0;s<sn.length&&t!==0&&t<sn[s].priority;s++);sn.splice(s,0,e),s===0&&Uu(e)}};function Ea(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ui(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function sd(){}function Qm(e,t,s,a,c){if(c){if(typeof a=="function"){var d=a;a=function(){var I=zi(m);d.call(I)}}var m=td(t,a,e,0,null,!1,!1,"",sd);return e._reactRootContainer=m,e[Kt]=m.current,is(e.nodeType===8?e.parentNode:e),Pn(),m}for(;c=e.lastChild;)e.removeChild(c);if(typeof a=="function"){var y=a;a=function(){var I=zi(k);y.call(I)}}var k=wa(e,0,!1,null,null,!1,!1,"",sd);return e._reactRootContainer=k,e[Kt]=k.current,is(e.nodeType===8?e.parentNode:e),Pn(function(){Bi(t,k,s,a)}),k}function Vi(e,t,s,a,c){var d=s._reactRootContainer;if(d){var m=d;if(typeof c=="function"){var y=c;c=function(){var k=zi(m);y.call(k)}}Bi(t,m,e,c)}else m=Qm(s,t,e,c,a);return zi(m)}Du=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var s=Kr(t.pendingLanes);s!==0&&(Wl(t,s|1),at(t,Pe()),(de&6)===0&&(gr=Pe()+500,fn()))}break;case 13:Pn(function(){var a=Qt(e,1);if(a!==null){var c=tt();jt(a,e,1,c)}}),Sa(e,1)}},ql=function(e){if(e.tag===13){var t=Qt(e,134217728);if(t!==null){var s=tt();jt(t,e,134217728,s)}Sa(e,134217728)}},bu=function(e){if(e.tag===13){var t=yn(e),s=Qt(e,t);if(s!==null){var a=tt();jt(s,e,t,a)}Sa(e,t)}},Bu=function(){return ye},zu=function(e,t){var s=ye;try{return ye=e,t()}finally{ye=s}},bl=function(e,t,s){switch(t){case"input":if($l(e,s),t=s.name,s.type==="radio"&&t!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<s.length;t++){var a=s[t];if(a!==e&&a.form===e.form){var c=li(a);if(!c)throw Error(r(90));cu(a),$l(a,c)}}}break;case"textarea":mu(e,s);break;case"select":t=s.value,t!=null&&Hn(e,!!s.multiple,t,!1)}},Nu=ha,Tu=Pn;var Jm={usingClientEntryPoint:!1,Events:[as,rr,li,Eu,xu,ha]},Es={findFiberByHostInstance:Tn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ym={bundleType:Es.bundleType,version:Es.version,rendererPackageName:Es.rendererPackageName,rendererConfig:Es.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:V.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ou(e),e===null?null:e.stateNode},findFiberByHostInstance:Es.findFiberByHostInstance||Hm,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ki=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ki.isDisabled&&Ki.supportsFiber)try{Fs=Ki.inject(Ym),Dt=Ki}catch{}}return ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jm,ut.createPortal=function(e,t){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ea(t))throw Error(r(200));return qm(e,t,null,s)},ut.createRoot=function(e,t){if(!Ea(e))throw Error(r(299));var s=!1,a="",c=rd;return t!=null&&(t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=wa(e,1,!1,null,null,s,!1,a,c),e[Kt]=t.current,is(e.nodeType===8?e.parentNode:e),new ka(t)},ut.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=Ou(t),e=e===null?null:e.stateNode,e},ut.flushSync=function(e){return Pn(e)},ut.hydrate=function(e,t,s){if(!Ui(t))throw Error(r(200));return Vi(null,e,t,!0,s)},ut.hydrateRoot=function(e,t,s){if(!Ea(e))throw Error(r(405));var a=s!=null&&s.hydratedSources||null,c=!1,d="",m=rd;if(s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onRecoverableError!==void 0&&(m=s.onRecoverableError)),t=td(t,null,e,1,s??null,c,!1,d,m),e[Kt]=t.current,is(e),a)for(e=0;e<a.length;e++)s=a[e],c=s._getVersion,c=c(s._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[s,c]:t.mutableSourceEagerHydrationData.push(s,c);return new Fi(t)},ut.render=function(e,t,s){if(!Ui(t))throw Error(r(200));return Vi(null,e,t,!1,s)},ut.unmountComponentAtNode=function(e){if(!Ui(e))throw Error(r(40));return e._reactRootContainer?(Pn(function(){Vi(null,null,e,!1,function(){e._reactRootContainer=null,e[Kt]=null})}),!0):!1},ut.unstable_batchedUpdates=ha,ut.unstable_renderSubtreeIntoContainer=function(e,t,s,a){if(!Ui(s))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Vi(e,t,s,!1,a)},ut.version="18.3.1-next-f1338f8080-20240426",ut}var pd;function dg(){if(pd)return Ta.exports;pd=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Ta.exports=fg(),Ta.exports}var md;function hg(){if(md)return Wi;md=1;var i=dg();return Wi.createRoot=i.createRoot,Wi.hydrateRoot=i.hydrateRoot,Wi}var pg=hg();const mg="modulepreload",gg=function(i){return"/"+i},gd={},yg=function(n,r,l){let o=Promise.resolve();if(r&&r.length>0){let f=function(g){return Promise.all(g.map(N=>Promise.resolve(N).then(S=>({status:"fulfilled",value:S}),S=>({status:"rejected",reason:S}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),p=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));o=f(r.map(g=>{if(g=gg(g),g in gd)return;gd[g]=!0;const N=g.endsWith(".css"),S=N?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${S}`))return;const T=document.createElement("link");if(T.rel=N?"stylesheet":mg,N||(T.as="script"),T.crossOrigin="",T.href=g,p&&T.setAttribute("nonce",p),document.head.appendChild(T),N)return new Promise((E,L)=>{T.addEventListener("load",E),T.addEventListener("error",()=>L(new Error(`Unable to preload CSS for ${g}`)))})}))}function u(f){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=f,window.dispatchEvent(h),!h.defaultPrevented)throw f}return o.then(f=>{for(const h of f||[])h.status==="rejected"&&u(h.reason);return n().catch(u)})};function vg(i,n){const r=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,l=[];let o,u={},f=!1,h=n==null?void 0:n.fg,p=n==null?void 0:n.bg;for(;(o=r.exec(i))!==null;){const[,,g,,N]=o;if(g){const S=+g;switch(S){case 0:u={};break;case 1:u["font-weight"]="bold";break;case 2:u.opacity="0.8";break;case 3:u["font-style"]="italic";break;case 4:u["text-decoration"]="underline";break;case 7:f=!0;break;case 8:u.display="none";break;case 9:u["text-decoration"]="line-through";break;case 22:delete u["font-weight"],delete u["font-style"],delete u.opacity,delete u["text-decoration"];break;case 23:delete u["font-weight"],delete u["font-style"],delete u.opacity;break;case 24:delete u["text-decoration"];break;case 27:f=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:h=yd[S-30];break;case 39:h=n==null?void 0:n.fg;break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:p=yd[S-40];break;case 49:p=n==null?void 0:n.bg;break;case 53:u["text-decoration"]="overline";break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:h=vd[S-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:p=vd[S-100];break}}else if(N){const S={...u},T=f?p:h;T!==void 0&&(S.color=T);const E=f?h:p;E!==void 0&&(S["background-color"]=E),l.push(`<span style="${Sg(S)}">${wg(N)}</span>`)}}return l.join("")}const yd={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)"},vd={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 wg(i){return i.replace(/[&"<>]/g,n=>({"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"})[n])}function Sg(i){return Object.entries(i).map(([n,r])=>`${n}: ${r}`).join("; ")}const La=({text:i,highlighter:n,mimeType:r,linkify:l,readOnly:o,highlight:u,revealLine:f,lineNumbers:h,isFocused:p,focusOnChange:g,wrapLines:N,onChange:S,dataTestId:T,placeholder:E})=>{const[L,v]=Dd(),[w]=fe.useState(yg(()=>import("./codeMirrorModule-Cd2xO0gi.js"),__vite__mapDeps([0,1])).then(V=>V.default)),A=fe.useRef(null),[P,M]=fe.useState();return fe.useEffect(()=>{(async()=>{var U,O;const V=await w;Eg(V);const q=v.current;if(!q)return;const z=Ng(n)||xg(r)||(l?"text/linkified":"");if(A.current&&z===A.current.cm.getOption("mode")&&!!o===A.current.cm.getOption("readOnly")&&h===A.current.cm.getOption("lineNumbers")&&N===A.current.cm.getOption("lineWrapping")&&E===A.current.cm.getOption("placeholder"))return;(O=(U=A.current)==null?void 0:U.cm)==null||O.getWrapperElement().remove();const ee=V(q,{value:"",mode:z,readOnly:!!o,lineNumbers:h,lineWrapping:N,placeholder:E});return A.current={cm:ee},p&&ee.focus(),M(ee),ee})()},[w,P,v,n,r,l,h,N,o,p,E]),fe.useEffect(()=>{A.current&&A.current.cm.setSize(L.width,L.height)},[L]),fe.useLayoutEffect(()=>{var z;if(!P)return;let V=!1;if(P.getValue()!==i&&(P.setValue(i),V=!0,g&&(P.execCommand("selectAll"),P.focus())),V||JSON.stringify(u)!==JSON.stringify(A.current.highlight)){for(const O of A.current.highlight||[])P.removeLineClass(O.line-1,"wrap");for(const O of u||[])P.addLineClass(O.line-1,"wrap",`source-line-${O.type}`);for(const O of A.current.widgets||[])P.removeLineWidget(O);for(const O of A.current.markers||[])O.clear();const ee=[],U=[];for(const O of u||[]){if(O.type!=="subtle-error"&&O.type!=="error")continue;const se=(z=A.current)==null?void 0:z.cm.getLine(O.line-1);if(se){const oe={};oe.title=O.message||"",U.push(P.markText({line:O.line-1,ch:0},{line:O.line-1,ch:O.column||se.length},{className:"source-line-error-underline",attributes:oe}))}if(O.type==="error"){const oe=document.createElement("div");oe.innerHTML=vg(O.message||""),oe.className="source-line-error-widget",ee.push(P.addLineWidget(O.line,oe,{above:!0,coverGutter:!1}))}}A.current.highlight=u,A.current.widgets=ee,A.current.markers=U}typeof f=="number"&&A.current.cm.lineCount()>=f&&P.scrollIntoView({line:Math.max(0,f-1),ch:0},50);let q;return S&&(q=()=>S(P.getValue()),P.on("change",q)),()=>{q&&P.off("change",q)}},[P,i,u,f,g,S]),K.jsx("div",{"data-testid":T,className:"cm-wrapper",ref:v,onClick:kg})};function kg(i){var r;if(!(i.target instanceof HTMLElement))return;let n;i.target.classList.contains("cm-linkified")?n=i.target.textContent:i.target.classList.contains("cm-link")&&((r=i.target.nextElementSibling)!=null&&r.classList.contains("cm-url"))&&(n=i.target.nextElementSibling.textContent.slice(1,-1)),n&&(i.preventDefault(),i.stopPropagation(),window.open(n,"_blank"))}let wd=!1;function Eg(i){wd||(wd=!0,i.defineSimpleMode("text/linkified",{start:[{regex:sg,token:"linkified"}]}))}function xg(i){if(i){if(i.includes("javascript")||i.includes("json"))return"javascript";if(i.includes("python"))return"python";if(i.includes("csharp"))return"text/x-csharp";if(i.includes("java"))return"text/x-java";if(i.includes("markdown"))return"markdown";if(i.includes("html")||i.includes("svg"))return"htmlmixed";if(i.includes("css"))return"css"}}function Ng(i){if(i)return{javascript:"javascript",jsonl:"javascript",python:"python",csharp:"text/x-csharp",java:"text/x-java",markdown:"markdown",html:"htmlmixed",css:"css",yaml:"yaml"}[i]}const Tg=50,Cg=({sidebarSize:i,sidebarHidden:n=!1,sidebarIsFirst:r=!1,orientation:l="vertical",minSidebarSize:o=Tg,settingName:u,sidebar:f,main:h})=>{const p=Math.max(o,i)*window.devicePixelRatio,[g,N]=ll(u?u+"."+l+":size":void 0,p),[S,T]=ll(u?u+"."+l+":size":void 0,p),[E,L]=fe.useState(null),[v,w]=Dd();let A;l==="vertical"?(A=S/window.devicePixelRatio,v&&v.height<A&&(A=v.height-10)):(A=g/window.devicePixelRatio,v&&v.width<A&&(A=v.width-10)),document.body.style.userSelect=E?"none":"inherit";let P={};return l==="vertical"?r?P={top:E?0:A-4,bottom:E?0:void 0,height:E?"initial":8}:P={bottom:E?0:A-4,top:E?0:void 0,height:E?"initial":8}:r?P={left:E?0:A-4,right:E?0:void 0,width:E?"initial":8}:P={right:E?0:A-4,left:E?0:void 0,width:E?"initial":8},K.jsxs("div",{className:Vn("split-view",l,r&&"sidebar-first"),ref:w,children:[K.jsx("div",{className:"split-view-main",children:h}),!n&&K.jsx("div",{style:{flexBasis:A},className:"split-view-sidebar",children:f}),!n&&K.jsx("div",{style:P,className:"split-view-resizer",onMouseDown:M=>L({offset:l==="vertical"?M.clientY:M.clientX,size:A}),onMouseUp:()=>L(null),onMouseMove:M=>{if(!M.buttons)L(null);else if(E){const q=(l==="vertical"?M.clientY:M.clientX)-E.offset,z=r?E.size+q:E.size-q,U=M.target.parentElement.getBoundingClientRect(),O=Math.min(Math.max(o,z),(l==="vertical"?U.height:U.width)-o);l==="vertical"?T(O*window.devicePixelRatio):N(O*window.devicePixelRatio)}}})]})},bd=({noShadow:i,children:n,noMinHeight:r,className:l,sidebarBackground:o,onClick:u})=>K.jsx("div",{className:Vn("toolbar",i&&"no-shadow",r&&"no-min-height",l,o&&"toolbar-sidebar-background"),onClick:u,children:n}),_g=({tabs:i,selectedTab:n,setSelectedTab:r,leftToolbar:l,rightToolbar:o,dataTestId:u,mode:f})=>{const h=fe.useId();return n||(n=i[0].id),f||(f="default"),K.jsx("div",{className:"tabbed-pane","data-testid":u,children:K.jsxs("div",{className:"vbox",children:[K.jsxs(bd,{children:[l&&K.jsxs("div",{style:{flex:"none",display:"flex",margin:"0 4px",alignItems:"center"},children:[...l]}),f==="default"&&K.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:[...i.map(p=>K.jsx(Lg,{id:p.id,ariaControls:`${h}-${p.id}`,title:p.title,count:p.count,errorCount:p.errorCount,selected:n===p.id,onSelect:r},p.id))]}),f==="select"&&K.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:K.jsx("select",{style:{width:"100%",background:"none",cursor:"pointer"},value:n,onChange:p=>{r==null||r(i[p.currentTarget.selectedIndex].id)},children:i.map(p=>{let g="";return p.count&&(g=` (${p.count})`),p.errorCount&&(g=` (${p.errorCount})`),K.jsxs("option",{value:p.id,role:"tab","aria-controls":`${h}-${p.id}`,children:[p.title,g]},p.id)})})}),o&&K.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:[...o]})]}),i.map(p=>{const g="tab-content tab-"+p.id;if(p.component)return K.jsx("div",{id:`${h}-${p.id}`,role:"tabpanel","aria-label":p.title,className:g,style:{display:n===p.id?"inherit":"none"},children:p.component},p.id);if(n===p.id)return K.jsx("div",{id:`${h}-${p.id}`,role:"tabpanel","aria-label":p.title,className:g,children:p.render()},p.id)})]})})},Lg=({id:i,title:n,count:r,errorCount:l,selected:o,onSelect:u,ariaControls:f})=>K.jsxs("div",{className:Vn("tabbed-pane-tab",o&&"selected"),onClick:()=>u==null?void 0:u(i),role:"tab",title:n,"aria-controls":f,children:[K.jsx("div",{className:"tabbed-pane-tab-label",children:n}),!!r&&K.jsx("div",{className:"tabbed-pane-tab-counter",children:r}),!!l&&K.jsx("div",{className:"tabbed-pane-tab-counter error",children:l})]}),Og=({sources:i,fileId:n,setFileId:r})=>K.jsx("select",{className:"source-chooser",hidden:!i.length,title:"Source chooser",value:n,onChange:l=>{r(l.target.selectedOptions[0].value)},children:$g(i)});function $g(i){const n=o=>o.replace(/.*[/\\]([^/\\]+)/,"$1"),r=o=>K.jsx("option",{value:o.id,children:n(o.label)},o.id),l=new Map;for(const o of i){let u=l.get(o.group||"Debugger");u||(u=[],l.set(o.group||"Debugger",u)),u.push(o)}return[...l.entries()].map(([o,u])=>K.jsx("optgroup",{label:o,children:u.filter(f=>(f.group||"Debugger")===o).map(f=>r(f))},o))}function Ig(){return{id:"default",isRecorded:!1,text:"",language:"javascript",label:"",highlight:[]}}const vt=fe.forwardRef(function({children:n,title:r="",icon:l,disabled:o=!1,toggled:u=!1,onClick:f=()=>{},style:h,testId:p,className:g,ariaLabel:N},S){return K.jsxs("button",{ref:S,className:Vn(g,"toolbar-button",l,u&&"toggled"),onMouseDown:kd,onClick:f,onDoubleClick:kd,title:r,disabled:!!o,style:h,"data-testid":p,"aria-label":N||r,children:[l&&K.jsx("span",{className:`codicon codicon-${l}`,style:n?{marginRight:5}:{}}),n]})}),Sd=({style:i})=>K.jsx("div",{className:"toolbar-separator",style:i}),kd=i=>{i.stopPropagation(),i.preventDefault()},De=function(i,n,r){return i>=n&&i<=r};function ct(i){return De(i,48,57)}function Ed(i){return ct(i)||De(i,65,70)||De(i,97,102)}function Ag(i){return De(i,65,90)}function Pg(i){return De(i,97,122)}function jg(i){return Ag(i)||Pg(i)}function Mg(i){return i>=128}function Gi(i){return jg(i)||Mg(i)||i===95}function xd(i){return Gi(i)||ct(i)||i===45}function Rg(i){return De(i,0,8)||i===11||De(i,14,31)||i===127}function Xi(i){return i===10}function Xt(i){return Xi(i)||i===9||i===32}const Dg=1114111;class Qa extends Error{constructor(n){super(n),this.name="InvalidCharacterError"}}function bg(i){const n=[];for(let r=0;r<i.length;r++){let l=i.charCodeAt(r);if(l===13&&i.charCodeAt(r+1)===10&&(l=10,r++),(l===13||l===12)&&(l=10),l===0&&(l=65533),De(l,55296,56319)&&De(i.charCodeAt(r+1),56320,57343)){const o=l-55296,u=i.charCodeAt(r+1)-56320;l=Math.pow(2,16)+o*Math.pow(2,10)+u,r++}n.push(l)}return n}function ze(i){if(i<=65535)return String.fromCharCode(i);i-=Math.pow(2,16);const n=Math.floor(i/Math.pow(2,10))+55296,r=i%Math.pow(2,10)+56320;return String.fromCharCode(n)+String.fromCharCode(r)}function Bg(i){const n=bg(i);let r=-1;const l=[];let o;const u=function(j){return j>=n.length?-1:n[j]},f=function(j){if(j===void 0&&(j=1),j>3)throw"Spec Error: no more than three codepoints of lookahead.";return u(r+j)},h=function(j){return j===void 0&&(j=1),r+=j,o=u(r),!0},p=function(){return r-=1,!0},g=function(j){return j===void 0&&(j=o),j===-1},N=function(){if(S(),h(),Xt(o)){for(;Xt(f());)h();return new Ba}else{if(o===34)return L();if(o===35)if(xd(f())||A(f(1),f(2))){const j=new Zd("");return M(f(1),f(2),f(3))&&(j.type="id"),j.value=ee(),j}else return new Xe(o);else return o===36?f()===61?(h(),new Vg):new Xe(o):o===39?L():o===40?new Qd:o===41?new Jd:o===42?f()===61?(h(),new Kg):new Xe(o):o===43?z()?(p(),T()):new Xe(o):o===44?new Kd:o===45?z()?(p(),T()):f(1)===45&&f(2)===62?(h(2),new Fd):V()?(p(),E()):new Xe(o):o===46?z()?(p(),T()):new Xe(o):o===58?new Ud:o===59?new Vd:o===60?f(1)===33&&f(2)===45&&f(3)===45?(h(3),new zd):new Xe(o):o===64?M(f(1),f(2),f(3))?new Xd(ee()):new Xe(o):o===91?new Hd:o===92?P()?(p(),E()):new Xe(o):o===93?new za:o===94?f()===61?(h(),new Ug):new Xe(o):o===123?new Wd:o===124?f()===61?(h(),new Fg):f()===124?(h(),new Yd):new Xe(o):o===125?new qd:o===126?f()===61?(h(),new zg):new Xe(o):ct(o)?(p(),T()):Gi(o)?(p(),E()):g()?new el:new Xe(o)}},S=function(){for(;f(1)===47&&f(2)===42;)for(h(2);;)if(h(),o===42&&f()===47){h();break}else if(g())return},T=function(){const j=U();if(M(f(1),f(2),f(3))){const Z=new Wg;return Z.value=j.value,Z.repr=j.repr,Z.type=j.type,Z.unit=ee(),Z}else if(f()===37){h();const Z=new rh;return Z.value=j.value,Z.repr=j.repr,Z}else{const Z=new nh;return Z.value=j.value,Z.repr=j.repr,Z.type=j.type,Z}},E=function(){const j=ee();if(j.toLowerCase()==="url"&&f()===40){for(h();Xt(f(1))&&Xt(f(2));)h();return f()===34||f()===39?new tl(j):Xt(f())&&(f(2)===34||f(2)===39)?new tl(j):v()}else return f()===40?(h(),new tl(j)):new Gd(j)},L=function(j){j===void 0&&(j=o);let Z="";for(;h();){if(o===j||g())return new eh(Z);if(Xi(o))return p(),new Bd;o===92?g(f())||(Xi(f())?h():Z+=ze(w())):Z+=ze(o)}throw new Error("Internal error")},v=function(){const j=new th("");for(;Xt(f());)h();if(g(f()))return j;for(;h();){if(o===41||g())return j;if(Xt(o)){for(;Xt(f());)h();return f()===41||g(f())?(h(),j):(se(),new Zi)}else{if(o===34||o===39||o===40||Rg(o))return se(),new Zi;if(o===92)if(P())j.value+=ze(w());else return se(),new Zi;else j.value+=ze(o)}}throw new Error("Internal error")},w=function(){if(h(),Ed(o)){const j=[o];for(let we=0;we<5&&Ed(f());we++)h(),j.push(o);Xt(f())&&h();let Z=parseInt(j.map(function(we){return String.fromCharCode(we)}).join(""),16);return Z>Dg&&(Z=65533),Z}else return g()?65533:o},A=function(j,Z){return!(j!==92||Xi(Z))},P=function(){return A(o,f())},M=function(j,Z,we){return j===45?Gi(Z)||Z===45||A(Z,we):Gi(j)?!0:j===92?A(j,Z):!1},V=function(){return M(o,f(1),f(2))},q=function(j,Z,we){return j===43||j===45?!!(ct(Z)||Z===46&&ct(we)):j===46?!!ct(Z):!!ct(j)},z=function(){return q(o,f(1),f(2))},ee=function(){let j="";for(;h();)if(xd(o))j+=ze(o);else if(P())j+=ze(w());else return p(),j;throw new Error("Internal parse error")},U=function(){let j="",Z="integer";for((f()===43||f()===45)&&(h(),j+=ze(o));ct(f());)h(),j+=ze(o);if(f(1)===46&&ct(f(2)))for(h(),j+=ze(o),h(),j+=ze(o),Z="number";ct(f());)h(),j+=ze(o);const we=f(1),rt=f(2),He=f(3);if((we===69||we===101)&&ct(rt))for(h(),j+=ze(o),h(),j+=ze(o),Z="number";ct(f());)h(),j+=ze(o);else if((we===69||we===101)&&(rt===43||rt===45)&&ct(He))for(h(),j+=ze(o),h(),j+=ze(o),h(),j+=ze(o),Z="number";ct(f());)h(),j+=ze(o);const Ne=O(j);return{type:Z,value:Ne,repr:j}},O=function(j){return+j},se=function(){for(;h();){if(o===41||g())return;P()&&w()}};let oe=0;for(;!g(f());)if(l.push(N()),oe++,oe>n.length*2)throw new Error("I'm infinite-looping!");return l}class Me{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class Bd extends Me{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class Zi extends Me{constructor(){super(...arguments),this.tokenType="BADURL"}}class Ba extends Me{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class zd extends Me{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return"<!--"}}class Fd extends Me{constructor(){super(...arguments),this.tokenType="CDC"}toSource(){return"-->"}}class Ud extends Me{constructor(){super(...arguments),this.tokenType=":"}}class Vd extends Me{constructor(){super(...arguments),this.tokenType=";"}}class Kd extends Me{constructor(){super(...arguments),this.tokenType=","}}class $r extends Me{constructor(){super(...arguments),this.value="",this.mirror=""}}class Wd extends $r{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class qd extends $r{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class Hd extends $r{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class za extends $r{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class Qd extends $r{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class Jd extends $r{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class zg extends Me{constructor(){super(...arguments),this.tokenType="~="}}class Fg extends Me{constructor(){super(...arguments),this.tokenType="|="}}class Ug extends Me{constructor(){super(...arguments),this.tokenType="^="}}class Vg extends Me{constructor(){super(...arguments),this.tokenType="$="}}class Kg extends Me{constructor(){super(...arguments),this.tokenType="*="}}class Yd extends Me{constructor(){super(...arguments),this.tokenType="||"}}class el extends Me{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class Xe extends Me{constructor(n){super(),this.tokenType="DELIM",this.value="",this.value=ze(n)}toString(){return"DELIM("+this.value+")"}toJSON(){const n=this.constructor.prototype.constructor.prototype.toJSON.call(this);return n.value=this.value,n}toSource(){return this.value==="\\"?`\\
42
- `:this.value}}class Ir extends Me{constructor(){super(...arguments),this.value=""}ASCIIMatch(n){return this.value.toLowerCase()===n.toLowerCase()}toJSON(){const n=this.constructor.prototype.constructor.prototype.toJSON.call(this);return n.value=this.value,n}}class Gd extends Ir{constructor(n){super(),this.tokenType="IDENT",this.value=n}toString(){return"IDENT("+this.value+")"}toSource(){return Is(this.value)}}class tl extends Ir{constructor(n){super(),this.tokenType="FUNCTION",this.value=n,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return Is(this.value)+"("}}class Xd extends Ir{constructor(n){super(),this.tokenType="AT-KEYWORD",this.value=n}toString(){return"AT("+this.value+")"}toSource(){return"@"+Is(this.value)}}class Zd extends Ir{constructor(n){super(),this.tokenType="HASH",this.value=n,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const n=this.constructor.prototype.constructor.prototype.toJSON.call(this);return n.value=this.value,n.type=this.type,n}toSource(){return this.type==="id"?"#"+Is(this.value):"#"+qg(this.value)}}class eh extends Ir{constructor(n){super(),this.tokenType="STRING",this.value=n}toString(){return'"'+sh(this.value)+'"'}}class th extends Ir{constructor(n){super(),this.tokenType="URL",this.value=n}toString(){return"URL("+this.value+")"}toSource(){return'url("'+sh(this.value)+'")'}}class nh extends Me{constructor(){super(),this.tokenType="NUMBER",this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const n=super.toJSON();return n.value=this.value,n.type=this.type,n.repr=this.repr,n}toSource(){return this.repr}}class rh extends Me{constructor(){super(),this.tokenType="PERCENTAGE",this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const n=this.constructor.prototype.constructor.prototype.toJSON.call(this);return n.value=this.value,n.repr=this.repr,n}toSource(){return this.repr+"%"}}class Wg extends Me{constructor(){super(),this.tokenType="DIMENSION",this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const n=this.constructor.prototype.constructor.prototype.toJSON.call(this);return n.value=this.value,n.type=this.type,n.repr=this.repr,n.unit=this.unit,n}toSource(){const n=this.repr;let r=Is(this.unit);return r[0].toLowerCase()==="e"&&(r[1]==="-"||De(r.charCodeAt(1),48,57))&&(r="\\65 "+r.slice(1,r.length)),n+r}}function Is(i){i=""+i;let n="";const r=i.charCodeAt(0);for(let l=0;l<i.length;l++){const o=i.charCodeAt(l);if(o===0)throw new Qa("Invalid character: the input contains U+0000.");De(o,1,31)||o===127||l===0&&De(o,48,57)||l===1&&De(o,48,57)&&r===45?n+="\\"+o.toString(16)+" ":o>=128||o===45||o===95||De(o,48,57)||De(o,65,90)||De(o,97,122)?n+=i[l]:n+="\\"+i[l]}return n}function qg(i){i=""+i;let n="";for(let r=0;r<i.length;r++){const l=i.charCodeAt(r);if(l===0)throw new Qa("Invalid character: the input contains U+0000.");l>=128||l===45||l===95||De(l,48,57)||De(l,65,90)||De(l,97,122)?n+=i[r]:n+="\\"+l.toString(16)+" "}return n}function sh(i){i=""+i;let n="";for(let r=0;r<i.length;r++){const l=i.charCodeAt(r);if(l===0)throw new Qa("Invalid character: the input contains U+0000.");De(l,1,31)||l===127?n+="\\"+l.toString(16)+" ":l===34||l===92?n+="\\"+i[r]:n+=i[r]}return n}class ft extends Error{}function Hg(i,n){let r;try{r=Bg(i),r[r.length-1]instanceof el||r.push(new el)}catch(O){const se=O.message+` while parsing css selector "${i}". Did you mean to CSS.escape it?`,oe=(O.stack||"").indexOf(O.message);throw oe!==-1&&(O.stack=O.stack.substring(0,oe)+se+O.stack.substring(oe+O.message.length)),O.message=se,O}const l=r.find(O=>O instanceof Xd||O instanceof Bd||O instanceof Zi||O instanceof Yd||O instanceof zd||O instanceof Fd||O instanceof Vd||O instanceof Wd||O instanceof qd||O instanceof th||O instanceof rh);if(l)throw new ft(`Unsupported token "${l.toSource()}" while parsing css selector "${i}". Did you mean to CSS.escape it?`);let o=0;const u=new Set;function f(){return new ft(`Unexpected token "${r[o].toSource()}" while parsing css selector "${i}". Did you mean to CSS.escape it?`)}function h(){for(;r[o]instanceof Ba;)o++}function p(O=o){return r[O]instanceof Gd}function g(O=o){return r[O]instanceof eh}function N(O=o){return r[O]instanceof nh}function S(O=o){return r[O]instanceof Kd}function T(O=o){return r[O]instanceof Qd}function E(O=o){return r[O]instanceof Jd}function L(O=o){return r[O]instanceof tl}function v(O=o){return r[O]instanceof Xe&&r[O].value==="*"}function w(O=o){return r[O]instanceof el}function A(O=o){return r[O]instanceof Xe&&[">","+","~"].includes(r[O].value)}function P(O=o){return S(O)||E(O)||w(O)||A(O)||r[O]instanceof Ba}function M(){const O=[V()];for(;h(),!!S();)o++,O.push(V());return O}function V(){return h(),N()||g()?r[o++].value:q()}function q(){const O={simples:[]};for(h(),A()?O.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):O.simples.push({selector:z(),combinator:""});;){if(h(),A())O.simples[O.simples.length-1].combinator=r[o++].value,h();else if(P())break;O.simples.push({combinator:"",selector:z()})}return O}function z(){let O="";const se=[];for(;!P();)if(p()||v())O+=r[o++].toSource();else if(r[o]instanceof Zd)O+=r[o++].toSource();else if(r[o]instanceof Xe&&r[o].value===".")if(o++,p())O+="."+r[o++].toSource();else throw f();else if(r[o]instanceof Ud)if(o++,p())if(!n.has(r[o].value.toLowerCase()))O+=":"+r[o++].toSource();else{const oe=r[o++].value.toLowerCase();se.push({name:oe,args:[]}),u.add(oe)}else if(L()){const oe=r[o++].value.toLowerCase();if(n.has(oe)?(se.push({name:oe,args:M()}),u.add(oe)):O+=`:${oe}(${ee()})`,h(),!E())throw f();o++}else throw f();else if(r[o]instanceof Hd){for(O+="[",o++;!(r[o]instanceof za)&&!w();)O+=r[o++].toSource();if(!(r[o]instanceof za))throw f();O+="]",o++}else throw f();if(!O&&!se.length)throw f();return{css:O||void 0,functions:se}}function ee(){let O="",se=1;for(;!w()&&((T()||L())&&se++,E()&&se--,!!se);)O+=r[o++].toSource();return O}const U=M();if(!w())throw f();if(U.some(O=>typeof O!="object"||!("simples"in O)))throw new ft(`Error while parsing css selector "${i}". Did you mean to CSS.escape it?`);return{selector:U,names:Array.from(u)}}const Nd=new Set(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),Qg=new Set(["left-of","right-of","above","below","near"]),Jg=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 ih(i){const n=Gg(i),r=[];for(const l of n.parts){if(l.name==="css"||l.name==="css:light"){l.name==="css:light"&&(l.body=":light("+l.body+")");const o=Hg(l.body,Jg);r.push({name:"css",body:o.selector,source:l.body});continue}if(Nd.has(l.name)){let o,u;try{const g=JSON.parse("["+l.body+"]");if(!Array.isArray(g)||g.length<1||g.length>2||typeof g[0]!="string")throw new ft(`Malformed selector: ${l.name}=`+l.body);if(o=g[0],g.length===2){if(typeof g[1]!="number"||!Qg.has(l.name))throw new ft(`Malformed selector: ${l.name}=`+l.body);u=g[1]}}catch{throw new ft(`Malformed selector: ${l.name}=`+l.body)}const f={name:l.name,source:l.body,body:{parsed:ih(o),distance:u}},h=[...f.body.parsed.parts].reverse().find(g=>g.name==="internal:control"&&g.body==="enter-frame"),p=h?f.body.parsed.parts.indexOf(h):-1;p!==-1&&Yg(f.body.parsed.parts.slice(0,p+1),r.slice(0,p+1))&&f.body.parsed.parts.splice(0,p+1),r.push(f);continue}r.push({...l,source:l.body})}if(Nd.has(r[0].name))throw new ft(`"${r[0].name}" selector cannot be first`);return{capture:n.capture,parts:r}}function Yg(i,n){return kr({parts:i})===kr({parts:n})}function kr(i,n){return typeof i=="string"?i:i.parts.map((r,l)=>{let o=!0;!n&&l!==i.capture&&(r.name==="css"||r.name==="xpath"&&r.source.startsWith("//")||r.source.startsWith(".."))&&(o=!1);const u=o?r.name+"=":"";return`${l===i.capture?"*":""}${u}${r.source}`}).join(" >> ")}function Gg(i){let n=0,r,l=0;const o={parts:[]},u=()=>{const h=i.substring(l,n).trim(),p=h.indexOf("=");let g,N;p!==-1&&h.substring(0,p).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(g=h.substring(0,p).trim(),N=h.substring(p+1)):h.length>1&&h[0]==='"'&&h[h.length-1]==='"'||h.length>1&&h[0]==="'"&&h[h.length-1]==="'"?(g="text",N=h):/^\(*\/\//.test(h)||h.startsWith("..")?(g="xpath",N=h):(g="css",N=h);let S=!1;if(g[0]==="*"&&(S=!0,g=g.substring(1)),o.parts.push({name:g,body:N}),S){if(o.capture!==void 0)throw new ft("Only one of the selectors can capture using * modifier");o.capture=o.parts.length-1}};if(!i.includes(">>"))return n=i.length,u(),o;const f=()=>{const p=i.substring(l,n).match(/^\s*text\s*=(.*)$/);return!!p&&!!p[1]};for(;n<i.length;){const h=i[n];h==="\\"&&n+1<i.length?n+=2:h===r?(r=void 0,n++):!r&&(h==='"'||h==="'"||h==="`")&&!f()?(r=h,n++):!r&&h===">"&&i[n+1]===">"?(u(),n+=2,l=n):n++}return u(),o}function Oa(i,n){let r=0,l=i.length===0;const o=()=>i[r]||"",u=()=>{const w=o();return++r,l=r>=i.length,w},f=w=>{throw l?new ft(`Unexpected end of selector while parsing selector \`${i}\``):new ft(`Error while parsing selector \`${i}\` - unexpected symbol "${o()}" at position ${r}`+(w?" during "+w:""))};function h(){for(;!l&&/\s/.test(o());)u()}function p(w){return w>="€"||w>="0"&&w<="9"||w>="A"&&w<="Z"||w>="a"&&w<="z"||w>="0"&&w<="9"||w==="_"||w==="-"}function g(){let w="";for(h();!l&&p(o());)w+=u();return w}function N(w){let A=u();for(A!==w&&f("parsing quoted string");!l&&o()!==w;)o()==="\\"&&u(),A+=u();return o()!==w&&f("parsing quoted string"),A+=u(),A}function S(){u()!=="/"&&f("parsing regular expression");let w="",A=!1;for(;!l;){if(o()==="\\")w+=u(),l&&f("parsing regular expression");else if(A&&o()==="]")A=!1;else if(!A&&o()==="[")A=!0;else if(!A&&o()==="/")break;w+=u()}u()!=="/"&&f("parsing regular expression");let P="";for(;!l&&o().match(/[dgimsuy]/);)P+=u();try{return new RegExp(w,P)}catch(M){throw new ft(`Error while parsing selector \`${i}\`: ${M.message}`)}}function T(){let w="";return h(),o()==="'"||o()==='"'?w=N(o()).slice(1,-1):w=g(),w||f("parsing property path"),w}function E(){h();let w="";return l||(w+=u()),!l&&w!=="="&&(w+=u()),["=","*=","^=","$=","|=","~="].includes(w)||f("parsing operator"),w}function L(){u();const w=[];for(w.push(T()),h();o()===".";)u(),w.push(T()),h();if(o()==="]")return u(),{name:w.join("."),jsonPath:w,op:"<truthy>",value:null,caseSensitive:!1};const A=E();let P,M=!0;if(h(),o()==="/"){if(A!=="=")throw new ft(`Error while parsing selector \`${i}\` - cannot use ${A} in attribute with regular expression`);P=S()}else if(o()==="'"||o()==='"')P=N(o()).slice(1,-1),h(),o()==="i"||o()==="I"?(M=!1,u()):(o()==="s"||o()==="S")&&(M=!0,u());else{for(P="";!l&&(p(o())||o()==="+"||o()===".");)P+=u();P==="true"?P=!0:P==="false"&&(P=!1)}if(h(),o()!=="]"&&f("parsing attribute value"),u(),A!=="="&&typeof P!="string")throw new ft(`Error while parsing selector \`${i}\` - cannot use ${A} in attribute with non-string matching value - ${P}`);return{name:w.join("."),jsonPath:w,op:A,value:P,caseSensitive:M}}const v={name:"",attributes:[]};for(v.name=g(),h();o()==="[";)v.attributes.push(L()),h();if(l||f(void 0),!v.name&&!v.attributes.length)throw new ft(`Error while parsing selector \`${i}\` - selector cannot be empty`);return v}function hl(i,n="'"){const r=JSON.stringify(i),l=r.substring(1,r.length-1).replace(/\\"/g,'"');if(n==="'")return n+l.replace(/[']/g,"\\'")+n;if(n==='"')return n+l.replace(/["]/g,'\\"')+n;if(n==="`")return n+l.replace(/[`]/g,"\\`")+n;throw new Error("Invalid escape char")}function ol(i){return i.charAt(0).toUpperCase()+i.substring(1)}function lh(i){return i.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function pl(i){return i.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function oh(i,n,r=!1){return Xg(i,n,r,1)[0]}function Xg(i,n,r=!1,l=20,o){try{return Sr(new iy[i](o),ih(n),r,l)}catch{return[n]}}function Sr(i,n,r=!1,l=20){const o=[...n.parts],u=[];let f=r?"frame-locator":"page";for(let h=0;h<o.length;h++){const p=o[h],g=f;if(f="locator",p.name==="internal:describe")continue;if(p.name==="nth"){p.body==="0"?u.push([i.generateLocator(g,"first",""),i.generateLocator(g,"nth","0")]):p.body==="-1"?u.push([i.generateLocator(g,"last",""),i.generateLocator(g,"nth","-1")]):u.push([i.generateLocator(g,"nth",p.body)]);continue}if(p.name==="visible"){u.push([i.generateLocator(g,"visible",p.body),i.generateLocator(g,"default",`visible=${p.body}`)]);continue}if(p.name==="internal:text"){const{exact:L,text:v}=Ns(p.body);u.push([i.generateLocator(g,"text",v,{exact:L})]);continue}if(p.name==="internal:has-text"){const{exact:L,text:v}=Ns(p.body);if(!L){u.push([i.generateLocator(g,"has-text",v,{exact:L})]);continue}}if(p.name==="internal:has-not-text"){const{exact:L,text:v}=Ns(p.body);if(!L){u.push([i.generateLocator(g,"has-not-text",v,{exact:L})]);continue}}if(p.name==="internal:has"){const L=Sr(i,p.body.parsed,!1,l);u.push(L.map(v=>i.generateLocator(g,"has",v)));continue}if(p.name==="internal:has-not"){const L=Sr(i,p.body.parsed,!1,l);u.push(L.map(v=>i.generateLocator(g,"hasNot",v)));continue}if(p.name==="internal:and"){const L=Sr(i,p.body.parsed,!1,l);u.push(L.map(v=>i.generateLocator(g,"and",v)));continue}if(p.name==="internal:or"){const L=Sr(i,p.body.parsed,!1,l);u.push(L.map(v=>i.generateLocator(g,"or",v)));continue}if(p.name==="internal:chain"){const L=Sr(i,p.body.parsed,!1,l);u.push(L.map(v=>i.generateLocator(g,"chain",v)));continue}if(p.name==="internal:label"){const{exact:L,text:v}=Ns(p.body);u.push([i.generateLocator(g,"label",v,{exact:L})]);continue}if(p.name==="internal:role"){const L=Oa(p.body),v={attrs:[]};for(const w of L.attributes)w.name==="name"?(v.exact=w.caseSensitive,v.name=w.value):(w.name==="level"&&typeof w.value=="string"&&(w.value=+w.value),v.attrs.push({name:w.name==="include-hidden"?"includeHidden":w.name,value:w.value}));u.push([i.generateLocator(g,"role",L.name,v)]);continue}if(p.name==="internal:testid"){const L=Oa(p.body),{value:v}=L.attributes[0];u.push([i.generateLocator(g,"test-id",v)]);continue}if(p.name==="internal:attr"){const L=Oa(p.body),{name:v,value:w,caseSensitive:A}=L.attributes[0],P=w,M=!!A;if(v==="placeholder"){u.push([i.generateLocator(g,"placeholder",P,{exact:M})]);continue}if(v==="alt"){u.push([i.generateLocator(g,"alt",P,{exact:M})]);continue}if(v==="title"){u.push([i.generateLocator(g,"title",P,{exact:M})]);continue}}if(p.name==="internal:control"&&p.body==="enter-frame"){const L=u[u.length-1],v=o[h-1],w=L.map(A=>i.chainLocators([A,i.generateLocator(g,"frame","")]));["xpath","css"].includes(v.name)&&w.push(i.generateLocator(g,"frame-locator",kr({parts:[v]})),i.generateLocator(g,"frame-locator",kr({parts:[v]},!0))),L.splice(0,L.length,...w),f="frame-locator";continue}const N=o[h+1],S=kr({parts:[p]}),T=i.generateLocator(g,"default",S);if(N&&["internal:has-text","internal:has-not-text"].includes(N.name)){const{exact:L,text:v}=Ns(N.body);if(!L){const w=i.generateLocator("locator",N.name==="internal:has-text"?"has-text":"has-not-text",v,{exact:L}),A={};N.name==="internal:has-text"?A.hasText=v:A.hasNotText=v;const P=i.generateLocator(g,"default",S,A);u.push([i.chainLocators([T,w]),P]),h++;continue}}let E;if(["xpath","css"].includes(p.name)){const L=kr({parts:[p]},!0);E=i.generateLocator(g,"default",L)}u.push([T,E].filter(Boolean))}return Zg(i,u,l)}function Zg(i,n,r){const l=n.map(()=>""),o=[],u=f=>{if(f===n.length)return o.push(i.chainLocators(l)),o.length<r;for(const h of n[f])if(l[f]=h,!u(f+1))return!1;return!0};return u(0),o}function Ns(i){let n=!1;const r=i.match(/^\/(.*)\/([igm]*)$/);return r?{text:new RegExp(r[1],r[2])}:(i.endsWith('"')?(i=JSON.parse(i),n=!0):i.endsWith('"s')?(i=JSON.parse(i.substring(0,i.length-1)),n=!0):i.endsWith('"i')&&(i=JSON.parse(i.substring(0,i.length-1)),n=!1),{exact:n,text:i})}class ey{constructor(n){this.preferredQuote=n}generateLocator(n,r,l,o={}){switch(r){case"default":return o.hasText!==void 0?`locator(${this.quote(l)}, { hasText: ${this.toHasText(o.hasText)} })`:o.hasNotText!==void 0?`locator(${this.quote(l)}, { hasNotText: ${this.toHasText(o.hasNotText)} })`:`locator(${this.quote(l)})`;case"frame-locator":return`frameLocator(${this.quote(l)})`;case"frame":return"contentFrame()";case"nth":return`nth(${l})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter({ visible: ${l==="true"?"true":"false"} })`;case"role":const u=[];qe(o.name)?u.push(`name: ${this.regexToSourceString(o.name)}`):typeof o.name=="string"&&(u.push(`name: ${this.quote(o.name)}`),o.exact&&u.push("exact: true"));for(const{name:h,value:p}of o.attrs)u.push(`${h}: ${typeof p=="string"?this.quote(p):p}`);const f=u.length?`, { ${u.join(", ")} }`:"";return`getByRole(${this.quote(l)}${f})`;case"has-text":return`filter({ hasText: ${this.toHasText(l)} })`;case"has-not-text":return`filter({ hasNotText: ${this.toHasText(l)} })`;case"has":return`filter({ has: ${l} })`;case"hasNot":return`filter({ hasNot: ${l} })`;case"and":return`and(${l})`;case"or":return`or(${l})`;case"chain":return`locator(${l})`;case"test-id":return`getByTestId(${this.toTestIdValue(l)})`;case"text":return this.toCallWithExact("getByText",l,!!o.exact);case"alt":return this.toCallWithExact("getByAltText",l,!!o.exact);case"placeholder":return this.toCallWithExact("getByPlaceholder",l,!!o.exact);case"label":return this.toCallWithExact("getByLabel",l,!!o.exact);case"title":return this.toCallWithExact("getByTitle",l,!!o.exact);default:throw new Error("Unknown selector kind "+r)}}chainLocators(n){return n.join(".")}regexToSourceString(n){return pl(String(n))}toCallWithExact(n,r,l){return qe(r)?`${n}(${this.regexToSourceString(r)})`:l?`${n}(${this.quote(r)}, { exact: true })`:`${n}(${this.quote(r)})`}toHasText(n){return qe(n)?this.regexToSourceString(n):this.quote(n)}toTestIdValue(n){return qe(n)?this.regexToSourceString(n):this.quote(n)}quote(n){return hl(n,this.preferredQuote??"'")}}class ty{generateLocator(n,r,l,o={}){switch(r){case"default":return o.hasText!==void 0?`locator(${this.quote(l)}, has_text=${this.toHasText(o.hasText)})`:o.hasNotText!==void 0?`locator(${this.quote(l)}, has_not_text=${this.toHasText(o.hasNotText)})`:`locator(${this.quote(l)})`;case"frame-locator":return`frame_locator(${this.quote(l)})`;case"frame":return"content_frame";case"nth":return`nth(${l})`;case"first":return"first";case"last":return"last";case"visible":return`filter(visible=${l==="true"?"True":"False"})`;case"role":const u=[];qe(o.name)?u.push(`name=${this.regexToString(o.name)}`):typeof o.name=="string"&&(u.push(`name=${this.quote(o.name)}`),o.exact&&u.push("exact=True"));for(const{name:h,value:p}of o.attrs){let g=typeof p=="string"?this.quote(p):p;typeof p=="boolean"&&(g=p?"True":"False"),u.push(`${lh(h)}=${g}`)}const f=u.length?`, ${u.join(", ")}`:"";return`get_by_role(${this.quote(l)}${f})`;case"has-text":return`filter(has_text=${this.toHasText(l)})`;case"has-not-text":return`filter(has_not_text=${this.toHasText(l)})`;case"has":return`filter(has=${l})`;case"hasNot":return`filter(has_not=${l})`;case"and":return`and_(${l})`;case"or":return`or_(${l})`;case"chain":return`locator(${l})`;case"test-id":return`get_by_test_id(${this.toTestIdValue(l)})`;case"text":return this.toCallWithExact("get_by_text",l,!!o.exact);case"alt":return this.toCallWithExact("get_by_alt_text",l,!!o.exact);case"placeholder":return this.toCallWithExact("get_by_placeholder",l,!!o.exact);case"label":return this.toCallWithExact("get_by_label",l,!!o.exact);case"title":return this.toCallWithExact("get_by_title",l,!!o.exact);default:throw new Error("Unknown selector kind "+r)}}chainLocators(n){return n.join(".")}regexToString(n){const r=n.flags.includes("i")?", re.IGNORECASE":"";return`re.compile(r"${pl(n.source).replace(/\\\//,"/").replace(/"/g,'\\"')}"${r})`}toCallWithExact(n,r,l){return qe(r)?`${n}(${this.regexToString(r)})`:l?`${n}(${this.quote(r)}, exact=True)`:`${n}(${this.quote(r)})`}toHasText(n){return qe(n)?this.regexToString(n):`${this.quote(n)}`}toTestIdValue(n){return qe(n)?this.regexToString(n):this.quote(n)}quote(n){return hl(n,'"')}}class ny{generateLocator(n,r,l,o={}){let u;switch(n){case"page":u="Page";break;case"frame-locator":u="FrameLocator";break;case"locator":u="Locator";break}switch(r){case"default":return o.hasText!==void 0?`locator(${this.quote(l)}, new ${u}.LocatorOptions().setHasText(${this.toHasText(o.hasText)}))`:o.hasNotText!==void 0?`locator(${this.quote(l)}, new ${u}.LocatorOptions().setHasNotText(${this.toHasText(o.hasNotText)}))`:`locator(${this.quote(l)})`;case"frame-locator":return`frameLocator(${this.quote(l)})`;case"frame":return"contentFrame()";case"nth":return`nth(${l})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter(new ${u}.FilterOptions().setVisible(${l==="true"?"true":"false"}))`;case"role":const f=[];qe(o.name)?f.push(`.setName(${this.regexToString(o.name)})`):typeof o.name=="string"&&(f.push(`.setName(${this.quote(o.name)})`),o.exact&&f.push(".setExact(true)"));for(const{name:p,value:g}of o.attrs)f.push(`.set${ol(p)}(${typeof g=="string"?this.quote(g):g})`);const h=f.length?`, new ${u}.GetByRoleOptions()${f.join("")}`:"";return`getByRole(AriaRole.${lh(l).toUpperCase()}${h})`;case"has-text":return`filter(new ${u}.FilterOptions().setHasText(${this.toHasText(l)}))`;case"has-not-text":return`filter(new ${u}.FilterOptions().setHasNotText(${this.toHasText(l)}))`;case"has":return`filter(new ${u}.FilterOptions().setHas(${l}))`;case"hasNot":return`filter(new ${u}.FilterOptions().setHasNot(${l}))`;case"and":return`and(${l})`;case"or":return`or(${l})`;case"chain":return`locator(${l})`;case"test-id":return`getByTestId(${this.toTestIdValue(l)})`;case"text":return this.toCallWithExact(u,"getByText",l,!!o.exact);case"alt":return this.toCallWithExact(u,"getByAltText",l,!!o.exact);case"placeholder":return this.toCallWithExact(u,"getByPlaceholder",l,!!o.exact);case"label":return this.toCallWithExact(u,"getByLabel",l,!!o.exact);case"title":return this.toCallWithExact(u,"getByTitle",l,!!o.exact);default:throw new Error("Unknown selector kind "+r)}}chainLocators(n){return n.join(".")}regexToString(n){const r=n.flags.includes("i")?", Pattern.CASE_INSENSITIVE":"";return`Pattern.compile(${this.quote(pl(n.source))}${r})`}toCallWithExact(n,r,l,o){return qe(l)?`${r}(${this.regexToString(l)})`:o?`${r}(${this.quote(l)}, new ${n}.${ol(r)}Options().setExact(true))`:`${r}(${this.quote(l)})`}toHasText(n){return qe(n)?this.regexToString(n):this.quote(n)}toTestIdValue(n){return qe(n)?this.regexToString(n):this.quote(n)}quote(n){return hl(n,'"')}}class ry{generateLocator(n,r,l,o={}){switch(r){case"default":return o.hasText!==void 0?`Locator(${this.quote(l)}, new() { ${this.toHasText(o.hasText)} })`:o.hasNotText!==void 0?`Locator(${this.quote(l)}, new() { ${this.toHasNotText(o.hasNotText)} })`:`Locator(${this.quote(l)})`;case"frame-locator":return`FrameLocator(${this.quote(l)})`;case"frame":return"ContentFrame";case"nth":return`Nth(${l})`;case"first":return"First";case"last":return"Last";case"visible":return`Filter(new() { Visible = ${l==="true"?"true":"false"} })`;case"role":const u=[];qe(o.name)?u.push(`NameRegex = ${this.regexToString(o.name)}`):typeof o.name=="string"&&(u.push(`Name = ${this.quote(o.name)}`),o.exact&&u.push("Exact = true"));for(const{name:h,value:p}of o.attrs)u.push(`${ol(h)} = ${typeof p=="string"?this.quote(p):p}`);const f=u.length?`, new() { ${u.join(", ")} }`:"";return`GetByRole(AriaRole.${ol(l)}${f})`;case"has-text":return`Filter(new() { ${this.toHasText(l)} })`;case"has-not-text":return`Filter(new() { ${this.toHasNotText(l)} })`;case"has":return`Filter(new() { Has = ${l} })`;case"hasNot":return`Filter(new() { HasNot = ${l} })`;case"and":return`And(${l})`;case"or":return`Or(${l})`;case"chain":return`Locator(${l})`;case"test-id":return`GetByTestId(${this.toTestIdValue(l)})`;case"text":return this.toCallWithExact("GetByText",l,!!o.exact);case"alt":return this.toCallWithExact("GetByAltText",l,!!o.exact);case"placeholder":return this.toCallWithExact("GetByPlaceholder",l,!!o.exact);case"label":return this.toCallWithExact("GetByLabel",l,!!o.exact);case"title":return this.toCallWithExact("GetByTitle",l,!!o.exact);default:throw new Error("Unknown selector kind "+r)}}chainLocators(n){return n.join(".")}regexToString(n){const r=n.flags.includes("i")?", RegexOptions.IgnoreCase":"";return`new Regex(${this.quote(pl(n.source))}${r})`}toCallWithExact(n,r,l){return qe(r)?`${n}(${this.regexToString(r)})`:l?`${n}(${this.quote(r)}, new() { Exact = true })`:`${n}(${this.quote(r)})`}toHasText(n){return qe(n)?`HasTextRegex = ${this.regexToString(n)}`:`HasText = ${this.quote(n)}`}toTestIdValue(n){return qe(n)?this.regexToString(n):this.quote(n)}toHasNotText(n){return qe(n)?`HasNotTextRegex = ${this.regexToString(n)}`:`HasNotText = ${this.quote(n)}`}quote(n){return hl(n,'"')}}class sy{generateLocator(n,r,l,o={}){return JSON.stringify({kind:r,body:l,options:o})}chainLocators(n){const r=n.map(l=>JSON.parse(l));for(let l=0;l<r.length-1;++l)r[l].next=r[l+1];return JSON.stringify(r[0])}}const iy={javascript:ey,python:ty,java:ny,csharp:ry,jsonl:sy};function qe(i){return i instanceof RegExp}const ly=({language:i,log:n})=>{const r=fe.useRef(null),[l,o]=fe.useState(new Map);return fe.useLayoutEffect(()=>{var u;n.find(f=>f.reveal)&&((u=r.current)==null||u.scrollIntoView({block:"center",inline:"nearest"}))},[r,n]),K.jsxs("div",{className:"call-log",style:{flex:"auto"},children:[n.map(u=>{const f=l.get(u.id),h=typeof f=="boolean"?f:u.status!=="done",p=u.params.selector?oh(i,u.params.selector):null;let g=u.title,N="";return u.title.startsWith("expect.to")||u.title.startsWith("expect.not.to")?(g="expect(",N=`).${u.title.substring(7)}()`):u.title.startsWith("locator.")?(g="",N=`.${u.title.substring(8)}()`):(p||u.params.url)&&(g=u.title+"(",N=")"),K.jsxs("div",{className:Vn("call-log-call",u.status),children:[K.jsxs("div",{className:"call-log-call-header",children:[K.jsx("span",{className:Vn("codicon",`codicon-chevron-${h?"down":"right"}`),style:{cursor:"pointer"},onClick:()=>{const S=new Map(l);S.set(u.id,!h),o(S)}}),g,u.params.url?K.jsx("span",{className:"call-log-details",children:K.jsx("span",{className:"call-log-url",title:u.params.url,children:u.params.url})}):void 0,p?K.jsx("span",{className:"call-log-details",children:K.jsx("span",{className:"call-log-selector",title:`page.${p}`,children:`page.${p}`})}):void 0,N,K.jsx("span",{className:Vn("codicon",oy(u))}),typeof u.duration=="number"?K.jsxs("span",{className:"call-log-time",children:["— ",ng(u.duration)]}):void 0]}),(h?u.messages:[]).map((S,T)=>K.jsx("div",{className:"call-log-message",children:S.trim()},T)),!!u.error&&K.jsx("div",{className:"call-log-message error",hidden:!h,children:u.error})]},u.id)}),K.jsx("div",{ref:r})]})};function oy(i){switch(i.status){case"done":return"codicon-check";case"in-progress":return"codicon-clock";case"paused":return"codicon-debug-pause";case"error":return"codicon-error"}}const Ja=Symbol.for("yaml.alias"),Fa=Symbol.for("yaml.document"),kn=Symbol.for("yaml.map"),ah=Symbol.for("yaml.pair"),Vt=Symbol.for("yaml.scalar"),Ar=Symbol.for("yaml.seq"),_t=Symbol.for("yaml.node.type"),Wn=i=>!!i&&typeof i=="object"&&i[_t]===Ja,qn=i=>!!i&&typeof i=="object"&&i[_t]===Fa,Pr=i=>!!i&&typeof i=="object"&&i[_t]===kn,_e=i=>!!i&&typeof i=="object"&&i[_t]===ah,ve=i=>!!i&&typeof i=="object"&&i[_t]===Vt,jr=i=>!!i&&typeof i=="object"&&i[_t]===Ar;function $e(i){if(i&&typeof i=="object")switch(i[_t]){case kn:case Ar:return!0}return!1}function Ie(i){if(i&&typeof i=="object")switch(i[_t]){case Ja:case kn:case Vt:case Ar:return!0}return!1}const ay=i=>(ve(i)||$e(i))&&!!i.anchor,dt=Symbol("break visit"),uh=Symbol("skip children"),Ut=Symbol("remove node");function En(i,n){const r=ch(n);qn(i)?Er(null,i.contents,r,Object.freeze([i]))===Ut&&(i.contents=null):Er(null,i,r,Object.freeze([]))}En.BREAK=dt;En.SKIP=uh;En.REMOVE=Ut;function Er(i,n,r,l){const o=fh(i,n,r,l);if(Ie(o)||_e(o))return dh(i,l,o),Er(i,o,r,l);if(typeof o!="symbol"){if($e(n)){l=Object.freeze(l.concat(n));for(let u=0;u<n.items.length;++u){const f=Er(u,n.items[u],r,l);if(typeof f=="number")u=f-1;else{if(f===dt)return dt;f===Ut&&(n.items.splice(u,1),u-=1)}}}else if(_e(n)){l=Object.freeze(l.concat(n));const u=Er("key",n.key,r,l);if(u===dt)return dt;u===Ut&&(n.key=null);const f=Er("value",n.value,r,l);if(f===dt)return dt;f===Ut&&(n.value=null)}}return o}async function ml(i,n){const r=ch(n);qn(i)?await xr(null,i.contents,r,Object.freeze([i]))===Ut&&(i.contents=null):await xr(null,i,r,Object.freeze([]))}ml.BREAK=dt;ml.SKIP=uh;ml.REMOVE=Ut;async function xr(i,n,r,l){const o=await fh(i,n,r,l);if(Ie(o)||_e(o))return dh(i,l,o),xr(i,o,r,l);if(typeof o!="symbol"){if($e(n)){l=Object.freeze(l.concat(n));for(let u=0;u<n.items.length;++u){const f=await xr(u,n.items[u],r,l);if(typeof f=="number")u=f-1;else{if(f===dt)return dt;f===Ut&&(n.items.splice(u,1),u-=1)}}}else if(_e(n)){l=Object.freeze(l.concat(n));const u=await xr("key",n.key,r,l);if(u===dt)return dt;u===Ut&&(n.key=null);const f=await xr("value",n.value,r,l);if(f===dt)return dt;f===Ut&&(n.value=null)}}return o}function ch(i){return typeof i=="object"&&(i.Collection||i.Node||i.Value)?Object.assign({Alias:i.Node,Map:i.Node,Scalar:i.Node,Seq:i.Node},i.Value&&{Map:i.Value,Scalar:i.Value,Seq:i.Value},i.Collection&&{Map:i.Collection,Seq:i.Collection},i):i}function fh(i,n,r,l){var o,u,f,h,p;if(typeof r=="function")return r(i,n,l);if(Pr(n))return(o=r.Map)==null?void 0:o.call(r,i,n,l);if(jr(n))return(u=r.Seq)==null?void 0:u.call(r,i,n,l);if(_e(n))return(f=r.Pair)==null?void 0:f.call(r,i,n,l);if(ve(n))return(h=r.Scalar)==null?void 0:h.call(r,i,n,l);if(Wn(n))return(p=r.Alias)==null?void 0:p.call(r,i,n,l)}function dh(i,n,r){const l=n[n.length-1];if($e(l))l.items[i]=r;else if(_e(l))i==="key"?l.key=r:l.value=r;else if(qn(l))l.contents=r;else{const o=Wn(l)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const uy={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},cy=i=>i.replace(/[!,[\]{}]/g,n=>uy[n]);class nt{constructor(n,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},nt.defaultYaml,n),this.tags=Object.assign({},nt.defaultTags,r)}clone(){const n=new nt(this.yaml,this.tags);return n.docStart=this.docStart,n}atDocument(){const n=new nt(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:nt.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},nt.defaultTags);break}return n}add(n,r){this.atNextDocument&&(this.yaml={explicit:nt.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},nt.defaultTags),this.atNextDocument=!1);const l=n.trim().split(/[ \t]+/),o=l.shift();switch(o){case"%TAG":{if(l.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),l.length<2))return!1;const[u,f]=l;return this.tags[u]=f,!0}case"%YAML":{if(this.yaml.explicit=!0,l.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[u]=l;if(u==="1.1"||u==="1.2")return this.yaml.version=u,!0;{const f=/^\d+\.\d+$/.test(u);return r(6,`Unsupported YAML version ${u}`,f),!1}}default:return r(0,`Unknown directive ${o}`,!0),!1}}tagName(n,r){if(n==="!")return"!";if(n[0]!=="!")return r(`Not a valid tag: ${n}`),null;if(n[1]==="<"){const f=n.slice(2,-1);return f==="!"||f==="!!"?(r(`Verbatim tags aren't resolved, so ${n} is invalid.`),null):(n[n.length-1]!==">"&&r("Verbatim tags must end with a >"),f)}const[,l,o]=n.match(/^(.*!)([^!]*)$/s);o||r(`The ${n} tag has no suffix`);const u=this.tags[l];if(u)try{return u+decodeURIComponent(o)}catch(f){return r(String(f)),null}return l==="!"?n:(r(`Could not resolve tag: ${n}`),null)}tagString(n){for(const[r,l]of Object.entries(this.tags))if(n.startsWith(l))return r+cy(n.substring(l.length));return n[0]==="!"?n:`!<${n}>`}toString(n){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],l=Object.entries(this.tags);let o;if(n&&l.length>0&&Ie(n.contents)){const u={};En(n.contents,(f,h)=>{Ie(h)&&h.tag&&(u[h.tag]=!0)}),o=Object.keys(u)}else o=[];for(const[u,f]of l)u==="!!"&&f==="tag:yaml.org,2002:"||(!n||o.some(h=>h.startsWith(f)))&&r.push(`%TAG ${u} ${f}`);return r.join(`
43
- `)}}nt.defaultYaml={explicit:!1,version:"1.2"};nt.defaultTags={"!!":"tag:yaml.org,2002:"};function hh(i){if(/[\x00-\x19\s,[\]{}]/.test(i)){const r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(i)}`;throw new Error(r)}return!0}function ph(i){const n=new Set;return En(i,{Value(r,l){l.anchor&&n.add(l.anchor)}}),n}function mh(i,n){for(let r=1;;++r){const l=`${i}${r}`;if(!n.has(l))return l}}function fy(i,n){const r=[],l=new Map;let o=null;return{onAnchor:u=>{r.push(u),o||(o=ph(i));const f=mh(n,o);return o.add(f),f},setAnchors:()=>{for(const u of r){const f=l.get(u);if(typeof f=="object"&&f.anchor&&(ve(f.node)||$e(f.node)))f.node.anchor=f.anchor;else{const h=new Error("Failed to resolve repeated object (this should not happen)");throw h.source=u,h}}},sourceObjects:l}}function Nr(i,n,r,l){if(l&&typeof l=="object")if(Array.isArray(l))for(let o=0,u=l.length;o<u;++o){const f=l[o],h=Nr(i,l,String(o),f);h===void 0?delete l[o]:h!==f&&(l[o]=h)}else if(l instanceof Map)for(const o of Array.from(l.keys())){const u=l.get(o),f=Nr(i,l,o,u);f===void 0?l.delete(o):f!==u&&l.set(o,f)}else if(l instanceof Set)for(const o of Array.from(l)){const u=Nr(i,l,o,o);u===void 0?l.delete(o):u!==o&&(l.delete(o),l.add(u))}else for(const[o,u]of Object.entries(l)){const f=Nr(i,l,o,u);f===void 0?delete l[o]:f!==u&&(l[o]=f)}return i.call(n,r,l)}function Ct(i,n,r){if(Array.isArray(i))return i.map((l,o)=>Ct(l,String(o),r));if(i&&typeof i.toJSON=="function"){if(!r||!ay(i))return i.toJSON(n,r);const l={aliasCount:0,count:1,res:void 0};r.anchors.set(i,l),r.onCreate=u=>{l.res=u,delete r.onCreate};const o=i.toJSON(n,r);return r.onCreate&&r.onCreate(o),o}return typeof i=="bigint"&&!(r!=null&&r.keep)?Number(i):i}class Ya{constructor(n){Object.defineProperty(this,_t,{value:n})}clone(){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(n.range=this.range.slice()),n}toJS(n,{mapAsMap:r,maxAliasCount:l,onAnchor:o,reviver:u}={}){if(!qn(n))throw new TypeError("A document argument is required");const f={anchors:new Map,doc:n,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof l=="number"?l:100},h=Ct(this,"",f);if(typeof o=="function")for(const{count:p,res:g}of f.anchors.values())o(g,p);return typeof u=="function"?Nr(u,{"":h},"",h):h}}class gl extends Ya{constructor(n){super(Ja),this.source=n,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(n){let r;return En(n,{Node:(l,o)=>{if(o===this)return En.BREAK;o.anchor===this.source&&(r=o)}}),r}toJSON(n,r){if(!r)return{source:this.source};const{anchors:l,doc:o,maxAliasCount:u}=r,f=this.resolve(o);if(!f){const p=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(p)}let h=l.get(f);if(h||(Ct(f,null,r),h=l.get(f)),!h||h.res===void 0){const p="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(p)}if(u>=0&&(h.count+=1,h.aliasCount===0&&(h.aliasCount=nl(o,f,l)),h.count*h.aliasCount>u)){const p="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(p)}return h.res}toString(n,r,l){const o=`*${this.source}`;if(n){if(hh(this.source),n.options.verifyAliasOrder&&!n.anchors.has(this.source)){const u=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(u)}if(n.implicitKey)return`${o} `}return o}}function nl(i,n,r){if(Wn(n)){const l=n.resolve(i),o=r&&l&&r.get(l);return o?o.count*o.aliasCount:0}else if($e(n)){let l=0;for(const o of n.items){const u=nl(i,o,r);u>l&&(l=u)}return l}else if(_e(n)){const l=nl(i,n.key,r),o=nl(i,n.value,r);return Math.max(l,o)}return 1}const gh=i=>!i||typeof i!="function"&&typeof i!="object";class le extends Ya{constructor(n){super(Vt),this.value=n}toJSON(n,r){return r!=null&&r.keep?this.value:Ct(this.value,n,r)}toString(){return String(this.value)}}le.BLOCK_FOLDED="BLOCK_FOLDED";le.BLOCK_LITERAL="BLOCK_LITERAL";le.PLAIN="PLAIN";le.QUOTE_DOUBLE="QUOTE_DOUBLE";le.QUOTE_SINGLE="QUOTE_SINGLE";const dy="tag:yaml.org,2002:";function hy(i,n,r){if(n){const l=r.filter(u=>u.tag===n),o=l.find(u=>!u.format)??l[0];if(!o)throw new Error(`Tag ${n} not found`);return o}return r.find(l=>{var o;return((o=l.identify)==null?void 0:o.call(l,i))&&!l.format})}function Ls(i,n,r){var S,T,E;if(qn(i)&&(i=i.contents),Ie(i))return i;if(_e(i)){const L=(T=(S=r.schema[kn]).createNode)==null?void 0:T.call(S,r.schema,null,r);return L.items.push(i),L}(i instanceof String||i instanceof Number||i instanceof Boolean||typeof BigInt<"u"&&i instanceof BigInt)&&(i=i.valueOf());const{aliasDuplicateObjects:l,onAnchor:o,onTagObj:u,schema:f,sourceObjects:h}=r;let p;if(l&&i&&typeof i=="object"){if(p=h.get(i),p)return p.anchor||(p.anchor=o(i)),new gl(p.anchor);p={anchor:null,node:null},h.set(i,p)}n!=null&&n.startsWith("!!")&&(n=dy+n.slice(2));let g=hy(i,n,f.tags);if(!g){if(i&&typeof i.toJSON=="function"&&(i=i.toJSON()),!i||typeof i!="object"){const L=new le(i);return p&&(p.node=L),L}g=i instanceof Map?f[kn]:Symbol.iterator in Object(i)?f[Ar]:f[kn]}u&&(u(g),delete r.onTagObj);const N=g!=null&&g.createNode?g.createNode(r.schema,i,r):typeof((E=g==null?void 0:g.nodeClass)==null?void 0:E.from)=="function"?g.nodeClass.from(r.schema,i,r):new le(i);return n?N.tag=n:g.default||(N.tag=g.tag),p&&(p.node=N),N}function al(i,n,r){let l=r;for(let o=n.length-1;o>=0;--o){const u=n[o];if(typeof u=="number"&&Number.isInteger(u)&&u>=0){const f=[];f[u]=l,l=f}else l=new Map([[u,l]])}return Ls(l,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:i,sourceObjects:new Map})}const Cs=i=>i==null||typeof i=="object"&&!!i[Symbol.iterator]().next().done;class yh extends Ya{constructor(n,r){super(n),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(n){const r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return n&&(r.schema=n),r.items=r.items.map(l=>Ie(l)||_e(l)?l.clone(n):l),this.range&&(r.range=this.range.slice()),r}addIn(n,r){if(Cs(n))this.add(r);else{const[l,...o]=n,u=this.get(l,!0);if($e(u))u.addIn(o,r);else if(u===void 0&&this.schema)this.set(l,al(this.schema,o,r));else throw new Error(`Expected YAML collection at ${l}. Remaining path: ${o}`)}}deleteIn(n){const[r,...l]=n;if(l.length===0)return this.delete(r);const o=this.get(r,!0);if($e(o))return o.deleteIn(l);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${l}`)}getIn(n,r){const[l,...o]=n,u=this.get(l,!0);return o.length===0?!r&&ve(u)?u.value:u:$e(u)?u.getIn(o,r):void 0}hasAllNullValues(n){return this.items.every(r=>{if(!_e(r))return!1;const l=r.value;return l==null||n&&ve(l)&&l.value==null&&!l.commentBefore&&!l.comment&&!l.tag})}hasIn(n){const[r,...l]=n;if(l.length===0)return this.has(r);const o=this.get(r,!0);return $e(o)?o.hasIn(l):!1}setIn(n,r){const[l,...o]=n;if(o.length===0)this.set(l,r);else{const u=this.get(l,!0);if($e(u))u.setIn(o,r);else if(u===void 0&&this.schema)this.set(l,al(this.schema,o,r));else throw new Error(`Expected YAML collection at ${l}. Remaining path: ${o}`)}}}const py=i=>i.replace(/^(?!$)(?: $)?/gm,"#");function Zt(i,n){return/^\n+$/.test(i)?i.substring(1):n?i.replace(/^(?! *$)/gm,n):i}const Bn=(i,n,r)=>i.endsWith(`
44
- `)?Zt(r,n):r.includes(`
45
- `)?`
46
- `+Zt(r,n):(i.endsWith(" ")?"":" ")+r,vh="flow",Ua="block",rl="quoted";function yl(i,n,r="flow",{indentAtStart:l,lineWidth:o=80,minContentWidth:u=20,onFold:f,onOverflow:h}={}){if(!o||o<0)return i;o<u&&(u=0);const p=Math.max(1+u,1+o-n.length);if(i.length<=p)return i;const g=[],N={};let S=o-n.length;typeof l=="number"&&(l>o-Math.max(2,u)?g.push(0):S=o-l);let T,E,L=!1,v=-1,w=-1,A=-1;r===Ua&&(v=Td(i,v,n.length),v!==-1&&(S=v+p));for(let M;M=i[v+=1];){if(r===rl&&M==="\\"){switch(w=v,i[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}A=v}if(M===`
47
- `)r===Ua&&(v=Td(i,v,n.length)),S=v+n.length+p,T=void 0;else{if(M===" "&&E&&E!==" "&&E!==`
48
- `&&E!==" "){const V=i[v+1];V&&V!==" "&&V!==`
49
- `&&V!==" "&&(T=v)}if(v>=S)if(T)g.push(T),S=T+p,T=void 0;else if(r===rl){for(;E===" "||E===" ";)E=M,M=i[v+=1],L=!0;const V=v>A+1?v-2:w-1;if(N[V])return i;g.push(V),N[V]=!0,S=V+p,T=void 0}else L=!0}E=M}if(L&&h&&h(),g.length===0)return i;f&&f();let P=i.slice(0,g[0]);for(let M=0;M<g.length;++M){const V=g[M],q=g[M+1]||i.length;V===0?P=`
50
- ${n}${i.slice(0,q)}`:(r===rl&&N[V]&&(P+=`${i[V]}\\`),P+=`
51
- ${n}${i.slice(V+1,q)}`)}return P}function Td(i,n,r){let l=n,o=n+1,u=i[o];for(;u===" "||u===" ";)if(n<o+r)u=i[++n];else{do u=i[++n];while(u&&u!==`
52
- `);l=n,o=n+1,u=i[o]}return l}const vl=(i,n)=>({indentAtStart:n?i.indent.length:i.indentAtStart,lineWidth:i.options.lineWidth,minContentWidth:i.options.minContentWidth}),wl=i=>/^(%|---|\.\.\.)/m.test(i);function my(i,n,r){if(!n||n<0)return!1;const l=n-r,o=i.length;if(o<=l)return!1;for(let u=0,f=0;u<o;++u)if(i[u]===`
53
- `){if(u-f>l)return!0;if(f=u+1,o-f<=l)return!1}return!0}function _s(i,n){const r=JSON.stringify(i);if(n.options.doubleQuotedAsJSON)return r;const{implicitKey:l}=n,o=n.options.doubleQuotedMinMultiLineLength,u=n.indent||(wl(i)?" ":"");let f="",h=0;for(let p=0,g=r[p];g;g=r[++p])if(g===" "&&r[p+1]==="\\"&&r[p+2]==="n"&&(f+=r.slice(h,p)+"\\ ",p+=1,h=p,g="\\"),g==="\\")switch(r[p+1]){case"u":{f+=r.slice(h,p);const N=r.substr(p+2,4);switch(N){case"0000":f+="\\0";break;case"0007":f+="\\a";break;case"000b":f+="\\v";break;case"001b":f+="\\e";break;case"0085":f+="\\N";break;case"00a0":f+="\\_";break;case"2028":f+="\\L";break;case"2029":f+="\\P";break;default:N.substr(0,2)==="00"?f+="\\x"+N.substr(2):f+=r.substr(p,6)}p+=5,h=p+1}break;case"n":if(l||r[p+2]==='"'||r.length<o)p+=1;else{for(f+=r.slice(h,p)+`
54
-
55
- `;r[p+2]==="\\"&&r[p+3]==="n"&&r[p+4]!=='"';)f+=`
56
- `,p+=2;f+=u,r[p+2]===" "&&(f+="\\"),p+=1,h=p+1}break;default:p+=1}return f=h?f+r.slice(h):r,l?f:yl(f,u,rl,vl(n,!1))}function Va(i,n){if(n.options.singleQuote===!1||n.implicitKey&&i.includes(`
57
- `)||/[ \t]\n|\n[ \t]/.test(i))return _s(i,n);const r=n.indent||(wl(i)?" ":""),l="'"+i.replace(/'/g,"''").replace(/\n+/g,`$&
58
- ${r}`)+"'";return n.implicitKey?l:yl(l,r,vh,vl(n,!1))}function Tr(i,n){const{singleQuote:r}=n.options;let l;if(r===!1)l=_s;else{const o=i.includes('"'),u=i.includes("'");o&&!u?l=Va:u&&!o?l=_s:l=r?Va:_s}return l(i,n)}let Ka;try{Ka=new RegExp(`(^|(?<!
59
- ))
60
- +(?!
61
- |$)`,"g")}catch{Ka=/\n+(?!\n|$)/g}function sl({comment:i,type:n,value:r},l,o,u){const{blockQuote:f,commentString:h,lineWidth:p}=l.options;if(!f||/\n[\t ]+$/.test(r)||/^\s*$/.test(r))return Tr(r,l);const g=l.indent||(l.forceBlockIndent||wl(r)?" ":""),N=f==="literal"?!0:f==="folded"||n===le.BLOCK_FOLDED?!1:n===le.BLOCK_LITERAL?!0:!my(r,p,g.length);if(!r)return N?`|
62
- `:`>
63
- `;let S,T;for(T=r.length;T>0;--T){const z=r[T-1];if(z!==`
64
- `&&z!==" "&&z!==" ")break}let E=r.substring(T);const L=E.indexOf(`
65
- `);L===-1?S="-":r===E||L!==E.length-1?(S="+",u&&u()):S="",E&&(r=r.slice(0,-E.length),E[E.length-1]===`
66
- `&&(E=E.slice(0,-1)),E=E.replace(Ka,`$&${g}`));let v=!1,w,A=-1;for(w=0;w<r.length;++w){const z=r[w];if(z===" ")v=!0;else if(z===`
67
- `)A=w;else break}let P=r.substring(0,A<w?A+1:w);P&&(r=r.substring(P.length),P=P.replace(/\n+/g,`$&${g}`));let V=(N?"|":">")+(v?g?"2":"1":"")+S;if(i&&(V+=" "+h(i.replace(/ ?[\r\n]+/g," ")),o&&o()),N)return r=r.replace(/\n+/g,`$&${g}`),`${V}
68
- ${g}${P}${r}${E}`;r=r.replace(/\n+/g,`
69
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${g}`);const q=yl(`${P}${r}${E}`,g,Ua,vl(l,!0));return`${V}
70
- ${g}${q}`}function gy(i,n,r,l){const{type:o,value:u}=i,{actualString:f,implicitKey:h,indent:p,indentStep:g,inFlow:N}=n;if(h&&u.includes(`
71
- `)||N&&/[[\]{},]/.test(u))return Tr(u,n);if(!u||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(u))return h||N||!u.includes(`
72
- `)?Tr(u,n):sl(i,n,r,l);if(!h&&!N&&o!==le.PLAIN&&u.includes(`
73
- `))return sl(i,n,r,l);if(wl(u)){if(p==="")return n.forceBlockIndent=!0,sl(i,n,r,l);if(h&&p===g)return Tr(u,n)}const S=u.replace(/\n+/g,`$&
74
- ${p}`);if(f){const T=v=>{var w;return v.default&&v.tag!=="tag:yaml.org,2002:str"&&((w=v.test)==null?void 0:w.test(S))},{compat:E,tags:L}=n.doc.schema;if(L.some(T)||E!=null&&E.some(T))return Tr(u,n)}return h?S:yl(S,p,vh,vl(n,!1))}function As(i,n,r,l){const{implicitKey:o,inFlow:u}=n,f=typeof i.value=="string"?i:Object.assign({},i,{value:String(i.value)});let{type:h}=i;h!==le.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(f.value)&&(h=le.QUOTE_DOUBLE);const p=N=>{switch(N){case le.BLOCK_FOLDED:case le.BLOCK_LITERAL:return o||u?Tr(f.value,n):sl(f,n,r,l);case le.QUOTE_DOUBLE:return _s(f.value,n);case le.QUOTE_SINGLE:return Va(f.value,n);case le.PLAIN:return gy(f,n,r,l);default:return null}};let g=p(h);if(g===null){const{defaultKeyType:N,defaultStringType:S}=n.options,T=o&&N||S;if(g=p(T),g===null)throw new Error(`Unsupported default string type ${T}`)}return g}function wh(i,n){const r=Object.assign({blockQuote:!0,commentString:py,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,trueStr:"true",verifyAliasOrder:!0},i.schema.toStringOptions,n);let l;switch(r.collectionStyle){case"block":l=!1;break;case"flow":l=!0;break;default:l=null}return{anchors:new Set,doc:i,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:l,options:r}}function yy(i,n){var o;if(n.tag){const u=i.filter(f=>f.tag===n.tag);if(u.length>0)return u.find(f=>f.format===n.format)??u[0]}let r,l;if(ve(n)){l=n.value;let u=i.filter(f=>{var h;return(h=f.identify)==null?void 0:h.call(f,l)});if(u.length>1){const f=u.filter(h=>h.test);f.length>0&&(u=f)}r=u.find(f=>f.format===n.format)??u.find(f=>!f.format)}else l=n,r=i.find(u=>u.nodeClass&&l instanceof u.nodeClass);if(!r){const u=((o=l==null?void 0:l.constructor)==null?void 0:o.name)??typeof l;throw new Error(`Tag not resolved for ${u} value`)}return r}function vy(i,n,{anchors:r,doc:l}){if(!l.directives)return"";const o=[],u=(ve(i)||$e(i))&&i.anchor;u&&hh(u)&&(r.add(u),o.push(`&${u}`));const f=i.tag?i.tag:n.default?null:n.tag;return f&&o.push(l.directives.tagString(f)),o.join(" ")}function Lr(i,n,r,l){var p;if(_e(i))return i.toString(n,r,l);if(Wn(i)){if(n.doc.directives)return i.toString(n);if((p=n.resolvedAliases)!=null&&p.has(i))throw new TypeError("Cannot stringify circular structure without alias nodes");n.resolvedAliases?n.resolvedAliases.add(i):n.resolvedAliases=new Set([i]),i=i.resolve(n.doc)}let o;const u=Ie(i)?i:n.doc.createNode(i,{onTagObj:g=>o=g});o||(o=yy(n.doc.schema.tags,u));const f=vy(u,o,n);f.length>0&&(n.indentAtStart=(n.indentAtStart??0)+f.length+1);const h=typeof o.stringify=="function"?o.stringify(u,n,r,l):ve(u)?As(u,n,r,l):u.toString(n,r,l);return f?ve(u)||h[0]==="{"||h[0]==="["?`${f} ${h}`:`${f}
75
- ${n.indent}${h}`:h}function wy({key:i,value:n},r,l,o){const{allNullValues:u,doc:f,indent:h,indentStep:p,options:{commentString:g,indentSeq:N,simpleKeys:S}}=r;let T=Ie(i)&&i.comment||null;if(S){if(T)throw new Error("With simple keys, key nodes cannot have comments");if($e(i)||!Ie(i)&&typeof i=="object"){const ee="With simple keys, collection cannot be used as a key value";throw new Error(ee)}}let E=!S&&(!i||T&&n==null&&!r.inFlow||$e(i)||(ve(i)?i.type===le.BLOCK_FOLDED||i.type===le.BLOCK_LITERAL:typeof i=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!E&&(S||!u),indent:h+p});let L=!1,v=!1,w=Lr(i,r,()=>L=!0,()=>v=!0);if(!E&&!r.inFlow&&w.length>1024){if(S)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=!0}if(r.inFlow){if(u||n==null)return L&&l&&l(),w===""?"?":E?`? ${w}`:w}else if(u&&!S||n==null&&E)return w=`? ${w}`,T&&!L?w+=Bn(w,r.indent,g(T)):v&&o&&o(),w;L&&(T=null),E?(T&&(w+=Bn(w,r.indent,g(T))),w=`? ${w}
76
- ${h}:`):(w=`${w}:`,T&&(w+=Bn(w,r.indent,g(T))));let A,P,M;Ie(n)?(A=!!n.spaceBefore,P=n.commentBefore,M=n.comment):(A=!1,P=null,M=null,n&&typeof n=="object"&&(n=f.createNode(n))),r.implicitKey=!1,!E&&!T&&ve(n)&&(r.indentAtStart=w.length+1),v=!1,!N&&p.length>=2&&!r.inFlow&&!E&&jr(n)&&!n.flow&&!n.tag&&!n.anchor&&(r.indent=r.indent.substring(2));let V=!1;const q=Lr(n,r,()=>V=!0,()=>v=!0);let z=" ";if(T||A||P){if(z=A?`
77
- `:"",P){const ee=g(P);z+=`
78
- ${Zt(ee,r.indent)}`}q===""&&!r.inFlow?z===`
79
- `&&(z=`
80
-
81
- `):z+=`
82
- ${r.indent}`}else if(!E&&$e(n)){const ee=q[0],U=q.indexOf(`
83
- `),O=U!==-1,se=r.inFlow??n.flow??n.items.length===0;if(O||!se){let oe=!1;if(O&&(ee==="&"||ee==="!")){let j=q.indexOf(" ");ee==="&"&&j!==-1&&j<U&&q[j+1]==="!"&&(j=q.indexOf(" ",j+1)),(j===-1||U<j)&&(oe=!0)}oe||(z=`
84
- ${r.indent}`)}}else(q===""||q[0]===`
85
- `)&&(z="");return w+=z+q,r.inFlow?V&&l&&l():M&&!V?w+=Bn(w,r.indent,g(M)):v&&o&&o(),w}function Sh(i,n){(i==="debug"||i==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(n):console.warn(n))}const qi="<<",en={identify:i=>i===qi||typeof i=="symbol"&&i.description===qi,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new le(Symbol(qi)),{addToJSMap:kh}),stringify:()=>qi},Sy=(i,n)=>(en.identify(n)||ve(n)&&(!n.type||n.type===le.PLAIN)&&en.identify(n.value))&&(i==null?void 0:i.doc.schema.tags.some(r=>r.tag===en.tag&&r.default));function kh(i,n,r){if(r=i&&Wn(r)?r.resolve(i.doc):r,jr(r))for(const l of r.items)$a(i,n,l);else if(Array.isArray(r))for(const l of r)$a(i,n,l);else $a(i,n,r)}function $a(i,n,r){const l=i&&Wn(r)?r.resolve(i.doc):r;if(!Pr(l))throw new Error("Merge sources must be maps or map aliases");const o=l.toJSON(null,i,Map);for(const[u,f]of o)n instanceof Map?n.has(u)||n.set(u,f):n instanceof Set?n.add(u):Object.prototype.hasOwnProperty.call(n,u)||Object.defineProperty(n,u,{value:f,writable:!0,enumerable:!0,configurable:!0});return n}function Eh(i,n,{key:r,value:l}){if(Ie(r)&&r.addToJSMap)r.addToJSMap(i,n,l);else if(Sy(i,r))kh(i,n,l);else{const o=Ct(r,"",i);if(n instanceof Map)n.set(o,Ct(l,o,i));else if(n instanceof Set)n.add(o);else{const u=ky(r,o,i),f=Ct(l,u,i);u in n?Object.defineProperty(n,u,{value:f,writable:!0,enumerable:!0,configurable:!0}):n[u]=f}}return n}function ky(i,n,r){if(n===null)return"";if(typeof n!="object")return String(n);if(Ie(i)&&(r!=null&&r.doc)){const l=wh(r.doc,{});l.anchors=new Set;for(const u of r.anchors.keys())l.anchors.add(u.anchor);l.inFlow=!0,l.inStringifyKey=!0;const o=i.toString(l);if(!r.mapKeyWarned){let u=JSON.stringify(o);u.length>40&&(u=u.substring(0,36)+'..."'),Sh(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${u}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return o}return JSON.stringify(n)}function Ga(i,n,r){const l=Ls(i,void 0,r),o=Ls(n,void 0,r);return new Ze(l,o)}class Ze{constructor(n,r=null){Object.defineProperty(this,_t,{value:ah}),this.key=n,this.value=r}clone(n){let{key:r,value:l}=this;return Ie(r)&&(r=r.clone(n)),Ie(l)&&(l=l.clone(n)),new Ze(r,l)}toJSON(n,r){const l=r!=null&&r.mapAsMap?new Map:{};return Eh(r,l,this)}toString(n,r,l){return n!=null&&n.doc?wy(this,n,r,l):JSON.stringify(this)}}function xh(i,n,r){return(n.inFlow??i.flow?xy:Ey)(i,n,r)}function Ey({comment:i,items:n},r,{blockItemPrefix:l,flowChars:o,itemIndent:u,onChompKeep:f,onComment:h}){const{indent:p,options:{commentString:g}}=r,N=Object.assign({},r,{indent:u,type:null});let S=!1;const T=[];for(let L=0;L<n.length;++L){const v=n[L];let w=null;if(Ie(v))!S&&v.spaceBefore&&T.push(""),ul(r,T,v.commentBefore,S),v.comment&&(w=v.comment);else if(_e(v)){const P=Ie(v.key)?v.key:null;P&&(!S&&P.spaceBefore&&T.push(""),ul(r,T,P.commentBefore,S))}S=!1;let A=Lr(v,N,()=>w=null,()=>S=!0);w&&(A+=Bn(A,u,g(w))),S&&w&&(S=!1),T.push(l+A)}let E;if(T.length===0)E=o.start+o.end;else{E=T[0];for(let L=1;L<T.length;++L){const v=T[L];E+=v?`
86
- ${p}${v}`:`
87
- `}}return i?(E+=`
88
- `+Zt(g(i),p),h&&h()):S&&f&&f(),E}function xy({items:i},n,{flowChars:r,itemIndent:l}){const{indent:o,indentStep:u,flowCollectionPadding:f,options:{commentString:h}}=n;l+=u;const p=Object.assign({},n,{indent:l,inFlow:!0,type:null});let g=!1,N=0;const S=[];for(let L=0;L<i.length;++L){const v=i[L];let w=null;if(Ie(v))v.spaceBefore&&S.push(""),ul(n,S,v.commentBefore,!1),v.comment&&(w=v.comment);else if(_e(v)){const P=Ie(v.key)?v.key:null;P&&(P.spaceBefore&&S.push(""),ul(n,S,P.commentBefore,!1),P.comment&&(g=!0));const M=Ie(v.value)?v.value:null;M?(M.comment&&(w=M.comment),M.commentBefore&&(g=!0)):v.value==null&&(P!=null&&P.comment)&&(w=P.comment)}w&&(g=!0);let A=Lr(v,p,()=>w=null);L<i.length-1&&(A+=","),w&&(A+=Bn(A,l,h(w))),!g&&(S.length>N||A.includes(`
89
- `))&&(g=!0),S.push(A),N=S.length}const{start:T,end:E}=r;if(S.length===0)return T+E;if(!g){const L=S.reduce((v,w)=>v+w.length+2,2);g=n.options.lineWidth>0&&L>n.options.lineWidth}if(g){let L=T;for(const v of S)L+=v?`
90
- ${u}${o}${v}`:`
91
- `;return`${L}
92
- ${o}${E}`}else return`${T}${f}${S.join(" ")}${f}${E}`}function ul({indent:i,options:{commentString:n}},r,l,o){if(l&&o&&(l=l.replace(/^\n+/,"")),l){const u=Zt(n(l),i);r.push(u.trimStart())}}function zn(i,n){const r=ve(n)?n.value:n;for(const l of i)if(_e(l)&&(l.key===n||l.key===r||ve(l.key)&&l.key.value===r))return l}class wt extends yh{static get tagName(){return"tag:yaml.org,2002:map"}constructor(n){super(kn,n),this.items=[]}static from(n,r,l){const{keepUndefined:o,replacer:u}=l,f=new this(n),h=(p,g)=>{if(typeof u=="function")g=u.call(r,p,g);else if(Array.isArray(u)&&!u.includes(p))return;(g!==void 0||o)&&f.items.push(Ga(p,g,l))};if(r instanceof Map)for(const[p,g]of r)h(p,g);else if(r&&typeof r=="object")for(const p of Object.keys(r))h(p,r[p]);return typeof n.sortMapEntries=="function"&&f.items.sort(n.sortMapEntries),f}add(n,r){var f;let l;_e(n)?l=n:!n||typeof n!="object"||!("key"in n)?l=new Ze(n,n==null?void 0:n.value):l=new Ze(n.key,n.value);const o=zn(this.items,l.key),u=(f=this.schema)==null?void 0:f.sortMapEntries;if(o){if(!r)throw new Error(`Key ${l.key} already set`);ve(o.value)&&gh(l.value)?o.value.value=l.value:o.value=l.value}else if(u){const h=this.items.findIndex(p=>u(l,p)<0);h===-1?this.items.push(l):this.items.splice(h,0,l)}else this.items.push(l)}delete(n){const r=zn(this.items,n);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(n,r){const l=zn(this.items,n),o=l==null?void 0:l.value;return(!r&&ve(o)?o.value:o)??void 0}has(n){return!!zn(this.items,n)}set(n,r){this.add(new Ze(n,r),!0)}toJSON(n,r,l){const o=l?new l:r!=null&&r.mapAsMap?new Map:{};r!=null&&r.onCreate&&r.onCreate(o);for(const u of this.items)Eh(r,o,u);return o}toString(n,r,l){if(!n)return JSON.stringify(this);for(const o of this.items)if(!_e(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!n.allNullValues&&this.hasAllNullValues(!1)&&(n=Object.assign({},n,{allNullValues:!0})),xh(this,n,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:n.indent||"",onChompKeep:l,onComment:r})}}const Mr={collection:"map",default:!0,nodeClass:wt,tag:"tag:yaml.org,2002:map",resolve(i,n){return Pr(i)||n("Expected a mapping for this tag"),i},createNode:(i,n,r)=>wt.from(i,n,r)};class xn extends yh{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(n){super(Ar,n),this.items=[]}add(n){this.items.push(n)}delete(n){const r=Hi(n);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(n,r){const l=Hi(n);if(typeof l!="number")return;const o=this.items[l];return!r&&ve(o)?o.value:o}has(n){const r=Hi(n);return typeof r=="number"&&r<this.items.length}set(n,r){const l=Hi(n);if(typeof l!="number")throw new Error(`Expected a valid index, not ${n}.`);const o=this.items[l];ve(o)&&gh(r)?o.value=r:this.items[l]=r}toJSON(n,r){const l=[];r!=null&&r.onCreate&&r.onCreate(l);let o=0;for(const u of this.items)l.push(Ct(u,String(o++),r));return l}toString(n,r,l){return n?xh(this,n,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(n.indent||"")+" ",onChompKeep:l,onComment:r}):JSON.stringify(this)}static from(n,r,l){const{replacer:o}=l,u=new this(n);if(r&&Symbol.iterator in Object(r)){let f=0;for(let h of r){if(typeof o=="function"){const p=r instanceof Set?h:String(f++);h=o.call(r,p,h)}u.items.push(Ls(h,void 0,l))}}return u}}function Hi(i){let n=ve(i)?i.value:i;return n&&typeof n=="string"&&(n=Number(n)),typeof n=="number"&&Number.isInteger(n)&&n>=0?n:null}const Rr={collection:"seq",default:!0,nodeClass:xn,tag:"tag:yaml.org,2002:seq",resolve(i,n){return jr(i)||n("Expected a sequence for this tag"),i},createNode:(i,n,r)=>xn.from(i,n,r)},Sl={identify:i=>typeof i=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify(i,n,r,l){return n=Object.assign({actualString:!0},n),As(i,n,r,l)}},kl={identify:i=>i==null,createNode:()=>new le(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new le(null),stringify:({source:i},n)=>typeof i=="string"&&kl.test.test(i)?i:n.options.nullStr},Xa={identify:i=>typeof i=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:i=>new le(i[0]==="t"||i[0]==="T"),stringify({source:i,value:n},r){if(i&&Xa.test.test(i)){const l=i[0]==="t"||i[0]==="T";if(n===l)return i}return n?r.options.trueStr:r.options.falseStr}};function Rt({format:i,minFractionDigits:n,tag:r,value:l}){if(typeof l=="bigint")return String(l);const o=typeof l=="number"?l:Number(l);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let u=JSON.stringify(l);if(!i&&n&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(u)){let f=u.indexOf(".");f<0&&(f=u.length,u+=".");let h=n-(u.length-f-1);for(;h-- >0;)u+="0"}return u}const Nh={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:i=>i.slice(-3).toLowerCase()==="nan"?NaN:i[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Rt},Th={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:i=>parseFloat(i),stringify(i){const n=Number(i.value);return isFinite(n)?n.toExponential():Rt(i)}},Ch={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(i){const n=new le(parseFloat(i)),r=i.indexOf(".");return r!==-1&&i[i.length-1]==="0"&&(n.minFractionDigits=i.length-r-1),n},stringify:Rt},El=i=>typeof i=="bigint"||Number.isInteger(i),Za=(i,n,r,{intAsBigInt:l})=>l?BigInt(i):parseInt(i.substring(n),r);function _h(i,n,r){const{value:l}=i;return El(l)&&l>=0?r+l.toString(n):Rt(i)}const Lh={identify:i=>El(i)&&i>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(i,n,r)=>Za(i,2,8,r),stringify:i=>_h(i,8,"0o")},Oh={identify:El,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(i,n,r)=>Za(i,0,10,r),stringify:Rt},$h={identify:i=>El(i)&&i>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(i,n,r)=>Za(i,2,16,r),stringify:i=>_h(i,16,"0x")},Ny=[Mr,Rr,Sl,kl,Xa,Lh,Oh,$h,Nh,Th,Ch];function Cd(i){return typeof i=="bigint"||Number.isInteger(i)}const Qi=({value:i})=>JSON.stringify(i),Ty=[{identify:i=>typeof i=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify:Qi},{identify:i=>i==null,createNode:()=>new le(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Qi},{identify:i=>typeof i=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:i=>i==="true",stringify:Qi},{identify:Cd,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(i,n,{intAsBigInt:r})=>r?BigInt(i):parseInt(i,10),stringify:({value:i})=>Cd(i)?i.toString():JSON.stringify(i)},{identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:i=>parseFloat(i),stringify:Qi}],Cy={default:!0,tag:"",test:/^/,resolve(i,n){return n(`Unresolved plain scalar ${JSON.stringify(i)}`),i}},_y=[Mr,Rr].concat(Ty,Cy),eu={identify:i=>i instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(i,n){if(typeof Buffer=="function")return Buffer.from(i,"base64");if(typeof atob=="function"){const r=atob(i.replace(/[\n\r]/g,"")),l=new Uint8Array(r.length);for(let o=0;o<r.length;++o)l[o]=r.charCodeAt(o);return l}else return n("This environment does not support reading binary tags; either Buffer or atob is required"),i},stringify({comment:i,type:n,value:r},l,o,u){const f=r;let h;if(typeof Buffer=="function")h=f instanceof Buffer?f.toString("base64"):Buffer.from(f.buffer).toString("base64");else if(typeof btoa=="function"){let p="";for(let g=0;g<f.length;++g)p+=String.fromCharCode(f[g]);h=btoa(p)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(n||(n=le.BLOCK_LITERAL),n!==le.QUOTE_DOUBLE){const p=Math.max(l.options.lineWidth-l.indent.length,l.options.minContentWidth),g=Math.ceil(h.length/p),N=new Array(g);for(let S=0,T=0;S<g;++S,T+=p)N[S]=h.substr(T,p);h=N.join(n===le.BLOCK_LITERAL?`
93
- `:" ")}return As({comment:i,type:n,value:h},l,o,u)}};function Ih(i,n){if(jr(i))for(let r=0;r<i.items.length;++r){let l=i.items[r];if(!_e(l)){if(Pr(l)){l.items.length>1&&n("Each pair must have its own sequence indicator");const o=l.items[0]||new Ze(new le(null));if(l.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${l.commentBefore}
94
- ${o.key.commentBefore}`:l.commentBefore),l.comment){const u=o.value??o.key;u.comment=u.comment?`${l.comment}
95
- ${u.comment}`:l.comment}l=o}i.items[r]=_e(l)?l:new Ze(l)}}else n("Expected a sequence for this tag");return i}function Ah(i,n,r){const{replacer:l}=r,o=new xn(i);o.tag="tag:yaml.org,2002:pairs";let u=0;if(n&&Symbol.iterator in Object(n))for(let f of n){typeof l=="function"&&(f=l.call(n,String(u++),f));let h,p;if(Array.isArray(f))if(f.length===2)h=f[0],p=f[1];else throw new TypeError(`Expected [key, value] tuple: ${f}`);else if(f&&f instanceof Object){const g=Object.keys(f);if(g.length===1)h=g[0],p=f[h];else throw new TypeError(`Expected tuple with one key, not ${g.length} keys`)}else h=f;o.items.push(Ga(h,p,r))}return o}const tu={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Ih,createNode:Ah};class Cr extends xn{constructor(){super(),this.add=wt.prototype.add.bind(this),this.delete=wt.prototype.delete.bind(this),this.get=wt.prototype.get.bind(this),this.has=wt.prototype.has.bind(this),this.set=wt.prototype.set.bind(this),this.tag=Cr.tag}toJSON(n,r){if(!r)return super.toJSON(n);const l=new Map;r!=null&&r.onCreate&&r.onCreate(l);for(const o of this.items){let u,f;if(_e(o)?(u=Ct(o.key,"",r),f=Ct(o.value,u,r)):u=Ct(o,"",r),l.has(u))throw new Error("Ordered maps must not include duplicate keys");l.set(u,f)}return l}static from(n,r,l){const o=Ah(n,r,l),u=new this;return u.items=o.items,u}}Cr.tag="tag:yaml.org,2002:omap";const nu={collection:"seq",identify:i=>i instanceof Map,nodeClass:Cr,default:!1,tag:"tag:yaml.org,2002:omap",resolve(i,n){const r=Ih(i,n),l=[];for(const{key:o}of r.items)ve(o)&&(l.includes(o.value)?n(`Ordered maps must not include duplicate keys: ${o.value}`):l.push(o.value));return Object.assign(new Cr,r)},createNode:(i,n,r)=>Cr.from(i,n,r)};function Ph({value:i,source:n},r){return n&&(i?jh:Mh).test.test(n)?n:i?r.options.trueStr:r.options.falseStr}const jh={identify:i=>i===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new le(!0),stringify:Ph},Mh={identify:i=>i===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new le(!1),stringify:Ph},Ly={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:i=>i.slice(-3).toLowerCase()==="nan"?NaN:i[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Rt},Oy={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:i=>parseFloat(i.replace(/_/g,"")),stringify(i){const n=Number(i.value);return isFinite(n)?n.toExponential():Rt(i)}},$y={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(i){const n=new le(parseFloat(i.replace(/_/g,""))),r=i.indexOf(".");if(r!==-1){const l=i.substring(r+1).replace(/_/g,"");l[l.length-1]==="0"&&(n.minFractionDigits=l.length)}return n},stringify:Rt},Ps=i=>typeof i=="bigint"||Number.isInteger(i);function xl(i,n,r,{intAsBigInt:l}){const o=i[0];if((o==="-"||o==="+")&&(n+=1),i=i.substring(n).replace(/_/g,""),l){switch(r){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`;break}const f=BigInt(i);return o==="-"?BigInt(-1)*f:f}const u=parseInt(i,r);return o==="-"?-1*u:u}function ru(i,n,r){const{value:l}=i;if(Ps(l)){const o=l.toString(n);return l<0?"-"+r+o.substr(1):r+o}return Rt(i)}const Iy={identify:Ps,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(i,n,r)=>xl(i,2,2,r),stringify:i=>ru(i,2,"0b")},Ay={identify:Ps,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(i,n,r)=>xl(i,1,8,r),stringify:i=>ru(i,8,"0")},Py={identify:Ps,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(i,n,r)=>xl(i,0,10,r),stringify:Rt},jy={identify:Ps,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(i,n,r)=>xl(i,2,16,r),stringify:i=>ru(i,16,"0x")};class _r extends wt{constructor(n){super(n),this.tag=_r.tag}add(n){let r;_e(n)?r=n:n&&typeof n=="object"&&"key"in n&&"value"in n&&n.value===null?r=new Ze(n.key,null):r=new Ze(n,null),zn(this.items,r.key)||this.items.push(r)}get(n,r){const l=zn(this.items,n);return!r&&_e(l)?ve(l.key)?l.key.value:l.key:l}set(n,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);const l=zn(this.items,n);l&&!r?this.items.splice(this.items.indexOf(l),1):!l&&r&&this.items.push(new Ze(n))}toJSON(n,r){return super.toJSON(n,r,Set)}toString(n,r,l){if(!n)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},n,{allNullValues:!0}),r,l);throw new Error("Set items must all have null values")}static from(n,r,l){const{replacer:o}=l,u=new this(n);if(r&&Symbol.iterator in Object(r))for(let f of r)typeof o=="function"&&(f=o.call(r,f,f)),u.items.push(Ga(f,null,l));return u}}_r.tag="tag:yaml.org,2002:set";const su={collection:"map",identify:i=>i instanceof Set,nodeClass:_r,default:!1,tag:"tag:yaml.org,2002:set",createNode:(i,n,r)=>_r.from(i,n,r),resolve(i,n){if(Pr(i)){if(i.hasAllNullValues(!0))return Object.assign(new _r,i);n("Set items must all have null values")}else n("Expected a mapping for this tag");return i}};function iu(i,n){const r=i[0],l=r==="-"||r==="+"?i.substring(1):i,o=f=>n?BigInt(f):Number(f),u=l.replace(/_/g,"").split(":").reduce((f,h)=>f*o(60)+o(h),o(0));return r==="-"?o(-1)*u:u}function Rh(i){let{value:n}=i,r=f=>f;if(typeof n=="bigint")r=f=>BigInt(f);else if(isNaN(n)||!isFinite(n))return Rt(i);let l="";n<0&&(l="-",n*=r(-1));const o=r(60),u=[n%o];return n<60?u.unshift(0):(n=(n-u[0])/o,u.unshift(n%o),n>=60&&(n=(n-u[0])/o,u.unshift(n))),l+u.map(f=>String(f).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Dh={identify:i=>typeof i=="bigint"||Number.isInteger(i),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(i,n,{intAsBigInt:r})=>iu(i,r),stringify:Rh},bh={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:i=>iu(i,!1),stringify:Rh},Nl={identify:i=>i 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(i){const n=i.match(Nl.test);if(!n)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,l,o,u,f,h]=n.map(Number),p=n[7]?Number((n[7]+"00").substr(1,3)):0;let g=Date.UTC(r,l-1,o,u||0,f||0,h||0,p);const N=n[8];if(N&&N!=="Z"){let S=iu(N,!1);Math.abs(S)<30&&(S*=60),g-=6e4*S}return new Date(g)},stringify:({value:i})=>i.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},_d=[Mr,Rr,Sl,kl,jh,Mh,Iy,Ay,Py,jy,Ly,Oy,$y,eu,en,nu,tu,su,Dh,bh,Nl],Ld=new Map([["core",Ny],["failsafe",[Mr,Rr,Sl]],["json",_y],["yaml11",_d],["yaml-1.1",_d]]),Od={binary:eu,bool:Xa,float:Ch,floatExp:Th,floatNaN:Nh,floatTime:bh,int:Oh,intHex:$h,intOct:Lh,intTime:Dh,map:Mr,merge:en,null:kl,omap:nu,pairs:tu,seq:Rr,set:su,timestamp:Nl},My={"tag:yaml.org,2002:binary":eu,"tag:yaml.org,2002:merge":en,"tag:yaml.org,2002:omap":nu,"tag:yaml.org,2002:pairs":tu,"tag:yaml.org,2002:set":su,"tag:yaml.org,2002:timestamp":Nl};function Ia(i,n,r){const l=Ld.get(n);if(l&&!i)return r&&!l.includes(en)?l.concat(en):l.slice();let o=l;if(!o)if(Array.isArray(i))o=[];else{const u=Array.from(Ld.keys()).filter(f=>f!=="yaml11").map(f=>JSON.stringify(f)).join(", ");throw new Error(`Unknown schema "${n}"; use one of ${u} or define customTags array`)}if(Array.isArray(i))for(const u of i)o=o.concat(u);else typeof i=="function"&&(o=i(o.slice()));return r&&(o=o.concat(en)),o.reduce((u,f)=>{const h=typeof f=="string"?Od[f]:f;if(!h){const p=JSON.stringify(f),g=Object.keys(Od).map(N=>JSON.stringify(N)).join(", ");throw new Error(`Unknown custom tag ${p}; use one of ${g}`)}return u.includes(h)||u.push(h),u},[])}const Ry=(i,n)=>i.key<n.key?-1:i.key>n.key?1:0;class Tl{constructor({compat:n,customTags:r,merge:l,resolveKnownTags:o,schema:u,sortMapEntries:f,toStringDefaults:h}){this.compat=Array.isArray(n)?Ia(n,"compat"):n?Ia(null,n):null,this.name=typeof u=="string"&&u||"core",this.knownTags=o?My:{},this.tags=Ia(r,this.name,l),this.toStringOptions=h??null,Object.defineProperty(this,kn,{value:Mr}),Object.defineProperty(this,Vt,{value:Sl}),Object.defineProperty(this,Ar,{value:Rr}),this.sortMapEntries=typeof f=="function"?f:f===!0?Ry:null}clone(){const n=Object.create(Tl.prototype,Object.getOwnPropertyDescriptors(this));return n.tags=this.tags.slice(),n}}function Dy(i,n){var p;const r=[];let l=n.directives===!0;if(n.directives!==!1&&i.directives){const g=i.directives.toString(i);g?(r.push(g),l=!0):i.directives.docStart&&(l=!0)}l&&r.push("---");const o=wh(i,n),{commentString:u}=o.options;if(i.commentBefore){r.length!==1&&r.unshift("");const g=u(i.commentBefore);r.unshift(Zt(g,""))}let f=!1,h=null;if(i.contents){if(Ie(i.contents)){if(i.contents.spaceBefore&&l&&r.push(""),i.contents.commentBefore){const S=u(i.contents.commentBefore);r.push(Zt(S,""))}o.forceBlockIndent=!!i.comment,h=i.contents.comment}const g=h?void 0:()=>f=!0;let N=Lr(i.contents,o,()=>h=null,g);h&&(N+=Bn(N,"",u(h))),(N[0]==="|"||N[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${N}`:r.push(N)}else r.push(Lr(i.contents,o));if((p=i.directives)!=null&&p.docEnd)if(i.comment){const g=u(i.comment);g.includes(`
96
- `)?(r.push("..."),r.push(Zt(g,""))):r.push(`... ${g}`)}else r.push("...");else{let g=i.comment;g&&f&&(g=g.replace(/^\n+/,"")),g&&((!f||h)&&r[r.length-1]!==""&&r.push(""),r.push(Zt(u(g),"")))}return r.join(`
97
- `)+`
98
- `}class Dr{constructor(n,r,l){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,_t,{value:Fa});let o=null;typeof r=="function"||Array.isArray(r)?o=r:l===void 0&&r&&(l=r,r=void 0);const u=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},l);this.options=u;let{version:f}=u;l!=null&&l._directives?(this.directives=l._directives.atDocument(),this.directives.yaml.explicit&&(f=this.directives.yaml.version)):this.directives=new nt({version:f}),this.setSchema(f,l),this.contents=n===void 0?null:this.createNode(n,o,l)}clone(){const n=Object.create(Dr.prototype,{[_t]:{value:Fa}});return n.commentBefore=this.commentBefore,n.comment=this.comment,n.errors=this.errors.slice(),n.warnings=this.warnings.slice(),n.options=Object.assign({},this.options),this.directives&&(n.directives=this.directives.clone()),n.schema=this.schema.clone(),n.contents=Ie(this.contents)?this.contents.clone(n.schema):this.contents,this.range&&(n.range=this.range.slice()),n}add(n){vr(this.contents)&&this.contents.add(n)}addIn(n,r){vr(this.contents)&&this.contents.addIn(n,r)}createAlias(n,r){if(!n.anchor){const l=ph(this);n.anchor=!r||l.has(r)?mh(r||"a",l):r}return new gl(n.anchor)}createNode(n,r,l){let o;if(typeof r=="function")n=r.call({"":n},"",n),o=r;else if(Array.isArray(r)){const w=P=>typeof P=="number"||P instanceof String||P instanceof Number,A=r.filter(w).map(String);A.length>0&&(r=r.concat(A)),o=r}else l===void 0&&r&&(l=r,r=void 0);const{aliasDuplicateObjects:u,anchorPrefix:f,flow:h,keepUndefined:p,onTagObj:g,tag:N}=l??{},{onAnchor:S,setAnchors:T,sourceObjects:E}=fy(this,f||"a"),L={aliasDuplicateObjects:u??!0,keepUndefined:p??!1,onAnchor:S,onTagObj:g,replacer:o,schema:this.schema,sourceObjects:E},v=Ls(n,N,L);return h&&$e(v)&&(v.flow=!0),T(),v}createPair(n,r,l={}){const o=this.createNode(n,null,l),u=this.createNode(r,null,l);return new Ze(o,u)}delete(n){return vr(this.contents)?this.contents.delete(n):!1}deleteIn(n){return Cs(n)?this.contents==null?!1:(this.contents=null,!0):vr(this.contents)?this.contents.deleteIn(n):!1}get(n,r){return $e(this.contents)?this.contents.get(n,r):void 0}getIn(n,r){return Cs(n)?!r&&ve(this.contents)?this.contents.value:this.contents:$e(this.contents)?this.contents.getIn(n,r):void 0}has(n){return $e(this.contents)?this.contents.has(n):!1}hasIn(n){return Cs(n)?this.contents!==void 0:$e(this.contents)?this.contents.hasIn(n):!1}set(n,r){this.contents==null?this.contents=al(this.schema,[n],r):vr(this.contents)&&this.contents.set(n,r)}setIn(n,r){Cs(n)?this.contents=r:this.contents==null?this.contents=al(this.schema,Array.from(n),r):vr(this.contents)&&this.contents.setIn(n,r)}setSchema(n,r={}){typeof n=="number"&&(n=String(n));let l;switch(n){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new nt({version:"1.1"}),l={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=n:this.directives=new nt({version:n}),l={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,l=null;break;default:{const o=JSON.stringify(n);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(l)this.schema=new Tl(Object.assign(l,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:n,jsonArg:r,mapAsMap:l,maxAliasCount:o,onAnchor:u,reviver:f}={}){const h={anchors:new Map,doc:this,keep:!n,mapAsMap:l===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},p=Ct(this.contents,r??"",h);if(typeof u=="function")for(const{count:g,res:N}of h.anchors.values())u(N,g);return typeof f=="function"?Nr(f,{"":p},"",p):p}toJSON(n,r){return this.toJS({json:!0,jsonArg:n,mapAsMap:!1,onAnchor:r})}toString(n={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in n&&(!Number.isInteger(n.indent)||Number(n.indent)<=0)){const r=JSON.stringify(n.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return Dy(this,n)}}function vr(i){if($e(i))return!0;throw new Error("Expected a YAML collection as document contents")}class lu extends Error{constructor(n,r,l,o){super(),this.name=n,this.code=l,this.message=o,this.pos=r}}class Fn extends lu{constructor(n,r,l){super("YAMLParseError",n,r,l)}}class Bh extends lu{constructor(n,r,l){super("YAMLWarning",n,r,l)}}const cl=(i,n)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(h=>n.linePos(h));const{line:l,col:o}=r.linePos[0];r.message+=` at line ${l}, column ${o}`;let u=o-1,f=i.substring(n.lineStarts[l-1],n.lineStarts[l]).replace(/[\n\r]+$/,"");if(u>=60&&f.length>80){const h=Math.min(u-39,f.length-79);f="…"+f.substring(h),u-=h-1}if(f.length>80&&(f=f.substring(0,79)+"…"),l>1&&/^ *$/.test(f.substring(0,u))){let h=i.substring(n.lineStarts[l-2],n.lineStarts[l-1]);h.length>80&&(h=h.substring(0,79)+`…
99
- `),f=h+f}if(/[^ ]/.test(f)){let h=1;const p=r.linePos[1];p&&p.line===l&&p.col>o&&(h=Math.max(1,Math.min(p.col-o,80-u)));const g=" ".repeat(u)+"^".repeat(h);r.message+=`:
100
-
101
- ${f}
102
- ${g}
103
- `}};function Or(i,{flow:n,indicator:r,next:l,offset:o,onError:u,parentIndent:f,startOnNewline:h}){let p=!1,g=h,N=h,S="",T="",E=!1,L=!1,v=null,w=null,A=null,P=null,M=null,V=null,q=null;for(const U of i)switch(L&&(U.type!=="space"&&U.type!=="newline"&&U.type!=="comma"&&u(U.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),L=!1),v&&(g&&U.type!=="comment"&&U.type!=="newline"&&u(v,"TAB_AS_INDENT","Tabs are not allowed as indentation"),v=null),U.type){case"space":!n&&(r!=="doc-start"||(l==null?void 0:l.type)!=="flow-collection")&&U.source.includes(" ")&&(v=U),N=!0;break;case"comment":{N||u(U,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const O=U.source.substring(1)||" ";S?S+=T+O:S=O,T="",g=!1;break}case"newline":g?S?S+=U.source:p=!0:T+=U.source,g=!0,E=!0,(w||A)&&(P=U),N=!0;break;case"anchor":w&&u(U,"MULTIPLE_ANCHORS","A node can have at most one anchor"),U.source.endsWith(":")&&u(U.offset+U.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),w=U,q===null&&(q=U.offset),g=!1,N=!1,L=!0;break;case"tag":{A&&u(U,"MULTIPLE_TAGS","A node can have at most one tag"),A=U,q===null&&(q=U.offset),g=!1,N=!1,L=!0;break}case r:(w||A)&&u(U,"BAD_PROP_ORDER",`Anchors and tags must be after the ${U.source} indicator`),V&&u(U,"UNEXPECTED_TOKEN",`Unexpected ${U.source} in ${n??"collection"}`),V=U,g=r==="seq-item-ind"||r==="explicit-key-ind",N=!1;break;case"comma":if(n){M&&u(U,"UNEXPECTED_TOKEN",`Unexpected , in ${n}`),M=U,g=!1,N=!1;break}default:u(U,"UNEXPECTED_TOKEN",`Unexpected ${U.type} token`),g=!1,N=!1}const z=i[i.length-1],ee=z?z.offset+z.source.length:o;return L&&l&&l.type!=="space"&&l.type!=="newline"&&l.type!=="comma"&&(l.type!=="scalar"||l.source!=="")&&u(l.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),v&&(g&&v.indent<=f||(l==null?void 0:l.type)==="block-map"||(l==null?void 0:l.type)==="block-seq")&&u(v,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:M,found:V,spaceBefore:p,comment:S,hasNewline:E,anchor:w,tag:A,newlineAfterProp:P,end:ee,start:q??ee}}function Os(i){if(!i)return null;switch(i.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(i.source.includes(`
104
- `))return!0;if(i.end){for(const n of i.end)if(n.type==="newline")return!0}return!1;case"flow-collection":for(const n of i.items){for(const r of n.start)if(r.type==="newline")return!0;if(n.sep){for(const r of n.sep)if(r.type==="newline")return!0}if(Os(n.key)||Os(n.value))return!0}return!1;default:return!0}}function Wa(i,n,r){if((n==null?void 0:n.type)==="flow-collection"){const l=n.end[0];l.indent===i&&(l.source==="]"||l.source==="}")&&Os(n)&&r(l,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function zh(i,n,r){const{uniqueKeys:l}=i.options;if(l===!1)return!1;const o=typeof l=="function"?l:(u,f)=>u===f||ve(u)&&ve(f)&&u.value===f.value;return n.some(u=>o(u.key,r))}const $d="All mapping items must start at the same column";function by({composeNode:i,composeEmptyNode:n},r,l,o,u){var N;const f=(u==null?void 0:u.nodeClass)??wt,h=new f(r.schema);r.atRoot&&(r.atRoot=!1);let p=l.offset,g=null;for(const S of l.items){const{start:T,key:E,sep:L,value:v}=S,w=Or(T,{indicator:"explicit-key-ind",next:E??(L==null?void 0:L[0]),offset:p,onError:o,parentIndent:l.indent,startOnNewline:!0}),A=!w.found;if(A){if(E&&(E.type==="block-seq"?o(p,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in E&&E.indent!==l.indent&&o(p,"BAD_INDENT",$d)),!w.anchor&&!w.tag&&!L){g=w.end,w.comment&&(h.comment?h.comment+=`
105
- `+w.comment:h.comment=w.comment);continue}(w.newlineAfterProp||Os(E))&&o(E??T[T.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((N=w.found)==null?void 0:N.indent)!==l.indent&&o(p,"BAD_INDENT",$d);r.atKey=!0;const P=w.end,M=E?i(r,E,w,o):n(r,P,T,null,w,o);r.schema.compat&&Wa(l.indent,E,o),r.atKey=!1,zh(r,h.items,M)&&o(P,"DUPLICATE_KEY","Map keys must be unique");const V=Or(L??[],{indicator:"map-value-ind",next:v,offset:M.range[2],onError:o,parentIndent:l.indent,startOnNewline:!E||E.type==="block-scalar"});if(p=V.end,V.found){A&&((v==null?void 0:v.type)==="block-map"&&!V.hasNewline&&o(p,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&w.start<V.found.offset-1024&&o(M.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const q=v?i(r,v,V,o):n(r,p,L,null,V,o);r.schema.compat&&Wa(l.indent,v,o),p=q.range[2];const z=new Ze(M,q);r.options.keepSourceTokens&&(z.srcToken=S),h.items.push(z)}else{A&&o(M.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),V.comment&&(M.comment?M.comment+=`
106
- `+V.comment:M.comment=V.comment);const q=new Ze(M);r.options.keepSourceTokens&&(q.srcToken=S),h.items.push(q)}}return g&&g<p&&o(g,"IMPOSSIBLE","Map comment with trailing content"),h.range=[l.offset,p,g??p],h}function By({composeNode:i,composeEmptyNode:n},r,l,o,u){const f=(u==null?void 0:u.nodeClass)??xn,h=new f(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let p=l.offset,g=null;for(const{start:N,value:S}of l.items){const T=Or(N,{indicator:"seq-item-ind",next:S,offset:p,onError:o,parentIndent:l.indent,startOnNewline:!0});if(!T.found)if(T.anchor||T.tag||S)S&&S.type==="block-seq"?o(T.end,"BAD_INDENT","All sequence items must start at the same column"):o(p,"MISSING_CHAR","Sequence item without - indicator");else{g=T.end,T.comment&&(h.comment=T.comment);continue}const E=S?i(r,S,T,o):n(r,T.end,N,null,T,o);r.schema.compat&&Wa(l.indent,S,o),p=E.range[2],h.items.push(E)}return h.range=[l.offset,p,g??p],h}function js(i,n,r,l){let o="";if(i){let u=!1,f="";for(const h of i){const{source:p,type:g}=h;switch(g){case"space":u=!0;break;case"comment":{r&&!u&&l(h,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const N=p.substring(1)||" ";o?o+=f+N:o=N,f="";break}case"newline":o&&(f+=p),u=!0;break;default:l(h,"UNEXPECTED_TOKEN",`Unexpected ${g} at node end`)}n+=p.length}}return{comment:o,offset:n}}const Aa="Block collections are not allowed within flow collections",Pa=i=>i&&(i.type==="block-map"||i.type==="block-seq");function zy({composeNode:i,composeEmptyNode:n},r,l,o,u){const f=l.start.source==="{",h=f?"flow map":"flow sequence",p=(u==null?void 0:u.nodeClass)??(f?wt:xn),g=new p(r.schema);g.flow=!0;const N=r.atRoot;N&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let S=l.offset+l.start.source.length;for(let w=0;w<l.items.length;++w){const A=l.items[w],{start:P,key:M,sep:V,value:q}=A,z=Or(P,{flow:h,indicator:"explicit-key-ind",next:M??(V==null?void 0:V[0]),offset:S,onError:o,parentIndent:l.indent,startOnNewline:!1});if(!z.found){if(!z.anchor&&!z.tag&&!V&&!q){w===0&&z.comma?o(z.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${h}`):w<l.items.length-1&&o(z.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${h}`),z.comment&&(g.comment?g.comment+=`
107
- `+z.comment:g.comment=z.comment),S=z.end;continue}!f&&r.options.strict&&Os(M)&&o(M,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(w===0)z.comma&&o(z.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${h}`);else if(z.comma||o(z.start,"MISSING_CHAR",`Missing , between ${h} items`),z.comment){let ee="";e:for(const U of P)switch(U.type){case"comma":case"space":break;case"comment":ee=U.source.substring(1);break e;default:break e}if(ee){let U=g.items[g.items.length-1];_e(U)&&(U=U.value??U.key),U.comment?U.comment+=`
108
- `+ee:U.comment=ee,z.comment=z.comment.substring(ee.length+1)}}if(!f&&!V&&!z.found){const ee=q?i(r,q,z,o):n(r,z.end,V,null,z,o);g.items.push(ee),S=ee.range[2],Pa(q)&&o(ee.range,"BLOCK_IN_FLOW",Aa)}else{r.atKey=!0;const ee=z.end,U=M?i(r,M,z,o):n(r,ee,P,null,z,o);Pa(M)&&o(U.range,"BLOCK_IN_FLOW",Aa),r.atKey=!1;const O=Or(V??[],{flow:h,indicator:"map-value-ind",next:q,offset:U.range[2],onError:o,parentIndent:l.indent,startOnNewline:!1});if(O.found){if(!f&&!z.found&&r.options.strict){if(V)for(const j of V){if(j===O.found)break;if(j.type==="newline"){o(j,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}z.start<O.found.offset-1024&&o(O.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else q&&("source"in q&&q.source&&q.source[0]===":"?o(q,"MISSING_CHAR",`Missing space after : in ${h}`):o(O.start,"MISSING_CHAR",`Missing , or : between ${h} items`));const se=q?i(r,q,O,o):O.found?n(r,O.end,V,null,O,o):null;se?Pa(q)&&o(se.range,"BLOCK_IN_FLOW",Aa):O.comment&&(U.comment?U.comment+=`
109
- `+O.comment:U.comment=O.comment);const oe=new Ze(U,se);if(r.options.keepSourceTokens&&(oe.srcToken=A),f){const j=g;zh(r,j.items,U)&&o(ee,"DUPLICATE_KEY","Map keys must be unique"),j.items.push(oe)}else{const j=new wt(r.schema);j.flow=!0,j.items.push(oe);const Z=(se??U).range;j.range=[U.range[0],Z[1],Z[2]],g.items.push(j)}S=se?se.range[2]:O.end}}const T=f?"}":"]",[E,...L]=l.end;let v=S;if(E&&E.source===T)v=E.offset+E.source.length;else{const w=h[0].toUpperCase()+h.substring(1),A=N?`${w} must end with a ${T}`:`${w} in block collection must be sufficiently indented and end with a ${T}`;o(S,N?"MISSING_CHAR":"BAD_INDENT",A),E&&E.source.length!==1&&L.unshift(E)}if(L.length>0){const w=js(L,v,r.options.strict,o);w.comment&&(g.comment?g.comment+=`
110
- `+w.comment:g.comment=w.comment),g.range=[l.offset,v,w.offset]}else g.range=[l.offset,v,v];return g}function ja(i,n,r,l,o,u){const f=r.type==="block-map"?by(i,n,r,l,u):r.type==="block-seq"?By(i,n,r,l,u):zy(i,n,r,l,u),h=f.constructor;return o==="!"||o===h.tagName?(f.tag=h.tagName,f):(o&&(f.tag=o),f)}function Fy(i,n,r,l,o){var T;const u=l.tag,f=u?n.directives.tagName(u.source,E=>o(u,"TAG_RESOLVE_FAILED",E)):null;if(r.type==="block-seq"){const{anchor:E,newlineAfterProp:L}=l,v=E&&u?E.offset>u.offset?E:u:E??u;v&&(!L||L.offset<v.offset)&&o(v,"MISSING_CHAR","Missing newline after block sequence props")}const h=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!u||!f||f==="!"||f===wt.tagName&&h==="map"||f===xn.tagName&&h==="seq")return ja(i,n,r,o,f);let p=n.schema.tags.find(E=>E.tag===f&&E.collection===h);if(!p){const E=n.schema.knownTags[f];if(E&&E.collection===h)n.schema.tags.push(Object.assign({},E,{default:!1})),p=E;else return E!=null&&E.collection?o(u,"BAD_COLLECTION_TYPE",`${E.tag} used for ${h} collection, but expects ${E.collection}`,!0):o(u,"TAG_RESOLVE_FAILED",`Unresolved tag: ${f}`,!0),ja(i,n,r,o,f)}const g=ja(i,n,r,o,f,p),N=((T=p.resolve)==null?void 0:T.call(p,g,E=>o(u,"TAG_RESOLVE_FAILED",E),n.options))??g,S=Ie(N)?N:new le(N);return S.range=g.range,S.tag=f,p!=null&&p.format&&(S.format=p.format),S}function Fh(i,n,r){const l=n.offset,o=Uy(n,i.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[l,l,l]};const u=o.mode===">"?le.BLOCK_FOLDED:le.BLOCK_LITERAL,f=n.source?Vy(n.source):[];let h=f.length;for(let v=f.length-1;v>=0;--v){const w=f[v][1];if(w===""||w==="\r")h=v;else break}if(h===0){const v=o.chomp==="+"&&f.length>0?`
111
- `.repeat(Math.max(1,f.length-1)):"";let w=l+o.length;return n.source&&(w+=n.source.length),{value:v,type:u,comment:o.comment,range:[l,w,w]}}let p=n.indent+o.indent,g=n.offset+o.length,N=0;for(let v=0;v<h;++v){const[w,A]=f[v];if(A===""||A==="\r")o.indent===0&&w.length>p&&(p=w.length);else{w.length<p&&r(g+w.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(p=w.length),N=v,p===0&&!i.atRoot&&r(g,"BAD_INDENT","Block scalar values in collections must be indented");break}g+=w.length+A.length+1}for(let v=f.length-1;v>=h;--v)f[v][0].length>p&&(h=v+1);let S="",T="",E=!1;for(let v=0;v<N;++v)S+=f[v][0].slice(p)+`
112
- `;for(let v=N;v<h;++v){let[w,A]=f[v];g+=w.length+A.length+1;const P=A[A.length-1]==="\r";if(P&&(A=A.slice(0,-1)),A&&w.length<p){const V=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;r(g-A.length-(P?2:1),"BAD_INDENT",V),w=""}u===le.BLOCK_LITERAL?(S+=T+w.slice(p)+A,T=`
113
- `):w.length>p||A[0]===" "?(T===" "?T=`
114
- `:!E&&T===`
115
- `&&(T=`
116
-
117
- `),S+=T+w.slice(p)+A,T=`
118
- `,E=!0):A===""?T===`
119
- `?S+=`
120
- `:T=`
121
- `:(S+=T+A,T=" ",E=!1)}switch(o.chomp){case"-":break;case"+":for(let v=h;v<f.length;++v)S+=`
122
- `+f[v][0].slice(p);S[S.length-1]!==`
123
- `&&(S+=`
124
- `);break;default:S+=`
125
- `}const L=l+o.length+n.source.length;return{value:S,type:u,comment:o.comment,range:[l,L,L]}}function Uy({offset:i,props:n},r,l){if(n[0].type!=="block-scalar-header")return l(n[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=n[0],u=o[0];let f=0,h="",p=-1;for(let T=1;T<o.length;++T){const E=o[T];if(!h&&(E==="-"||E==="+"))h=E;else{const L=Number(E);!f&&L?f=L:p===-1&&(p=i+T)}}p!==-1&&l(p,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let g=!1,N="",S=o.length;for(let T=1;T<n.length;++T){const E=n[T];switch(E.type){case"space":g=!0;case"newline":S+=E.source.length;break;case"comment":r&&!g&&l(E,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),S+=E.source.length,N=E.source.substring(1);break;case"error":l(E,"UNEXPECTED_TOKEN",E.message),S+=E.source.length;break;default:{const L=`Unexpected token in block scalar header: ${E.type}`;l(E,"UNEXPECTED_TOKEN",L);const v=E.source;v&&typeof v=="string"&&(S+=v.length)}}}return{mode:u,indent:f,chomp:h,comment:N,length:S}}function Vy(i){const n=i.split(/\n( *)/),r=n[0],l=r.match(/^( *)/),u=[l!=null&&l[1]?[l[1],r.slice(l[1].length)]:["",r]];for(let f=1;f<n.length;f+=2)u.push([n[f],n[f+1]]);return u}function Uh(i,n,r){const{offset:l,type:o,source:u,end:f}=i;let h,p;const g=(T,E,L)=>r(l+T,E,L);switch(o){case"scalar":h=le.PLAIN,p=Ky(u,g);break;case"single-quoted-scalar":h=le.QUOTE_SINGLE,p=Wy(u,g);break;case"double-quoted-scalar":h=le.QUOTE_DOUBLE,p=qy(u,g);break;default:return r(i,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[l,l+u.length,l+u.length]}}const N=l+u.length,S=js(f,N,n,r);return{value:p,type:h,comment:S.comment,range:[l,N,S.offset]}}function Ky(i,n){let r="";switch(i[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${i[0]}`;break}case"@":case"`":{r=`reserved character ${i[0]}`;break}}return r&&n(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),Vh(i)}function Wy(i,n){return(i[i.length-1]!=="'"||i.length===1)&&n(i.length,"MISSING_CHAR","Missing closing 'quote"),Vh(i.slice(1,-1)).replace(/''/g,"'")}function Vh(i){let n,r;try{n=new RegExp(`(.*?)(?<![ ])[ ]*\r?
126
- `,"sy"),r=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
127
- `,"sy")}catch{n=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let l=n.exec(i);if(!l)return i;let o=l[1],u=" ",f=n.lastIndex;for(r.lastIndex=f;l=r.exec(i);)l[1]===""?u===`
128
- `?o+=u:u=`
129
- `:(o+=u+l[1],u=" "),f=r.lastIndex;const h=/[ \t]*(.*)/sy;return h.lastIndex=f,l=h.exec(i),o+u+((l==null?void 0:l[1])??"")}function qy(i,n){let r="";for(let l=1;l<i.length-1;++l){const o=i[l];if(!(o==="\r"&&i[l+1]===`
130
- `))if(o===`
131
- `){const{fold:u,offset:f}=Hy(i,l);r+=u,l=f}else if(o==="\\"){let u=i[++l];const f=Qy[u];if(f)r+=f;else if(u===`
132
- `)for(u=i[l+1];u===" "||u===" ";)u=i[++l+1];else if(u==="\r"&&i[l+1]===`
133
- `)for(u=i[++l+1];u===" "||u===" ";)u=i[++l+1];else if(u==="x"||u==="u"||u==="U"){const h={x:2,u:4,U:8}[u];r+=Jy(i,l+1,h,n),l+=h}else{const h=i.substr(l-1,2);n(l-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${h}`),r+=h}}else if(o===" "||o===" "){const u=l;let f=i[l+1];for(;f===" "||f===" ";)f=i[++l+1];f!==`
134
- `&&!(f==="\r"&&i[l+2]===`
135
- `)&&(r+=l>u?i.slice(u,l+1):o)}else r+=o}return(i[i.length-1]!=='"'||i.length===1)&&n(i.length,"MISSING_CHAR",'Missing closing "quote'),r}function Hy(i,n){let r="",l=i[n+1];for(;(l===" "||l===" "||l===`
136
- `||l==="\r")&&!(l==="\r"&&i[n+2]!==`
137
- `);)l===`
138
- `&&(r+=`
139
- `),n+=1,l=i[n+1];return r||(r=" "),{fold:r,offset:n}}const Qy={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
140
- `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Jy(i,n,r,l){const o=i.substr(n,r),f=o.length===r&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(f)){const h=i.substr(n-2,r+2);return l(n-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${h}`),h}return String.fromCodePoint(f)}function Kh(i,n,r,l){const{value:o,type:u,comment:f,range:h}=n.type==="block-scalar"?Fh(i,n,l):Uh(n,i.options.strict,l),p=r?i.directives.tagName(r.source,S=>l(r,"TAG_RESOLVE_FAILED",S)):null;let g;i.options.stringKeys&&i.atKey?g=i.schema[Vt]:p?g=Yy(i.schema,o,p,r,l):n.type==="scalar"?g=Gy(i,o,n,l):g=i.schema[Vt];let N;try{const S=g.resolve(o,T=>l(r??n,"TAG_RESOLVE_FAILED",T),i.options);N=ve(S)?S:new le(S)}catch(S){const T=S instanceof Error?S.message:String(S);l(r??n,"TAG_RESOLVE_FAILED",T),N=new le(o)}return N.range=h,N.source=o,u&&(N.type=u),p&&(N.tag=p),g.format&&(N.format=g.format),f&&(N.comment=f),N}function Yy(i,n,r,l,o){var h;if(r==="!")return i[Vt];const u=[];for(const p of i.tags)if(!p.collection&&p.tag===r)if(p.default&&p.test)u.push(p);else return p;for(const p of u)if((h=p.test)!=null&&h.test(n))return p;const f=i.knownTags[r];return f&&!f.collection?(i.tags.push(Object.assign({},f,{default:!1,test:void 0})),f):(o(l,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),i[Vt])}function Gy({atKey:i,directives:n,schema:r},l,o,u){const f=r.tags.find(h=>{var p;return(h.default===!0||i&&h.default==="key")&&((p=h.test)==null?void 0:p.test(l))})||r[Vt];if(r.compat){const h=r.compat.find(p=>{var g;return p.default&&((g=p.test)==null?void 0:g.test(l))})??r[Vt];if(f.tag!==h.tag){const p=n.tagString(f.tag),g=n.tagString(h.tag),N=`Value may be parsed as either ${p} or ${g}`;u(o,"TAG_RESOLVE_FAILED",N,!0)}}return f}function Xy(i,n,r){if(n){r===null&&(r=n.length);for(let l=r-1;l>=0;--l){let o=n[l];switch(o.type){case"space":case"comment":case"newline":i-=o.source.length;continue}for(o=n[++l];(o==null?void 0:o.type)==="space";)i+=o.source.length,o=n[++l];break}}return i}const Zy={composeNode:Wh,composeEmptyNode:ou};function Wh(i,n,r,l){const o=i.atKey,{spaceBefore:u,comment:f,anchor:h,tag:p}=r;let g,N=!0;switch(n.type){case"alias":g=e0(i,n,l),(h||p)&&l(n,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":g=Kh(i,n,p,l),h&&(g.anchor=h.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":g=Fy(Zy,i,n,r,l),h&&(g.anchor=h.source.substring(1));break;default:{const S=n.type==="error"?n.message:`Unsupported token (type: ${n.type})`;l(n,"UNEXPECTED_TOKEN",S),g=ou(i,n.offset,void 0,null,r,l),N=!1}}return h&&g.anchor===""&&l(h,"BAD_ALIAS","Anchor cannot be an empty string"),o&&i.options.stringKeys&&(!ve(g)||typeof g.value!="string"||g.tag&&g.tag!=="tag:yaml.org,2002:str")&&l(p??n,"NON_STRING_KEY","With stringKeys, all keys must be strings"),u&&(g.spaceBefore=!0),f&&(n.type==="scalar"&&n.source===""?g.comment=f:g.commentBefore=f),i.options.keepSourceTokens&&N&&(g.srcToken=n),g}function ou(i,n,r,l,{spaceBefore:o,comment:u,anchor:f,tag:h,end:p},g){const N={type:"scalar",offset:Xy(n,r,l),indent:-1,source:""},S=Kh(i,N,h,g);return f&&(S.anchor=f.source.substring(1),S.anchor===""&&g(f,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(S.spaceBefore=!0),u&&(S.comment=u,S.range[2]=p),S}function e0({options:i},{offset:n,source:r,end:l},o){const u=new gl(r.substring(1));u.source===""&&o(n,"BAD_ALIAS","Alias cannot be an empty string"),u.source.endsWith(":")&&o(n+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const f=n+r.length,h=js(l,f,i.strict,o);return u.range=[n,f,h.offset],h.comment&&(u.comment=h.comment),u}function t0(i,n,{offset:r,start:l,value:o,end:u},f){const h=Object.assign({_directives:n},i),p=new Dr(void 0,h),g={atKey:!1,atRoot:!0,directives:p.directives,options:p.options,schema:p.schema},N=Or(l,{indicator:"doc-start",next:o??(u==null?void 0:u[0]),offset:r,onError:f,parentIndent:0,startOnNewline:!0});N.found&&(p.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!N.hasNewline&&f(N.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),p.contents=o?Wh(g,o,N,f):ou(g,N.end,l,null,N,f);const S=p.contents.range[2],T=js(u,S,!1,f);return T.comment&&(p.comment=T.comment),p.range=[r,S,T.offset],p}function Ts(i){if(typeof i=="number")return[i,i+1];if(Array.isArray(i))return i.length===2?i:[i[0],i[1]];const{offset:n,source:r}=i;return[n,n+(typeof r=="string"?r.length:1)]}function Id(i){var o;let n="",r=!1,l=!1;for(let u=0;u<i.length;++u){const f=i[u];switch(f[0]){case"#":n+=(n===""?"":l?`
141
-
142
- `:`
143
- `)+(f.substring(1)||" "),r=!0,l=!1;break;case"%":((o=i[u+1])==null?void 0:o[0])!=="#"&&(u+=1),r=!1;break;default:r||(l=!0),r=!1}}return{comment:n,afterEmptyLine:l}}class au{constructor(n={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,l,o,u)=>{const f=Ts(r);u?this.warnings.push(new Bh(f,l,o)):this.errors.push(new Fn(f,l,o))},this.directives=new nt({version:n.version||"1.2"}),this.options=n}decorate(n,r){const{comment:l,afterEmptyLine:o}=Id(this.prelude);if(l){const u=n.contents;if(r)n.comment=n.comment?`${n.comment}
144
- ${l}`:l;else if(o||n.directives.docStart||!u)n.commentBefore=l;else if($e(u)&&!u.flow&&u.items.length>0){let f=u.items[0];_e(f)&&(f=f.key);const h=f.commentBefore;f.commentBefore=h?`${l}
145
- ${h}`:l}else{const f=u.commentBefore;u.commentBefore=f?`${l}
146
- ${f}`:l}}r?(Array.prototype.push.apply(n.errors,this.errors),Array.prototype.push.apply(n.warnings,this.warnings)):(n.errors=this.errors,n.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Id(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(n,r=!1,l=-1){for(const o of n)yield*this.next(o);yield*this.end(r,l)}*next(n){switch(n.type){case"directive":this.directives.add(n.source,(r,l,o)=>{const u=Ts(n);u[0]+=r,this.onError(u,"BAD_DIRECTIVE",l,o)}),this.prelude.push(n.source),this.atDirectives=!0;break;case"document":{const r=t0(this.options,this.directives,n,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(n,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(n.source);break;case"error":{const r=n.source?`${n.message}: ${JSON.stringify(n.source)}`:n.message,l=new Fn(Ts(n),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(l):this.doc.errors.push(l);break}case"doc-end":{if(!this.doc){const l="Unexpected doc-end without preceding document";this.errors.push(new Fn(Ts(n),"UNEXPECTED_TOKEN",l));break}this.doc.directives.docEnd=!0;const r=js(n.end,n.offset+n.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){const l=this.doc.comment;this.doc.comment=l?`${l}
147
- ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new Fn(Ts(n),"UNEXPECTED_TOKEN",`Unsupported token ${n.type}`))}}*end(n=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(n){const l=Object.assign({_directives:this.directives},this.options),o=new Dr(void 0,l);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,r,r],this.decorate(o,!1),yield o}}}function n0(i,n=!0,r){if(i){const l=(o,u,f)=>{const h=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(r)r(h,u,f);else throw new Fn([h,h+1],u,f)};switch(i.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Uh(i,n,l);case"block-scalar":return Fh({options:{strict:n}},i,l)}}return null}function r0(i,n){const{implicitKey:r=!1,indent:l,inFlow:o=!1,offset:u=-1,type:f="PLAIN"}=n,h=As({type:f,value:i},{implicitKey:r,indent:l>0?" ".repeat(l):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),p=n.end??[{type:"newline",offset:-1,indent:l,source:`
148
- `}];switch(h[0]){case"|":case">":{const g=h.indexOf(`
149
- `),N=h.substring(0,g),S=h.substring(g+1)+`
150
- `,T=[{type:"block-scalar-header",offset:u,indent:l,source:N}];return qh(T,p)||T.push({type:"newline",offset:-1,indent:l,source:`
151
- `}),{type:"block-scalar",offset:u,indent:l,props:T,source:S}}case'"':return{type:"double-quoted-scalar",offset:u,indent:l,source:h,end:p};case"'":return{type:"single-quoted-scalar",offset:u,indent:l,source:h,end:p};default:return{type:"scalar",offset:u,indent:l,source:h,end:p}}}function s0(i,n,r={}){let{afterKey:l=!1,implicitKey:o=!1,inFlow:u=!1,type:f}=r,h="indent"in i?i.indent:null;if(l&&typeof h=="number"&&(h+=2),!f)switch(i.type){case"single-quoted-scalar":f="QUOTE_SINGLE";break;case"double-quoted-scalar":f="QUOTE_DOUBLE";break;case"block-scalar":{const g=i.props[0];if(g.type!=="block-scalar-header")throw new Error("Invalid block scalar header");f=g.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:f="PLAIN"}const p=As({type:f,value:n},{implicitKey:o||h===null,indent:h!==null&&h>0?" ".repeat(h):"",inFlow:u,options:{blockQuote:!0,lineWidth:-1}});switch(p[0]){case"|":case">":i0(i,p);break;case'"':Ma(i,p,"double-quoted-scalar");break;case"'":Ma(i,p,"single-quoted-scalar");break;default:Ma(i,p,"scalar")}}function i0(i,n){const r=n.indexOf(`
152
- `),l=n.substring(0,r),o=n.substring(r+1)+`
153
- `;if(i.type==="block-scalar"){const u=i.props[0];if(u.type!=="block-scalar-header")throw new Error("Invalid block scalar header");u.source=l,i.source=o}else{const{offset:u}=i,f="indent"in i?i.indent:-1,h=[{type:"block-scalar-header",offset:u,indent:f,source:l}];qh(h,"end"in i?i.end:void 0)||h.push({type:"newline",offset:-1,indent:f,source:`
154
- `});for(const p of Object.keys(i))p!=="type"&&p!=="offset"&&delete i[p];Object.assign(i,{type:"block-scalar",indent:f,props:h,source:o})}}function qh(i,n){if(n)for(const r of n)switch(r.type){case"space":case"comment":i.push(r);break;case"newline":return i.push(r),!0}return!1}function Ma(i,n,r){switch(i.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":i.type=r,i.source=n;break;case"block-scalar":{const l=i.props.slice(1);let o=n.length;i.props[0].type==="block-scalar-header"&&(o-=i.props[0].source.length);for(const u of l)u.offset+=o;delete i.props,Object.assign(i,{type:r,source:n,end:l});break}case"block-map":case"block-seq":{const o={type:"newline",offset:i.offset+n.length,indent:i.indent,source:`
155
- `};delete i.items,Object.assign(i,{type:r,source:n,end:[o]});break}default:{const l="indent"in i?i.indent:-1,o="end"in i&&Array.isArray(i.end)?i.end.filter(u=>u.type==="space"||u.type==="comment"||u.type==="newline"):[];for(const u of Object.keys(i))u!=="type"&&u!=="offset"&&delete i[u];Object.assign(i,{type:r,indent:l,source:n,end:o})}}}const l0=i=>"type"in i?fl(i):il(i);function fl(i){switch(i.type){case"block-scalar":{let n="";for(const r of i.props)n+=fl(r);return n+i.source}case"block-map":case"block-seq":{let n="";for(const r of i.items)n+=il(r);return n}case"flow-collection":{let n=i.start.source;for(const r of i.items)n+=il(r);for(const r of i.end)n+=r.source;return n}case"document":{let n=il(i);if(i.end)for(const r of i.end)n+=r.source;return n}default:{let n=i.source;if("end"in i&&i.end)for(const r of i.end)n+=r.source;return n}}}function il({start:i,key:n,sep:r,value:l}){let o="";for(const u of i)o+=u.source;if(n&&(o+=fl(n)),r)for(const u of r)o+=u.source;return l&&(o+=fl(l)),o}const qa=Symbol("break visit"),o0=Symbol("skip children"),Hh=Symbol("remove item");function Kn(i,n){"type"in i&&i.type==="document"&&(i={start:i.start,value:i.value}),Qh(Object.freeze([]),i,n)}Kn.BREAK=qa;Kn.SKIP=o0;Kn.REMOVE=Hh;Kn.itemAtPath=(i,n)=>{let r=i;for(const[l,o]of n){const u=r==null?void 0:r[l];if(u&&"items"in u)r=u.items[o];else return}return r};Kn.parentCollection=(i,n)=>{const r=Kn.itemAtPath(i,n.slice(0,-1)),l=n[n.length-1][0],o=r==null?void 0:r[l];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function Qh(i,n,r){let l=r(n,i);if(typeof l=="symbol")return l;for(const o of["key","value"]){const u=n[o];if(u&&"items"in u){for(let f=0;f<u.items.length;++f){const h=Qh(Object.freeze(i.concat([[o,f]])),u.items[f],r);if(typeof h=="number")f=h-1;else{if(h===qa)return qa;h===Hh&&(u.items.splice(f,1),f-=1)}}typeof l=="function"&&o==="key"&&(l=l(n,i))}}return typeof l=="function"?l(n,i):l}const Cl="\uFEFF",_l="",Ll="",$s="",a0=i=>!!i&&"items"in i,u0=i=>!!i&&(i.type==="scalar"||i.type==="single-quoted-scalar"||i.type==="double-quoted-scalar"||i.type==="block-scalar");function c0(i){switch(i){case Cl:return"<BOM>";case _l:return"<DOC>";case Ll:return"<FLOW_END>";case $s:return"<SCALAR>";default:return JSON.stringify(i)}}function Jh(i){switch(i){case Cl:return"byte-order-mark";case _l:return"doc-mode";case Ll:return"flow-error-end";case $s:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
156
- `:case`\r
157
- `: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(i[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}const f0=Object.freeze(Object.defineProperty({__proto__:null,BOM:Cl,DOCUMENT:_l,FLOW_END:Ll,SCALAR:$s,createScalarToken:r0,isCollection:a0,isScalar:u0,prettyToken:c0,resolveAsScalar:n0,setScalarValue:s0,stringify:l0,tokenType:Jh,visit:Kn},Symbol.toStringTag,{value:"Module"}));function Mt(i){switch(i){case void 0:case" ":case`
158
- `:case"\r":case" ":return!0;default:return!1}}const Ad=new Set("0123456789ABCDEFabcdef"),d0=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Ji=new Set(",[]{}"),h0=new Set(` ,[]{}
159
- \r `),Ra=i=>!i||h0.has(i);class Yh{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(n,r=!1){if(n){if(typeof n!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+n:n,this.lineEndPos=null}this.atEnd=!r;let l=this.next??"stream";for(;l&&(r||this.hasChars(1));)l=yield*this.parseNext(l)}atLineEnd(){let n=this.pos,r=this.buffer[n];for(;r===" "||r===" ";)r=this.buffer[++n];return!r||r==="#"||r===`
160
- `?!0:r==="\r"?this.buffer[n+1]===`
161
- `:!1}charAt(n){return this.buffer[this.pos+n]}continueScalar(n){let r=this.buffer[n];if(this.indentNext>0){let l=0;for(;r===" ";)r=this.buffer[++l+n];if(r==="\r"){const o=this.buffer[l+n+1];if(o===`
162
- `||!o&&!this.atEnd)return n+l+1}return r===`
163
- `||l>=this.indentNext||!r&&!this.atEnd?n+l:-1}if(r==="-"||r==="."){const l=this.buffer.substr(n,3);if((l==="---"||l==="...")&&Mt(this.buffer[n+3]))return-1}return n}getLine(){let n=this.lineEndPos;return(typeof n!="number"||n!==-1&&n<this.pos)&&(n=this.buffer.indexOf(`
164
- `,this.pos),this.lineEndPos=n),n===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[n-1]==="\r"&&(n-=1),this.buffer.substring(this.pos,n))}hasChars(n){return this.pos+n<=this.buffer.length}setNext(n){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=n,null}peek(n){return this.buffer.substr(this.pos,n)}*parseNext(n){switch(n){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 n=this.getLine();if(n===null)return this.setNext("stream");if(n[0]===Cl&&(yield*this.pushCount(1),n=n.substring(1)),n[0]==="%"){let r=n.length,l=n.indexOf("#");for(;l!==-1;){const u=n[l-1];if(u===" "||u===" "){r=l-1;break}else l=n.indexOf("#",l+1)}for(;;){const u=n[r-1];if(u===" "||u===" ")r-=1;else break}const o=(yield*this.pushCount(r))+(yield*this.pushSpaces(!0));return yield*this.pushCount(n.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const r=yield*this.pushSpaces(!0);return yield*this.pushCount(n.length-r),yield*this.pushNewline(),"stream"}return yield _l,yield*this.parseLineStart()}*parseLineStart(){const n=this.charAt(0);if(!n&&!this.atEnd)return this.setNext("line-start");if(n==="-"||n==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const r=this.peek(3);if((r==="---"||r==="...")&&Mt(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,r==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Mt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[n,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((n==="-"||n==="?"||n===":")&&Mt(r)){const l=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=l,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const n=this.getLine();if(n===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(n[r]){case"#":yield*this.pushCount(n.length-r);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(Ra),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(n.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let n,r,l=-1;do n=yield*this.pushNewline(),n>0?(r=yield*this.pushSpaces(!1),this.indentValue=l=r):r=0,r+=yield*this.pushSpaces(!0);while(n+r>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((l!==-1&&l<this.indentNext&&o[0]!=="#"||l===0&&(o.startsWith("---")||o.startsWith("..."))&&Mt(o[3]))&&!(l===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield Ll,yield*this.parseLineStart();let u=0;for(;o[u]===",";)u+=yield*this.pushCount(1),u+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(u+=yield*this.pushIndicators(),o[u]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-u),"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-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Ra),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const f=this.charAt(1);if(this.flowKey||Mt(f)||f===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const n=this.charAt(0);let r=this.buffer.indexOf(n,this.pos+1);if(n==="'")for(;r!==-1&&this.buffer[r+1]==="'";)r=this.buffer.indexOf("'",r+2);else for(;r!==-1;){let u=0;for(;this.buffer[r-1-u]==="\\";)u+=1;if(u%2===0)break;r=this.buffer.indexOf('"',r+1)}const l=this.buffer.substring(0,r);let o=l.indexOf(`
165
- `,this.pos);if(o!==-1){for(;o!==-1;){const u=this.continueScalar(o+1);if(u===-1)break;o=l.indexOf(`
166
- `,u)}o!==-1&&(r=o-(l[o-1]==="\r"?2:1))}if(r===-1){if(!this.atEnd)return this.setNext("quoted-scalar");r=this.buffer.length}return yield*this.pushToIndex(r+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let n=this.pos;for(;;){const r=this.buffer[++n];if(r==="+")this.blockScalarKeep=!0;else if(r>"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>Mt(r)||r==="#")}*parseBlockScalar(){let n=this.pos-1,r=0,l;e:for(let u=this.pos;l=this.buffer[u];++u)switch(l){case" ":r+=1;break;case`
167
- `:n=u,r=0;break;case"\r":{const f=this.buffer[u+1];if(!f&&!this.atEnd)return this.setNext("block-scalar");if(f===`
168
- `)break}default:break e}if(!l&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const u=this.continueScalar(n+1);if(u===-1)break;n=this.buffer.indexOf(`
169
- `,u)}while(n!==-1);if(n===-1){if(!this.atEnd)return this.setNext("block-scalar");n=this.buffer.length}}let o=n+1;for(l=this.buffer[o];l===" ";)l=this.buffer[++o];if(l===" "){for(;l===" "||l===" "||l==="\r"||l===`
170
- `;)l=this.buffer[++o];n=o-1}else if(!this.blockScalarKeep)do{let u=n-1,f=this.buffer[u];f==="\r"&&(f=this.buffer[--u]);const h=u;for(;f===" ";)f=this.buffer[--u];if(f===`
171
- `&&u>=this.pos&&u+1+r>h)n=u;else break}while(!0);return yield $s,yield*this.pushToIndex(n+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const n=this.flowLevel>0;let r=this.pos-1,l=this.pos-1,o;for(;o=this.buffer[++l];)if(o===":"){const u=this.buffer[l+1];if(Mt(u)||n&&Ji.has(u))break;r=l}else if(Mt(o)){let u=this.buffer[l+1];if(o==="\r"&&(u===`
172
- `?(l+=1,o=`
173
- `,u=this.buffer[l+1]):r=l),u==="#"||n&&Ji.has(u))break;if(o===`
174
- `){const f=this.continueScalar(l+1);if(f===-1)break;l=Math.max(l,f-2)}}else{if(n&&Ji.has(o))break;r=l}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield $s,yield*this.pushToIndex(r+1,!0),n?"flow":"doc")}*pushCount(n){return n>0?(yield this.buffer.substr(this.pos,n),this.pos+=n,n):0}*pushToIndex(n,r){const l=this.buffer.slice(this.pos,n);return l?(yield l,this.pos+=l.length,l.length):(r&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Ra))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const n=this.flowLevel>0,r=this.charAt(1);if(Mt(r)||n&&Ji.has(r))return n?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let n=this.pos+2,r=this.buffer[n];for(;!Mt(r)&&r!==">";)r=this.buffer[++n];return yield*this.pushToIndex(r===">"?n+1:n,!1)}else{let n=this.pos+1,r=this.buffer[n];for(;r;)if(d0.has(r))r=this.buffer[++n];else if(r==="%"&&Ad.has(this.buffer[n+1])&&Ad.has(this.buffer[n+2]))r=this.buffer[n+=3];else break;return yield*this.pushToIndex(n,!1)}}*pushNewline(){const n=this.buffer[this.pos];return n===`
175
- `?yield*this.pushCount(1):n==="\r"&&this.charAt(1)===`
176
- `?yield*this.pushCount(2):0}*pushSpaces(n){let r=this.pos-1,l;do l=this.buffer[++r];while(l===" "||n&&l===" ");const o=r-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=r),o}*pushUntil(n){let r=this.pos,l=this.buffer[r];for(;!n(l);)l=this.buffer[++r];return yield*this.pushToIndex(r,!1)}}class Gh{constructor(){this.lineStarts=[],this.addNewLine=n=>this.lineStarts.push(n),this.linePos=n=>{let r=0,l=this.lineStarts.length;for(;r<l;){const u=r+l>>1;this.lineStarts[u]<n?r=u+1:l=u}if(this.lineStarts[r]===n)return{line:r+1,col:1};if(r===0)return{line:0,col:n};const o=this.lineStarts[r-1];return{line:r,col:n-o+1}}}}function bn(i,n){for(let r=0;r<i.length;++r)if(i[r].type===n)return!0;return!1}function Pd(i){for(let n=0;n<i.length;++n)switch(i[n].type){case"space":case"comment":case"newline":break;default:return n}return-1}function Xh(i){switch(i==null?void 0:i.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Yi(i){switch(i.type){case"document":return i.start;case"block-map":{const n=i.items[i.items.length-1];return n.sep??n.start}case"block-seq":return i.items[i.items.length-1].start;default:return[]}}function wr(i){var r;if(i.length===0)return[];let n=i.length;e:for(;--n>=0;)switch(i[n].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((r=i[++n])==null?void 0:r.type)==="space";);return i.splice(n,i.length)}function jd(i){if(i.start.type==="flow-seq-start")for(const n of i.items)n.sep&&!n.value&&!bn(n.start,"explicit-key-ind")&&!bn(n.sep,"map-value-ind")&&(n.key&&(n.value=n.key),delete n.key,Xh(n.value)?n.value.end?Array.prototype.push.apply(n.value.end,n.sep):n.value.end=n.sep:Array.prototype.push.apply(n.start,n.sep),delete n.sep)}class uu{constructor(n){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Yh,this.onNewLine=n}*parse(n,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const l of this.lexer.lex(n,r))yield*this.next(l);r||(yield*this.end())}*next(n){if(this.source=n,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=n.length;return}const r=Jh(n);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+n.length);break;case"space":this.atNewLine&&n[0]===" "&&(this.indent+=n.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=n.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=n.length}else{const l=`Not a YAML token: ${n}`;yield*this.pop({type:"error",offset:this.offset,message:l,source:n}),this.offset+=n.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(){const n=this.peek(1);if(this.type==="doc-end"&&(!n||n.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(!n)return yield*this.stream();switch(n.type){case"document":return yield*this.document(n);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(n);case"block-scalar":return yield*this.blockScalar(n);case"block-map":return yield*this.blockMap(n);case"block-seq":return yield*this.blockSequence(n);case"flow-collection":return yield*this.flowCollection(n);case"doc-end":return yield*this.documentEnd(n)}yield*this.pop()}peek(n){return this.stack[this.stack.length-n]}*pop(n){const r=n??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{const l=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in l?l.indent:0:r.type==="flow-collection"&&l.type==="document"&&(r.indent=0),r.type==="flow-collection"&&jd(r),l.type){case"document":l.value=r;break;case"block-scalar":l.props.push(r);break;case"block-map":{const o=l.items[l.items.length-1];if(o.value){l.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=r;else{Object.assign(o,{key:r,sep:[]}),this.onKeyLine=!o.explicitKey;return}break}case"block-seq":{const o=l.items[l.items.length-1];o.value?l.items.push({start:[],value:r}):o.value=r;break}case"flow-collection":{const o=l.items[l.items.length-1];!o||o.value?l.items.push({start:[],key:r,sep:[]}):o.sep?o.value=r:Object.assign(o,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((l.type==="document"||l.type==="block-map"||l.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){const o=r.items[r.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&Pd(o.start)===-1&&(r.indent===0||o.start.every(u=>u.type!=="comment"||u.indent<r.indent))&&(l.type==="document"?l.end=o.start:l.items.push({start:o.start}),r.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":{const n={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&n.start.push(this.sourceToken),this.stack.push(n);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(n){if(n.value)return yield*this.lineEnd(n);switch(this.type){case"doc-start":{Pd(n.start)!==-1?(yield*this.pop(),yield*this.step()):n.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":n.start.push(this.sourceToken);return}const r=this.startBlockValue(n);r?this.stack.push(r):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(n){if(this.type==="map-value-ind"){const r=Yi(this.peek(2)),l=wr(r);let o;n.end?(o=n.end,o.push(this.sourceToken),delete n.end):o=[this.sourceToken];const u={type:"block-map",offset:n.offset,indent:n.indent,items:[{start:l,key:n,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=u}else yield*this.lineEnd(n)}*blockScalar(n){switch(this.type){case"space":case"comment":case"newline":n.props.push(this.sourceToken);return;case"scalar":if(n.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let r=this.source.indexOf(`
177
- `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
178
- `,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(n){var l;const r=n.items[n.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){const o="end"in r.value?r.value.end:void 0,u=Array.isArray(o)?o[o.length-1]:void 0;(u==null?void 0:u.type)==="comment"?o==null||o.push(this.sourceToken):n.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)n.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,n.indent)){const o=n.items[n.items.length-2],u=(l=o==null?void 0:o.value)==null?void 0:l.end;if(Array.isArray(u)){Array.prototype.push.apply(u,r.start),u.push(this.sourceToken),n.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=n.indent){const o=!this.onKeyLine&&this.indent===n.indent,u=o&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind";let f=[];if(u&&r.sep&&!r.value){const h=[];for(let p=0;p<r.sep.length;++p){const g=r.sep[p];switch(g.type){case"newline":h.push(p);break;case"space":break;case"comment":g.indent>n.indent&&(h.length=0);break;default:h.length=0}}h.length>=2&&(f=r.sep.splice(h[1]))}switch(this.type){case"anchor":case"tag":u||r.value?(f.push(this.sourceToken),n.items.push({start:f}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):u||r.value?(f.push(this.sourceToken),n.items.push({start:f,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(r.explicitKey)if(r.sep)if(r.value)n.items.push({start:[],key:null,sep:[this.sourceToken]});else if(bn(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:f,key:null,sep:[this.sourceToken]}]});else if(Xh(r.key)&&!bn(r.sep,"newline")){const h=wr(r.start),p=r.key,g=r.sep;g.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:p,sep:g}]})}else f.length>0?r.sep=r.sep.concat(f,this.sourceToken):r.sep.push(this.sourceToken);else if(bn(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{const h=wr(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||u?n.items.push({start:f,key:null,sep:[this.sourceToken]}):bn(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const h=this.flowScalar(this.type);u||r.value?(n.items.push({start:f,key:h,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(h):(Object.assign(r,{key:h,sep:[]}),this.onKeyLine=!0);return}default:{const h=this.startBlockValue(n);if(h){o&&h.type!=="block-seq"&&n.items.push({start:f}),this.stack.push(h);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(n){var l;const r=n.items[n.items.length-1];switch(this.type){case"newline":if(r.value){const o="end"in r.value?r.value.end:void 0,u=Array.isArray(o)?o[o.length-1]:void 0;(u==null?void 0:u.type)==="comment"?o==null||o.push(this.sourceToken):n.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)n.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,n.indent)){const o=n.items[n.items.length-2],u=(l=o==null?void 0:o.value)==null?void 0:l.end;if(Array.isArray(u)){Array.prototype.push.apply(u,r.start),u.push(this.sourceToken),n.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=n.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==n.indent)break;r.value||bn(r.start,"seq-item-ind")?n.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>n.indent){const o=this.startBlockValue(n);if(o){this.stack.push(o);return}}yield*this.pop(),yield*this.step()}*flowCollection(n){const r=n.items[n.items.length-1];if(this.type==="flow-error-end"){let l;do yield*this.pop(),l=this.peek(1);while(l&&l.type==="flow-collection")}else if(n.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?n.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?n.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?n.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!r||r.value?n.items.push({start:[],key:o,sep:[]}):r.sep?this.stack.push(o):Object.assign(r,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":n.end.push(this.sourceToken);return}const l=this.startBlockValue(n);l?this.stack.push(l):(yield*this.pop(),yield*this.step())}else{const l=this.peek(2);if(l.type==="block-map"&&(this.type==="map-value-ind"&&l.indent===n.indent||this.type==="newline"&&!l.items[l.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&l.type!=="flow-collection"){const o=Yi(l),u=wr(o);jd(n);const f=n.end.splice(1,n.end.length);f.push(this.sourceToken);const h={type:"block-map",offset:n.offset,indent:n.indent,items:[{start:u,key:n,sep:f}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=h}else yield*this.lineEnd(n)}}flowScalar(n){if(this.onNewLine){let r=this.source.indexOf(`
179
- `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
180
- `,r)+1}return{type:n,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(n){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const r=Yi(n),l=wr(r);return l.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:l,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const r=Yi(n),l=wr(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:l,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(n,r){return this.type!=="comment"||this.indent<=r?!1:n.every(l=>l.type==="newline"||l.type==="space")}*documentEnd(n){this.type!=="doc-mode"&&(n.end?n.end.push(this.sourceToken):n.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(n){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:n.end?n.end.push(this.sourceToken):n.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Zh(i){const n=i.prettyErrors!==!1;return{lineCounter:i.lineCounter||n&&new Gh||null,prettyErrors:n}}function p0(i,n={}){const{lineCounter:r,prettyErrors:l}=Zh(n),o=new uu(r==null?void 0:r.addNewLine),u=new au(n),f=Array.from(u.compose(o.parse(i)));if(l&&r)for(const h of f)h.errors.forEach(cl(i,r)),h.warnings.forEach(cl(i,r));return f.length>0?f:Object.assign([],{empty:!0},u.streamInfo())}function ep(i,n={}){const{lineCounter:r,prettyErrors:l}=Zh(n),o=new uu(r==null?void 0:r.addNewLine),u=new au(n);let f=null;for(const h of u.compose(o.parse(i),!0,i.length))if(!f)f=h;else if(f.options.logLevel!=="silent"){f.errors.push(new Fn(h.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return l&&r&&(f.errors.forEach(cl(i,r)),f.warnings.forEach(cl(i,r))),f}function m0(i,n,r){let l;typeof n=="function"?l=n:r===void 0&&n&&typeof n=="object"&&(r=n);const o=ep(i,r);if(!o)return null;if(o.warnings.forEach(u=>Sh(o.options.logLevel,u)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:l},r))}function g0(i,n,r){let l=null;if(typeof n=="function"||Array.isArray(n)?l=n:r===void 0&&n&&(r=n),typeof r=="string"&&(r=r.length),typeof r=="number"){const o=Math.round(r);r=o<1?void 0:o>8?{indent:8}:{indent:o}}if(i===void 0){const{keepUndefined:o}=r??n??{};if(!o)return}return qn(i)&&!l?i.toString(r):new Dr(i,l,r).toString(r)}const y0=Object.freeze(Object.defineProperty({__proto__:null,Alias:gl,CST:f0,Composer:au,Document:Dr,Lexer:Yh,LineCounter:Gh,Pair:Ze,Parser:uu,Scalar:le,Schema:Tl,YAMLError:lu,YAMLMap:wt,YAMLParseError:Fn,YAMLSeq:xn,YAMLWarning:Bh,isAlias:Wn,isCollection:$e,isDocument:qn,isMap:Pr,isNode:Ie,isPair:_e,isScalar:ve,isSeq:jr,parse:m0,parseAllDocuments:p0,parseDocument:ep,stringify:g0,visit:En,visitAsync:ml},Symbol.toStringTag,{value:"Module"}));function v0(i,n,r={}){var T;const l=new i.LineCounter,o={keepSourceTokens:!0,lineCounter:l,...r},u=i.parseDocument(n,o),f=[],h=E=>[l.linePos(E[0]),l.linePos(E[1])],p=E=>{f.push({message:E.message,range:[l.linePos(E.pos[0]),l.linePos(E.pos[1])]})},g=(E,L)=>{for(const v of L.items){if(v instanceof i.Scalar&&typeof v.value=="string"){const P=dl.parse(v,o,f);P&&(E.children=E.children||[],E.children.push(P));continue}if(v instanceof i.YAMLMap){N(E,v);continue}f.push({message:"Sequence items should be strings or maps",range:h(v.range||L.range)})}},N=(E,L)=>{for(const v of L.items){if(E.children=E.children||[],!(v.key instanceof i.Scalar&&typeof v.key.value=="string")){f.push({message:"Only string keys are supported",range:h(v.key.range||L.range)});continue}const A=v.key,P=v.value;if(A.value==="text"){if(!(P instanceof i.Scalar&&typeof P.value=="string")){f.push({message:"Text value should be a string",range:h(v.value.range||L.range)});continue}E.children.push({kind:"text",text:Da(P.value)});continue}if(A.value==="/children"){if(!(P instanceof i.Scalar&&typeof P.value=="string")||P.value!=="contain"&&P.value!=="equal"&&P.value!=="deep-equal"){f.push({message:'Strict value should be "contain", "equal" or "deep-equal"',range:h(v.value.range||L.range)});continue}E.containerMode=P.value;continue}if(A.value.startsWith("/")){if(!(P instanceof i.Scalar&&typeof P.value=="string")){f.push({message:"Property value should be a string",range:h(v.value.range||L.range)});continue}E.props=E.props??{},E.props[A.value.slice(1)]=Da(P.value);continue}const M=dl.parse(A,o,f);if(!M)continue;if(P instanceof i.Scalar){const z=typeof P.value;if(z!=="string"&&z!=="number"&&z!=="boolean"){f.push({message:"Node value should be a string or a sequence",range:h(v.value.range||L.range)});continue}E.children.push({...M,children:[{kind:"text",text:Da(String(P.value))}]});continue}if(P instanceof i.YAMLSeq){E.children.push(M),g(M,P);continue}f.push({message:"Map values should be strings or sequences",range:h(v.value.range||L.range)})}},S={kind:"role",role:"fragment"};return u.errors.forEach(p),f.length?{errors:f,fragment:S}:(u.contents instanceof i.YAMLSeq||f.push({message:'Aria snapshot must be a YAML sequence, elements starting with " -"',range:u.contents?h(u.contents.range):[{line:0,col:0},{line:0,col:0}]}),f.length?{errors:f,fragment:S}:(g(S,u.contents),f.length?{errors:f,fragment:w0}:((T=S.children)==null?void 0:T.length)===1&&(!S.containerMode||S.containerMode==="contain")?{fragment:S.children[0],errors:[]}:{fragment:S,errors:[]}))}const w0={kind:"role",role:"fragment"};function tp(i){return i.replace(/[\u200b\u00ad]/g,"").replace(/[\r\n\s\t]+/g," ").trim()}function Da(i){return{raw:i,normalized:tp(i)}}class dl{static parse(n,r,l){try{return new dl(n.value)._parse()}catch(o){if(o instanceof Md){const u=r.prettyErrors===!1?o.message:o.message+`:
181
-
182
- `+n.value+`
183
- `+" ".repeat(o.pos)+`^
184
- `;return l.push({message:u,range:[r.lineCounter.linePos(n.range[0]),r.lineCounter.linePos(n.range[0]+o.pos)]}),null}throw o}}constructor(n){this._input=n,this._pos=0,this._length=n.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(n){this._eof()&&this._throwError(`Unexpected end of input when expecting ${n}`);const r=this._pos;for(;!this._eof()&&/[a-zA-Z]/.test(this._peek());)this._pos++;return this._input.slice(r,this._pos)}_readString(){let n="",r=!1;for(;!this._eof();){const l=this._next();if(r)n+=l,r=!1;else if(l==="\\")r=!0;else{if(l==='"')return n;n+=l}}this._throwError("Unterminated string")}_throwError(n,r=0){throw new Md(n,r||this._pos)}_readRegex(){let n="",r=!1,l=!1;for(;!this._eof();){const o=this._next();if(r)n+=o,r=!1;else if(o==="\\")r=!0,n+=o;else{if(o==="/"&&!l)return{pattern:n};o==="["?(l=!0,n+=o):o==="]"&&l?(n+=o,l=!1):n+=o}}this._throwError("Unterminated regex")}_readStringOrRegex(){const n=this._peek();return n==='"'?(this._next(),tp(this._readString())):n==="/"?(this._next(),this._readRegex()):null}_readAttributes(n){let r=this._pos;for(;this._skipWhitespace(),this._peek()==="[";){this._next(),this._skipWhitespace(),r=this._pos;const l=this._readIdentifier("attribute");this._skipWhitespace();let o="";if(this._peek()==="=")for(this._next(),this._skipWhitespace(),r=this._pos;this._peek()!=="]"&&!this._isWhitespace()&&!this._eof();)o+=this._next();this._skipWhitespace(),this._peek()!=="]"&&this._throwError("Expected ]"),this._next(),this._applyAttribute(n,l,o||"true",r)}}_parse(){this._skipWhitespace();const n=this._readIdentifier("role");this._skipWhitespace();const r=this._readStringOrRegex()||"",l={kind:"role",role:n,name:r};return this._readAttributes(l),this._skipWhitespace(),this._eof()||this._throwError("Unexpected input"),l}_applyAttribute(n,r,l,o){if(r==="checked"){this._assert(l==="true"||l==="false"||l==="mixed",'Value of "checked" attribute must be a boolean or "mixed"',o),n.checked=l==="true"?!0:l==="false"?!1:"mixed";return}if(r==="disabled"){this._assert(l==="true"||l==="false",'Value of "disabled" attribute must be a boolean',o),n.disabled=l==="true";return}if(r==="expanded"){this._assert(l==="true"||l==="false",'Value of "expanded" attribute must be a boolean',o),n.expanded=l==="true";return}if(r==="active"){this._assert(l==="true"||l==="false",'Value of "active" attribute must be a boolean',o),n.active=l==="true";return}if(r==="level"){this._assert(!isNaN(Number(l)),'Value of "level" attribute must be a number',o),n.level=Number(l);return}if(r==="pressed"){this._assert(l==="true"||l==="false"||l==="mixed",'Value of "pressed" attribute must be a boolean or "mixed"',o),n.pressed=l==="true"?!0:l==="false"?!1:"mixed";return}if(r==="selected"){this._assert(l==="true"||l==="false",'Value of "selected" attribute must be a boolean',o),n.selected=l==="true";return}this._assert(!1,`Unsupported attribute [${r}]`,o)}_assert(n,r,l){n||this._throwError(r||"Assertion error",l)}}class Md extends Error{constructor(n,r){super(n),this.pos=r}}const S0=({className:i,style:n,open:r,isModal:l,width:o,verticalOffset:u,requestClose:f,anchor:h,dataTestId:p,children:g})=>{const N=fe.useRef(null),[S,T]=fe.useState(0);let E=n;if(h!=null&&h.current){const L=h.current.getBoundingClientRect();E={position:"fixed",margin:0,top:L.bottom+(u??0),left:k0(L,o??0),width:o,zIndex:100,...n}}return fe.useEffect(()=>{const L=w=>{!N.current||!(w.target instanceof Node)||N.current.contains(w.target)||f==null||f()},v=w=>{w.key==="Escape"&&(f==null||f())};return r?(document.addEventListener("mousedown",L),document.addEventListener("keydown",v),()=>{document.removeEventListener("mousedown",L),document.removeEventListener("keydown",v)}):()=>{}},[r,f]),fe.useEffect(()=>{const L=()=>T(v=>v+1);return window.addEventListener("resize",L),()=>{window.removeEventListener("resize",L)}},[]),fe.useLayoutEffect(()=>{N.current&&(r?l?N.current.showModal():N.current.show():N.current.close())},[r,l]),K.jsx("dialog",{ref:N,style:E,className:i,"data-testid":p,children:g})},k0=(i,n)=>{const r=Rd(i,n,"left");if(r.inBounds)return r.value;const l=Rd(i,n,"right");return l.inBounds?l.value:r.value},Rd=(i,n,r)=>{const l=document.documentElement.clientWidth;if(r==="left"){const o=i.left;return{value:o,inBounds:o+n<=l}}else return{value:i.right-n,inBounds:i.right-n>=0}},E0=({sources:i,paused:n,log:r,mode:l})=>{const[o,u]=fe.useState(),[f,h]=ll("recorderPropertiesTab","log"),[p,g]=fe.useState(),[N,S]=fe.useState(),[T,E]=fe.useState(!1),[L,v]=ag(),[w,A]=ll("autoExpect",!1),P=fe.useRef(null);window.playwrightSelectSource=O=>u(O),fe.useEffect(()=>{window.dispatch({event:"setAutoExpect",params:{autoExpect:w}})},[w]);const M=fe.useMemo(()=>i.find(se=>se.id===o)??Ig(),[i,o]),[V,q]=fe.useState("");window.playwrightElementPicked=(O,se)=>{const oe=M.language;q(oh(oe,O.selector)),g(O.ariaSnapshot),S([]),se&&f!=="locator"&&f!=="aria"&&h("locator"),l==="inspecting"&&f==="aria"||window.dispatch({event:"setMode",params:{mode:l==="inspecting"?"standby":"recording"}}).catch(()=>{})};const z=fe.useRef(null);fe.useLayoutEffect(()=>{var O;(O=z.current)==null||O.scrollIntoView({block:"center",inline:"nearest"})},[z]),fe.useLayoutEffect(()=>{const O=se=>{switch(se.key){case"F8":se.preventDefault(),n?window.dispatch({event:"resume"}):window.dispatch({event:"pause"});break;case"F10":se.preventDefault(),n&&window.dispatch({event:"step"});break}};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[n]);const ee=fe.useCallback(O=>{(l==="none"||l==="inspecting")&&window.dispatch({event:"setMode",params:{mode:"standby"}}),q(O),window.dispatch({event:"highlightRequested",params:{selector:O}})},[l]),U=fe.useCallback(O=>{(l==="none"||l==="inspecting")&&window.dispatch({event:"setMode",params:{mode:"standby"}});const{fragment:se,errors:oe}=v0(y0,O,{prettyErrors:!1}),j=oe.map(Z=>({message:Z.message,line:Z.range[1].line,column:Z.range[1].col,type:"subtle-error"}));S(j),g(O),oe.length||window.dispatch({event:"highlightRequested",params:{ariaTemplate:se}})},[l]);return K.jsxs("div",{className:"recorder",children:[K.jsxs(bd,{children:[K.jsx(vt,{icon:"circle-large-filled",title:"Record",toggled:l==="recording"||l==="recording-inspecting"||l==="assertingText"||l==="assertingVisibility",onClick:()=>{window.dispatch({event:"setMode",params:{mode:l==="none"||l==="standby"||l==="inspecting"?"recording":"standby"}})},children:"Record"}),K.jsx(Sd,{}),K.jsx(vt,{icon:"inspect",title:"Pick locator",toggled:l==="inspecting"||l==="recording-inspecting",onClick:()=>{const O={inspecting:"standby",none:"inspecting",standby:"inspecting",recording:"recording-inspecting","recording-inspecting":"recording",assertingText:"recording-inspecting",assertingVisibility:"recording-inspecting",assertingValue:"recording-inspecting",assertingSnapshot:"recording-inspecting"}[l];window.dispatch({event:"setMode",params:{mode:O}}).catch(()=>{})}}),K.jsx(vt,{icon:"eye",title:"Assert visibility",toggled:l==="assertingVisibility",disabled:l==="none"||l==="standby"||l==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:l==="assertingVisibility"?"recording":"assertingVisibility"}})}}),K.jsx(vt,{icon:"whole-word",title:"Assert text",toggled:l==="assertingText",disabled:l==="none"||l==="standby"||l==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:l==="assertingText"?"recording":"assertingText"}})}}),K.jsx(vt,{icon:"symbol-constant",title:"Assert value",toggled:l==="assertingValue",disabled:l==="none"||l==="standby"||l==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:l==="assertingValue"?"recording":"assertingValue"}})}}),K.jsx(vt,{icon:"gist",title:"Assert snapshot",toggled:l==="assertingSnapshot",disabled:l==="none"||l==="standby"||l==="inspecting",onClick:()=>{window.dispatch({event:"setMode",params:{mode:l==="assertingSnapshot"?"recording":"assertingSnapshot"}})}}),K.jsx(Sd,{}),K.jsx(vt,{icon:"files",title:"Copy",disabled:!M||!M.text,onClick:()=>{ud(M.text)}}),K.jsx(vt,{icon:"debug-continue",title:"Resume (F8)",ariaLabel:"Resume",disabled:!n,onClick:()=>{window.dispatch({event:"resume"})}}),K.jsx(vt,{icon:"debug-pause",title:"Pause (F8)",ariaLabel:"Pause",disabled:n,onClick:()=>{window.dispatch({event:"pause"})}}),K.jsx(vt,{icon:"debug-step-over",title:"Step over (F10)",ariaLabel:"Step over",disabled:!n,onClick:()=>{window.dispatch({event:"step"})}}),K.jsx("div",{style:{flex:"auto"}}),K.jsx("div",{children:"Target:"}),K.jsx(Og,{fileId:M.id,sources:i,setFileId:O=>{u(O),window.dispatch({event:"fileChanged",params:{fileId:O}})}}),K.jsx(vt,{icon:"clear-all",title:"Clear",disabled:!M||!M.text,onClick:()=>{window.dispatch({event:"clear"})}}),K.jsx(vt,{ref:P,icon:"settings-gear",title:"Settings",onClick:()=>E(O=>!O)}),K.jsxs(S0,{style:{padding:"4px 8px"},open:T,width:200,verticalOffset:8,requestClose:()=>E(!1),anchor:P,dataTestId:"settings-dialog",children:[K.jsxs("div",{className:"setting",children:[K.jsx("input",{type:"checkbox",id:"dark-mode-setting",checked:L,onChange:()=>v(!L)}),K.jsx("label",{htmlFor:"dark-mode-setting",children:"Dark mode"})]},"dark-mode-setting"),K.jsxs("div",{className:"setting",title:"Automatically generate assertions while recording",children:[K.jsx("input",{type:"checkbox",id:"auto-expect-setting",checked:w,onChange:()=>{window.dispatch({event:"setAutoExpect",params:{autoExpect:!w}}),A(!w)}}),K.jsx("label",{htmlFor:"auto-expect-setting",children:"Generate assertions"})]},"auto-expect-setting")]})]}),K.jsx(Cg,{sidebarSize:200,main:K.jsx(La,{text:M.text,highlighter:M.language,highlight:M.highlight,revealLine:M.revealLine,readOnly:!0,lineNumbers:!0}),sidebar:K.jsx(_g,{rightToolbar:f==="locator"||f==="aria"?[K.jsx(vt,{icon:"files",title:"Copy",onClick:()=>ud((f==="locator"?V:p)||"")},1)]:[],tabs:[{id:"locator",title:"Locator",render:()=>K.jsx(La,{text:V,placeholder:"Type locator to inspect",highlighter:M.language,focusOnChange:!0,onChange:ee,wrapLines:!0})},{id:"log",title:"Log",render:()=>K.jsx(ly,{language:M.language,log:Array.from(r.values())})},{id:"aria",title:"Aria",render:()=>K.jsx(La,{text:p||"",placeholder:"Type aria template to match",highlighter:"yaml",onChange:U,highlight:N,wrapLines:!0})}],selectedTab:f,setSelectedTab:h})})]})},x0=({})=>{const[i,n]=fe.useState([]),[r,l]=fe.useState(!1),[o,u]=fe.useState(new Map),[f,h]=fe.useState("none");return fe.useLayoutEffect(()=>{window.playwrightSetMode=h,window.playwrightSetSources=p=>{n(p),window.playwrightSourcesEchoForTest=p},window.playwrightSetPageURL=p=>{document.title=p?`Playwright Inspector - ${p}`:"Playwright Inspector"},window.playwrightSetPaused=l,window.playwrightUpdateLogs=p=>{u(g=>{const N=new Map(g);for(const S of p)S.reveal=!g.has(S.id),N.set(S.id,S);return N})}},[]),K.jsx(E0,{sources:i,paused:r,log:o,mode:f})};(async()=>(ig(),pg.createRoot(document.querySelector("#root")).render(K.jsx(x0,{}))))();export{Xm as g};