flowstride 1.0.18 → 1.0.20-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NATIVE_CI.md +155 -0
- package/README.md +40 -33
- package/RELEASE_NOTES.md +40 -0
- package/dist/adapters/web/playwright.d.ts +4 -0
- package/dist/adapters/web/playwright.js +85 -38
- package/dist/ci/config.d.ts +3 -0
- package/dist/ci/config.js +76 -0
- package/dist/ci/deadline.d.ts +2 -0
- package/dist/ci/deadline.js +16 -0
- package/dist/ci/init.d.ts +1 -0
- package/dist/ci/init.js +21 -0
- package/dist/ci/runtime.d.ts +19 -0
- package/dist/ci/runtime.js +190 -0
- package/dist/cli/commands/open.d.ts +1 -0
- package/dist/cli/commands/open.js +12 -0
- package/dist/cli/commands/run.js +15 -34
- package/dist/cli/index.js +51 -5
- package/dist/cli/manual_server/workspace_server.d.ts +1 -0
- package/dist/cli/manual_server/workspace_server.js +751 -0
- package/dist/game/bridge.d.ts +13 -0
- package/dist/game/bridge.js +15 -0
- package/dist/game/sdk.d.ts +27 -0
- package/dist/game/sdk.js +255 -0
- package/dist/game/three-bridge.d.ts +18 -0
- package/dist/game/three-bridge.js +59 -0
- package/dist/parser/lexer.js +4 -0
- package/dist/parser/parser.js +19 -3
- package/dist/runner/flow_orchestrator.d.ts +5 -1
- package/dist/runner/flow_orchestrator.js +31 -7
- package/dist/runner/flow_worker.js +57 -13
- package/dist/runner/plugin_manager.d.ts +1 -0
- package/dist/runner/plugin_manager.js +33 -1
- package/dist/types/index.d.ts +36 -0
- package/examples/native-game/flows/canvas.flow +13 -0
- package/examples/native-game/flowstride.config.json +12 -0
- package/examples/native-game/server.mjs +12 -0
- package/package.json +14 -5
- package/src/ui/dist/assets/index-DIC22ZK_.js +638 -0
- package/src/ui/dist/assets/workspace_engine_bg-BVlpAZ1H.wasm +0 -0
- package/src/ui/dist/index.html +1 -1
- package/src/ui/dist/assets/index-BCdexgt5.js +0 -270
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function au(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cu={exports:{}},fl={},du={exports:{}},I={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var ir=Symbol.for("react.element"),Oc=Symbol.for("react.portal"),Dc=Symbol.for("react.fragment"),Ac=Symbol.for("react.strict_mode"),Wc=Symbol.for("react.profiler"),$c=Symbol.for("react.provider"),Uc=Symbol.for("react.context"),Bc=Symbol.for("react.forward_ref"),Vc=Symbol.for("react.suspense"),Hc=Symbol.for("react.memo"),bc=Symbol.for("react.lazy"),Yi=Symbol.iterator;function Qc(e){return e===null||typeof e!="object"?null:(e=Yi&&e[Yi]||e["@@iterator"],typeof e=="function"?e:null)}var fu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pu=Object.assign,hu={};function mn(e,t,n){this.props=e,this.context=t,this.refs=hu,this.updater=n||fu}mn.prototype.isReactComponent={};mn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};mn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function yu(){}yu.prototype=mn.prototype;function qo(e,t,n){this.props=e,this.context=t,this.refs=hu,this.updater=n||fu}var ei=qo.prototype=new yu;ei.constructor=qo;pu(ei,mn.prototype);ei.isPureReactComponent=!0;var Ki=Array.isArray,mu=Object.prototype.hasOwnProperty,ti={current:null},gu={key:!0,ref:!0,__self:!0,__source:!0};function vu(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)mu.call(t,r)&&!gu.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1<u){for(var a=Array(u),d=0;d<u;d++)a[d]=arguments[d+2];l.children=a}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)l[r]===void 0&&(l[r]=u[r]);return{$$typeof:ir,type:e,key:o,ref:i,props:l,_owner:ti.current}}function Gc(e,t){return{$$typeof:ir,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ni(e){return typeof e=="object"&&e!==null&&e.$$typeof===ir}function Yc(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Xi=/\/+/g;function Ll(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Yc(""+e.key):t.toString(36)}function _r(e,t,n,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case ir:case Oc:i=!0}}if(i)return i=e,l=l(i),e=r===""?"."+Ll(i,0):r,Ki(l)?(n="",e!=null&&(n=e.replace(Xi,"$&/")+"/"),_r(l,t,n,"",function(d){return d})):l!=null&&(ni(l)&&(l=Gc(l,n+(!l.key||i&&i.key===l.key?"":(""+l.key).replace(Xi,"$&/")+"/")+e)),t.push(l)),1;if(i=0,r=r===""?".":r+":",Ki(e))for(var u=0;u<e.length;u++){o=e[u];var a=r+Ll(o,u);i+=_r(o,t,n,a,l)}else if(a=Qc(e),typeof a=="function")for(e=a.call(e),u=0;!(o=e.next()).done;)o=o.value,a=r+Ll(o,u++),i+=_r(o,t,n,a,l);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function fr(e,t,n){if(e==null)return e;var r=[],l=0;return _r(e,r,"","",function(o){return t.call(n,o,l++)}),r}function Kc(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var he={current:null},Lr={transition:null},Xc={ReactCurrentDispatcher:he,ReactCurrentBatchConfig:Lr,ReactCurrentOwner:ti};function xu(){throw Error("act(...) is not supported in production builds of React.")}I.Children={map:fr,forEach:function(e,t,n){fr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return fr(e,function(){t++}),t},toArray:function(e){return fr(e,function(t){return t})||[]},only:function(e){if(!ni(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};I.Component=mn;I.Fragment=Dc;I.Profiler=Wc;I.PureComponent=qo;I.StrictMode=Ac;I.Suspense=Vc;I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xc;I.act=xu;I.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=pu({},e.props),l=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=ti.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(a in t)mu.call(t,a)&&!gu.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&u!==void 0?u[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){u=Array(a);for(var d=0;d<a;d++)u[d]=arguments[d+2];r.children=u}return{$$typeof:ir,type:e.type,key:l,ref:o,props:r,_owner:i}};I.createContext=function(e){return e={$$typeof:Uc,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:$c,_context:e},e.Consumer=e};I.createElement=vu;I.createFactory=function(e){var t=vu.bind(null,e);return t.type=e,t};I.createRef=function(){return{current:null}};I.forwardRef=function(e){return{$$typeof:Bc,render:e}};I.isValidElement=ni;I.lazy=function(e){return{$$typeof:bc,_payload:{_status:-1,_result:e},_init:Kc}};I.memo=function(e,t){return{$$typeof:Hc,type:e,compare:t===void 0?null:t}};I.startTransition=function(e){var t=Lr.transition;Lr.transition={};try{e()}finally{Lr.transition=t}};I.unstable_act=xu;I.useCallback=function(e,t){return he.current.useCallback(e,t)};I.useContext=function(e){return he.current.useContext(e)};I.useDebugValue=function(){};I.useDeferredValue=function(e){return he.current.useDeferredValue(e)};I.useEffect=function(e,t){return he.current.useEffect(e,t)};I.useId=function(){return he.current.useId()};I.useImperativeHandle=function(e,t,n){return he.current.useImperativeHandle(e,t,n)};I.useInsertionEffect=function(e,t){return he.current.useInsertionEffect(e,t)};I.useLayoutEffect=function(e,t){return he.current.useLayoutEffect(e,t)};I.useMemo=function(e,t){return he.current.useMemo(e,t)};I.useReducer=function(e,t,n){return he.current.useReducer(e,t,n)};I.useRef=function(e){return he.current.useRef(e)};I.useState=function(e){return he.current.useState(e)};I.useSyncExternalStore=function(e,t,n){return he.current.useSyncExternalStore(e,t,n)};I.useTransition=function(){return he.current.useTransition()};I.version="18.3.1";du.exports=I;var M=du.exports;const Zc=au(M);/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Jc=M,qc=Symbol.for("react.element"),ed=Symbol.for("react.fragment"),td=Object.prototype.hasOwnProperty,nd=Jc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rd={key:!0,ref:!0,__self:!0,__source:!0};function Su(e,t,n){var r,l={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)td.call(t,r)&&!rd.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:qc,type:e,key:o,ref:i,props:l,_owner:nd.current}}fl.Fragment=ed;fl.jsx=Su;fl.jsxs=Su;cu.exports=fl;var s=cu.exports,oo={},wu={exports:{}},Re={},ku={exports:{}},Cu={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(j,N){var P=j.length;j.push(N);e:for(;0<P;){var H=P-1>>>1,J=j[H];if(0<l(J,N))j[H]=N,j[P]=J,P=H;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var N=j[0],P=j.pop();if(P!==N){j[0]=P;e:for(var H=0,J=j.length,Ut=J>>>1;H<Ut;){var jt=2*(H+1)-1,_l=j[jt],zt=jt+1,dr=j[zt];if(0>l(_l,P))zt<J&&0>l(dr,_l)?(j[H]=dr,j[zt]=P,H=zt):(j[H]=_l,j[jt]=P,H=jt);else if(zt<J&&0>l(dr,P))j[H]=dr,j[zt]=P,H=zt;else break e}}return N}function l(j,N){var P=j.sortIndex-N.sortIndex;return P!==0?P:j.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var a=[],d=[],m=1,y=null,h=3,x=!1,v=!1,S=!1,_=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(j){for(var N=n(d);N!==null;){if(N.callback===null)r(d);else if(N.startTime<=j)r(d),N.sortIndex=N.expirationTime,t(a,N);else break;N=n(d)}}function g(j){if(S=!1,p(j),!v)if(n(a)!==null)v=!0,lt(C);else{var N=n(d);N!==null&&B(g,N.startTime-j)}}function C(j,N){v=!1,S&&(S=!1,f(w),w=-1),x=!0;var P=h;try{for(p(N),y=n(a);y!==null&&(!(y.expirationTime>N)||j&&!ee());){var H=y.callback;if(typeof H=="function"){y.callback=null,h=y.priorityLevel;var J=H(y.expirationTime<=N);N=e.unstable_now(),typeof J=="function"?y.callback=J:y===n(a)&&r(a),p(N)}else r(a);y=n(a)}if(y!==null)var Ut=!0;else{var jt=n(d);jt!==null&&B(g,jt.startTime-N),Ut=!1}return Ut}finally{y=null,h=P,x=!1}}var R=!1,E=null,w=-1,F=5,L=-1;function ee(){return!(e.unstable_now()-L<F)}function rt(){if(E!==null){var j=e.unstable_now();L=j;var N=!0;try{N=E(!0,j)}finally{N?T():(R=!1,E=null)}}else R=!1}var T;if(typeof c=="function")T=function(){c(rt)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,Z=X.port2;X.port1.onmessage=rt,T=function(){Z.postMessage(null)}}else T=function(){_(rt,0)};function lt(j){E=j,R||(R=!0,T())}function B(j,N){w=_(function(){j(e.unstable_now())},N)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){v||x||(v=!0,lt(C))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(j){switch(h){case 1:case 2:case 3:var N=3;break;default:N=h}var P=h;h=N;try{return j()}finally{h=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,N){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var P=h;h=j;try{return N()}finally{h=P}},e.unstable_scheduleCallback=function(j,N,P){var H=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?H+P:H):P=H,j){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=P+J,j={id:m++,callback:N,priorityLevel:j,startTime:P,expirationTime:J,sortIndex:-1},P>H?(j.sortIndex=P,t(d,j),n(a)===null&&j===n(d)&&(S?(f(w),w=-1):S=!0,B(g,P-H))):(j.sortIndex=J,t(a,j),v||x||(v=!0,lt(C))),j},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(j){var N=h;return function(){var P=h;h=N;try{return j.apply(this,arguments)}finally{h=P}}}})(Cu);ku.exports=Cu;var ld=ku.exports;/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var od=M,ze=ld;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Eu=new Set,Bn={};function Wt(e,t){un(e,t),un(e+"Capture",t)}function un(e,t){for(Bn[e]=t,e=0;e<t.length;e++)Eu.add(t[e])}var Je=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),io=Object.prototype.hasOwnProperty,id=/^[: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]*$/,Zi={},Ji={};function sd(e){return io.call(Ji,e)?!0:io.call(Zi,e)?!1:id.test(e)?Ji[e]=!0:(Zi[e]=!0,!1)}function ud(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ad(e,t,n,r){if(t===null||typeof t>"u"||ud(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 ye(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){se[e]=new ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];se[t]=new ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){se[e]=new ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){se[e]=new ye(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){se[e]=new ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){se[e]=new ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){se[e]=new ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){se[e]=new ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){se[e]=new ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var ri=/[\-:]([a-z])/g;function li(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(ri,li);se[t]=new ye(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(ri,li);se[t]=new ye(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(ri,li);se[t]=new ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){se[e]=new ye(e,1,!1,e.toLowerCase(),null,!1,!1)});se.xlinkHref=new ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){se[e]=new ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function oi(e,t,n,r){var l=se.hasOwnProperty(t)?se[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ad(t,n,l,r)&&(n=null),r||l===null?sd(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var nt=od.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,pr=Symbol.for("react.element"),Vt=Symbol.for("react.portal"),Ht=Symbol.for("react.fragment"),ii=Symbol.for("react.strict_mode"),so=Symbol.for("react.profiler"),ju=Symbol.for("react.provider"),zu=Symbol.for("react.context"),si=Symbol.for("react.forward_ref"),uo=Symbol.for("react.suspense"),ao=Symbol.for("react.suspense_list"),ui=Symbol.for("react.memo"),it=Symbol.for("react.lazy"),Ru=Symbol.for("react.offscreen"),qi=Symbol.iterator;function xn(e){return e===null||typeof e!="object"?null:(e=qi&&e[qi]||e["@@iterator"],typeof e=="function"?e:null)}var G=Object.assign,Nl;function Tn(e){if(Nl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Nl=t&&t[1]||""}return`
|
|
34
|
-
`+Nl+e}var Pl=!1;function Il(e,t){if(!e||Pl)return"";Pl=!0;var n=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(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var l=d.stack.split(`
|
|
35
|
-
`),o=r.stack.split(`
|
|
36
|
-
`),i=l.length-1,u=o.length-1;1<=i&&0<=u&&l[i]!==o[u];)u--;for(;1<=i&&0<=u;i--,u--)if(l[i]!==o[u]){if(i!==1||u!==1)do if(i--,u--,0>u||l[i]!==o[u]){var a=`
|
|
37
|
-
`+l[i].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=i&&0<=u);break}}}finally{Pl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Tn(e):""}function cd(e){switch(e.tag){case 5:return Tn(e.type);case 16:return Tn("Lazy");case 13:return Tn("Suspense");case 19:return Tn("SuspenseList");case 0:case 2:case 15:return e=Il(e.type,!1),e;case 11:return e=Il(e.type.render,!1),e;case 1:return e=Il(e.type,!0),e;default:return""}}function co(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 Ht:return"Fragment";case Vt:return"Portal";case so:return"Profiler";case ii:return"StrictMode";case uo:return"Suspense";case ao:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case zu:return(e.displayName||"Context")+".Consumer";case ju:return(e._context.displayName||"Context")+".Provider";case si:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ui:return t=e.displayName||null,t!==null?t:co(e.type)||"Memo";case it:t=e._payload,e=e._init;try{return co(e(t))}catch{}}return null}function dd(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 co(t);case 8:return t===ii?"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 St(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Tu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fd(e){var t=Tu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hr(e){e._valueTracker||(e._valueTracker=fd(e))}function _u(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Tu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ur(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 fo(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function es(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=St(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Lu(e,t){t=t.checked,t!=null&&oi(e,"checked",t,!1)}function po(e,t){Lu(e,t);var n=St(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ho(e,t.type,n):t.hasOwnProperty("defaultValue")&&ho(e,t.type,St(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ts(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ho(e,t,n){(t!=="number"||Ur(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var _n=Array.isArray;function tn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+St(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function yo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(k(91));return G({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ns(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(k(92));if(_n(n)){if(1<n.length)throw Error(k(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:St(n)}}function Nu(e,t){var n=St(t.value),r=St(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function rs(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Pu(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 mo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Pu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var yr,Iu=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(yr=yr||document.createElement("div"),yr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=yr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var In={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},pd=["Webkit","ms","Moz","O"];Object.keys(In).forEach(function(e){pd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),In[t]=In[e]})});function Fu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||In.hasOwnProperty(e)&&In[e]?(""+t).trim():t+"px"}function Mu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Fu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var hd=G({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 go(e,t){if(t){if(hd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function vo(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 xo=null;function ai(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var So=null,nn=null,rn=null;function ls(e){if(e=ar(e)){if(typeof So!="function")throw Error(k(280));var t=e.stateNode;t&&(t=gl(t),So(e.stateNode,e.type,t))}}function Ou(e){nn?rn?rn.push(e):rn=[e]:nn=e}function Du(){if(nn){var e=nn,t=rn;if(rn=nn=null,ls(e),t)for(e=0;e<t.length;e++)ls(t[e])}}function Au(e,t){return e(t)}function Wu(){}var Fl=!1;function $u(e,t,n){if(Fl)return e(t,n);Fl=!0;try{return Au(e,t,n)}finally{Fl=!1,(nn!==null||rn!==null)&&(Wu(),Du())}}function Hn(e,t){var n=e.stateNode;if(n===null)return null;var r=gl(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(k(231,t,typeof n));return n}var wo=!1;if(Je)try{var Sn={};Object.defineProperty(Sn,"passive",{get:function(){wo=!0}}),window.addEventListener("test",Sn,Sn),window.removeEventListener("test",Sn,Sn)}catch{wo=!1}function yd(e,t,n,r,l,o,i,u,a){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(m){this.onError(m)}}var Fn=!1,Br=null,Vr=!1,ko=null,md={onError:function(e){Fn=!0,Br=e}};function gd(e,t,n,r,l,o,i,u,a){Fn=!1,Br=null,yd.apply(md,arguments)}function vd(e,t,n,r,l,o,i,u,a){if(gd.apply(this,arguments),Fn){if(Fn){var d=Br;Fn=!1,Br=null}else throw Error(k(198));Vr||(Vr=!0,ko=d)}}function $t(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Uu(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 os(e){if($t(e)!==e)throw Error(k(188))}function xd(e){var t=e.alternate;if(!t){if(t=$t(e),t===null)throw Error(k(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var o=l.alternate;if(o===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return os(l),e;if(o===r)return os(l),t;o=o.sibling}throw Error(k(188))}if(n.return!==r.return)n=l,r=o;else{for(var i=!1,u=l.child;u;){if(u===n){i=!0,n=l,r=o;break}if(u===r){i=!0,r=l,n=o;break}u=u.sibling}if(!i){for(u=o.child;u;){if(u===n){i=!0,n=o,r=l;break}if(u===r){i=!0,r=o,n=l;break}u=u.sibling}if(!i)throw Error(k(189))}}if(n.alternate!==r)throw Error(k(190))}if(n.tag!==3)throw Error(k(188));return n.stateNode.current===n?e:t}function Bu(e){return e=xd(e),e!==null?Vu(e):null}function Vu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Vu(e);if(t!==null)return t;e=e.sibling}return null}var Hu=ze.unstable_scheduleCallback,is=ze.unstable_cancelCallback,Sd=ze.unstable_shouldYield,wd=ze.unstable_requestPaint,K=ze.unstable_now,kd=ze.unstable_getCurrentPriorityLevel,ci=ze.unstable_ImmediatePriority,bu=ze.unstable_UserBlockingPriority,Hr=ze.unstable_NormalPriority,Cd=ze.unstable_LowPriority,Qu=ze.unstable_IdlePriority,pl=null,be=null;function Ed(e){if(be&&typeof be.onCommitFiberRoot=="function")try{be.onCommitFiberRoot(pl,e,void 0,(e.current.flags&128)===128)}catch{}}var We=Math.clz32?Math.clz32:Rd,jd=Math.log,zd=Math.LN2;function Rd(e){return e>>>=0,e===0?32:31-(jd(e)/zd|0)|0}var mr=64,gr=4194304;function Ln(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 br(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=Ln(u):(o&=i,o!==0&&(r=Ln(o)))}else i=n&~l,i!==0?r=Ln(i):o!==0&&(r=Ln(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-We(t),l=1<<n,r|=e[n],t&=~l;return r}function Td(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 _d(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-We(o),u=1<<i,a=l[i];a===-1?(!(u&n)||u&r)&&(l[i]=Td(u,t)):a<=t&&(e.expiredLanes|=u),o&=~u}}function Co(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Gu(){var e=mr;return mr<<=1,!(mr&4194240)&&(mr=64),e}function Ml(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function sr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-We(t),e[t]=n}function Ld(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-We(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function di(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-We(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var A=0;function Yu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ku,fi,Xu,Zu,Ju,Eo=!1,vr=[],ft=null,pt=null,ht=null,bn=new Map,Qn=new Map,ut=[],Nd="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 ss(e,t){switch(e){case"focusin":case"focusout":ft=null;break;case"dragenter":case"dragleave":pt=null;break;case"mouseover":case"mouseout":ht=null;break;case"pointerover":case"pointerout":bn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qn.delete(t.pointerId)}}function wn(e,t,n,r,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[l]},t!==null&&(t=ar(t),t!==null&&fi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Pd(e,t,n,r,l){switch(t){case"focusin":return ft=wn(ft,e,t,n,r,l),!0;case"dragenter":return pt=wn(pt,e,t,n,r,l),!0;case"mouseover":return ht=wn(ht,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return bn.set(o,wn(bn.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,Qn.set(o,wn(Qn.get(o)||null,e,t,n,r,l)),!0}return!1}function qu(e){var t=_t(e.target);if(t!==null){var n=$t(t);if(n!==null){if(t=n.tag,t===13){if(t=Uu(n),t!==null){e.blockedOn=t,Ju(e.priority,function(){Xu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Nr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=jo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);xo=r,n.target.dispatchEvent(r),xo=null}else return t=ar(n),t!==null&&fi(t),e.blockedOn=n,!1;t.shift()}return!0}function us(e,t,n){Nr(e)&&n.delete(t)}function Id(){Eo=!1,ft!==null&&Nr(ft)&&(ft=null),pt!==null&&Nr(pt)&&(pt=null),ht!==null&&Nr(ht)&&(ht=null),bn.forEach(us),Qn.forEach(us)}function kn(e,t){e.blockedOn===t&&(e.blockedOn=null,Eo||(Eo=!0,ze.unstable_scheduleCallback(ze.unstable_NormalPriority,Id)))}function Gn(e){function t(l){return kn(l,e)}if(0<vr.length){kn(vr[0],e);for(var n=1;n<vr.length;n++){var r=vr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ft!==null&&kn(ft,e),pt!==null&&kn(pt,e),ht!==null&&kn(ht,e),bn.forEach(t),Qn.forEach(t),n=0;n<ut.length;n++)r=ut[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ut.length&&(n=ut[0],n.blockedOn===null);)qu(n),n.blockedOn===null&&ut.shift()}var ln=nt.ReactCurrentBatchConfig,Qr=!0;function Fd(e,t,n,r){var l=A,o=ln.transition;ln.transition=null;try{A=1,pi(e,t,n,r)}finally{A=l,ln.transition=o}}function Md(e,t,n,r){var l=A,o=ln.transition;ln.transition=null;try{A=4,pi(e,t,n,r)}finally{A=l,ln.transition=o}}function pi(e,t,n,r){if(Qr){var l=jo(e,t,n,r);if(l===null)bl(e,t,r,Gr,n),ss(e,r);else if(Pd(l,e,t,n,r))r.stopPropagation();else if(ss(e,r),t&4&&-1<Nd.indexOf(e)){for(;l!==null;){var o=ar(l);if(o!==null&&Ku(o),o=jo(e,t,n,r),o===null&&bl(e,t,r,Gr,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else bl(e,t,r,null,n)}}var Gr=null;function jo(e,t,n,r){if(Gr=null,e=ai(r),e=_t(e),e!==null)if(t=$t(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Uu(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gr=e,null}function ea(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(kd()){case ci:return 1;case bu:return 4;case Hr:case Cd:return 16;case Qu:return 536870912;default:return 16}default:return 16}}var ct=null,hi=null,Pr=null;function ta(){if(Pr)return Pr;var e,t=hi,n=t.length,r,l="value"in ct?ct.value:ct.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===l[o-r];r++);return Pr=l.slice(e,1<r?1-r:void 0)}function Ir(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 xr(){return!0}function as(){return!1}function Te(e){function t(n,r,l,o,i){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(o):o[u]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?xr:as,this.isPropagationStopped=as,this}return G(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=xr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=xr)},persist:function(){},isPersistent:xr}),t}var gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yi=Te(gn),ur=G({},gn,{view:0,detail:0}),Od=Te(ur),Ol,Dl,Cn,hl=G({},ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mi,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!==Cn&&(Cn&&e.type==="mousemove"?(Ol=e.screenX-Cn.screenX,Dl=e.screenY-Cn.screenY):Dl=Ol=0,Cn=e),Ol)},movementY:function(e){return"movementY"in e?e.movementY:Dl}}),cs=Te(hl),Dd=G({},hl,{dataTransfer:0}),Ad=Te(Dd),Wd=G({},ur,{relatedTarget:0}),Al=Te(Wd),$d=G({},gn,{animationName:0,elapsedTime:0,pseudoElement:0}),Ud=Te($d),Bd=G({},gn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vd=Te(Bd),Hd=G({},gn,{data:0}),ds=Te(Hd),bd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qd={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"},Gd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gd[e])?!!t[e]:!1}function mi(){return Yd}var Kd=G({},ur,{key:function(e){if(e.key){var t=bd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ir(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Qd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mi,charCode:function(e){return e.type==="keypress"?Ir(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ir(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Xd=Te(Kd),Zd=G({},hl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fs=Te(Zd),Jd=G({},ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mi}),qd=Te(Jd),ef=G({},gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),tf=Te(ef),nf=G({},hl,{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}),rf=Te(nf),lf=[9,13,27,32],gi=Je&&"CompositionEvent"in window,Mn=null;Je&&"documentMode"in document&&(Mn=document.documentMode);var of=Je&&"TextEvent"in window&&!Mn,na=Je&&(!gi||Mn&&8<Mn&&11>=Mn),ps=" ",hs=!1;function ra(e,t){switch(e){case"keyup":return lf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function la(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bt=!1;function sf(e,t){switch(e){case"compositionend":return la(t);case"keypress":return t.which!==32?null:(hs=!0,ps);case"textInput":return e=t.data,e===ps&&hs?null:e;default:return null}}function uf(e,t){if(bt)return e==="compositionend"||!gi&&ra(e,t)?(e=ta(),Pr=hi=ct=null,bt=!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 na&&t.locale!=="ko"?null:t.data;default:return null}}var af={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 ys(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!af[e.type]:t==="textarea"}function oa(e,t,n,r){Ou(r),t=Yr(t,"onChange"),0<t.length&&(n=new yi("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var On=null,Yn=null;function cf(e){ma(e,0)}function yl(e){var t=Yt(e);if(_u(t))return e}function df(e,t){if(e==="change")return t}var ia=!1;if(Je){var Wl;if(Je){var $l="oninput"in document;if(!$l){var ms=document.createElement("div");ms.setAttribute("oninput","return;"),$l=typeof ms.oninput=="function"}Wl=$l}else Wl=!1;ia=Wl&&(!document.documentMode||9<document.documentMode)}function gs(){On&&(On.detachEvent("onpropertychange",sa),Yn=On=null)}function sa(e){if(e.propertyName==="value"&&yl(Yn)){var t=[];oa(t,Yn,e,ai(e)),$u(cf,t)}}function ff(e,t,n){e==="focusin"?(gs(),On=t,Yn=n,On.attachEvent("onpropertychange",sa)):e==="focusout"&&gs()}function pf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yl(Yn)}function hf(e,t){if(e==="click")return yl(t)}function yf(e,t){if(e==="input"||e==="change")return yl(t)}function mf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ue=typeof Object.is=="function"?Object.is:mf;function Kn(e,t){if(Ue(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!io.call(t,l)||!Ue(e[l],t[l]))return!1}return!0}function vs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xs(e,t){var n=vs(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=vs(n)}}function ua(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ua(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function aa(){for(var e=window,t=Ur();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ur(e.document)}return t}function vi(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 gf(e){var t=aa(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ua(n.ownerDocument.documentElement,n)){if(r!==null&&vi(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=xs(n,o);var i=xs(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vf=Je&&"documentMode"in document&&11>=document.documentMode,Qt=null,zo=null,Dn=null,Ro=!1;function Ss(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ro||Qt==null||Qt!==Ur(r)||(r=Qt,"selectionStart"in r&&vi(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Dn&&Kn(Dn,r)||(Dn=r,r=Yr(zo,"onSelect"),0<r.length&&(t=new yi("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Qt)))}function Sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Gt={animationend:Sr("Animation","AnimationEnd"),animationiteration:Sr("Animation","AnimationIteration"),animationstart:Sr("Animation","AnimationStart"),transitionend:Sr("Transition","TransitionEnd")},Ul={},ca={};Je&&(ca=document.createElement("div").style,"AnimationEvent"in window||(delete Gt.animationend.animation,delete Gt.animationiteration.animation,delete Gt.animationstart.animation),"TransitionEvent"in window||delete Gt.transitionend.transition);function ml(e){if(Ul[e])return Ul[e];if(!Gt[e])return e;var t=Gt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ca)return Ul[e]=t[n];return e}var da=ml("animationend"),fa=ml("animationiteration"),pa=ml("animationstart"),ha=ml("transitionend"),ya=new Map,ws="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 kt(e,t){ya.set(e,t),Wt(t,[e])}for(var Bl=0;Bl<ws.length;Bl++){var Vl=ws[Bl],xf=Vl.toLowerCase(),Sf=Vl[0].toUpperCase()+Vl.slice(1);kt(xf,"on"+Sf)}kt(da,"onAnimationEnd");kt(fa,"onAnimationIteration");kt(pa,"onAnimationStart");kt("dblclick","onDoubleClick");kt("focusin","onFocus");kt("focusout","onBlur");kt(ha,"onTransitionEnd");un("onMouseEnter",["mouseout","mouseover"]);un("onMouseLeave",["mouseout","mouseover"]);un("onPointerEnter",["pointerout","pointerover"]);un("onPointerLeave",["pointerout","pointerover"]);Wt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Wt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Wt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Wt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Wt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Wt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nn="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(" "),wf=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nn));function ks(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,vd(r,t,void 0,e),e.currentTarget=null}function ma(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var u=r[i],a=u.instance,d=u.currentTarget;if(u=u.listener,a!==o&&l.isPropagationStopped())break e;ks(l,u,d),o=a}else for(i=0;i<r.length;i++){if(u=r[i],a=u.instance,d=u.currentTarget,u=u.listener,a!==o&&l.isPropagationStopped())break e;ks(l,u,d),o=a}}}if(Vr)throw e=ko,Vr=!1,ko=null,e}function $(e,t){var n=t[Po];n===void 0&&(n=t[Po]=new Set);var r=e+"__bubble";n.has(r)||(ga(t,e,2,!1),n.add(r))}function Hl(e,t,n){var r=0;t&&(r|=4),ga(n,e,r,t)}var wr="_reactListening"+Math.random().toString(36).slice(2);function Xn(e){if(!e[wr]){e[wr]=!0,Eu.forEach(function(n){n!=="selectionchange"&&(wf.has(n)||Hl(n,!1,e),Hl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wr]||(t[wr]=!0,Hl("selectionchange",!1,t))}}function ga(e,t,n,r){switch(ea(t)){case 1:var l=Fd;break;case 4:l=Md;break;default:l=pi}n=l.bind(null,t,n,e),l=void 0,!wo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function bl(e,t,n,r,l){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var u=r.stateNode.containerInfo;if(u===l||u.nodeType===8&&u.parentNode===l)break;if(i===4)for(i=r.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===l||a.nodeType===8&&a.parentNode===l))return;i=i.return}for(;u!==null;){if(i=_t(u),i===null)return;if(a=i.tag,a===5||a===6){r=o=i;continue e}u=u.parentNode}}r=r.return}$u(function(){var d=o,m=ai(n),y=[];e:{var h=ya.get(e);if(h!==void 0){var x=yi,v=e;switch(e){case"keypress":if(Ir(n)===0)break e;case"keydown":case"keyup":x=Xd;break;case"focusin":v="focus",x=Al;break;case"focusout":v="blur",x=Al;break;case"beforeblur":case"afterblur":x=Al;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=cs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=Ad;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=qd;break;case da:case fa:case pa:x=Ud;break;case ha:x=tf;break;case"scroll":x=Od;break;case"wheel":x=rf;break;case"copy":case"cut":case"paste":x=Vd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=fs}var S=(t&4)!==0,_=!S&&e==="scroll",f=S?h!==null?h+"Capture":null:h;S=[];for(var c=d,p;c!==null;){p=c;var g=p.stateNode;if(p.tag===5&&g!==null&&(p=g,f!==null&&(g=Hn(c,f),g!=null&&S.push(Zn(c,g,p)))),_)break;c=c.return}0<S.length&&(h=new x(h,v,null,n,m),y.push({event:h,listeners:S}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",h&&n!==xo&&(v=n.relatedTarget||n.fromElement)&&(_t(v)||v[qe]))break e;if((x||h)&&(h=m.window===m?m:(h=m.ownerDocument)?h.defaultView||h.parentWindow:window,x?(v=n.relatedTarget||n.toElement,x=d,v=v?_t(v):null,v!==null&&(_=$t(v),v!==_||v.tag!==5&&v.tag!==6)&&(v=null)):(x=null,v=d),x!==v)){if(S=cs,g="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(S=fs,g="onPointerLeave",f="onPointerEnter",c="pointer"),_=x==null?h:Yt(x),p=v==null?h:Yt(v),h=new S(g,c+"leave",x,n,m),h.target=_,h.relatedTarget=p,g=null,_t(m)===d&&(S=new S(f,c+"enter",v,n,m),S.target=p,S.relatedTarget=_,g=S),_=g,x&&v)t:{for(S=x,f=v,c=0,p=S;p;p=Bt(p))c++;for(p=0,g=f;g;g=Bt(g))p++;for(;0<c-p;)S=Bt(S),c--;for(;0<p-c;)f=Bt(f),p--;for(;c--;){if(S===f||f!==null&&S===f.alternate)break t;S=Bt(S),f=Bt(f)}S=null}else S=null;x!==null&&Cs(y,h,x,S,!1),v!==null&&_!==null&&Cs(y,_,v,S,!0)}}e:{if(h=d?Yt(d):window,x=h.nodeName&&h.nodeName.toLowerCase(),x==="select"||x==="input"&&h.type==="file")var C=df;else if(ys(h))if(ia)C=yf;else{C=pf;var R=ff}else(x=h.nodeName)&&x.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=hf);if(C&&(C=C(e,d))){oa(y,C,n,m);break e}R&&R(e,h,d),e==="focusout"&&(R=h._wrapperState)&&R.controlled&&h.type==="number"&&ho(h,"number",h.value)}switch(R=d?Yt(d):window,e){case"focusin":(ys(R)||R.contentEditable==="true")&&(Qt=R,zo=d,Dn=null);break;case"focusout":Dn=zo=Qt=null;break;case"mousedown":Ro=!0;break;case"contextmenu":case"mouseup":case"dragend":Ro=!1,Ss(y,n,m);break;case"selectionchange":if(vf)break;case"keydown":case"keyup":Ss(y,n,m)}var E;if(gi)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else bt?ra(e,n)&&(w="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(w="onCompositionStart");w&&(na&&n.locale!=="ko"&&(bt||w!=="onCompositionStart"?w==="onCompositionEnd"&&bt&&(E=ta()):(ct=m,hi="value"in ct?ct.value:ct.textContent,bt=!0)),R=Yr(d,w),0<R.length&&(w=new ds(w,e,null,n,m),y.push({event:w,listeners:R}),E?w.data=E:(E=la(n),E!==null&&(w.data=E)))),(E=of?sf(e,n):uf(e,n))&&(d=Yr(d,"onBeforeInput"),0<d.length&&(m=new ds("onBeforeInput","beforeinput",null,n,m),y.push({event:m,listeners:d}),m.data=E))}ma(y,t)})}function Zn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yr(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=Hn(e,n),o!=null&&r.unshift(Zn(e,o,l)),o=Hn(e,t),o!=null&&r.push(Zn(e,o,l))),e=e.return}return r}function Bt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Cs(e,t,n,r,l){for(var o=t._reactName,i=[];n!==null&&n!==r;){var u=n,a=u.alternate,d=u.stateNode;if(a!==null&&a===r)break;u.tag===5&&d!==null&&(u=d,l?(a=Hn(n,o),a!=null&&i.unshift(Zn(n,a,u))):l||(a=Hn(n,o),a!=null&&i.push(Zn(n,a,u)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var kf=/\r\n?/g,Cf=/\u0000|\uFFFD/g;function Es(e){return(typeof e=="string"?e:""+e).replace(kf,`
|
|
38
|
-
`).replace(Cf,"")}function kr(e,t,n){if(t=Es(t),Es(e)!==t&&n)throw Error(k(425))}function Kr(){}var To=null,_o=null;function Lo(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 No=typeof setTimeout=="function"?setTimeout:void 0,Ef=typeof clearTimeout=="function"?clearTimeout:void 0,js=typeof Promise=="function"?Promise:void 0,jf=typeof queueMicrotask=="function"?queueMicrotask:typeof js<"u"?function(e){return js.resolve(null).then(e).catch(zf)}:No;function zf(e){setTimeout(function(){throw e})}function Ql(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Gn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Gn(t)}function yt(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 zs(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vn=Math.random().toString(36).slice(2),He="__reactFiber$"+vn,Jn="__reactProps$"+vn,qe="__reactContainer$"+vn,Po="__reactEvents$"+vn,Rf="__reactListeners$"+vn,Tf="__reactHandles$"+vn;function _t(e){var t=e[He];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qe]||n[He]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=zs(e);e!==null;){if(n=e[He])return n;e=zs(e)}return t}e=n,n=e.parentNode}return null}function ar(e){return e=e[He]||e[qe],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Yt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(k(33))}function gl(e){return e[Jn]||null}var Io=[],Kt=-1;function Ct(e){return{current:e}}function U(e){0>Kt||(e.current=Io[Kt],Io[Kt]=null,Kt--)}function W(e,t){Kt++,Io[Kt]=e.current,e.current=t}var wt={},de=Ct(wt),ve=Ct(!1),Ft=wt;function an(e,t){var n=e.type.contextTypes;if(!n)return wt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function xe(e){return e=e.childContextTypes,e!=null}function Xr(){U(ve),U(de)}function Rs(e,t,n){if(de.current!==wt)throw Error(k(168));W(de,t),W(ve,n)}function va(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(k(108,dd(e)||"Unknown",l));return G({},n,r)}function Zr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wt,Ft=de.current,W(de,e),W(ve,ve.current),!0}function Ts(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=va(e,t,Ft),r.__reactInternalMemoizedMergedChildContext=e,U(ve),U(de),W(de,e)):U(ve),W(ve,n)}var Ye=null,vl=!1,Gl=!1;function xa(e){Ye===null?Ye=[e]:Ye.push(e)}function _f(e){vl=!0,xa(e)}function Et(){if(!Gl&&Ye!==null){Gl=!0;var e=0,t=A;try{var n=Ye;for(A=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ye=null,vl=!1}catch(l){throw Ye!==null&&(Ye=Ye.slice(e+1)),Hu(ci,Et),l}finally{A=t,Gl=!1}}return null}var Xt=[],Zt=0,Jr=null,qr=0,_e=[],Le=0,Mt=null,Ke=1,Xe="";function Rt(e,t){Xt[Zt++]=qr,Xt[Zt++]=Jr,Jr=e,qr=t}function Sa(e,t,n){_e[Le++]=Ke,_e[Le++]=Xe,_e[Le++]=Mt,Mt=e;var r=Ke;e=Xe;var l=32-We(r)-1;r&=~(1<<l),n+=1;var o=32-We(t)+l;if(30<o){var i=l-l%5;o=(r&(1<<i)-1).toString(32),r>>=i,l-=i,Ke=1<<32-We(t)+l|n<<l|r,Xe=o+e}else Ke=1<<o|n<<l|r,Xe=e}function xi(e){e.return!==null&&(Rt(e,1),Sa(e,1,0))}function Si(e){for(;e===Jr;)Jr=Xt[--Zt],Xt[Zt]=null,qr=Xt[--Zt],Xt[Zt]=null;for(;e===Mt;)Mt=_e[--Le],_e[Le]=null,Xe=_e[--Le],_e[Le]=null,Ke=_e[--Le],_e[Le]=null}var je=null,Ee=null,V=!1,Ae=null;function wa(e,t){var n=Ne(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function _s(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,je=e,Ee=yt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,je=e,Ee=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Mt!==null?{id:Ke,overflow:Xe}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ne(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,je=e,Ee=null,!0):!1;default:return!1}}function Fo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Mo(e){if(V){var t=Ee;if(t){var n=t;if(!_s(e,t)){if(Fo(e))throw Error(k(418));t=yt(n.nextSibling);var r=je;t&&_s(e,t)?wa(r,n):(e.flags=e.flags&-4097|2,V=!1,je=e)}}else{if(Fo(e))throw Error(k(418));e.flags=e.flags&-4097|2,V=!1,je=e}}}function Ls(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;je=e}function Cr(e){if(e!==je)return!1;if(!V)return Ls(e),V=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Lo(e.type,e.memoizedProps)),t&&(t=Ee)){if(Fo(e))throw ka(),Error(k(418));for(;t;)wa(e,t),t=yt(t.nextSibling)}if(Ls(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ee=yt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ee=null}}else Ee=je?yt(e.stateNode.nextSibling):null;return!0}function ka(){for(var e=Ee;e;)e=yt(e.nextSibling)}function cn(){Ee=je=null,V=!1}function wi(e){Ae===null?Ae=[e]:Ae.push(e)}var Lf=nt.ReactCurrentBatchConfig;function En(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(k(309));var r=n.stateNode}if(!r)throw Error(k(147,e));var l=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var u=l.refs;i===null?delete u[o]:u[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(k(284));if(!n._owner)throw Error(k(290,e))}return e}function Er(e,t){throw e=Object.prototype.toString.call(t),Error(k(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ns(e){var t=e._init;return t(e._payload)}function Ca(e){function t(f,c){if(e){var p=f.deletions;p===null?(f.deletions=[c],f.flags|=16):p.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function l(f,c){return f=xt(f,c),f.index=0,f.sibling=null,f}function o(f,c,p){return f.index=p,e?(p=f.alternate,p!==null?(p=p.index,p<c?(f.flags|=2,c):p):(f.flags|=2,c)):(f.flags|=1048576,c)}function i(f){return e&&f.alternate===null&&(f.flags|=2),f}function u(f,c,p,g){return c===null||c.tag!==6?(c=eo(p,f.mode,g),c.return=f,c):(c=l(c,p),c.return=f,c)}function a(f,c,p,g){var C=p.type;return C===Ht?m(f,c,p.props.children,g,p.key):c!==null&&(c.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===it&&Ns(C)===c.type)?(g=l(c,p.props),g.ref=En(f,c,p),g.return=f,g):(g=$r(p.type,p.key,p.props,null,f.mode,g),g.ref=En(f,c,p),g.return=f,g)}function d(f,c,p,g){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=to(p,f.mode,g),c.return=f,c):(c=l(c,p.children||[]),c.return=f,c)}function m(f,c,p,g,C){return c===null||c.tag!==7?(c=It(p,f.mode,g,C),c.return=f,c):(c=l(c,p),c.return=f,c)}function y(f,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=eo(""+c,f.mode,p),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case pr:return p=$r(c.type,c.key,c.props,null,f.mode,p),p.ref=En(f,null,c),p.return=f,p;case Vt:return c=to(c,f.mode,p),c.return=f,c;case it:var g=c._init;return y(f,g(c._payload),p)}if(_n(c)||xn(c))return c=It(c,f.mode,p,null),c.return=f,c;Er(f,c)}return null}function h(f,c,p,g){var C=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return C!==null?null:u(f,c,""+p,g);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case pr:return p.key===C?a(f,c,p,g):null;case Vt:return p.key===C?d(f,c,p,g):null;case it:return C=p._init,h(f,c,C(p._payload),g)}if(_n(p)||xn(p))return C!==null?null:m(f,c,p,g,null);Er(f,p)}return null}function x(f,c,p,g,C){if(typeof g=="string"&&g!==""||typeof g=="number")return f=f.get(p)||null,u(c,f,""+g,C);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case pr:return f=f.get(g.key===null?p:g.key)||null,a(c,f,g,C);case Vt:return f=f.get(g.key===null?p:g.key)||null,d(c,f,g,C);case it:var R=g._init;return x(f,c,p,R(g._payload),C)}if(_n(g)||xn(g))return f=f.get(p)||null,m(c,f,g,C,null);Er(c,g)}return null}function v(f,c,p,g){for(var C=null,R=null,E=c,w=c=0,F=null;E!==null&&w<p.length;w++){E.index>w?(F=E,E=null):F=E.sibling;var L=h(f,E,p[w],g);if(L===null){E===null&&(E=F);break}e&&E&&L.alternate===null&&t(f,E),c=o(L,c,w),R===null?C=L:R.sibling=L,R=L,E=F}if(w===p.length)return n(f,E),V&&Rt(f,w),C;if(E===null){for(;w<p.length;w++)E=y(f,p[w],g),E!==null&&(c=o(E,c,w),R===null?C=E:R.sibling=E,R=E);return V&&Rt(f,w),C}for(E=r(f,E);w<p.length;w++)F=x(E,f,w,p[w],g),F!==null&&(e&&F.alternate!==null&&E.delete(F.key===null?w:F.key),c=o(F,c,w),R===null?C=F:R.sibling=F,R=F);return e&&E.forEach(function(ee){return t(f,ee)}),V&&Rt(f,w),C}function S(f,c,p,g){var C=xn(p);if(typeof C!="function")throw Error(k(150));if(p=C.call(p),p==null)throw Error(k(151));for(var R=C=null,E=c,w=c=0,F=null,L=p.next();E!==null&&!L.done;w++,L=p.next()){E.index>w?(F=E,E=null):F=E.sibling;var ee=h(f,E,L.value,g);if(ee===null){E===null&&(E=F);break}e&&E&&ee.alternate===null&&t(f,E),c=o(ee,c,w),R===null?C=ee:R.sibling=ee,R=ee,E=F}if(L.done)return n(f,E),V&&Rt(f,w),C;if(E===null){for(;!L.done;w++,L=p.next())L=y(f,L.value,g),L!==null&&(c=o(L,c,w),R===null?C=L:R.sibling=L,R=L);return V&&Rt(f,w),C}for(E=r(f,E);!L.done;w++,L=p.next())L=x(E,f,w,L.value,g),L!==null&&(e&&L.alternate!==null&&E.delete(L.key===null?w:L.key),c=o(L,c,w),R===null?C=L:R.sibling=L,R=L);return e&&E.forEach(function(rt){return t(f,rt)}),V&&Rt(f,w),C}function _(f,c,p,g){if(typeof p=="object"&&p!==null&&p.type===Ht&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case pr:e:{for(var C=p.key,R=c;R!==null;){if(R.key===C){if(C=p.type,C===Ht){if(R.tag===7){n(f,R.sibling),c=l(R,p.props.children),c.return=f,f=c;break e}}else if(R.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===it&&Ns(C)===R.type){n(f,R.sibling),c=l(R,p.props),c.ref=En(f,R,p),c.return=f,f=c;break e}n(f,R);break}else t(f,R);R=R.sibling}p.type===Ht?(c=It(p.props.children,f.mode,g,p.key),c.return=f,f=c):(g=$r(p.type,p.key,p.props,null,f.mode,g),g.ref=En(f,c,p),g.return=f,f=g)}return i(f);case Vt:e:{for(R=p.key;c!==null;){if(c.key===R)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=l(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=to(p,f.mode,g),c.return=f,f=c}return i(f);case it:return R=p._init,_(f,c,R(p._payload),g)}if(_n(p))return v(f,c,p,g);if(xn(p))return S(f,c,p,g);Er(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,p),c.return=f,f=c):(n(f,c),c=eo(p,f.mode,g),c.return=f,f=c),i(f)):n(f,c)}return _}var dn=Ca(!0),Ea=Ca(!1),el=Ct(null),tl=null,Jt=null,ki=null;function Ci(){ki=Jt=tl=null}function Ei(e){var t=el.current;U(el),e._currentValue=t}function Oo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function on(e,t){tl=e,ki=Jt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ge=!0),e.firstContext=null)}function Ie(e){var t=e._currentValue;if(ki!==e)if(e={context:e,memoizedValue:t,next:null},Jt===null){if(tl===null)throw Error(k(308));Jt=e,tl.dependencies={lanes:0,firstContext:e}}else Jt=Jt.next=e;return t}var Lt=null;function ji(e){Lt===null?Lt=[e]:Lt.push(e)}function ja(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,ji(t)):(n.next=l.next,l.next=n),t.interleaved=n,et(e,r)}function et(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var st=!1;function zi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function za(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 Ze(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,D&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,et(e,n)}return l=r.interleaved,l===null?(t.next=t,ji(r)):(t.next=l.next,l.next=t),r.interleaved=t,et(e,n)}function Fr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,di(e,n)}}function Ps(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function nl(e,t,n,r){var l=e.updateQueue;st=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var a=u,d=a.next;a.next=null,i===null?o=d:i.next=d,i=a;var m=e.alternate;m!==null&&(m=m.updateQueue,u=m.lastBaseUpdate,u!==i&&(u===null?m.firstBaseUpdate=d:u.next=d,m.lastBaseUpdate=a))}if(o!==null){var y=l.baseState;i=0,m=d=a=null,u=o;do{var h=u.lane,x=u.eventTime;if((r&h)===h){m!==null&&(m=m.next={eventTime:x,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var v=e,S=u;switch(h=t,x=n,S.tag){case 1:if(v=S.payload,typeof v=="function"){y=v.call(x,y,h);break e}y=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,h=typeof v=="function"?v.call(x,y,h):v,h==null)break e;y=G({},y,h);break e;case 2:st=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[u]:h.push(u))}else x={eventTime:x,lane:h,tag:u.tag,payload:u.payload,callback:u.callback,next:null},m===null?(d=m=x,a=y):m=m.next=x,i|=h;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;h=u,u=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(m===null&&(a=y),l.baseState=a,l.firstBaseUpdate=d,l.lastBaseUpdate=m,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Dt|=i,e.lanes=i,e.memoizedState=y}}function Is(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(k(191,l));l.call(r)}}}var cr={},Qe=Ct(cr),qn=Ct(cr),er=Ct(cr);function Nt(e){if(e===cr)throw Error(k(174));return e}function Ri(e,t){switch(W(er,t),W(qn,e),W(Qe,cr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mo(t,e)}U(Qe),W(Qe,t)}function fn(){U(Qe),U(qn),U(er)}function Ra(e){Nt(er.current);var t=Nt(Qe.current),n=mo(t,e.type);t!==n&&(W(qn,e),W(Qe,n))}function Ti(e){qn.current===e&&(U(Qe),U(qn))}var b=Ct(0);function rl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Yl=[];function _i(){for(var e=0;e<Yl.length;e++)Yl[e]._workInProgressVersionPrimary=null;Yl.length=0}var Mr=nt.ReactCurrentDispatcher,Kl=nt.ReactCurrentBatchConfig,Ot=0,Q=null,te=null,re=null,ll=!1,An=!1,tr=0,Nf=0;function ue(){throw Error(k(321))}function Li(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ue(e[n],t[n]))return!1;return!0}function Ni(e,t,n,r,l,o){if(Ot=o,Q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Mr.current=e===null||e.memoizedState===null?Mf:Of,e=n(r,l),An){o=0;do{if(An=!1,tr=0,25<=o)throw Error(k(301));o+=1,re=te=null,t.updateQueue=null,Mr.current=Df,e=n(r,l)}while(An)}if(Mr.current=ol,t=te!==null&&te.next!==null,Ot=0,re=te=Q=null,ll=!1,t)throw Error(k(300));return e}function Pi(){var e=tr!==0;return tr=0,e}function Ve(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return re===null?Q.memoizedState=re=e:re=re.next=e,re}function Fe(){if(te===null){var e=Q.alternate;e=e!==null?e.memoizedState:null}else e=te.next;var t=re===null?Q.memoizedState:re.next;if(t!==null)re=t,te=e;else{if(e===null)throw Error(k(310));te=e,e={memoizedState:te.memoizedState,baseState:te.baseState,baseQueue:te.baseQueue,queue:te.queue,next:null},re===null?Q.memoizedState=re=e:re=re.next=e}return re}function nr(e,t){return typeof t=="function"?t(e):t}function Xl(e){var t=Fe(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=te,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var i=l.next;l.next=o.next,o.next=i}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var u=i=null,a=null,d=o;do{var m=d.lane;if((Ot&m)===m)a!==null&&(a=a.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var y={lane:m,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};a===null?(u=a=y,i=r):a=a.next=y,Q.lanes|=m,Dt|=m}d=d.next}while(d!==null&&d!==o);a===null?i=r:a.next=u,Ue(r,t.memoizedState)||(ge=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,Q.lanes|=o,Dt|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Zl(e){var t=Fe(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var i=l=l.next;do o=e(o,i.action),i=i.next;while(i!==l);Ue(o,t.memoizedState)||(ge=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ta(){}function _a(e,t){var n=Q,r=Fe(),l=t(),o=!Ue(r.memoizedState,l);if(o&&(r.memoizedState=l,ge=!0),r=r.queue,Ii(Pa.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||re!==null&&re.memoizedState.tag&1){if(n.flags|=2048,rr(9,Na.bind(null,n,r,l,t),void 0,null),le===null)throw Error(k(349));Ot&30||La(n,t,l)}return l}function La(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Q.updateQueue,t===null?(t={lastEffect:null,stores:null},Q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Na(e,t,n,r){t.value=n,t.getSnapshot=r,Ia(t)&&Fa(e)}function Pa(e,t,n){return n(function(){Ia(t)&&Fa(e)})}function Ia(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ue(e,n)}catch{return!0}}function Fa(e){var t=et(e,1);t!==null&&$e(t,e,1,-1)}function Fs(e){var t=Ve();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:nr,lastRenderedState:e},t.queue=e,e=e.dispatch=Ff.bind(null,Q,e),[t.memoizedState,e]}function rr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Q.updateQueue,t===null?(t={lastEffect:null,stores:null},Q.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ma(){return Fe().memoizedState}function Or(e,t,n,r){var l=Ve();Q.flags|=e,l.memoizedState=rr(1|t,n,void 0,r===void 0?null:r)}function xl(e,t,n,r){var l=Fe();r=r===void 0?null:r;var o=void 0;if(te!==null){var i=te.memoizedState;if(o=i.destroy,r!==null&&Li(r,i.deps)){l.memoizedState=rr(t,n,o,r);return}}Q.flags|=e,l.memoizedState=rr(1|t,n,o,r)}function Ms(e,t){return Or(8390656,8,e,t)}function Ii(e,t){return xl(2048,8,e,t)}function Oa(e,t){return xl(4,2,e,t)}function Da(e,t){return xl(4,4,e,t)}function Aa(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 Wa(e,t,n){return n=n!=null?n.concat([e]):null,xl(4,4,Aa.bind(null,t,e),n)}function Fi(){}function $a(e,t){var n=Fe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Li(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ua(e,t){var n=Fe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Li(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ba(e,t,n){return Ot&21?(Ue(n,t)||(n=Gu(),Q.lanes|=n,Dt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ge=!0),e.memoizedState=n)}function Pf(e,t){var n=A;A=n!==0&&4>n?n:4,e(!0);var r=Kl.transition;Kl.transition={};try{e(!1),t()}finally{A=n,Kl.transition=r}}function Va(){return Fe().memoizedState}function If(e,t,n){var r=vt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ha(e))ba(t,n);else if(n=ja(e,t,n,r),n!==null){var l=pe();$e(n,e,r,l),Qa(n,t,r)}}function Ff(e,t,n){var r=vt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ha(e))ba(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,Ue(u,i)){var a=t.interleaved;a===null?(l.next=l,ji(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=ja(e,t,l,r),n!==null&&(l=pe(),$e(n,e,r,l),Qa(n,t,r))}}function Ha(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function ba(e,t){An=ll=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,di(e,n)}}var ol={readContext:Ie,useCallback:ue,useContext:ue,useEffect:ue,useImperativeHandle:ue,useInsertionEffect:ue,useLayoutEffect:ue,useMemo:ue,useReducer:ue,useRef:ue,useState:ue,useDebugValue:ue,useDeferredValue:ue,useTransition:ue,useMutableSource:ue,useSyncExternalStore:ue,useId:ue,unstable_isNewReconciler:!1},Mf={readContext:Ie,useCallback:function(e,t){return Ve().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Ms,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Or(4194308,4,Aa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Or(4194308,4,e,t)},useInsertionEffect:function(e,t){return Or(4,2,e,t)},useMemo:function(e,t){var n=Ve();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ve();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=If.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=Ve();return e={current:e},t.memoizedState=e},useState:Fs,useDebugValue:Fi,useDeferredValue:function(e){return Ve().memoizedState=e},useTransition:function(){var e=Fs(!1),t=e[0];return e=Pf.bind(null,e[1]),Ve().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,l=Ve();if(V){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),le===null)throw Error(k(349));Ot&30||La(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Ms(Pa.bind(null,r,o,e),[e]),r.flags|=2048,rr(9,Na.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ve(),t=le.identifierPrefix;if(V){var n=Xe,r=Ke;n=(r&~(1<<32-We(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=tr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Nf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Of={readContext:Ie,useCallback:$a,useContext:Ie,useEffect:Ii,useImperativeHandle:Wa,useInsertionEffect:Oa,useLayoutEffect:Da,useMemo:Ua,useReducer:Xl,useRef:Ma,useState:function(){return Xl(nr)},useDebugValue:Fi,useDeferredValue:function(e){var t=Fe();return Ba(t,te.memoizedState,e)},useTransition:function(){var e=Xl(nr)[0],t=Fe().memoizedState;return[e,t]},useMutableSource:Ta,useSyncExternalStore:_a,useId:Va,unstable_isNewReconciler:!1},Df={readContext:Ie,useCallback:$a,useContext:Ie,useEffect:Ii,useImperativeHandle:Wa,useInsertionEffect:Oa,useLayoutEffect:Da,useMemo:Ua,useReducer:Zl,useRef:Ma,useState:function(){return Zl(nr)},useDebugValue:Fi,useDeferredValue:function(e){var t=Fe();return te===null?t.memoizedState=e:Ba(t,te.memoizedState,e)},useTransition:function(){var e=Zl(nr)[0],t=Fe().memoizedState;return[e,t]},useMutableSource:Ta,useSyncExternalStore:_a,useId:Va,unstable_isNewReconciler:!1};function Oe(e,t){if(e&&e.defaultProps){t=G({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Do(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:G({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Sl={isMounted:function(e){return(e=e._reactInternals)?$t(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pe(),l=vt(e),o=Ze(r,l);o.payload=t,n!=null&&(o.callback=n),t=mt(e,o,l),t!==null&&($e(t,e,l,r),Fr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pe(),l=vt(e),o=Ze(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=mt(e,o,l),t!==null&&($e(t,e,l,r),Fr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pe(),r=vt(e),l=Ze(n,r);l.tag=2,t!=null&&(l.callback=t),t=mt(e,l,r),t!==null&&($e(t,e,r,n),Fr(t,e,r))}};function Os(e,t,n,r,l,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!Kn(n,r)||!Kn(l,o):!0}function Ga(e,t,n){var r=!1,l=wt,o=t.contextType;return typeof o=="object"&&o!==null?o=Ie(o):(l=xe(t)?Ft:de.current,r=t.contextTypes,o=(r=r!=null)?an(e,l):wt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Sl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ds(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Sl.enqueueReplaceState(t,t.state,null)}function Ao(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},zi(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=Ie(o):(o=xe(t)?Ft:de.current,l.context=an(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Do(e,t,o,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Sl.enqueueReplaceState(l,l.state,null),nl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function pn(e,t){try{var n="",r=t;do n+=cd(r),r=r.return;while(r);var l=n}catch(o){l=`
|
|
39
|
-
Error generating stack: `+o.message+`
|
|
40
|
-
`+o.stack}return{value:e,source:t,stack:l,digest:null}}function Jl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Af=typeof WeakMap=="function"?WeakMap:Map;function Ya(e,t,n){n=Ze(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){sl||(sl=!0,Ko=r),Wo(e,t)},n}function Ka(e,t,n){n=Ze(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Wo(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Wo(e,t),typeof r!="function"&&(gt===null?gt=new Set([this]):gt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function As(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Af;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Jf.bind(null,e,t,n),t.then(e,e))}function Ws(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 $s(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ze(-1,1),t.tag=2,mt(n,t,1))),n.lanes|=1),e)}var Wf=nt.ReactCurrentOwner,ge=!1;function fe(e,t,n,r){t.child=e===null?Ea(t,null,n,r):dn(t,e.child,n,r)}function Us(e,t,n,r,l){n=n.render;var o=t.ref;return on(t,l),r=Ni(e,t,n,r,o,l),n=Pi(),e!==null&&!ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,tt(e,t,l)):(V&&n&&xi(t),t.flags|=1,fe(e,t,r,l),t.child)}function Bs(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Bi(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Xa(e,t,o,r,l)):(e=$r(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Kn,n(i,r)&&e.ref===t.ref)return tt(e,t,l)}return t.flags|=1,e=xt(o,r),e.ref=t.ref,e.return=t,t.child=e}function Xa(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(Kn(o,r)&&e.ref===t.ref)if(ge=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(ge=!0);else return t.lanes=e.lanes,tt(e,t,l)}return $o(e,t,n,r,l)}function Za(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},W(en,ke),ke|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,W(en,ke),ke|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,W(en,ke),ke|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,W(en,ke),ke|=r;return fe(e,t,l,n),t.child}function Ja(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $o(e,t,n,r,l){var o=xe(n)?Ft:de.current;return o=an(t,o),on(t,l),n=Ni(e,t,n,r,o,l),r=Pi(),e!==null&&!ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,tt(e,t,l)):(V&&r&&xi(t),t.flags|=1,fe(e,t,n,l),t.child)}function Vs(e,t,n,r,l){if(xe(n)){var o=!0;Zr(t)}else o=!1;if(on(t,l),t.stateNode===null)Dr(e,t),Ga(t,n,r),Ao(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,u=t.memoizedProps;i.props=u;var a=i.context,d=n.contextType;typeof d=="object"&&d!==null?d=Ie(d):(d=xe(n)?Ft:de.current,d=an(t,d));var m=n.getDerivedStateFromProps,y=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function";y||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||a!==d)&&Ds(t,i,r,d),st=!1;var h=t.memoizedState;i.state=h,nl(t,r,i,l),a=t.memoizedState,u!==r||h!==a||ve.current||st?(typeof m=="function"&&(Do(t,n,m,r),a=t.memoizedState),(u=st||Os(t,n,u,r,h,a,d))?(y||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=d,r=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,za(e,t),u=t.memoizedProps,d=t.type===t.elementType?u:Oe(t.type,u),i.props=d,y=t.pendingProps,h=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ie(a):(a=xe(n)?Ft:de.current,a=an(t,a));var x=n.getDerivedStateFromProps;(m=typeof x=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==y||h!==a)&&Ds(t,i,r,a),st=!1,h=t.memoizedState,i.state=h,nl(t,r,i,l);var v=t.memoizedState;u!==y||h!==v||ve.current||st?(typeof x=="function"&&(Do(t,n,x,r),v=t.memoizedState),(d=st||Os(t,n,d,r,h,v,a)||!1)?(m||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,v,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,v,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),i.props=r,i.state=v,i.context=a,r=d):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Uo(e,t,n,r,o,l)}function Uo(e,t,n,r,l,o){Ja(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&Ts(t,n,!1),tt(e,t,o);r=t.stateNode,Wf.current=t;var u=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=dn(t,e.child,null,o),t.child=dn(t,null,u,o)):fe(e,t,u,o),t.memoizedState=r.state,l&&Ts(t,n,!0),t.child}function qa(e){var t=e.stateNode;t.pendingContext?Rs(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Rs(e,t.context,!1),Ri(e,t.containerInfo)}function Hs(e,t,n,r,l){return cn(),wi(l),t.flags|=256,fe(e,t,n,r),t.child}var Bo={dehydrated:null,treeContext:null,retryLane:0};function Vo(e){return{baseLanes:e,cachePool:null,transitions:null}}function ec(e,t,n){var r=t.pendingProps,l=b.current,o=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),W(b,l&1),e===null)return Mo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Cl(i,r,0,null),e=It(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Vo(n),t.memoizedState=Bo,e):Mi(t,i));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return $f(e,t,i,r,u,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,u=l.sibling;var a={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=xt(l,a),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?o=xt(u,o):(o=It(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?Vo(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Bo,r}return o=e.child,e=o.sibling,r=xt(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Mi(e,t){return t=Cl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jr(e,t,n,r){return r!==null&&wi(r),dn(t,e.child,null,n),e=Mi(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $f(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=Jl(Error(k(422))),jr(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Cl({mode:"visible",children:r.children},l,0,null),o=It(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&dn(t,e.child,null,i),t.child.memoizedState=Vo(i),t.memoizedState=Bo,o);if(!(t.mode&1))return jr(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(k(419)),r=Jl(o,r,void 0),jr(e,t,i,r)}if(u=(i&e.childLanes)!==0,ge||u){if(r=le,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,et(e,l),$e(r,e,l,-1))}return Ui(),r=Jl(Error(k(421))),jr(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=qf.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Ee=yt(l.nextSibling),je=t,V=!0,Ae=null,e!==null&&(_e[Le++]=Ke,_e[Le++]=Xe,_e[Le++]=Mt,Ke=e.id,Xe=e.overflow,Mt=t),t=Mi(t,r.children),t.flags|=4096,t)}function bs(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Oo(e.return,t,n)}function ql(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function tc(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(fe(e,t,r.children,n),r=b.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bs(e,n,t);else if(e.tag===19)bs(e,n,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}r&=1}if(W(b,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&rl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),ql(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&rl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}ql(t,!0,n,null,o);break;case"together":ql(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Dr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Dt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=xt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Uf(e,t,n){switch(t.tag){case 3:qa(t),cn();break;case 5:Ra(t);break;case 1:xe(t.type)&&Zr(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;W(el,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(W(b,b.current&1),t.flags|=128,null):n&t.child.childLanes?ec(e,t,n):(W(b,b.current&1),e=tt(e,t,n),e!==null?e.sibling:null);W(b,b.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return tc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),W(b,b.current),r)break;return null;case 22:case 23:return t.lanes=0,Za(e,t,n)}return tt(e,t,n)}var nc,Ho,rc,lc;nc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ho=function(){};rc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Nt(Qe.current);var o=null;switch(n){case"input":l=fo(e,l),r=fo(e,r),o=[];break;case"select":l=G({},l,{value:void 0}),r=G({},r,{value:void 0}),o=[];break;case"textarea":l=yo(e,l),r=yo(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Kr)}go(n,r);var i;n=null;for(d in l)if(!r.hasOwnProperty(d)&&l.hasOwnProperty(d)&&l[d]!=null)if(d==="style"){var u=l[d];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Bn.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in r){var a=r[d];if(u=l!=null?l[d]:void 0,r.hasOwnProperty(d)&&a!==u&&(a!=null||u!=null))if(d==="style")if(u){for(i in u)!u.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&u[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(o||(o=[]),o.push(d,n)),n=a;else d==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,u=u?u.__html:void 0,a!=null&&u!==a&&(o=o||[]).push(d,a)):d==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(d,""+a):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Bn.hasOwnProperty(d)?(a!=null&&d==="onScroll"&&$("scroll",e),o||u===a||(o=[])):(o=o||[]).push(d,a))}n&&(o=o||[]).push("style",n);var d=o;(t.updateQueue=d)&&(t.flags|=4)}};lc=function(e,t,n,r){n!==r&&(t.flags|=4)};function jn(e,t){if(!V)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ae(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Bf(e,t,n){var r=t.pendingProps;switch(Si(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ae(t),null;case 1:return xe(t.type)&&Xr(),ae(t),null;case 3:return r=t.stateNode,fn(),U(ve),U(de),_i(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Cr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ae!==null&&(Jo(Ae),Ae=null))),Ho(e,t),ae(t),null;case 5:Ti(t);var l=Nt(er.current);if(n=t.type,e!==null&&t.stateNode!=null)rc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return ae(t),null}if(e=Nt(Qe.current),Cr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[He]=t,r[Jn]=o,e=(t.mode&1)!==0,n){case"dialog":$("cancel",r),$("close",r);break;case"iframe":case"object":case"embed":$("load",r);break;case"video":case"audio":for(l=0;l<Nn.length;l++)$(Nn[l],r);break;case"source":$("error",r);break;case"img":case"image":case"link":$("error",r),$("load",r);break;case"details":$("toggle",r);break;case"input":es(r,o),$("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},$("invalid",r);break;case"textarea":ns(r,o),$("invalid",r)}go(n,o),l=null;for(var i in o)if(o.hasOwnProperty(i)){var u=o[i];i==="children"?typeof u=="string"?r.textContent!==u&&(o.suppressHydrationWarning!==!0&&kr(r.textContent,u,e),l=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(o.suppressHydrationWarning!==!0&&kr(r.textContent,u,e),l=["children",""+u]):Bn.hasOwnProperty(i)&&u!=null&&i==="onScroll"&&$("scroll",r)}switch(n){case"input":hr(r),ts(r,o,!0);break;case"textarea":hr(r),rs(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Kr)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Pu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[He]=t,e[Jn]=r,nc(e,t,!1,!1),t.stateNode=e;e:{switch(i=vo(n,r),n){case"dialog":$("cancel",e),$("close",e),l=r;break;case"iframe":case"object":case"embed":$("load",e),l=r;break;case"video":case"audio":for(l=0;l<Nn.length;l++)$(Nn[l],e);l=r;break;case"source":$("error",e),l=r;break;case"img":case"image":case"link":$("error",e),$("load",e),l=r;break;case"details":$("toggle",e),l=r;break;case"input":es(e,r),l=fo(e,r),$("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=G({},r,{value:void 0}),$("invalid",e);break;case"textarea":ns(e,r),l=yo(e,r),$("invalid",e);break;default:l=r}go(n,l),u=l;for(o in u)if(u.hasOwnProperty(o)){var a=u[o];o==="style"?Mu(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Iu(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Vn(e,a):typeof a=="number"&&Vn(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Bn.hasOwnProperty(o)?a!=null&&o==="onScroll"&&$("scroll",e):a!=null&&oi(e,o,a,i))}switch(n){case"input":hr(e),ts(e,r,!1);break;case"textarea":hr(e),rs(e);break;case"option":r.value!=null&&e.setAttribute("value",""+St(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?tn(e,!!r.multiple,o,!1):r.defaultValue!=null&&tn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Kr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ae(t),null;case 6:if(e&&t.stateNode!=null)lc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(k(166));if(n=Nt(er.current),Nt(Qe.current),Cr(t)){if(r=t.stateNode,n=t.memoizedProps,r[He]=t,(o=r.nodeValue!==n)&&(e=je,e!==null))switch(e.tag){case 3:kr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&kr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[He]=t,t.stateNode=r}return ae(t),null;case 13:if(U(b),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(V&&Ee!==null&&t.mode&1&&!(t.flags&128))ka(),cn(),t.flags|=98560,o=!1;else if(o=Cr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(k(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(k(317));o[He]=t}else cn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ae(t),o=!1}else Ae!==null&&(Jo(Ae),Ae=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||b.current&1?ne===0&&(ne=3):Ui())),t.updateQueue!==null&&(t.flags|=4),ae(t),null);case 4:return fn(),Ho(e,t),e===null&&Xn(t.stateNode.containerInfo),ae(t),null;case 10:return Ei(t.type._context),ae(t),null;case 17:return xe(t.type)&&Xr(),ae(t),null;case 19:if(U(b),o=t.memoizedState,o===null)return ae(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)jn(o,!1);else{if(ne!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=rl(e),i!==null){for(t.flags|=128,jn(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return W(b,b.current&1|2),t.child}e=e.sibling}o.tail!==null&&K()>hn&&(t.flags|=128,r=!0,jn(o,!1),t.lanes=4194304)}else{if(!r)if(e=rl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),jn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!V)return ae(t),null}else 2*K()-o.renderingStartTime>hn&&n!==1073741824&&(t.flags|=128,r=!0,jn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=K(),t.sibling=null,n=b.current,W(b,r?n&1|2:n&1),t):(ae(t),null);case 22:case 23:return $i(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ke&1073741824&&(ae(t),t.subtreeFlags&6&&(t.flags|=8192)):ae(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function Vf(e,t){switch(Si(t),t.tag){case 1:return xe(t.type)&&Xr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fn(),U(ve),U(de),_i(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ti(t),null;case 13:if(U(b),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(b),null;case 4:return fn(),null;case 10:return Ei(t.type._context),null;case 22:case 23:return $i(),null;case 24:return null;default:return null}}var zr=!1,ce=!1,Hf=typeof WeakSet=="function"?WeakSet:Set,z=null;function qt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Y(e,t,r)}else n.current=null}function bo(e,t,n){try{n()}catch(r){Y(e,t,r)}}var Qs=!1;function bf(e,t){if(To=Qr,e=aa(),vi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,a=-1,d=0,m=0,y=e,h=null;t:for(;;){for(var x;y!==n||l!==0&&y.nodeType!==3||(u=i+l),y!==o||r!==0&&y.nodeType!==3||(a=i+r),y.nodeType===3&&(i+=y.nodeValue.length),(x=y.firstChild)!==null;)h=y,y=x;for(;;){if(y===e)break t;if(h===n&&++d===l&&(u=i),h===o&&++m===r&&(a=i),(x=y.nextSibling)!==null)break;y=h,h=y.parentNode}y=x}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(_o={focusedElem:e,selectionRange:n},Qr=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,_=v.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?S:Oe(t.type,S),_);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(g){Y(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return v=Qs,Qs=!1,v}function Wn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&bo(t,n,o)}l=l.next}while(l!==r)}}function wl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Qo(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function oc(e){var t=e.alternate;t!==null&&(e.alternate=null,oc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[He],delete t[Jn],delete t[Po],delete t[Rf],delete t[Tf])),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 ic(e){return e.tag===5||e.tag===3||e.tag===4}function Gs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ic(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 Go(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kr));else if(r!==4&&(e=e.child,e!==null))for(Go(e,t,n),e=e.sibling;e!==null;)Go(e,t,n),e=e.sibling}function Yo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Yo(e,t,n),e=e.sibling;e!==null;)Yo(e,t,n),e=e.sibling}var oe=null,De=!1;function ot(e,t,n){for(n=n.child;n!==null;)sc(e,t,n),n=n.sibling}function sc(e,t,n){if(be&&typeof be.onCommitFiberUnmount=="function")try{be.onCommitFiberUnmount(pl,n)}catch{}switch(n.tag){case 5:ce||qt(n,t);case 6:var r=oe,l=De;oe=null,ot(e,t,n),oe=r,De=l,oe!==null&&(De?(e=oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):oe.removeChild(n.stateNode));break;case 18:oe!==null&&(De?(e=oe,n=n.stateNode,e.nodeType===8?Ql(e.parentNode,n):e.nodeType===1&&Ql(e,n),Gn(e)):Ql(oe,n.stateNode));break;case 4:r=oe,l=De,oe=n.stateNode.containerInfo,De=!0,ot(e,t,n),oe=r,De=l;break;case 0:case 11:case 14:case 15:if(!ce&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&bo(n,t,i),l=l.next}while(l!==r)}ot(e,t,n);break;case 1:if(!ce&&(qt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Y(n,t,u)}ot(e,t,n);break;case 21:ot(e,t,n);break;case 22:n.mode&1?(ce=(r=ce)||n.memoizedState!==null,ot(e,t,n),ce=r):ot(e,t,n);break;default:ot(e,t,n)}}function Ys(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Hf),t.forEach(function(r){var l=ep.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Me(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,i=t,u=i;e:for(;u!==null;){switch(u.tag){case 5:oe=u.stateNode,De=!1;break e;case 3:oe=u.stateNode.containerInfo,De=!0;break e;case 4:oe=u.stateNode.containerInfo,De=!0;break e}u=u.return}if(oe===null)throw Error(k(160));sc(o,i,l),oe=null,De=!1;var a=l.alternate;a!==null&&(a.return=null),l.return=null}catch(d){Y(l,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)uc(t,e),t=t.sibling}function uc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Me(t,e),Be(e),r&4){try{Wn(3,e,e.return),wl(3,e)}catch(S){Y(e,e.return,S)}try{Wn(5,e,e.return)}catch(S){Y(e,e.return,S)}}break;case 1:Me(t,e),Be(e),r&512&&n!==null&&qt(n,n.return);break;case 5:if(Me(t,e),Be(e),r&512&&n!==null&&qt(n,n.return),e.flags&32){var l=e.stateNode;try{Vn(l,"")}catch(S){Y(e,e.return,S)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,u=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{u==="input"&&o.type==="radio"&&o.name!=null&&Lu(l,o),vo(u,i);var d=vo(u,o);for(i=0;i<a.length;i+=2){var m=a[i],y=a[i+1];m==="style"?Mu(l,y):m==="dangerouslySetInnerHTML"?Iu(l,y):m==="children"?Vn(l,y):oi(l,m,y,d)}switch(u){case"input":po(l,o);break;case"textarea":Nu(l,o);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var x=o.value;x!=null?tn(l,!!o.multiple,x,!1):h!==!!o.multiple&&(o.defaultValue!=null?tn(l,!!o.multiple,o.defaultValue,!0):tn(l,!!o.multiple,o.multiple?[]:"",!1))}l[Jn]=o}catch(S){Y(e,e.return,S)}}break;case 6:if(Me(t,e),Be(e),r&4){if(e.stateNode===null)throw Error(k(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(S){Y(e,e.return,S)}}break;case 3:if(Me(t,e),Be(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Gn(t.containerInfo)}catch(S){Y(e,e.return,S)}break;case 4:Me(t,e),Be(e);break;case 13:Me(t,e),Be(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(Ai=K())),r&4&&Ys(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(ce=(d=ce)||m,Me(t,e),ce=d):Me(t,e),Be(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!m&&e.mode&1)for(z=e,m=e.child;m!==null;){for(y=z=m;z!==null;){switch(h=z,x=h.child,h.tag){case 0:case 11:case 14:case 15:Wn(4,h,h.return);break;case 1:qt(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(S){Y(r,n,S)}}break;case 5:qt(h,h.return);break;case 22:if(h.memoizedState!==null){Xs(y);continue}}x!==null?(x.return=h,z=x):Xs(y)}m=m.sibling}e:for(m=null,y=e;;){if(y.tag===5){if(m===null){m=y;try{l=y.stateNode,d?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(u=y.stateNode,a=y.memoizedProps.style,i=a!=null&&a.hasOwnProperty("display")?a.display:null,u.style.display=Fu("display",i))}catch(S){Y(e,e.return,S)}}}else if(y.tag===6){if(m===null)try{y.stateNode.nodeValue=d?"":y.memoizedProps}catch(S){Y(e,e.return,S)}}else if((y.tag!==22&&y.tag!==23||y.memoizedState===null||y===e)&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===e)break e;for(;y.sibling===null;){if(y.return===null||y.return===e)break e;m===y&&(m=null),y=y.return}m===y&&(m=null),y.sibling.return=y.return,y=y.sibling}}break;case 19:Me(t,e),Be(e),r&4&&Ys(e);break;case 21:break;default:Me(t,e),Be(e)}}function Be(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ic(n)){var r=n;break e}n=n.return}throw Error(k(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Vn(l,""),r.flags&=-33);var o=Gs(e);Yo(e,o,l);break;case 3:case 4:var i=r.stateNode.containerInfo,u=Gs(e);Go(e,u,i);break;default:throw Error(k(161))}}catch(a){Y(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Qf(e,t,n){z=e,ac(e)}function ac(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var l=z,o=l.child;if(l.tag===22&&r){var i=l.memoizedState!==null||zr;if(!i){var u=l.alternate,a=u!==null&&u.memoizedState!==null||ce;u=zr;var d=ce;if(zr=i,(ce=a)&&!d)for(z=l;z!==null;)i=z,a=i.child,i.tag===22&&i.memoizedState!==null?Zs(l):a!==null?(a.return=i,z=a):Zs(l);for(;o!==null;)z=o,ac(o),o=o.sibling;z=l,zr=u,ce=d}Ks(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,z=o):Ks(e)}}function Ks(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ce||wl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ce)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Oe(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Is(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Is(t,i,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var m=d.memoizedState;if(m!==null){var y=m.dehydrated;y!==null&&Gn(y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(k(163))}ce||t.flags&512&&Qo(t)}catch(h){Y(t,t.return,h)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function Xs(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function Zs(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{wl(4,t)}catch(a){Y(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(a){Y(t,l,a)}}var o=t.return;try{Qo(t)}catch(a){Y(t,o,a)}break;case 5:var i=t.return;try{Qo(t)}catch(a){Y(t,i,a)}}}catch(a){Y(t,t.return,a)}if(t===e){z=null;break}var u=t.sibling;if(u!==null){u.return=t.return,z=u;break}z=t.return}}var Gf=Math.ceil,il=nt.ReactCurrentDispatcher,Oi=nt.ReactCurrentOwner,Pe=nt.ReactCurrentBatchConfig,D=0,le=null,q=null,ie=0,ke=0,en=Ct(0),ne=0,lr=null,Dt=0,kl=0,Di=0,$n=null,me=null,Ai=0,hn=1/0,Ge=null,sl=!1,Ko=null,gt=null,Rr=!1,dt=null,ul=0,Un=0,Xo=null,Ar=-1,Wr=0;function pe(){return D&6?K():Ar!==-1?Ar:Ar=K()}function vt(e){return e.mode&1?D&2&&ie!==0?ie&-ie:Lf.transition!==null?(Wr===0&&(Wr=Gu()),Wr):(e=A,e!==0||(e=window.event,e=e===void 0?16:ea(e.type)),e):1}function $e(e,t,n,r){if(50<Un)throw Un=0,Xo=null,Error(k(185));sr(e,n,r),(!(D&2)||e!==le)&&(e===le&&(!(D&2)&&(kl|=n),ne===4&&at(e,ie)),Se(e,r),n===1&&D===0&&!(t.mode&1)&&(hn=K()+500,vl&&Et()))}function Se(e,t){var n=e.callbackNode;_d(e,t);var r=br(e,e===le?ie:0);if(r===0)n!==null&&is(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&is(n),t===1)e.tag===0?_f(Js.bind(null,e)):xa(Js.bind(null,e)),jf(function(){!(D&6)&&Et()}),n=null;else{switch(Yu(r)){case 1:n=ci;break;case 4:n=bu;break;case 16:n=Hr;break;case 536870912:n=Qu;break;default:n=Hr}n=gc(n,cc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function cc(e,t){if(Ar=-1,Wr=0,D&6)throw Error(k(327));var n=e.callbackNode;if(sn()&&e.callbackNode!==n)return null;var r=br(e,e===le?ie:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=al(e,r);else{t=r;var l=D;D|=2;var o=fc();(le!==e||ie!==t)&&(Ge=null,hn=K()+500,Pt(e,t));do try{Xf();break}catch(u){dc(e,u)}while(!0);Ci(),il.current=o,D=l,q!==null?t=0:(le=null,ie=0,t=ne)}if(t!==0){if(t===2&&(l=Co(e),l!==0&&(r=l,t=Zo(e,l))),t===1)throw n=lr,Pt(e,0),at(e,r),Se(e,K()),n;if(t===6)at(e,r);else{if(l=e.current.alternate,!(r&30)&&!Yf(l)&&(t=al(e,r),t===2&&(o=Co(e),o!==0&&(r=o,t=Zo(e,o))),t===1))throw n=lr,Pt(e,0),at(e,r),Se(e,K()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(k(345));case 2:Tt(e,me,Ge);break;case 3:if(at(e,r),(r&130023424)===r&&(t=Ai+500-K(),10<t)){if(br(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){pe(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=No(Tt.bind(null,e,me,Ge),t);break}Tt(e,me,Ge);break;case 4:if(at(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var i=31-We(r);o=1<<i,i=t[i],i>l&&(l=i),r&=~o}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Gf(r/1960))-r,10<r){e.timeoutHandle=No(Tt.bind(null,e,me,Ge),r);break}Tt(e,me,Ge);break;case 5:Tt(e,me,Ge);break;default:throw Error(k(329))}}}return Se(e,K()),e.callbackNode===n?cc.bind(null,e):null}function Zo(e,t){var n=$n;return e.current.memoizedState.isDehydrated&&(Pt(e,t).flags|=256),e=al(e,t),e!==2&&(t=me,me=n,t!==null&&Jo(t)),e}function Jo(e){me===null?me=e:me.push.apply(me,e)}function Yf(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],o=l.getSnapshot;l=l.value;try{if(!Ue(o(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function at(e,t){for(t&=~Di,t&=~kl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-We(t),r=1<<n;e[n]=-1,t&=~r}}function Js(e){if(D&6)throw Error(k(327));sn();var t=br(e,0);if(!(t&1))return Se(e,K()),null;var n=al(e,t);if(e.tag!==0&&n===2){var r=Co(e);r!==0&&(t=r,n=Zo(e,r))}if(n===1)throw n=lr,Pt(e,0),at(e,t),Se(e,K()),n;if(n===6)throw Error(k(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tt(e,me,Ge),Se(e,K()),null}function Wi(e,t){var n=D;D|=1;try{return e(t)}finally{D=n,D===0&&(hn=K()+500,vl&&Et())}}function At(e){dt!==null&&dt.tag===0&&!(D&6)&&sn();var t=D;D|=1;var n=Pe.transition,r=A;try{if(Pe.transition=null,A=1,e)return e()}finally{A=r,Pe.transition=n,D=t,!(D&6)&&Et()}}function $i(){ke=en.current,U(en)}function Pt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ef(n)),q!==null)for(n=q.return;n!==null;){var r=n;switch(Si(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Xr();break;case 3:fn(),U(ve),U(de),_i();break;case 5:Ti(r);break;case 4:fn();break;case 13:U(b);break;case 19:U(b);break;case 10:Ei(r.type._context);break;case 22:case 23:$i()}n=n.return}if(le=e,q=e=xt(e.current,null),ie=ke=t,ne=0,lr=null,Di=kl=Dt=0,me=$n=null,Lt!==null){for(t=0;t<Lt.length;t++)if(n=Lt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=l,r.next=i}n.pending=r}Lt=null}return e}function dc(e,t){do{var n=q;try{if(Ci(),Mr.current=ol,ll){for(var r=Q.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}ll=!1}if(Ot=0,re=te=Q=null,An=!1,tr=0,Oi.current=null,n===null||n.return===null){ne=1,lr=t,q=null;break}e:{var o=e,i=n.return,u=n,a=t;if(t=ie,u.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var d=a,m=u,y=m.tag;if(!(m.mode&1)&&(y===0||y===11||y===15)){var h=m.alternate;h?(m.updateQueue=h.updateQueue,m.memoizedState=h.memoizedState,m.lanes=h.lanes):(m.updateQueue=null,m.memoizedState=null)}var x=Ws(i);if(x!==null){x.flags&=-257,$s(x,i,u,o,t),x.mode&1&&As(o,d,t),t=x,a=d;var v=t.updateQueue;if(v===null){var S=new Set;S.add(a),t.updateQueue=S}else v.add(a);break e}else{if(!(t&1)){As(o,d,t),Ui();break e}a=Error(k(426))}}else if(V&&u.mode&1){var _=Ws(i);if(_!==null){!(_.flags&65536)&&(_.flags|=256),$s(_,i,u,o,t),wi(pn(a,u));break e}}o=a=pn(a,u),ne!==4&&(ne=2),$n===null?$n=[o]:$n.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var f=Ya(o,a,t);Ps(o,f);break e;case 1:u=a;var c=o.type,p=o.stateNode;if(!(o.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(gt===null||!gt.has(p)))){o.flags|=65536,t&=-t,o.lanes|=t;var g=Ka(o,u,t);Ps(o,g);break e}}o=o.return}while(o!==null)}hc(n)}catch(C){t=C,q===n&&n!==null&&(q=n=n.return);continue}break}while(!0)}function fc(){var e=il.current;return il.current=ol,e===null?ol:e}function Ui(){(ne===0||ne===3||ne===2)&&(ne=4),le===null||!(Dt&268435455)&&!(kl&268435455)||at(le,ie)}function al(e,t){var n=D;D|=2;var r=fc();(le!==e||ie!==t)&&(Ge=null,Pt(e,t));do try{Kf();break}catch(l){dc(e,l)}while(!0);if(Ci(),D=n,il.current=r,q!==null)throw Error(k(261));return le=null,ie=0,ne}function Kf(){for(;q!==null;)pc(q)}function Xf(){for(;q!==null&&!Sd();)pc(q)}function pc(e){var t=mc(e.alternate,e,ke);e.memoizedProps=e.pendingProps,t===null?hc(e):q=t,Oi.current=null}function hc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Vf(n,t),n!==null){n.flags&=32767,q=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ne=6,q=null;return}}else if(n=Bf(n,t,ke),n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);ne===0&&(ne=5)}function Tt(e,t,n){var r=A,l=Pe.transition;try{Pe.transition=null,A=1,Zf(e,t,n,r)}finally{Pe.transition=l,A=r}return null}function Zf(e,t,n,r){do sn();while(dt!==null);if(D&6)throw Error(k(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(k(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Ld(e,o),e===le&&(q=le=null,ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Rr||(Rr=!0,gc(Hr,function(){return sn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Pe.transition,Pe.transition=null;var i=A;A=1;var u=D;D|=4,Oi.current=null,bf(e,n),uc(n,e),gf(_o),Qr=!!To,_o=To=null,e.current=n,Qf(n),wd(),D=u,A=i,Pe.transition=o}else e.current=n;if(Rr&&(Rr=!1,dt=e,ul=l),o=e.pendingLanes,o===0&&(gt=null),Ed(n.stateNode),Se(e,K()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(sl)throw sl=!1,e=Ko,Ko=null,e;return ul&1&&e.tag!==0&&sn(),o=e.pendingLanes,o&1?e===Xo?Un++:(Un=0,Xo=e):Un=0,Et(),null}function sn(){if(dt!==null){var e=Yu(ul),t=Pe.transition,n=A;try{if(Pe.transition=null,A=16>e?16:e,dt===null)var r=!1;else{if(e=dt,dt=null,ul=0,D&6)throw Error(k(331));var l=D;for(D|=4,z=e.current;z!==null;){var o=z,i=o.child;if(z.flags&16){var u=o.deletions;if(u!==null){for(var a=0;a<u.length;a++){var d=u[a];for(z=d;z!==null;){var m=z;switch(m.tag){case 0:case 11:case 15:Wn(8,m,o)}var y=m.child;if(y!==null)y.return=m,z=y;else for(;z!==null;){m=z;var h=m.sibling,x=m.return;if(oc(m),m===d){z=null;break}if(h!==null){h.return=x,z=h;break}z=x}}}var v=o.alternate;if(v!==null){var S=v.child;if(S!==null){v.child=null;do{var _=S.sibling;S.sibling=null,S=_}while(S!==null)}}z=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,z=i;else e:for(;z!==null;){if(o=z,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Wn(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,z=f;break e}z=o.return}}var c=e.current;for(z=c;z!==null;){i=z;var p=i.child;if(i.subtreeFlags&2064&&p!==null)p.return=i,z=p;else e:for(i=c;z!==null;){if(u=z,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:wl(9,u)}}catch(C){Y(u,u.return,C)}if(u===i){z=null;break e}var g=u.sibling;if(g!==null){g.return=u.return,z=g;break e}z=u.return}}if(D=l,Et(),be&&typeof be.onPostCommitFiberRoot=="function")try{be.onPostCommitFiberRoot(pl,e)}catch{}r=!0}return r}finally{A=n,Pe.transition=t}}return!1}function qs(e,t,n){t=pn(n,t),t=Ya(e,t,1),e=mt(e,t,1),t=pe(),e!==null&&(sr(e,1,t),Se(e,t))}function Y(e,t,n){if(e.tag===3)qs(e,e,n);else for(;t!==null;){if(t.tag===3){qs(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gt===null||!gt.has(r))){e=pn(n,e),e=Ka(t,e,1),t=mt(t,e,1),e=pe(),t!==null&&(sr(t,1,e),Se(t,e));break}}t=t.return}}function Jf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=pe(),e.pingedLanes|=e.suspendedLanes&n,le===e&&(ie&n)===n&&(ne===4||ne===3&&(ie&130023424)===ie&&500>K()-Ai?Pt(e,0):Di|=n),Se(e,t)}function yc(e,t){t===0&&(e.mode&1?(t=gr,gr<<=1,!(gr&130023424)&&(gr=4194304)):t=1);var n=pe();e=et(e,t),e!==null&&(sr(e,t,n),Se(e,n))}function qf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yc(e,n)}function ep(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),yc(e,n)}var mc;mc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ve.current)ge=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ge=!1,Uf(e,t,n);ge=!!(e.flags&131072)}else ge=!1,V&&t.flags&1048576&&Sa(t,qr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Dr(e,t),e=t.pendingProps;var l=an(t,de.current);on(t,n),l=Ni(null,t,r,e,l,n);var o=Pi();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xe(r)?(o=!0,Zr(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,zi(t),l.updater=Sl,t.stateNode=l,l._reactInternals=t,Ao(t,r,e,n),t=Uo(null,t,r,!0,o,n)):(t.tag=0,V&&o&&xi(t),fe(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Dr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=np(r),e=Oe(r,e),l){case 0:t=$o(null,t,r,e,n);break e;case 1:t=Vs(null,t,r,e,n);break e;case 11:t=Us(null,t,r,e,n);break e;case 14:t=Bs(null,t,r,Oe(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Oe(r,l),$o(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Oe(r,l),Vs(e,t,r,l,n);case 3:e:{if(qa(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,l=o.element,za(e,t),nl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=pn(Error(k(423)),t),t=Hs(e,t,r,n,l);break e}else if(r!==l){l=pn(Error(k(424)),t),t=Hs(e,t,r,n,l);break e}else for(Ee=yt(t.stateNode.containerInfo.firstChild),je=t,V=!0,Ae=null,n=Ea(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(cn(),r===l){t=tt(e,t,n);break e}fe(e,t,r,n)}t=t.child}return t;case 5:return Ra(t),e===null&&Mo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Lo(r,l)?i=null:o!==null&&Lo(r,o)&&(t.flags|=32),Ja(e,t),fe(e,t,i,n),t.child;case 6:return e===null&&Mo(t),null;case 13:return ec(e,t,n);case 4:return Ri(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=dn(t,null,r,n):fe(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Oe(r,l),Us(e,t,r,l,n);case 7:return fe(e,t,t.pendingProps,n),t.child;case 8:return fe(e,t,t.pendingProps.children,n),t.child;case 12:return fe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,W(el,r._currentValue),r._currentValue=i,o!==null)if(Ue(o.value,i)){if(o.children===l.children&&!ve.current){t=tt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Ze(-1,n&-n),a.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var m=d.pending;m===null?a.next=a:(a.next=m.next,m.next=a),d.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Oo(o.return,n,t),u.lanes|=n;break}a=a.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(k(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Oo(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}fe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,on(t,n),l=Ie(l),r=r(l),t.flags|=1,fe(e,t,r,n),t.child;case 14:return r=t.type,l=Oe(r,t.pendingProps),l=Oe(r.type,l),Bs(e,t,r,l,n);case 15:return Xa(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Oe(r,l),Dr(e,t),t.tag=1,xe(r)?(e=!0,Zr(t)):e=!1,on(t,n),Ga(t,r,l),Ao(t,r,l,n),Uo(null,t,r,!0,e,n);case 19:return tc(e,t,n);case 22:return Za(e,t,n)}throw Error(k(156,t.tag))};function gc(e,t){return Hu(e,t)}function tp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ne(e,t,n,r){return new tp(e,t,n,r)}function Bi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function np(e){if(typeof e=="function")return Bi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===si)return 11;if(e===ui)return 14}return 2}function xt(e,t){var n=e.alternate;return n===null?(n=Ne(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $r(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Bi(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Ht:return It(n.children,l,o,t);case ii:i=8,l|=8;break;case so:return e=Ne(12,n,t,l|2),e.elementType=so,e.lanes=o,e;case uo:return e=Ne(13,n,t,l),e.elementType=uo,e.lanes=o,e;case ao:return e=Ne(19,n,t,l),e.elementType=ao,e.lanes=o,e;case Ru:return Cl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ju:i=10;break e;case zu:i=9;break e;case si:i=11;break e;case ui:i=14;break e;case it:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Ne(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function It(e,t,n,r){return e=Ne(7,e,r,t),e.lanes=n,e}function Cl(e,t,n,r){return e=Ne(22,e,r,t),e.elementType=Ru,e.lanes=n,e.stateNode={isHidden:!1},e}function eo(e,t,n){return e=Ne(6,e,null,t),e.lanes=n,e}function to(e,t,n){return t=Ne(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rp(e,t,n,r,l){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=Ml(0),this.expirationTimes=Ml(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ml(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Vi(e,t,n,r,l,o,i,u,a){return e=new rp(e,t,n,u,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ne(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zi(o),e}function lp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Vt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function vc(e){if(!e)return wt;e=e._reactInternals;e:{if($t(e)!==e||e.tag!==1)throw Error(k(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(k(171))}if(e.tag===1){var n=e.type;if(xe(n))return va(e,n,t)}return t}function xc(e,t,n,r,l,o,i,u,a){return e=Vi(n,r,!0,e,l,o,i,u,a),e.context=vc(null),n=e.current,r=pe(),l=vt(n),o=Ze(r,l),o.callback=t??null,mt(n,o,l),e.current.lanes=l,sr(e,l,r),Se(e,r),e}function El(e,t,n,r){var l=t.current,o=pe(),i=vt(l);return n=vc(n),t.context===null?t.context=n:t.pendingContext=n,t=Ze(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=mt(l,t,i),e!==null&&($e(e,l,i,o),Fr(e,l,i)),i}function cl(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 eu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Hi(e,t){eu(e,t),(e=e.alternate)&&eu(e,t)}function op(){return null}var Sc=typeof reportError=="function"?reportError:function(e){console.error(e)};function bi(e){this._internalRoot=e}jl.prototype.render=bi.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(k(409));El(e,t,null,null)};jl.prototype.unmount=bi.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;At(function(){El(null,e,null,null)}),t[qe]=null}};function jl(e){this._internalRoot=e}jl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ut.length&&t!==0&&t<ut[n].priority;n++);ut.splice(n,0,e),n===0&&qu(e)}};function Qi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function zl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function tu(){}function ip(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var d=cl(i);o.call(d)}}var i=xc(t,r,e,0,null,!1,!1,"",tu);return e._reactRootContainer=i,e[qe]=i.current,Xn(e.nodeType===8?e.parentNode:e),At(),i}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var u=r;r=function(){var d=cl(a);u.call(d)}}var a=Vi(e,0,!1,null,null,!1,!1,"",tu);return e._reactRootContainer=a,e[qe]=a.current,Xn(e.nodeType===8?e.parentNode:e),At(function(){El(t,a,n,r)}),a}function Rl(e,t,n,r,l){var o=n._reactRootContainer;if(o){var i=o;if(typeof l=="function"){var u=l;l=function(){var a=cl(i);u.call(a)}}El(t,i,e,l)}else i=ip(n,t,e,l,r);return cl(i)}Ku=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ln(t.pendingLanes);n!==0&&(di(t,n|1),Se(t,K()),!(D&6)&&(hn=K()+500,Et()))}break;case 13:At(function(){var r=et(e,1);if(r!==null){var l=pe();$e(r,e,1,l)}}),Hi(e,1)}};fi=function(e){if(e.tag===13){var t=et(e,134217728);if(t!==null){var n=pe();$e(t,e,134217728,n)}Hi(e,134217728)}};Xu=function(e){if(e.tag===13){var t=vt(e),n=et(e,t);if(n!==null){var r=pe();$e(n,e,t,r)}Hi(e,t)}};Zu=function(){return A};Ju=function(e,t){var n=A;try{return A=e,t()}finally{A=n}};So=function(e,t,n){switch(t){case"input":if(po(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=gl(r);if(!l)throw Error(k(90));_u(r),po(r,l)}}}break;case"textarea":Nu(e,n);break;case"select":t=n.value,t!=null&&tn(e,!!n.multiple,t,!1)}};Au=Wi;Wu=At;var sp={usingClientEntryPoint:!1,Events:[ar,Yt,gl,Ou,Du,Wi]},zn={findFiberByHostInstance:_t,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},up={bundleType:zn.bundleType,version:zn.version,rendererPackageName:zn.rendererPackageName,rendererConfig:zn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Bu(e),e===null?null:e.stateNode},findFiberByHostInstance:zn.findFiberByHostInstance||op,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 Tr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tr.isDisabled&&Tr.supportsFiber)try{pl=Tr.inject(up),be=Tr}catch{}}Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sp;Re.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Qi(t))throw Error(k(200));return lp(e,t,null,n)};Re.createRoot=function(e,t){if(!Qi(e))throw Error(k(299));var n=!1,r="",l=Sc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Vi(e,1,!1,null,null,n,!1,r,l),e[qe]=t.current,Xn(e.nodeType===8?e.parentNode:e),new bi(t)};Re.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(k(188)):(e=Object.keys(e).join(","),Error(k(268,e)));return e=Bu(t),e=e===null?null:e.stateNode,e};Re.flushSync=function(e){return At(e)};Re.hydrate=function(e,t,n){if(!zl(t))throw Error(k(200));return Rl(null,e,t,!0,n)};Re.hydrateRoot=function(e,t,n){if(!Qi(e))throw Error(k(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",i=Sc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=xc(t,null,e,1,n??null,l,!1,o,i),e[qe]=t.current,Xn(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new jl(t)};Re.render=function(e,t,n){if(!zl(t))throw Error(k(200));return Rl(null,e,t,!1,n)};Re.unmountComponentAtNode=function(e){if(!zl(e))throw Error(k(40));return e._reactRootContainer?(At(function(){Rl(null,null,e,!1,function(){e._reactRootContainer=null,e[qe]=null})}),!0):!1};Re.unstable_batchedUpdates=Wi;Re.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!zl(n))throw Error(k(200));if(e==null||e._reactInternals===void 0)throw Error(k(38));return Rl(e,t,n,!1,r)};Re.version="18.3.1-next-f1338f8080-20240426";function wc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wc)}catch(e){console.error(e)}}wc(),wu.exports=Re;var ap=wu.exports,nu=ap;oo.createRoot=nu.createRoot,oo.hydrateRoot=nu.hydrateRoot;const cp={},ru=e=>{let t;const n=new Set,r=(m,y)=>{const h=typeof m=="function"?m(t):m;if(!Object.is(h,t)){const x=t;t=y??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(v=>v(t,x))}},l=()=>t,a={setState:r,getState:l,getInitialState:()=>d,subscribe:m=>(n.add(m),()=>n.delete(m)),destroy:()=>{(cp?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},d=t=e(r,l,a);return a},dp=e=>e?ru(e):ru;var kc={exports:{}},Cc={},Ec={exports:{}},jc={};/**
|
|
41
|
-
* @license React
|
|
42
|
-
* use-sync-external-store-shim.production.js
|
|
43
|
-
*
|
|
44
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the MIT license found in the
|
|
47
|
-
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var yn=M;function fp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pp=typeof Object.is=="function"?Object.is:fp,hp=yn.useState,yp=yn.useEffect,mp=yn.useLayoutEffect,gp=yn.useDebugValue;function vp(e,t){var n=t(),r=hp({inst:{value:n,getSnapshot:t}}),l=r[0].inst,o=r[1];return mp(function(){l.value=n,l.getSnapshot=t,no(l)&&o({inst:l})},[e,n,t]),yp(function(){return no(l)&&o({inst:l}),e(function(){no(l)&&o({inst:l})})},[e]),gp(n),n}function no(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pp(e,n)}catch{return!0}}function xp(e,t){return t()}var Sp=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?xp:vp;jc.useSyncExternalStore=yn.useSyncExternalStore!==void 0?yn.useSyncExternalStore:Sp;Ec.exports=jc;var wp=Ec.exports;/**
|
|
49
|
-
* @license React
|
|
50
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/var Tl=M,kp=wp;function Cp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ep=typeof Object.is=="function"?Object.is:Cp,jp=kp.useSyncExternalStore,zp=Tl.useRef,Rp=Tl.useEffect,Tp=Tl.useMemo,_p=Tl.useDebugValue;Cc.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var o=zp(null);if(o.current===null){var i={hasValue:!1,value:null};o.current=i}else i=o.current;o=Tp(function(){function a(x){if(!d){if(d=!0,m=x,x=r(x),l!==void 0&&i.hasValue){var v=i.value;if(l(v,x))return y=v}return y=x}if(v=y,Ep(m,x))return v;var S=r(x);return l!==void 0&&l(v,S)?(m=x,v):(m=x,y=S)}var d=!1,m,y,h=n===void 0?null:n;return[function(){return a(t())},h===null?void 0:function(){return a(h())}]},[t,n,r,l]);var u=jp(e,o[0],o[1]);return Rp(function(){i.hasValue=!0,i.value=u},[u]),_p(u),u};kc.exports=Cc;var Lp=kc.exports;const Np=au(Lp),zc={},{useDebugValue:Pp}=Zc,{useSyncExternalStoreWithSelector:Ip}=Np;let lu=!1;const Fp=e=>e;function Mp(e,t=Fp,n){(zc?"production":void 0)!=="production"&&n&&!lu&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),lu=!0);const r=Ip(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Pp(r),r}const ou=e=>{(zc?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?dp(e):e,n=(r,l)=>Mp(t,r,l);return Object.assign(n,t),n},Op=e=>e?ou(e):ou,we=Op(e=>({isRunning:!1,timer:0,completedSteps:[],activeStepId:null,activeView:"Flows",activeTestFile:"",browserFrames:{},currentUrls:{},pageTitles:{},activeNetworkTab:"REST",selectedLogId:null,logs:[],networkLogs:[],assertions:[],activeReplay:null,testScenarios:[],setActiveView:t=>e({activeView:t}),setNetworkTab:t=>e({activeNetworkTab:t}),setStepComplete:t=>e(n=>({completedSteps:[...n.completedSteps,t]})),setActiveStepId:t=>e({activeStepId:t}),setActiveTestFile:t=>e({activeTestFile:t}),setSelectedLogId:t=>e(n=>{const r=n.logs.find(l=>l.id===t);if(r&&(r.type==="REST"||r.type==="GRAPHQL")){const l=r.details||{};return{selectedLogId:t,activeReplay:{method:l.method||"GET",url:l.url||"",headers:l.requestHeaders?JSON.stringify(l.requestHeaders,null,2):`{
|
|
57
|
-
|
|
58
|
-
}`,body:typeof l.requestBody=="object"?JSON.stringify(l.requestBody,null,2):l.requestBody||"",response:null,status:null,isLoading:!1}}}return{selectedLogId:t,activeReplay:null}}),setPageMetadata:(t,n,r)=>e(l=>({currentUrls:{...l.currentUrls,[t]:n},pageTitles:{...l.pageTitles,[t]:r}})),setBrowserFrame:(t,n)=>e(r=>({browserFrames:{...r.browserFrames,[t]:n}})),incrementTimer:()=>e(t=>({timer:t.timer+1})),startExecution:()=>e({isRunning:!0,timer:0,completedSteps:[],activeStepId:null,logs:[],networkLogs:[],assertions:[],testScenarios:[],browserFrames:{},currentUrls:{},pageTitles:{},selectedLogId:null,activeReplay:null,activeTestFile:""}),stopExecution:()=>e(t=>({isRunning:!1,activeStepId:null,testScenarios:t.testScenarios.map(r=>{const l=r.steps.map(i=>i.status==="running"?{...i,status:"failed"}:i);let o=r.status;if(r.status==="running"){const i=l.some(a=>a.status==="failed"),u=l.every(a=>["pass","passed","success"].includes(a.status));o=i?"failed":u?"pass":"failed"}return{...r,status:o,steps:l}})})),startRun:(t,n)=>e(r=>{const l=t;if(!l)return r;const o=n||"Default Scenario",i=r.activeTestFile===""?l:r.activeTestFile,u=r.testScenarios.findIndex(d=>d.fileName===l&&d.name===o),a=[...r.testScenarios];return u!==-1?a[u]={...a[u],status:"running",steps:[]}:a.push({fileName:l,name:o,status:"running",steps:[]}),{activeTestFile:i,testScenarios:a}}),addStep:t=>e(n=>{const r=t.fileName;if(!r)return n;let l=[...n.testScenarios],o=-1;for(let a=l.length-1;a>=0;a--)if(l[a].fileName===r){o=a;break}o===-1&&(l.push({fileName:r,name:"Scenario",status:"running",steps:[]}),o=l.length-1);const i=l[o];if(i.steps.some(a=>a.id===t.id))return n;const u={id:t.id,type:t.type||"ACTION",description:t.description||"",command:t.command||"",status:t.status||"running"};return l[o]={...i,steps:[...i.steps,u]},{testScenarios:l}}),updateStepStatus:(t,n,r,l)=>e(o=>{if(!l)return o;let i=!1;const u=o.testScenarios.map(d=>{if(d.fileName!==l)return d;const m=d.steps.findIndex(S=>S.id===t);if(m===-1)return d;i=!0;const y=[...d.steps];y[m]={...y[m],status:n||"pending",screenshot:r||y[m].screenshot};const h=y.some(S=>S.status==="failed"),x=y.every(S=>["pass","passed","success"].includes(S.status));let v=d.status;return h?v="failed":x&&(v="pass"),{...d,status:v,steps:y}});if(!i)return o;const a=["pass","passed","success"].includes(n);return{testScenarios:u,completedSteps:a&&!o.completedSteps.includes(t)?[...o.completedSteps,t]:o.completedSteps}}),addLog:t=>e(n=>({logs:[...n.logs,{...t,summary:t.summary||"Log entry",status:t.status||"info"}]})),addNetworkLog:t=>e(n=>({networkLogs:[t,...n.networkLogs]})),addAssertion:t=>e(n=>({assertions:[...n.assertions,t]})),setSession:t=>console.log("Session context updated:",t),updateReplay:(t,n)=>e(r=>({activeReplay:r.activeReplay?{...r.activeReplay,[t]:n}:null})),setReplayResponse:(t,n)=>e(r=>({activeReplay:r.activeReplay?{...r.activeReplay,response:t,status:n,isLoading:!1}:null}))}));/**
|
|
59
|
-
* @license lucide-react v0.400.0 - ISC
|
|
60
|
-
*
|
|
61
|
-
* This source code is licensed under the ISC license.
|
|
62
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
-
*/const Dp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Rc=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
|
64
|
-
* @license lucide-react v0.400.0 - ISC
|
|
65
|
-
*
|
|
66
|
-
* This source code is licensed under the ISC license.
|
|
67
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
-
*/var Ap={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
69
|
-
* @license lucide-react v0.400.0 - ISC
|
|
70
|
-
*
|
|
71
|
-
* This source code is licensed under the ISC license.
|
|
72
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/const Wp=M.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:o,iconNode:i,...u},a)=>M.createElement("svg",{ref:a,...Ap,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Rc("lucide",l),...u},[...i.map(([d,m])=>M.createElement(d,m)),...Array.isArray(o)?o:[o]]));/**
|
|
74
|
-
* @license lucide-react v0.400.0 - ISC
|
|
75
|
-
*
|
|
76
|
-
* This source code is licensed under the ISC license.
|
|
77
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/const O=(e,t)=>{const n=M.forwardRef(({className:r,...l},o)=>M.createElement(Wp,{ref:o,iconNode:t,className:Rc(`lucide-${Dp(e)}`,r),...l}));return n.displayName=`${e}`,n};/**
|
|
79
|
-
* @license lucide-react v0.400.0 - ISC
|
|
80
|
-
*
|
|
81
|
-
* This source code is licensed under the ISC license.
|
|
82
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/const $p=O("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
|
|
84
|
-
* @license lucide-react v0.400.0 - ISC
|
|
85
|
-
*
|
|
86
|
-
* This source code is licensed under the ISC license.
|
|
87
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/const Up=O("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
89
|
-
* @license lucide-react v0.400.0 - ISC
|
|
90
|
-
*
|
|
91
|
-
* This source code is licensed under the ISC license.
|
|
92
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/const iu=O("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
94
|
-
* @license lucide-react v0.400.0 - ISC
|
|
95
|
-
*
|
|
96
|
-
* This source code is licensed under the ISC license.
|
|
97
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
-
*/const Bp=O("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
99
|
-
* @license lucide-react v0.400.0 - ISC
|
|
100
|
-
*
|
|
101
|
-
* This source code is licensed under the ISC license.
|
|
102
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
-
*/const or=O("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
104
|
-
* @license lucide-react v0.400.0 - ISC
|
|
105
|
-
*
|
|
106
|
-
* This source code is licensed under the ISC license.
|
|
107
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/const Tc=O("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
109
|
-
* @license lucide-react v0.400.0 - ISC
|
|
110
|
-
*
|
|
111
|
-
* This source code is licensed under the ISC license.
|
|
112
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
-
*/const su=O("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/**
|
|
114
|
-
* @license lucide-react v0.400.0 - ISC
|
|
115
|
-
*
|
|
116
|
-
* This source code is licensed under the ISC license.
|
|
117
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
-
*/const _c=O("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
119
|
-
* @license lucide-react v0.400.0 - ISC
|
|
120
|
-
*
|
|
121
|
-
* This source code is licensed under the ISC license.
|
|
122
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
-
*/const Lc=O("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/**
|
|
124
|
-
* @license lucide-react v0.400.0 - ISC
|
|
125
|
-
*
|
|
126
|
-
* This source code is licensed under the ISC license.
|
|
127
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
-
*/const Vp=O("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
129
|
-
* @license lucide-react v0.400.0 - ISC
|
|
130
|
-
*
|
|
131
|
-
* This source code is licensed under the ISC license.
|
|
132
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
-
*/const Hp=O("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
134
|
-
* @license lucide-react v0.400.0 - ISC
|
|
135
|
-
*
|
|
136
|
-
* This source code is licensed under the ISC license.
|
|
137
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
-
*/const Nc=O("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
|
|
139
|
-
* @license lucide-react v0.400.0 - ISC
|
|
140
|
-
*
|
|
141
|
-
* This source code is licensed under the ISC license.
|
|
142
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
-
*/const Pc=O("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
144
|
-
* @license lucide-react v0.400.0 - ISC
|
|
145
|
-
*
|
|
146
|
-
* This source code is licensed under the ISC license.
|
|
147
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
-
*/const uu=O("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/**
|
|
149
|
-
* @license lucide-react v0.400.0 - ISC
|
|
150
|
-
*
|
|
151
|
-
* This source code is licensed under the ISC license.
|
|
152
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
-
*/const bp=O("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
|
154
|
-
* @license lucide-react v0.400.0 - ISC
|
|
155
|
-
*
|
|
156
|
-
* This source code is licensed under the ISC license.
|
|
157
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
-
*/const Qp=O("GitFork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]);/**
|
|
159
|
-
* @license lucide-react v0.400.0 - ISC
|
|
160
|
-
*
|
|
161
|
-
* This source code is licensed under the ISC license.
|
|
162
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
-
*/const ro=O("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
164
|
-
* @license lucide-react v0.400.0 - ISC
|
|
165
|
-
*
|
|
166
|
-
* This source code is licensed under the ISC license.
|
|
167
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
-
*/const Gp=O("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
|
|
169
|
-
* @license lucide-react v0.400.0 - ISC
|
|
170
|
-
*
|
|
171
|
-
* This source code is licensed under the ISC license.
|
|
172
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
-
*/const Yp=O("ListTree",[["path",{d:"M21 12h-8",key:"1bmf0i"}],["path",{d:"M21 6H8",key:"1pqkrb"}],["path",{d:"M21 18h-8",key:"1tm79t"}],["path",{d:"M3 6v4c0 1.1.9 2 2 2h3",key:"1ywdgy"}],["path",{d:"M3 10v6c0 1.1.9 2 2 2h3",key:"2wc746"}]]);/**
|
|
174
|
-
* @license lucide-react v0.400.0 - ISC
|
|
175
|
-
*
|
|
176
|
-
* This source code is licensed under the ISC license.
|
|
177
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
-
*/const Kp=O("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
179
|
-
* @license lucide-react v0.400.0 - ISC
|
|
180
|
-
*
|
|
181
|
-
* This source code is licensed under the ISC license.
|
|
182
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
-
*/const Xp=O("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
|
|
184
|
-
* @license lucide-react v0.400.0 - ISC
|
|
185
|
-
*
|
|
186
|
-
* This source code is licensed under the ISC license.
|
|
187
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
-
*/const Zp=O("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
|
|
189
|
-
* @license lucide-react v0.400.0 - ISC
|
|
190
|
-
*
|
|
191
|
-
* This source code is licensed under the ISC license.
|
|
192
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
-
*/const Jp=O("PanelRightClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]);/**
|
|
194
|
-
* @license lucide-react v0.400.0 - ISC
|
|
195
|
-
*
|
|
196
|
-
* This source code is licensed under the ISC license.
|
|
197
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
-
*/const qp=O("PanelRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
|
|
199
|
-
* @license lucide-react v0.400.0 - ISC
|
|
200
|
-
*
|
|
201
|
-
* This source code is licensed under the ISC license.
|
|
202
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
-
*/const Ic=O("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
204
|
-
* @license lucide-react v0.400.0 - ISC
|
|
205
|
-
*
|
|
206
|
-
* This source code is licensed under the ISC license.
|
|
207
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
-
*/const eh=O("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/**
|
|
209
|
-
* @license lucide-react v0.400.0 - ISC
|
|
210
|
-
*
|
|
211
|
-
* This source code is licensed under the ISC license.
|
|
212
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
-
*/const Fc=O("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
214
|
-
* @license lucide-react v0.400.0 - ISC
|
|
215
|
-
*
|
|
216
|
-
* This source code is licensed under the ISC license.
|
|
217
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
-
*/const th=O("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
|
|
219
|
-
* @license lucide-react v0.400.0 - ISC
|
|
220
|
-
*
|
|
221
|
-
* This source code is licensed under the ISC license.
|
|
222
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
-
*/const Gi=O("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
224
|
-
* @license lucide-react v0.400.0 - ISC
|
|
225
|
-
*
|
|
226
|
-
* This source code is licensed under the ISC license.
|
|
227
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
-
*/const nh=O("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
|
|
229
|
-
* @license lucide-react v0.400.0 - ISC
|
|
230
|
-
*
|
|
231
|
-
* This source code is licensed under the ISC license.
|
|
232
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
-
*/const rh=O("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|
234
|
-
* @license lucide-react v0.400.0 - ISC
|
|
235
|
-
*
|
|
236
|
-
* This source code is licensed under the ISC license.
|
|
237
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
-
*/const lh=O("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);/**
|
|
239
|
-
* @license lucide-react v0.400.0 - ISC
|
|
240
|
-
*
|
|
241
|
-
* This source code is licensed under the ISC license.
|
|
242
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
-
*/const oh=O("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
244
|
-
* @license lucide-react v0.400.0 - ISC
|
|
245
|
-
*
|
|
246
|
-
* This source code is licensed under the ISC license.
|
|
247
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
-
*/const ih=O("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),sh=""+new URL("flow_logo-CjiL4Lvy.png",import.meta.url).href,uh=({isTestFlowsOpen:e,setTestFlowsOpen:t})=>{const{activeView:n,setActiveView:r}=we(),l=[{id:"Flows",icon:Qp,label:"Flows"},{id:"Logs",icon:th,label:"Logs"},{id:"Reports",icon:Pc,label:"Reports"},{id:"TestCase",icon:Lc,label:"TestCase"}];return s.jsxs("nav",{style:{width:"75px",backgroundColor:"#0d1117",borderRight:"1px solid #30363d",display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,height:"100%",overflow:"hidden"},children:[s.jsx("div",{style:{padding:"25px 0",cursor:"pointer"},onClick:()=>r("Flows"),children:s.jsx("img",{src:sh,alt:"Flowstride",style:{width:"42px",height:"auto"}})}),n==="Flows"&&s.jsxs("div",{onClick:()=>t(!e),style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",padding:"12px 0",cursor:"pointer",color:e?"#a78bfa":"#8b949e",borderBottom:"1px solid #21262d",marginBottom:"10px"},children:[s.jsx(Yp,{size:22}),s.jsx("span",{style:{fontSize:"10px",marginTop:"4px",fontWeight:"bold"},children:e?"Hide":"Show"})]}),s.jsx("div",{style:{flex:1,width:"100%"},children:l.map(o=>{const i=n===o.id;return s.jsxs("div",{onClick:()=>r(o.id),style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",padding:"18px 0",cursor:"pointer",backgroundColor:i?"rgba(124, 58, 237, 0.08)":"transparent",borderLeft:i?"3px solid #7c3aed":"3px solid transparent",color:i?"#a78bfa":"#8b949e",transition:"color 0.2s ease"},children:[s.jsx(o.icon,{size:22,strokeWidth:i?2.5:2}),s.jsx("span",{style:{fontSize:"10px",marginTop:"6px",fontWeight:i?"600":"400"},children:o.label})]},o.id)})}),s.jsxs("a",{href:"https://cloud.flowstride.io/register",target:"_blank",rel:"noopener noreferrer",style:{padding:"25px 0",width:"100%",borderTop:"1px solid #30363d",display:"flex",flexDirection:"column",alignItems:"center",textDecoration:"none"},children:[s.jsx("div",{style:{width:"38px",height:"38px",borderRadius:"50%",border:"2px solid #30363d",backgroundColor:"#1f2937",display:"flex",alignItems:"center",justifyContent:"center",color:"#a78bfa",fontWeight:"bold",fontSize:"14px"},children:"OS"}),s.jsx("span",{style:{fontSize:"11px",marginTop:"10px",fontWeight:"bold",color:"#ffffff"},children:"Open Source"}),s.jsx("span",{style:{fontSize:"9px",color:"#8b949e",marginTop:"2px",textAlign:"center",padding:"0 4px"},children:"COMMUNITY EDITION"})]})]})},ah=()=>{const{currentUrls:e,pageTitles:t,browserFrames:n,testScenarios:r,activeStepId:l,setActiveStepId:o,isRunning:i,activeTestFile:u,setActiveTestFile:a}=we();M.useEffect(()=>{if(i){const c=r.find(p=>p.steps.some(g=>g.status==="running"));c&&c.fileName!==u&&a(c.fileName)}},[r,i,u,a]);let d=i?u:null,m=l;if(l&&l.includes(":::")){const c=l.split(":::");d=c[0],m=c[1]}const y=r.filter(c=>!d||c.fileName===d).flatMap(c=>c.steps).find(c=>c.id===m),h=!i&&!!(y&&y.screenshot),x=e[u]||"about:blank",v=t[u]||"New Tab",S=n[u]||null,_=h?y.screenshot:S,f=Array.from(new Set(r.map(c=>c.fileName)));return s.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column",backgroundColor:"#1c2128"},children:[s.jsxs("div",{onWheel:c=>{c.currentTarget.scrollLeft+=c.deltaY},style:{display:"flex",alignItems:"center",padding:"8px 8px 0 8px",gap:"4px",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none",msOverflowStyle:"none"},children:[s.jsx("style",{children:`
|
|
249
|
-
div::-webkit-scrollbar { display: none; }
|
|
250
|
-
`}),f.length>0?f.map((c,p)=>{const g=u===c;return s.jsxs("div",{onClick:()=>a(c),style:{backgroundColor:g?"var(--fs-bg-base)":"rgba(255,255,255,0.05)",padding:"6px 15px",borderRadius:"8px 8px 0 0",display:"flex",alignItems:"center",gap:"8px",border:g?"1px solid var(--fs-border)":"1px solid transparent",borderBottom:"none",minWidth:"130px",maxWidth:"200px",flexShrink:0,cursor:"pointer",opacity:g?1:.6},children:[s.jsx(ro,{size:12,color:g?"var(--fs-accent-purple)":"#8b949e",style:{flexShrink:0}}),s.jsx("span",{style:{fontSize:"10px",color:g?"white":"#8b949e",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:g?"bold":"normal"},children:c})]},p)}):s.jsxs("div",{style:{backgroundColor:"var(--fs-bg-base)",padding:"6px 15px",borderRadius:"8px 8px 0 0",display:"flex",alignItems:"center",gap:"8px",border:"1px solid var(--fs-border)",borderBottom:"none",minWidth:"140px",flexShrink:0},children:[s.jsx(ro,{size:12,color:"var(--fs-accent-purple)"}),s.jsx("span",{style:{fontSize:"10px",color:"white"},children:v})]})]}),s.jsxs("div",{style:{backgroundColor:"var(--fs-bg-base)",borderTop:"1px solid var(--fs-border)",padding:"6px 12px",display:"flex",alignItems:"center",gap:"12px"},children:[s.jsxs("div",{style:{display:"flex",gap:"8px",color:"#8b949e"},children:[s.jsx(Bp,{size:14}),s.jsx(or,{size:14}),s.jsx(Fc,{size:14}),s.jsx(Gp,{size:14})]}),s.jsxs("div",{style:{flex:1,backgroundColor:"#05070a",border:"1px solid var(--fs-border)",borderRadius:"15px",padding:"3px 12px",display:"flex",alignItems:"center",gap:"8px"},children:[s.jsx(Xp,{size:10,color:"#22c55e"}),s.jsx("span",{style:{fontSize:"10px",color:"#8b949e",whiteSpace:"nowrap",overflow:"hidden"},children:x})]}),s.jsxs("div",{style:{display:"flex",gap:"10px",color:"#444",borderLeft:"1px solid #333",paddingLeft:"12px"},children:[s.jsx(Zp,{size:14,color:"var(--fs-accent-purple)"}),s.jsx(lh,{size:14}),s.jsx(nh,{size:14}),s.jsx($p,{size:14})]})]}),s.jsxs("div",{style:{flex:1,margin:"10px",backgroundColor:"white",borderRadius:"4px",boxShadow:"0 4px 12px rgba(0,0,0,0.5)",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",position:"relative"},children:[h&&s.jsxs("div",{style:{position:"absolute",top:"12px",left:"12px",right:"12px",backgroundColor:"rgba(15, 23, 42, 0.95)",border:"1px solid rgba(167, 139, 250, 0.3)",padding:"10px 16px",borderRadius:"6px",display:"flex",justifyContent:"space-between",alignItems:"center",zIndex:30,boxShadow:"0 4px 20px rgba(0,0,0,0.4)",backdropFilter:"blur(4px)"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[s.jsx("div",{style:{backgroundColor:"rgba(167, 139, 250, 0.1)",padding:"6px",borderRadius:"4px"},children:s.jsx(Hp,{size:14,color:"#a78bfa"})}),s.jsxs("div",{children:[s.jsx("div",{style:{fontSize:"11px",fontWeight:"bold",color:"#a78bfa",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Viewing Historical State"}),s.jsx("div",{style:{fontSize:"12px",color:"#e2e8f0",fontFamily:"monospace",marginTop:"2px"},children:y==null?void 0:y.command})]})]}),s.jsx("button",{onClick:()=>o(null),style:{backgroundColor:"#7c3aed",color:"white",border:"none",padding:"6px 14px",borderRadius:"4px",fontSize:"11px",fontWeight:"bold",cursor:"pointer",transition:"background 0.2s"},onMouseEnter:c=>c.currentTarget.style.backgroundColor="#6d28d9",onMouseLeave:c=>c.currentTarget.style.backgroundColor="#7c3aed",children:"Return to Live"})]}),_?s.jsx("img",{src:`data:image/png;base64,${_}`,style:{width:"100%",height:"100%",objectFit:"contain",opacity:h?.95:1},alt:"Browser frame"}):s.jsxs("div",{style:{textAlign:"center",color:"#ccc"},children:[s.jsx(ro,{size:40,style:{marginBottom:"8px",opacity:.1}}),s.jsx("div",{style:{fontSize:"11px",fontWeight:500,opacity:.3},children:"WAITING FOR RENDER..."})]})]})]})},ch=()=>{const{networkLogs:e,activeNetworkTab:t,setNetworkTab:n,setSelectedLogId:r,setActiveView:l}=we(),o=["REST","GraphQL","Network","WS"],i=e.filter(a=>t==="GraphQL"?a.url.includes("graphql"):t==="REST"?!a.url.includes("graphql")&&!a.url.includes("ws"):!0),u=a=>{r(a),l("Logs")};return s.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column",backgroundColor:"#0d1117"},children:[s.jsx("div",{style:{display:"flex",borderBottom:"1px solid var(--fs-border)",backgroundColor:"#05070a"},children:o.map(a=>s.jsx("button",{onClick:()=>n(a),style:{padding:"10px 16px",fontSize:"11px",fontWeight:"600",background:"none",border:"none",color:t===a?"#a78bfa":"#444",borderBottom:t===a?"2px solid #7c3aed":"2px solid transparent",cursor:"pointer",transition:"all 0.2s"},children:a},a))}),s.jsxs("div",{style:{padding:"8px 12px",display:"flex",gap:"10px",alignItems:"center",borderBottom:"1px solid #161b22"},children:[s.jsxs("div",{style:{flex:1,position:"relative"},children:[s.jsx(Gi,{size:12,style:{position:"absolute",left:"8px",top:"50%",transform:"translateY(-50%)",color:"#444"}}),s.jsx("input",{type:"text",placeholder:`Filter ${t}...`,style:{width:"100%",background:"#05070a",border:"1px solid #30363d",borderRadius:"4px",padding:"4px 8px 4px 28px",fontSize:"10px",color:"white"}})]}),s.jsx(bp,{size:14,color:"#444"})]}),s.jsx("div",{style:{flex:1,overflowY:"auto"},children:i.length===0?s.jsxs("div",{style:{padding:"40px",textAlign:"center",color:"#444",fontSize:"11px"},children:["No ",t," traffic detected"]}):i.map((a,d)=>s.jsx("div",{onClick:()=>u(a.id),style:{borderBottom:"1px solid #161b22",cursor:"pointer",transition:"background 0.2s"},onMouseEnter:m=>m.currentTarget.style.backgroundColor="#161b22",onMouseLeave:m=>m.currentTarget.style.backgroundColor="transparent",children:s.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"8px 12px",fontSize:"11px",gap:"10px"},children:[s.jsx("span",{style:{color:a.status<400?"#34d399":"#f87171",fontWeight:"bold",width:"25px"},children:a.status}),s.jsx("span",{style:{fontWeight:"bold",width:"35px",color:"#8b949e"},children:a.method}),s.jsx("span",{style:{flex:1,color:"white",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:a.name||a.url}),s.jsx("span",{style:{color:"#444",fontSize:"10px"},children:a.time})]})},d))})]})},dh=()=>{const{logs:e}=we(),t=M.useRef(null);return M.useEffect(()=>{t.current&&(t.current.scrollTop=t.current.scrollHeight)},[e]),s.jsxs("div",{ref:t,style:{flex:1,backgroundColor:"#0d1117",padding:"10px 15px",fontFamily:"monospace",fontSize:"12px",overflowY:"auto",color:"#d1d5db",lineHeight:"1.5"},children:[e.length===0&&s.jsx("div",{style:{color:"#4b5563",fontStyle:"italic"},children:"System ready. Awaiting execution..."}),e.map((n,r)=>{const l=(n.type||n.status||"INFO").toUpperCase();let o="#34d399";return(n.status==="error"||n.type==="ERROR")&&(o="#f87171"),n.status==="warning"&&(o="#fbbf24"),n.type==="ACTION"&&(o="#60a5fa"),s.jsxs("div",{style:{marginBottom:"4px",display:"flex",gap:"8px"},children:[s.jsxs("span",{style:{color:"#6e7681",flexShrink:0},children:["[",n.timestamp||"--:--:--","]"]}),s.jsx("span",{style:{color:o,fontWeight:"bold",flexShrink:0,width:"55px"},children:l}),s.jsx("span",{style:{color:"#c9d1d9",wordBreak:"break-all"},children:n.summary})]},n.id||r)})]})},fh=({isRightPanelOpen:e})=>{const{logs:t,pageTitles:n,activeTestFile:r}=we(),l=t[t.length-1],o=n[r]||"New Tab";return s.jsxs("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",backgroundColor:"var(--fs-bg-base)",overflow:"hidden"},children:[s.jsxs("div",{style:{height:"35px",backgroundColor:"#161b22",borderBottom:"1px solid var(--fs-border)",display:"flex",alignItems:"center",padding:"0 15px",fontSize:"11px",color:"#8b949e",flexShrink:0},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",flex:1},children:[s.jsx("span",{style:{color:"#a78bfa",fontWeight:"bold"},children:"LOG:"}),s.jsx("span",{style:{color:"#c9d1d9",fontFamily:"monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:(l==null?void 0:l.summary)||"System ready. Awaiting connection..."})]}),s.jsx("div",{style:{opacity:.5,fontStyle:"italic"},children:o})]}),s.jsxs("div",{style:{flex:1,display:"flex",overflow:"hidden"},children:[s.jsx("div",{style:{flex:1,borderRight:"1px solid var(--fs-border)",height:"100%",overflow:"hidden"},children:s.jsx(ah,{})}),s.jsxs("div",{style:{width:e?"400px":"0px",transition:"width 0.2s ease",display:"flex",flexDirection:"column",height:"100%",backgroundColor:"#0d1117",overflow:"hidden",flexShrink:0},children:[s.jsx("div",{style:{flex:1,overflow:"hidden",display:"flex",flexDirection:"column"},children:s.jsx(ch,{})}),s.jsxs("div",{style:{flex:1,borderTop:"1px solid var(--fs-border)",backgroundColor:"#0d1117",overflow:"hidden",display:"flex",flexDirection:"column"},children:[s.jsx("div",{style:{padding:"8px 15px",fontSize:"11px",fontWeight:"bold",color:"#8b949e",borderBottom:"1px solid var(--fs-border)",flexShrink:0},children:"LIVE INFO"}),s.jsx("div",{style:{flex:1,overflow:"hidden",position:"relative"},children:s.jsx(dh,{})})]})]})]})]})},ph=()=>{var h,x;const[e,t]=M.useState(null),{testScenarios:n,logs:r}=we(),l=n.reduce((v,S)=>v+S.steps.length,0),o=n.reduce((v,S)=>v+S.steps.filter(_=>["pass","passed","success"].includes(_.status)).length,0),i=n.reduce((v,S)=>v+S.steps.filter(_=>_.status==="failed").length,0),u=n.reduce((v,S)=>{const _=S.fileName||"General";return v[_]||(v[_]=[]),v[_].push(S),v},{});let a="Verified.",d=null,m=null,y=null;if(e){const v=e.status==="failed",S=["pass","passed","success"].includes(e.status);if(m=e.screenshot,v){const f=`${e.type} ${e.description}`,c=r.slice().reverse().find(p=>p.type==="ERROR"&&p.fileName===e.fileName&&p.stepContext===f);a=c?c.summary:"Validation Failed.",!m&&((h=c==null?void 0:c.details)!=null&&h.screenshot)&&(m=c.details.screenshot),(x=c==null?void 0:c.details)!=null&&x.boundingBox&&(y=c.details.boundingBox)}else e.status==="running"?a="Executing...":S&&(a="Action verified successfully.");const _=r.slice().reverse().find(f=>(f.type==="REST"||f.type==="GRAPHQL")&&f.fileName===e.fileName);d=_?_.details:null}return s.jsxs("div",{style:{height:"100%",width:"100%",backgroundColor:"#f8fafc",overflowY:"auto",position:"relative",color:"#0f172a"},children:[s.jsxs("div",{style:{maxWidth:"1200px",margin:"0 auto",padding:"40px 20px",marginRight:e?"450px":"auto",transition:"margin-right 0.3s"},children:[s.jsxs("header",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-end",borderBottom:"1px solid #e2e8f0",paddingBottom:"24px",marginBottom:"40px"},children:[s.jsxs("div",{children:[s.jsx("h1",{style:{fontSize:"30px",fontWeight:"800",margin:0,color:"#1e293b"},children:"Flowstride Reports"}),s.jsx("p",{style:{color:"#64748b",margin:"4px 0 0 0",fontWeight:"500"},children:"Multi-Flow Execution Analysis"})]}),s.jsxs("div",{style:{display:"flex",gap:"16px"},children:[s.jsx(lo,{label:"PASSED",value:o,color:"#10b981",icon:s.jsx(Tc,{size:20})}),s.jsx(lo,{label:"FAILED",value:i,color:"#ef4444",icon:s.jsx(_c,{size:20})}),s.jsx(lo,{label:"TOTAL",value:l,color:"#3b82f6",icon:s.jsx(Pc,{size:20})})]})]}),Object.keys(u).map(v=>s.jsxs("div",{style:{marginBottom:"60px"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"20px",marginBottom:"24px"},children:[s.jsx("div",{style:{height:"2px",flex:1,backgroundColor:"#7c3aed",opacity:.15}}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",color:"#7c3aed",fontWeight:"900",fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.1em",backgroundColor:"rgba(124, 58, 237, 0.05)",padding:"6px 16px",borderRadius:"20px",border:"1px solid rgba(124, 58, 237, 0.1)"},children:[s.jsx(Nc,{size:14})," ",v]}),s.jsx("div",{style:{height:"2px",flex:1,backgroundColor:"#7c3aed",opacity:.15}})]}),s.jsx("div",{style:{backgroundColor:"white",borderRadius:"12px",border:"1px solid #e2e8f0",boxShadow:"0 1px 3px rgba(0,0,0,0.05)",overflow:"hidden"},children:s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",textAlign:"left"},children:[s.jsx("thead",{style:{backgroundColor:"#f1f5f9",borderBottom:"1px solid #e2e8f0"},children:s.jsx("tr",{children:["S/N","Scenario","Action","Status",""].map((S,_)=>s.jsx("th",{style:{padding:"16px 24px",fontSize:"10px",fontWeight:"800",color:"#64748b",textTransform:"uppercase"},children:S},_))})}),s.jsx("tbody",{children:u[v].flatMap(S=>S.steps.map((_,f)=>s.jsxs("tr",{onClick:()=>t({..._,scenarioName:S.name,fileName:v}),style:{cursor:"pointer",borderBottom:"1px solid #f1f5f9",backgroundColor:(e==null?void 0:e.id)===_.id?"#eff6ff":"transparent"},children:[s.jsx("td",{style:{padding:"18px 24px",fontSize:"12px",color:"#94a3b8",fontFamily:"monospace",fontWeight:"bold"},children:f+1}),s.jsx("td",{style:{padding:"18px 24px",fontWeight:"600",color:"#334155"},children:S.name}),s.jsxs("td",{style:{padding:"18px 24px",fontSize:"14px",color:"#475569"},children:[s.jsx("b",{style:{color:"#7c3aed",marginRight:"8px"},children:_.type})," ",_.description]}),s.jsx("td",{style:{padding:"18px 24px"},children:s.jsx(yh,{status:_.status})}),s.jsx("td",{style:{padding:"18px 24px",textAlign:"right"},children:s.jsx(or,{size:16,color:(e==null?void 0:e.id)===_.id?"#3b82f6":"#cbd5e1",style:{transform:(e==null?void 0:e.id)===_.id?"rotate(90deg)":"none",transition:"0.2s"}})})]},_.id)))})]})})]},v))]}),s.jsx("aside",{style:{position:"fixed",top:0,right:0,height:"100%",width:"450px",backgroundColor:"white",boxShadow:"-10px 0 40px rgba(0,0,0,0.1)",borderLeft:"1px solid #e2e8f0",zIndex:100,transform:e?"translateX(0)":"translateX(100%)",transition:"transform 0.3s cubic-bezier(0.4, 0, 0.2, 1)",padding:"30px",overflowY:"auto"},children:e&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"32px"},children:[s.jsxs("h2",{style:{fontSize:"18px",fontWeight:"700",display:"flex",alignItems:"center",gap:"10px"},children:[s.jsx(oh,{size:18,color:"#3b82f6"})," Step Diagnostics"]}),s.jsx(ih,{onClick:()=>t(null),style:{cursor:"pointer",color:"#94a3b8"}})]}),m&&s.jsx(Rn,{label:`Visual State (${(e.status||"").toUpperCase()})`,children:s.jsx(hh,{screenshot:m,boundingBox:y})}),s.jsx(Rn,{label:"Context",children:s.jsx("div",{style:{fontWeight:"bold",color:"#1e293b"},children:e.scenarioName})}),s.jsx(Rn,{label:"Requirement Proof",children:s.jsxs("div",{style:{padding:"16px",backgroundColor:"#f8fafc",borderRadius:"8px",fontSize:"14px",fontStyle:"italic",color:"#475569",border:"1px solid #f1f5f9"},children:['"',e.type," ",e.description,'"']})}),s.jsx(Rn,{label:"Runtime Outcome",children:s.jsx("div",{style:{padding:"16px",borderRadius:"8px",fontSize:"14px",fontWeight:"500",backgroundColor:["pass","success","passed"].includes(e.status)?"#ecfdf5":"#fef2f2",color:["pass","success","passed"].includes(e.status)?"#065f46":"#991b1b",border:`1px solid ${["pass","success","passed"].includes(e.status)?"#d1fae5":"#fee2e2"}`},children:a})}),d&&s.jsx(Rn,{label:"Network Activity",children:s.jsx("div",{style:{backgroundColor:"#0f172a",padding:"16px",borderRadius:"8px",color:"#7dd3fc",fontFamily:"monospace",fontSize:"11px",overflowX:"auto"},children:s.jsx("pre",{children:JSON.stringify({status:d.responseStatus,url:d.url},null,2)})})})]})})]})},hh=({screenshot:e,boundingBox:t})=>{const[n,r]=M.useState({w:0,h:0}),[l,o]=M.useState(!1),i=()=>{const u=window.open();u&&(u.document.write(`
|
|
251
|
-
<html>
|
|
252
|
-
<head><title>Step Screenshot</title></head>
|
|
253
|
-
<body style="margin: 0; background-color: #0f172a; display: flex; justify-content: center; padding: 40px; font-family: sans-serif;">
|
|
254
|
-
<div style="position: relative; display: inline-block;">
|
|
255
|
-
<img src="data:image/jpeg;base64,${e}" style="max-width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);" />
|
|
256
|
-
${t?`<div style="
|
|
257
|
-
position: absolute;
|
|
258
|
-
border: 3px solid #ef4444;
|
|
259
|
-
background-color: rgba(239, 68, 68, 0.2);
|
|
260
|
-
left: ${t.x/n.w*100}%;
|
|
261
|
-
top: ${t.y/n.h*100}%;
|
|
262
|
-
width: ${t.width/n.w*100}%;
|
|
263
|
-
height: ${t.height/n.h*100}%;
|
|
264
|
-
box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.5);
|
|
265
|
-
pointer-events: none;
|
|
266
|
-
"></div>`:""}
|
|
267
|
-
</div>
|
|
268
|
-
</body>
|
|
269
|
-
</html>
|
|
270
|
-
`),u.document.close())};return s.jsxs("div",{onClick:i,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),style:{position:"relative",width:"100%",borderRadius:"8px",overflow:"hidden",border:"1px solid #e2e8f0",backgroundColor:"#0f172a",cursor:"zoom-in"},children:[s.jsx("img",{src:`data:image/jpeg;base64,${e}`,style:{width:"100%",display:"block",opacity:l?.6:1,transition:"opacity 0.2s ease"},onLoad:u=>r({w:u.currentTarget.naturalWidth,h:u.currentTarget.naturalHeight}),alt:"Step snapshot"}),t&&n.w>0&&s.jsx("div",{style:{position:"absolute",border:"2px solid #ef4444",backgroundColor:"rgba(239, 68, 68, 0.2)",left:`${t.x/n.w*100}%`,top:`${t.y/n.h*100}%`,width:`${t.width/n.w*100}%`,height:`${t.height/n.h*100}%`,boxShadow:"0 0 0 9999px rgba(15, 23, 42, 0.5)",zIndex:10,pointerEvents:"none"}}),l&&s.jsx("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:"rgba(15, 23, 42, 0.9)",color:"white",padding:"8px 16px",borderRadius:"20px",fontSize:"12px",fontWeight:"bold",pointerEvents:"none",zIndex:20},children:"Click to Enlarge"})]})},lo=({label:e,value:t,color:n,icon:r})=>s.jsxs("div",{style:{backgroundColor:"white",padding:"16px 24px",borderRadius:"10px",border:"1px solid #e2e8f0",minWidth:"140px",display:"flex",alignItems:"center",gap:"12px"},children:[s.jsx("div",{style:{color:n,backgroundColor:`${n}15`,padding:"8px",borderRadius:"8px"},children:r}),s.jsxs("div",{children:[s.jsx("div",{style:{fontSize:"20px",fontWeight:"800"},children:t}),s.jsx("div",{style:{fontSize:"9px",fontWeight:"800",color:"#94a3b8"},children:e})]})]}),yh=({status:e})=>{const t=["pass","passed","success"].includes(e),n=e==="failed";return s.jsx("span",{style:{padding:"4px 10px",borderRadius:"20px",fontSize:"10px",fontWeight:"800",border:"1px solid",backgroundColor:t?"#dcfce7":n?"#fee2e2":"#dbeafe",color:t?"#15803d":n?"#b91c1c":"#1d4ed8",borderColor:t?"#bbf7d0":n?"#fecaca":"#bfdbfe"},children:(e||"PENDING").toUpperCase()})},Rn=({label:e,children:t})=>s.jsxs("div",{style:{marginBottom:"24px"},children:[s.jsx("h3",{style:{fontSize:"11px",fontWeight:"800",color:"#94a3b8",textTransform:"uppercase",marginBottom:"8px",letterSpacing:"0.05em"},children:e}),t]});let Ce=null;const Mc=()=>{if(Ce&&(Ce.readyState===WebSocket.OPEN||Ce.readyState===WebSocket.CONNECTING))return;const e=window.location.protocol==="https:"?"wss:":"ws:",t=window.location.host;Ce=new WebSocket(`${e}//${t}`),Ce.onopen=()=>console.log("[Flowstride] Connected to Execution Engine"),Ce.onmessage=n=>{try{const r=JSON.parse(n.data),l=we.getState();switch(r.type){case"SUITE_START":l.startExecution();break;case"RUN_START":{we.getState().isRunning||we.setState({isRunning:!0}),l.startRun(r.payload.fileName,r.payload.scenarioName);break}case"RUN_COMPLETE":l.stopExecution();break;case"LOG_EVENT":l.addLog(r.payload);break;case"BROWSER_FRAME":l.setBrowserFrame(r.payload.fileName||"General",r.payload.base64);break;case"NETWORK_REQ":l.addNetworkLog(r.payload);break;case"STEP_ADD":l.addStep(r.payload);break;case"STEP_UPDATE":const o=r.payload.status==="passed"?"pass":r.payload.status;l.updateStepStatus(r.payload.id,o,r.payload.screenshot,r.payload.fileName);break;case"URL_CHANGE":l.setPageMetadata(r.payload.fileName||"General",r.payload.url,r.payload.title);break;case"REPLAY_RES":l.setReplayResponse(r.payload.responseBody,r.payload.status);break;case"EXPORT_PDF_RES":{const i=r.payload.base64,u=document.createElement("a");u.href=`data:application/pdf;base64,${i}`,u.download=`Flowstride_Test_Report_${new Date().toISOString().split("T")[0]}.pdf`,document.body.appendChild(u),u.click(),document.body.removeChild(u);break}case"EXPORT_PDF_SUCCESS":console.log("[Flowstride] PDF safely archived at:",r.payload.path);break;case"EXPORT_PDF_ERROR":window.alert(`Report Error: Failed to generate PDF - ${r.payload.error}`);break;default:console.warn("Unknown event:",r.type)}}catch(r){console.error("Socket error:",r)}},Ce.onclose=()=>setTimeout(Mc,3e3)},mh=()=>{Ce&&(Ce.close(),Ce=null)},dl=(e,t)=>{Ce&&Ce.readyState===WebSocket.OPEN&&Ce.send(JSON.stringify({type:e,payload:t}))},gh=()=>{const{testScenarios:e}=we(),t=e.reduce((r,l)=>{const o=l.fileName||"General";return r[o]||(r[o]=[]),r[o].push(l),r},{});if(e.length===0)return s.jsx("div",{style:{display:"flex",height:"100%",alignItems:"center",justifyContent:"center",color:"#64748b"},children:"Awaiting test data..."});const n=()=>{dl("EXPORT_PDF_REQ",e)};return s.jsxs("div",{style:{height:"100%",width:"100%",backgroundColor:"white",overflowY:"auto",color:"#1e293b"},children:[s.jsxs("div",{style:{position:"sticky",top:0,backgroundColor:"#f8fafc",borderBottom:"1px solid #e2e8f0",padding:"16px 40px",display:"flex",justifyContent:"space-between",alignItems:"center",zIndex:10},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",fontWeight:"700"},children:[s.jsx(Lc,{color:"#7c3aed"})," Test Case Documentation"]}),s.jsxs("button",{onClick:n,style:{padding:"8px 16px",borderRadius:"6px",border:"1px solid #cbd5e1",backgroundColor:"white",fontSize:"13px",fontWeight:"600",cursor:"pointer"},children:[s.jsx(eh,{size:14,style:{verticalAlign:"middle",marginRight:"8px"}})," ","Export PDF"]})]}),s.jsxs("div",{style:{maxWidth:"900px",margin:"40px auto",padding:"0 20px"},children:[s.jsxs("div",{style:{borderBottom:"4px solid #0f172a",paddingBottom:"24px",marginBottom:"40px"},children:[s.jsx("h2",{style:{fontSize:"36px",fontWeight:"900",textTransform:"uppercase",margin:0},children:"Test Case Log"}),s.jsx("p",{style:{color:"#64748b",fontWeight:"500",margin:"8px 0 0 0"},children:"Project: Flowstride Community Edition"})]}),Object.keys(t).map(r=>{const l=t[r].flatMap(o=>o.steps);return s.jsxs("div",{style:{marginBottom:"60px"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"15px",marginBottom:"25px"},children:[s.jsx("div",{style:{flex:1,borderTop:"1px solid #7c3aed",opacity:.3}}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",color:"#7c3aed",fontWeight:"900",fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.1em"},children:[s.jsx(Nc,{size:14})," ",r]}),s.jsx("div",{style:{flex:1,borderTop:"1px solid #7c3aed",opacity:.3}})]}),s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",border:"1px solid #e2e8f0",borderRadius:"8px",overflow:"hidden"},children:[s.jsx("thead",{style:{backgroundColor:"#0f172a",color:"white"},children:s.jsx("tr",{children:["S/N","Action","Expected Result","Actual Result","Status"].map((o,i)=>s.jsx("th",{style:{padding:"14px",fontSize:"11px",textAlign:"left"},children:o},i))})}),s.jsx("tbody",{children:l.map((o,i)=>{const u=o.status==="failed",a=i+1;return s.jsxs("tr",{style:{borderBottom:"1px solid #e2e8f0"},children:[s.jsx("td",{style:{padding:"16px 14px",fontSize:"13px",color:"#64748b",fontWeight:"500",width:"50px"},children:a}),s.jsx("td",{style:{padding:"16px 14px",fontWeight:"700",fontSize:"13px"},children:o.command}),s.jsxs("td",{style:{padding:"16px 14px",fontSize:"13px",color:"#475569",fontStyle:"italic"},children:[o.type," ",o.description]}),s.jsx("td",{style:{padding:"16px 14px",fontSize:"13px",color:u?"#ef4444":"#64748b"},children:u?"Validation Failed":"Action verified successfully."}),s.jsx("td",{style:{padding:"16px 14px",textAlign:"left"},children:s.jsx("span",{style:{fontSize:"10px",fontWeight:"900",color:u?"#ef4444":"#10b981"},children:(o.status||"PENDING").toUpperCase()})})]},o.id)})})]})]},r)})]})]})},Pn=({label:e,value:t,isRoot:n=!1})=>{const[r,l]=M.useState(!0);if(t===null||typeof t!="object"){let a="#79c0ff";return typeof t=="string"&&(a="#a5d6ff"),(typeof t=="boolean"||t===null)&&(a="#ff7b72"),s.jsxs("div",{style:{paddingLeft:n?"0":"16px",fontFamily:"monospace",fontSize:"12px"},children:[e&&s.jsxs("span",{style:{color:"#d2a8ff",marginRight:"6px"},children:[e,":"]}),s.jsx("span",{style:{color:a},children:t===null?"null":typeof t=="string"?`"${t}"`:String(t)})]})}const o=Array.isArray(t),i=Object.keys(t||{}),u=i.length===0;return s.jsxs("div",{style:{paddingLeft:n?"0":"16px",fontFamily:"monospace",fontSize:"12px"},children:[s.jsxs("div",{onClick:()=>!u&&l(!r),style:{cursor:u?"default":"display",display:"flex",alignItems:"center"},children:[s.jsx("span",{style:{width:"14px",color:"#8b949e",cursor:"pointer"},children:!u&&(r?"▼":"▶")}),e&&s.jsxs("span",{style:{color:"#d2a8ff",marginRight:"6px"},children:[e,":"]}),s.jsx("span",{style:{color:"#8b949e"},children:o?r?"[":"[...]":r?"{":"{...}"})]}),r&&!u&&s.jsx("div",{style:{paddingLeft:"8px",borderLeft:"1px solid #30363d",marginLeft:"6px"},children:i.map(a=>s.jsx(Pn,{label:o?null:a,value:t[a]},a))}),r&&!u&&s.jsx("div",{style:{color:"#8b949e"},children:o?"]":"}"})]})},vh=e=>{var u,a,d,m,y;let t=e.summary,n="-",r=e.type.toLowerCase(),l=e.status==="error"?"ERR":"OK",o=e.status==="error"?"#f87171":"#8b949e";if(e.type==="REST"||e.type==="GRAPHQL"){if(r="fetch",n=((u=e.details)==null?void 0:u.method)||"GET",(a=e.details)!=null&&a.url)try{const h=new URL(e.details.url);t=h.pathname.split("/").pop()||h.pathname,(!t||t==="/")&&(t=h.hostname)}catch{const h=e.details.url.split("/");t=h[h.length-1]||e.summary}l=((m=(d=e.details)==null?void 0:d.responseStatus)==null?void 0:m.toString())||(e.status==="error"?"ERR":"200"),o=e.status==="error"?"#f87171":"#34d399"}else if(e.type==="ACTION")t=((y=e.details)==null?void 0:y.command)||e.summary.split(":")[0],r="action",o=e.status==="error"?"#f87171":"#60a5fa";else if(e.type==="ASSERT")r="assert",o=e.status==="error"?"#f87171":"#a78bfa";else if(e.type==="ERROR"){o="#f87171";const h=e.summary||"";h.includes("waited for")?t="Element Not Found":h.includes("covering it up")?t="Element Blocked":h.includes("multiple elements matching")?t="Multiple Elements":h.includes("couldn't reach")?t="Network Error":t="Execution Failed"}else e.type==="CONSOLE"&&(r="console");let i="#8b949e";return n==="GET"&&(i="#60a5fa"),n==="POST"&&(i="#34d399"),(n==="PUT"||n==="PATCH")&&(i="#fbbf24"),n==="DELETE"&&(i="#f87171"),{name:t,methodLabel:n,methodColor:i,typeLabel:r,statusLabel:l,statusColor:o}},xh=()=>{var rt;const{logs:e,selectedLogId:t,setSelectedLogId:n,activeReplay:r,updateReplay:l}=we(),[o,i]=M.useState("ALL"),[u,a]=M.useState("Overview"),[d,m]=M.useState(null),[y,h]=M.useState(!1),x=M.useRef(null),[v,S]=M.useState(380),[_,f]=M.useState(!1);M.useEffect(()=>{const T=Z=>{if(!_||!x.current)return;const lt=x.current.getBoundingClientRect().left,B=Z.clientX-lt;B>=250&&B<=800&&S(B)},X=()=>f(!1);return _&&(document.addEventListener("mousemove",T),document.addEventListener("mouseup",X)),()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",X)}},[_]),M.useEffect(()=>{t&&(!e||!e.find(T=>T.id===t))&&n(null)},[e,t,n]);const c=Array.isArray(e)?e:[],p=c.find(T=>T.id===t),g={},C=[];c.forEach(T=>{if(!T)return;if(T.type==="FILE_HEADER"){C.includes(T.summary)||C.push(T.summary);return}const X=T.fileName||"System Initialization";g[X]||(g[X]=[],C.includes(X)||C.push(X)),(o==="ALL"||T.type===o)&&g[X].push(T)});const R=C.map(T=>({fileName:T,items:g[T]||[]})).filter(T=>T.items.length>0),E=(p==null?void 0:p.type)==="REST"||(p==null?void 0:p.type)==="GRAPHQL",w=["Overview","Headers","Payload"];E&&((rt=p==null?void 0:p.details)!=null&&rt.curlString)&&w.push("cURL"),w.push("Response","Step Context"),E&&w.push("Replay");const F=()=>{r&&(l("isLoading",!0),l("response",null),l("status",null),dl("REPLAY_REQ",{method:r.method,url:r.url,headers:r.headers,body:r.body}))},L=async T=>{try{await navigator.clipboard.writeText(T),h(!0),setTimeout(()=>h(!1),2e3)}catch(X){console.error("Failed to copy text: ",X)}},ee=()=>{if(!p)return null;const T=p.details||{};switch(u){case"Overview":return s.jsx("div",{style:{padding:"15px",backgroundColor:"#161b22",borderRadius:"8px",border:"1px solid #30363d"},children:s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px",fontSize:"13px"},children:[s.jsxs("div",{style:{paddingBottom:"12px",marginBottom:"4px",borderBottom:"1px solid #30363d"},children:[s.jsx("span",{style:{color:p.status==="error"?"#f87171":"#a78bfa",fontWeight:"bold",display:"block",marginBottom:"6px"},children:p.status==="error"?"Error Message:":"Summary:"}),s.jsx("span",{style:{color:"#c9d1d9",lineHeight:"1.6",fontSize:"14px"},children:p.summary})]}),s.jsxs("div",{children:[s.jsx("span",{style:{color:"#8b949e",width:"80px",display:"inline-block"},children:"Context:"})," ",p.stepContext||"System"]}),s.jsxs("div",{children:[s.jsx("span",{style:{color:"#8b949e",width:"80px",display:"inline-block"},children:"URL:"})," ",T.url||"N/A"]}),s.jsxs("div",{children:[s.jsx("span",{style:{color:"#8b949e",width:"80px",display:"inline-block"},children:"Status:"})," ",s.jsx("span",{style:{color:p.status==="error"?"#f87171":"#34d399",fontWeight:"bold"},children:T.responseStatus||p.status.toUpperCase()})]})]})});case"Headers":return s.jsx(Pn,{label:"Headers",value:{request:T.requestHeaders||{},response:T.responseHeaders||{}},isRoot:!0});case"Payload":return s.jsx(Pn,{label:"Payload",value:T.requestBody||T,isRoot:!0});case"cURL":return s.jsxs("div",{style:{position:"relative"},children:[s.jsx("button",{onClick:()=>L(T.curlString),style:{position:"absolute",top:"10px",right:"10px",background:"rgba(124, 58, 237, 0.1)",border:"1px solid rgba(124, 58, 237, 0.3)",color:"#a78bfa",padding:"6px 12px",borderRadius:"4px",fontSize:"11px",fontWeight:"bold",display:"flex",alignItems:"center",gap:"6px",cursor:"pointer",transition:"all 0.2s",zIndex:10},onMouseEnter:Z=>{Z.currentTarget.style.background="rgba(124, 58, 237, 0.2)"},onMouseLeave:Z=>{Z.currentTarget.style.background="rgba(124, 58, 237, 0.1)"},children:y?s.jsxs(s.Fragment,{children:[s.jsx(Up,{size:12})," Copied!"]}):s.jsxs(s.Fragment,{children:[s.jsx(Vp,{size:12})," Copy"]})}),s.jsx("pre",{style:{background:"#05070a",padding:"20px 15px",paddingRight:"90px",borderRadius:"8px",border:"1px solid #30363d",color:"#a5d6ff",fontFamily:"monospace",fontSize:"12px",whiteSpace:"pre-wrap",wordBreak:"break-all",overflowX:"auto",lineHeight:"1.5"},children:s.jsx("code",{children:T.curlString})})]});case"Response":return s.jsx(Pn,{label:"Response",value:T.responseBody||{message:"No body captured"},isRoot:!0});case"Step Context":return s.jsx("div",{style:{padding:"15px",borderLeft:"4px solid #a78bfa",backgroundColor:"rgba(167, 139, 250, 0.05)"},children:p.stepContext});case"Replay":if(!r)return null;const X={background:"#05070a",border:"1px solid #30363d",color:"white",padding:"8px",borderRadius:"4px",fontSize:"12px",fontFamily:"monospace"};return s.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"15px"},children:[s.jsxs("div",{style:{display:"flex",gap:"10px"},children:[s.jsx("input",{value:r.method,onChange:Z=>l("method",Z.target.value.toUpperCase()),style:{...X,width:"80px",fontWeight:"bold",color:"#a78bfa"},placeholder:"GET"}),s.jsx("input",{value:r.url,onChange:Z=>l("url",Z.target.value),style:{...X,flex:1},placeholder:"https://api..."}),s.jsx("button",{onClick:F,disabled:r.isLoading,style:{background:r.isLoading?"#30363d":"#7c3aed",color:"white",border:"none",borderRadius:"4px",padding:"0 20px",cursor:r.isLoading?"wait":"pointer",display:"flex",alignItems:"center",gap:"5px",fontWeight:"bold"},children:r.isLoading?"Sending...":s.jsxs(s.Fragment,{children:[s.jsx(Ic,{size:14,fill:"currentColor"})," Send"]})})]}),s.jsxs("div",{style:{display:"flex",gap:"15px"},children:[s.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"5px"},children:[s.jsx("span",{style:{fontSize:"11px",color:"#8b949e",fontWeight:"bold"},children:"HEADERS (JSON)"}),s.jsx("textarea",{value:r.headers,onChange:Z=>l("headers",Z.target.value),style:{...X,height:"120px",resize:"vertical"}})]}),s.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"5px"},children:[s.jsx("span",{style:{fontSize:"11px",color:"#8b949e",fontWeight:"bold"},children:"BODY (JSON)"}),s.jsx("textarea",{value:r.body,onChange:Z=>l("body",Z.target.value),style:{...X,height:"120px",resize:"vertical"}})]})]}),r.status&&s.jsxs("div",{style:{marginTop:"10px",paddingTop:"15px",borderTop:"1px solid #30363d"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",marginBottom:"15px"},children:[s.jsx("span",{style:{fontSize:"11px",color:"#8b949e",fontWeight:"bold"},children:"LIVE RESPONSE:"}),s.jsx("span",{style:{backgroundColor:r.status<400?"rgba(52, 211, 153, 0.1)":"rgba(248, 113, 113, 0.1)",color:r.status<400?"#34d399":"#f87171",border:`1px solid ${r.status<400?"rgba(52, 211, 153, 0.2)":"rgba(248, 113, 113, 0.2)"}`,fontSize:"10px",padding:"2px 6px",borderRadius:"4px",fontWeight:"bold"},children:r.status})]}),s.jsx("div",{style:{padding:"15px",backgroundColor:"#05070a",borderRadius:"4px",border:"1px solid #30363d"},children:s.jsx(Pn,{label:null,value:r.response,isRoot:!0})})]})]});default:return null}};return s.jsxs("div",{ref:x,style:{display:"flex",width:"100%",height:"100%",backgroundColor:"#0d1117",color:"#c9d1d9",overflow:"hidden",userSelect:_?"none":"auto"},children:[s.jsxs("div",{style:{width:v,flexShrink:0,display:"flex",flexDirection:"column"},children:[s.jsx("div",{style:{padding:"15px 15px 10px 15px"},children:s.jsx("div",{style:{display:"flex",gap:"5px",overflowX:"auto",paddingBottom:"5px",scrollbarWidth:"none"},children:["ALL","REST","ACTION","ASSERT","ERROR"].map(T=>s.jsx("button",{onClick:()=>i(T),style:{background:o===T?"rgba(124, 58, 237, 0.1)":"transparent",border:"1px solid #30363d",color:o===T?"#a78bfa":"#8b949e",padding:"3px 8px",borderRadius:"4px",fontSize:"10px",cursor:"pointer"},children:T},T))})}),s.jsxs("div",{style:{display:"flex",padding:"6px 15px",borderTop:"1px solid #30363d",borderBottom:"1px solid #30363d",fontSize:"10px",fontWeight:"bold",color:"#8b949e",backgroundColor:"#161b22"},children:[s.jsx("div",{style:{flex:"1 1 auto",paddingRight:"8px"},children:"Name"}),s.jsx("div",{style:{width:"45px",flexShrink:0},children:"Method"}),s.jsx("div",{style:{width:"45px",flexShrink:0},children:"Status"}),s.jsx("div",{style:{width:"45px",flexShrink:0},children:"Type"}),s.jsx("div",{style:{width:"65px",flexShrink:0,textAlign:"right"},children:"Time"})]}),s.jsxs("div",{style:{flex:1,overflowY:"auto"},children:[R.map((T,X)=>{const Z=T.items.some(B=>B.status==="error"),lt=T.items.filter(B=>B.status==="error").length;return s.jsxs("div",{children:[s.jsxs("div",{style:{padding:"6px 15px",backgroundColor:Z?"rgba(248, 113, 113, 0.1)":"#161b22",borderBottom:Z?"1px solid rgba(248, 113, 113, 0.3)":"1px solid #30363d",fontSize:"11px",fontWeight:"bold",color:Z?"#f87171":"#a78bfa",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[s.jsx("span",{style:{opacity:.7},children:"📄"}),s.jsx("span",{children:T.fileName})]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[s.jsxs("button",{onClick:B=>{B.stopPropagation(),m(T.fileName),n(null)},style:{display:"flex",alignItems:"center",gap:"4px",backgroundColor:"rgba(52, 211, 153, 0.1)",color:"#34d399",border:"1px solid rgba(52, 211, 153, 0.3)",padding:"2px 8px",borderRadius:"4px",fontSize:"9px",fontWeight:"bold",cursor:"pointer",transition:"background 0.2s"},onMouseEnter:B=>B.currentTarget.style.backgroundColor="rgba(52, 211, 153, 0.2)",onMouseLeave:B=>B.currentTarget.style.backgroundColor="rgba(52, 211, 153, 0.1)",children:[s.jsx(uu,{size:10})," Watch"]}),Z&&s.jsxs("span",{style:{backgroundColor:"#f87171",color:"white",padding:"2px 6px",borderRadius:"10px",fontSize:"9px",fontWeight:"900"},children:[lt," ERROR",lt>1?"S":""]})]})]}),T.items.map(B=>{const{name:j,methodLabel:N,methodColor:P,typeLabel:H,statusLabel:J,statusColor:Ut}=vh(B);return s.jsxs("div",{onClick:()=>{n(B.id),m(null),a("Overview")},style:{display:"flex",alignItems:"center",padding:"8px 15px 8px 25px",cursor:"pointer",backgroundColor:t===B.id?"rgba(124, 58, 237, 0.15)":"transparent",borderBottom:"1px solid #21262d",fontSize:"11px",transition:"background 0.1s"},children:[s.jsx("div",{style:{flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",paddingRight:"8px",color:"#c9d1d9",fontWeight:t===B.id?"bold":"500"},children:j}),s.jsx("div",{style:{width:"45px",flexShrink:0,color:P,fontWeight:"bold"},children:N}),s.jsx("div",{style:{width:"45px",flexShrink:0,color:Ut,fontWeight:"bold"},children:J}),s.jsx("div",{style:{width:"45px",flexShrink:0,color:"#8b949e"},children:H}),s.jsx("div",{style:{width:"65px",flexShrink:0,textAlign:"right",color:"#6e7681",fontFamily:"monospace"},children:B.timestamp})]},B.id)})]},T.fileName+X)}),R.length===0&&s.jsx("div",{style:{padding:"20px",textAlign:"center",color:"#8b949e",fontSize:"11px"},children:"Awaiting execution..."})]})]}),s.jsx("div",{onMouseDown:()=>f(!0),onMouseEnter:T=>{T.currentTarget.style.backgroundColor="#7c3aed"},onMouseLeave:T=>{_||(T.currentTarget.style.backgroundColor="transparent")},style:{width:"5px",cursor:"col-resize",backgroundColor:_?"#7c3aed":"transparent",borderRight:_?"none":"1px solid #30363d",zIndex:10,transition:"background-color 0.2s ease"}}),s.jsx("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",backgroundColor:d?"#000":"#0d1117"},children:d?s.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[s.jsxs("div",{style:{padding:"12px 15px",borderBottom:"1px solid #30363d",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[s.jsx(uu,{size:14,color:"#34d399"}),s.jsxs("span",{style:{color:"white",fontWeight:"bold",fontSize:"12px"},children:["Session Replay: ",d]})]}),s.jsx("button",{onClick:()=>m(null),style:{background:"transparent",border:"none",color:"#8b949e",cursor:"pointer",fontSize:"12px"},children:"✕ Close"})]}),s.jsx("div",{style:{flex:1,padding:"20px",display:"flex",alignItems:"center",justifyContent:"center",backgroundImage:"radial-gradient(circle at center, #161b22 0%, #000 100%)"},children:s.jsx("video",{src:`http://${window.location.host}/videos/${d.replace(".flow","")}.webm`,controls:!0,autoPlay:!0,style:{maxWidth:"100%",maxHeight:"100%",boxShadow:"0 10px 30px rgba(0,0,0,0.5)",borderRadius:"8px",border:"1px solid #30363d"}},d)})]}):p?s.jsxs(s.Fragment,{children:[s.jsx("div",{style:{display:"flex",borderBottom:"1px solid #30363d",backgroundColor:"#0d1117"},children:w.map(T=>s.jsx("div",{onClick:()=>a(T),style:{padding:"12px 15px",fontSize:"11px",cursor:"pointer",color:u===T?"#a78bfa":"#8b949e",borderBottom:u===T?"2px solid #a78bfa":"none",fontWeight:T==="Replay"?"bold":"normal"},children:T==="Replay"?"▶ Replay":T},T))}),s.jsx("div",{style:{flex:1,padding:"20px",overflow:"auto"},children:s.jsx("div",{style:{minWidth:"fit-content"},children:ee()})})]}):s.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:.2},children:[s.jsx(Gi,{size:48}),s.jsx("p",{style:{marginTop:"10px"},children:"Select a log to inspect"})]})})]})},Sh=()=>{const{testScenarios:e,activeTestFile:t,activeStepId:n,setActiveStepId:r,isRunning:l}=we(),o=Array.from(new Set(e.map(f=>f.fileName))).filter(Boolean),[i,u]=M.useState(null),[a,d]=M.useState({}),m=M.useRef(null);M.useEffect(()=>{if(n){const f=setTimeout(()=>{const c=document.querySelector('[data-active-step="true"]');c&&c.scrollIntoView({behavior:"smooth",block:"nearest"})},60);return()=>clearTimeout(f)}},[n,t]),M.useEffect(()=>{var f;if(l){const c=(f=e.find(p=>p.steps.some(g=>g.status==="running")))==null?void 0:f.fileName;c&&c!==i&&u(c)}},[e,l,i]);const y=o.length;let h=0,x=0;o.forEach(f=>{const p=e.filter(g=>g.fileName===f).flatMap(g=>g.steps);p.length>0&&(p.some(g=>g.status==="failed")?x++:p.every(g=>["pass","passed","success"].includes(g.status))&&h++)});const v=f=>{u(i===f?null:f)},S=(f,c)=>{c.stopPropagation(),d(p=>({...p,[f]:!p[f]}))},_=(f,c=14)=>{switch(f){case"pass":case"passed":case"success":return s.jsx(Tc,{size:c,color:"#34d399"});case"failed":return s.jsx(_c,{size:c,color:"#f87171"});case"running":return s.jsx(Kp,{size:c,color:"#60a5fa",className:"animate-spin"});case"skipped":return s.jsx(su,{size:c,color:"#6e7681"});default:return s.jsx(su,{size:c,color:"#8b949e"})}};return s.jsxs("div",{style:{height:"100vh",display:"flex",flexDirection:"column",backgroundColor:"#0d1117",borderRight:"1px solid #30363d"},children:[s.jsxs("div",{style:{padding:"15px",borderBottom:"1px solid #30363d",flexShrink:0},children:[s.jsx("h2",{style:{fontSize:"12px",fontWeight:"bold",color:"#8b949e",margin:"0 0 12px 0"},children:"TEST FLOWS"}),s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:"8px",marginBottom:"12px"},children:[s.jsxs("div",{style:{backgroundColor:"#161b22",padding:"10px",borderRadius:"6px",border:"1px solid #30363d",textAlign:"center"},children:[s.jsx("div",{style:{fontSize:"18px",fontWeight:"bold",color:"#c9d1d9"},children:y}),s.jsx("div",{style:{fontSize:"10px",color:"#8b949e",marginTop:"2px"},children:"TOTAL"})]}),s.jsxs("div",{style:{backgroundColor:"rgba(52, 211, 153, 0.05)",padding:"10px",borderRadius:"6px",border:"1px solid rgba(52, 211, 153, 0.2)",textAlign:"center"},children:[s.jsx("div",{style:{fontSize:"18px",fontWeight:"bold",color:"#34d399"},children:h}),s.jsx("div",{style:{fontSize:"10px",color:"#34d399",marginTop:"2px"},children:"PASSED"})]}),s.jsxs("div",{style:{backgroundColor:"rgba(248, 113, 113, 0.05)",padding:"10px",borderRadius:"6px",border:"1px solid rgba(248, 113, 113, 0.2)",textAlign:"center"},children:[s.jsx("div",{style:{fontSize:"18px",fontWeight:"bold",color:"#f87171"},children:x}),s.jsx("div",{style:{fontSize:"10px",color:"#f87171",marginTop:"2px"},children:"FAILED"})]})]}),s.jsxs("div",{style:{position:"relative"},children:[s.jsx(Gi,{size:14,style:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",color:"#8b949e"}}),s.jsx("input",{placeholder:"Search flows...",style:{width:"100%",backgroundColor:"#05070a",border:"1px solid #30363d",color:"#c9d1d9",fontSize:"11px",padding:"6px 10px 6px 30px",borderRadius:"4px"}})]})]}),s.jsxs("div",{ref:m,style:{flex:1,overflowY:"auto",padding:"10px 0",scrollbarWidth:"thin"},children:[o.length===0&&s.jsx("div",{style:{padding:"20px",textAlign:"center",color:"#8b949e",fontSize:"11px"},children:"Awaiting execution..."}),o.map(f=>{const c=i===f,p=e.filter(w=>w.fileName===f),g=p.flatMap(w=>w.steps);let C="pending";g.length>0?g.some(w=>w.status==="failed")?C="failed":g.some(w=>w.status==="running")?C="running":g.every(w=>["pass","passed","success"].includes(w.status))&&(C="pass"):p.some(w=>w.status==="running")&&(C="running");const R=[];let E=null;return g.forEach(w=>{const F=`${w.type}-${w.description||"Action"}`;!E||E.id!==F?(E={id:F,type:w.type,desc:w.description,status:w.status,steps:[w]},R.push(E)):E.steps.push(w)}),R.forEach(w=>{w.steps.some(F=>F.status==="failed")?w.status="failed":w.steps.some(F=>F.status==="running")?w.status="running":w.steps.every(F=>["pass","passed","success"].includes(F.status))?w.status="pass":w.status="pending"}),s.jsxs("div",{style:{borderBottom:"1px solid #21262d"},children:[s.jsxs("div",{onClick:()=>v(f),onMouseEnter:w=>w.currentTarget.style.backgroundColor="rgba(124, 58, 237, 0.05)",onMouseLeave:w=>w.currentTarget.style.backgroundColor=c?"rgba(124, 58, 237, 0.05)":"transparent",style:{display:"flex",alignItems:"center",padding:"12px 15px",cursor:"pointer",backgroundColor:c?"rgba(124, 58, 237, 0.05)":"transparent",transition:"background 0.2s"},children:[c?s.jsx(iu,{size:14,color:"#8b949e",style:{marginRight:"8px",flexShrink:0}}):s.jsx(or,{size:14,color:"#8b949e",style:{marginRight:"8px",flexShrink:0}}),s.jsx("div",{style:{flexShrink:0,display:"flex",alignItems:"center"},children:_(C,16)}),s.jsx("span",{style:{marginLeft:"8px",fontSize:"13px",fontWeight:c?"bold":"600",color:c?"white":"#c9d1d9",flex:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:f})]}),c&&s.jsx("div",{style:{backgroundColor:"#05070a",padding:"5px 0"},children:R.length>0?R.map(w=>{const F=a[w.id]!==!1;return s.jsxs("div",{children:[s.jsxs("div",{onClick:L=>S(w.id,L),onMouseEnter:L=>L.currentTarget.style.backgroundColor="#161b22",onMouseLeave:L=>L.currentTarget.style.backgroundColor="transparent",style:{display:"flex",alignItems:"center",padding:"8px 15px 8px 35px",cursor:"pointer",borderLeft:"2px solid transparent",transition:"background-color 0.2s"},children:[F?s.jsx(iu,{size:12,color:"#6e7681",style:{marginRight:"6px",flexShrink:0}}):s.jsx(or,{size:12,color:"#6e7681",style:{marginRight:"6px",flexShrink:0}}),s.jsx("div",{style:{flexShrink:0,display:"flex",alignItems:"center"},children:_(w.status,12)}),s.jsx("span",{style:{color:"#a78bfa",fontWeight:"bold",fontSize:"11px",marginLeft:"6px",flexShrink:0},children:w.type}),w.desc&&s.jsxs("span",{style:{color:"#c9d1d9",fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginLeft:"4px"},children:['- "',w.desc,'"']})]}),F&&s.jsx("div",{style:{paddingBottom:"8px"},children:w.steps.map(L=>{const ee=n===`${f}:::${L.id}`||l&&n===L.id&&t===f;return s.jsxs("div",{onClick:()=>r(`${f}:::${L.id}`),"data-active-step":ee?"true":"false",style:{display:"flex",alignItems:"center",padding:"6px 15px 6px 65px",opacity:L.status==="pending"?.5:1,cursor:"pointer",backgroundColor:ee?"rgba(124, 58, 237, 0.15)":"transparent",borderLeft:ee?"3px solid #a78bfa":"3px solid transparent",transition:"all 0.2s ease"},children:[s.jsx("div",{style:{flexShrink:0,display:"flex",alignItems:"center"},children:_(L.status,10)}),s.jsx("span",{style:{color:ee?"#fff":"#8b949e",fontWeight:ee?"bold":"normal",fontFamily:"monospace",fontSize:"11px",flex:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",marginLeft:"8px"},children:L.command})]},L.id)})})]},w.id)}):s.jsx("div",{style:{padding:"20px",textAlign:"center",color:"#8b949e",fontSize:"11px"},children:"Awaiting execution..."})})]},f)})]})]})},wh=({isRightPanelOpen:e,onToggleRightPanel:t})=>{const{isRunning:n,timer:r,startExecution:l,stopExecution:o,incrementTimer:i,activeTestFile:u}=we();M.useEffect(()=>{let y;return n?y=setInterval(()=>{i()},1e3):clearInterval(y),()=>clearInterval(y)},[n,i]);const a=()=>{l(),dl("RERUN_REQ",{filePath:u})},d=()=>{o(),dl("STOP_REQ",{})},m=y=>{const h=Math.floor(y/60).toString().padStart(2,"0"),x=(y%60).toString().padStart(2,"0");return`00:${h}:${x}`};return s.jsxs("div",{style:{height:"50px",minHeight:"50px",borderBottom:"1px solid #30363d",display:"flex",alignItems:"center",padding:"0 20px",justifyContent:"space-between",backgroundColor:"#0d1117",flexShrink:0,zIndex:10},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[s.jsx("span",{style:{fontWeight:"bold",color:"#7c3aed",fontSize:"14px"},children:"Flowstride"}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",color:"#8b949e",fontSize:"12px"},children:[s.jsx("span",{children:"E2E"})," ",s.jsx(or,{size:12})," ",s.jsx("span",{style:{color:"white"},children:u})]}),(n||r>0)&&s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",padding:"4px 10px",backgroundColor:n?"rgba(34, 197, 94, 0.05)":"rgba(167, 139, 250, 0.05)",borderRadius:"20px",border:n?"1px solid rgba(34, 197, 94, 0.2)":"1px solid rgba(167, 139, 250, 0.2)"},children:[s.jsx("span",{style:{width:"6px",height:"6px",backgroundColor:n?"#22c55e":"#a78bfa",borderRadius:"50%",boxShadow:n?"0 0 8px #22c55e":"0 0 8px #a78bfa"}}),s.jsx("span",{style:{fontSize:"11px",color:n?"#22c55e":"#a78bfa",fontWeight:"600"},children:n?"Running":"Complete"}),s.jsx("span",{style:{fontSize:"11px",color:"white",fontFamily:"monospace"},children:m(r)})]})]}),s.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"center"},children:[s.jsx("button",{onClick:t,style:{background:"none",border:"1px solid #30363d",color:e?"#a78bfa":"#8b949e",padding:"5px 12px",borderRadius:"6px",cursor:"pointer"},children:e?s.jsx(qp,{size:16}):s.jsx(Jp,{size:16})}),s.jsx("div",{style:{width:"1px",height:"20px",backgroundColor:"#30363d",margin:"0 5px"}}),n?s.jsxs("button",{onClick:d,style:{background:"none",border:"1px solid #30363d",color:"#f87171",padding:"5px 12px",borderRadius:"6px",cursor:"pointer",display:"flex",alignItems:"center",gap:"6px"},children:[s.jsx(rh,{size:14,fill:"currentColor"})," Stop"]}):s.jsxs("button",{onClick:a,style:{background:"none",border:"1px solid #30363d",color:"#22c55e",padding:"5px 12px",borderRadius:"6px",cursor:"pointer",display:"flex",alignItems:"center",gap:"6px"},children:[s.jsx(Ic,{size:14,fill:"currentColor"})," Run"]}),s.jsxs("button",{onClick:a,style:{background:"none",border:"1px solid #30363d",color:"#8b949e",padding:"5px 12px",borderRadius:"6px",cursor:"pointer",display:"flex",alignItems:"center",gap:"6px"},children:[s.jsx(Fc,{size:14})," Rerun"]})]})]})};function kh(){const{activeView:e}=we(),[t,n]=M.useState(!0),[r,l]=M.useState(!1),o=()=>{switch(e){case"Flows":return s.jsxs(s.Fragment,{children:[s.jsx("aside",{style:{width:t?"280px":"0px",transition:"width 0.2s ease",overflow:"hidden",backgroundColor:"#0d1117",borderRight:t?"1px solid #30363d":"none",flexShrink:0},children:s.jsx("div",{style:{width:"280px"},children:s.jsx(Sh,{})})}),s.jsxs("main",{style:{flex:1,display:"flex",flexDirection:"column",height:"100vh",overflow:"hidden"},children:[s.jsx(wh,{isRightPanelOpen:r,onToggleRightPanel:()=>l(!r)}),s.jsx("div",{style:{flex:1,overflow:"hidden",position:"relative"},children:s.jsx(fh,{isRightPanelOpen:r})})]})]});case"Logs":return s.jsx(xh,{});case"Reports":return s.jsx(ph,{});case"TestCase":return s.jsx(gh,{});default:return s.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#0b0e14"},children:s.jsxs("h2",{style:{color:"#8b949e"},children:[e," (Under Construction)"]})})}};return s.jsxs("div",{style:{display:"flex",height:"100vh",width:"100vw",backgroundColor:"#0b0e14",color:"white",overflow:"hidden"},children:[s.jsx(uh,{isTestFlowsOpen:t,setTestFlowsOpen:n}),s.jsx("div",{style:{flex:1,display:"flex",height:"100vh",overflow:"hidden"},children:o()})]})}function Ch(){return M.useEffect(()=>(Mc(),()=>{mh()}),[]),s.jsx(kh,{})}const Eh=oo.createRoot(document.getElementById("root"));Eh.render(s.jsx(Ch,{}));
|