flowstride 1.0.21 → 1.0.22
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_BROWSER.md +40 -0
- package/NATIVE_CI.md +14 -2
- package/NATIVE_WORKFLOWS.md +44 -0
- package/README.md +8 -1
- package/dist/adapters/api/undici.d.ts +3 -1
- package/dist/adapters/api/undici.js +17 -3
- package/dist/adapters/web/playwright.js +23 -73
- package/dist/ci/runtime.js +9 -1
- package/dist/cli/commands/run.js +14 -4
- package/dist/cli/manual_server/workspace_server.js +90 -74
- package/dist/manual/security.d.ts +4 -4
- package/dist/native/accessibility.d.ts +2 -1
- package/dist/native/accessibility.js +22 -6
- package/dist/native/assertions.d.ts +2 -1
- package/dist/native/assertions.js +174 -91
- package/dist/native/deadline.d.ts +2 -0
- package/dist/native/deadline.js +13 -0
- package/dist/native/events.d.ts +3 -2
- package/dist/native/events.js +35 -8
- package/dist/native/functions.d.ts +2 -1
- package/dist/native/functions.js +34 -6
- package/dist/native/runtime.d.ts +3 -0
- package/dist/native/runtime.js +12 -6
- package/dist/parser/assertion_contract.d.ts +12 -0
- package/dist/parser/assertion_contract.js +56 -0
- package/dist/parser/parser.js +14 -6
- package/dist/reporting/assertion_result.d.ts +36 -0
- package/dist/reporting/assertion_result.js +104 -0
- package/dist/reporting/pdf_generator.js +25 -20
- package/dist/reporting/runtime_failure.d.ts +10 -0
- package/dist/reporting/runtime_failure.js +64 -0
- package/dist/reporting/step_status.d.ts +10 -0
- package/dist/reporting/step_status.js +44 -0
- package/dist/runner/flow_orchestrator.d.ts +1 -0
- package/dist/runner/flow_orchestrator.js +8 -3
- package/dist/runner/flow_worker.d.ts +8 -1
- package/dist/runner/flow_worker.js +119 -41
- package/dist/runner/plugin_manager.js +3 -0
- package/dist/runner/temporary_store.d.ts +1 -0
- package/dist/runner/temporary_store.js +3 -0
- package/dist/sdk/api_proxy.d.ts +3 -0
- package/dist/sdk/api_proxy.js +16 -0
- package/dist/security/localWorkspace.d.ts +2 -0
- package/dist/security/localWorkspace.js +17 -0
- package/dist/security/redaction.js +1 -1
- package/dist/types/index.d.ts +3 -0
- package/examples/native-workflows/README.md +144 -0
- package/examples/native-workflows/api-and-ui/README.md +80 -0
- package/examples/native-workflows/api-and-ui/flows/api-and-ui.flow +27 -0
- package/examples/native-workflows/api-and-ui/negative/wrong-backend-state.flow +27 -0
- package/examples/native-workflows/api-ui-otp/README.md +140 -0
- package/examples/native-workflows/api-ui-otp/templates/api-ui-otp.flow +31 -0
- package/examples/native-workflows/api-ui-otp/templates/existing-account-otp.flow +20 -0
- package/examples/native-workflows/audio-to-text/README.md +131 -0
- package/examples/native-workflows/audio-to-text/fixtures/microphone-tone.wav +0 -0
- package/examples/native-workflows/audio-to-text/flows/microphone-demo.flow +23 -0
- package/examples/native-workflows/audio-to-text/negative/wrong-transcript.flow +23 -0
- package/examples/native-workflows/audio-to-text/templates/real-transcription.flow +25 -0
- package/examples/native-workflows/iframes/README.md +116 -0
- package/examples/native-workflows/iframes/flows/explicit-frame-plugin.flow +20 -0
- package/examples/native-workflows/iframes/flows/readable-frame.flow +13 -0
- package/examples/native-workflows/iframes/negative/wrong-frame-result.flow +13 -0
- package/examples/native-workflows/iframes/plugins/frame-actions.ts +7 -0
- package/examples/native-workflows/manual-testing/README.md +85 -0
- package/examples/native-workflows/manual-testing/fixtures/profile-review-mismatch.json +93 -0
- package/examples/native-workflows/manual-testing/fixtures/profile-review.json +93 -0
- package/examples/native-workflows/shared/server.mjs +80 -0
- package/examples/native-workflows/tables-and-cells/README.md +118 -0
- package/examples/native-workflows/tables-and-cells/flows/coordinates.flow +17 -0
- package/examples/native-workflows/tables-and-cells/flows/search-extract-reuse.flow +27 -0
- package/examples/native-workflows/tables-and-cells/negative/wrong-cell-value.flow +27 -0
- package/examples/native-workflows/variables-and-reuse/README.md +140 -0
- package/examples/native-workflows/variables-and-reuse/flows/reuse.flow +9 -0
- package/examples/native-workflows/variables-and-reuse/flows/setup.first.flow +27 -0
- package/examples/native-workflows/variables-and-reuse/negative/wrong-reused-value.flow +27 -0
- package/examples/native-workflows/variables-and-reuse/sessions/restore.flow +10 -0
- package/examples/native-workflows/variables-and-reuse/sessions/save.flow +29 -0
- package/package.json +11 -8
- package/src/ui/dist/assets/index-s0WYkGPt.js +636 -0
- package/src/ui/dist/index.html +1 -1
- package/src/ui/dist/assets/index-DglsL_J2.js +0 -636
|
@@ -0,0 +1,636 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function kd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ed={exports:{}},ul={},jd={exports:{}},ce={};/**
|
|
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 Oo=Symbol.for("react.element"),zg=Symbol.for("react.portal"),Lg=Symbol.for("react.fragment"),Ag=Symbol.for("react.strict_mode"),Ng=Symbol.for("react.profiler"),Dg=Symbol.for("react.provider"),Pg=Symbol.for("react.context"),Og=Symbol.for("react.forward_ref"),Fg=Symbol.for("react.suspense"),Mg=Symbol.for("react.memo"),Wg=Symbol.for("react.lazy"),$c=Symbol.iterator;function Bg(e){return e===null||typeof e!="object"?null:(e=$c&&e[$c]||e["@@iterator"],typeof e=="function"?e:null)}var Cd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Td=Object.assign,Rd={};function Or(e,t,n){this.props=e,this.context=t,this.refs=Rd,this.updater=n||Cd}Or.prototype.isReactComponent={};Or.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")};Or.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Id(){}Id.prototype=Or.prototype;function ka(e,t,n){this.props=e,this.context=t,this.refs=Rd,this.updater=n||Cd}var Ea=ka.prototype=new Id;Ea.constructor=ka;Td(Ea,Or.prototype);Ea.isPureReactComponent=!0;var Hc=Array.isArray,zd=Object.prototype.hasOwnProperty,ja={current:null},Ld={key:!0,ref:!0,__self:!0,__source:!0};function Ad(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)zd.call(t,r)&&!Ld.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var c=Array(a),u=0;u<a;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Oo,type:e,key:i,ref:s,props:o,_owner:ja.current}}function Ug(e,t){return{$$typeof:Oo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ca(e){return typeof e=="object"&&e!==null&&e.$$typeof===Oo}function $g(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Vc=/\/+/g;function $l(e,t){return typeof e=="object"&&e!==null&&e.key!=null?$g(""+e.key):t.toString(36)}function Si(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Oo:case zg:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+$l(s,0):r,Hc(o)?(n="",e!=null&&(n=e.replace(Vc,"$&/")+"/"),Si(o,t,n,"",function(u){return u})):o!=null&&(Ca(o)&&(o=Ug(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(Vc,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",Hc(e))for(var a=0;a<e.length;a++){i=e[a];var c=r+$l(i,a);s+=Si(i,t,n,c,o)}else if(c=Bg(e),typeof c=="function")for(e=c.call(e),a=0;!(i=e.next()).done;)i=i.value,c=r+$l(i,a++),s+=Si(i,t,n,c,o);else if(i==="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 s}function ni(e,t,n){if(e==null)return e;var r=[],o=0;return Si(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Hg(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 ot={current:null},bi={transition:null},Vg={ReactCurrentDispatcher:ot,ReactCurrentBatchConfig:bi,ReactCurrentOwner:ja};function Nd(){throw Error("act(...) is not supported in production builds of React.")}ce.Children={map:ni,forEach:function(e,t,n){ni(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ni(e,function(){t++}),t},toArray:function(e){return ni(e,function(t){return t})||[]},only:function(e){if(!Ca(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ce.Component=Or;ce.Fragment=Lg;ce.Profiler=Ng;ce.PureComponent=ka;ce.StrictMode=Ag;ce.Suspense=Fg;ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vg;ce.act=Nd;ce.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=Td({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=ja.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(c in t)zd.call(t,c)&&!Ld.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&a!==void 0?a[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){a=Array(c);for(var u=0;u<c;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Oo,type:e.type,key:o,ref:i,props:r,_owner:s}};ce.createContext=function(e){return e={$$typeof:Pg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Dg,_context:e},e.Consumer=e};ce.createElement=Ad;ce.createFactory=function(e){var t=Ad.bind(null,e);return t.type=e,t};ce.createRef=function(){return{current:null}};ce.forwardRef=function(e){return{$$typeof:Og,render:e}};ce.isValidElement=Ca;ce.lazy=function(e){return{$$typeof:Wg,_payload:{_status:-1,_result:e},_init:Hg}};ce.memo=function(e,t){return{$$typeof:Mg,type:e,compare:t===void 0?null:t}};ce.startTransition=function(e){var t=bi.transition;bi.transition={};try{e()}finally{bi.transition=t}};ce.unstable_act=Nd;ce.useCallback=function(e,t){return ot.current.useCallback(e,t)};ce.useContext=function(e){return ot.current.useContext(e)};ce.useDebugValue=function(){};ce.useDeferredValue=function(e){return ot.current.useDeferredValue(e)};ce.useEffect=function(e,t){return ot.current.useEffect(e,t)};ce.useId=function(){return ot.current.useId()};ce.useImperativeHandle=function(e,t,n){return ot.current.useImperativeHandle(e,t,n)};ce.useInsertionEffect=function(e,t){return ot.current.useInsertionEffect(e,t)};ce.useLayoutEffect=function(e,t){return ot.current.useLayoutEffect(e,t)};ce.useMemo=function(e,t){return ot.current.useMemo(e,t)};ce.useReducer=function(e,t,n){return ot.current.useReducer(e,t,n)};ce.useRef=function(e){return ot.current.useRef(e)};ce.useState=function(e){return ot.current.useState(e)};ce.useSyncExternalStore=function(e,t,n){return ot.current.useSyncExternalStore(e,t,n)};ce.useTransition=function(){return ot.current.useTransition()};ce.version="18.3.1";jd.exports=ce;var b=jd.exports;const Gg=kd(b);/**
|
|
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 Yg=b,Xg=Symbol.for("react.element"),Qg=Symbol.for("react.fragment"),Kg=Object.prototype.hasOwnProperty,qg=Yg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Zg={key:!0,ref:!0,__self:!0,__source:!0};function Dd(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Kg.call(t,r)&&!Zg.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Xg,type:e,key:i,ref:s,props:o,_owner:qg.current}}ul.Fragment=Qg;ul.jsx=Dd;ul.jsxs=Dd;Ed.exports=ul;var l=Ed.exports,js={},Pd={exports:{}},_t={},Od={exports:{}},Fd={};/**
|
|
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(T,z){var E=T.length;T.push(z);e:for(;0<E;){var P=E-1>>>1,N=T[P];if(0<o(N,z))T[P]=z,T[E]=N,E=P;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var z=T[0],E=T.pop();if(E!==z){T[0]=E;e:for(var P=0,N=T.length,X=N>>>1;P<X;){var Z=2*(P+1)-1,ve=T[Z],le=Z+1,de=T[le];if(0>o(ve,E))le<N&&0>o(de,ve)?(T[P]=de,T[le]=E,P=le):(T[P]=ve,T[Z]=E,P=Z);else if(le<N&&0>o(de,E))T[P]=de,T[le]=E,P=le;else break e}}return z}function o(T,z){var E=T.sortIndex-z.sortIndex;return E!==0?E:T.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var c=[],u=[],m=1,h=null,x=3,y=!1,w=!1,_=!1,L=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,f=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(T){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=T)r(u),z.sortIndex=z.expirationTime,t(c,z);else break;z=n(u)}}function v(T){if(_=!1,p(T),!w)if(n(c)!==null)w=!0,xe(R);else{var z=n(u);z!==null&&q(v,z.startTime-T)}}function R(T,z){w=!1,_&&(_=!1,d(k),k=-1),y=!0;var E=x;try{for(p(z),h=n(c);h!==null&&(!(h.expirationTime>z)||T&&!oe());){var P=h.callback;if(typeof P=="function"){h.callback=null,x=h.priorityLevel;var N=P(h.expirationTime<=z);z=e.unstable_now(),typeof N=="function"?h.callback=N:h===n(c)&&r(c),p(z)}else r(c);h=n(c)}if(h!==null)var X=!0;else{var Z=n(u);Z!==null&&q(v,Z.startTime-z),X=!1}return X}finally{h=null,x=E,y=!1}}var I=!1,D=null,k=-1,H=5,B=-1;function oe(){return!(e.unstable_now()-B<H)}function ie(){if(D!==null){var T=e.unstable_now();B=T;var z=!0;try{z=D(!0,T)}finally{z?M():(I=!1,D=null)}}else I=!1}var M;if(typeof f=="function")M=function(){f(ie)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,ne=re.port2;re.port1.onmessage=ie,M=function(){ne.postMessage(null)}}else M=function(){L(ie,0)};function xe(T){D=T,I||(I=!0,M())}function q(T,z){k=L(function(){T(e.unstable_now())},z)}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(T){T.callback=null},e.unstable_continueExecution=function(){w||y||(w=!0,xe(R))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(T){switch(x){case 1:case 2:case 3:var z=3;break;default:z=x}var E=x;x=z;try{return T()}finally{x=E}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,z){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var E=x;x=T;try{return z()}finally{x=E}},e.unstable_scheduleCallback=function(T,z,E){var P=e.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0<E?P+E:P):E=P,T){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=E+N,T={id:m++,callback:z,priorityLevel:T,startTime:E,expirationTime:N,sortIndex:-1},E>P?(T.sortIndex=E,t(u,T),n(c)===null&&T===n(u)&&(_?(d(k),k=-1):_=!0,q(v,E-P))):(T.sortIndex=N,t(c,T),w||y||(w=!0,xe(R))),T},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(T){var z=x;return function(){var E=x;x=z;try{return T.apply(this,arguments)}finally{x=E}}}})(Fd);Od.exports=Fd;var Jg=Od.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 eh=b,vt=Jg;function W(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 Md=new Set,_o={};function Kn(e,t){Cr(e,t),Cr(e+"Capture",t)}function Cr(e,t){for(_o[e]=t,e=0;e<t.length;e++)Md.add(t[e])}var qt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cs=Object.prototype.hasOwnProperty,th=/^[: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]*$/,Gc={},Yc={};function nh(e){return Cs.call(Yc,e)?!0:Cs.call(Gc,e)?!1:th.test(e)?Yc[e]=!0:(Gc[e]=!0,!1)}function rh(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 oh(e,t,n,r){if(t===null||typeof t>"u"||rh(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 it(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new it(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new it(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new it(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new it(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){Xe[e]=new it(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new it(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new it(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new it(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new it(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ta=/[\-:]([a-z])/g;function Ra(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(Ta,Ra);Xe[t]=new it(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(Ta,Ra);Xe[t]=new it(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(Ta,Ra);Xe[t]=new it(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new it(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new it("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new it(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ia(e,t,n,r){var o=Xe.hasOwnProperty(t)?Xe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(oh(t,n,o,r)&&(n=null),r||o===null?nh(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var nn=eh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ri=Symbol.for("react.element"),ar=Symbol.for("react.portal"),cr=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Ts=Symbol.for("react.profiler"),Wd=Symbol.for("react.provider"),Bd=Symbol.for("react.context"),La=Symbol.for("react.forward_ref"),Rs=Symbol.for("react.suspense"),Is=Symbol.for("react.suspense_list"),Aa=Symbol.for("react.memo"),dn=Symbol.for("react.lazy"),Ud=Symbol.for("react.offscreen"),Xc=Symbol.iterator;function Hr(e){return e===null||typeof e!="object"?null:(e=Xc&&e[Xc]||e["@@iterator"],typeof e=="function"?e:null)}var Ie=Object.assign,Hl;function to(e){if(Hl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Hl=t&&t[1]||""}return`
|
|
34
|
+
`+Hl+e}var Vl=!1;function Gl(e,t){if(!e||Vl)return"";Vl=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
35
|
+
`),i=r.stack.split(`
|
|
36
|
+
`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var c=`
|
|
37
|
+
`+o[s].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=s&&0<=a);break}}}finally{Vl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?to(e):""}function ih(e){switch(e.tag){case 5:return to(e.type);case 16:return to("Lazy");case 13:return to("Suspense");case 19:return to("SuspenseList");case 0:case 2:case 15:return e=Gl(e.type,!1),e;case 11:return e=Gl(e.type.render,!1),e;case 1:return e=Gl(e.type,!0),e;default:return""}}function zs(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 cr:return"Fragment";case ar:return"Portal";case Ts:return"Profiler";case za:return"StrictMode";case Rs:return"Suspense";case Is:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Bd:return(e.displayName||"Context")+".Consumer";case Wd:return(e._context.displayName||"Context")+".Provider";case La:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Aa:return t=e.displayName||null,t!==null?t:zs(e.type)||"Memo";case dn:t=e._payload,e=e._init;try{return zs(e(t))}catch{}}return null}function lh(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 zs(t);case 8:return t===za?"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 Cn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $d(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sh(e){var t=$d(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oi(e){e._valueTracker||(e._valueTracker=sh(e))}function Hd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$d(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Oi(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 Ls(e,t){var n=t.checked;return Ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Cn(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 Vd(e,t){t=t.checked,t!=null&&Ia(e,"checked",t,!1)}function As(e,t){Vd(e,t);var n=Cn(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")?Ns(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ns(e,t.type,Cn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Kc(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 Ns(e,t,n){(t!=="number"||Oi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var no=Array.isArray;function _r(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Cn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ds(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(W(91));return Ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function qc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(W(92));if(no(n)){if(1<n.length)throw Error(W(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Cn(n)}}function Gd(e,t){var n=Cn(t.value),r=Cn(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 Zc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Yd(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 Ps(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Yd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ii,Xd=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ii=ii||document.createElement("div"),ii.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ii.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ao={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},ah=["Webkit","ms","Moz","O"];Object.keys(ao).forEach(function(e){ah.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ao[t]=ao[e]})});function Qd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ao.hasOwnProperty(e)&&ao[e]?(""+t).trim():t+"px"}function Kd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Qd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var ch=Ie({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 Os(e,t){if(t){if(ch[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function Fs(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 Ms=null;function Na(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ws=null,wr=null,Sr=null;function Jc(e){if(e=Wo(e)){if(typeof Ws!="function")throw Error(W(280));var t=e.stateNode;t&&(t=hl(t),Ws(e.stateNode,e.type,t))}}function qd(e){wr?Sr?Sr.push(e):Sr=[e]:wr=e}function Zd(){if(wr){var e=wr,t=Sr;if(Sr=wr=null,Jc(e),t)for(e=0;e<t.length;e++)Jc(t[e])}}function Jd(e,t){return e(t)}function ef(){}var Yl=!1;function tf(e,t,n){if(Yl)return e(t,n);Yl=!0;try{return Jd(e,t,n)}finally{Yl=!1,(wr!==null||Sr!==null)&&(ef(),Zd())}}function So(e,t){var n=e.stateNode;if(n===null)return null;var r=hl(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(W(231,t,typeof n));return n}var Bs=!1;if(qt)try{var Vr={};Object.defineProperty(Vr,"passive",{get:function(){Bs=!0}}),window.addEventListener("test",Vr,Vr),window.removeEventListener("test",Vr,Vr)}catch{Bs=!1}function uh(e,t,n,r,o,i,s,a,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(m){this.onError(m)}}var co=!1,Fi=null,Mi=!1,Us=null,dh={onError:function(e){co=!0,Fi=e}};function fh(e,t,n,r,o,i,s,a,c){co=!1,Fi=null,uh.apply(dh,arguments)}function ph(e,t,n,r,o,i,s,a,c){if(fh.apply(this,arguments),co){if(co){var u=Fi;co=!1,Fi=null}else throw Error(W(198));Mi||(Mi=!0,Us=u)}}function qn(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 nf(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 eu(e){if(qn(e)!==e)throw Error(W(188))}function gh(e){var t=e.alternate;if(!t){if(t=qn(e),t===null)throw Error(W(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return eu(o),e;if(i===r)return eu(o),t;i=i.sibling}throw Error(W(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(W(189))}}if(n.alternate!==r)throw Error(W(190))}if(n.tag!==3)throw Error(W(188));return n.stateNode.current===n?e:t}function rf(e){return e=gh(e),e!==null?of(e):null}function of(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=of(e);if(t!==null)return t;e=e.sibling}return null}var lf=vt.unstable_scheduleCallback,tu=vt.unstable_cancelCallback,hh=vt.unstable_shouldYield,xh=vt.unstable_requestPaint,Ae=vt.unstable_now,yh=vt.unstable_getCurrentPriorityLevel,Da=vt.unstable_ImmediatePriority,sf=vt.unstable_UserBlockingPriority,Wi=vt.unstable_NormalPriority,mh=vt.unstable_LowPriority,af=vt.unstable_IdlePriority,dl=null,$t=null;function vh(e){if($t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(dl,e,void 0,(e.current.flags&128)===128)}catch{}}var At=Math.clz32?Math.clz32:Sh,_h=Math.log,wh=Math.LN2;function Sh(e){return e>>>=0,e===0?32:31-(_h(e)/wh|0)|0}var li=64,si=4194304;function ro(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 Bi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=ro(a):(i&=s,i!==0&&(r=ro(i)))}else s=n&~o,s!==0?r=ro(s):i!==0&&(r=ro(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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-At(t),o=1<<n,r|=e[n],t&=~o;return r}function bh(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 kh(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-At(i),a=1<<s,c=o[s];c===-1?(!(a&n)||a&r)&&(o[s]=bh(a,t)):c<=t&&(e.expiredLanes|=a),i&=~a}}function $s(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function cf(){var e=li;return li<<=1,!(li&4194240)&&(li=64),e}function Xl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Fo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-At(t),e[t]=n}function Eh(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 o=31-At(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Pa(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-At(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ye=0;function uf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var df,Oa,ff,pf,gf,Hs=!1,ai=[],vn=null,_n=null,wn=null,bo=new Map,ko=new Map,pn=[],jh="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 nu(e,t){switch(e){case"focusin":case"focusout":vn=null;break;case"dragenter":case"dragleave":_n=null;break;case"mouseover":case"mouseout":wn=null;break;case"pointerover":case"pointerout":bo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ko.delete(t.pointerId)}}function Gr(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Wo(t),t!==null&&Oa(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Ch(e,t,n,r,o){switch(t){case"focusin":return vn=Gr(vn,e,t,n,r,o),!0;case"dragenter":return _n=Gr(_n,e,t,n,r,o),!0;case"mouseover":return wn=Gr(wn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return bo.set(i,Gr(bo.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ko.set(i,Gr(ko.get(i)||null,e,t,n,r,o)),!0}return!1}function hf(e){var t=Wn(e.target);if(t!==null){var n=qn(t);if(n!==null){if(t=n.tag,t===13){if(t=nf(n),t!==null){e.blockedOn=t,gf(e.priority,function(){ff(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 ki(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ms=r,n.target.dispatchEvent(r),Ms=null}else return t=Wo(n),t!==null&&Oa(t),e.blockedOn=n,!1;t.shift()}return!0}function ru(e,t,n){ki(e)&&n.delete(t)}function Th(){Hs=!1,vn!==null&&ki(vn)&&(vn=null),_n!==null&&ki(_n)&&(_n=null),wn!==null&&ki(wn)&&(wn=null),bo.forEach(ru),ko.forEach(ru)}function Yr(e,t){e.blockedOn===t&&(e.blockedOn=null,Hs||(Hs=!0,vt.unstable_scheduleCallback(vt.unstable_NormalPriority,Th)))}function Eo(e){function t(o){return Yr(o,e)}if(0<ai.length){Yr(ai[0],e);for(var n=1;n<ai.length;n++){var r=ai[n];r.blockedOn===e&&(r.blockedOn=null)}}for(vn!==null&&Yr(vn,e),_n!==null&&Yr(_n,e),wn!==null&&Yr(wn,e),bo.forEach(t),ko.forEach(t),n=0;n<pn.length;n++)r=pn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<pn.length&&(n=pn[0],n.blockedOn===null);)hf(n),n.blockedOn===null&&pn.shift()}var br=nn.ReactCurrentBatchConfig,Ui=!0;function Rh(e,t,n,r){var o=ye,i=br.transition;br.transition=null;try{ye=1,Fa(e,t,n,r)}finally{ye=o,br.transition=i}}function Ih(e,t,n,r){var o=ye,i=br.transition;br.transition=null;try{ye=4,Fa(e,t,n,r)}finally{ye=o,br.transition=i}}function Fa(e,t,n,r){if(Ui){var o=Vs(e,t,n,r);if(o===null)os(e,t,r,$i,n),nu(e,r);else if(Ch(o,e,t,n,r))r.stopPropagation();else if(nu(e,r),t&4&&-1<jh.indexOf(e)){for(;o!==null;){var i=Wo(o);if(i!==null&&df(i),i=Vs(e,t,n,r),i===null&&os(e,t,r,$i,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else os(e,t,r,null,n)}}var $i=null;function Vs(e,t,n,r){if($i=null,e=Na(r),e=Wn(e),e!==null)if(t=qn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=nf(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 $i=e,null}function xf(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(yh()){case Da:return 1;case sf:return 4;case Wi:case mh:return 16;case af:return 536870912;default:return 16}default:return 16}}var yn=null,Ma=null,Ei=null;function yf(){if(Ei)return Ei;var e,t=Ma,n=t.length,r,o="value"in yn?yn.value:yn.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return Ei=o.slice(e,1<r?1-r:void 0)}function ji(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 ci(){return!0}function ou(){return!1}function wt(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ci:ou,this.isPropagationStopped=ou,this}return Ie(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=ci)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ci)},persist:function(){},isPersistent:ci}),t}var Fr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wa=wt(Fr),Mo=Ie({},Fr,{view:0,detail:0}),zh=wt(Mo),Ql,Kl,Xr,fl=Ie({},Mo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ba,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Xr&&(Xr&&e.type==="mousemove"?(Ql=e.screenX-Xr.screenX,Kl=e.screenY-Xr.screenY):Kl=Ql=0,Xr=e),Ql)},movementY:function(e){return"movementY"in e?e.movementY:Kl}}),iu=wt(fl),Lh=Ie({},fl,{dataTransfer:0}),Ah=wt(Lh),Nh=Ie({},Mo,{relatedTarget:0}),ql=wt(Nh),Dh=Ie({},Fr,{animationName:0,elapsedTime:0,pseudoElement:0}),Ph=wt(Dh),Oh=Ie({},Fr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fh=wt(Oh),Mh=Ie({},Fr,{data:0}),lu=wt(Mh),Wh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bh={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"},Uh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $h(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Uh[e])?!!t[e]:!1}function Ba(){return $h}var Hh=Ie({},Mo,{key:function(e){if(e.key){var t=Wh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ji(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Bh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ba,charCode:function(e){return e.type==="keypress"?ji(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ji(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Vh=wt(Hh),Gh=Ie({},fl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),su=wt(Gh),Yh=Ie({},Mo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ba}),Xh=wt(Yh),Qh=Ie({},Fr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Kh=wt(Qh),qh=Ie({},fl,{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}),Zh=wt(qh),Jh=[9,13,27,32],Ua=qt&&"CompositionEvent"in window,uo=null;qt&&"documentMode"in document&&(uo=document.documentMode);var e0=qt&&"TextEvent"in window&&!uo,mf=qt&&(!Ua||uo&&8<uo&&11>=uo),au=" ",cu=!1;function vf(e,t){switch(e){case"keyup":return Jh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _f(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ur=!1;function t0(e,t){switch(e){case"compositionend":return _f(t);case"keypress":return t.which!==32?null:(cu=!0,au);case"textInput":return e=t.data,e===au&&cu?null:e;default:return null}}function n0(e,t){if(ur)return e==="compositionend"||!Ua&&vf(e,t)?(e=yf(),Ei=Ma=yn=null,ur=!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 mf&&t.locale!=="ko"?null:t.data;default:return null}}var r0={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 uu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!r0[e.type]:t==="textarea"}function wf(e,t,n,r){qd(r),t=Hi(t,"onChange"),0<t.length&&(n=new Wa("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var fo=null,jo=null;function o0(e){Lf(e,0)}function pl(e){var t=pr(e);if(Hd(t))return e}function i0(e,t){if(e==="change")return t}var Sf=!1;if(qt){var Zl;if(qt){var Jl="oninput"in document;if(!Jl){var du=document.createElement("div");du.setAttribute("oninput","return;"),Jl=typeof du.oninput=="function"}Zl=Jl}else Zl=!1;Sf=Zl&&(!document.documentMode||9<document.documentMode)}function fu(){fo&&(fo.detachEvent("onpropertychange",bf),jo=fo=null)}function bf(e){if(e.propertyName==="value"&&pl(jo)){var t=[];wf(t,jo,e,Na(e)),tf(o0,t)}}function l0(e,t,n){e==="focusin"?(fu(),fo=t,jo=n,fo.attachEvent("onpropertychange",bf)):e==="focusout"&&fu()}function s0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pl(jo)}function a0(e,t){if(e==="click")return pl(t)}function c0(e,t){if(e==="input"||e==="change")return pl(t)}function u0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:u0;function Co(e,t){if(Dt(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 o=n[r];if(!Cs.call(t,o)||!Dt(e[o],t[o]))return!1}return!0}function pu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gu(e,t){var n=pu(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=pu(n)}}function kf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ef(){for(var e=window,t=Oi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Oi(e.document)}return t}function $a(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 d0(e){var t=Ef(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&kf(n.ownerDocument.documentElement,n)){if(r!==null&&$a(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=gu(n,i);var s=gu(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 f0=qt&&"documentMode"in document&&11>=document.documentMode,dr=null,Gs=null,po=null,Ys=!1;function hu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ys||dr==null||dr!==Oi(r)||(r=dr,"selectionStart"in r&&$a(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}),po&&Co(po,r)||(po=r,r=Hi(Gs,"onSelect"),0<r.length&&(t=new Wa("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=dr)))}function ui(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fr={animationend:ui("Animation","AnimationEnd"),animationiteration:ui("Animation","AnimationIteration"),animationstart:ui("Animation","AnimationStart"),transitionend:ui("Transition","TransitionEnd")},es={},jf={};qt&&(jf=document.createElement("div").style,"AnimationEvent"in window||(delete fr.animationend.animation,delete fr.animationiteration.animation,delete fr.animationstart.animation),"TransitionEvent"in window||delete fr.transitionend.transition);function gl(e){if(es[e])return es[e];if(!fr[e])return e;var t=fr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in jf)return es[e]=t[n];return e}var Cf=gl("animationend"),Tf=gl("animationiteration"),Rf=gl("animationstart"),If=gl("transitionend"),zf=new Map,xu="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 In(e,t){zf.set(e,t),Kn(t,[e])}for(var ts=0;ts<xu.length;ts++){var ns=xu[ts],p0=ns.toLowerCase(),g0=ns[0].toUpperCase()+ns.slice(1);In(p0,"on"+g0)}In(Cf,"onAnimationEnd");In(Tf,"onAnimationIteration");In(Rf,"onAnimationStart");In("dblclick","onDoubleClick");In("focusin","onFocus");In("focusout","onBlur");In(If,"onTransitionEnd");Cr("onMouseEnter",["mouseout","mouseover"]);Cr("onMouseLeave",["mouseout","mouseover"]);Cr("onPointerEnter",["pointerout","pointerover"]);Cr("onPointerLeave",["pointerout","pointerover"]);Kn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Kn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Kn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Kn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Kn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Kn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oo="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(" "),h0=new Set("cancel close invalid load scroll toggle".split(" ").concat(oo));function yu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ph(r,t,void 0,e),e.currentTarget=null}function Lf(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],c=a.instance,u=a.currentTarget;if(a=a.listener,c!==i&&o.isPropagationStopped())break e;yu(o,a,u),i=c}else for(s=0;s<r.length;s++){if(a=r[s],c=a.instance,u=a.currentTarget,a=a.listener,c!==i&&o.isPropagationStopped())break e;yu(o,a,u),i=c}}}if(Mi)throw e=Us,Mi=!1,Us=null,e}function Se(e,t){var n=t[Zs];n===void 0&&(n=t[Zs]=new Set);var r=e+"__bubble";n.has(r)||(Af(t,e,2,!1),n.add(r))}function rs(e,t,n){var r=0;t&&(r|=4),Af(n,e,r,t)}var di="_reactListening"+Math.random().toString(36).slice(2);function To(e){if(!e[di]){e[di]=!0,Md.forEach(function(n){n!=="selectionchange"&&(h0.has(n)||rs(n,!1,e),rs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[di]||(t[di]=!0,rs("selectionchange",!1,t))}}function Af(e,t,n,r){switch(xf(t)){case 1:var o=Rh;break;case 4:o=Ih;break;default:o=Fa}n=o.bind(null,t,n,e),o=void 0,!Bs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function os(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var c=s.tag;if((c===3||c===4)&&(c=s.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;s=s.return}for(;a!==null;){if(s=Wn(a),s===null)return;if(c=s.tag,c===5||c===6){r=i=s;continue e}a=a.parentNode}}r=r.return}tf(function(){var u=i,m=Na(n),h=[];e:{var x=zf.get(e);if(x!==void 0){var y=Wa,w=e;switch(e){case"keypress":if(ji(n)===0)break e;case"keydown":case"keyup":y=Vh;break;case"focusin":w="focus",y=ql;break;case"focusout":w="blur",y=ql;break;case"beforeblur":case"afterblur":y=ql;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":y=iu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Ah;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Xh;break;case Cf:case Tf:case Rf:y=Ph;break;case If:y=Kh;break;case"scroll":y=zh;break;case"wheel":y=Zh;break;case"copy":case"cut":case"paste":y=Fh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=su}var _=(t&4)!==0,L=!_&&e==="scroll",d=_?x!==null?x+"Capture":null:x;_=[];for(var f=u,p;f!==null;){p=f;var v=p.stateNode;if(p.tag===5&&v!==null&&(p=v,d!==null&&(v=So(f,d),v!=null&&_.push(Ro(f,v,p)))),L)break;f=f.return}0<_.length&&(x=new y(x,w,null,n,m),h.push({event:x,listeners:_}))}}if(!(t&7)){e:{if(x=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",x&&n!==Ms&&(w=n.relatedTarget||n.fromElement)&&(Wn(w)||w[Zt]))break e;if((y||x)&&(x=m.window===m?m:(x=m.ownerDocument)?x.defaultView||x.parentWindow:window,y?(w=n.relatedTarget||n.toElement,y=u,w=w?Wn(w):null,w!==null&&(L=qn(w),w!==L||w.tag!==5&&w.tag!==6)&&(w=null)):(y=null,w=u),y!==w)){if(_=iu,v="onMouseLeave",d="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(_=su,v="onPointerLeave",d="onPointerEnter",f="pointer"),L=y==null?x:pr(y),p=w==null?x:pr(w),x=new _(v,f+"leave",y,n,m),x.target=L,x.relatedTarget=p,v=null,Wn(m)===u&&(_=new _(d,f+"enter",w,n,m),_.target=p,_.relatedTarget=L,v=_),L=v,y&&w)t:{for(_=y,d=w,f=0,p=_;p;p=rr(p))f++;for(p=0,v=d;v;v=rr(v))p++;for(;0<f-p;)_=rr(_),f--;for(;0<p-f;)d=rr(d),p--;for(;f--;){if(_===d||d!==null&&_===d.alternate)break t;_=rr(_),d=rr(d)}_=null}else _=null;y!==null&&mu(h,x,y,_,!1),w!==null&&L!==null&&mu(h,L,w,_,!0)}}e:{if(x=u?pr(u):window,y=x.nodeName&&x.nodeName.toLowerCase(),y==="select"||y==="input"&&x.type==="file")var R=i0;else if(uu(x))if(Sf)R=c0;else{R=s0;var I=l0}else(y=x.nodeName)&&y.toLowerCase()==="input"&&(x.type==="checkbox"||x.type==="radio")&&(R=a0);if(R&&(R=R(e,u))){wf(h,R,n,m);break e}I&&I(e,x,u),e==="focusout"&&(I=x._wrapperState)&&I.controlled&&x.type==="number"&&Ns(x,"number",x.value)}switch(I=u?pr(u):window,e){case"focusin":(uu(I)||I.contentEditable==="true")&&(dr=I,Gs=u,po=null);break;case"focusout":po=Gs=dr=null;break;case"mousedown":Ys=!0;break;case"contextmenu":case"mouseup":case"dragend":Ys=!1,hu(h,n,m);break;case"selectionchange":if(f0)break;case"keydown":case"keyup":hu(h,n,m)}var D;if(Ua)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else ur?vf(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(mf&&n.locale!=="ko"&&(ur||k!=="onCompositionStart"?k==="onCompositionEnd"&&ur&&(D=yf()):(yn=m,Ma="value"in yn?yn.value:yn.textContent,ur=!0)),I=Hi(u,k),0<I.length&&(k=new lu(k,e,null,n,m),h.push({event:k,listeners:I}),D?k.data=D:(D=_f(n),D!==null&&(k.data=D)))),(D=e0?t0(e,n):n0(e,n))&&(u=Hi(u,"onBeforeInput"),0<u.length&&(m=new lu("onBeforeInput","beforeinput",null,n,m),h.push({event:m,listeners:u}),m.data=D))}Lf(h,t)})}function Ro(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hi(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=So(e,n),i!=null&&r.unshift(Ro(e,i,o)),i=So(e,t),i!=null&&r.push(Ro(e,i,o))),e=e.return}return r}function rr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function mu(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,c=a.alternate,u=a.stateNode;if(c!==null&&c===r)break;a.tag===5&&u!==null&&(a=u,o?(c=So(n,i),c!=null&&s.unshift(Ro(n,c,a))):o||(c=So(n,i),c!=null&&s.push(Ro(n,c,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var x0=/\r\n?/g,y0=/\u0000|\uFFFD/g;function vu(e){return(typeof e=="string"?e:""+e).replace(x0,`
|
|
38
|
+
`).replace(y0,"")}function fi(e,t,n){if(t=vu(t),vu(e)!==t&&n)throw Error(W(425))}function Vi(){}var Xs=null,Qs=null;function Ks(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 qs=typeof setTimeout=="function"?setTimeout:void 0,m0=typeof clearTimeout=="function"?clearTimeout:void 0,_u=typeof Promise=="function"?Promise:void 0,v0=typeof queueMicrotask=="function"?queueMicrotask:typeof _u<"u"?function(e){return _u.resolve(null).then(e).catch(_0)}:qs;function _0(e){setTimeout(function(){throw e})}function is(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Eo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Eo(t)}function Sn(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 wu(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 Mr=Math.random().toString(36).slice(2),Bt="__reactFiber$"+Mr,Io="__reactProps$"+Mr,Zt="__reactContainer$"+Mr,Zs="__reactEvents$"+Mr,w0="__reactListeners$"+Mr,S0="__reactHandles$"+Mr;function Wn(e){var t=e[Bt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zt]||n[Bt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wu(e);e!==null;){if(n=e[Bt])return n;e=wu(e)}return t}e=n,n=e.parentNode}return null}function Wo(e){return e=e[Bt]||e[Zt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function pr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(W(33))}function hl(e){return e[Io]||null}var Js=[],gr=-1;function zn(e){return{current:e}}function be(e){0>gr||(e.current=Js[gr],Js[gr]=null,gr--)}function we(e,t){gr++,Js[gr]=e.current,e.current=t}var Tn={},et=zn(Tn),dt=zn(!1),Vn=Tn;function Tr(e,t){var n=e.type.contextTypes;if(!n)return Tn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ft(e){return e=e.childContextTypes,e!=null}function Gi(){be(dt),be(et)}function Su(e,t,n){if(et.current!==Tn)throw Error(W(168));we(et,t),we(dt,n)}function Nf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(W(108,lh(e)||"Unknown",o));return Ie({},n,r)}function Yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tn,Vn=et.current,we(et,e),we(dt,dt.current),!0}function bu(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=Nf(e,t,Vn),r.__reactInternalMemoizedMergedChildContext=e,be(dt),be(et),we(et,e)):be(dt),we(dt,n)}var Yt=null,xl=!1,ls=!1;function Df(e){Yt===null?Yt=[e]:Yt.push(e)}function b0(e){xl=!0,Df(e)}function Ln(){if(!ls&&Yt!==null){ls=!0;var e=0,t=ye;try{var n=Yt;for(ye=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Yt=null,xl=!1}catch(o){throw Yt!==null&&(Yt=Yt.slice(e+1)),lf(Da,Ln),o}finally{ye=t,ls=!1}}return null}var hr=[],xr=0,Xi=null,Qi=0,St=[],bt=0,Gn=null,Xt=1,Qt="";function Fn(e,t){hr[xr++]=Qi,hr[xr++]=Xi,Xi=e,Qi=t}function Pf(e,t,n){St[bt++]=Xt,St[bt++]=Qt,St[bt++]=Gn,Gn=e;var r=Xt;e=Qt;var o=32-At(r)-1;r&=~(1<<o),n+=1;var i=32-At(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Xt=1<<32-At(t)+o|n<<o|r,Qt=i+e}else Xt=1<<i|n<<o|r,Qt=e}function Ha(e){e.return!==null&&(Fn(e,1),Pf(e,1,0))}function Va(e){for(;e===Xi;)Xi=hr[--xr],hr[xr]=null,Qi=hr[--xr],hr[xr]=null;for(;e===Gn;)Gn=St[--bt],St[bt]=null,Qt=St[--bt],St[bt]=null,Xt=St[--bt],St[bt]=null}var mt=null,yt=null,Ee=!1,Lt=null;function Of(e,t){var n=kt(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 ku(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,mt=e,yt=Sn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,mt=e,yt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Gn!==null?{id:Xt,overflow:Qt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=kt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,mt=e,yt=null,!0):!1;default:return!1}}function ea(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ta(e){if(Ee){var t=yt;if(t){var n=t;if(!ku(e,t)){if(ea(e))throw Error(W(418));t=Sn(n.nextSibling);var r=mt;t&&ku(e,t)?Of(r,n):(e.flags=e.flags&-4097|2,Ee=!1,mt=e)}}else{if(ea(e))throw Error(W(418));e.flags=e.flags&-4097|2,Ee=!1,mt=e}}}function Eu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mt=e}function pi(e){if(e!==mt)return!1;if(!Ee)return Eu(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ks(e.type,e.memoizedProps)),t&&(t=yt)){if(ea(e))throw Ff(),Error(W(418));for(;t;)Of(e,t),t=Sn(t.nextSibling)}if(Eu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(W(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){yt=Sn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}yt=null}}else yt=mt?Sn(e.stateNode.nextSibling):null;return!0}function Ff(){for(var e=yt;e;)e=Sn(e.nextSibling)}function Rr(){yt=mt=null,Ee=!1}function Ga(e){Lt===null?Lt=[e]:Lt.push(e)}var k0=nn.ReactCurrentBatchConfig;function Qr(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(W(309));var r=n.stateNode}if(!r)throw Error(W(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(W(284));if(!n._owner)throw Error(W(290,e))}return e}function gi(e,t){throw e=Object.prototype.toString.call(t),Error(W(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ju(e){var t=e._init;return t(e._payload)}function Mf(e){function t(d,f){if(e){var p=d.deletions;p===null?(d.deletions=[f],d.flags|=16):p.push(f)}}function n(d,f){if(!e)return null;for(;f!==null;)t(d,f),f=f.sibling;return null}function r(d,f){for(d=new Map;f!==null;)f.key!==null?d.set(f.key,f):d.set(f.index,f),f=f.sibling;return d}function o(d,f){return d=jn(d,f),d.index=0,d.sibling=null,d}function i(d,f,p){return d.index=p,e?(p=d.alternate,p!==null?(p=p.index,p<f?(d.flags|=2,f):p):(d.flags|=2,f)):(d.flags|=1048576,f)}function s(d){return e&&d.alternate===null&&(d.flags|=2),d}function a(d,f,p,v){return f===null||f.tag!==6?(f=ps(p,d.mode,v),f.return=d,f):(f=o(f,p),f.return=d,f)}function c(d,f,p,v){var R=p.type;return R===cr?m(d,f,p.props.children,v,p.key):f!==null&&(f.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===dn&&ju(R)===f.type)?(v=o(f,p.props),v.ref=Qr(d,f,p),v.return=d,v):(v=Ai(p.type,p.key,p.props,null,d.mode,v),v.ref=Qr(d,f,p),v.return=d,v)}function u(d,f,p,v){return f===null||f.tag!==4||f.stateNode.containerInfo!==p.containerInfo||f.stateNode.implementation!==p.implementation?(f=gs(p,d.mode,v),f.return=d,f):(f=o(f,p.children||[]),f.return=d,f)}function m(d,f,p,v,R){return f===null||f.tag!==7?(f=Hn(p,d.mode,v,R),f.return=d,f):(f=o(f,p),f.return=d,f)}function h(d,f,p){if(typeof f=="string"&&f!==""||typeof f=="number")return f=ps(""+f,d.mode,p),f.return=d,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case ri:return p=Ai(f.type,f.key,f.props,null,d.mode,p),p.ref=Qr(d,null,f),p.return=d,p;case ar:return f=gs(f,d.mode,p),f.return=d,f;case dn:var v=f._init;return h(d,v(f._payload),p)}if(no(f)||Hr(f))return f=Hn(f,d.mode,p,null),f.return=d,f;gi(d,f)}return null}function x(d,f,p,v){var R=f!==null?f.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return R!==null?null:a(d,f,""+p,v);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case ri:return p.key===R?c(d,f,p,v):null;case ar:return p.key===R?u(d,f,p,v):null;case dn:return R=p._init,x(d,f,R(p._payload),v)}if(no(p)||Hr(p))return R!==null?null:m(d,f,p,v,null);gi(d,p)}return null}function y(d,f,p,v,R){if(typeof v=="string"&&v!==""||typeof v=="number")return d=d.get(p)||null,a(f,d,""+v,R);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ri:return d=d.get(v.key===null?p:v.key)||null,c(f,d,v,R);case ar:return d=d.get(v.key===null?p:v.key)||null,u(f,d,v,R);case dn:var I=v._init;return y(d,f,p,I(v._payload),R)}if(no(v)||Hr(v))return d=d.get(p)||null,m(f,d,v,R,null);gi(f,v)}return null}function w(d,f,p,v){for(var R=null,I=null,D=f,k=f=0,H=null;D!==null&&k<p.length;k++){D.index>k?(H=D,D=null):H=D.sibling;var B=x(d,D,p[k],v);if(B===null){D===null&&(D=H);break}e&&D&&B.alternate===null&&t(d,D),f=i(B,f,k),I===null?R=B:I.sibling=B,I=B,D=H}if(k===p.length)return n(d,D),Ee&&Fn(d,k),R;if(D===null){for(;k<p.length;k++)D=h(d,p[k],v),D!==null&&(f=i(D,f,k),I===null?R=D:I.sibling=D,I=D);return Ee&&Fn(d,k),R}for(D=r(d,D);k<p.length;k++)H=y(D,d,k,p[k],v),H!==null&&(e&&H.alternate!==null&&D.delete(H.key===null?k:H.key),f=i(H,f,k),I===null?R=H:I.sibling=H,I=H);return e&&D.forEach(function(oe){return t(d,oe)}),Ee&&Fn(d,k),R}function _(d,f,p,v){var R=Hr(p);if(typeof R!="function")throw Error(W(150));if(p=R.call(p),p==null)throw Error(W(151));for(var I=R=null,D=f,k=f=0,H=null,B=p.next();D!==null&&!B.done;k++,B=p.next()){D.index>k?(H=D,D=null):H=D.sibling;var oe=x(d,D,B.value,v);if(oe===null){D===null&&(D=H);break}e&&D&&oe.alternate===null&&t(d,D),f=i(oe,f,k),I===null?R=oe:I.sibling=oe,I=oe,D=H}if(B.done)return n(d,D),Ee&&Fn(d,k),R;if(D===null){for(;!B.done;k++,B=p.next())B=h(d,B.value,v),B!==null&&(f=i(B,f,k),I===null?R=B:I.sibling=B,I=B);return Ee&&Fn(d,k),R}for(D=r(d,D);!B.done;k++,B=p.next())B=y(D,d,k,B.value,v),B!==null&&(e&&B.alternate!==null&&D.delete(B.key===null?k:B.key),f=i(B,f,k),I===null?R=B:I.sibling=B,I=B);return e&&D.forEach(function(ie){return t(d,ie)}),Ee&&Fn(d,k),R}function L(d,f,p,v){if(typeof p=="object"&&p!==null&&p.type===cr&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case ri:e:{for(var R=p.key,I=f;I!==null;){if(I.key===R){if(R=p.type,R===cr){if(I.tag===7){n(d,I.sibling),f=o(I,p.props.children),f.return=d,d=f;break e}}else if(I.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===dn&&ju(R)===I.type){n(d,I.sibling),f=o(I,p.props),f.ref=Qr(d,I,p),f.return=d,d=f;break e}n(d,I);break}else t(d,I);I=I.sibling}p.type===cr?(f=Hn(p.props.children,d.mode,v,p.key),f.return=d,d=f):(v=Ai(p.type,p.key,p.props,null,d.mode,v),v.ref=Qr(d,f,p),v.return=d,d=v)}return s(d);case ar:e:{for(I=p.key;f!==null;){if(f.key===I)if(f.tag===4&&f.stateNode.containerInfo===p.containerInfo&&f.stateNode.implementation===p.implementation){n(d,f.sibling),f=o(f,p.children||[]),f.return=d,d=f;break e}else{n(d,f);break}else t(d,f);f=f.sibling}f=gs(p,d.mode,v),f.return=d,d=f}return s(d);case dn:return I=p._init,L(d,f,I(p._payload),v)}if(no(p))return w(d,f,p,v);if(Hr(p))return _(d,f,p,v);gi(d,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,f!==null&&f.tag===6?(n(d,f.sibling),f=o(f,p),f.return=d,d=f):(n(d,f),f=ps(p,d.mode,v),f.return=d,d=f),s(d)):n(d,f)}return L}var Ir=Mf(!0),Wf=Mf(!1),Ki=zn(null),qi=null,yr=null,Ya=null;function Xa(){Ya=yr=qi=null}function Qa(e){var t=Ki.current;be(Ki),e._currentValue=t}function na(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 kr(e,t){qi=e,Ya=yr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ut=!0),e.firstContext=null)}function jt(e){var t=e._currentValue;if(Ya!==e)if(e={context:e,memoizedValue:t,next:null},yr===null){if(qi===null)throw Error(W(308));yr=e,qi.dependencies={lanes:0,firstContext:e}}else yr=yr.next=e;return t}var Bn=null;function Ka(e){Bn===null?Bn=[e]:Bn.push(e)}function Bf(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ka(t)):(n.next=o.next,o.next=n),t.interleaved=n,Jt(e,r)}function Jt(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 fn=!1;function qa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Uf(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 Kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,pe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Jt(e,n)}return o=r.interleaved,o===null?(t.next=t,Ka(r)):(t.next=o.next,o.next=t),r.interleaved=t,Jt(e,n)}function Ci(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,Pa(e,n)}}function Cu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 Zi(e,t,n,r){var o=e.updateQueue;fn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var c=a,u=c.next;c.next=null,s===null?i=u:s.next=u,s=c;var m=e.alternate;m!==null&&(m=m.updateQueue,a=m.lastBaseUpdate,a!==s&&(a===null?m.firstBaseUpdate=u:a.next=u,m.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;s=0,m=u=c=null,a=i;do{var x=a.lane,y=a.eventTime;if((r&x)===x){m!==null&&(m=m.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,_=a;switch(x=t,y=n,_.tag){case 1:if(w=_.payload,typeof w=="function"){h=w.call(y,h,x);break e}h=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=_.payload,x=typeof w=="function"?w.call(y,h,x):w,x==null)break e;h=Ie({},h,x);break e;case 2:fn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,x=o.effects,x===null?o.effects=[a]:x.push(a))}else y={eventTime:y,lane:x,tag:a.tag,payload:a.payload,callback:a.callback,next:null},m===null?(u=m=y,c=h):m=m.next=y,s|=x;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;x=a,a=x.next,x.next=null,o.lastBaseUpdate=x,o.shared.pending=null}}while(!0);if(m===null&&(c=h),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=m,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Xn|=s,e.lanes=s,e.memoizedState=h}}function Tu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(W(191,o));o.call(r)}}}var Bo={},Ht=zn(Bo),zo=zn(Bo),Lo=zn(Bo);function Un(e){if(e===Bo)throw Error(W(174));return e}function Za(e,t){switch(we(Lo,t),we(zo,e),we(Ht,Bo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ps(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ps(t,e)}be(Ht),we(Ht,t)}function zr(){be(Ht),be(zo),be(Lo)}function $f(e){Un(Lo.current);var t=Un(Ht.current),n=Ps(t,e.type);t!==n&&(we(zo,e),we(Ht,n))}function Ja(e){zo.current===e&&(be(Ht),be(zo))}var Te=zn(0);function Ji(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 ss=[];function ec(){for(var e=0;e<ss.length;e++)ss[e]._workInProgressVersionPrimary=null;ss.length=0}var Ti=nn.ReactCurrentDispatcher,as=nn.ReactCurrentBatchConfig,Yn=0,Re=null,Oe=null,Ue=null,el=!1,go=!1,Ao=0,E0=0;function Ke(){throw Error(W(321))}function tc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dt(e[n],t[n]))return!1;return!0}function nc(e,t,n,r,o,i){if(Yn=i,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ti.current=e===null||e.memoizedState===null?R0:I0,e=n(r,o),go){i=0;do{if(go=!1,Ao=0,25<=i)throw Error(W(301));i+=1,Ue=Oe=null,t.updateQueue=null,Ti.current=z0,e=n(r,o)}while(go)}if(Ti.current=tl,t=Oe!==null&&Oe.next!==null,Yn=0,Ue=Oe=Re=null,el=!1,t)throw Error(W(300));return e}function rc(){var e=Ao!==0;return Ao=0,e}function Wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?Re.memoizedState=Ue=e:Ue=Ue.next=e,Ue}function Ct(){if(Oe===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Ue===null?Re.memoizedState:Ue.next;if(t!==null)Ue=t,Oe=e;else{if(e===null)throw Error(W(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Ue===null?Re.memoizedState=Ue=e:Ue=Ue.next=e}return Ue}function No(e,t){return typeof t=="function"?t(e):t}function cs(e){var t=Ct(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var r=Oe,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,c=null,u=i;do{var m=u.lane;if((Yn&m)===m)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:m,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(a=c=h,s=r):c=c.next=h,Re.lanes|=m,Xn|=m}u=u.next}while(u!==null&&u!==i);c===null?s=r:c.next=a,Dt(r,t.memoizedState)||(ut=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Re.lanes|=i,Xn|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function us(e){var t=Ct(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Dt(i,t.memoizedState)||(ut=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Hf(){}function Vf(e,t){var n=Re,r=Ct(),o=t(),i=!Dt(r.memoizedState,o);if(i&&(r.memoizedState=o,ut=!0),r=r.queue,oc(Xf.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Ue!==null&&Ue.memoizedState.tag&1){if(n.flags|=2048,Do(9,Yf.bind(null,n,r,o,t),void 0,null),$e===null)throw Error(W(349));Yn&30||Gf(n,t,o)}return o}function Gf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Re.updateQueue,t===null?(t={lastEffect:null,stores:null},Re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Yf(e,t,n,r){t.value=n,t.getSnapshot=r,Qf(t)&&Kf(e)}function Xf(e,t,n){return n(function(){Qf(t)&&Kf(e)})}function Qf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dt(e,n)}catch{return!0}}function Kf(e){var t=Jt(e,1);t!==null&&Nt(t,e,1,-1)}function Ru(e){var t=Wt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:e},t.queue=e,e=e.dispatch=T0.bind(null,Re,e),[t.memoizedState,e]}function Do(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Re.updateQueue,t===null?(t={lastEffect:null,stores:null},Re.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 qf(){return Ct().memoizedState}function Ri(e,t,n,r){var o=Wt();Re.flags|=e,o.memoizedState=Do(1|t,n,void 0,r===void 0?null:r)}function yl(e,t,n,r){var o=Ct();r=r===void 0?null:r;var i=void 0;if(Oe!==null){var s=Oe.memoizedState;if(i=s.destroy,r!==null&&tc(r,s.deps)){o.memoizedState=Do(t,n,i,r);return}}Re.flags|=e,o.memoizedState=Do(1|t,n,i,r)}function Iu(e,t){return Ri(8390656,8,e,t)}function oc(e,t){return yl(2048,8,e,t)}function Zf(e,t){return yl(4,2,e,t)}function Jf(e,t){return yl(4,4,e,t)}function ep(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 tp(e,t,n){return n=n!=null?n.concat([e]):null,yl(4,4,ep.bind(null,t,e),n)}function ic(){}function np(e,t){var n=Ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&tc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function rp(e,t){var n=Ct();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&tc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function op(e,t,n){return Yn&21?(Dt(n,t)||(n=cf(),Re.lanes|=n,Xn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ut=!0),e.memoizedState=n)}function j0(e,t){var n=ye;ye=n!==0&&4>n?n:4,e(!0);var r=as.transition;as.transition={};try{e(!1),t()}finally{ye=n,as.transition=r}}function ip(){return Ct().memoizedState}function C0(e,t,n){var r=En(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lp(e))sp(t,n);else if(n=Bf(e,t,n,r),n!==null){var o=rt();Nt(n,e,r,o),ap(n,t,r)}}function T0(e,t,n){var r=En(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lp(e))sp(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Dt(a,s)){var c=t.interleaved;c===null?(o.next=o,Ka(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=Bf(e,t,o,r),n!==null&&(o=rt(),Nt(n,e,r,o),ap(n,t,r))}}function lp(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function sp(e,t){go=el=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ap(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pa(e,n)}}var tl={readContext:jt,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useInsertionEffect:Ke,useLayoutEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useMutableSource:Ke,useSyncExternalStore:Ke,useId:Ke,unstable_isNewReconciler:!1},R0={readContext:jt,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:jt,useEffect:Iu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ri(4194308,4,ep.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ri(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ri(4,2,e,t)},useMemo:function(e,t){var n=Wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wt();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=C0.bind(null,Re,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:Ru,useDebugValue:ic,useDeferredValue:function(e){return Wt().memoizedState=e},useTransition:function(){var e=Ru(!1),t=e[0];return e=j0.bind(null,e[1]),Wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Re,o=Wt();if(Ee){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),$e===null)throw Error(W(349));Yn&30||Gf(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Iu(Xf.bind(null,r,i,e),[e]),r.flags|=2048,Do(9,Yf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Wt(),t=$e.identifierPrefix;if(Ee){var n=Qt,r=Xt;n=(r&~(1<<32-At(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ao++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=E0++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},I0={readContext:jt,useCallback:np,useContext:jt,useEffect:oc,useImperativeHandle:tp,useInsertionEffect:Zf,useLayoutEffect:Jf,useMemo:rp,useReducer:cs,useRef:qf,useState:function(){return cs(No)},useDebugValue:ic,useDeferredValue:function(e){var t=Ct();return op(t,Oe.memoizedState,e)},useTransition:function(){var e=cs(No)[0],t=Ct().memoizedState;return[e,t]},useMutableSource:Hf,useSyncExternalStore:Vf,useId:ip,unstable_isNewReconciler:!1},z0={readContext:jt,useCallback:np,useContext:jt,useEffect:oc,useImperativeHandle:tp,useInsertionEffect:Zf,useLayoutEffect:Jf,useMemo:rp,useReducer:us,useRef:qf,useState:function(){return us(No)},useDebugValue:ic,useDeferredValue:function(e){var t=Ct();return Oe===null?t.memoizedState=e:op(t,Oe.memoizedState,e)},useTransition:function(){var e=us(No)[0],t=Ct().memoizedState;return[e,t]},useMutableSource:Hf,useSyncExternalStore:Vf,useId:ip,unstable_isNewReconciler:!1};function It(e,t){if(e&&e.defaultProps){t=Ie({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ra(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ml={isMounted:function(e){return(e=e._reactInternals)?qn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=rt(),o=En(e),i=Kt(r,o);i.payload=t,n!=null&&(i.callback=n),t=bn(e,i,o),t!==null&&(Nt(t,e,o,r),Ci(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=rt(),o=En(e),i=Kt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=bn(e,i,o),t!==null&&(Nt(t,e,o,r),Ci(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=rt(),r=En(e),o=Kt(n,r);o.tag=2,t!=null&&(o.callback=t),t=bn(e,o,r),t!==null&&(Nt(t,e,r,n),Ci(t,e,r))}};function zu(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Co(n,r)||!Co(o,i):!0}function cp(e,t,n){var r=!1,o=Tn,i=t.contextType;return typeof i=="object"&&i!==null?i=jt(i):(o=ft(t)?Vn:et.current,r=t.contextTypes,i=(r=r!=null)?Tr(e,o):Tn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ml,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Lu(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&&ml.enqueueReplaceState(t,t.state,null)}function oa(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},qa(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=jt(i):(i=ft(t)?Vn:et.current,o.context=Tr(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(ra(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&ml.enqueueReplaceState(o,o.state,null),Zi(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Lr(e,t){try{var n="",r=t;do n+=ih(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
39
|
+
Error generating stack: `+i.message+`
|
|
40
|
+
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ia(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var L0=typeof WeakMap=="function"?WeakMap:Map;function up(e,t,n){n=Kt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){rl||(rl=!0,ha=r),ia(e,t)},n}function dp(e,t,n){n=Kt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ia(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ia(e,t),typeof r!="function"&&(kn===null?kn=new Set([this]):kn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Au(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new L0;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=G0.bind(null,e,t,n),t.then(e,e))}function Nu(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 Du(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=Kt(-1,1),t.tag=2,bn(n,t,1))),n.lanes|=1),e)}var A0=nn.ReactCurrentOwner,ut=!1;function nt(e,t,n,r){t.child=e===null?Wf(t,null,n,r):Ir(t,e.child,n,r)}function Pu(e,t,n,r,o){n=n.render;var i=t.ref;return kr(t,o),r=nc(e,t,n,r,i,o),n=rc(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,en(e,t,o)):(Ee&&n&&Ha(t),t.flags|=1,nt(e,t,r,o),t.child)}function Ou(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!pc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,fp(e,t,i,r,o)):(e=Ai(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Co,n(s,r)&&e.ref===t.ref)return en(e,t,o)}return t.flags|=1,e=jn(i,r),e.ref=t.ref,e.return=t,t.child=e}function fp(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Co(i,r)&&e.ref===t.ref)if(ut=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(ut=!0);else return t.lanes=e.lanes,en(e,t,o)}return la(e,t,n,r,o)}function pp(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},we(vr,ht),ht|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,we(vr,ht),ht|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,we(vr,ht),ht|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,we(vr,ht),ht|=r;return nt(e,t,o,n),t.child}function gp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function la(e,t,n,r,o){var i=ft(n)?Vn:et.current;return i=Tr(t,i),kr(t,o),n=nc(e,t,n,r,i,o),r=rc(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,en(e,t,o)):(Ee&&r&&Ha(t),t.flags|=1,nt(e,t,n,o),t.child)}function Fu(e,t,n,r,o){if(ft(n)){var i=!0;Yi(t)}else i=!1;if(kr(t,o),t.stateNode===null)Ii(e,t),cp(t,n,r),oa(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var c=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=jt(u):(u=ft(n)?Vn:et.current,u=Tr(t,u));var m=n.getDerivedStateFromProps,h=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||c!==u)&&Lu(t,s,r,u),fn=!1;var x=t.memoizedState;s.state=x,Zi(t,r,s,o),c=t.memoizedState,a!==r||x!==c||dt.current||fn?(typeof m=="function"&&(ra(t,n,m,r),c=t.memoizedState),(a=fn||zu(t,n,a,r,x,c,u))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Uf(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:It(t.type,a),s.props=u,h=t.pendingProps,x=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=jt(c):(c=ft(n)?Vn:et.current,c=Tr(t,c));var y=n.getDerivedStateFromProps;(m=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||x!==c)&&Lu(t,s,r,c),fn=!1,x=t.memoizedState,s.state=x,Zi(t,r,s,o);var w=t.memoizedState;a!==h||x!==w||dt.current||fn?(typeof y=="function"&&(ra(t,n,y,r),w=t.memoizedState),(u=fn||zu(t,n,u,r,x,w,c)||!1)?(m||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,w,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,w,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),s.props=r,s.state=w,s.context=c,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&x===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&x===e.memoizedState||(t.flags|=1024),r=!1)}return sa(e,t,n,r,i,o)}function sa(e,t,n,r,o,i){gp(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&bu(t,n,!1),en(e,t,i);r=t.stateNode,A0.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Ir(t,e.child,null,i),t.child=Ir(t,null,a,i)):nt(e,t,a,i),t.memoizedState=r.state,o&&bu(t,n,!0),t.child}function hp(e){var t=e.stateNode;t.pendingContext?Su(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Su(e,t.context,!1),Za(e,t.containerInfo)}function Mu(e,t,n,r,o){return Rr(),Ga(o),t.flags|=256,nt(e,t,n,r),t.child}var aa={dehydrated:null,treeContext:null,retryLane:0};function ca(e){return{baseLanes:e,cachePool:null,transitions:null}}function xp(e,t,n){var r=t.pendingProps,o=Te.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),we(Te,o&1),e===null)return ta(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):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=wl(s,r,0,null),e=Hn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ca(n),t.memoizedState=aa,e):lc(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return N0(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var c={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=jn(o,c),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=jn(a,i):(i=Hn(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?ca(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=aa,r}return i=e.child,e=i.sibling,r=jn(i,{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 lc(e,t){return t=wl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function hi(e,t,n,r){return r!==null&&Ga(r),Ir(t,e.child,null,n),e=lc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function N0(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=ds(Error(W(422))),hi(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=wl({mode:"visible",children:r.children},o,0,null),i=Hn(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ir(t,e.child,null,s),t.child.memoizedState=ca(s),t.memoizedState=aa,i);if(!(t.mode&1))return hi(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(W(419)),r=ds(i,r,void 0),hi(e,t,s,r)}if(a=(s&e.childLanes)!==0,ut||a){if(r=$e,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Jt(e,o),Nt(r,e,o,-1))}return fc(),r=ds(Error(W(421))),hi(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Y0.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,yt=Sn(o.nextSibling),mt=t,Ee=!0,Lt=null,e!==null&&(St[bt++]=Xt,St[bt++]=Qt,St[bt++]=Gn,Xt=e.id,Qt=e.overflow,Gn=t),t=lc(t,r.children),t.flags|=4096,t)}function Wu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),na(e.return,t,n)}function fs(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function yp(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(nt(e,t,r.children,n),r=Te.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&&Wu(e,n,t);else if(e.tag===19)Wu(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(we(Te,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Ji(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),fs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ji(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}fs(t,!0,n,null,i);break;case"together":fs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ii(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function en(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(W(153));if(t.child!==null){for(e=t.child,n=jn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function D0(e,t,n){switch(t.tag){case 3:hp(t),Rr();break;case 5:$f(t);break;case 1:ft(t.type)&&Yi(t);break;case 4:Za(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;we(Ki,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(we(Te,Te.current&1),t.flags|=128,null):n&t.child.childLanes?xp(e,t,n):(we(Te,Te.current&1),e=en(e,t,n),e!==null?e.sibling:null);we(Te,Te.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return yp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),we(Te,Te.current),r)break;return null;case 22:case 23:return t.lanes=0,pp(e,t,n)}return en(e,t,n)}var mp,ua,vp,_p;mp=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}};ua=function(){};vp=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Un(Ht.current);var i=null;switch(n){case"input":o=Ls(e,o),r=Ls(e,r),i=[];break;case"select":o=Ie({},o,{value:void 0}),r=Ie({},r,{value:void 0}),i=[];break;case"textarea":o=Ds(e,o),r=Ds(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Vi)}Os(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(_o.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&c!==a&&(c!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&a[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(_o.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&Se("scroll",e),i||a===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};_p=function(e,t,n,r){n!==r&&(t.flags|=4)};function Kr(e,t){if(!Ee)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 qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function P0(e,t,n){var r=t.pendingProps;switch(Va(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return ft(t.type)&&Gi(),qe(t),null;case 3:return r=t.stateNode,zr(),be(dt),be(et),ec(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(pi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Lt!==null&&(ma(Lt),Lt=null))),ua(e,t),qe(t),null;case 5:Ja(t);var o=Un(Lo.current);if(n=t.type,e!==null&&t.stateNode!=null)vp(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(W(166));return qe(t),null}if(e=Un(Ht.current),pi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Bt]=t,r[Io]=i,e=(t.mode&1)!==0,n){case"dialog":Se("cancel",r),Se("close",r);break;case"iframe":case"object":case"embed":Se("load",r);break;case"video":case"audio":for(o=0;o<oo.length;o++)Se(oo[o],r);break;case"source":Se("error",r);break;case"img":case"image":case"link":Se("error",r),Se("load",r);break;case"details":Se("toggle",r);break;case"input":Qc(r,i),Se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Se("invalid",r);break;case"textarea":qc(r,i),Se("invalid",r)}Os(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&fi(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&fi(r.textContent,a,e),o=["children",""+a]):_o.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Se("scroll",r)}switch(n){case"input":oi(r),Kc(r,i,!0);break;case"textarea":oi(r),Zc(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Vi)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Yd(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Bt]=t,e[Io]=r,mp(e,t,!1,!1),t.stateNode=e;e:{switch(s=Fs(n,r),n){case"dialog":Se("cancel",e),Se("close",e),o=r;break;case"iframe":case"object":case"embed":Se("load",e),o=r;break;case"video":case"audio":for(o=0;o<oo.length;o++)Se(oo[o],e);o=r;break;case"source":Se("error",e),o=r;break;case"img":case"image":case"link":Se("error",e),Se("load",e),o=r;break;case"details":Se("toggle",e),o=r;break;case"input":Qc(e,r),o=Ls(e,r),Se("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ie({},r,{value:void 0}),Se("invalid",e);break;case"textarea":qc(e,r),o=Ds(e,r),Se("invalid",e);break;default:o=r}Os(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];i==="style"?Kd(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Xd(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&wo(e,c):typeof c=="number"&&wo(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(_o.hasOwnProperty(i)?c!=null&&i==="onScroll"&&Se("scroll",e):c!=null&&Ia(e,i,c,s))}switch(n){case"input":oi(e),Kc(e,r,!1);break;case"textarea":oi(e),Zc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Cn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?_r(e,!!r.multiple,i,!1):r.defaultValue!=null&&_r(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Vi)}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 qe(t),null;case 6:if(e&&t.stateNode!=null)_p(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(W(166));if(n=Un(Lo.current),Un(Ht.current),pi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Bt]=t,(i=r.nodeValue!==n)&&(e=mt,e!==null))switch(e.tag){case 3:fi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&fi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Bt]=t,t.stateNode=r}return qe(t),null;case 13:if(be(Te),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&yt!==null&&t.mode&1&&!(t.flags&128))Ff(),Rr(),t.flags|=98560,i=!1;else if(i=pi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(W(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(W(317));i[Bt]=t}else Rr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else Lt!==null&&(ma(Lt),Lt=null),i=!0;if(!i)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||Te.current&1?Me===0&&(Me=3):fc())),t.updateQueue!==null&&(t.flags|=4),qe(t),null);case 4:return zr(),ua(e,t),e===null&&To(t.stateNode.containerInfo),qe(t),null;case 10:return Qa(t.type._context),qe(t),null;case 17:return ft(t.type)&&Gi(),qe(t),null;case 19:if(be(Te),i=t.memoizedState,i===null)return qe(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)Kr(i,!1);else{if(Me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Ji(e),s!==null){for(t.flags|=128,Kr(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return we(Te,Te.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ae()>Ar&&(t.flags|=128,r=!0,Kr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ji(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Kr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ee)return qe(t),null}else 2*Ae()-i.renderingStartTime>Ar&&n!==1073741824&&(t.flags|=128,r=!0,Kr(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ae(),t.sibling=null,n=Te.current,we(Te,r?n&1|2:n&1),t):(qe(t),null);case 22:case 23:return dc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ht&1073741824&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function O0(e,t){switch(Va(t),t.tag){case 1:return ft(t.type)&&Gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zr(),be(dt),be(et),ec(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ja(t),null;case 13:if(be(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Rr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return be(Te),null;case 4:return zr(),null;case 10:return Qa(t.type._context),null;case 22:case 23:return dc(),null;case 24:return null;default:return null}}var xi=!1,Je=!1,F0=typeof WeakSet=="function"?WeakSet:Set,Y=null;function mr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Le(e,t,r)}else n.current=null}function da(e,t,n){try{n()}catch(r){Le(e,t,r)}}var Bu=!1;function M0(e,t){if(Xs=Ui,e=Ef(),$a(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,c=-1,u=0,m=0,h=e,x=null;t:for(;;){for(var y;h!==n||o!==0&&h.nodeType!==3||(a=s+o),h!==i||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(y=h.firstChild)!==null;)x=h,h=y;for(;;){if(h===e)break t;if(x===n&&++u===o&&(a=s),x===i&&++m===r&&(c=s),(y=h.nextSibling)!==null)break;h=x,x=h.parentNode}h=y}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qs={focusedElem:e,selectionRange:n},Ui=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var _=w.memoizedProps,L=w.memoizedState,d=t.stateNode,f=d.getSnapshotBeforeUpdate(t.elementType===t.type?_:It(t.type,_),L);d.__reactInternalSnapshotBeforeUpdate=f}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(W(163))}}catch(v){Le(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return w=Bu,Bu=!1,w}function ho(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&da(t,n,i)}o=o.next}while(o!==r)}}function vl(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 fa(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 wp(e){var t=e.alternate;t!==null&&(e.alternate=null,wp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bt],delete t[Io],delete t[Zs],delete t[w0],delete t[S0])),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 Sp(e){return e.tag===5||e.tag===3||e.tag===4}function Uu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sp(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 pa(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=Vi));else if(r!==4&&(e=e.child,e!==null))for(pa(e,t,n),e=e.sibling;e!==null;)pa(e,t,n),e=e.sibling}function ga(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(ga(e,t,n),e=e.sibling;e!==null;)ga(e,t,n),e=e.sibling}var He=null,zt=!1;function sn(e,t,n){for(n=n.child;n!==null;)bp(e,t,n),n=n.sibling}function bp(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(dl,n)}catch{}switch(n.tag){case 5:Je||mr(n,t);case 6:var r=He,o=zt;He=null,sn(e,t,n),He=r,zt=o,He!==null&&(zt?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(zt?(e=He,n=n.stateNode,e.nodeType===8?is(e.parentNode,n):e.nodeType===1&&is(e,n),Eo(e)):is(He,n.stateNode));break;case 4:r=He,o=zt,He=n.stateNode.containerInfo,zt=!0,sn(e,t,n),He=r,zt=o;break;case 0:case 11:case 14:case 15:if(!Je&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&da(n,t,s),o=o.next}while(o!==r)}sn(e,t,n);break;case 1:if(!Je&&(mr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Le(n,t,a)}sn(e,t,n);break;case 21:sn(e,t,n);break;case 22:n.mode&1?(Je=(r=Je)||n.memoizedState!==null,sn(e,t,n),Je=r):sn(e,t,n);break;default:sn(e,t,n)}}function $u(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new F0),t.forEach(function(r){var o=X0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:He=a.stateNode,zt=!1;break e;case 3:He=a.stateNode.containerInfo,zt=!0;break e;case 4:He=a.stateNode.containerInfo,zt=!0;break e}a=a.return}if(He===null)throw Error(W(160));bp(i,s,o),He=null,zt=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){Le(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)kp(t,e),t=t.sibling}function kp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Tt(t,e),Mt(e),r&4){try{ho(3,e,e.return),vl(3,e)}catch(_){Le(e,e.return,_)}try{ho(5,e,e.return)}catch(_){Le(e,e.return,_)}}break;case 1:Tt(t,e),Mt(e),r&512&&n!==null&&mr(n,n.return);break;case 5:if(Tt(t,e),Mt(e),r&512&&n!==null&&mr(n,n.return),e.flags&32){var o=e.stateNode;try{wo(o,"")}catch(_){Le(e,e.return,_)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Vd(o,i),Fs(a,s);var u=Fs(a,i);for(s=0;s<c.length;s+=2){var m=c[s],h=c[s+1];m==="style"?Kd(o,h):m==="dangerouslySetInnerHTML"?Xd(o,h):m==="children"?wo(o,h):Ia(o,m,h,u)}switch(a){case"input":As(o,i);break;case"textarea":Gd(o,i);break;case"select":var x=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?_r(o,!!i.multiple,y,!1):x!==!!i.multiple&&(i.defaultValue!=null?_r(o,!!i.multiple,i.defaultValue,!0):_r(o,!!i.multiple,i.multiple?[]:"",!1))}o[Io]=i}catch(_){Le(e,e.return,_)}}break;case 6:if(Tt(t,e),Mt(e),r&4){if(e.stateNode===null)throw Error(W(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(_){Le(e,e.return,_)}}break;case 3:if(Tt(t,e),Mt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Eo(t.containerInfo)}catch(_){Le(e,e.return,_)}break;case 4:Tt(t,e),Mt(e);break;case 13:Tt(t,e),Mt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(cc=Ae())),r&4&&$u(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(Je=(u=Je)||m,Tt(t,e),Je=u):Tt(t,e),Mt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!m&&e.mode&1)for(Y=e,m=e.child;m!==null;){for(h=Y=m;Y!==null;){switch(x=Y,y=x.child,x.tag){case 0:case 11:case 14:case 15:ho(4,x,x.return);break;case 1:mr(x,x.return);var w=x.stateNode;if(typeof w.componentWillUnmount=="function"){r=x,n=x.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(_){Le(r,n,_)}}break;case 5:mr(x,x.return);break;case 22:if(x.memoizedState!==null){Vu(h);continue}}y!==null?(y.return=x,Y=y):Vu(h)}m=m.sibling}e:for(m=null,h=e;;){if(h.tag===5){if(m===null){m=h;try{o=h.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=h.stateNode,c=h.memoizedProps.style,s=c!=null&&c.hasOwnProperty("display")?c.display:null,a.style.display=Qd("display",s))}catch(_){Le(e,e.return,_)}}}else if(h.tag===6){if(m===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(_){Le(e,e.return,_)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;m===h&&(m=null),h=h.return}m===h&&(m=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Tt(t,e),Mt(e),r&4&&$u(e);break;case 21:break;default:Tt(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Sp(n)){var r=n;break e}n=n.return}throw Error(W(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(wo(o,""),r.flags&=-33);var i=Uu(e);ga(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Uu(e);pa(e,a,s);break;default:throw Error(W(161))}}catch(c){Le(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function W0(e,t,n){Y=e,Ep(e)}function Ep(e,t,n){for(var r=(e.mode&1)!==0;Y!==null;){var o=Y,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||xi;if(!s){var a=o.alternate,c=a!==null&&a.memoizedState!==null||Je;a=xi;var u=Je;if(xi=s,(Je=c)&&!u)for(Y=o;Y!==null;)s=Y,c=s.child,s.tag===22&&s.memoizedState!==null?Gu(o):c!==null?(c.return=s,Y=c):Gu(o);for(;i!==null;)Y=i,Ep(i),i=i.sibling;Y=o,xi=a,Je=u}Hu(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,Y=i):Hu(e)}}function Hu(e){for(;Y!==null;){var t=Y;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Je||vl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Je)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:It(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Tu(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Tu(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var m=u.memoizedState;if(m!==null){var h=m.dehydrated;h!==null&&Eo(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(W(163))}Je||t.flags&512&&fa(t)}catch(x){Le(t,t.return,x)}}if(t===e){Y=null;break}if(n=t.sibling,n!==null){n.return=t.return,Y=n;break}Y=t.return}}function Vu(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Y=n;break}Y=t.return}}function Gu(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{vl(4,t)}catch(c){Le(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){Le(t,o,c)}}var i=t.return;try{fa(t)}catch(c){Le(t,i,c)}break;case 5:var s=t.return;try{fa(t)}catch(c){Le(t,s,c)}}}catch(c){Le(t,t.return,c)}if(t===e){Y=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Y=a;break}Y=t.return}}var B0=Math.ceil,nl=nn.ReactCurrentDispatcher,sc=nn.ReactCurrentOwner,Et=nn.ReactCurrentBatchConfig,pe=0,$e=null,Ne=null,Ge=0,ht=0,vr=zn(0),Me=0,Po=null,Xn=0,_l=0,ac=0,xo=null,ct=null,cc=0,Ar=1/0,Gt=null,rl=!1,ha=null,kn=null,yi=!1,mn=null,ol=0,yo=0,xa=null,zi=-1,Li=0;function rt(){return pe&6?Ae():zi!==-1?zi:zi=Ae()}function En(e){return e.mode&1?pe&2&&Ge!==0?Ge&-Ge:k0.transition!==null?(Li===0&&(Li=cf()),Li):(e=ye,e!==0||(e=window.event,e=e===void 0?16:xf(e.type)),e):1}function Nt(e,t,n,r){if(50<yo)throw yo=0,xa=null,Error(W(185));Fo(e,n,r),(!(pe&2)||e!==$e)&&(e===$e&&(!(pe&2)&&(_l|=n),Me===4&&gn(e,Ge)),pt(e,r),n===1&&pe===0&&!(t.mode&1)&&(Ar=Ae()+500,xl&&Ln()))}function pt(e,t){var n=e.callbackNode;kh(e,t);var r=Bi(e,e===$e?Ge:0);if(r===0)n!==null&&tu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&tu(n),t===1)e.tag===0?b0(Yu.bind(null,e)):Df(Yu.bind(null,e)),v0(function(){!(pe&6)&&Ln()}),n=null;else{switch(uf(r)){case 1:n=Da;break;case 4:n=sf;break;case 16:n=Wi;break;case 536870912:n=af;break;default:n=Wi}n=Ap(n,jp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function jp(e,t){if(zi=-1,Li=0,pe&6)throw Error(W(327));var n=e.callbackNode;if(Er()&&e.callbackNode!==n)return null;var r=Bi(e,e===$e?Ge:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=il(e,r);else{t=r;var o=pe;pe|=2;var i=Tp();($e!==e||Ge!==t)&&(Gt=null,Ar=Ae()+500,$n(e,t));do try{H0();break}catch(a){Cp(e,a)}while(!0);Xa(),nl.current=i,pe=o,Ne!==null?t=0:($e=null,Ge=0,t=Me)}if(t!==0){if(t===2&&(o=$s(e),o!==0&&(r=o,t=ya(e,o))),t===1)throw n=Po,$n(e,0),gn(e,r),pt(e,Ae()),n;if(t===6)gn(e,r);else{if(o=e.current.alternate,!(r&30)&&!U0(o)&&(t=il(e,r),t===2&&(i=$s(e),i!==0&&(r=i,t=ya(e,i))),t===1))throw n=Po,$n(e,0),gn(e,r),pt(e,Ae()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(W(345));case 2:Mn(e,ct,Gt);break;case 3:if(gn(e,r),(r&130023424)===r&&(t=cc+500-Ae(),10<t)){if(Bi(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){rt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=qs(Mn.bind(null,e,ct,Gt),t);break}Mn(e,ct,Gt);break;case 4:if(gn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-At(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*B0(r/1960))-r,10<r){e.timeoutHandle=qs(Mn.bind(null,e,ct,Gt),r);break}Mn(e,ct,Gt);break;case 5:Mn(e,ct,Gt);break;default:throw Error(W(329))}}}return pt(e,Ae()),e.callbackNode===n?jp.bind(null,e):null}function ya(e,t){var n=xo;return e.current.memoizedState.isDehydrated&&($n(e,t).flags|=256),e=il(e,t),e!==2&&(t=ct,ct=n,t!==null&&ma(t)),e}function ma(e){ct===null?ct=e:ct.push.apply(ct,e)}function U0(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 o=n[r],i=o.getSnapshot;o=o.value;try{if(!Dt(i(),o))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 gn(e,t){for(t&=~ac,t&=~_l,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-At(t),r=1<<n;e[n]=-1,t&=~r}}function Yu(e){if(pe&6)throw Error(W(327));Er();var t=Bi(e,0);if(!(t&1))return pt(e,Ae()),null;var n=il(e,t);if(e.tag!==0&&n===2){var r=$s(e);r!==0&&(t=r,n=ya(e,r))}if(n===1)throw n=Po,$n(e,0),gn(e,t),pt(e,Ae()),n;if(n===6)throw Error(W(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Mn(e,ct,Gt),pt(e,Ae()),null}function uc(e,t){var n=pe;pe|=1;try{return e(t)}finally{pe=n,pe===0&&(Ar=Ae()+500,xl&&Ln())}}function Qn(e){mn!==null&&mn.tag===0&&!(pe&6)&&Er();var t=pe;pe|=1;var n=Et.transition,r=ye;try{if(Et.transition=null,ye=1,e)return e()}finally{ye=r,Et.transition=n,pe=t,!(pe&6)&&Ln()}}function dc(){ht=vr.current,be(vr)}function $n(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,m0(n)),Ne!==null)for(n=Ne.return;n!==null;){var r=n;switch(Va(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Gi();break;case 3:zr(),be(dt),be(et),ec();break;case 5:Ja(r);break;case 4:zr();break;case 13:be(Te);break;case 19:be(Te);break;case 10:Qa(r.type._context);break;case 22:case 23:dc()}n=n.return}if($e=e,Ne=e=jn(e.current,null),Ge=ht=t,Me=0,Po=null,ac=_l=Xn=0,ct=xo=null,Bn!==null){for(t=0;t<Bn.length;t++)if(n=Bn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}Bn=null}return e}function Cp(e,t){do{var n=Ne;try{if(Xa(),Ti.current=tl,el){for(var r=Re.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}el=!1}if(Yn=0,Ue=Oe=Re=null,go=!1,Ao=0,sc.current=null,n===null||n.return===null){Me=1,Po=t,Ne=null;break}e:{var i=e,s=n.return,a=n,c=t;if(t=Ge,a.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,m=a,h=m.tag;if(!(m.mode&1)&&(h===0||h===11||h===15)){var x=m.alternate;x?(m.updateQueue=x.updateQueue,m.memoizedState=x.memoizedState,m.lanes=x.lanes):(m.updateQueue=null,m.memoizedState=null)}var y=Nu(s);if(y!==null){y.flags&=-257,Du(y,s,a,i,t),y.mode&1&&Au(i,u,t),t=y,c=u;var w=t.updateQueue;if(w===null){var _=new Set;_.add(c),t.updateQueue=_}else w.add(c);break e}else{if(!(t&1)){Au(i,u,t),fc();break e}c=Error(W(426))}}else if(Ee&&a.mode&1){var L=Nu(s);if(L!==null){!(L.flags&65536)&&(L.flags|=256),Du(L,s,a,i,t),Ga(Lr(c,a));break e}}i=c=Lr(c,a),Me!==4&&(Me=2),xo===null?xo=[i]:xo.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var d=up(i,c,t);Cu(i,d);break e;case 1:a=c;var f=i.type,p=i.stateNode;if(!(i.flags&128)&&(typeof f.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(kn===null||!kn.has(p)))){i.flags|=65536,t&=-t,i.lanes|=t;var v=dp(i,a,t);Cu(i,v);break e}}i=i.return}while(i!==null)}Ip(n)}catch(R){t=R,Ne===n&&n!==null&&(Ne=n=n.return);continue}break}while(!0)}function Tp(){var e=nl.current;return nl.current=tl,e===null?tl:e}function fc(){(Me===0||Me===3||Me===2)&&(Me=4),$e===null||!(Xn&268435455)&&!(_l&268435455)||gn($e,Ge)}function il(e,t){var n=pe;pe|=2;var r=Tp();($e!==e||Ge!==t)&&(Gt=null,$n(e,t));do try{$0();break}catch(o){Cp(e,o)}while(!0);if(Xa(),pe=n,nl.current=r,Ne!==null)throw Error(W(261));return $e=null,Ge=0,Me}function $0(){for(;Ne!==null;)Rp(Ne)}function H0(){for(;Ne!==null&&!hh();)Rp(Ne)}function Rp(e){var t=Lp(e.alternate,e,ht);e.memoizedProps=e.pendingProps,t===null?Ip(e):Ne=t,sc.current=null}function Ip(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=O0(n,t),n!==null){n.flags&=32767,Ne=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Me=6,Ne=null;return}}else if(n=P0(n,t,ht),n!==null){Ne=n;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);Me===0&&(Me=5)}function Mn(e,t,n){var r=ye,o=Et.transition;try{Et.transition=null,ye=1,V0(e,t,n,r)}finally{Et.transition=o,ye=r}return null}function V0(e,t,n,r){do Er();while(mn!==null);if(pe&6)throw Error(W(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(W(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Eh(e,i),e===$e&&(Ne=$e=null,Ge=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||yi||(yi=!0,Ap(Wi,function(){return Er(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Et.transition,Et.transition=null;var s=ye;ye=1;var a=pe;pe|=4,sc.current=null,M0(e,n),kp(n,e),d0(Qs),Ui=!!Xs,Qs=Xs=null,e.current=n,W0(n),xh(),pe=a,ye=s,Et.transition=i}else e.current=n;if(yi&&(yi=!1,mn=e,ol=o),i=e.pendingLanes,i===0&&(kn=null),vh(n.stateNode),pt(e,Ae()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(rl)throw rl=!1,e=ha,ha=null,e;return ol&1&&e.tag!==0&&Er(),i=e.pendingLanes,i&1?e===xa?yo++:(yo=0,xa=e):yo=0,Ln(),null}function Er(){if(mn!==null){var e=uf(ol),t=Et.transition,n=ye;try{if(Et.transition=null,ye=16>e?16:e,mn===null)var r=!1;else{if(e=mn,mn=null,ol=0,pe&6)throw Error(W(331));var o=pe;for(pe|=4,Y=e.current;Y!==null;){var i=Y,s=i.child;if(Y.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c<a.length;c++){var u=a[c];for(Y=u;Y!==null;){var m=Y;switch(m.tag){case 0:case 11:case 15:ho(8,m,i)}var h=m.child;if(h!==null)h.return=m,Y=h;else for(;Y!==null;){m=Y;var x=m.sibling,y=m.return;if(wp(m),m===u){Y=null;break}if(x!==null){x.return=y,Y=x;break}Y=y}}}var w=i.alternate;if(w!==null){var _=w.child;if(_!==null){w.child=null;do{var L=_.sibling;_.sibling=null,_=L}while(_!==null)}}Y=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,Y=s;else e:for(;Y!==null;){if(i=Y,i.flags&2048)switch(i.tag){case 0:case 11:case 15:ho(9,i,i.return)}var d=i.sibling;if(d!==null){d.return=i.return,Y=d;break e}Y=i.return}}var f=e.current;for(Y=f;Y!==null;){s=Y;var p=s.child;if(s.subtreeFlags&2064&&p!==null)p.return=s,Y=p;else e:for(s=f;Y!==null;){if(a=Y,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:vl(9,a)}}catch(R){Le(a,a.return,R)}if(a===s){Y=null;break e}var v=a.sibling;if(v!==null){v.return=a.return,Y=v;break e}Y=a.return}}if(pe=o,Ln(),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(dl,e)}catch{}r=!0}return r}finally{ye=n,Et.transition=t}}return!1}function Xu(e,t,n){t=Lr(n,t),t=up(e,t,1),e=bn(e,t,1),t=rt(),e!==null&&(Fo(e,1,t),pt(e,t))}function Le(e,t,n){if(e.tag===3)Xu(e,e,n);else for(;t!==null;){if(t.tag===3){Xu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(kn===null||!kn.has(r))){e=Lr(n,e),e=dp(t,e,1),t=bn(t,e,1),e=rt(),t!==null&&(Fo(t,1,e),pt(t,e));break}}t=t.return}}function G0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=rt(),e.pingedLanes|=e.suspendedLanes&n,$e===e&&(Ge&n)===n&&(Me===4||Me===3&&(Ge&130023424)===Ge&&500>Ae()-cc?$n(e,0):ac|=n),pt(e,t)}function zp(e,t){t===0&&(e.mode&1?(t=si,si<<=1,!(si&130023424)&&(si=4194304)):t=1);var n=rt();e=Jt(e,t),e!==null&&(Fo(e,t,n),pt(e,n))}function Y0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zp(e,n)}function X0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(W(314))}r!==null&&r.delete(t),zp(e,n)}var Lp;Lp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||dt.current)ut=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ut=!1,D0(e,t,n);ut=!!(e.flags&131072)}else ut=!1,Ee&&t.flags&1048576&&Pf(t,Qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ii(e,t),e=t.pendingProps;var o=Tr(t,et.current);kr(t,n),o=nc(null,t,r,e,o,n);var i=rc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(r)?(i=!0,Yi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,qa(t),o.updater=ml,t.stateNode=o,o._reactInternals=t,oa(t,r,e,n),t=sa(null,t,r,!0,i,n)):(t.tag=0,Ee&&i&&Ha(t),nt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ii(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=K0(r),e=It(r,e),o){case 0:t=la(null,t,r,e,n);break e;case 1:t=Fu(null,t,r,e,n);break e;case 11:t=Pu(null,t,r,e,n);break e;case 14:t=Ou(null,t,r,It(r.type,e),n);break e}throw Error(W(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),la(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),Fu(e,t,r,o,n);case 3:e:{if(hp(t),e===null)throw Error(W(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Uf(e,t),Zi(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Lr(Error(W(423)),t),t=Mu(e,t,r,n,o);break e}else if(r!==o){o=Lr(Error(W(424)),t),t=Mu(e,t,r,n,o);break e}else for(yt=Sn(t.stateNode.containerInfo.firstChild),mt=t,Ee=!0,Lt=null,n=Wf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Rr(),r===o){t=en(e,t,n);break e}nt(e,t,r,n)}t=t.child}return t;case 5:return $f(t),e===null&&ta(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ks(r,o)?s=null:i!==null&&Ks(r,i)&&(t.flags|=32),gp(e,t),nt(e,t,s,n),t.child;case 6:return e===null&&ta(t),null;case 13:return xp(e,t,n);case 4:return Za(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ir(t,null,r,n):nt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),Pu(e,t,r,o,n);case 7:return nt(e,t,t.pendingProps,n),t.child;case 8:return nt(e,t,t.pendingProps.children,n),t.child;case 12:return nt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,we(Ki,r._currentValue),r._currentValue=s,i!==null)if(Dt(i.value,s)){if(i.children===o.children&&!dt.current){t=en(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Kt(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var m=u.pending;m===null?c.next=c:(c.next=m.next,m.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),na(i.return,n,t),a.lanes|=n;break}c=c.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(W(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),na(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}nt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,kr(t,n),o=jt(o),r=r(o),t.flags|=1,nt(e,t,r,n),t.child;case 14:return r=t.type,o=It(r,t.pendingProps),o=It(r.type,o),Ou(e,t,r,o,n);case 15:return fp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),Ii(e,t),t.tag=1,ft(r)?(e=!0,Yi(t)):e=!1,kr(t,n),cp(t,r,o),oa(t,r,o,n),sa(null,t,r,!0,e,n);case 19:return yp(e,t,n);case 22:return pp(e,t,n)}throw Error(W(156,t.tag))};function Ap(e,t){return lf(e,t)}function Q0(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 kt(e,t,n,r){return new Q0(e,t,n,r)}function pc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function K0(e){if(typeof e=="function")return pc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===La)return 11;if(e===Aa)return 14}return 2}function jn(e,t){var n=e.alternate;return n===null?(n=kt(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 Ai(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")pc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case cr:return Hn(n.children,o,i,t);case za:s=8,o|=8;break;case Ts:return e=kt(12,n,t,o|2),e.elementType=Ts,e.lanes=i,e;case Rs:return e=kt(13,n,t,o),e.elementType=Rs,e.lanes=i,e;case Is:return e=kt(19,n,t,o),e.elementType=Is,e.lanes=i,e;case Ud:return wl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wd:s=10;break e;case Bd:s=9;break e;case La:s=11;break e;case Aa:s=14;break e;case dn:s=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=kt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Hn(e,t,n,r){return e=kt(7,e,r,t),e.lanes=n,e}function wl(e,t,n,r){return e=kt(22,e,r,t),e.elementType=Ud,e.lanes=n,e.stateNode={isHidden:!1},e}function ps(e,t,n){return e=kt(6,e,null,t),e.lanes=n,e}function gs(e,t,n){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function q0(e,t,n,r,o){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=Xl(0),this.expirationTimes=Xl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function gc(e,t,n,r,o,i,s,a,c){return e=new q0(e,t,n,a,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=kt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qa(i),e}function Z0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ar,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Np(e){if(!e)return Tn;e=e._reactInternals;e:{if(qn(e)!==e||e.tag!==1)throw Error(W(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ft(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(W(171))}if(e.tag===1){var n=e.type;if(ft(n))return Nf(e,n,t)}return t}function Dp(e,t,n,r,o,i,s,a,c){return e=gc(n,r,!0,e,o,i,s,a,c),e.context=Np(null),n=e.current,r=rt(),o=En(n),i=Kt(r,o),i.callback=t??null,bn(n,i,o),e.current.lanes=o,Fo(e,o,r),pt(e,r),e}function Sl(e,t,n,r){var o=t.current,i=rt(),s=En(o);return n=Np(n),t.context===null?t.context=n:t.pendingContext=n,t=Kt(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=bn(o,t,s),e!==null&&(Nt(e,o,s,i),Ci(e,o,s)),s}function ll(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 Qu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hc(e,t){Qu(e,t),(e=e.alternate)&&Qu(e,t)}function J0(){return null}var Pp=typeof reportError=="function"?reportError:function(e){console.error(e)};function xc(e){this._internalRoot=e}bl.prototype.render=xc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(W(409));Sl(e,t,null,null)};bl.prototype.unmount=xc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qn(function(){Sl(null,e,null,null)}),t[Zt]=null}};function bl(e){this._internalRoot=e}bl.prototype.unstable_scheduleHydration=function(e){if(e){var t=pf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<pn.length&&t!==0&&t<pn[n].priority;n++);pn.splice(n,0,e),n===0&&hf(e)}};function yc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function kl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ku(){}function ex(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=ll(s);i.call(u)}}var s=Dp(t,r,e,0,null,!1,!1,"",Ku);return e._reactRootContainer=s,e[Zt]=s.current,To(e.nodeType===8?e.parentNode:e),Qn(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=ll(c);a.call(u)}}var c=gc(e,0,!1,null,null,!1,!1,"",Ku);return e._reactRootContainer=c,e[Zt]=c.current,To(e.nodeType===8?e.parentNode:e),Qn(function(){Sl(t,c,n,r)}),c}function El(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var c=ll(s);a.call(c)}}Sl(t,s,e,o)}else s=ex(n,t,e,o,r);return ll(s)}df=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ro(t.pendingLanes);n!==0&&(Pa(t,n|1),pt(t,Ae()),!(pe&6)&&(Ar=Ae()+500,Ln()))}break;case 13:Qn(function(){var r=Jt(e,1);if(r!==null){var o=rt();Nt(r,e,1,o)}}),hc(e,1)}};Oa=function(e){if(e.tag===13){var t=Jt(e,134217728);if(t!==null){var n=rt();Nt(t,e,134217728,n)}hc(e,134217728)}};ff=function(e){if(e.tag===13){var t=En(e),n=Jt(e,t);if(n!==null){var r=rt();Nt(n,e,t,r)}hc(e,t)}};pf=function(){return ye};gf=function(e,t){var n=ye;try{return ye=e,t()}finally{ye=n}};Ws=function(e,t,n){switch(t){case"input":if(As(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 o=hl(r);if(!o)throw Error(W(90));Hd(r),As(r,o)}}}break;case"textarea":Gd(e,n);break;case"select":t=n.value,t!=null&&_r(e,!!n.multiple,t,!1)}};Jd=uc;ef=Qn;var tx={usingClientEntryPoint:!1,Events:[Wo,pr,hl,qd,Zd,uc]},qr={findFiberByHostInstance:Wn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nx={bundleType:qr.bundleType,version:qr.version,rendererPackageName:qr.rendererPackageName,rendererConfig:qr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=rf(e),e===null?null:e.stateNode},findFiberByHostInstance:qr.findFiberByHostInstance||J0,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 mi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mi.isDisabled&&mi.supportsFiber)try{dl=mi.inject(nx),$t=mi}catch{}}_t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tx;_t.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yc(t))throw Error(W(200));return Z0(e,t,null,n)};_t.createRoot=function(e,t){if(!yc(e))throw Error(W(299));var n=!1,r="",o=Pp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=gc(e,1,!1,null,null,n,!1,r,o),e[Zt]=t.current,To(e.nodeType===8?e.parentNode:e),new xc(t)};_t.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(W(188)):(e=Object.keys(e).join(","),Error(W(268,e)));return e=rf(t),e=e===null?null:e.stateNode,e};_t.flushSync=function(e){return Qn(e)};_t.hydrate=function(e,t,n){if(!kl(t))throw Error(W(200));return El(null,e,t,!0,n)};_t.hydrateRoot=function(e,t,n){if(!yc(e))throw Error(W(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=Pp;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Dp(t,null,e,1,n??null,o,!1,i,s),e[Zt]=t.current,To(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new bl(t)};_t.render=function(e,t,n){if(!kl(t))throw Error(W(200));return El(null,e,t,!1,n)};_t.unmountComponentAtNode=function(e){if(!kl(e))throw Error(W(40));return e._reactRootContainer?(Qn(function(){El(null,null,e,!1,function(){e._reactRootContainer=null,e[Zt]=null})}),!0):!1};_t.unstable_batchedUpdates=uc;_t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!kl(n))throw Error(W(200));if(e==null||e._reactInternals===void 0)throw Error(W(38));return El(e,t,n,!1,r)};_t.version="18.3.1-next-f1338f8080-20240426";function Op(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Op)}catch(e){console.error(e)}}Op(),Pd.exports=_t;var rx=Pd.exports,qu=rx;js.createRoot=qu.createRoot,js.hydrateRoot=qu.hydrateRoot;function mc(e,t,n){if(!t||!n)return;const r=n.lastIndexOf(":::");if(r!==-1&&n.slice(0,r)!==t)return;const o=r===-1?n:n.slice(r+3);return e.filter(i=>i.fileName===t).flatMap(i=>i.steps).find(i=>i.id===o)}function Fp(e,t){return e.filter(r=>r.fileName===t).flatMap(r=>r.steps).findLast(r=>!!r.screenshot)}function Zu(e,t){var o;const r=Object.hasOwn(e.historicalStepIds,t)?e.historicalStepIds[t]:e.isRunning?null:(o=Fp(e.testScenarios,t))==null?void 0:o.id;return r&&mc(e.testScenarios,t,r)?`${t}:::${r}`:null}function vc(e,t){return t?e.filter(n=>n.fileName===t):e}const ox={},Ju=e=>{let t;const n=new Set,r=(m,h)=>{const x=typeof m=="function"?m(t):m;if(!Object.is(x,t)){const y=t;t=h??(typeof x!="object"||x===null)?x:Object.assign({},t,x),n.forEach(w=>w(t,y))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>u,subscribe:m=>(n.add(m),()=>n.delete(m)),destroy:()=>{(ox?"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()}},u=t=e(r,o,c);return c},ix=e=>e?Ju(e):Ju;var Mp={exports:{}},Wp={},Bp={exports:{}},Up={};/**
|
|
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 Nr=b;function lx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sx=typeof Object.is=="function"?Object.is:lx,ax=Nr.useState,cx=Nr.useEffect,ux=Nr.useLayoutEffect,dx=Nr.useDebugValue;function fx(e,t){var n=t(),r=ax({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return ux(function(){o.value=n,o.getSnapshot=t,hs(o)&&i({inst:o})},[e,n,t]),cx(function(){return hs(o)&&i({inst:o}),e(function(){hs(o)&&i({inst:o})})},[e]),dx(n),n}function hs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sx(e,n)}catch{return!0}}function px(e,t){return t()}var gx=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?px:fx;Up.useSyncExternalStore=Nr.useSyncExternalStore!==void 0?Nr.useSyncExternalStore:gx;Bp.exports=Up;var hx=Bp.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 jl=b,xx=hx;function yx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mx=typeof Object.is=="function"?Object.is:yx,vx=xx.useSyncExternalStore,_x=jl.useRef,wx=jl.useEffect,Sx=jl.useMemo,bx=jl.useDebugValue;Wp.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=_x(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=Sx(function(){function c(y){if(!u){if(u=!0,m=y,y=r(y),o!==void 0&&s.hasValue){var w=s.value;if(o(w,y))return h=w}return h=y}if(w=h,mx(m,y))return w;var _=r(y);return o!==void 0&&o(w,_)?(m=y,w):(m=y,h=_)}var u=!1,m,h,x=n===void 0?null:n;return[function(){return c(t())},x===null?void 0:function(){return c(x())}]},[t,n,r,o]);var a=vx(e,i[0],i[1]);return wx(function(){s.hasValue=!0,s.value=a},[a]),bx(a),a};Mp.exports=Wp;var kx=Mp.exports;const Ex=kd(kx),$p={},{useDebugValue:jx}=Gg,{useSyncExternalStoreWithSelector:Cx}=Ex;let ed=!1;const Tx=e=>e;function Rx(e,t=Tx,n){($p?"production":void 0)!=="production"&&n&&!ed&&(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"),ed=!0);const r=Cx(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return jx(r),r}const td=e=>{($p?"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"?ix(e):e,n=(r,o)=>Rx(t,r,o);return Object.assign(n,t),n},Ix=e=>e?td(e):td,Ye=Ix(e=>({browserInfo:{},setBrowserInfo:(t,n)=>e(r=>({activeTestFile:r.activeTestFile||t,browserInfo:{...r.browserInfo,[t]:n}})),isRunning:!1,runStatus:"idle",failFile:(t,n)=>e(r=>({activeTestFile:r.activeTestFile||t,runStatus:"failed",testScenarios:[...r.testScenarios.filter(o=>o.fileName!==t||o.name!=="File error"),{fileName:t,name:"File error",status:"failed",steps:[{id:"file-error",type:"ERROR",description:"File could not complete",command:"parse / execution",status:"failed",error:n}]}]})),scenarioResult:t=>e(n=>({testScenarios:n.testScenarios.map(r=>r.fileName===t.fileName&&r.name===t.scenario?{...r,status:t.status==="passed"?"pass":"failed"}:r)})),timer:0,completedSteps:[],activeStepId:null,historicalStepIds:{},activeView:"Flows",activeTestFile:"",activeHistoricalRunId:null,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(n=>{const r=(t==null?void 0:t.lastIndexOf(":::"))??-1,o=r===-1?n.activeTestFile:t.slice(0,r),i=mc(n.testScenarios,o,t);if(t&&!i)return n;const s=(i==null?void 0:i.id)||null;return{activeTestFile:o,activeStepId:s?`${o}:::${s}`:null,historicalStepIds:{...n.historicalStepIds,[o]:s},...o!==n.activeTestFile?{selectedLogId:null,activeReplay:null}:{}}}),setActiveTestFile:t=>e(n=>t===n.activeTestFile?n:{activeTestFile:t,activeStepId:Zu(n,t),selectedLogId:null,activeReplay:null}),setActiveHistoricalRunId:t=>e({activeHistoricalRunId:t}),setSelectedLogId:t=>e(n=>{const r=n.logs.find(o=>o.id===t);if(r&&(r.type==="REST"||r.type==="GRAPHQL")){const o=r.details||{},i=o.rawReplayRequest&&typeof o.rawReplayRequest=="object"?o.rawReplayRequest:void 0;return{selectedLogId:t,activeReplay:{method:(i==null?void 0:i.method)||o.method||"GET",url:(i==null?void 0:i.url)||o.url||"",headers:JSON.stringify((i==null?void 0:i.headers)||o.requestHeaders||{},null,2),body:i?i.body??"":typeof o.requestBody=="object"?JSON.stringify(o.requestBody,null,2):o.requestBody||"",response:null,status:null,error:null,requestId:null,isLoading:!1}}}return{selectedLogId:t,activeReplay:null}}),setPageMetadata:(t,n,r)=>e(o=>({currentUrls:{...o.currentUrls,[t]:n},pageTitles:{...o.pageTitles,[t]:r}})),setBrowserFrame:(t,n)=>e(r=>({browserFrames:{...r.browserFrames,[t]:n}})),incrementTimer:()=>e(t=>({timer:t.timer+1})),startExecution:()=>e({isRunning:!0,runStatus:"running",timer:0,completedSteps:[],activeStepId:null,historicalStepIds:{},logs:[],networkLogs:[],assertions:[],testScenarios:[],browserFrames:{},browserInfo:{},currentUrls:{},pageTitles:{},selectedLogId:null,activeReplay:null,activeTestFile:""}),stopExecution:t=>e(n=>{const r=n.testScenarios.map(o=>{const i=o.steps.map(a=>a.status==="running"?{...a,status:"failed"}:a);let s=o.status;if(o.status==="running"){const a=i.some(u=>u.status==="failed"),c=i.length>0&&i.every(u=>["pass","passed","success"].includes(u.status));s=a?"failed":c?"pass":"failed"}return{...o,status:s,steps:i}});return{isRunning:!1,runStatus:t==="aborted"||t==="interrupted"?"interrupted":t==="failed"||r.some(o=>o.status==="failed")?"failed":t==="success"||r.length>0?"passed":"incomplete",activeStepId:Zu({...n,isRunning:!1,testScenarios:r},n.activeTestFile),testScenarios:r}}),startRun:(t,n)=>e(r=>{const o=t;if(!o)return r;const i=n||"Default Scenario",s=r.testScenarios.filter(m=>m.status==="running"&&m.fileName!==o).length,a=r.activeTestFile===""||s===0?o:r.activeTestFile,c=r.testScenarios.findIndex(m=>m.fileName===o&&m.name===i),u=[...r.testScenarios];return c!==-1?u[c]={...u[c],status:"running",steps:[]}:u.push({fileName:o,name:i,status:"running",steps:[]}),{activeTestFile:a,testScenarios:u,...a!==r.activeTestFile?{activeStepId:null,selectedLogId:null,activeReplay:null}:{}}}),addStep:t=>e(n=>{const r=t.fileName;if(!r)return n;let o=[...n.testScenarios],i=-1;for(let u=o.length-1;u>=0;u--)if(o[u].fileName===r){i=u;break}i===-1&&(o.push({fileName:r,name:"Scenario",status:"running",steps:[]}),i=o.length-1);const s=o[i],a=s.steps.findIndex(u=>u.id===t.id);if(a!==-1){const u=s.steps[a];if((t.attempt||1)<=(u.attempt||1))return n;const m=[...s.steps];return m[a]={...u,status:t.status||"running",attempt:t.attempt,profile:t.profile||u.profile,error:null,assertion:null,screenshot:void 0,domSnapshot:void 0},o[i]={...s,status:"running",steps:m},{testScenarios:o}}const c={id:t.id,type:t.type||"ACTION",description:t.description||"",command:t.command||"",status:t.status||"running",commandLabel:t.commandLabel,sourceLine:t.sourceLine,error:t.error,assertion:t.assertion,attempt:t.attempt,profile:t.profile};return o[i]={...s,steps:[...s.steps,c]},{testScenarios:o}}),updateStepStatus:(t,n,r,o,i)=>e(s=>{if(!o)return s;let a=!1;const c=s.testScenarios.map(m=>{if(m.fileName!==o)return m;const h=m.steps.findIndex(R=>R.id===t);if(h===-1)return m;a=!0;const x=[...m.steps],y=x[h],w=(i==null?void 0:i.attempt)||y.attempt||1,_=[...y.attemptHistory||[]],L={attempt:w,status:n,screenshot:r,domSnapshot:i==null?void 0:i.domSnapshot,profile:i==null?void 0:i.profile,error:i==null?void 0:i.error,assertion:i==null?void 0:i.assertion},d=_.findIndex(R=>R.attempt===w);d===-1?_.push(L):_[d]={..._[d],...L,screenshot:r||_[d].screenshot},x[h]={...x[h],status:n||"pending",screenshot:r||(w===(y.attempt||1)?y.screenshot:void 0),attempt:w,profile:(i==null?void 0:i.profile)||y.profile,domSnapshot:(i==null?void 0:i.domSnapshot)||(w===(y.attempt||1)?y.domSnapshot:void 0),error:(i==null?void 0:i.error)!==void 0?i.error:w===(y.attempt||1)?y.error:null,assertion:(i==null?void 0:i.assertion)!==void 0?i.assertion:w===(y.attempt||1)?y.assertion:null,commandLabel:(i==null?void 0:i.commandLabel)||y.commandLabel,sourceLine:(i==null?void 0:i.sourceLine)||y.sourceLine,attemptHistory:_};const f=x.some(R=>R.status==="failed"),p=x.every(R=>["pass","passed","success"].includes(R.status));let v=m.status;return f?v="failed":p&&(v="pass"),{...m,status:v,steps:x}});if(!a)return s;const u=["pass","passed","success"].includes(n);return{testScenarios:c,completedSteps:u&&!s.completedSteps.includes(t)?[...s.completedSteps,t]:s.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,r=null,o)=>e(i=>({activeReplay:i.activeReplay&&(!o||o===i.activeReplay.requestId)?{...i.activeReplay,response:t,status:n,error:r,isLoading:!1}:i.activeReplay}))}));/**
|
|
57
|
+
* @license lucide-react v0.400.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const zx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hp=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
|
62
|
+
* @license lucide-react v0.400.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/var Lx={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"};/**
|
|
67
|
+
* @license lucide-react v0.400.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const Ax=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},c)=>b.createElement("svg",{ref:c,...Lx,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Hp("lucide",o),...a},[...s.map(([u,m])=>b.createElement(u,m)),...Array.isArray(i)?i:[i]]));/**
|
|
72
|
+
* @license lucide-react v0.400.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const K=(e,t)=>{const n=b.forwardRef(({className:r,...o},i)=>b.createElement(Ax,{ref:i,iconNode:t,className:Hp(`lucide-${zx(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
77
|
+
* @license lucide-react v0.400.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const Nx=K("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
82
|
+
* @license lucide-react v0.400.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const Dx=K("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);/**
|
|
87
|
+
* @license lucide-react v0.400.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const Px=K("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"}]]);/**
|
|
92
|
+
* @license lucide-react v0.400.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const Vp=K("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
97
|
+
* @license lucide-react v0.400.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const Dr=K("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
102
|
+
* @license lucide-react v0.400.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const _c=K("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
107
|
+
* @license lucide-react v0.400.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const Rn=K("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
112
|
+
* @license lucide-react v0.400.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const Ox=K("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
117
|
+
* @license lucide-react v0.400.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const wc=K("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
122
|
+
* @license lucide-react v0.400.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const nd=K("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"}]]);/**
|
|
127
|
+
* @license lucide-react v0.400.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const Gp=K("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"}]]);/**
|
|
132
|
+
* @license lucide-react v0.400.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const Sc=K("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"}]]);/**
|
|
137
|
+
* @license lucide-react v0.400.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const Fx=K("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
142
|
+
* @license lucide-react v0.400.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const Mx=K("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"}]]);/**
|
|
147
|
+
* @license lucide-react v0.400.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const Wx=K("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
152
|
+
* @license lucide-react v0.400.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const Bx=K("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"}]]);/**
|
|
157
|
+
* @license lucide-react v0.400.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const Yp=K("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"}]]);/**
|
|
162
|
+
* @license lucide-react v0.400.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const mo=K("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"}]]);/**
|
|
167
|
+
* @license lucide-react v0.400.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const rd=K("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"}]]);/**
|
|
172
|
+
* @license lucide-react v0.400.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const Ux=K("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
|
177
|
+
* @license lucide-react v0.400.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const $x=K("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"}]]);/**
|
|
182
|
+
* @license lucide-react v0.400.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const xs=K("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"}]]);/**
|
|
187
|
+
* @license lucide-react v0.400.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const Hx=K("Group",[["path",{d:"M3 7V5c0-1.1.9-2 2-2h2",key:"adw53z"}],["path",{d:"M17 3h2c1.1 0 2 .9 2 2v2",key:"an4l38"}],["path",{d:"M21 17v2c0 1.1-.9 2-2 2h-2",key:"144t0e"}],["path",{d:"M7 21H5c-1.1 0-2-.9-2-2v-2",key:"rtnfgi"}],["rect",{width:"7",height:"5",x:"7",y:"7",rx:"1",key:"1eyiv7"}],["rect",{width:"7",height:"5",x:"10",y:"12",rx:"1",key:"1qlmkx"}]]);/**
|
|
192
|
+
* @license lucide-react v0.400.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const Vx=K("Hand",[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]);/**
|
|
197
|
+
* @license lucide-react v0.400.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const Gx=K("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"}]]);/**
|
|
202
|
+
* @license lucide-react v0.400.0 - ISC
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the ISC license.
|
|
205
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
+
*/const ys=K("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
|
207
|
+
* @license lucide-react v0.400.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const Yx=K("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);/**
|
|
212
|
+
* @license lucide-react v0.400.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the ISC license.
|
|
215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
+
*/const Xx=K("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
|
|
217
|
+
* @license lucide-react v0.400.0 - ISC
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the ISC license.
|
|
220
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
+
*/const Qx=K("ListOrdered",[["line",{x1:"10",x2:"21",y1:"6",y2:"6",key:"76qw6h"}],["line",{x1:"10",x2:"21",y1:"12",y2:"12",key:"16nom4"}],["line",{x1:"10",x2:"21",y1:"18",y2:"18",key:"u3jurt"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/**
|
|
222
|
+
* @license lucide-react v0.400.0 - ISC
|
|
223
|
+
*
|
|
224
|
+
* This source code is licensed under the ISC license.
|
|
225
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
+
*/const Xp=K("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"}]]);/**
|
|
227
|
+
* @license lucide-react v0.400.0 - ISC
|
|
228
|
+
*
|
|
229
|
+
* This source code is licensed under the ISC license.
|
|
230
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
+
*/const Kx=K("List",[["line",{x1:"8",x2:"21",y1:"6",y2:"6",key:"7ey8pc"}],["line",{x1:"8",x2:"21",y1:"12",y2:"12",key:"rjfblc"}],["line",{x1:"8",x2:"21",y1:"18",y2:"18",key:"c3b1m8"}],["line",{x1:"3",x2:"3.01",y1:"6",y2:"6",key:"1g7gq3"}],["line",{x1:"3",x2:"3.01",y1:"12",y2:"12",key:"1pjlvk"}],["line",{x1:"3",x2:"3.01",y1:"18",y2:"18",key:"28t2mc"}]]);/**
|
|
232
|
+
* @license lucide-react v0.400.0 - ISC
|
|
233
|
+
*
|
|
234
|
+
* This source code is licensed under the ISC license.
|
|
235
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
+
*/const Pr=K("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
237
|
+
* @license lucide-react v0.400.0 - ISC
|
|
238
|
+
*
|
|
239
|
+
* This source code is licensed under the ISC license.
|
|
240
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
+
*/const qx=K("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"}]]);/**
|
|
242
|
+
* @license lucide-react v0.400.0 - ISC
|
|
243
|
+
*
|
|
244
|
+
* This source code is licensed under the ISC license.
|
|
245
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
+
*/const Qp=K("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"}]]);/**
|
|
247
|
+
* @license lucide-react v0.400.0 - ISC
|
|
248
|
+
*
|
|
249
|
+
* This source code is licensed under the ISC license.
|
|
250
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
+
*/const Zx=K("MousePointer2",[["path",{d:"m4 4 7.07 17 2.51-7.39L21 11.07z",key:"1vqm48"}]]);/**
|
|
252
|
+
* @license lucide-react v0.400.0 - ISC
|
|
253
|
+
*
|
|
254
|
+
* This source code is licensed under the ISC license.
|
|
255
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
+
*/const Jx=K("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"}]]);/**
|
|
257
|
+
* @license lucide-react v0.400.0 - ISC
|
|
258
|
+
*
|
|
259
|
+
* This source code is licensed under the ISC license.
|
|
260
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
+
*/const ey=K("PanelRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
|
|
262
|
+
* @license lucide-react v0.400.0 - ISC
|
|
263
|
+
*
|
|
264
|
+
* This source code is licensed under the ISC license.
|
|
265
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
+
*/const ty=K("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
267
|
+
* @license lucide-react v0.400.0 - ISC
|
|
268
|
+
*
|
|
269
|
+
* This source code is licensed under the ISC license.
|
|
270
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
+
*/const Kp=K("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
272
|
+
* @license lucide-react v0.400.0 - ISC
|
|
273
|
+
*
|
|
274
|
+
* This source code is licensed under the ISC license.
|
|
275
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
+
*/const qp=K("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
277
|
+
* @license lucide-react v0.400.0 - ISC
|
|
278
|
+
*
|
|
279
|
+
* This source code is licensed under the ISC license.
|
|
280
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
+
*/const ny=K("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"}]]);/**
|
|
282
|
+
* @license lucide-react v0.400.0 - ISC
|
|
283
|
+
*
|
|
284
|
+
* This source code is licensed under the ISC license.
|
|
285
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
+
*/const Zp=K("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"}]]);/**
|
|
287
|
+
* @license lucide-react v0.400.0 - ISC
|
|
288
|
+
*
|
|
289
|
+
* This source code is licensed under the ISC license.
|
|
290
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
+
*/const ry=K("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
|
292
|
+
* @license lucide-react v0.400.0 - ISC
|
|
293
|
+
*
|
|
294
|
+
* This source code is licensed under the ISC license.
|
|
295
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
+
*/const oy=K("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"}]]);/**
|
|
297
|
+
* @license lucide-react v0.400.0 - ISC
|
|
298
|
+
*
|
|
299
|
+
* This source code is licensed under the ISC license.
|
|
300
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
+
*/const bc=K("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
302
|
+
* @license lucide-react v0.400.0 - ISC
|
|
303
|
+
*
|
|
304
|
+
* This source code is licensed under the ISC license.
|
|
305
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
306
|
+
*/const iy=K("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
|
|
307
|
+
* @license lucide-react v0.400.0 - ISC
|
|
308
|
+
*
|
|
309
|
+
* This source code is licensed under the ISC license.
|
|
310
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
311
|
+
*/const ly=K("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|
312
|
+
* @license lucide-react v0.400.0 - ISC
|
|
313
|
+
*
|
|
314
|
+
* This source code is licensed under the ISC license.
|
|
315
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
316
|
+
*/const sy=K("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"}]]);/**
|
|
317
|
+
* @license lucide-react v0.400.0 - ISC
|
|
318
|
+
*
|
|
319
|
+
* This source code is licensed under the ISC license.
|
|
320
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
321
|
+
*/const ay=K("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
322
|
+
* @license lucide-react v0.400.0 - ISC
|
|
323
|
+
*
|
|
324
|
+
* This source code is licensed under the ISC license.
|
|
325
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
326
|
+
*/const cy=K("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
327
|
+
* @license lucide-react v0.400.0 - ISC
|
|
328
|
+
*
|
|
329
|
+
* This source code is licensed under the ISC license.
|
|
330
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
331
|
+
*/const uy=K("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
332
|
+
* @license lucide-react v0.400.0 - ISC
|
|
333
|
+
*
|
|
334
|
+
* This source code is licensed under the ISC license.
|
|
335
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
336
|
+
*/const dy=K("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
|
|
337
|
+
* @license lucide-react v0.400.0 - ISC
|
|
338
|
+
*
|
|
339
|
+
* This source code is licensed under the ISC license.
|
|
340
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
341
|
+
*/const fy=K("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
|
342
|
+
* @license lucide-react v0.400.0 - ISC
|
|
343
|
+
*
|
|
344
|
+
* This source code is licensed under the ISC license.
|
|
345
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
346
|
+
*/const od=K("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
347
|
+
* @license lucide-react v0.400.0 - ISC
|
|
348
|
+
*
|
|
349
|
+
* This source code is licensed under the ISC license.
|
|
350
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
351
|
+
*/const ms=K("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
|
|
352
|
+
* @license lucide-react v0.400.0 - ISC
|
|
353
|
+
*
|
|
354
|
+
* This source code is licensed under the ISC license.
|
|
355
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
356
|
+
*/const jr=K("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
357
|
+
* @license lucide-react v0.400.0 - ISC
|
|
358
|
+
*
|
|
359
|
+
* This source code is licensed under the ISC license.
|
|
360
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
361
|
+
*/const py=K("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);/**
|
|
362
|
+
* @license lucide-react v0.400.0 - ISC
|
|
363
|
+
*
|
|
364
|
+
* This source code is licensed under the ISC license.
|
|
365
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
366
|
+
*/const gy=K("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),hy=""+new URL("flow_logo-CjiL4Lvy.png",import.meta.url).href,xy=({isTestFlowsOpen:e,setTestFlowsOpen:t})=>{const{activeView:n,setActiveView:r}=Ye(),o=[{id:"Flows",icon:$x,label:"Flows"},{id:"Workspace",icon:Qp,label:"Workspace"},{id:"Runs",icon:Fx,label:"Runs"},{id:"Logs",icon:oy,label:"Logs"},{id:"Reports",icon:mo,label:"Reports"},{id:"TestCase",icon:Sc,label:"TestCase"}];return l.jsx("nav",{style:{width:"75px",backgroundColor:"#0d1117",borderRight:"1px solid #30363d",overflowY:"auto",flexShrink:0},children:l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",minHeight:"100%",paddingBottom:"24px"},children:[l.jsx("div",{style:{padding:"25px 0",cursor:"pointer"},onClick:()=>r("Flows"),children:l.jsx("img",{src:hy,alt:"Flowstride",style:{width:"42px",height:"auto"}})}),n==="Flows"&&l.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:[l.jsx(Xp,{size:22}),l.jsx("span",{style:{fontSize:"10px",marginTop:"4px",fontWeight:"bold"},children:e?"Hide":"Show"})]}),l.jsx("div",{style:{flex:1,width:"100%"},children:o.map(i=>{const s=n===i.id;return l.jsxs("div",{onClick:()=>r(i.id),style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",padding:"18px 0",cursor:"pointer",backgroundColor:s?"rgba(124, 58, 237, 0.08)":"transparent",borderLeft:s?"3px solid #7c3aed":"3px solid transparent",color:s?"#a78bfa":"#8b949e",transition:"color 0.2s ease"},children:[l.jsx(i.icon,{size:22,strokeWidth:s?2.5:2}),l.jsx("span",{style:{fontSize:"10px",marginTop:"6px",fontWeight:s?"600":"400"},children:i.label})]},i.id)})}),l.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:[l.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"}),l.jsx("span",{style:{fontSize:"11px",marginTop:"10px",fontWeight:"bold",color:"#ffffff"},children:"Open Source"}),l.jsx("span",{style:{fontSize:"9px",color:"#8b949e",marginTop:"2px",textAlign:"center",padding:"0 4px"},children:"COMMUNITY EDITION"})]})]})})};function Cl({result:e,light:t=!1}){if(!e)return null;const n=o=>o==="passed"?t?"#047857":"#34d399":o==="failed"?t?"#b91c1c":"#f87171":t?"#64748b":"#94a3b8",r=o=>{var i;return l.jsxs("div",{"data-assertion-check":o.key,"data-check-status":o.status,style:{marginLeft:10,marginTop:5},children:[l.jsxs("div",{style:{color:n(o.status)},children:[o.status==="passed"?"✔":o.status==="failed"?"✖":"○"," ",o.label,o.status==="not_evaluated"?" — Not evaluated":""]}),o.status==="failed"&&l.jsxs("div",{style:{marginLeft:16},children:[o.expected!==void 0&&l.jsxs("div",{children:["Expected: ",o.expected]}),o.actual!==void 0&&l.jsxs("div",{children:["Actual: ",o.actual]})]}),o.reason&&o.status!=="passed"&&l.jsxs("div",{style:{marginLeft:16},children:["Reason: ",o.reason]}),(i=o.children)==null?void 0:i.map(r)]},o.key)};return l.jsxs("div",{"data-assertion-result":e.status,style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",fontFamily:"monospace",fontSize:11,textAlign:"left",color:t?"#334155":"#cbd5e1",padding:"6px 4px",minWidth:0},children:[e.checks.map(r),e.status==="failed"&&e.reason&&l.jsxs("div",{children:["Reason: ",e.reason]}),e.timeout!==void 0&&l.jsxs("div",{children:["Timeout: ",e.timeout," ms; elapsed: ",e.elapsed||0," ms"]}),e.sourceFile&&l.jsxs("div",{children:["Location: ",e.sourceFile,e.sourceLine?":"+e.sourceLine:""]}),e.profile&&l.jsxs("div",{children:["Profile: ",e.profile]})]})}const yy=()=>{var p,v,R;const{currentUrls:e,pageTitles:t,browserFrames:n,testScenarios:r,activeStepId:o,setActiveStepId:i,isRunning:s,activeTestFile:a,setActiveTestFile:c}=Ye(),u=mc(r,a,o),[m,h]=b.useState(null);b.useEffect(()=>{h(null)},[a,o,s]);const x=((p=u==null?void 0:u.attemptHistory)==null?void 0:p.find(I=>I.attempt===(m||u.attempt)))||u,y=!s&&!!(x!=null&&x.screenshot),w=e[a]||"about:blank",_=t[a]||"New Tab",L=n[a]||null,d=!s&&u?x==null?void 0:x.screenshot:L||(s?null:(v=Fp(r,a))==null?void 0:v.screenshot),f=Array.from(new Set(r.map(I=>I.fileName)));return l.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column",backgroundColor:"#1c2128"},children:[l.jsxs("div",{onWheel:I=>{I.currentTarget.scrollLeft+=I.deltaY},style:{display:"flex",alignItems:"center",padding:"8px 8px 0 8px",gap:"4px",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none",msOverflowStyle:"none"},children:[l.jsx("style",{children:`
|
|
367
|
+
div::-webkit-scrollbar { display: none; }
|
|
368
|
+
`}),f.length>0?f.map(I=>{const D=a===I;return l.jsxs("div",{role:"tab","aria-selected":D,"aria-label":I,tabIndex:0,onKeyDown:k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),c(I))},onClick:()=>c(I),style:{backgroundColor:D?"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:D?"1px solid var(--fs-border)":"1px solid transparent",borderBottom:"none",minWidth:"130px",maxWidth:"200px",flexShrink:0,cursor:"pointer",opacity:D?1:.6},children:[l.jsx(xs,{size:12,color:D?"var(--fs-accent-purple)":"#8b949e",style:{flexShrink:0}}),l.jsx("span",{style:{fontSize:"10px",color:D?"white":"#8b949e",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:D?"bold":"normal"},children:I})]},I)}):l.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:[l.jsx(xs,{size:12,color:"var(--fs-accent-purple)"}),l.jsx("span",{style:{fontSize:"10px",color:"white"},children:_})]})]}),l.jsxs("div",{style:{backgroundColor:"var(--fs-bg-base)",borderTop:"1px solid var(--fs-border)",padding:"6px 12px",display:"flex",alignItems:"center",gap:"12px"},children:[l.jsxs("div",{style:{display:"flex",gap:"8px",color:"#8b949e"},children:[l.jsx(_c,{size:14}),l.jsx(Rn,{size:14}),l.jsx(Zp,{size:14}),l.jsx(Gx,{size:14})]}),l.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:[l.jsx(qx,{size:10,color:"#22c55e"}),l.jsx("span",{style:{fontSize:"10px",color:"#8b949e",whiteSpace:"nowrap",overflow:"hidden"},children:w})]}),l.jsxs("div",{style:{display:"flex",gap:"10px",color:"#444",borderLeft:"1px solid #333",paddingLeft:"12px"},children:[l.jsx(Qp,{size:14,color:"var(--fs-accent-purple)"}),l.jsx(sy,{size:14}),l.jsx(iy,{size:14}),l.jsx(Px,{size:14})]})]}),l.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:[y&&l.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:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[l.jsx("div",{style:{backgroundColor:"rgba(167, 139, 250, 0.1)",padding:"6px",borderRadius:"4px"},children:l.jsx(Bx,{size:14,color:"#a78bfa"})}),l.jsxs("div",{children:[l.jsx("div",{style:{fontSize:"11px",fontWeight:"bold",color:"#a78bfa",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Viewing Historical State"}),l.jsxs("div",{style:{fontSize:"12px",color:"#e2e8f0",fontFamily:"monospace",marginTop:"2px"},children:[(u==null?void 0:u.commandLabel)||(u==null?void 0:u.command),(x==null?void 0:x.profile)&&l.jsxs("span",{children:[" · Profile: ",x.profile]}),l.jsx(Cl,{result:x==null?void 0:x.assertion}),(((R=u==null?void 0:u.attemptHistory)==null?void 0:R.length)||0)>1&&l.jsx("select",{"aria-label":"History attempt",value:m||(u==null?void 0:u.attempt)||1,onChange:I=>h(Number(I.target.value)),style:{marginLeft:10,color:"white",background:"#1e293b"},children:u.attemptHistory.map(I=>l.jsxs("option",{value:I.attempt,children:["Attempt ",I.attempt," · ",I.status]},I.attempt))}),(x==null?void 0:x.domSnapshot)&&l.jsx("a",{href:`/evidence?file=${encodeURIComponent(x.domSnapshot)}`,target:"_blank",rel:"noopener noreferrer",style:{marginLeft:10,color:"#c4b5fd"},children:"Read DOM snapshot"})]})]})]}),l.jsx("button",{onClick:()=>i(null),style:{backgroundColor:"#7c3aed",color:"white",border:"none",padding:"6px 14px",borderRadius:"4px",fontSize:"11px",fontWeight:"bold",cursor:"pointer",transition:"background 0.2s"},onMouseEnter:I=>I.currentTarget.style.backgroundColor="#6d28d9",onMouseLeave:I=>I.currentTarget.style.backgroundColor="#7c3aed",children:"Return to Live"})]}),d?l.jsx("img",{src:`data:image/png;base64,${d}`,style:{width:"100%",height:"100%",objectFit:"contain",opacity:y?.95:1},alt:"Browser frame"}):l.jsxs("div",{style:{textAlign:"center",color:"#ccc"},children:[l.jsx(xs,{size:40,style:{marginBottom:"8px",opacity:.1}}),l.jsx("div",{style:{fontSize:"11px",fontWeight:500,opacity:.3},children:s?"WAITING FOR RENDER...":u?"No captured screen for this step.":"No browser screen captured for this test."})]})]})]})},my=()=>{const{networkLogs:e,activeTestFile:t,activeNetworkTab:n,setNetworkTab:r,setSelectedLogId:o,setActiveView:i}=Ye(),s=["REST","GraphQL","Network","WS"],a=vc(e,t).filter(u=>n==="GraphQL"?u.url.includes("graphql"):n==="REST"?!u.url.includes("graphql")&&!u.url.includes("ws"):!0),c=u=>{o(u),i("Logs")};return l.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column",backgroundColor:"#0d1117"},children:[l.jsx("div",{style:{display:"flex",borderBottom:"1px solid var(--fs-border)",backgroundColor:"#05070a"},children:s.map(u=>l.jsx("button",{onClick:()=>r(u),style:{padding:"10px 16px",fontSize:"11px",fontWeight:"600",background:"none",border:"none",color:n===u?"#a78bfa":"#444",borderBottom:n===u?"2px solid #7c3aed":"2px solid transparent",cursor:"pointer",transition:"all 0.2s"},children:u},u))}),l.jsxs("div",{style:{padding:"8px 12px",display:"flex",gap:"10px",alignItems:"center",borderBottom:"1px solid #161b22"},children:[l.jsxs("div",{style:{flex:1,position:"relative"},children:[l.jsx(bc,{size:12,style:{position:"absolute",left:"8px",top:"50%",transform:"translateY(-50%)",color:"#444"}}),l.jsx("input",{type:"text",placeholder:`Filter ${n}...`,style:{width:"100%",background:"#05070a",border:"1px solid #30363d",borderRadius:"4px",padding:"4px 8px 4px 28px",fontSize:"10px",color:"white"}})]}),l.jsx(Ux,{size:14,color:"#444"})]}),l.jsx("div",{style:{flex:1,overflowY:"auto"},children:a.length===0?l.jsxs("div",{style:{padding:"40px",textAlign:"center",color:"#444",fontSize:"11px"},children:["No ",n," traffic detected"]}):a.map((u,m)=>l.jsx("div",{onClick:()=>c(u.id),style:{borderBottom:"1px solid #161b22",cursor:"pointer",transition:"background 0.2s"},onMouseEnter:h=>h.currentTarget.style.backgroundColor="#161b22",onMouseLeave:h=>h.currentTarget.style.backgroundColor="transparent",children:l.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"8px 12px",fontSize:"11px",gap:"10px"},children:[l.jsx("span",{style:{color:u.status<400?"#34d399":"#f87171",fontWeight:"bold",width:"25px"},children:u.status}),l.jsx("span",{style:{fontWeight:"bold",width:"35px",color:"#8b949e"},children:u.method}),l.jsx("span",{style:{flex:1,color:"white",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:u.name||u.url}),l.jsx("span",{style:{color:"#444",fontSize:"10px"},children:u.time})]})},m))})]})},vy=()=>{const{logs:e,activeTestFile:t}=Ye(),n=vc(e,t),r=b.useRef(null);return b.useEffect(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},[n]),l.jsxs("div",{ref:r,style:{flex:1,backgroundColor:"#0d1117",padding:"10px 15px",fontFamily:"monospace",fontSize:"12px",overflowY:"auto",color:"#d1d5db",lineHeight:"1.5"},children:[n.length===0&&l.jsx("div",{style:{color:"#4b5563",fontStyle:"italic"},children:"System ready. Awaiting execution..."}),n.map((o,i)=>{const s=(o.type||o.status||"INFO").toUpperCase();let a="#34d399";return(o.status==="error"||o.type==="ERROR")&&(a="#f87171"),o.status==="warning"&&(a="#fbbf24"),o.type==="ACTION"&&(a="#60a5fa"),l.jsxs("div",{style:{marginBottom:"4px",display:"flex",gap:"8px"},children:[l.jsxs("span",{style:{color:"#6e7681",flexShrink:0},children:["[",o.timestamp||"--:--:--","]"]}),l.jsx("span",{style:{color:a,fontWeight:"bold",flexShrink:0,width:"55px"},children:s}),l.jsx("span",{style:{color:"#c9d1d9",wordBreak:"break-all"},children:o.summary})]},o.id||i)})]})},_y=({isRightPanelOpen:e})=>{const{logs:t,pageTitles:n,activeTestFile:r}=Ye(),o=vc(t,r).at(-1),i=n[r]||"New Tab";return l.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:[l.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:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",flex:1},children:[l.jsx("span",{style:{color:"#a78bfa",fontWeight:"bold"},children:"LOG:"}),l.jsx("span",{style:{color:"#c9d1d9",fontFamily:"monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:(o==null?void 0:o.summary)||"System ready. Awaiting connection..."})]}),l.jsx("div",{style:{opacity:.5,fontStyle:"italic"},children:i})]}),l.jsxs("div",{style:{flex:1,display:"flex",overflow:"hidden"},children:[l.jsx("div",{style:{flex:1,borderRight:"1px solid var(--fs-border)",height:"100%",overflow:"hidden"},children:l.jsx(yy,{})}),l.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:[l.jsx("div",{style:{flex:1,overflow:"hidden",display:"flex",flexDirection:"column"},children:l.jsx(my,{})}),l.jsxs("div",{style:{flex:1,borderTop:"1px solid var(--fs-border)",backgroundColor:"#0d1117",overflow:"hidden",display:"flex",flexDirection:"column"},children:[l.jsx("div",{style:{padding:"8px 15px",fontSize:"11px",fontWeight:"bold",color:"#8b949e",borderBottom:"1px solid var(--fs-border)",flexShrink:0},children:"LIVE INFO"}),l.jsx("div",{style:{flex:1,overflow:"hidden",position:"relative"},children:l.jsx(vy,{})})]})]})]})]})};function Jp(e){const t=typeof e=="string"?e.trim().toLowerCase().replace(/[\s-]+/g,"_"):e==null?"pending":"unknown",n=(r,o,i,s="#64748b")=>({status:r,label:o,actualResult:i,color:s,isPassed:r==="passed",isFailed:r==="failed"||r==="error"});switch(t){case"pass":case"passed":case"success":return n("passed","PASSED","Action verified successfully.","#10b981");case"fail":case"failed":return n("failed","FAILED","Validation failed.","#ef4444");case"error":return n("error","ERROR","Step execution failed.","#ef4444");case"skip":case"skipped":return n("skipped","SKIPPED","Step skipped; not executed.");case"not_tested":return n("not_tested","NOT TESTED","Step not tested.");case"":case"pending":return n("pending","PENDING","Awaiting execution.");case"running":case"in_progress":return n("running","RUNNING","Execution in progress.");case"cancelled":case"canceled":return n("cancelled","CANCELLED","Execution cancelled.");case"interrupted":return n("interrupted","INTERRUPTED","Execution interrupted.");case"blocked":return n("blocked","BLOCKED","Execution blocked.");default:return n("unknown","UNKNOWN","Result unavailable.")}}const wy=()=>{var x,y,w;const[e,t]=b.useState(null),{testScenarios:n,logs:r}=Ye(),o=n.reduce((_,L)=>_+L.steps.length,0),i=n.reduce((_,L)=>_+L.steps.filter(d=>["pass","passed","success"].includes(d.status)).length,0),s=n.reduce((_,L)=>_+L.steps.filter(d=>d.status==="failed").length,0),a=n.reduce((_,L)=>{const d=L.fileName||"General";return _[d]||(_[d]=[]),_[d].push(L),_},{});let c="Not executed.",u=null,m=null,h=null;if(e){const _=e.status==="failed",L=["pass","passed","success"].includes(e.status);if(m=e.screenshot,_){const f=`${e.type} ${e.description}`,p=r.slice().reverse().find(v=>{var R;return v.type==="ERROR"&&v.fileName===e.fileName&&((R=v.details)!=null&&R.stepId?v.details.stepId===e.id:v.stepContext===f)});c=e.error||((x=p==null?void 0:p.details)==null?void 0:x.rawError)||(p==null?void 0:p.summary)||"Validation Failed.",!m&&((y=p==null?void 0:p.details)!=null&&y.screenshot)&&(m=p.details.screenshot),(w=p==null?void 0:p.details)!=null&&w.boundingBox&&(h=p.details.boundingBox)}else e.status==="running"?c="Executing...":L?c="Action verified successfully.":c=Jp(e.status).actualResult;const d=r.slice().reverse().find(f=>(f.type==="REST"||f.type==="GRAPHQL")&&f.fileName===e.fileName);u=d?d.details:null}return l.jsxs("div",{style:{height:"100%",width:"100%",backgroundColor:"#f8fafc",overflowY:"auto",position:"relative",color:"#0f172a"},children:[l.jsxs("div",{style:{maxWidth:"1200px",margin:"0 auto",padding:"40px 20px",marginRight:e?"450px":"auto",transition:"margin-right 0.3s"},children:[l.jsxs("header",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-end",borderBottom:"1px solid #e2e8f0",paddingBottom:"24px",marginBottom:"40px"},children:[l.jsxs("div",{children:[l.jsx("h1",{style:{fontSize:"30px",fontWeight:"800",margin:0,color:"#1e293b"},children:"Flowstride Reports"}),l.jsx("p",{style:{color:"#64748b",margin:"4px 0 0 0",fontWeight:"500"},children:"Multi-Flow Execution Analysis"})]}),l.jsxs("div",{style:{display:"flex",gap:"16px"},children:[l.jsx(vs,{label:"PASSED",value:i,color:"#10b981",icon:l.jsx(wc,{size:20})}),l.jsx(vs,{label:"FAILED",value:s,color:"#ef4444",icon:l.jsx(Gp,{size:20})}),l.jsx(vs,{label:"TOTAL",value:o,color:"#3b82f6",icon:l.jsx(mo,{size:20})})]})]}),Object.keys(a).map(_=>l.jsxs("div",{style:{marginBottom:"60px"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"20px",marginBottom:"24px"},children:[l.jsx("div",{style:{height:"2px",flex:1,backgroundColor:"#7c3aed",opacity:.15}}),l.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:[l.jsx(Yp,{size:14})," ",_]}),l.jsx("div",{style:{height:"2px",flex:1,backgroundColor:"#7c3aed",opacity:.15}})]}),l.jsx("div",{style:{backgroundColor:"white",borderRadius:"12px",border:"1px solid #e2e8f0",boxShadow:"0 1px 3px rgba(0,0,0,0.05)",overflow:"hidden"},children:l.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",textAlign:"left"},children:[l.jsx("thead",{style:{backgroundColor:"#f1f5f9",borderBottom:"1px solid #e2e8f0"},children:l.jsx("tr",{children:["S/N","Scenario","Action","Status",""].map((L,d)=>l.jsx("th",{style:{padding:"16px 24px",fontSize:"10px",fontWeight:"800",color:"#64748b",textTransform:"uppercase"},children:L},d))})}),l.jsx("tbody",{children:a[_].flatMap(L=>L.steps.map((d,f)=>l.jsxs("tr",{onClick:()=>t({...d,scenarioName:L.name,fileName:_}),style:{cursor:"pointer",borderBottom:"1px solid #f1f5f9",backgroundColor:(e==null?void 0:e.id)===d.id?"#eff6ff":"transparent"},children:[l.jsx("td",{style:{padding:"18px 24px",fontSize:"12px",color:"#94a3b8",fontFamily:"monospace",fontWeight:"bold"},children:f+1}),l.jsx("td",{style:{padding:"18px 24px",fontWeight:"600",color:"#334155"},children:L.name}),l.jsxs("td",{style:{padding:"18px 24px",fontSize:"14px",color:"#475569"},children:[l.jsx("b",{style:{color:"#7c3aed",marginRight:"8px"},children:d.type})," ",d.description]}),l.jsx("td",{style:{padding:"18px 24px"},children:l.jsx(by,{status:d.status})}),l.jsx("td",{style:{padding:"18px 24px",textAlign:"right"},children:l.jsx(Rn,{size:16,color:(e==null?void 0:e.id)===d.id?"#3b82f6":"#cbd5e1",style:{transform:(e==null?void 0:e.id)===d.id?"rotate(90deg)":"none",transition:"0.2s"}})})]},d.id)))})]})})]},_))]}),l.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&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"32px"},children:[l.jsxs("h2",{style:{fontSize:"18px",fontWeight:"700",display:"flex",alignItems:"center",gap:"10px"},children:[l.jsx(ay,{size:18,color:"#3b82f6"})," Step Diagnostics"]}),l.jsx(jr,{onClick:()=>t(null),style:{cursor:"pointer",color:"#94a3b8"}})]}),m&&l.jsx(Zr,{label:`Visual State (${(e.status||"").toUpperCase()})`,children:l.jsx(Sy,{screenshot:m,boundingBox:h})}),l.jsx(Zr,{label:"Context",children:l.jsx("div",{style:{fontWeight:"bold",color:"#1e293b"},children:e.scenarioName})}),l.jsx(Zr,{label:"Requirement Proof",children:l.jsxs("div",{style:{padding:"16px",backgroundColor:"#f8fafc",borderRadius:"8px",fontSize:"14px",fontStyle:"italic",color:"#475569",border:"1px solid #f1f5f9"},children:['"',e.type," ",e.description,'"']})}),l.jsx(Zr,{label:"Runtime Outcome",children:l.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:e.assertion?l.jsx(Cl,{result:e.assertion,light:!0}):c})}),u&&l.jsx(Zr,{label:"Network Activity",children:l.jsx("div",{style:{backgroundColor:"#0f172a",padding:"16px",borderRadius:"8px",color:"#7dd3fc",fontFamily:"monospace",fontSize:"11px",overflowX:"auto"},children:l.jsx("pre",{children:JSON.stringify({status:u.responseStatus,url:u.url},null,2)})})})]})})]})},Sy=({screenshot:e,boundingBox:t})=>{const[n,r]=b.useState({w:0,h:0}),[o,i]=b.useState(!1),s=()=>{const a=window.open();a&&(a.document.write(`
|
|
369
|
+
<html>
|
|
370
|
+
<head><title>Step Screenshot</title></head>
|
|
371
|
+
<body style="margin: 0; background-color: #0f172a; display: flex; justify-content: center; padding: 40px; font-family: sans-serif;">
|
|
372
|
+
<div style="position: relative; display: inline-block;">
|
|
373
|
+
<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);" />
|
|
374
|
+
${t?`<div style="
|
|
375
|
+
position: absolute;
|
|
376
|
+
border: 3px solid #ef4444;
|
|
377
|
+
background-color: rgba(239, 68, 68, 0.2);
|
|
378
|
+
left: ${t.x/n.w*100}%;
|
|
379
|
+
top: ${t.y/n.h*100}%;
|
|
380
|
+
width: ${t.width/n.w*100}%;
|
|
381
|
+
height: ${t.height/n.h*100}%;
|
|
382
|
+
box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.5);
|
|
383
|
+
pointer-events: none;
|
|
384
|
+
"></div>`:""}
|
|
385
|
+
</div>
|
|
386
|
+
</body>
|
|
387
|
+
</html>
|
|
388
|
+
`),a.document.close())};return l.jsxs("div",{onClick:s,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),style:{position:"relative",width:"100%",borderRadius:"8px",overflow:"hidden",border:"1px solid #e2e8f0",backgroundColor:"#0f172a",cursor:"zoom-in"},children:[l.jsx("img",{src:`data:image/jpeg;base64,${e}`,style:{width:"100%",display:"block",opacity:o?.6:1,transition:"opacity 0.2s ease"},onLoad:a=>r({w:a.currentTarget.naturalWidth,h:a.currentTarget.naturalHeight}),alt:"Step snapshot"}),t&&n.w>0&&l.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"}}),o&&l.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"})]})},vs=({label:e,value:t,color:n,icon:r})=>l.jsxs("div",{style:{backgroundColor:"white",padding:"16px 24px",borderRadius:"10px",border:"1px solid #e2e8f0",minWidth:"140px",display:"flex",alignItems:"center",gap:"12px"},children:[l.jsx("div",{style:{color:n,backgroundColor:`${n}15`,padding:"8px",borderRadius:"8px"},children:r}),l.jsxs("div",{children:[l.jsx("div",{style:{fontSize:"20px",fontWeight:"800"},children:t}),l.jsx("div",{style:{fontSize:"9px",fontWeight:"800",color:"#94a3b8"},children:e})]})]}),by=({status:e})=>{const t=["pass","passed","success"].includes(e),n=e==="failed";return l.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()})},Zr=({label:e,children:t})=>l.jsxs("div",{style:{marginBottom:"24px"},children:[l.jsx("h3",{style:{fontSize:"11px",fontWeight:"800",color:"#94a3b8",textTransform:"uppercase",marginBottom:"8px",letterSpacing:"0.05em"},children:e}),t]});let xt=null;const eg=()=>{if(xt&&(xt.readyState===WebSocket.OPEN||xt.readyState===WebSocket.CONNECTING))return;const e=window.location.protocol==="https:"?"wss:":"ws:",t=window.location.host;xt=new WebSocket(`${e}//${t}`),xt.onopen=()=>console.log("[Flowstride] Connected to Execution Engine"),xt.onmessage=n=>{var r,o,i;try{const s=JSON.parse(n.data),a=Ye.getState();switch(s.type){case"CLI_CONTEXT":((r=s.payload)==null?void 0:r.command)==="run"?a.setActiveView("Flows"):((o=s.payload)==null?void 0:o.command)==="open"&&a.setActiveView("Workspace");break;case"SUITE_START":a.startExecution();break;case"RUN_START":{Ye.getState().isRunning||Ye.setState({isRunning:!0}),a.startRun(s.payload.fileName,s.payload.scenarioName);break}case"SCENARIO_RESULT":a.scenarioResult(s.payload);break;case"RUN_COMPLETE":a.stopExecution((i=s.payload)==null?void 0:i.status);break;case"FILE_FAILED":a.failFile(s.payload.fileName,s.payload.error||"File failed before completion.");break;case"LOG_EVENT":a.addLog(s.payload);break;case"BROWSER_INFO":a.setBrowserInfo(s.payload.fileName,s.payload);break;case"BROWSER_FRAME":a.setBrowserFrame(s.payload.fileName||"General",s.payload.base64);break;case"NETWORK_REQ":a.addNetworkLog(s.payload);break;case"STEP_ADD":a.addStep(s.payload);break;case"STEP_UPDATE":const c=s.payload.status==="passed"?"pass":s.payload.status;a.updateStepStatus(s.payload.id,c,s.payload.screenshot,s.payload.fileName,{attempt:s.payload.attempt,profile:s.payload.profile,domSnapshot:s.payload.domSnapshot,assertion:s.payload.assertion,error:s.payload.error,commandLabel:s.payload.commandLabel,sourceLine:s.payload.sourceLine});break;case"URL_CHANGE":a.setPageMetadata(s.payload.fileName||"General",s.payload.url,s.payload.title);break;case"REPLAY_RES":a.setReplayResponse(s.payload.responseBody,s.payload.status,s.payload.error,s.payload.requestId);break;case"EXPORT_PDF_RES":{const u=s.payload.base64,m=document.createElement("a");m.href=`data:application/pdf;base64,${u}`,m.download=`Flowstride_Test_Report_${new Date().toISOString().split("T")[0]}.pdf`,document.body.appendChild(m),m.click(),document.body.removeChild(m);break}case"EXPORT_PDF_SUCCESS":console.log("[Flowstride] PDF safely archived at:",s.payload.path);break;case"EXPORT_PDF_ERROR":window.alert(`Report Error: Failed to generate PDF - ${s.payload.error}`);break;default:console.warn("Unknown event:",s.type)}}catch(s){console.error("Socket error:",s)}},xt.onclose=()=>setTimeout(eg,3e3)},ky=()=>{xt&&(xt.close(),xt=null)},sl=(e,t)=>{xt&&xt.readyState===WebSocket.OPEN&&xt.send(JSON.stringify({type:e,payload:t}))},Ey=()=>{const{testScenarios:e}=Ye(),t=e.reduce((r,o)=>{const i=o.fileName||"General";return r[i]||(r[i]=[]),r[i].push(o),r},Object.create(null));if(e.length===0)return l.jsx("div",{style:{display:"flex",height:"100%",alignItems:"center",justifyContent:"center",color:"#64748b"},children:"Awaiting test data..."});const n=()=>{sl("EXPORT_PDF_REQ",e)};return l.jsxs("div",{style:{height:"100%",width:"100%",backgroundColor:"white",overflowY:"auto",color:"#1e293b"},children:[l.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:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",fontWeight:"700"},children:[l.jsx(Sc,{color:"#7c3aed"})," Test Case Documentation"]}),l.jsxs("button",{onClick:n,style:{padding:"8px 16px",borderRadius:"6px",border:"1px solid #cbd5e1",backgroundColor:"white",fontSize:"13px",fontWeight:"600",cursor:"pointer"},children:[l.jsx(ny,{size:14,style:{verticalAlign:"middle",marginRight:"8px"}})," ","Export PDF"]})]}),l.jsxs("div",{style:{maxWidth:"900px",margin:"40px auto",padding:"0 20px"},children:[l.jsxs("div",{style:{borderBottom:"4px solid #0f172a",paddingBottom:"24px",marginBottom:"40px"},children:[l.jsx("h2",{style:{fontSize:"36px",fontWeight:"900",textTransform:"uppercase",margin:0},children:"Test Case Log"}),l.jsx("p",{style:{color:"#64748b",fontWeight:"500",margin:"8px 0 0 0"},children:"Project: Flowstride Community Edition"})]}),Object.keys(t).map(r=>{const o=t[r].flatMap(i=>i.steps);return l.jsxs("div",{style:{marginBottom:"60px"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"15px",marginBottom:"25px"},children:[l.jsx("div",{style:{flex:1,borderTop:"1px solid #7c3aed",opacity:.3}}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",color:"#7c3aed",fontWeight:"900",fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.1em"},children:[l.jsx(Yp,{size:14})," ",r]}),l.jsx("div",{style:{flex:1,borderTop:"1px solid #7c3aed",opacity:.3}})]}),l.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",border:"1px solid #e2e8f0",borderRadius:"8px",overflow:"hidden"},children:[l.jsx("thead",{style:{backgroundColor:"#0f172a",color:"white"},children:l.jsx("tr",{children:["S/N","Action","Expected Result","Actual Result","Status"].map((i,s)=>l.jsx("th",{style:{padding:"14px",fontSize:"11px",textAlign:"left"},children:i},s))})}),l.jsx("tbody",{children:o.map((i,s)=>{const a=Jp(i.status),c=s+1;return l.jsxs("tr",{"data-step-status":a.status,style:{borderBottom:"1px solid #e2e8f0"},children:[l.jsx("td",{style:{padding:"16px 14px",fontSize:"13px",color:"#64748b",fontWeight:"500",width:"50px"},children:c}),l.jsx("td",{style:{padding:"16px 14px",fontWeight:"700",fontSize:"13px"},children:i.command}),l.jsxs("td",{style:{padding:"16px 14px",fontSize:"13px",color:"#475569",fontStyle:"italic"},children:[i.type," ",i.description]}),l.jsx("td",{style:{padding:"16px 14px",fontSize:"13px",color:a.isFailed?"#ef4444":"#64748b"},children:i.assertion?l.jsx(Cl,{result:i.assertion,light:!0}):i.error?l.jsx("div",{style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere"},children:i.error}):a.actualResult}),l.jsx("td",{style:{padding:"16px 14px",textAlign:"left"},children:l.jsx("span",{style:{fontSize:"10px",fontWeight:"900",color:a.color},children:a.label})})]},i.id)})})]})]},r)})]})]})},io=({label:e,value:t,isRoot:n=!1})=>{const[r,o]=b.useState(!0);if(t===null||typeof t!="object"){let c="#79c0ff";return typeof t=="string"&&(c="#a5d6ff"),(typeof t=="boolean"||t===null)&&(c="#ff7b72"),l.jsxs("div",{style:{paddingLeft:n?"0":"16px",fontFamily:"monospace",fontSize:"12px"},children:[e&&l.jsxs("span",{style:{color:"#d2a8ff",marginRight:"6px"},children:[e,":"]}),l.jsx("span",{style:{color:c},children:t===null?"null":typeof t=="string"?`"${t}"`:String(t)})]})}const i=Array.isArray(t),s=Object.keys(t||{}),a=s.length===0;return l.jsxs("div",{style:{paddingLeft:n?"0":"16px",fontFamily:"monospace",fontSize:"12px"},children:[l.jsxs("div",{onClick:()=>!a&&o(!r),style:{cursor:a?"default":"display",display:"flex",alignItems:"center"},children:[l.jsx("span",{style:{width:"14px",color:"#8b949e",cursor:"pointer"},children:!a&&(r?"▼":"▶")}),e&&l.jsxs("span",{style:{color:"#d2a8ff",marginRight:"6px"},children:[e,":"]}),l.jsx("span",{style:{color:"#8b949e"},children:i?r?"[":"[...]":r?"{":"{...}"})]}),r&&!a&&l.jsx("div",{style:{paddingLeft:"8px",borderLeft:"1px solid #30363d",marginLeft:"6px"},children:s.map(c=>l.jsx(io,{label:i?null:c,value:t[c]},c))}),r&&!a&&l.jsx("div",{style:{color:"#8b949e"},children:i?"]":"}"})]})},jy=e=>{var a,c,u,m,h;let t=e.summary,n="-",r=e.type.toLowerCase(),o=e.status==="error"?"ERR":"OK",i=e.status==="error"?"#f87171":"#8b949e";if(e.type==="REST"||e.type==="GRAPHQL"){if(r="fetch",n=((a=e.details)==null?void 0:a.method)||"GET",(c=e.details)!=null&&c.url)try{const x=new URL(e.details.url);t=x.pathname.split("/").pop()||x.pathname,(!t||t==="/")&&(t=x.hostname)}catch{const x=e.details.url.split("/");t=x[x.length-1]||e.summary}o=((m=(u=e.details)==null?void 0:u.responseStatus)==null?void 0:m.toString())||(e.status==="error"?"ERR":"200"),i=e.status==="error"?"#f87171":"#34d399"}else if(e.type==="ACTION")t=((h=e.details)==null?void 0:h.command)||e.summary.split(":")[0],r="action",i=e.status==="error"?"#f87171":"#60a5fa";else if(e.type==="ASSERT")r="assert",i=e.status==="error"?"#f87171":"#a78bfa";else if(e.type==="ERROR"){i="#f87171";const x=e.summary||"";x.includes("waited for")?t="Element Not Found":x.includes("covering it up")?t="Element Blocked":x.includes("multiple elements matching")?t="Multiple Elements":x.includes("couldn't reach")?t="Network Error":t="Execution Failed"}else e.type==="CONSOLE"&&(r="console");let s="#8b949e";return n==="GET"&&(s="#60a5fa"),n==="POST"&&(s="#34d399"),(n==="PUT"||n==="PATCH")&&(s="#fbbf24"),n==="DELETE"&&(s="#f87171"),{name:t,methodLabel:n,methodColor:s,typeLabel:r,statusLabel:o,statusColor:i}},Cy=()=>{var ie;const{logs:e,selectedLogId:t,setSelectedLogId:n,activeReplay:r,updateReplay:o}=Ye(),[i,s]=b.useState("ALL"),[a,c]=b.useState("Overview"),[u,m]=b.useState(null),[h,x]=b.useState(!1),y=b.useRef(null),[w,_]=b.useState(380),[L,d]=b.useState(!1);b.useEffect(()=>{const M=ne=>{if(!L||!y.current)return;const xe=y.current.getBoundingClientRect().left,q=ne.clientX-xe;q>=250&&q<=800&&_(q)},re=()=>d(!1);return L&&(document.addEventListener("mousemove",M),document.addEventListener("mouseup",re)),()=>{document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",re)}},[L]),b.useEffect(()=>{t&&(!e||!e.find(M=>M.id===t))&&n(null)},[e,t,n]);const f=Array.isArray(e)?e:[],p=f.find(M=>M.id===t),v={},R=[];f.forEach(M=>{if(!M)return;if(M.type==="FILE_HEADER"){R.includes(M.summary)||R.push(M.summary);return}const re=M.fileName||"System Initialization";v[re]||(v[re]=[],R.includes(re)||R.push(re)),(i==="ALL"||M.type===i)&&v[re].push(M)});const I=R.map(M=>({fileName:M,items:v[M]||[]})).filter(M=>M.items.length>0),D=(p==null?void 0:p.type)==="REST"||(p==null?void 0:p.type)==="GRAPHQL",k=["Overview","Headers","Payload"];D&&((ie=p==null?void 0:p.details)!=null&&ie.curlString)&&k.push("cURL"),k.push("Response","Step Context"),D&&k.push("Replay");const H=()=>{if(!r)return;o("isLoading",!0),o("response",null),o("status",null),o("error",null);const M=crypto.randomUUID();o("requestId",M),sl("REPLAY_REQ",{requestId:M,method:r.method,url:r.url,headers:r.headers,body:r.body})},B=async M=>{try{await navigator.clipboard.writeText(M),x(!0),setTimeout(()=>x(!1),2e3)}catch(re){console.error("Failed to copy text: ",re)}},oe=()=>{if(!p)return null;const M=p.details||{};switch(a){case"Overview":return l.jsx("div",{style:{padding:"15px",backgroundColor:"#161b22",borderRadius:"8px",border:"1px solid #30363d"},children:l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px",fontSize:"13px"},children:[l.jsxs("div",{style:{paddingBottom:"12px",marginBottom:"4px",borderBottom:"1px solid #30363d"},children:[l.jsx("span",{style:{color:p.status==="error"?"#f87171":"#a78bfa",fontWeight:"bold",display:"block",marginBottom:"6px"},children:p.status==="error"?"Error Message:":"Summary:"}),l.jsx("span",{style:{color:"#c9d1d9",lineHeight:"1.6",fontSize:"14px"},children:p.summary})]}),l.jsxs("div",{children:[l.jsx("span",{style:{color:"#8b949e",width:"80px",display:"inline-block"},children:"Context:"})," ",p.stepContext||"System"]}),l.jsxs("div",{children:[l.jsx("span",{style:{color:"#8b949e",width:"80px",display:"inline-block"},children:"URL:"})," ",M.url||"N/A"]}),l.jsxs("div",{children:[l.jsx("span",{style:{color:"#8b949e",width:"80px",display:"inline-block"},children:"Status:"})," ",l.jsx("span",{style:{color:p.status==="error"?"#f87171":"#34d399",fontWeight:"bold"},children:M.responseStatus||p.status.toUpperCase()})]})]})});case"Headers":return l.jsx(io,{label:"Headers",value:{request:M.requestHeaders||{},response:M.responseHeaders||{}},isRoot:!0});case"Payload":return l.jsx(io,{label:"Payload",value:M.requestBody||M,isRoot:!0});case"cURL":return l.jsxs("div",{style:{position:"relative"},children:[l.jsx("button",{onClick:()=>B(M.rawCurlString||M.curlString),disabled:!M.rawCurlString&&M.curlString==="[REDACTED]",title:!M.rawCurlString&&M.curlString==="[REDACTED]"?"This command was redacted. Rerun the flow locally to capture a new command.":"Copy the original local request, including its headers and body.",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:ne=>{ne.currentTarget.style.background="rgba(124, 58, 237, 0.2)"},onMouseLeave:ne=>{ne.currentTarget.style.background="rgba(124, 58, 237, 0.1)"},children:h?l.jsxs(l.Fragment,{children:[l.jsx(Vp,{size:12})," Copied!"]}):l.jsxs(l.Fragment,{children:[l.jsx(Mx,{size:12})," Copy raw cURL"]})}),l.jsx("pre",{style:{background:"#05070a",padding:"20px 15px",paddingRight:"160px",borderRadius:"8px",border:"1px solid #30363d",color:"#a5d6ff",fontFamily:"monospace",fontSize:"12px",whiteSpace:"pre-wrap",wordBreak:"break-all",overflowX:"auto",lineHeight:"1.5"},children:l.jsx("code",{children:M.curlString})})]});case"Response":return l.jsx(io,{label:"Response",value:M.responseBody||{message:"No body captured"},isRoot:!0});case"Step Context":return l.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 re={background:"#05070a",border:"1px solid #30363d",color:"white",padding:"8px",borderRadius:"4px",fontSize:"12px",fontFamily:"monospace"};return l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"15px"},children:[l.jsxs("div",{style:{display:"flex",gap:"10px"},children:[l.jsx("input",{value:r.method,onChange:ne=>o("method",ne.target.value.toUpperCase()),style:{...re,width:"80px",fontWeight:"bold",color:"#a78bfa"},placeholder:"GET"}),l.jsx("input",{value:r.url,onChange:ne=>o("url",ne.target.value),style:{...re,flex:1},placeholder:"https://api..."}),l.jsx("button",{onClick:H,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...":l.jsxs(l.Fragment,{children:[l.jsx(Kp,{size:14,fill:"currentColor"})," Send"]})})]}),l.jsxs("div",{style:{display:"flex",gap:"15px"},children:[l.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"5px"},children:[l.jsx("span",{style:{fontSize:"11px",color:"#8b949e",fontWeight:"bold"},children:"HEADERS (JSON)"}),l.jsx("textarea",{value:r.headers,onChange:ne=>o("headers",ne.target.value),style:{...re,height:"120px",resize:"vertical"}})]}),l.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"5px"},children:[l.jsx("span",{style:{fontSize:"11px",color:"#8b949e",fontWeight:"bold"},children:"BODY (JSON)"}),l.jsx("textarea",{value:r.body,onChange:ne=>o("body",ne.target.value),style:{...re,height:"120px",resize:"vertical"}})]})]}),(r.status!==null||r.error)&&l.jsxs("div",{style:{marginTop:"10px",paddingTop:"15px",borderTop:"1px solid #30363d"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",marginBottom:"15px"},children:[l.jsx("span",{style:{fontSize:"11px",color:"#8b949e",fontWeight:"bold"},children:r.error?"REPLAY ERROR:":"LIVE RESPONSE:"}),l.jsx("span",{style:{backgroundColor:r.status!==null&&r.status<400?"rgba(52, 211, 153, 0.1)":"rgba(248, 113, 113, 0.1)",color:r.status!==null&&r.status<400?"#34d399":"#f87171",border:`1px solid ${r.status!==null&&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.error?"Request error":r.status})]}),l.jsx("div",{style:{padding:"15px",backgroundColor:"#05070a",borderRadius:"4px",border:"1px solid #30363d"},children:l.jsx(io,{label:null,value:r.response,isRoot:!0})})]})]});default:return null}};return l.jsxs("div",{ref:y,style:{display:"flex",width:"100%",height:"100%",backgroundColor:"#0d1117",color:"#c9d1d9",overflow:"hidden",userSelect:L?"none":"auto"},children:[l.jsxs("div",{style:{width:w,flexShrink:0,display:"flex",flexDirection:"column"},children:[l.jsx("div",{style:{padding:"15px 15px 10px 15px"},children:l.jsx("div",{style:{display:"flex",gap:"5px",overflowX:"auto",paddingBottom:"5px",scrollbarWidth:"none"},children:["ALL","REST","ACTION","ASSERT","ERROR"].map(M=>l.jsx("button",{onClick:()=>s(M),style:{background:i===M?"rgba(124, 58, 237, 0.1)":"transparent",border:"1px solid #30363d",color:i===M?"#a78bfa":"#8b949e",padding:"3px 8px",borderRadius:"4px",fontSize:"10px",cursor:"pointer"},children:M},M))})}),l.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:[l.jsx("div",{style:{flex:"1 1 auto",paddingRight:"8px"},children:"Name"}),l.jsx("div",{style:{width:"45px",flexShrink:0},children:"Method"}),l.jsx("div",{style:{width:"45px",flexShrink:0},children:"Status"}),l.jsx("div",{style:{width:"45px",flexShrink:0},children:"Type"}),l.jsx("div",{style:{width:"65px",flexShrink:0,textAlign:"right"},children:"Time"})]}),l.jsxs("div",{style:{flex:1,overflowY:"auto"},children:[I.map((M,re)=>{const ne=M.items.some(q=>q.status==="error"),xe=M.items.filter(q=>q.status==="error").length;return l.jsxs("div",{children:[l.jsxs("div",{style:{padding:"6px 15px",backgroundColor:ne?"rgba(248, 113, 113, 0.1)":"#161b22",borderBottom:ne?"1px solid rgba(248, 113, 113, 0.3)":"1px solid #30363d",fontSize:"11px",fontWeight:"bold",color:ne?"#f87171":"#a78bfa",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[l.jsx("span",{style:{opacity:.7},children:"📄"}),l.jsx("span",{children:M.fileName})]}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[l.jsxs("button",{onClick:q=>{q.stopPropagation(),m(M.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:q=>q.currentTarget.style.backgroundColor="rgba(52, 211, 153, 0.2)",onMouseLeave:q=>q.currentTarget.style.backgroundColor="rgba(52, 211, 153, 0.1)",children:[l.jsx(rd,{size:10})," Watch"]}),ne&&l.jsxs("span",{style:{backgroundColor:"#f87171",color:"white",padding:"2px 6px",borderRadius:"10px",fontSize:"9px",fontWeight:"900"},children:[xe," ERROR",xe>1?"S":""]})]})]}),M.items.map(q=>{const{name:T,methodLabel:z,methodColor:E,typeLabel:P,statusLabel:N,statusColor:X}=jy(q);return l.jsxs("div",{onClick:()=>{n(q.id),m(null),c("Overview")},style:{display:"flex",alignItems:"center",padding:"8px 15px 8px 25px",cursor:"pointer",backgroundColor:t===q.id?"rgba(124, 58, 237, 0.15)":"transparent",borderBottom:"1px solid #21262d",fontSize:"11px",transition:"background 0.1s"},children:[l.jsx("div",{style:{flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",paddingRight:"8px",color:"#c9d1d9",fontWeight:t===q.id?"bold":"500"},children:T}),l.jsx("div",{style:{width:"45px",flexShrink:0,color:E,fontWeight:"bold"},children:z}),l.jsx("div",{style:{width:"45px",flexShrink:0,color:X,fontWeight:"bold"},children:N}),l.jsx("div",{style:{width:"45px",flexShrink:0,color:"#8b949e"},children:P}),l.jsx("div",{style:{width:"65px",flexShrink:0,textAlign:"right",color:"#6e7681",fontFamily:"monospace"},children:q.timestamp})]},q.id)})]},M.fileName+re)}),I.length===0&&l.jsx("div",{style:{padding:"20px",textAlign:"center",color:"#8b949e",fontSize:"11px"},children:"Awaiting execution..."})]})]}),l.jsx("div",{onMouseDown:()=>d(!0),onMouseEnter:M=>{M.currentTarget.style.backgroundColor="#7c3aed"},onMouseLeave:M=>{L||(M.currentTarget.style.backgroundColor="transparent")},style:{width:"5px",cursor:"col-resize",backgroundColor:L?"#7c3aed":"transparent",borderRight:L?"none":"1px solid #30363d",zIndex:10,transition:"background-color 0.2s ease"}}),l.jsx("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",backgroundColor:u?"#000":"#0d1117"},children:u?l.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[l.jsxs("div",{style:{padding:"12px 15px",borderBottom:"1px solid #30363d",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[l.jsx(rd,{size:14,color:"#34d399"}),l.jsxs("span",{style:{color:"white",fontWeight:"bold",fontSize:"12px"},children:["Session Replay: ",u]})]}),l.jsx("button",{onClick:()=>m(null),style:{background:"transparent",border:"none",color:"#8b949e",cursor:"pointer",fontSize:"12px"},children:"✕ Close"})]}),l.jsx("div",{style:{flex:1,padding:"20px",display:"flex",alignItems:"center",justifyContent:"center",backgroundImage:"radial-gradient(circle at center, #161b22 0%, #000 100%)"},children:l.jsx("video",{src:`http://${window.location.host}/videos/${u.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"}},u)})]}):p?l.jsxs(l.Fragment,{children:[l.jsx("div",{style:{display:"flex",borderBottom:"1px solid #30363d",backgroundColor:"#0d1117"},children:k.map(M=>l.jsx("div",{onClick:()=>c(M),style:{padding:"12px 15px",fontSize:"11px",cursor:"pointer",color:a===M?"#a78bfa":"#8b949e",borderBottom:a===M?"2px solid #a78bfa":"none",fontWeight:M==="Replay"?"bold":"normal"},children:M==="Replay"?"▶ Replay":M},M))}),l.jsx("div",{style:{flex:1,padding:"20px",overflow:"auto"},children:l.jsx("div",{style:{minWidth:"fit-content"},children:oe()})})]}):l.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:.2},children:[l.jsx(bc,{size:48}),l.jsx("p",{style:{marginTop:"10px"},children:"Select a log to inspect"})]})})]})},vi=Object.freeze({Pending:0,0:"Pending",Current:1,1:"Current",Passed:2,2:"Passed",Failed:3,3:"Failed",Blocked:4,4:"Blocked",Skipped:5,5:"Skipped"});class al{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,id.unregister(this),t}free(){const t=this.__destroy_into_raw();j.__wbg_workspaceengine_free(t,0)}add_node(t,n,r,o,i,s){const a=ze(r,j.__wbindgen_malloc,j.__wbindgen_realloc),c=ke,u=ze(o,j.__wbindgen_malloc,j.__wbindgen_realloc),m=ke,h=ze(i,j.__wbindgen_malloc,j.__wbindgen_realloc),x=ke;return j.workspaceengine_add_node(this.__wbg_ptr,t,n,a,c,u,m,h,x,s)>>>0}add_text(t,n,r,o){const i=ze(r,j.__wbindgen_malloc,j.__wbindgen_realloc),s=ke;return j.workspaceengine_add_text(this.__wbg_ptr,t,n,i,s,o)>>>0}begin_connection(t,n){return j.workspaceengine_begin_connection(this.__wbg_ptr,t,n)!==0}begin_group_drag(t,n){return j.workspaceengine_begin_group_drag(this.__wbg_ptr,t,n)>>>0}begin_group_draw(t,n){return j.workspaceengine_begin_group_draw(this.__wbg_ptr,t,n)!==0}begin_node_drag(t,n){return j.workspaceengine_begin_node_drag(this.__wbg_ptr,t,n)>>>0}begin_text_drag(t,n){return j.workspaceengine_begin_text_drag(this.__wbg_ptr,t,n)>>>0}begin_text_resize(t,n){return j.workspaceengine_begin_text_resize(this.__wbg_ptr,t,n)!==0}cancel_connection(){j.workspaceengine_cancel_connection(this.__wbg_ptr)}cancel_group_draw(){j.workspaceengine_cancel_group_draw(this.__wbg_ptr)}check_group_delete_click(t,n){return j.workspaceengine_check_group_delete_click(this.__wbg_ptr,t,n)!==0}check_node_menu_click(t,n){return j.workspaceengine_check_node_menu_click(this.__wbg_ptr,t,n)>>>0}check_text_resize_handle(t,n){return j.workspaceengine_check_text_resize_handle(this.__wbg_ptr,t,n)}clear_canvas(){j.workspaceengine_clear_canvas(this.__wbg_ptr)}complete_connection(t,n){return j.workspaceengine_complete_connection(this.__wbg_ptr,t,n)!==0}complete_group_draw(t,n,r){const o=ze(r,j.__wbindgen_malloc,j.__wbindgen_realloc),i=ke;return j.workspaceengine_complete_group_draw(this.__wbg_ptr,t,n,o,i)>>>0}copy_to_clipboard(){return j.workspaceengine_copy_to_clipboard(this.__wbg_ptr)!==0}delete_selected_entities(){return j.workspaceengine_delete_selected_entities(this.__wbg_ptr)!==0}duplicate_selected(){return j.workspaceengine_duplicate_selected(this.__wbg_ptr)!==0}end_group_drag(){j.workspaceengine_end_group_drag(this.__wbg_ptr)}end_node_drag(){j.workspaceengine_end_node_drag(this.__wbg_ptr)}end_text_drag(){j.workspaceengine_end_text_drag(this.__wbg_ptr)}end_text_resize(){j.workspaceengine_end_text_resize(this.__wbg_ptr)}evaluate_current_step(t){return j.workspaceengine_evaluate_current_step(this.__wbg_ptr,t)!==0}export_design_state(){let t,n;try{const r=j.workspaceengine_export_design_state(this.__wbg_ptr);return t=r[0],n=r[1],_e(r[0],r[1])}finally{j.__wbindgen_free(t,n,1)}}get_active_execution_hover_data(t,n){let r,o;try{const i=j.workspaceengine_get_active_execution_hover_data(this.__wbg_ptr,t,n);return r=i[0],o=i[1],_e(i[0],i[1])}finally{j.__wbindgen_free(r,o,1)}}get_dimensions(){let t,n;try{const r=j.workspaceengine_get_dimensions(this.__wbg_ptr);return t=r[0],n=r[1],_e(r[0],r[1])}finally{j.__wbindgen_free(t,n,1)}}get_execution_report(){let t,n;try{const r=j.workspaceengine_get_execution_report(this.__wbg_ptr);return t=r[0],n=r[1],_e(r[0],r[1])}finally{j.__wbindgen_free(t,n,1)}}get_group_title(t){let n,r;try{const o=j.workspaceengine_get_group_title(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{j.__wbindgen_free(n,r,1)}}get_node_assigned_to(t){let n,r;try{const o=j.workspaceengine_get_node_assigned_to(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{j.__wbindgen_free(n,r,1)}}get_node_defect_media(t){let n,r;try{const o=j.workspaceengine_get_node_defect_media(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{j.__wbindgen_free(n,r,1)}}get_node_defect_report(t){let n,r;try{const o=j.workspaceengine_get_node_defect_report(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{j.__wbindgen_free(n,r,1)}}get_node_description(t){let n,r;try{const o=j.workspaceengine_get_node_description(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{j.__wbindgen_free(n,r,1)}}get_node_expected_result(t){let n,r;try{const o=j.workspaceengine_get_node_expected_result(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{j.__wbindgen_free(n,r,1)}}get_node_priority(t){let n,r;try{const o=j.workspaceengine_get_node_priority(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{j.__wbindgen_free(n,r,1)}}get_node_references(t){let n,r;try{const o=j.workspaceengine_get_node_references(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{j.__wbindgen_free(n,r,1)}}get_node_steps(t){let n,r;try{const o=j.workspaceengine_get_node_steps(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{j.__wbindgen_free(n,r,1)}}get_node_title(t){let n,r;try{const o=j.workspaceengine_get_node_title(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{j.__wbindgen_free(n,r,1)}}get_node_visual_step(t){let n,r;try{const o=j.workspaceengine_get_node_visual_step(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{j.__wbindgen_free(n,r,1)}}get_pan_offset_x(){return j.workspaceengine_get_pan_offset_x(this.__wbg_ptr)}get_pan_offset_y(){return j.workspaceengine_get_pan_offset_y(this.__wbg_ptr)}get_text_content(t){let n,r;try{const o=j.workspaceengine_get_text_content(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{j.__wbindgen_free(n,r,1)}}constructor(t,n,r){const o=ze(t,j.__wbindgen_malloc,j.__wbindgen_realloc),i=ke,s=j.workspaceengine_new(o,i,n,r);return this.__wbg_ptr=s,id.register(this,this.__wbg_ptr,this),this}paste_from_clipboard(){return j.workspaceengine_paste_from_clipboard(this.__wbg_ptr)!==0}recenter_view(){j.workspaceengine_recenter_view(this.__wbg_ptr)}render_diagnostic_grid(){const t=j.workspaceengine_render_diagnostic_grid(this.__wbg_ptr);if(t[1])throw Iy(t[0])}restore_connection_packed(t,n,r,o,i,s,a,c,u){const m=ze(c,j.__wbindgen_malloc,j.__wbindgen_realloc),h=ke;j.workspaceengine_restore_connection_packed(this.__wbg_ptr,t,n,r,o,i,s,a,m,h,u)}restore_group(t,n,r,o,i,s,a){const c=ze(s,j.__wbindgen_malloc,j.__wbindgen_realloc),u=ke;j.workspaceengine_restore_group(this.__wbg_ptr,t,n,r,o,i,c,u,a)}restore_node_packed(t,n,r,o,i,s,a){const c=ze(s,j.__wbindgen_malloc,j.__wbindgen_realloc),u=ke;j.workspaceengine_restore_node_packed(this.__wbg_ptr,t,n,r,o,i,c,u,a)}restore_text(t,n,r,o,i,s,a){const c=ze(s,j.__wbindgen_malloc,j.__wbindgen_realloc),u=ke;j.workspaceengine_restore_text(this.__wbg_ptr,t,n,r,o,i,c,u,a)}set_mode(t){j.workspaceengine_set_mode(this.__wbg_ptr,t)}set_pan_offset(t,n){j.workspaceengine_set_pan_offset(this.__wbg_ptr,t,n)}trigger_redo(){return j.workspaceengine_trigger_redo(this.__wbg_ptr)!==0}trigger_undo(){return j.workspaceengine_trigger_undo(this.__wbg_ptr)!==0}update_connection_cursor(t,n){j.workspaceengine_update_connection_cursor(this.__wbg_ptr,t,n)}update_dimensions(t,n,r,o){j.workspaceengine_update_dimensions(this.__wbg_ptr,t,n,r,o)}update_group_drag(t,n){j.workspaceengine_update_group_drag(this.__wbg_ptr,t,n)}update_group_draw(t,n){j.workspaceengine_update_group_draw(this.__wbg_ptr,t,n)}update_group_title(t,n){const r=ze(n,j.__wbindgen_malloc,j.__wbindgen_realloc),o=ke;j.workspaceengine_update_group_title(this.__wbg_ptr,t,r,o)}update_hover_cursor(t,n){j.workspaceengine_update_hover_cursor(this.__wbg_ptr,t,n)}update_node_data(t,n,r,o,i,s,a){const c=ze(n,j.__wbindgen_malloc,j.__wbindgen_realloc),u=ke,m=ze(r,j.__wbindgen_malloc,j.__wbindgen_realloc),h=ke,x=ze(o,j.__wbindgen_malloc,j.__wbindgen_realloc),y=ke,w=ze(i,j.__wbindgen_malloc,j.__wbindgen_realloc),_=ke,L=ze(s,j.__wbindgen_malloc,j.__wbindgen_realloc),d=ke,f=ze(a,j.__wbindgen_malloc,j.__wbindgen_realloc),p=ke;j.workspaceengine_update_node_data(this.__wbg_ptr,t,c,u,m,h,x,y,w,_,L,d,f,p)}update_node_defect_data(t,n,r,o){const i=ze(n,j.__wbindgen_malloc,j.__wbindgen_realloc),s=ke,a=ze(r,j.__wbindgen_malloc,j.__wbindgen_realloc),c=ke,u=ze(o,j.__wbindgen_malloc,j.__wbindgen_realloc),m=ke;j.workspaceengine_update_node_defect_data(this.__wbg_ptr,t,i,s,a,c,u,m)}update_node_drag(t,n){j.workspaceengine_update_node_drag(this.__wbg_ptr,t,n)}update_node_visual_step(t,n){const r=ze(n,j.__wbindgen_malloc,j.__wbindgen_realloc),o=ke;return j.workspaceengine_update_node_visual_step(this.__wbg_ptr,t,r,o)!==0}update_text_content(t,n){const r=ze(n,j.__wbindgen_malloc,j.__wbindgen_realloc),o=ke;j.workspaceengine_update_text_content(this.__wbg_ptr,t,r,o)}update_text_drag(t,n){j.workspaceengine_update_text_drag(this.__wbg_ptr,t,n)}update_text_resize(t,n){j.workspaceengine_update_text_resize(this.__wbg_ptr,t,n)}}Symbol.dispose&&(al.prototype[Symbol.dispose]=al.prototype.free);const he=Object.freeze({Design:0,0:"Design",Execution:1,1:"Execution"});function Ty(){let e,t;try{const n=j.get_engine_version();return e=n[0],t=n[1],_e(n[0],n[1])}finally{j.__wbindgen_free(e,t,1)}}function Ry(){return{__proto__:null,"./workspace_engine_bg.js":{__proto__:null,__wbg___wbindgen_is_undefined_c05833b95a3cf397:function(t){return t===void 0},__wbg___wbindgen_throw_344f42d3211c4765:function(t,n){throw new Error(_e(t,n))},__wbg_arc_61372d0a8f0a988c:function(){return or(function(t,n,r,o,i,s){t.arc(n,r,o,i,s)},arguments)},__wbg_beginPath_ca2dfce389ff20d2:function(t){t.beginPath()},__wbg_closePath_0e752092e41e1e22:function(t){t.closePath()},__wbg_document_179650d6cb13c263:function(t){const n=t.document;return Pn(n)?0:un(n)},__wbg_fillRect_97b1f503e30148c3:function(t,n,r,o,i){t.fillRect(n,r,o,i)},__wbg_fillText_e462ba58cec15054:function(){return or(function(t,n,r,o,i){t.fillText(_e(n,r),o,i)},arguments)},__wbg_fill_7e2406c195723006:function(t){t.fill()},__wbg_getContext_e79ddf6a9cb3cc76:function(){return or(function(t,n,r){const o=t.getContext(_e(n,r));return Pn(o)?0:un(o)},arguments)},__wbg_getElementById_1cbd8f06dbe8eb8e:function(t,n,r){const o=t.getElementById(_e(n,r));return Pn(o)?0:un(o)},__wbg_instanceof_CanvasRenderingContext2d_2284b703b7023dcc:function(t){let n;try{n=t instanceof CanvasRenderingContext2D}catch{n=!1}return n},__wbg_instanceof_HtmlCanvasElement_ed02ed9136056019:function(t){let n;try{n=t instanceof HTMLCanvasElement}catch{n=!1}return n},__wbg_instanceof_Window_05ba1ee4f6781663:function(t){let n;try{n=t instanceof Window}catch{n=!1}return n},__wbg_lineTo_1aeefd30328165b5:function(t,n,r){t.lineTo(n,r)},__wbg_measureText_c54a480a20a73a31:function(){return or(function(t,n,r){return t.measureText(_e(n,r))},arguments)},__wbg_moveTo_2618bed6b5b25622:function(t,n,r){t.moveTo(n,r)},__wbg_new_32b398fb48b6d94a:function(){return new Array},__wbg_push_d2ae3af0c1217ae6:function(t,n){return t.push(n)},__wbg_quadraticCurveTo_c461b48b1c826818:function(t,n,r,o,i){t.quadraticCurveTo(n,r,o,i)},__wbg_scale_c1f36b23e39bf061:function(){return or(function(t,n,r){t.scale(n,r)},arguments)},__wbg_setLineDash_63ce60143e4d578a:function(){return or(function(t,n){t.setLineDash(n)},arguments)},__wbg_set_fillStyle_50280bb4932b89d2:function(t,n){t.fillStyle=n},__wbg_set_font_33fee74f2c82cb6f:function(t,n,r){t.font=_e(n,r)},__wbg_set_height_7d9d8f892e6964c6:function(t,n){t.height=n>>>0},__wbg_set_lineWidth_beb3d05e36f4cc53:function(t,n){t.lineWidth=n},__wbg_set_shadowBlur_3f8fd92fc17ae584:function(t,n){t.shadowBlur=n},__wbg_set_shadowColor_f84336148c00ebf9:function(t,n,r){t.shadowColor=_e(n,r)},__wbg_set_shadowOffsetY_311ddd1a2761697f:function(t,n){t.shadowOffsetY=n},__wbg_set_strokeStyle_8877ef451272f3e2:function(t,n){t.strokeStyle=n},__wbg_set_textAlign_75f93b22c0415d5d:function(t,n,r){t.textAlign=_e(n,r)},__wbg_set_textBaseline_edb08ba62ac0d3ac:function(t,n,r){t.textBaseline=_e(n,r)},__wbg_set_width_8e30d010cd66830d:function(t,n){t.width=n>>>0},__wbg_static_accessor_GLOBAL_4ef717fb391d88b7:function(){const t=typeof global>"u"?null:global;return Pn(t)?0:un(t)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){const t=typeof globalThis>"u"?null:globalThis;return Pn(t)?0:un(t)},__wbg_static_accessor_SELF_146583524fe1469b:function(){const t=typeof self>"u"?null:self;return Pn(t)?0:un(t)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){const t=typeof window>"u"?null:window;return Pn(t)?0:un(t)},__wbg_strokeRect_74c74060d04c703b:function(t,n,r,o,i){t.strokeRect(n,r,o,i)},__wbg_stroke_cf809e69aae41b03:function(t){t.stroke()},__wbg_width_84477c442af415ce:function(t){return t.width},__wbindgen_cast_0000000000000001:function(t){return t},__wbindgen_cast_0000000000000002:function(t,n){return _e(t,n)},__wbindgen_init_externref_table:function(){const t=j.__wbindgen_externrefs,n=t.grow(4);t.set(0,void 0),t.set(n+0,void 0),t.set(n+1,null),t.set(n+2,!0),t.set(n+3,!1)}}}}typeof FinalizationRegistry>"u"||new FinalizationRegistry(e=>j.__wbg_qaarrow_free(e,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(e=>j.__wbg_qagroup_free(e,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(e=>j.__wbg_qanode_free(e,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(e=>j.__wbg_qatext_free(e,1));const id=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>j.__wbg_workspaceengine_free(e,1));function un(e){const t=j.__externref_table_alloc();return j.__wbindgen_externrefs.set(t,e),t}function _e(e,t){return Ly(e>>>0,t)}let lo=null;function Ni(){return(lo===null||lo.byteLength===0)&&(lo=new Uint8Array(j.memory.buffer)),lo}function or(e,t){try{return e.apply(this,t)}catch(n){const r=un(n);j.__wbindgen_exn_store(r)}}function Pn(e){return e==null}function ze(e,t,n){if(n===void 0){const a=vo.encode(e),c=t(a.length,1)>>>0;return Ni().subarray(c,c+a.length).set(a),ke=a.length,c}let r=e.length,o=t(r,1)>>>0;const i=Ni();let s=0;for(;s<r;s++){const a=e.charCodeAt(s);if(a>127)break;i[o+s]=a}if(s!==r){s!==0&&(e=e.slice(s)),o=n(o,r,r=s+e.length*3,1)>>>0;const a=Ni().subarray(o+s,o+r),c=vo.encodeInto(e,a);s+=c.written,o=n(o,r,s,1)>>>0}return ke=s,o}function Iy(e){const t=j.__wbindgen_externrefs.get(e);return j.__externref_table_dealloc(e),t}let Di=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Di.decode();const zy=2146435072;let _s=0;function Ly(e,t){return _s+=t,_s>=zy&&(Di=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Di.decode(),_s=t),Di.decode(Ni().subarray(e,e+t))}const vo=new TextEncoder;"encodeInto"in vo||(vo.encodeInto=function(e,t){const n=vo.encode(e);return t.set(n),{read:e.length,written:n.length}});let ke=0,j;function Ay(e,t){return j=e.exports,lo=null,j.__wbindgen_start(),j}async function Ny(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(o){if(e.ok&&n(e.type)&&e.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",o);else throw o}const r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}else{const r=await WebAssembly.instantiate(e,t);return r instanceof WebAssembly.Instance?{instance:r,module:e}:r}function n(r){switch(r){case"basic":case"cors":case"default":return!0}return!1}}async function tg(e){if(j!==void 0)return j;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),e===void 0&&(e=new URL(""+new URL("workspace_engine_bg-BVlpAZ1H.wasm",import.meta.url).href,import.meta.url));const t=Ry();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:n,module:r}=await Ny(await e,t);return Ay(n)}let Dy={data:""},Py=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Dy},Oy=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Fy=/\/\*[^]*?\*\/| +/g,ld=/\n+/g,hn=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?hn(s,i):i+"{"+hn(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=hn(s,t?t.replace(/([^,])+/g,a=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,a):a?a+" "+c:c)):i):s!=null&&(i=i[1]=="-"?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=hn.p?hn.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},an={},ng=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+ng(e[n]);return t}return e},My=(e,t,n,r,o)=>{let i=ng(e),s=an[i]||(an[i]=(c=>{let u=0,m=11;for(;u<c.length;)m=101*m+c.charCodeAt(u++)>>>0;return"go"+m})(i));if(!an[s]){let c=i!==e?e:(u=>{let m,h,x=[{}];for(;m=Oy.exec(u.replace(Fy,""));)m[4]?x.shift():m[3]?(h=m[3].replace(ld," ").trim(),x.unshift(x[0][h]=x[0][h]||{})):x[0][m[1]]=m[2].replace(ld," ").trim();return x[0]})(e);an[s]=hn(o?{["@keyframes "+s]:c}:c,n?"":"."+s)}let a=n&&an.g;return n&&(an.g=an[s]),((c,u,m,h)=>{h?u.data=u.data.replace(h,c):u.data.indexOf(c)===-1&&(u.data=m?c+u.data:u.data+c)})(an[s],t,r,a),s},Wy=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let a=s(n),c=a&&a.props&&a.props.className||/^go/.test(a)&&a;s=c?"."+c:a&&typeof a=="object"?a.props?"":hn(a,""):a===!1?"":a}return r+o+(s??"")},"");function Tl(e){let t=this||{},n=e.call?e(t.p):e;return My(n.unshift?n.raw?Wy(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Py(t.target),t.g,t.o,t.k)}let rg,va,_a;Tl.bind({g:1});let tn=Tl.bind({k:1});function By(e,t,n,r){hn.p=t,rg=e,va=n,_a=r}function An(e,t){let n=this||{};return function(){let r=arguments;function o(i,s){let a=Object.assign({},i),c=a.className||o.className;n.p=Object.assign({theme:va&&va()},a),n.o=/go\d/.test(c),a.className=Tl.apply(n,r)+(c?" "+c:"");let u=e;return e[0]&&(u=a.as||e,delete a.as),_a&&u[0]&&_a(a),rg(u,a)}return o}}var Uy=e=>typeof e=="function",cl=(e,t)=>Uy(e)?e(t):e,$y=(()=>{let e=0;return()=>(++e).toString()})(),og=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Hy=20,kc="default",ig=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:r}=t;return ig(e,{type:e.toasts.find(s=>s.id===r.id)?1:0,toast:r});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(s=>s.id===o||o===void 0?{...s,dismissed:!0,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+i}))}}},Pi=[],lg={toasts:[],pausedAt:void 0,settings:{toastLimit:Hy}},Ut={},sg=(e,t=kc)=>{Ut[t]=ig(Ut[t]||lg,e),Pi.forEach(([n,r])=>{n===t&&r(Ut[t])})},ag=e=>Object.keys(Ut).forEach(t=>sg(e,t)),Vy=e=>Object.keys(Ut).find(t=>Ut[t].toasts.some(n=>n.id===e)),Rl=(e=kc)=>t=>{sg(t,e)},Gy={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Yy=(e={},t=kc)=>{let[n,r]=b.useState(Ut[t]||lg),o=b.useRef(Ut[t]);b.useEffect(()=>(o.current!==Ut[t]&&r(Ut[t]),Pi.push([t,r]),()=>{let s=Pi.findIndex(([a])=>a===t);s>-1&&Pi.splice(s,1)}),[t]);let i=n.toasts.map(s=>{var a,c,u;return{...e,...e[s.type],...s,removeDelay:s.removeDelay||((a=e[s.type])==null?void 0:a.removeDelay)||(e==null?void 0:e.removeDelay),duration:s.duration||((c=e[s.type])==null?void 0:c.duration)||(e==null?void 0:e.duration)||Gy[s.type],style:{...e.style,...(u=e[s.type])==null?void 0:u.style,...s.style}}});return{...n,toasts:i}},Xy=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||$y()}),Uo=e=>(t,n)=>{let r=Xy(t,e,n);return Rl(r.toasterId||Vy(r.id))({type:2,toast:r}),r.id},Fe=(e,t)=>Uo("blank")(e,t);Fe.error=Uo("error");Fe.success=Uo("success");Fe.loading=Uo("loading");Fe.custom=Uo("custom");Fe.dismiss=(e,t)=>{let n={type:3,toastId:e};t?Rl(t)(n):ag(n)};Fe.dismissAll=e=>Fe.dismiss(void 0,e);Fe.remove=(e,t)=>{let n={type:4,toastId:e};t?Rl(t)(n):ag(n)};Fe.removeAll=e=>Fe.remove(void 0,e);Fe.promise=(e,t,n)=>{let r=Fe.loading(t.loading,{...n,...n==null?void 0:n.loading});return typeof e=="function"&&(e=e()),e.then(o=>{let i=t.success?cl(t.success,o):void 0;return i?Fe.success(i,{id:r,...n,...n==null?void 0:n.success}):Fe.dismiss(r),o}).catch(o=>{let i=t.error?cl(t.error,o):void 0;i?Fe.error(i,{id:r,...n,...n==null?void 0:n.error}):Fe.dismiss(r)}),e};var Qy=1e3,Ky=(e,t="default")=>{let{toasts:n,pausedAt:r}=Yy(e,t),o=b.useRef(new Map).current,i=b.useCallback((h,x=Qy)=>{if(o.has(h))return;let y=setTimeout(()=>{o.delete(h),s({type:4,toastId:h})},x);o.set(h,y)},[]);b.useEffect(()=>{if(r)return;let h=Date.now(),x=n.map(y=>{if(y.duration===1/0)return;let w=(y.duration||0)+y.pauseDuration-(h-y.createdAt);if(w<0){y.visible&&Fe.dismiss(y.id);return}return setTimeout(()=>Fe.dismiss(y.id,t),w)});return()=>{x.forEach(y=>y&&clearTimeout(y))}},[n,r,t]);let s=b.useCallback(Rl(t),[t]),a=b.useCallback(()=>{s({type:5,time:Date.now()})},[s]),c=b.useCallback((h,x)=>{s({type:1,toast:{id:h,height:x}})},[s]),u=b.useCallback(()=>{r&&s({type:6,time:Date.now()})},[r,s]),m=b.useCallback((h,x)=>{let{reverseOrder:y=!1,gutter:w=8,defaultPosition:_}=x||{},L=n.filter(p=>(p.position||_)===(h.position||_)&&p.height),d=L.findIndex(p=>p.id===h.id),f=L.filter((p,v)=>v<d&&p.visible).length;return L.filter(p=>p.visible).slice(...y?[f+1]:[0,f]).reduce((p,v)=>p+(v.height||0)+w,0)},[n]);return b.useEffect(()=>{n.forEach(h=>{if(h.dismissed)i(h.id,h.removeDelay);else{let x=o.get(h.id);x&&(clearTimeout(x),o.delete(h.id))}})},[n,i]),{toasts:n,handlers:{updateHeight:c,startPause:a,endPause:u,calculateOffset:m}}},qy=tn`
|
|
389
|
+
from {
|
|
390
|
+
transform: scale(0) rotate(45deg);
|
|
391
|
+
opacity: 0;
|
|
392
|
+
}
|
|
393
|
+
to {
|
|
394
|
+
transform: scale(1) rotate(45deg);
|
|
395
|
+
opacity: 1;
|
|
396
|
+
}`,Zy=tn`
|
|
397
|
+
from {
|
|
398
|
+
transform: scale(0);
|
|
399
|
+
opacity: 0;
|
|
400
|
+
}
|
|
401
|
+
to {
|
|
402
|
+
transform: scale(1);
|
|
403
|
+
opacity: 1;
|
|
404
|
+
}`,Jy=tn`
|
|
405
|
+
from {
|
|
406
|
+
transform: scale(0) rotate(90deg);
|
|
407
|
+
opacity: 0;
|
|
408
|
+
}
|
|
409
|
+
to {
|
|
410
|
+
transform: scale(1) rotate(90deg);
|
|
411
|
+
opacity: 1;
|
|
412
|
+
}`,em=An("div")`
|
|
413
|
+
width: 20px;
|
|
414
|
+
opacity: 0;
|
|
415
|
+
height: 20px;
|
|
416
|
+
border-radius: 10px;
|
|
417
|
+
background: ${e=>e.primary||"#ff4b4b"};
|
|
418
|
+
position: relative;
|
|
419
|
+
transform: rotate(45deg);
|
|
420
|
+
|
|
421
|
+
animation: ${qy} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
422
|
+
forwards;
|
|
423
|
+
animation-delay: 100ms;
|
|
424
|
+
|
|
425
|
+
&:after,
|
|
426
|
+
&:before {
|
|
427
|
+
content: '';
|
|
428
|
+
animation: ${Zy} 0.15s ease-out forwards;
|
|
429
|
+
animation-delay: 150ms;
|
|
430
|
+
position: absolute;
|
|
431
|
+
border-radius: 3px;
|
|
432
|
+
opacity: 0;
|
|
433
|
+
background: ${e=>e.secondary||"#fff"};
|
|
434
|
+
bottom: 9px;
|
|
435
|
+
left: 4px;
|
|
436
|
+
height: 2px;
|
|
437
|
+
width: 12px;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
&:before {
|
|
441
|
+
animation: ${Jy} 0.15s ease-out forwards;
|
|
442
|
+
animation-delay: 180ms;
|
|
443
|
+
transform: rotate(90deg);
|
|
444
|
+
}
|
|
445
|
+
`,tm=tn`
|
|
446
|
+
from {
|
|
447
|
+
transform: rotate(0deg);
|
|
448
|
+
}
|
|
449
|
+
to {
|
|
450
|
+
transform: rotate(360deg);
|
|
451
|
+
}
|
|
452
|
+
`,nm=An("div")`
|
|
453
|
+
width: 12px;
|
|
454
|
+
height: 12px;
|
|
455
|
+
box-sizing: border-box;
|
|
456
|
+
border: 2px solid;
|
|
457
|
+
border-radius: 100%;
|
|
458
|
+
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
459
|
+
border-right-color: ${e=>e.primary||"#616161"};
|
|
460
|
+
animation: ${tm} 1s linear infinite;
|
|
461
|
+
`,rm=tn`
|
|
462
|
+
from {
|
|
463
|
+
transform: scale(0) rotate(45deg);
|
|
464
|
+
opacity: 0;
|
|
465
|
+
}
|
|
466
|
+
to {
|
|
467
|
+
transform: scale(1) rotate(45deg);
|
|
468
|
+
opacity: 1;
|
|
469
|
+
}`,om=tn`
|
|
470
|
+
0% {
|
|
471
|
+
height: 0;
|
|
472
|
+
width: 0;
|
|
473
|
+
opacity: 0;
|
|
474
|
+
}
|
|
475
|
+
40% {
|
|
476
|
+
height: 0;
|
|
477
|
+
width: 6px;
|
|
478
|
+
opacity: 1;
|
|
479
|
+
}
|
|
480
|
+
100% {
|
|
481
|
+
opacity: 1;
|
|
482
|
+
height: 10px;
|
|
483
|
+
}`,im=An("div")`
|
|
484
|
+
width: 20px;
|
|
485
|
+
opacity: 0;
|
|
486
|
+
height: 20px;
|
|
487
|
+
border-radius: 10px;
|
|
488
|
+
background: ${e=>e.primary||"#61d345"};
|
|
489
|
+
position: relative;
|
|
490
|
+
transform: rotate(45deg);
|
|
491
|
+
|
|
492
|
+
animation: ${rm} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
493
|
+
forwards;
|
|
494
|
+
animation-delay: 100ms;
|
|
495
|
+
&:after {
|
|
496
|
+
content: '';
|
|
497
|
+
box-sizing: border-box;
|
|
498
|
+
animation: ${om} 0.2s ease-out forwards;
|
|
499
|
+
opacity: 0;
|
|
500
|
+
animation-delay: 200ms;
|
|
501
|
+
position: absolute;
|
|
502
|
+
border-right: 2px solid;
|
|
503
|
+
border-bottom: 2px solid;
|
|
504
|
+
border-color: ${e=>e.secondary||"#fff"};
|
|
505
|
+
bottom: 6px;
|
|
506
|
+
left: 6px;
|
|
507
|
+
height: 10px;
|
|
508
|
+
width: 6px;
|
|
509
|
+
}
|
|
510
|
+
`,lm=An("div")`
|
|
511
|
+
position: absolute;
|
|
512
|
+
`,sm=An("div")`
|
|
513
|
+
position: relative;
|
|
514
|
+
display: flex;
|
|
515
|
+
justify-content: center;
|
|
516
|
+
align-items: center;
|
|
517
|
+
min-width: 20px;
|
|
518
|
+
min-height: 20px;
|
|
519
|
+
`,am=tn`
|
|
520
|
+
from {
|
|
521
|
+
transform: scale(0.6);
|
|
522
|
+
opacity: 0.4;
|
|
523
|
+
}
|
|
524
|
+
to {
|
|
525
|
+
transform: scale(1);
|
|
526
|
+
opacity: 1;
|
|
527
|
+
}`,cm=An("div")`
|
|
528
|
+
position: relative;
|
|
529
|
+
transform: scale(0.6);
|
|
530
|
+
opacity: 0.4;
|
|
531
|
+
min-width: 20px;
|
|
532
|
+
animation: ${am} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
533
|
+
forwards;
|
|
534
|
+
`,um=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?b.createElement(cm,null,t):t:n==="blank"?null:b.createElement(sm,null,b.createElement(nm,{...r}),n!=="loading"&&b.createElement(lm,null,n==="error"?b.createElement(em,{...r}):b.createElement(im,{...r})))},dm=e=>`
|
|
535
|
+
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
536
|
+
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
537
|
+
`,fm=e=>`
|
|
538
|
+
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
539
|
+
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
540
|
+
`,pm="0%{opacity:0;} 100%{opacity:1;}",gm="0%{opacity:1;} 100%{opacity:0;}",hm=An("div")`
|
|
541
|
+
display: flex;
|
|
542
|
+
align-items: center;
|
|
543
|
+
background: #fff;
|
|
544
|
+
color: #363636;
|
|
545
|
+
line-height: 1.3;
|
|
546
|
+
will-change: transform;
|
|
547
|
+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
548
|
+
max-width: 350px;
|
|
549
|
+
pointer-events: auto;
|
|
550
|
+
padding: 8px 10px;
|
|
551
|
+
border-radius: 8px;
|
|
552
|
+
`,xm=An("div")`
|
|
553
|
+
display: flex;
|
|
554
|
+
justify-content: center;
|
|
555
|
+
margin: 4px 10px;
|
|
556
|
+
color: inherit;
|
|
557
|
+
flex: 1 1 auto;
|
|
558
|
+
white-space: pre-line;
|
|
559
|
+
`,ym=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=og()?[pm,gm]:[dm(n),fm(n)];return{animation:t?`${tn(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${tn(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},mm=b.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?ym(e.position||t||"top-center",e.visible):{opacity:0},i=b.createElement(um,{toast:e}),s=b.createElement(xm,{...e.ariaProps},cl(e.message,e));return b.createElement(hm,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:i,message:s}):b.createElement(b.Fragment,null,i,s))});By(b.createElement);var vm=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let i=b.useCallback(s=>{if(s){let a=()=>{let c=s.getBoundingClientRect().height;r(e,c)};a(),new MutationObserver(a).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return b.createElement("div",{ref:i,className:t,style:n},o)},_m=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:og()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},wm=Tl`
|
|
560
|
+
z-index: 9999;
|
|
561
|
+
> * {
|
|
562
|
+
pointer-events: auto;
|
|
563
|
+
}
|
|
564
|
+
`,_i=16,Sm=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,toasterId:i,containerStyle:s,containerClassName:a})=>{let{toasts:c,handlers:u}=Ky(n,i);return b.createElement("div",{"data-rht-toaster":i||"",style:{position:"fixed",zIndex:9999,top:_i,left:_i,right:_i,bottom:_i,pointerEvents:"none",...s},className:a,onMouseEnter:u.startPause,onMouseLeave:u.endPause},c.map(m=>{let h=m.position||t,x=u.calculateOffset(m,{reverseOrder:e,gutter:r,defaultPosition:t}),y=_m(h,x);return b.createElement(vm,{id:m.id,key:m.id,onHeightUpdate:u.updateHeight,className:m.visible?wm:"",style:y},m.type==="custom"?cl(m.message,m):o?o(m):b.createElement(mm,{toast:m,position:h}))}))},at=Fe;/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function sd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bm(e){if(Array.isArray(e))return e}function km(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(m){u=!0,o=m}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function Em(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
565
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jm(e,t){return bm(e)||km(e,t)||Cm(e,t)||Em()}function Cm(e,t){if(e){if(typeof e=="string")return sd(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sd(e,t):void 0}}const cg=Object.entries,ad=Object.setPrototypeOf,Tm=Object.isFrozen,Rm=Object.getPrototypeOf,Im=Object.getOwnPropertyDescriptor;let Ve=Object.freeze,Qe=Object.seal,sr=Object.create,ug=typeof Reflect<"u"&&Reflect,wa=ug.apply,Sa=ug.construct;Ve||(Ve=function(t){return t});Qe||(Qe=function(t){return t});wa||(wa=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return t.apply(n,o)});Sa||(Sa=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new t(...r)});const ir=De(Array.prototype.forEach),zm=De(Array.prototype.lastIndexOf),cd=De(Array.prototype.pop),lr=De(Array.prototype.push),Lm=De(Array.prototype.splice),xn=Array.isArray,so=De(String.prototype.toLowerCase),ws=De(String.prototype.toString),ud=De(String.prototype.match),Jr=De(String.prototype.replace),dd=De(String.prototype.indexOf),Am=De(String.prototype.trim),Nm=De(Number.prototype.toString),Dm=De(Boolean.prototype.toString),fd=typeof BigInt>"u"?null:De(BigInt.prototype.toString),pd=typeof Symbol>"u"?null:De(Symbol.prototype.toString),Be=De(Object.prototype.hasOwnProperty),eo=De(Object.prototype.toString),We=De(RegExp.prototype.test),On=Pm(TypeError);function De(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return wa(e,t,r)}}function Pm(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Sa(e,n)}}function fe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:so;if(ad&&ad(e,null),!xn(t))return e;let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const i=n(o);i!==o&&(Tm(t)||(t[r]=i),o=i)}e[o]=!0}return e}function Om(e){for(let t=0;t<e.length;t++)Be(e,t)||(e[t]=null);return e}function Ze(e){const t=sr(null);for(const r of cg(e)){var n=jm(r,2);const o=n[0],i=n[1];Be(e,o)&&(xn(i)?t[o]=Om(i):i&&typeof i=="object"&&i.constructor===Object?t[o]=Ze(i):t[o]=i)}return t}function Fm(e){switch(typeof e){case"string":return e;case"number":return Nm(e);case"boolean":return Dm(e);case"bigint":return fd?fd(e):"0";case"symbol":return pd?pd(e):"Symbol()";case"undefined":return eo(e);case"function":case"object":{if(e===null)return eo(e);const t=e,n=Rt(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:eo(r)}return eo(e)}default:return eo(e)}}function Rt(e,t){for(;e!==null;){const r=Im(e,t);if(r){if(r.get)return De(r.get);if(typeof r.value=="function")return De(r.value)}e=Rm(e)}function n(){return null}return n}function Mm(e){try{return We(e,""),!0}catch{return!1}}const gd=Ve(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ss=Ve(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),bs=Ve(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Wm=Ve(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ks=Ve(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Bm=Ve(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),hd=Ve(["#text"]),xd=Ve(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Es=Ve(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),yd=Ve(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),wi=Ve(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Um=Qe(/{{[\w\W]*|^[\w\W]*}}/g),$m=Qe(/<%[\w\W]*|^[\w\W]*%>/g),Hm=Qe(/\${[\w\W]*/g),Vm=Qe(/^data-[\-\w.\u00B7-\uFFFF]+$/),Gm=Qe(/^aria-[\-\w]+$/),md=Qe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ym=Qe(/^(?:\w+script|data):/i),Xm=Qe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qm=Qe(/^html$/i),Km=Qe(/^[a-z][.\w]*(-[.\w]+)+$/i),vd=Qe(/<[/\w!]/g),_d=Qe(/<[/\w]/g),qm=Qe(/<\/no(script|embed|frames)/i),Zm=Qe(/\/>/i),gt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Jm=function(){return typeof window>"u"?null:window},e1=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},wd=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},cn=function(t,n,r,o){return Be(t,n)&&xn(t[n])?fe(o.base?Ze(o.base):{},t[n],o.transform):r};function dg(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jm();const t=U=>dg(U);if(t.version="3.4.13",t.removed=[],!e||!e.document||e.document.nodeType!==gt.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,o=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,s=e.Node,a=e.Element,c=e.NodeFilter,u=e.NamedNodeMap;u===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const m=e.DOMParser,h=e.trustedTypes,x=a.prototype,y=Rt(x,"cloneNode"),w=Rt(x,"remove"),_=Rt(x,"nextSibling"),L=Rt(x,"childNodes"),d=Rt(x,"parentNode"),f=Rt(x,"shadowRoot"),p=Rt(x,"attributes"),v=s&&s.prototype?Rt(s.prototype,"nodeType"):null,R=s&&s.prototype?Rt(s.prototype,"nodeName"):null,I=s&&s.prototype?Rt(s.prototype,"ownerDocument"):null;if(typeof i=="function"){const U=n.createElement("template");U.content&&U.content.ownerDocument&&(n=U.content.ownerDocument)}let D,k="",H,B=!1,oe=0;const ie=function(){if(oe>0)throw On('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},M=function(g){ie(),oe++;try{return D.createHTML(g)}finally{oe--}},re=function(g){ie(),oe++;try{return D.createScriptURL(g)}finally{oe--}},ne=function(){return B||(H=e1(h,o),B=!0),H},xe=n,q=xe.implementation,T=xe.createNodeIterator,z=xe.createDocumentFragment,E=xe.getElementsByTagName,P=r.importNode;let N=wd();t.isSupported=typeof cg=="function"&&typeof d=="function"&&q&&q.createHTMLDocument!==void 0;const X=Um,Z=$m,ve=Hm,le=Vm,de=Gm,A=Ym,C=Xm,V=Km;let G=md,$=null;const ee=fe({},[...gd,...Ss,...bs,...ks,...hd]);let O=null;const se=fe({},[...xd,...Es,...yd,...wi]);let J=Object.seal(sr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ue=null,ge=null;const Pe=Object.seal(sr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Vt=!0,Wr=!0,$o=!1,Ho=!0,rn=!1,on=!0,Nn=!1,Il=!1,Vo=null,Go=null,zl=!1,Zn=!1,Yo=!1,Xo=!1,Ec=!0,jc=!1;const Cc="user-content-";let Ll=!0,Qo=!1,Jn={},Pt=null;const Al=fe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Tc=null;const Rc=fe({},["audio","video","img","source","image","track"]);let Nl=null;const Ic=fe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ko="http://www.w3.org/1998/Math/MathML",qo="http://www.w3.org/2000/svg",Ot="http://www.w3.org/1999/xhtml";let er=Ot,Dl=!1,Pl=null;const hg=fe({},[Ko,qo,Ot],ws),zc=Ve(["mi","mo","mn","ms","mtext"]);let Ol=fe({},zc);const Lc=Ve(["annotation-xml"]);let Fl=fe({},Lc);const xg=fe({},["title","style","font","a","script"]);let Br=null;const yg=["application/xhtml+xml","text/html"],mg="text/html";let je=null,tr=null;const vg=n.createElement("form"),Ac=function(g){return g instanceof RegExp||g instanceof Function},Ml=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(tr&&tr===g)return;(!g||typeof g!="object")&&(g={}),g=Ze(g),Br=yg.indexOf(g.PARSER_MEDIA_TYPE)===-1?mg:g.PARSER_MEDIA_TYPE,je=Br==="application/xhtml+xml"?ws:so,$=cn(g,"ALLOWED_TAGS",ee,{transform:je}),O=cn(g,"ALLOWED_ATTR",se,{transform:je}),Pl=cn(g,"ALLOWED_NAMESPACES",hg,{transform:ws}),Nl=cn(g,"ADD_URI_SAFE_ATTR",Ic,{transform:je,base:Ic}),Tc=cn(g,"ADD_DATA_URI_TAGS",Rc,{transform:je,base:Rc}),Pt=cn(g,"FORBID_CONTENTS",Al,{transform:je}),ue=cn(g,"FORBID_TAGS",Ze({}),{transform:je}),ge=cn(g,"FORBID_ATTR",Ze({}),{transform:je}),Jn=Be(g,"USE_PROFILES")?g.USE_PROFILES&&typeof g.USE_PROFILES=="object"?Ze(g.USE_PROFILES):g.USE_PROFILES:!1,Vt=g.ALLOW_ARIA_ATTR!==!1,Wr=g.ALLOW_DATA_ATTR!==!1,$o=g.ALLOW_UNKNOWN_PROTOCOLS||!1,Ho=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,rn=g.SAFE_FOR_TEMPLATES||!1,on=g.SAFE_FOR_XML!==!1,Nn=g.WHOLE_DOCUMENT||!1,Zn=g.RETURN_DOM||!1,Yo=g.RETURN_DOM_FRAGMENT||!1,Xo=g.RETURN_TRUSTED_TYPE||!1,zl=g.FORCE_BODY||!1,Ec=g.SANITIZE_DOM!==!1,jc=g.SANITIZE_NAMED_PROPS||!1,Ll=g.KEEP_CONTENT!==!1,Qo=g.IN_PLACE||!1,G=Mm(g.ALLOWED_URI_REGEXP)?g.ALLOWED_URI_REGEXP:md,er=typeof g.NAMESPACE=="string"?g.NAMESPACE:Ot,Ol=Be(g,"MATHML_TEXT_INTEGRATION_POINTS")&&g.MATHML_TEXT_INTEGRATION_POINTS&&typeof g.MATHML_TEXT_INTEGRATION_POINTS=="object"?Ze(g.MATHML_TEXT_INTEGRATION_POINTS):fe({},zc),Fl=Be(g,"HTML_INTEGRATION_POINTS")&&g.HTML_INTEGRATION_POINTS&&typeof g.HTML_INTEGRATION_POINTS=="object"?Ze(g.HTML_INTEGRATION_POINTS):fe({},Lc);const S=Be(g,"CUSTOM_ELEMENT_HANDLING")&&g.CUSTOM_ELEMENT_HANDLING&&typeof g.CUSTOM_ELEMENT_HANDLING=="object"?Ze(g.CUSTOM_ELEMENT_HANDLING):sr(null);if(J=sr(null),Be(S,"tagNameCheck")&&Ac(S.tagNameCheck)&&(J.tagNameCheck=S.tagNameCheck),Be(S,"attributeNameCheck")&&Ac(S.attributeNameCheck)&&(J.attributeNameCheck=S.attributeNameCheck),Be(S,"allowCustomizedBuiltInElements")&&typeof S.allowCustomizedBuiltInElements=="boolean"&&(J.allowCustomizedBuiltInElements=S.allowCustomizedBuiltInElements),Qe(J),rn&&(Wr=!1),Yo&&(Zn=!0),Jn&&($=fe({},hd),O=sr(null),Jn.html===!0&&(fe($,gd),fe(O,xd)),Jn.svg===!0&&(fe($,Ss),fe(O,Es),fe(O,wi)),Jn.svgFilters===!0&&(fe($,bs),fe(O,Es),fe(O,wi)),Jn.mathMl===!0&&(fe($,ks),fe(O,yd),fe(O,wi))),Pe.tagCheck=null,Pe.attributeCheck=null,Be(g,"ADD_TAGS")&&(typeof g.ADD_TAGS=="function"?Pe.tagCheck=g.ADD_TAGS:xn(g.ADD_TAGS)&&($===ee&&($=Ze($)),fe($,g.ADD_TAGS,je))),Be(g,"ADD_ATTR")&&(typeof g.ADD_ATTR=="function"?Pe.attributeCheck=g.ADD_ATTR:xn(g.ADD_ATTR)&&(O===se&&(O=Ze(O)),fe(O,g.ADD_ATTR,je))),Be(g,"ADD_URI_SAFE_ATTR")&&xn(g.ADD_URI_SAFE_ATTR)&&fe(Nl,g.ADD_URI_SAFE_ATTR,je),Be(g,"FORBID_CONTENTS")&&xn(g.FORBID_CONTENTS)&&(Pt===Al&&(Pt=Ze(Pt)),fe(Pt,g.FORBID_CONTENTS,je)),Be(g,"ADD_FORBID_CONTENTS")&&xn(g.ADD_FORBID_CONTENTS)&&(Pt===Al&&(Pt=Ze(Pt)),fe(Pt,g.ADD_FORBID_CONTENTS,je)),Ll&&($["#text"]=!0),Nn&&fe($,["html","head","body"]),$.table&&(fe($,["tbody"]),delete ue.tbody),g.TRUSTED_TYPES_POLICY){if(typeof g.TRUSTED_TYPES_POLICY.createHTML!="function")throw On('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof g.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw On('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const F=D;D=g.TRUSTED_TYPES_POLICY;try{k=M("")}catch(Q){throw D=F,Q}}else g.TRUSTED_TYPES_POLICY===null?(D=void 0,k=""):(D===void 0&&(D=ne()),D&&typeof k=="string"&&(k=M("")));Ve&&Ve(g),tr=g},Nc=fe({},[...Ss,...bs,...Wm]),Dc=fe({},[...ks,...Bm]),_g=function(g,S,F){return S.namespaceURI===Ot?g==="svg":S.namespaceURI===Ko?g==="svg"&&(F==="annotation-xml"||Ol[F]):!!Nc[g]},wg=function(g,S,F){return S.namespaceURI===Ot?g==="math":S.namespaceURI===qo?g==="math"&&Fl[F]:!!Dc[g]},Sg=function(g,S,F){return S.namespaceURI===qo&&!Fl[F]||S.namespaceURI===Ko&&!Ol[F]?!1:!Dc[g]&&(xg[g]||!Nc[g])},bg=function(g){let S=d(g);(!S||!S.tagName)&&(S={namespaceURI:er,tagName:"template"});const F=so(g.tagName),Q=so(S.tagName);return Pl[g.namespaceURI]?g.namespaceURI===qo?_g(F,S,Q):g.namespaceURI===Ko?wg(F,S,Q):g.namespaceURI===Ot?Sg(F,S,Q):!!(Br==="application/xhtml+xml"&&Pl[g.namespaceURI]):!1},ln=function(g){lr(t.removed,{element:g});try{d(g).removeChild(g)}catch{if(w(g),!d(g))throw On("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Zo=function(g){Ur(g);const S=L(g);if(S){const Q=[];ir(S,te=>{lr(Q,te)}),ir(Q,te=>{try{w(te)}catch{}})}const F=p(g);if(F)for(let Q=F.length-1;Q>=0;--Q){const te=F[Q],ae=te&&te.name;if(typeof ae=="string")try{g.removeAttribute(ae)}catch{}}},Dn=function(g,S){try{lr(t.removed,{attribute:S.getAttributeNode(g),from:S})}catch{lr(t.removed,{attribute:null,from:S})}if(S.removeAttribute(g),g==="is")if(Zn||Yo)try{ln(S)}catch{}else try{S.setAttribute(g,"")}catch{}},kg=function(g){const S=p(g);if(S)for(let F=S.length-1;F>=0;--F){const Q=S[F],te=Q&&Q.name;if(!(typeof te!="string"||O[je(te)]))try{g.removeAttribute(te)}catch{}}},Ur=function(g){const S=[g];for(;S.length>0;){const F=S.pop();(v?v(F):F.nodeType)===gt.element&&kg(F);const te=L(F);if(te)for(let ae=te.length-1;ae>=0;--ae)S.push(te[ae])}},Eg=function(g){if(!on)return;const S=[g];for(;S.length>0;){const F=S.pop(),Q=v?v(F):F.nodeType;if(Q===gt.processingInstruction||Q===gt.comment&&We(_d,F.data)){try{w(F)}catch{}continue}if(Q===gt.element){const ae=F,me=je(R?R(F):F.nodeName);try{ae.hasAttribute&&ae.hasAttribute("patchsrc")&&ae.removeAttribute("patchsrc"),ae.hasAttribute&&ae.hasAttribute("for")&&me!=="label"&&me!=="output"&&ae.removeAttribute("for")}catch{}}const te=L(F);if(te)for(let ae=te.length-1;ae>=0;--ae)S.push(te[ae])}},Pc=function(g){let S=null,F=null;if(zl)g="<remove></remove>"+g;else{const ae=ud(g,/^[\r\n\t ]+/);F=ae&&ae[0]}Br==="application/xhtml+xml"&&er===Ot&&(g='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+g+"</body></html>");const Q=D?M(g):g;if(er===Ot)try{S=new m().parseFromString(Q,Br)}catch{}if(!S||!S.documentElement){S=q.createDocument(er,"template",null);try{S.documentElement.innerHTML=Dl?k:Q}catch{}}const te=S.body||S.documentElement;return g&&F&&te.insertBefore(n.createTextNode(F),te.childNodes[0]||null),er===Ot?E.call(S,Nn?"html":"body")[0]:Nn?S.documentElement:te},Oc=function(g){const S=I?I(g):g.ownerDocument;return T.call(S||g,g,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Jo=function(g){return g=Jr(g,X," "),g=Jr(g,Z," "),g=Jr(g,ve," "),g},Wl=function(g){var S;g.normalize();const F=I?I(g):g.ownerDocument,Q=T.call(F||g,g,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let te=Q.nextNode();for(;te;)te.data=Jo(te.data),te=Q.nextNode();const ae=(S=g.querySelectorAll)===null||S===void 0?void 0:S.call(g,"template");ae&&ir(ae,me=>{nr(me.content)&&Wl(me.content)})},ei=function(g){const S=R?R(g):null;return typeof S!="string"||je(S)!=="form"?!1:typeof g.nodeName!="string"||typeof g.textContent!="string"||typeof g.removeChild!="function"||g.attributes!==p(g)||typeof g.removeAttribute!="function"||typeof g.setAttribute!="function"||typeof g.namespaceURI!="string"||typeof g.insertBefore!="function"||typeof g.hasChildNodes!="function"||g.nodeType!==v(g)||g.childNodes!==L(g)},nr=function(g){if(!v||typeof g!="object"||g===null)return!1;try{return v(g)===gt.documentFragment}catch{return!1}},$r=function(g){if(!v||typeof g!="object"||g===null)return!1;try{return typeof v(g)=="number"}catch{return!1}};function Ft(U,g,S){U.length!==0&&ir(U,F=>{F.call(t,g,S,tr)})}const jg=function(g,S){return!!(on&&g.hasChildNodes()&&!$r(g.firstElementChild)&&We(vd,g.textContent)&&We(vd,g.innerHTML)||on&&g.namespaceURI===Ot&&S==="style"&&$r(g.firstElementChild)||g.nodeType===gt.processingInstruction||on&&g.nodeType===gt.comment&&We(_d,g.data))},Cg=function(g,S,F){if(!ue[S]&&Bc(S)&&(J.tagNameCheck instanceof RegExp&&We(J.tagNameCheck,S)||J.tagNameCheck instanceof Function&&J.tagNameCheck(S)))return!1;if(Ll&&!Pt[S]){const Q=d(g),te=L(g);if(te&&Q){const ae=te.length;for(let me=ae-1;me>=0;--me){const Ce=g===F?y(te[me],!0):te[me];Q.insertBefore(Ce,_(g))}}}return ln(g),!0},Fc=function(g,S,F,Q){return g.length===0?S:S===F||S===Q?Ze(S):S},Mc=function(g,S){if(Ft(N.beforeSanitizeElements,g,null),g!==S&&d(g)===null)return Qo&&Ur(g),!0;if(ei(g))return ln(g),!0;const F=je(R?R(g):g.nodeName);if($=Fc(N.uponSanitizeElement,$,ee,Vo),Ft(N.uponSanitizeElement,g,{tagName:F,allowedTags:$}),g!==S&&d(g)===null)return Qo&&Ur(g),!0;if(jg(g,F))return ln(g),!0;if(ue[F]||!(Pe.tagCheck instanceof Function&&Pe.tagCheck(F))&&!$[F]){const te=Cg(g,F,S);return te===!1&&Ft(N.afterSanitizeElements,g,null),te}if((v?v(g):g.nodeType)===gt.element&&!bg(g)||(F==="noscript"||F==="noembed"||F==="noframes")&&We(qm,g.innerHTML))return ln(g),!0;if(rn&&g.nodeType===gt.text){const te=Jo(g.textContent);g.textContent!==te&&(lr(t.removed,{element:g.cloneNode()}),g.textContent=te)}return Ft(N.afterSanitizeElements,g,null),!1},Wc=function(g,S,F){if(ge[S]||on&&S==="patchsrc"||on&&S==="for"&&g!=="label"&&g!=="output"||Ec&&(S==="id"||S==="name")&&(F in n||F in vg))return!1;const Q=O[S]||Pe.attributeCheck instanceof Function&&Pe.attributeCheck(S,g);if(!(Wr&&We(le,S))){if(!(Vt&&We(de,S))){if(Q){if(!Nl[S]){if(!We(G,Jr(F,C,""))){if(!((S==="src"||S==="xlink:href"||S==="href")&&g!=="script"&&dd(F,"data:")===0&&Tc[g])){if(!($o&&!We(A,Jr(F,C,"")))){if(F)return!1}}}}}else if(!(Bc(g)&&(J.tagNameCheck instanceof RegExp&&We(J.tagNameCheck,g)||J.tagNameCheck instanceof Function&&J.tagNameCheck(g))&&(J.attributeNameCheck instanceof RegExp&&We(J.attributeNameCheck,S)||J.attributeNameCheck instanceof Function&&J.attributeNameCheck(S,g))||S==="is"&&J.allowCustomizedBuiltInElements&&(J.tagNameCheck instanceof RegExp&&We(J.tagNameCheck,F)||J.tagNameCheck instanceof Function&&J.tagNameCheck(F))))return!1}}return!0},Tg=fe({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Bc=function(g){return!Tg[so(g)]&&We(V,g)},Rg=function(g,S,F,Q){if(D&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!F)switch(h.getAttributeType(g,S)){case"TrustedHTML":return M(Q);case"TrustedScriptURL":return re(Q)}return Q},Ig=function(g,S,F,Q){try{F?g.setAttributeNS(F,S,Q):g.setAttribute(S,Q),ei(g)?ln(g):cd(t.removed)}catch{Dn(S,g)}},Uc=function(g){Ft(N.beforeSanitizeAttributes,g,null);const S=g.attributes;if(!S||ei(g))return;O=Fc(N.uponSanitizeAttribute,O,se,Go);const F={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:O,forceKeepAttr:void 0};let Q=S.length;const te=je(g.nodeName);for(;Q--;){const ae=S[Q],me=ae.name,Ce=ae.namespaceURI,lt=ae.value,st=je(me),Ul=lt;let tt=me==="value"?Ul:Am(Ul);if(F.attrName=st,F.attrValue=tt,F.keepAttr=!0,F.forceKeepAttr=void 0,Ft(N.uponSanitizeAttribute,g,F),tt=F.attrValue,jc&&(st==="id"||st==="name")&&dd(tt,Cc)!==0&&(Dn(me,g),tt=Cc+tt),on&&We(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,tt)){Dn(me,g);continue}if(st==="attributename"&&ud(tt,"href")){Dn(me,g);continue}if(!F.forceKeepAttr){if(!F.keepAttr){Dn(me,g);continue}if(!Ho&&We(Zm,tt)){Dn(me,g);continue}if(rn&&(tt=Jo(tt)),!Wc(te,st,tt)){Dn(me,g);continue}tt=Rg(te,st,Ce,tt),tt!==Ul&&Ig(g,me,Ce,tt)}}Ft(N.afterSanitizeAttributes,g,null)},ti=function(g){let S=null;const F=Oc(g);for(Ft(N.beforeSanitizeShadowDOM,g,null);S=F.nextNode();)if(Ft(N.uponSanitizeShadowNode,S,null),Mc(S,g),Uc(S),nr(S.content)&&ti(S.content),(v?v(S):S.nodeType)===gt.element){const te=f(S);nr(te)&&(Bl(te),ti(te))}Ft(N.afterSanitizeShadowDOM,g,null)},Bl=function(g){const S=[{node:g,shadow:null}];for(;S.length>0;){const F=S.pop();if(F.shadow){ti(F.shadow);continue}const Q=F.node,ae=(v?v(Q):Q.nodeType)===gt.element,me=L(Q);if(me)for(let Ce=me.length-1;Ce>=0;--Ce)S.push({node:me[Ce],shadow:null});if(ae){const Ce=R?R(Q):null;if(typeof Ce=="string"&&je(Ce)==="template"){const lt=Q.content;nr(lt)&&S.push({node:lt,shadow:null})}}if(ae){const Ce=f(Q);nr(Ce)&&S.push({node:null,shadow:Ce},{node:Ce,shadow:null})}}};return t.sanitize=function(U){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=null,F=null,Q=null,te=null;if(Dl=!U,Dl&&(U="<!-->"),typeof U!="string"&&!$r(U)&&(U=Fm(U),typeof U!="string"))throw On("dirty is not a string, aborting");if(!t.isSupported)return U;Il?($=Vo,O=Go):Ml(g),(N.uponSanitizeElement.length>0||N.uponSanitizeAttribute.length>0)&&($=Ze($)),N.uponSanitizeAttribute.length>0&&(O=Ze(O)),t.removed=[];const ae=Qo&&typeof U!="string"&&$r(U);if(ae){Eg(U);const lt=R?R(U):U.nodeName;if(typeof lt=="string"){const st=je(lt);if(!$[st]||ue[st])throw Zo(U),On("root node is forbidden and cannot be sanitized in-place")}if(ei(U))throw Zo(U),On("root node is clobbered and cannot be sanitized in-place");try{Bl(U)}catch(st){throw Zo(U),st}}else if($r(U))S=Pc("<!---->"),F=S.ownerDocument.importNode(U,!0),F.nodeType===gt.element&&F.nodeName==="BODY"||F.nodeName==="HTML"?S=F:S.appendChild(F),Bl(F);else{if(!Zn&&!rn&&!Nn&&U.indexOf("<")===-1)return D&&Xo?M(U):U;if(S=Pc(U),!S)return Zn?null:Xo?k:""}S&&zl&&ln(S.firstChild);const me=ae?U:S;try{const lt=Oc(me);for(;Q=lt.nextNode();)Mc(Q,me),Uc(Q),nr(Q.content)&&ti(Q.content)}catch(lt){throw ae&&(Zo(U),ir(t.removed,st=>{st.element&&Ur(st.element)})),lt}if(ae)return ir(t.removed,lt=>{lt.element&&Ur(lt.element)}),rn&&Wl(U),U;if(Zn){if(rn&&Wl(S),Yo)for(te=z.call(S.ownerDocument);S.firstChild;)te.appendChild(S.firstChild);else te=S;return(O.shadowroot||O.shadowrootmode)&&(te=P.call(r,te,!0)),te}let Ce=Nn?S.outerHTML:S.innerHTML;return Nn&&$["!doctype"]&&S.ownerDocument&&S.ownerDocument.doctype&&S.ownerDocument.doctype.name&&We(Qm,S.ownerDocument.doctype.name)&&(Ce="<!DOCTYPE "+S.ownerDocument.doctype.name+`>
|
|
566
|
+
`+Ce),rn&&(Ce=Jo(Ce)),D&&Xo?M(Ce):Ce},t.setConfig=function(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ml(U),Il=!0,Vo=$,Go=O},t.clearConfig=function(){tr=null,Il=!1,Vo=null,Go=null,D=H,k=""},t.isValidAttribute=function(U,g,S){tr||Ml({});const F=je(U),Q=je(g);return Wc(F,Q,S)},t.addHook=function(U,g){typeof g=="function"&&Be(N,U)&&lr(N[U],g)},t.removeHook=function(U,g){if(Be(N,U)){if(g!==void 0){const S=zm(N[U],g);return S===-1?void 0:Lm(N[U],S,1)[0]}return cd(N[U])}},t.removeHooks=function(U){Be(N,U)&&(N[U]=[])},t.removeAllHooks=function(){N=wd()},t}var fg=dg();function ba(e){const t=fg.sanitize(typeof e=="string"?e:"",{ALLOWED_TAGS:["b","i","em","strong","a","ul","ol","li","br","div","p","font"],ALLOWED_ATTR:["href","target","rel","size"],ALLOW_DATA_ATTR:!1,ALLOW_ARIA_ATTR:!1}),n=document.createElement("template");n.innerHTML=t;for(const r of n.content.querySelectorAll("a")){const o=r.getAttribute("href");if(o)try{(/^[\s]*[\\/]{2}/.test(o)||!["http:","https:","mailto:"].includes(new URL(o,window.location.href).protocol))&&r.removeAttribute("href")}catch{r.removeAttribute("href")}r.getAttribute("target")!=="_blank"&&r.removeAttribute("target"),r.setAttribute("rel","noopener noreferrer")}return n.innerHTML}function pg(e){if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Invalid manual canvas");const t={...e};for(const n of["nodes","groups","texts","connections","executionReport"]){const r=t[n]??[];if(!Array.isArray(r)||r.length>2e4)throw new Error("Invalid manual canvas collection");t[n]=r.map(o=>{if(!o||typeof o!="object"||Array.isArray(o)||!Number.isSafeInteger(o.id)||o.id<0)throw new Error("Invalid manual canvas entry");const i={...o};for(const s of["x","y","width","height"])if(s in i&&(typeof i[s]!="number"||!Number.isFinite(i[s])))throw new Error("Invalid canvas geometry");for(const s of["description","steps","expected_result","references","defect_report"])if(s in i){if(typeof i[s]!="string"||i[s].length>1e5)throw new Error("Invalid manual rich text");i[s]=ba(i[s])}for(const s of["title","visual_step","status","group_title","assigned_to","content"])if(s in i&&(typeof i[s]!="string"||i[s].length>1e5))throw new Error("Invalid manual text");return i})}return t}const gg=b.forwardRef(({activeMode:e,activeTool:t,onNodeSelected:n,nodeUpdateTrigger:r,defectUpdateTrigger:o,onGroupSelected:i,groupUpdateTrigger:s,onTextSelected:a,textUpdateTrigger:c,onExecutionReportChange:u,zoomLevel:m,recenterTrigger:h,onToolChange:x},y)=>{const w=b.useRef(null),[_,L]=b.useState(!1),d=b.useRef(null),f=()=>!w.current||!w.current.contentWindow?null:w.current.contentWindow.flowstrideEngineAPI||null;return b.useImperativeHandle(y,()=>({exportDesignState:()=>{const p=f();if(p)try{return p.exportDesignState()}catch(v){return console.error("[Flowstride Telemetry Error]: Failed to pull state from EngineFrame",v),{nodes:[],groups:[],texts:[],connections:[]}}return console.warn("[Flowstride Telemetry]: Iframe engine missing. Cannot export state."),{nodes:[],groups:[],texts:[],connections:[]}},importDesignState:p=>{p=pg(p);const v=f();v&&_?v.importDesignState(p):d.current=p}})),b.useEffect(()=>{const p=v=>{if(v.origin!==window.location.origin)return;const{type:R,payload:I}=v.data;if(R)switch(R){case"ENGINE_READY":L(!0);const D=f();D&&d.current&&(D.importDesignState(d.current),d.current=null);break;case"NODE_SELECTED":n==null||n(I.id,I.title,I.description,I.visualStep,I.stepsContent,I.expectedResult,I.references,I.priority);break;case"GROUP_SELECTED":i==null||i(I.id,I.title);break;case"TEXT_SELECTED":a==null||a(I.id,I.content);break;case"TOOL_CHANGED":x==null||x(I);break;case"EXECUTION_REPORT_CHANGED":u==null||u(I);break}};return window.addEventListener("message",p),()=>window.removeEventListener("message",p)},[n,i,a,x,u]),b.useEffect(()=>{var p;_&&((p=f())==null||p.setMode(e))},[e,_]),b.useEffect(()=>{var p;_&&t&&((p=f())==null||p.setTool(t))},[t,_]),b.useEffect(()=>{var p;_&&m!==void 0&&((p=f())==null||p.setZoom(m))},[m,_]),b.useEffect(()=>{var p;_&&h!==void 0&&h>0&&((p=f())==null||p.recenterView())},[h,_]),b.useEffect(()=>{var p;_&&r&&((p=f())==null||p.updateNodeData(r.stepNumber,r.title,r.description,r.stepsContent,r.expectedResult,r.references,r.priority))},[r,_]),b.useEffect(()=>{var p;_&&o&&((p=f())==null||p.updateNodeDefectData(o.stepNumber,o.defectReport,o.defectMedia,o.assignedTo))},[o,_]),b.useEffect(()=>{var p;_&&s&&((p=f())==null||p.updateGroupTitle(s.groupId,s.title))},[s,_]),b.useEffect(()=>{var p;_&&c&&((p=f())==null||p.updateTextContent(c.textId,c.content))},[c,_]),l.jsxs("main",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#f8f9fa",overflow:"hidden",position:"relative",outline:"none"},tabIndex:-1,children:[l.jsx("style",{children:`
|
|
567
|
+
.flowstride-spin-circle {
|
|
568
|
+
animation: flowstride-spin-anim 0.8s linear infinite;
|
|
569
|
+
}
|
|
570
|
+
@keyframes flowstride-spin-anim {
|
|
571
|
+
0% { transform: rotate(0deg); }
|
|
572
|
+
100% { transform: rotate(360deg); }
|
|
573
|
+
}
|
|
574
|
+
`}),!_&&l.jsxs("div",{style:{position:"absolute",inset:0,zIndex:9999,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(248, 249, 250, 1)"},children:[l.jsx("div",{className:"flowstride-spin-circle",style:{width:"36px",height:"36px",border:"3px solid #e2e8f0",borderTopColor:"#4f46e5",borderRadius:"50%",marginBottom:"16px"}}),l.jsx("span",{style:{fontSize:"13px",fontWeight:"bold",color:"#475569",letterSpacing:"0.05em"},children:"ALLOCATING ISOLATED ENGINE CORE..."})]}),l.jsx("iframe",{ref:w,src:"?frame=engine",title:"Flowstride Isolated Workspace Engine",style:{width:"100%",height:"100%",border:"none",display:"block",backgroundColor:"#f8f9fa",opacity:_?1:0,transition:"opacity 0.2s ease-in-out"}})]})});gg.displayName="FlowCanvas";function t1(e,t,n){const r=o=>typeof o=="string"&&o.trim().length>0;return e?r(n)?n:"Historical Record":r(t)?t:"New Local Flow"}const n1=({activeMode:e,onModeChange:t,onSave:n,flows:r=[],activeFlowId:o,onSelectFlow:i,onCreateFlow:s,onDeleteFlow:a,onRenameFlow:c,zoomLevel:u=1,onZoomIn:m,onZoomOut:h,onZoomReset:x,metadata:y,onMetadataChange:w})=>{const[_,L]=b.useState(!1),[d,f]=b.useState(!1),[p,v]=b.useState(!1),[R,I]=b.useState(""),D=b.useRef(null),k=b.useRef(!1),H=e===he.Execution,B=r.find(T=>T.id===o),{activeHistoricalRunId:oe}=Ye(),ie=t1(oe!==null,B==null?void 0:B.name,y==null?void 0:y.flowName),M=T=>{if(!T)return"Just now";const z=Math.floor((Date.now()-T)/1e3);if(z<60)return"Just now";const E=Math.floor(z/60);if(E<60)return`${E} minute${E>1?"s":""} ago`;const P=Math.floor(E/60);if(P<24)return`${P} hour${P>1?"s":""} ago`;const N=Math.floor(P/24);return`${N} day${N>1?"s":""} ago`};b.useEffect(()=>{const T=z=>{D.current&&!D.current.contains(z.target)&&f(!1)};return d&&document.addEventListener("mousedown",T),()=>{document.removeEventListener("mousedown",T)}},[d]);const re=async()=>{L(!0);try{const T=window.flowstrideEngineAPI;if(T){const z=T.exportDesignState(),E={metadata:{flowName:ie,version:(y==null?void 0:y.version)||"1.0",testPlan:(y==null?void 0:y.testPlan)||"",environment:(y==null?void 0:y.environment)||"Local",lastUpdatedBy:(y==null?void 0:y.lastUpdatedBy)||"Local User",lastUpdatedAt:Date.now()},canvas:z},P=new Blob([JSON.stringify(E,null,2)],{type:"application/json"}),N=URL.createObjectURL(P),X=document.createElement("a");X.href=N;const Z=ie.replace(/[^a-z0-9]/gi,"_").toLowerCase();X.download=`${Z||"local_workspace"}.json`,document.body.appendChild(X),X.click(),document.body.removeChild(X),URL.revokeObjectURL(N)}n&&await n()}catch(T){console.error("[Flowstride Telemetry Error]: Failed to generate local export file",T)}finally{L(!1)}},ne=(T,z,E)=>{T.stopPropagation(),window.confirm(`Are you sure you want to delete the flow: "${E}"?`)&&a&&a(z)},xe=()=>{H||(I(ie),v(!0))},q=async()=>{if(k.current||H)return;k.current=!0;const T=R.trim();if(v(!1),T!==""&&o&&c&&(c(o,T),n)){L(!0);try{await n(T)}finally{L(!1)}}k.current=!1};return l.jsxs("div",{style:{padding:"16px 24px",borderBottom:"1px solid #e1e4e8",backgroundColor:"#ffffff",flexShrink:0,display:"flex",justifyContent:"space-between",alignItems:"flex-start",position:"relative"},children:[l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px",flex:1},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"16px",fontSize:"13px",color:"#57606a"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[l.jsx("span",{children:"Local Workspaces"}),l.jsx(Rn,{size:14})]}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[l.jsxs("div",{ref:D,style:{position:"relative"},children:[l.jsxs("button",{onClick:()=>{H||f(!d)},disabled:H,style:{display:"flex",alignItems:"center",gap:"6px",padding:"6px 12px",border:d?"1px solid #0969da":"1px solid #d0d7de",backgroundColor:H?"#f6f8fa":"#ffffff",borderRadius:"6px",cursor:H?"not-allowed":"pointer",fontSize:"13px",fontWeight:"600",color:d?"#0969da":H?"#8c959f":"#24292f",transition:"all 0.2s ease",opacity:H?.7:1},children:[ie,d?l.jsx(Ox,{size:14}):l.jsx(Dr,{size:14})]}),d&&!H&&l.jsxs("div",{style:{position:"absolute",top:"100%",left:0,marginTop:"4px",width:"240px",backgroundColor:"#ffffff",border:"1px solid #d0d7de",borderRadius:"8px",boxShadow:"0 4px 12px rgba(0,0,0,0.1)",zIndex:50,display:"flex",flexDirection:"column",padding:"8px 0"},children:[l.jsx("span",{style:{fontSize:"11px",fontWeight:"bold",color:"#8c959f",padding:"4px 16px 8px 16px",letterSpacing:"0.5px"},children:"YOUR LOCAL FLOWS"}),r.map(T=>l.jsxs("div",{onClick:()=>{i==null||i(T.id),f(!1)},style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 16px",cursor:"pointer",backgroundColor:o===T.id?"#f0f7ff":"transparent",color:o===T.id?"#0969da":"#24292f",fontSize:"13px",fontWeight:"500"},onMouseEnter:z=>{o!==T.id&&(z.currentTarget.style.backgroundColor="#f6f8fa")},onMouseLeave:z=>{o!==T.id&&(z.currentTarget.style.backgroundColor="transparent")},children:[l.jsx("span",{children:T.name}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[o===T.id&&l.jsx(Vp,{size:14,color:"#0969da"}),o!==T.id&&l.jsx("button",{onClick:z=>ne(z,T.id,T.name),style:{background:"transparent",border:"none",padding:"4px",cursor:"pointer",color:"#8c959f",display:"flex",alignItems:"center",justifyContent:"center"},title:"Delete Flow",children:l.jsx(cy,{size:14})})]})]},T.id))]})]}),!H&&l.jsx("button",{onClick:s,style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"6px 8px",border:"1px solid #d0d7de",backgroundColor:"#f6f8fa",borderRadius:"6px",cursor:"pointer",color:"#0969da",transition:"all 0.2s ease"},children:l.jsx(qp,{size:16})})]})]}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[p&&!H?l.jsx("input",{autoFocus:!0,value:R,onChange:T=>I(T.target.value),onBlur:q,onKeyDown:T=>{T.key==="Enter"&&(T.preventDefault(),q()),T.key==="Escape"&&v(!1)},style:{fontSize:"24px",fontWeight:"bold",color:"#24292f",margin:0,padding:"0 4px",border:"1px solid #0969da",borderRadius:"4px",outline:"none",width:"300px"}}):l.jsxs("h1",{style:{fontSize:"24px",fontWeight:"bold",color:"#24292f",margin:0,display:"flex",alignItems:"center",gap:"8px"},children:[ie,!H&&l.jsx("button",{onClick:xe,style:{background:"transparent",border:"none",cursor:"pointer",color:"#8c959f",display:"flex",padding:0},children:l.jsx(ty,{size:16})})]}),H?l.jsxs("span",{style:{fontSize:"11px",fontWeight:"600",color:"#0969da",backgroundColor:"#ddf4ff",padding:"4px 10px",borderRadius:"12px"},children:["Version ",(y==null?void 0:y.version)||"1.0"]}):l.jsxs("div",{style:{display:"flex",alignItems:"center",backgroundColor:"#ddf4ff",padding:"4px 10px",borderRadius:"12px",border:"1px solid transparent",transition:"border-color 0.2s ease"},onFocus:T=>T.currentTarget.style.border="1px solid #0969da",onBlur:T=>T.currentTarget.style.border="1px solid transparent",children:[l.jsx("span",{style:{fontSize:"11px",fontWeight:"600",color:"#0969da",marginRight:"4px"},children:"Version"}),l.jsx("input",{type:"text",value:(y==null?void 0:y.version)||"",onChange:T=>w==null?void 0:w({...y,version:T.target.value}),placeholder:"1.0",style:{border:"none",background:"transparent",color:"#0969da",fontWeight:"600",fontSize:"11px",outline:"none",padding:0,margin:0,width:y!=null&&y.version?`${y.version.length+1}ch`:"4ch",minWidth:"20px"}})]})]}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",fontSize:"12px",color:"#8c959f"},children:[l.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"4px"},children:["Test Plan:",H?l.jsx("strong",{style:{color:"#24292f",fontWeight:"600"},children:(y==null?void 0:y.testPlan)||"N/A"}):l.jsx("input",{type:"text",placeholder:"Click to add",value:(y==null?void 0:y.testPlan)||"",onChange:T=>w==null?void 0:w({...y,testPlan:T.target.value}),style:{border:"none",background:"transparent",color:"#24292f",fontWeight:"600",fontSize:"12px",outline:"none",padding:"0 0 2px 0",width:"140px",borderBottom:"1px dashed #d0d7de",transition:"border-color 0.2s ease"},onFocus:T=>T.target.style.borderBottom="1px solid #0969da",onBlur:T=>T.target.style.borderBottom="1px dashed #d0d7de"})]}),l.jsx("span",{style:{color:"#0969da",fontSize:"16px",lineHeight:"10px"},children:"•"}),l.jsxs("span",{style:{display:"flex",alignItems:"center",gap:"4px"},children:["Environment:",H?l.jsx("strong",{style:{color:"#24292f",fontWeight:"600"},children:(y==null?void 0:y.environment)||"Local"}):l.jsxs("select",{value:(y==null?void 0:y.environment)||"Local",onChange:T=>w==null?void 0:w({...y,environment:T.target.value}),style:{border:"none",background:"transparent",color:"#24292f",fontWeight:"600",fontSize:"12px",outline:"none",cursor:"pointer",padding:"0 0 2px 0",borderBottom:"1px dashed #d0d7de"},children:[l.jsx("option",{value:"Local",children:"Local"}),l.jsx("option",{value:"Dev",children:"Dev"}),l.jsx("option",{value:"Staging",children:"Staging"}),l.jsx("option",{value:"Prod",children:"Prod"})]})]}),l.jsx("span",{style:{color:"#2da44e",fontSize:"16px",lineHeight:"10px"},children:"•"}),l.jsxs("span",{children:["Last exported: ",M(y==null?void 0:y.lastUpdatedAt)," by"," ",l.jsx("strong",{style:{color:"#24292f",fontWeight:"600"},children:(y==null?void 0:y.lastUpdatedBy)||"Local User"})]}),(y==null?void 0:y.testedBy)&&l.jsxs(l.Fragment,{children:[l.jsx("span",{style:{color:"#d0d7de",fontSize:"16px",lineHeight:"10px"},children:"|"}),l.jsxs("span",{children:["Tested by:"," ",l.jsx("strong",{style:{color:"#24292f",fontWeight:"600"},children:y.testedBy})]})]})]})]}),l.jsxs("div",{style:{position:"absolute",left:"50%",transform:"translateX(-50%)",display:"flex",backgroundColor:"#f6f8fa",borderRadius:"8px",padding:"4px",border:"1px solid #e1e4e8",top:"16px"},children:[l.jsx("button",{onClick:()=>t(he.Design),style:{padding:"6px 16px",borderRadius:"6px",border:"none",fontSize:"13px",fontWeight:e===he.Design?"bold":"normal",backgroundColor:e===he.Design?"#ffffff":"transparent",color:e===he.Design?"#0969da":"#57606a",boxShadow:e===he.Design?"0 1px 3px rgba(0,0,0,0.1)":"none",cursor:"pointer",transition:"all 0.2s ease"},children:"Design Mode"}),l.jsx("button",{onClick:()=>t(he.Execution),style:{padding:"6px 16px",borderRadius:"6px",border:"none",fontSize:"13px",fontWeight:e===he.Execution?"bold":"normal",backgroundColor:e===he.Execution?"#ffffff":"transparent",color:e===he.Execution?"#0969da":"#57606a",boxShadow:e===he.Execution?"0 1px 3px rgba(0,0,0,0.1)":"none",cursor:"pointer",transition:"all 0.2s ease"},children:"Execution Mode"})]}),l.jsxs("div",{style:{display:"flex",gap:"12px",flex:1,justifyContent:"flex-end",alignItems:"flex-start"},children:[e===he.Design&&l.jsxs("div",{style:{display:"flex",alignItems:"center",backgroundColor:"#f6f8fa",borderRadius:"6px",border:"1px solid #d0d7de",padding:"2px"},children:[l.jsx("button",{onClick:h,title:"Zoom Out",style:{background:"transparent",border:"none",cursor:"pointer",padding:"6px",display:"flex",color:"#57606a",borderRadius:"4px"},children:l.jsx(gy,{size:16})}),l.jsxs("button",{onClick:x,title:"Reset Zoom",style:{background:"transparent",border:"none",cursor:"pointer",fontSize:"13px",fontWeight:"600",color:"#24292f",padding:"0 8px"},children:[Math.round(u*100),"%"]}),l.jsx("button",{onClick:m,title:"Zoom In",style:{background:"transparent",border:"none",cursor:"pointer",padding:"6px",display:"flex",color:"#57606a",borderRadius:"4px"},children:l.jsx(py,{size:16})})]}),l.jsx("button",{onClick:re,disabled:_,style:{display:"flex",alignItems:"center",gap:"6px",padding:"8px 16px",backgroundColor:_?"#f6f8fa":"#ffffff",border:"1px solid #d0d7de",borderRadius:"6px",fontSize:"13px",fontWeight:"600",color:_?"#8c959f":"#24292f",cursor:_?"not-allowed":"pointer",transition:"all 0.2s ease"},children:_?l.jsxs(l.Fragment,{children:[l.jsx(Pr,{size:16})," Exporting..."]}):l.jsxs(l.Fragment,{children:[l.jsx(Wx,{size:16})," Save"]})})]})]})},r1=["Hand","Select","Step","Group","Arrow","Text","Requirement"],o1={Hand:Vx,Select:Zx,Step:Xp,Group:Hx,Arrow:Nx,Text:dy,Requirement:Sc},i1=({activeTool:e,onToolSelect:t})=>{const[n,r]=b.useState(!0);return l.jsx("aside",{style:{width:n?"240px":"64px",backgroundColor:"#ffffff",borderRight:"1px solid #e1e4e8",overflowY:"auto",flexShrink:0,transition:"width 0.2s ease",display:"flex",flexDirection:"column"},children:l.jsxs("div",{style:{display:"flex",flexDirection:"column",minHeight:"100%",padding:n?"16px 16px 16px 16px":"16px 8px 16px 8px",gap:"8px",flex:1},children:[l.jsx("button",{onClick:()=>r(!n),style:{display:"flex",alignItems:"center",justifyContent:n?"flex-end":"center",padding:"4px 0",marginBottom:"16px",background:"transparent",border:"none",color:"#8c959f",cursor:"pointer",transition:"color 0.2s ease",width:"100%"},onMouseEnter:o=>o.currentTarget.style.color="#24292f",onMouseLeave:o=>o.currentTarget.style.color="#8c959f",title:n?"Collapse Palette":"Expand Palette",children:n?l.jsx(_c,{size:18}):l.jsx(Rn,{size:18})}),r1.map(o=>{const i=e===o,s=o1[o];return o==="Requirement"?l.jsxs("div",{style:{marginTop:"auto"},children:[l.jsx("div",{style:{height:"1px",backgroundColor:"#e1e4e8",margin:"16px 0"}}),l.jsxs("button",{onClick:()=>t(o),title:n?void 0:o,style:{display:"flex",alignItems:"center",justifyContent:n?"flex-start":"center",width:"100%",padding:n?"10px 12px":"10px 0",backgroundColor:i?"#eef3fa":"transparent",color:i?"#0969da":"#24292f",border:"none",borderRadius:"8px",cursor:"pointer",fontSize:"14px",fontWeight:i?"600":"500",transition:"all 0.2s ease"},children:[l.jsx(s,{size:18,style:{marginRight:n?"12px":"0",color:i?"#0969da":"#57606a"}}),n&&o]})]},o):l.jsxs("button",{onClick:()=>t(o),title:n?void 0:o,style:{display:"flex",alignItems:"center",justifyContent:n?"flex-start":"center",padding:n?"10px 12px":"10px 0",backgroundColor:i?"#eef3fa":"transparent",color:i?"#0969da":"#24292f",border:"none",borderRadius:"8px",cursor:"pointer",fontSize:"14px",fontWeight:i?"600":"500",transition:"all 0.2s ease"},children:[l.jsx(s,{size:18,style:{marginRight:n?"12px":"0",color:i?"#0969da":"#57606a"}}),n&&o]},o)})]})})},Sd=({label:e,value:t,onChange:n,placeholder:r,minHeight:o,maxLength:i})=>{const s=b.useRef(null);b.useEffect(()=>{const h=ba(t);s.current&&h!==s.current.innerHTML&&(s.current.innerHTML=h)},[t]);const a=()=>{if(s.current&&n){const h=s.current.innerHTML,x=ba(h);n(x)}},c=(h,x,y)=>{h.preventDefault(),document.execCommand(x,!1,y),a()},u=h=>{h.preventDefault();const x=window.prompt("Enter link URL (e.g., https://example.com):");x&&(document.execCommand("createLink",!1,x),a())},m=h=>{c(h,"fontSize",h.target.value),s.current&&s.current.focus()};return l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[l.jsx("label",{style:{fontSize:"12px",fontWeight:"600",color:"#24292f"},children:e}),l.jsxs("div",{style:{border:"1px solid #d0d7de",borderRadius:"6px",overflow:"hidden"},children:[l.jsxs("div",{style:{display:"flex",gap:"4px",padding:"6px 8px",borderBottom:"1px solid #d0d7de",backgroundColor:"#f6f8fa",alignItems:"center"},children:[l.jsxs("select",{onChange:m,defaultValue:"3",style:{background:"#ffffff",border:"1px solid #d0d7de",color:"#24292f",borderRadius:"4px",padding:"2px 4px",fontSize:"12px",cursor:"pointer",outline:"none",marginRight:"4px"},title:"Font Size",children:[l.jsx("option",{value:"1",children:"Small"}),l.jsx("option",{value:"3",children:"Normal"}),l.jsx("option",{value:"4",children:"Large"}),l.jsx("option",{value:"5",children:"Huge"})]}),l.jsx("div",{style:{width:"1px",height:"16px",backgroundColor:"#d0d7de",margin:"0 4px"}}),l.jsx("button",{onPointerDown:h=>c(h,"bold"),style:{background:"none",border:"none",color:"#57606a",cursor:"pointer",padding:"4px",borderRadius:"4px"},title:"Bold",children:l.jsx(Dx,{size:14})}),l.jsx("button",{onPointerDown:h=>c(h,"italic"),style:{background:"none",border:"none",color:"#57606a",cursor:"pointer",padding:"4px",borderRadius:"4px"},title:"Italic",children:l.jsx(Yx,{size:14})}),l.jsx("button",{onPointerDown:h=>c(h,"insertUnorderedList"),style:{background:"none",border:"none",color:"#57606a",cursor:"pointer",padding:"4px",borderRadius:"4px"},title:"Bulleted List",children:l.jsx(Kx,{size:14})}),l.jsx("button",{onPointerDown:h=>c(h,"insertOrderedList"),style:{background:"none",border:"none",color:"#57606a",cursor:"pointer",padding:"4px",borderRadius:"4px"},title:"Numbered List",children:l.jsx(Qx,{size:14})}),l.jsx("button",{onPointerDown:u,style:{background:"none",border:"none",color:"#57606a",cursor:"pointer",padding:"4px",borderRadius:"4px"},title:"Link",children:l.jsx(Xx,{size:14})})]}),l.jsxs("div",{style:{position:"relative"},children:[l.jsx("div",{ref:s,className:"rich-text-editor",contentEditable:!0,onInput:a,onBlur:a,"data-placeholder":r,style:{width:"100%",padding:"8px 12px",border:"none",fontSize:"13px",color:"#24292f",minHeight:o,outline:"none",boxSizing:"border-box",backgroundColor:"#ffffff",overflowY:"auto",resize:"vertical",lineHeight:"1.5"}}),i&&l.jsxs("span",{style:{position:"absolute",bottom:"8px",right:"12px",fontSize:"10px",color:"#8c959f",pointerEvents:"none"},children:[t.replace(/<[^>]*>?/gm,"").length,"/",i]})]})]})]})},l1=({entityType:e="Node",entityId:t=2,visualStep:n,title:r="Enter Email",description:o="",stepsContent:i="",expectedResult:s="",referencesContent:a="",priority:c="",onTitleChange:u,onDescriptionChange:m,onStepsContentChange:h,onExpectedResultChange:x,onReferencesChange:y,onPriorityChange:w})=>{const[_,L]=b.useState("Details"),[d,f]=b.useState(!0),[p,v]=b.useState(320),[R,I]=b.useState(!1),D=b.useRef(0),k=b.useRef(320),H=b.useRef(null),[B,oe]=b.useState(!1),[ie,M]=b.useState(!1),[re,ne]=b.useState(!1),[xe,q]=b.useState(null),T=a.split(",").filter(Boolean),z=T.filter(C=>C.endsWith(".mp4")||C.endsWith(".webm")).length,E=T.filter(C=>!C.endsWith(".mp4")&&!C.endsWith(".webm")).length,P=C=>{C.preventDefault(),C.currentTarget.setPointerCapture(C.pointerId),I(!0),D.current=C.clientX,k.current=p},N=C=>{if(!R)return;const V=D.current-C.clientX;let G=k.current+V;G<260&&(G=260),G>800&&(G=800),v(G)},X=C=>{R&&(I(!1),C.currentTarget.releasePointerCapture(C.pointerId))},Z=async C=>{var O;const V=Array.from(C.target.files||[]);if(V.length===0)return;let G=z,$=E;const ee=[];oe(!0);for(const se of V){const J="."+(((O=se.name.split(".").pop())==null?void 0:O.toLowerCase())||""),ue=J===".mp4"||J===".webm",ge=[".png",".jpg",".jpeg",".gif"].includes(J);if(ue){if(G>=1){window.alert("Architectural Limit Reached: Maximum 1 video clip allowed per step.");continue}if(se.size>41943040){window.alert(`Security Block: Video ${se.name} exceeds 40MB physical limit.`);continue}G++}else if(ge){if($>=1){window.alert("Architectural Limit Reached: Maximum 1 image allowed per step.");continue}if(se.size>5242880){window.alert(`Security Block: Image ${se.name} exceeds 5MB physical limit.`);continue}$++}else{window.alert(`Security Block: Unsupported file format ${J}.`);continue}try{const Pe=await fetch("/api/upload",{method:"POST",headers:{"X-File-Extension":J},body:se});if(!Pe.ok)throw new Error("Network response was not ok");const Vt=await Pe.json();Vt.url&&ee.push(Vt.url)}catch{window.alert(`Network Error: Failed to vault ${se.name}.`)}}if(ee.length>0){const se=[...T,...ee].join(",");y==null||y(se)}oe(!1),H.current&&(H.current.value="")},ve=async C=>{if(ie)return;const V=T[C];if(V){M(!0);try{const G=await fetch(`/api/media?filepath=${encodeURIComponent(V)}`,{method:"DELETE"});if(!G.ok&&G.status!==404)throw new Error(`Server returned ${G.status}`);const $=[...T];$.splice(C,1),y==null||y($.join(","))}catch(G){console.error("[Flowstride Security Alert]: Physical deletion failed.",G),window.alert("Security Block: Failed to physically remove media from local hard drive. Please try again.")}finally{M(!1)}}},le={Low:"#2da44e",Medium:"#bf8700",High:"#cf222e",Critical:"#8250df"},de=c||"Low",A=le[de]||le.Low;return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
|
|
575
|
+
.rich-text-editor:empty::before {
|
|
576
|
+
content: attr(data-placeholder);
|
|
577
|
+
color: #8c959f;
|
|
578
|
+
pointer-events: none;
|
|
579
|
+
}
|
|
580
|
+
.rich-text-editor a {
|
|
581
|
+
color: #0969da;
|
|
582
|
+
text-decoration: underline;
|
|
583
|
+
}
|
|
584
|
+
.rich-text-editor ul, .rich-text-editor ol {
|
|
585
|
+
padding-left: 24px;
|
|
586
|
+
margin: 4px 0;
|
|
587
|
+
}
|
|
588
|
+
.rich-text-editor p {
|
|
589
|
+
margin: 0 0 4px 0;
|
|
590
|
+
}
|
|
591
|
+
.rich-text-editor div {
|
|
592
|
+
margin: 0;
|
|
593
|
+
}
|
|
594
|
+
.rich-text-editor font[size="1"] { font-size: 10px; }
|
|
595
|
+
.rich-text-editor font[size="3"] { font-size: 13px; }
|
|
596
|
+
.rich-text-editor font[size="4"] { font-size: 18px; }
|
|
597
|
+
.rich-text-editor font[size="5"] { font-size: 24px; }
|
|
598
|
+
|
|
599
|
+
.rich-text-editor li:has(font[size="1"]) { font-size: 10px; }
|
|
600
|
+
.rich-text-editor li:has(font[size="3"]) { font-size: 13px; }
|
|
601
|
+
.rich-text-editor li:has(font[size="4"]) { font-size: 18px; }
|
|
602
|
+
.rich-text-editor li:has(font[size="5"]) { font-size: 24px; }
|
|
603
|
+
|
|
604
|
+
.flowstride-spin {
|
|
605
|
+
animation: flowstride-spin-anim 1s linear infinite;
|
|
606
|
+
}
|
|
607
|
+
@keyframes flowstride-spin-anim {
|
|
608
|
+
100% { transform: rotate(360deg); }
|
|
609
|
+
}
|
|
610
|
+
`}),xe&&l.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.85)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center",backdropFilter:"blur(4px)"},onClick:()=>q(null),children:l.jsxs("div",{style:{position:"relative",maxWidth:"90%",maxHeight:"90%",display:"flex",alignItems:"center",justifyContent:"center"},onClick:C=>C.stopPropagation(),children:[l.jsx("button",{onClick:()=>q(null),title:"Close Preview",style:{position:"absolute",top:"-40px",right:"0",background:"rgba(255, 255, 255, 0.1)",border:"1px solid rgba(255, 255, 255, 0.2)",color:"#ffffff",borderRadius:"50%",padding:"6px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"background 0.2s ease"},onMouseEnter:C=>C.currentTarget.style.background="rgba(255, 255, 255, 0.2)",onMouseLeave:C=>C.currentTarget.style.background="rgba(255, 255, 255, 0.1)",children:l.jsx(jr,{size:20})}),xe.type==="video"?l.jsx("video",{src:xe.url,controls:!0,autoPlay:!0,style:{maxWidth:"100%",maxHeight:"85vh",borderRadius:"8px",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.5)"}}):l.jsx("img",{src:xe.url,alt:"Preview",style:{maxWidth:"100%",maxHeight:"85vh",borderRadius:"8px",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.5)",objectFit:"contain"}})]})}),l.jsxs("aside",{style:{width:d?`${p}px`:"64px",backgroundColor:"#ffffff",borderLeft:"1px solid #e1e4e8",flexShrink:0,transition:R?"none":"width 0.2s ease",display:"flex",flexDirection:"column",position:"relative"},children:[d&&l.jsx("div",{onPointerDown:P,onPointerMove:N,onPointerUp:X,onPointerCancel:X,style:{position:"absolute",left:"-3px",top:0,bottom:0,width:"6px",cursor:"col-resize",zIndex:50,backgroundColor:R?"#0969da":"transparent",transition:"background-color 0.2s ease"},onMouseEnter:C=>{R||(C.currentTarget.style.backgroundColor="#0969da")},onMouseLeave:C=>{R||(C.currentTarget.style.backgroundColor="transparent")}}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",overflowY:"auto",padding:d?"24px 20px 80px 20px":"16px 8px 16px 8px"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:d?"flex-start":"center",gap:"12px",marginBottom:d?"24px":"16px",flexShrink:0},children:[l.jsx("button",{onClick:()=>f(!d),style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"4px",marginTop:d?"4px":"0",background:"transparent",border:"none",color:"#8c959f",cursor:"pointer",transition:"color 0.2s ease",flexShrink:0},onMouseEnter:C=>C.currentTarget.style.color="#24292f",onMouseLeave:C=>C.currentTarget.style.color="#8c959f",title:d?"Collapse Property Editor":"Expand Property Editor",children:d?l.jsx(Rn,{size:18}):l.jsx(_c,{size:18})}),d&&l.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:1},children:[l.jsx("span",{style:{fontSize:"11px",fontWeight:"bold",color:"#57606a",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"2px"},children:e==="Group"?`Group ${t}`:e==="Text"?`Text Block ${t}`:`Step ${n||t}`}),l.jsx("span",{style:{fontSize:"16px",fontWeight:"600",color:"#24292f",wordBreak:"break-word"},children:e==="Text"?"Edit Text":r})]})]}),d&&l.jsxs(l.Fragment,{children:[e!=="Text"&&l.jsxs("div",{style:{display:"flex",borderBottom:"1px solid #e1e4e8",marginBottom:"24px",flexShrink:0},children:[l.jsx("button",{onClick:()=>L("Details"),style:{padding:"8px 0",marginRight:"24px",background:"transparent",border:"none",borderBottom:_==="Details"?"2px solid #0969da":"2px solid transparent",color:_==="Details"?"#0969da":"#57606a",fontWeight:_==="Details"?"600":"500",fontSize:"13px",cursor:"pointer",transition:"all 0.2s ease"},children:"Details"}),l.jsx("button",{onClick:()=>L("Connections"),style:{padding:"8px 0",background:"transparent",border:"none",borderBottom:_==="Connections"?"2px solid #0969da":"2px solid transparent",color:_==="Connections"?"#0969da":"#57606a",fontWeight:_==="Connections"?"600":"500",fontSize:"13px",cursor:"pointer",transition:"all 0.2s ease"},children:"Connections"})]}),_==="Details"||e==="Text"?l.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"20px",flex:1},children:e==="Text"?l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[l.jsx("label",{style:{fontSize:"12px",fontWeight:"600",color:"#24292f"},children:"Text Content"}),l.jsx("textarea",{value:r,onChange:C=>u==null?void 0:u(C.target.value),placeholder:"Type your text here...",style:{width:"100%",padding:"12px",border:"1px solid #0969da",borderRadius:"6px",fontSize:"14px",color:"#24292f",minHeight:"120px",resize:"vertical",outline:"none",boxShadow:"0 0 0 3px rgba(9, 105, 218, 0.3)",boxSizing:"border-box",lineHeight:"1.5"}})]}):l.jsxs(l.Fragment,{children:[l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[l.jsxs("label",{style:{fontSize:"12px",fontWeight:"600",color:"#24292f"},children:[e==="Group"?"Group Name":"Step Name"," ",l.jsx("span",{style:{color:"#cf222e"},children:"*"})]}),l.jsx("input",{type:"text",value:r,onChange:C=>u==null?void 0:u(C.target.value),style:{padding:"8px 12px",border:"1px solid #d0d7de",borderRadius:"6px",fontSize:"13px",color:"#24292f",outline:"none",boxShadow:"inset 0 1px 2px rgba(0,0,0,0.04)"}})]}),e==="Node"&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[l.jsx("label",{style:{fontSize:"12px",fontWeight:"600",color:"#24292f"},children:"Description"}),l.jsxs("div",{style:{position:"relative"},children:[l.jsx("textarea",{value:o,onChange:C=>m==null?void 0:m(C.target.value),placeholder:"Enter description here...",style:{width:"100%",padding:"8px 12px",border:"1px solid #d0d7de",borderRadius:"6px",fontSize:"13px",color:"#24292f",minHeight:"70px",resize:"vertical",outline:"none",boxShadow:"inset 0 1px 2px rgba(0,0,0,0.04)",boxSizing:"border-box"}}),l.jsxs("span",{style:{position:"absolute",bottom:"8px",right:"12px",fontSize:"10px",color:"#8c959f"},children:[o.length,"/500"]})]})]}),l.jsx(Sd,{label:"Steps",value:i,onChange:h,placeholder:"Enter steps to reproduce...",minHeight:"80px"}),l.jsx(Sd,{label:"Expected Result",value:s,onChange:x,placeholder:"e.g., The system securely processes the valid input and proceeds.",minHeight:"80px",maxLength:500}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[l.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[l.jsx("label",{style:{fontSize:"12px",fontWeight:"600",color:"#24292f"},children:"References"}),l.jsxs("span",{style:{fontSize:"10px",color:"#8c959f",fontWeight:"500"},children:["Videos: ",z,"/1 • Images: ",E,"/1"]})]}),l.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:[T.map((C,V)=>{const G=C.endsWith(".mp4")||C.endsWith(".webm");return l.jsxs("div",{onClick:()=>q({url:C,type:G?"video":"image"}),style:{position:"relative",width:"80px",height:"60px",borderRadius:"6px",border:"1px solid #d0d7de",overflow:"hidden",backgroundColor:"#f6f8fa",cursor:"pointer"},children:[G?l.jsx("video",{src:C,style:{width:"100%",height:"100%",objectFit:"cover"},muted:!0,loop:!0,playsInline:!0,onMouseEnter:$=>$.currentTarget.play().catch(()=>{}),onMouseLeave:$=>{$.currentTarget.pause(),$.currentTarget.currentTime=0}}):l.jsx("img",{src:C,alt:`Reference ${V}`,style:{width:"100%",height:"100%",objectFit:"cover"}}),l.jsx("button",{onClick:$=>{$.stopPropagation(),ve(V)},disabled:ie,title:"Remove Reference",style:{position:"absolute",top:"4px",right:"4px",background:"rgba(36, 41, 47, 0.7)",color:"#ffffff",border:"none",borderRadius:"50%",padding:"2px",cursor:ie?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center",opacity:ie?.5:1},children:ie?l.jsx(Pr,{size:12,className:"flowstride-spin"}):l.jsx(jr,{size:12})})]},`${C}-${V}`)}),(z<1||E<1)&&l.jsxs(l.Fragment,{children:[l.jsx("input",{type:"file",ref:H,onChange:Z,multiple:!0,accept:".png,.jpg,.jpeg,.gif,.mp4,.webm",style:{display:"none"}}),l.jsxs("button",{onClick:()=>{var C;return(C=H.current)==null?void 0:C.click()},disabled:B,style:{width:"80px",height:"60px",backgroundColor:B?"#f6f8fa":"#ffffff",border:"1px dashed #0969da",borderRadius:"6px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:B?"not-allowed":"pointer",color:B?"#8c959f":"#0969da",transition:"all 0.2s ease"},children:[B?l.jsx(Pr,{size:16,className:"flowstride-spin",style:{marginBottom:"4px"}}):l.jsx(qp,{size:16,style:{marginBottom:"4px"}}),l.jsx("span",{style:{fontSize:"11px",fontWeight:"500"},children:B?"Vaulting...":"Upload"})]})]})]})]}),l.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"6px",marginBottom:"20px",marginTop:"8px"},children:[l.jsx("label",{style:{fontSize:"12px",fontWeight:"600",color:"#24292f"},children:"Priority"}),l.jsxs("button",{onClick:()=>ne(!re),style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px",border:re?"1px solid #0969da":"1px solid #d0d7de",borderRadius:"6px",backgroundColor:"#ffffff",cursor:"pointer",outline:"none",boxShadow:re?"0 0 0 3px rgba(9, 105, 218, 0.3)":"0 1px 2px rgba(0,0,0,0.04)",transition:"all 0.2s ease"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[l.jsx("div",{style:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:A}}),l.jsx("span",{style:{fontSize:"13px",color:"#24292f",fontWeight:"500"},children:de})]}),l.jsx(Dr,{size:14,color:"#57606a",style:{transform:re?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}})]}),re&&l.jsx("div",{style:{position:"absolute",top:"100%",left:0,right:0,marginTop:"4px",backgroundColor:"#ffffff",border:"1px solid #d0d7de",borderRadius:"6px",boxShadow:"0 8px 24px rgba(140, 149, 159, 0.2)",zIndex:100,display:"flex",flexDirection:"column",padding:"4px"},children:["Low","Medium","High","Critical"].map(C=>l.jsxs("button",{onClick:()=>{w==null||w(C),ne(!1)},style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px",border:"none",backgroundColor:"transparent",cursor:"pointer",borderRadius:"4px",textAlign:"left"},onMouseEnter:V=>V.currentTarget.style.backgroundColor="#f6f8fa",onMouseLeave:V=>V.currentTarget.style.backgroundColor="transparent",children:[l.jsx("div",{style:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:le[C]}}),l.jsx("span",{style:{fontSize:"13px",color:"#24292f"},children:C})]},C))})]})]})]})}):l.jsx("div",{style:{display:"flex",flexDirection:"column"},children:l.jsx("p",{style:{fontSize:"12px",color:"#57606a",fontFamily:"monospace"},children:"CONNECTIONS UI SCAFFOLD"})})]})]})]})]})},s1=({report:e=[],onDefectSubmit:t,isReadOnly:n=!1})=>{const[r,o]=b.useState(null),[i,s]=b.useState(null),[a,c]=b.useState(null),[u,m]=b.useState(null),[h,x]=b.useState({report:"",media:"",assignedTo:""}),y=b.useRef(null),[w,_]=b.useState(!1),[L,d]=b.useState(!1),f=e.length,p=e.filter(z=>z.status==="Passed").length,v=e.filter(z=>z.status==="Failed").length,R=e.filter(z=>z.status==="Blocked").length,I=e.filter(z=>z.status==="Skipped").length,D=f===0?0:p/f*100,k=f===0?0:v/f*100,H=f===0?0:R/f*100,B=f===0?0:I/f*100,oe=100-D-k-H-B;b.useEffect(()=>{const z=e.find(E=>E.status==="Current");z&&z.group_title&&s(z.group_title)},[e]);const ie=[];e.forEach(z=>{const E=z.group_title||"";let P=ie.find(N=>N.groupName===E);P||(P={groupName:E,steps:[]},ie.push(P)),P.steps.push(z)});const M=z=>{switch(z){case"Passed":return{dotBg:"#10b981",dotRing:"#d1fae5",cardBorder:"#a7f3d0",cardBg:"rgba(236, 253, 245, 0.5)",badgeBg:"#d1fae5",badgeText:"#047857",label:"PASSED"};case"Failed":return{dotBg:"#ef4444",dotRing:"#fee2e2",cardBorder:"#fecaca",cardBg:"rgba(254, 242, 242, 0.5)",badgeBg:"#fee2e2",badgeText:"#b91c1c",label:"FAILED"};case"Blocked":return{dotBg:"#f59e0b",dotRing:"#fef3c7",cardBorder:"#fde68a",cardBg:"rgba(255, 251, 235, 0.5)",badgeBg:"#fef3c7",badgeText:"#b45309",label:"BLOCKED"};case"Skipped":return{dotBg:"#a855f7",dotRing:"#f3e8ff",cardBorder:"#e9d5ff",cardBg:"rgba(250, 245, 255, 0.5)",badgeBg:"#f3e8ff",badgeText:"#7e22ce",label:"SKIPPED"};case"Current":return{dotBg:"#3b82f6",dotRing:"#dbeafe",cardBorder:"#bfdbfe",cardBg:"#ffffff",badgeBg:"#dbeafe",badgeText:"#1d4ed8",label:"CURRENT"};default:return{dotBg:"#cbd5e1",dotRing:"#f1f5f9",cardBorder:"#e2e8f0",cardBg:"#ffffff",badgeBg:"#f1f5f9",badgeText:"#475569",label:"PENDING"}}},re=(z,E)=>{const P=e.find(N=>N.id===z);x({report:(P==null?void 0:P.defect_report)||"",media:(P==null?void 0:P.defect_media)||"",assignedTo:(P==null?void 0:P.assigned_to)||""}),c({stepId:z,type:E})},ne=()=>{c(null)},xe=()=>{!a||n||(t==null||t(a.stepId,h.report,h.media,h.assignedTo),ne())},q=async z=>{var ve;if(n)return;const E=Array.from(z.target.files||[]);if(E.length===0)return;const P=h.media.split(",").filter(Boolean);let N=P.filter(le=>le.endsWith(".mp4")||le.endsWith(".webm")).length,X=P.filter(le=>!le.endsWith(".mp4")&&!le.endsWith(".webm")).length;const Z=[];_(!0);for(const le of E){const de="."+(((ve=le.name.split(".").pop())==null?void 0:ve.toLowerCase())||""),A=de===".mp4"||de===".webm",C=[".png",".jpg",".jpeg",".gif"].includes(de);if(A){if(N>=4){window.alert("Architectural Limit Reached: Maximum 4 defect video clips allowed.");continue}if(le.size>104857600){window.alert(`Security Block: Video ${le.name} exceeds 100MB physical limit.`);continue}N++}else if(C){if(X>=6){window.alert("Architectural Limit Reached: Maximum 6 defect images allowed.");continue}if(le.size>5242880){window.alert(`Security Block: Image ${le.name} exceeds 5MB physical limit.`);continue}X++}else{window.alert(`Security Block: Unsupported file format ${de}.`);continue}try{const V=await fetch("/api/upload-defect",{method:"POST",headers:{"X-File-Extension":de},body:le});if(!V.ok)throw new Error("Network response was not ok");const G=await V.json();G.url&&Z.push(G.url)}catch{window.alert(`Network Error: Failed to vault defect evidence ${le.name}.`)}}if(Z.length>0){const le=[...P,...Z].join(",");x({...h,media:le})}_(!1),y.current&&(y.current.value="")},T=async z=>{if(L||n)return;const E=h.media.split(",").filter(Boolean),P=E[z];if(P){d(!0);try{const N=await fetch(`/api/defect-media?filepath=${encodeURIComponent(P)}`,{method:"DELETE"});if(!N.ok&&N.status!==404)throw new Error(`Server returned ${N.status}`);const X=[...E];X.splice(z,1),x({...h,media:X.join(",")})}catch(N){console.error("[Flowstride Security Alert]: Physical deletion of defect media failed.",N),window.alert("Security Block: Failed to physically remove defect media. Please try again.")}finally{d(!1)}}};return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
|
|
611
|
+
.flowstride-spin {
|
|
612
|
+
animation: flowstride-spin-anim 1s linear infinite;
|
|
613
|
+
}
|
|
614
|
+
@keyframes flowstride-spin-anim {
|
|
615
|
+
100% { transform: rotate(360deg); }
|
|
616
|
+
}
|
|
617
|
+
`}),u&&l.jsx("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.9)",zIndex:1e4,display:"flex",alignItems:"center",justifyContent:"center",backdropFilter:"blur(4px)"},onClick:()=>m(null),children:l.jsxs("div",{style:{position:"relative",maxWidth:"90%",maxHeight:"90%",display:"flex",alignItems:"center",justifyContent:"center"},onClick:z=>z.stopPropagation(),children:[l.jsx("button",{onClick:()=>m(null),title:"Close Preview",style:{position:"absolute",top:"-40px",right:"0",background:"rgba(255, 255, 255, 0.1)",border:"1px solid rgba(255, 255, 255, 0.2)",color:"#ffffff",borderRadius:"50%",padding:"6px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"background 0.2s ease"},onMouseEnter:z=>z.currentTarget.style.background="rgba(255, 255, 255, 0.2)",onMouseLeave:z=>z.currentTarget.style.background="rgba(255, 255, 255, 0.1)",children:l.jsx(jr,{size:20})}),u.type==="video"?l.jsx("video",{src:u.url,controls:!0,autoPlay:!0,style:{maxWidth:"100%",maxHeight:"85vh",borderRadius:"8px",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.5)"}}):l.jsx("img",{src:u.url,alt:"Defect Preview",style:{maxWidth:"100%",maxHeight:"85vh",borderRadius:"8px",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.5)",objectFit:"contain"}})]})}),l.jsxs("aside",{style:{width:"340px",backgroundColor:"#ffffff",borderLeft:"1px solid #e2e8f0",display:"flex",flexDirection:"column",flexShrink:0,zIndex:20,boxShadow:"-4px 0 15px -3px rgba(0,0,0,0.02)"},children:[l.jsxs("div",{style:{padding:"20px",borderBottom:"1px solid #e2e8f0",flexShrink:0,display:"flex",flexDirection:"column",gap:"20px"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[l.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"8px",backgroundColor:"#ecfdf5",color:"#059669",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid #d1fae5",flexShrink:0},children:l.jsx(wc,{size:16,strokeWidth:2.5})}),l.jsxs("div",{children:[l.jsx("h2",{style:{fontSize:"15px",fontWeight:"bold",color:"#0f172a",margin:0,lineHeight:"1.2"},children:"Test Execution"}),l.jsx("div",{style:{fontSize:"11px",fontWeight:"bold",color:"#94a3b8",marginTop:"2px",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Live Report"})]})]}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[l.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:[l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#f8fafc",border:"1px solid #e2e8f0",borderRadius:"6px",padding:"8px 0"},children:[l.jsx("span",{style:{fontSize:"14px",fontWeight:"900",color:"#334155"},children:f}),l.jsx("span",{style:{fontSize:"8px",fontWeight:"bold",color:"#94a3b8",textTransform:"uppercase",letterSpacing:"0.05em",marginTop:"2px"},children:"Total"})]}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#ecfdf5",border:"1px solid #a7f3d0",borderRadius:"6px",padding:"8px 0",boxShadow:"0 1px 2px rgba(0,0,0,0.05)"},children:[l.jsx("span",{style:{fontSize:"14px",fontWeight:"900",color:"#047857"},children:p}),l.jsx("span",{style:{fontSize:"8px",fontWeight:"bold",color:"#059669",textTransform:"uppercase",letterSpacing:"0.05em",marginTop:"2px"},children:"Passed"})]}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#fef2f2",border:"1px solid #fecaca",borderRadius:"6px",padding:"8px 0",boxShadow:"0 1px 2px rgba(0,0,0,0.05)"},children:[l.jsx("span",{style:{fontSize:"14px",fontWeight:"900",color:"#b91c1c"},children:v}),l.jsx("span",{style:{fontSize:"8px",fontWeight:"bold",color:"#dc2626",textTransform:"uppercase",letterSpacing:"0.05em",marginTop:"2px"},children:"Failed"})]}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#fffbeb",border:"1px solid #fde68a",borderRadius:"6px",padding:"8px 0",boxShadow:"0 1px 2px rgba(0,0,0,0.05)"},children:[l.jsx("span",{style:{fontSize:"14px",fontWeight:"900",color:"#d97706"},children:R}),l.jsx("span",{style:{fontSize:"8px",fontWeight:"bold",color:"#b45309",textTransform:"uppercase",letterSpacing:"0.05em",marginTop:"2px"},children:"Blocked"})]}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#faf5ff",border:"1px solid #e9d5ff",borderRadius:"6px",padding:"8px 0",boxShadow:"0 1px 2px rgba(0,0,0,0.05)"},children:[l.jsx("span",{style:{fontSize:"14px",fontWeight:"900",color:"#7e22ce"},children:I}),l.jsx("span",{style:{fontSize:"8px",fontWeight:"bold",color:"#9333ea",textTransform:"uppercase",letterSpacing:"0.05em",marginTop:"2px"},children:"Skip"})]})]}),l.jsxs("div",{style:{width:"100%",height:"6px",backgroundColor:"#f1f5f9",borderRadius:"9999px",overflow:"hidden",display:"flex",boxShadow:"inset 0 2px 4px rgba(0,0,0,0.05)"},children:[l.jsx("div",{style:{height:"100%",backgroundColor:"#10b981",width:`${D}%`,transition:"width 0.3s ease"}}),l.jsx("div",{style:{height:"100%",backgroundColor:"#ef4444",width:`${k}%`,transition:"width 0.3s ease"}}),l.jsx("div",{style:{height:"100%",backgroundColor:"#f59e0b",width:`${H}%`,transition:"width 0.3s ease"}}),l.jsx("div",{style:{height:"100%",backgroundColor:"#a855f7",width:`${B}%`,transition:"width 0.3s ease"}}),l.jsx("div",{style:{height:"100%",backgroundColor:"#cbd5e1",width:`${oe}%`,transition:"width 0.3s ease"}})]})]})]}),l.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px",backgroundColor:"#fafafa"},children:e.length===0?l.jsx("div",{style:{textAlign:"center",color:"#94a3b8",fontSize:"13px",marginTop:"20px"},children:"Waiting for execution layout..."}):l.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:ie.map((z,E)=>{const P=z.groupName==="",N=P||i===z.groupName;return l.jsxs("div",{style:{marginBottom:P?"0":"8px"},children:[!P&&l.jsxs("button",{onClick:()=>s(N?null:z.groupName),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:N?"#f8fafc":"#ffffff",border:"1px solid #e2e8f0",borderRadius:"8px",cursor:"pointer",transition:"all 0.2s ease",outline:"none",boxShadow:N?"none":"0 1px 2px rgba(0,0,0,0.02)"},children:[l.jsx("span",{style:{fontSize:"12px",fontWeight:"bold",color:N?"#0f172a":"#475569",textTransform:"uppercase",letterSpacing:"0.05em"},children:z.groupName}),l.jsx(Dr,{size:16,color:"#94a3b8",style:{transform:N?"rotate(180deg)":"none",transition:"transform 0.2s ease"}})]}),N&&l.jsx("div",{style:{position:"relative",borderLeft:"2px solid #e2e8f0",marginLeft:P?"11px":"27px",paddingBottom:"8px",marginTop:P?"0":"16px",transition:"all 0.3s ease"},children:z.steps.map(X=>{const Z=M(X.status),ve=r===X.id,le=Z.label==="FAILED"||Z.label==="BLOCKED";return l.jsxs("div",{style:{position:"relative",paddingLeft:"24px",marginBottom:"24px"},children:[l.jsx("div",{style:{position:"absolute",left:"-7px",top:"6px",width:"12px",height:"12px",borderRadius:"50%",backgroundColor:Z.dotBg,boxShadow:`0 0 0 4px ${Z.dotRing}`,zIndex:10,transition:"background-color 0.3s ease, box-shadow 0.3s ease"}}),l.jsxs("div",{style:{border:`1px solid ${Z.cardBorder}`,borderRadius:"8px",padding:"14px",backgroundColor:Z.cardBg,transition:"all 0.3s ease"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"8px",marginBottom:"6px"},children:[l.jsxs("div",{style:{fontSize:"10px",fontWeight:"bold",color:"#94a3b8",textTransform:"uppercase",letterSpacing:"0.05em"},children:["Step ",X.id]}),l.jsx("span",{style:{padding:"2px 8px",borderRadius:"4px",fontSize:"9px",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"0.05em",backgroundColor:Z.badgeBg,color:Z.badgeText,transition:"all 0.3s ease"},children:Z.label})]}),l.jsx("h3",{style:{fontSize:"13px",fontWeight:"bold",color:"#0f172a",lineHeight:"1.4",margin:"0 0 4px 0"},children:X.title}),l.jsx("p",{style:{fontSize:"11px",color:"#64748b",lineHeight:"1.6",margin:0},children:X.description}),le&&l.jsxs("div",{style:{marginTop:"12px"},children:[l.jsxs("button",{onClick:()=>o(ve?null:X.id),style:{width:"100%",padding:"6px 12px",backgroundColor:"#ffffff",border:`1px solid ${Z.label==="FAILED"?"#fecaca":"#fde68a"}`,color:Z.label==="FAILED"?"#dc2626":"#d97706",borderRadius:"4px",fontSize:"11px",fontWeight:"bold",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",outline:"none"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[l.jsx(uy,{size:14,strokeWidth:2.5}),Z.label==="FAILED"?"Failure Details":"Blocked Details"]}),l.jsx(Dr,{size:14,strokeWidth:2.5,style:{transform:ve?"rotate(180deg)":"none",transition:"transform 0.2s"}})]}),ve&&l.jsxs("div",{style:{marginTop:"8px",paddingTop:"8px",borderTop:`1px solid ${Z.label==="FAILED"?"rgba(254, 202, 202, 0.6)":"rgba(253, 230, 138, 0.6)"}`,display:"flex",flexDirection:"column",gap:"6px"},children:[l.jsxs("button",{onClick:()=>re(X.id,Z.label==="FAILED"?"Failed Report":"Blocked Report"),style:{width:"100%",padding:"6px 8px",backgroundColor:"#ffffff",border:"1px solid #fee2e2",color:"#334155",borderRadius:"4px",fontSize:"11px",fontWeight:"600",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",display:"flex",alignItems:"center",cursor:"pointer"},children:[l.jsx(mo,{size:14,color:Z.label==="FAILED"?"#ef4444":"#f59e0b",style:{marginRight:"8px"}})," ",Z.label==="FAILED"?"Failed Report":"Blocked Report"]}),l.jsxs("button",{onClick:()=>re(X.id,"Screenshot"),style:{width:"100%",padding:"6px 8px",backgroundColor:"#ffffff",border:"1px solid #fee2e2",color:"#334155",borderRadius:"4px",fontSize:"11px",fontWeight:"600",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",display:"flex",alignItems:"center",cursor:"pointer"},children:[l.jsx(ys,{size:14,color:"#6366f1",style:{marginRight:"8px"}})," ","Screenshot"]}),l.jsxs("button",{onClick:()=>re(X.id,"Video Clip"),style:{width:"100%",padding:"6px 8px",backgroundColor:"#ffffff",border:"1px solid #fee2e2",color:"#334155",borderRadius:"4px",fontSize:"11px",fontWeight:"600",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",display:"flex",alignItems:"center",cursor:"pointer"},children:[l.jsx(ms,{size:14,color:"#10b981",style:{marginRight:"8px"}})," ","Video Clip"]}),l.jsxs("button",{onClick:()=>re(X.id,"Assigned To"),style:{width:"100%",padding:"6px 8px",backgroundColor:"#ffffff",border:"1px solid #fee2e2",color:"#334155",borderRadius:"4px",fontSize:"11px",fontWeight:"600",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",display:"flex",alignItems:"center",cursor:"pointer"},children:[l.jsx(od,{size:14,color:"#f59e0b",style:{marginRight:"8px"}})," ","Assigned To"]})]})]})]})]},X.id)})})]},z.groupName||`ungrouped-${E}`)})})})]}),a&&l.jsxs("div",{style:{position:"fixed",inset:0,zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center"},children:[l.jsx("div",{onClick:ne,style:{position:"absolute",inset:0,backgroundColor:"rgba(15, 23, 42, 0.6)",backdropFilter:"blur(2px)",cursor:"pointer"}}),l.jsxs("div",{style:{position:"relative",width:"600px",backgroundColor:"#ffffff",borderRadius:"12px",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px",borderBottom:"1px solid #f1f5f9"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[l.jsxs("div",{style:{width:"40px",height:"40px",borderRadius:"8px",backgroundColor:"#eef2ff",display:"flex",alignItems:"center",justifyContent:"center"},children:[a.type==="Screenshot"&&l.jsx(ys,{size:20,color:"#6366f1"}),a.type==="Video Clip"&&l.jsx(ms,{size:20,color:"#10b981"}),a.type==="Failed Report"&&l.jsx(mo,{size:20,color:"#ef4444"}),a.type==="Blocked Report"&&l.jsx(mo,{size:20,color:"#f59e0b"}),a.type==="Assigned To"&&l.jsx(od,{size:20,color:"#f59e0b"})]}),l.jsxs("div",{children:[l.jsx("h3",{style:{fontSize:"18px",fontWeight:"bold",color:"#0f172a",margin:"0 0 4px 0"},children:a.type}),l.jsxs("div",{style:{fontSize:"11px",fontWeight:"bold",color:"#64748b",textTransform:"uppercase",letterSpacing:"0.05em"},children:["Step ",a.stepId,": DEFECT DATA"]})]})]}),l.jsx("button",{onClick:ne,style:{background:"transparent",border:"none",color:"#94a3b8",cursor:"pointer",padding:"4px"},children:l.jsx(jr,{size:20})})]}),l.jsxs("div",{style:{padding:"40px 24px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#f8fafc"},children:[(a.type==="Failed Report"||a.type==="Blocked Report")&&l.jsx("textarea",{autoFocus:!0,readOnly:n,value:h.report,onChange:z=>!n&&x({...h,report:z.target.value}),placeholder:`Enter detailed ${a.type.toLowerCase()}...`,style:{width:"100%",maxWidth:"500px",minHeight:"150px",padding:"12px",border:"1px solid #cbd5e1",borderRadius:"8px",fontSize:"14px",color:"#334155",marginBottom:"24px",resize:"vertical",outline:"none",boxShadow:"inset 0 1px 2px rgba(0,0,0,0.05)",backgroundColor:n?"#f1f5f9":"#ffffff",cursor:n?"not-allowed":"text"}}),a.type==="Assigned To"&&l.jsxs("div",{style:{width:"100%",maxWidth:"300px",marginBottom:"24px"},children:[l.jsx("label",{style:{fontSize:"12px",fontWeight:"bold",color:"#64748b",marginBottom:"8px",display:"block"},children:"Assign to team member:"}),l.jsx("input",{autoFocus:!0,readOnly:n,type:"text",value:h.assignedTo,onChange:z=>!n&&x({...h,assignedTo:z.target.value}),placeholder:"e.g., Jane Doe",style:{width:"100%",padding:"10px 12px",border:"1px solid #cbd5e1",borderRadius:"8px",fontSize:"14px",color:"#334155",outline:"none",boxShadow:"inset 0 1px 2px rgba(0,0,0,0.05)",boxSizing:"border-box",backgroundColor:n?"#f1f5f9":"#ffffff",cursor:n?"not-allowed":"text"}})]}),(a.type==="Screenshot"||a.type==="Video Clip")&&l.jsxs("div",{style:{width:"100%",marginBottom:"24px"},children:[l.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px",justifyContent:"center"},children:h.media.split(",").filter(Boolean).map((z,E)=>{const P=z.endsWith(".mp4")||z.endsWith(".webm");return l.jsxs("div",{onClick:()=>m({url:z,type:P?"video":"image"}),style:{position:"relative",width:"140px",height:"100px",borderRadius:"6px",border:"1px solid #d0d7de",overflow:"hidden",backgroundColor:"#f6f8fa",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1)",cursor:"pointer"},children:[P?l.jsx("video",{src:z,style:{width:"100%",height:"100%",objectFit:"cover"},muted:!0,loop:!0,playsInline:!0,onMouseEnter:N=>N.currentTarget.play().catch(()=>{}),onMouseLeave:N=>{N.currentTarget.pause(),N.currentTarget.currentTime=0}}):l.jsx("img",{src:z,alt:`Defect Evidence ${E}`,style:{width:"100%",height:"100%",objectFit:"cover"}}),!n&&l.jsx("button",{onClick:N=>{N.stopPropagation(),T(E)},disabled:L,title:"Remove Evidence",style:{position:"absolute",top:"4px",right:"4px",background:"rgba(15, 23, 42, 0.7)",color:"#ffffff",border:"none",borderRadius:"50%",padding:"4px",cursor:L?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center",opacity:L?.5:1,transition:"background 0.2s ease"},children:L?l.jsx(Pr,{size:14,className:"flowstride-spin"}):l.jsx(jr,{size:14})})]},`${z}-${E}`)})}),h.media.split(",").filter(Boolean).length===0&&l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[l.jsx("div",{style:{width:"64px",height:"64px",borderRadius:"50%",backgroundColor:"#ffffff",border:"1px solid #e2e8f0",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"16px"},children:a.type==="Screenshot"?l.jsx(ys,{size:28,color:"#cbd5e1"}):l.jsx(ms,{size:28,color:"#cbd5e1"})}),l.jsx("p",{style:{fontSize:"14px",color:"#475569",textAlign:"center",maxWidth:"300px",lineHeight:"1.5",margin:0},children:n?"No evidence vaulted for this historical run.":"No evidence vaulted yet. Upload a file below."})]})]}),!n&&l.jsxs("div",{style:{display:"flex",gap:"12px"},children:[a.type==="Screenshot"||a.type==="Video Clip"?l.jsxs(l.Fragment,{children:[l.jsx("input",{type:"file",ref:y,onChange:q,multiple:!0,accept:".png,.jpg,.jpeg,.gif,.mp4,.webm",style:{display:"none"}}),l.jsxs("button",{onClick:()=>{var z;return(z=y.current)==null?void 0:z.click()},disabled:w,style:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 20px",backgroundColor:"#ffffff",color:"#334155",border:"1px solid #cbd5e1",borderRadius:"8px",fontSize:"14px",fontWeight:"600",cursor:w?"not-allowed":"pointer",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",opacity:w?.7:1},children:[w?l.jsx(Pr,{size:16,className:"flowstride-spin"}):l.jsx(fy,{size:16}),w?"Vaulting...":"Upload Evidence"]})]}):null,l.jsxs("button",{onClick:xe,style:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 20px",backgroundColor:"#4f46e5",color:"#ffffff",border:"none",borderRadius:"8px",fontSize:"14px",fontWeight:"600",cursor:"pointer",boxShadow:"0 4px 6px -1px rgba(79, 70, 229, 0.2)"},children:[l.jsx(ry,{size:16})," Save Data"]})]})]})]})]})]})},a1=()=>{const[e,t]=b.useState(he.Design),[n,r]=b.useState("Hand"),[o,i]=b.useState(null),[s,a]=b.useState([]),[c,u]=b.useState(1),[m,h]=b.useState(0),[x,y]=b.useState([]),[w,_]=b.useState(void 0),[L,d]=b.useState({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()}),{activeHistoricalRunId:f,setActiveHistoricalRunId:p}=Ye(),v=b.useRef(null),[R,I]=b.useState(null),D=b.useCallback((E,P,N,X)=>{I({stepNumber:E,defectReport:P,defectMedia:N,assignedTo:X})},[]),k=async()=>{try{const E=await fetch("/api/templates");if(E.ok){const P=await E.json();y(P.templates||[])}}catch(E){console.error("[Flowstride Telemetry Error]: Failed to fetch local templates",E),at.error("Failed to connect to local file vault.")}};b.useEffect(()=>{let E=!0;return(async()=>{if(await k(),!E||f)return;let N=null;try{const X=await fetch("/api/state");X.ok&&(N=(await X.json()).activeFlowId)}catch(X){console.warn("[Flowstride Telemetry]: Failed to read physical state vault.",X)}if(E){if(N&&v.current)try{const X=await fetch(`/api/template?filename=${encodeURIComponent(N)}`);if(X.ok){const Z=await X.json();if(!E)return;v.current.importDesignState(Z),Z.metadata&&d(Z.metadata),_(N);return}}catch{console.warn("[Flowstride Telemetry]: Persisted flow missing, reverting to default.")}if(E&&v.current){v.current.importDesignState({nodes:[],groups:[],texts:[],connections:[]}),d({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()});const X=`unsaved-temp-${Date.now()}`;y(Z=>[...Z.filter(ve=>!ve.id.startsWith("unsaved-temp")),{id:X,name:"New Local Flow"}]),_(X)}}})(),()=>{E=!1}},[]),b.useEffect(()=>{if(w===void 0)return;(async()=>{const P=w&&!w.startsWith("unsaved-temp")?w:null;try{await fetch("/api/state",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({activeFlowId:P})})}catch(N){console.warn("[Flowstride Telemetry]: Failed to sync physical state vault.",N)}})()},[w]),b.useEffect(()=>{if(!f)return;(async()=>{try{const P=await fetch(`/api/run?filename=${encodeURIComponent(f)}`);if(!P.ok)throw new Error("Failed to fetch historical run payload");const N=await P.json();v.current&&(v.current.importDesignState(N),N.executionReport?a(N.executionReport):a([]),N.metadata&&d(N.metadata),_(void 0),i(null),t(he.Execution),at.success("Historical record loaded successfully."))}catch(P){console.error("[Flowstride Telemetry Error]: Historical load failed",P),at.error("Failed to load the historical run.")}})()},[f]);const H=()=>{u(E=>Math.min(E+.1,3))},B=()=>{u(E=>Math.max(E-.1,.25))},oe=()=>{u(1),h(E=>E+1)},ie=(E,P,N,X="Node",Z,ve,le,de,A)=>{i(E===null?null:{type:X,id:E,title:P,description:N,visualStep:Z,stepsContent:ve,expectedResult:le,references:de,priority:A})},M=async E=>{if(f&&p(null),y(P=>P.filter(N=>!N.id.startsWith("unsaved-temp")||N.id===E)),E.startsWith("unsaved-temp")){v.current&&(v.current.importDesignState({nodes:[],groups:[],texts:[],connections:[]}),_(E),i(null));return}try{const P=await fetch(`/api/template?filename=${encodeURIComponent(E)}`);if(!P.ok)throw new Error("Failed to fetch template payload");const N=await P.json();v.current&&(v.current.importDesignState(N),N.metadata?d(N.metadata):d({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()}),_(E),i(null),at.success(`Loaded ${E.replace(".json","")}`))}catch(P){console.error("[Flowstride Telemetry Error]: Blueprint load failed",P),at.error("Failed to load the selected flow.")}},re=()=>{if(f&&p(null),v.current){v.current.importDesignState({nodes:[],groups:[],texts:[],connections:[]}),d({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()});const E=`unsaved-temp-${Date.now()}`;y(P=>[...P.filter(N=>!N.id.startsWith("unsaved-temp")),{id:E,name:"New Local Flow"}]),_(E),i(null)}},ne=async E=>{try{if(E.startsWith("unsaved-temp")){y(N=>N.filter(X=>X.id!==E)),w===E&&(_(void 0),v.current&&(v.current.importDesignState({nodes:[],groups:[],texts:[],connections:[]}),d({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()}))),at.success("Temporary flow removed");return}const P=await fetch(`/api/template?filename=${encodeURIComponent(E)}`,{method:"DELETE"});if(!P.ok)throw new Error(`Local backend rejected deletion with status: ${P.status}`);at.success(`Deleted ${E.replace(".json","")}`),await k(),w===E&&(_(void 0),i(null),v.current&&(v.current.importDesignState({nodes:[],groups:[],texts:[],connections:[]}),d({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()})))}catch(P){console.error("[Flowstride Telemetry Error]: Failed to delete flow",P),at.error("Failed to delete flow securely.")}},xe=(E,P)=>{y(N=>N.map(X=>X.id===E?{...X,name:P}:X))},q=async E=>{if(!v.current){console.warn("[Flowstride Telemetry]: Canvas bridge is not yet established."),at.error("System not fully initialized.");return}try{const P=v.current.exportDesignState(),N=Date.now(),X="Local User";let Z="New Local Flow",ve=null;if(E)Z=E,w&&!w.startsWith("unsaved-temp")&&w!==`${E}.json`&&(ve=w);else if(w)if(w.startsWith("unsaved-temp")){const de=x.find(A=>A.id===w);de&&(Z=de.name)}else Z=w.replace(".json","");let le;if(e===he.Execution){const de={...L,flowName:Z,testedBy:X,lastUpdatedAt:N};le={...P,metadata:de,executionReport:s}}else{const de={...L,flowName:Z,lastUpdatedBy:X,lastUpdatedAt:N};d(de),le={...P,metadata:de}}if(e===he.Execution){const de=`Run_${Z}_${Date.now()}.json`,A=await fetch("/api/save-run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({canvasData:le,filename:de})});if(!A.ok)throw new Error(`Local server rejected the run payload with status: ${A.status}`);console.log(`[Flowstride Telemetry]: Execution Run securely vaulted as ${de}`),at.success("Run successfully submitted and vaulted locally.")}else{const de=`${Z}.json`,A=await fetch("/api/save-design",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({canvasData:le,filename:de})});if(!A.ok)throw new Error(`Local server rejected the template payload with status: ${A.status}`);const C=await A.json();if(ve)try{await fetch(`/api/template?filename=${encodeURIComponent(ve)}`,{method:"DELETE"}),console.log(`[Flowstride Telemetry]: Old physical file ${ve} securely wiped after rename.`)}catch(V){console.error("[Flowstride Telemetry Error]: Failed to wipe old file during rename",V)}console.log(`[Flowstride Telemetry]: Design securely vaulted locally as ${de}`),w&&w.startsWith("unsaved-temp")&&y(V=>V.filter(G=>G.id!==w)),await k(),C.filename&&_(C.filename),at.success(`Successfully vaulted ${Z} locally`)}}catch(P){throw console.error("[Flowstride Telemetry Error]: Failed to vault data locally:",P.message),at.error("Failed to vault data securely."),P}},T=async E=>{if(E===he.Execution&&e===he.Design)try{await q()}catch{console.warn("[Flowstride Telemetry Error]: Aborting mode switch due to auto save failure.");return}t(E)},z=b.useCallback(E=>{f||a(E)},[f]);return l.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",backgroundColor:"#ffffff",color:"#24292f",height:"100%",overflow:"hidden",position:"relative"},children:[l.jsx(Sm,{position:"top-right",toastOptions:{duration:3e3,style:{fontSize:"14px",fontWeight:"500",color:"#57606a",boxShadow:"0 4px 12px rgba(0,0,0,0.08)",padding:"12px 16px"},success:{style:{background:"#ebfdf0",border:"1px solid #bceabf"},iconTheme:{primary:"#34c759",secondary:"#ffffff"}},error:{style:{background:"#ffebe9",border:"1px solid #ff8182"},iconTheme:{primary:"#cf222e",secondary:"#ffffff"}}}}),l.jsx(n1,{activeMode:e,onModeChange:T,onSave:q,flows:x,activeFlowId:w,onSelectFlow:M,onCreateFlow:re,onDeleteFlow:ne,onRenameFlow:xe,zoomLevel:c,onZoomIn:H,onZoomOut:B,onZoomReset:oe,metadata:L,onMetadataChange:d}),l.jsxs("div",{style:{flex:1,display:"flex",overflow:"hidden"},children:[e===he.Design&&l.jsx(i1,{activeTool:n,onToolSelect:r}),l.jsx(gg,{ref:v,activeMode:e,activeTool:n,onNodeSelected:(E,P,N,X,Z,ve,le,de)=>ie(E,P,N,"Node",X,Z,ve,le,de),nodeUpdateTrigger:(o==null?void 0:o.type)==="Node"?{stepNumber:o.id,title:o.title,description:o.description,stepsContent:o.stepsContent||"",expectedResult:o.expectedResult||"",references:o.references||"",priority:o.priority||""}:null,defectUpdateTrigger:R,onGroupSelected:(E,P)=>ie(E,P,"","Group"),groupUpdateTrigger:(o==null?void 0:o.type)==="Group"?{groupId:o.id,title:o.title}:null,onTextSelected:(E,P)=>ie(E,P,"","Text"),textUpdateTrigger:(o==null?void 0:o.type)==="Text"?{textId:o.id,content:o.title}:null,onExecutionReportChange:z,zoomLevel:c,recenterTrigger:m,onToolChange:r},f?`historical-run-${f}`:"persistent-design-canvas"),e===he.Design?o?l.jsx(l1,{entityType:o.type,entityId:o.id,visualStep:o.visualStep,title:o.title,description:o.description,stepsContent:o.stepsContent,expectedResult:o.expectedResult,referencesContent:o.references,priority:o.priority,onTitleChange:E=>i({...o,title:E}),onDescriptionChange:E=>i({...o,description:E}),onStepsContentChange:E=>i({...o,stepsContent:E}),onExpectedResultChange:E=>i({...o,expectedResult:E}),onReferencesChange:E=>i({...o,references:E}),onPriorityChange:E=>i({...o,priority:E})}):l.jsx("aside",{style:{width:"320px",backgroundColor:"#ffffff",borderLeft:"1px solid #e1e4e8",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:l.jsx("span",{style:{fontSize:"13px",color:"#8c959f",fontWeight:"500"},children:"Select an entity on the canvas to view properties"})}):l.jsx(s1,{report:s,onDefectSubmit:D,isReadOnly:!!f})]})]})},c1=()=>{const[e,t]=b.useState([]),[n,r]=b.useState(!0),[o,i]=b.useState(""),{setActiveView:s,setActiveHistoricalRunId:a}=Ye();b.useEffect(()=>{(async()=>{try{const x=await fetch("/api/runs");if(x.ok){const w=((await x.json()).runs||[]).sort((_,L)=>L.id.localeCompare(_.id));t(w)}else at.error("Failed to fetch runs from local vault.")}catch(x){console.error("[Flowstride Telemetry Error]:",x),at.error("Failed to connect to local backend.")}finally{r(!1)}})()},[]);const c=e.filter(h=>h.name.toLowerCase().includes(o.toLowerCase())||h.id.includes(o)),u=h=>h==="PASS"?"#3fb950":h==="FAIL"?"#f85149":"#d2a8ff",m=h=>h==="PASS"?"rgba(46, 160, 67, 0.15)":h==="FAIL"?"rgba(248, 81, 73, 0.15)":"rgba(210, 168, 255, 0.15)";return l.jsxs("div",{style:{flex:1,backgroundColor:"#0b0e14",color:"#c9d1d9",padding:"32px",overflowY:"auto"},children:[l.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"24px"},children:[l.jsx("h2",{style:{color:"#ffffff",margin:0,fontSize:"24px",fontWeight:"600"},children:"Test Execution Runs"}),l.jsx("div",{style:{display:"flex",gap:"12px"},children:l.jsx("input",{type:"text",placeholder:"Search runs by name or date...",value:o,onChange:h=>i(h.target.value),style:{backgroundColor:"#0d1117",border:"1px solid #30363d",borderRadius:"6px",padding:"8px 12px",color:"#c9d1d9",fontSize:"13px",width:"280px",outline:"none",transition:"border-color 0.2s"},onFocus:h=>h.target.style.borderColor="#58a6ff",onBlur:h=>h.target.style.borderColor="#30363d"})})]}),n?l.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"40px"},children:l.jsx("p",{style:{color:"#8b949e",fontSize:"14px"},children:"Securely accessing local vault..."})}):e.length===0?l.jsx("div",{style:{padding:"40px",textAlign:"center",border:"1px dashed #30363d",borderRadius:"8px"},children:l.jsx("p",{style:{color:"#8b949e"},children:"No execution runs found in the vault."})}):l.jsxs("div",{style:{border:"1px solid #30363d",borderRadius:"8px",overflow:"hidden",backgroundColor:"#0d1117"},children:[l.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",textAlign:"left",fontSize:"13px"},children:[l.jsx("thead",{style:{backgroundColor:"#161b22",borderBottom:"1px solid #30363d"},children:l.jsxs("tr",{children:[l.jsx("th",{style:{padding:"12px 16px",color:"#8b949e",fontWeight:"600",width:"15%"},children:"DATE"}),l.jsx("th",{style:{padding:"12px 16px",color:"#8b949e",fontWeight:"600",width:"15%"},children:"TIME"}),l.jsx("th",{style:{padding:"12px 16px",color:"#8b949e",fontWeight:"600",width:"40%"},children:"RUN NAME"}),l.jsx("th",{style:{padding:"12px 16px",color:"#8b949e",fontWeight:"600",width:"10%"},children:"STATUS"}),l.jsx("th",{style:{padding:"12px 16px",color:"#8b949e",fontWeight:"600",width:"20%"},children:"METRICS"})]})}),l.jsx("tbody",{children:c.map(h=>{var p,v,R,I;const x=h.id.split("/"),y=x.length>=3?x[0]:"N/A",w=x.length>=3?x[1].replace(/-/g,":"):"N/A",_=((p=h.metrics)==null?void 0:p.status)||"UNKNOWN",L=((v=h.metrics)==null?void 0:v.passed)||0,d=((R=h.metrics)==null?void 0:R.failed)||0,f=((I=h.metrics)==null?void 0:I.total)||0;return l.jsxs("tr",{style:{borderBottom:"1px solid #21262d",transition:"background-color 0.2s",cursor:"pointer"},onMouseEnter:D=>D.currentTarget.style.backgroundColor="#1c2128",onMouseLeave:D=>D.currentTarget.style.backgroundColor="transparent",onClick:()=>{a(h.id),s("Workspace")},children:[l.jsx("td",{style:{padding:"12px 16px",color:"#c9d1d9"},children:y}),l.jsx("td",{style:{padding:"12px 16px",color:"#8b949e"},children:w}),l.jsx("td",{style:{padding:"12px 16px",color:"#58a6ff",fontWeight:"500"},children:h.name}),l.jsx("td",{style:{padding:"12px 16px"},children:l.jsx("span",{style:{color:u(_),backgroundColor:m(_),padding:"4px 8px",borderRadius:"12px",fontSize:"11px",fontWeight:"600",display:"inline-block"},children:_})}),l.jsx("td",{style:{padding:"12px 16px",color:"#8b949e",fontSize:"12px"},children:f===0?"No steps recorded":l.jsxs(l.Fragment,{children:[l.jsxs("span",{style:{color:L>0?"#3fb950":"#8b949e",fontWeight:L>0?"500":"normal"},children:[L," Passed"]}),l.jsx("span",{style:{margin:"0 4px"},children:"•"}),l.jsxs("span",{style:{color:d>0?"#f85149":"#8b949e",fontWeight:d>0?"500":"normal"},children:[d," Failed"]})]})})]},h.id)})})]}),c.length===0&&l.jsx("div",{style:{padding:"32px",textAlign:"center",color:"#8b949e"},children:"No runs match your search query."})]})]})},u1=()=>{const{testScenarios:e,activeTestFile:t,activeStepId:n,setActiveStepId:r,isRunning:o}=Ye(),i=Array.from(new Set(e.map(d=>d.fileName))).filter(Boolean),[s,a]=b.useState(null),[c,u]=b.useState({}),m=b.useRef(null);b.useEffect(()=>{if(n){const d=setTimeout(()=>{const f=document.querySelector('[data-active-step="true"]');f&&f.scrollIntoView({behavior:"smooth",block:"nearest"})},60);return()=>clearTimeout(d)}},[n,t]),b.useEffect(()=>{t&&a(t)},[t]);const h=i.length;let x=0,y=0;i.forEach(d=>{const f=e.filter(v=>v.fileName===d),p=f.flatMap(v=>v.steps);p.length>0&&(f.some(v=>v.status==="failed")||p.some(v=>v.status==="failed")?y++:p.every(v=>["pass","passed","success"].includes(v.status))&&x++)});const w=d=>{a(s===d?null:d)},_=(d,f)=>{f.stopPropagation(),u(p=>({...p,[d]:!p[d]}))},L=(d,f=14)=>{switch(d){case"pass":case"passed":case"success":return l.jsx(wc,{size:f,color:"#34d399"});case"failed":return l.jsx(Gp,{size:f,color:"#f87171"});case"running":return l.jsx(Pr,{size:f,color:"#60a5fa",className:"animate-spin"});case"skipped":return l.jsx(nd,{size:f,color:"#6e7681"});default:return l.jsx(nd,{size:f,color:"#8b949e"})}};return l.jsxs("div",{style:{height:"100vh",display:"flex",flexDirection:"column",backgroundColor:"#0d1117",borderRight:"1px solid #30363d"},children:[l.jsxs("div",{style:{padding:"15px",borderBottom:"1px solid #30363d",flexShrink:0},children:[l.jsx("h2",{style:{fontSize:"12px",fontWeight:"bold",color:"#8b949e",margin:"0 0 12px 0"},children:"TEST FLOWS"}),l.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:"8px",marginBottom:"12px"},children:[l.jsxs("div",{style:{backgroundColor:"#161b22",padding:"10px",borderRadius:"6px",border:"1px solid #30363d",textAlign:"center"},children:[l.jsx("div",{style:{fontSize:"18px",fontWeight:"bold",color:"#c9d1d9"},children:h}),l.jsx("div",{style:{fontSize:"10px",color:"#8b949e",marginTop:"2px"},children:"TOTAL"})]}),l.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:[l.jsx("div",{style:{fontSize:"18px",fontWeight:"bold",color:"#34d399"},children:x}),l.jsx("div",{style:{fontSize:"10px",color:"#34d399",marginTop:"2px"},children:"PASSED"})]}),l.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:[l.jsx("div",{style:{fontSize:"18px",fontWeight:"bold",color:"#f87171"},children:y}),l.jsx("div",{style:{fontSize:"10px",color:"#f87171",marginTop:"2px"},children:"FAILED"})]})]}),l.jsxs("div",{style:{position:"relative"},children:[l.jsx(bc,{size:14,style:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)",color:"#8b949e"}}),l.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"}})]})]}),l.jsxs("div",{ref:m,style:{flex:1,overflowY:"auto",padding:"10px 0",scrollbarWidth:"thin"},children:[i.length===0&&l.jsx("div",{style:{padding:"20px",textAlign:"center",color:"#8b949e",fontSize:"11px"},children:"Awaiting execution..."}),i.map(d=>{const f=s===d,p=e.filter(k=>k.fileName===d),v=p.flatMap(k=>k.steps);let R="pending";v.length>0?p.some(k=>k.status==="failed")||v.some(k=>k.status==="failed")?R="failed":v.some(k=>k.status==="running")?R="running":v.every(k=>["pass","passed","success"].includes(k.status))&&(R="pass"):p.some(k=>k.status==="running")&&(R="running");const I=[];let D=null;return v.forEach(k=>{const H=`${k.type}-${k.description||"Action"}`;!D||D.id!==H?(D={id:H,type:k.type,desc:k.description,status:k.status,steps:[k]},I.push(D)):D.steps.push(k)}),I.forEach(k=>{k.steps.some(H=>H.status==="failed")?k.status="failed":k.steps.some(H=>H.status==="running")?k.status="running":k.steps.every(H=>["pass","passed","success"].includes(H.status))?k.status="pass":k.status="pending"}),l.jsxs("div",{style:{borderBottom:"1px solid #21262d"},children:[l.jsxs("div",{onClick:()=>w(d),onMouseEnter:k=>k.currentTarget.style.backgroundColor="rgba(124, 58, 237, 0.05)",onMouseLeave:k=>k.currentTarget.style.backgroundColor=f?"rgba(124, 58, 237, 0.05)":"transparent",style:{display:"flex",alignItems:"center",padding:"12px 15px",cursor:"pointer",backgroundColor:f?"rgba(124, 58, 237, 0.05)":"transparent",transition:"background 0.2s"},children:[f?l.jsx(Dr,{size:14,color:"#8b949e",style:{marginRight:"8px",flexShrink:0}}):l.jsx(Rn,{size:14,color:"#8b949e",style:{marginRight:"8px",flexShrink:0}}),l.jsx("div",{style:{flexShrink:0,display:"flex",alignItems:"center"},children:L(R,16)}),l.jsx("span",{style:{marginLeft:"8px",fontSize:"13px",fontWeight:f?"bold":"600",color:f?"white":"#c9d1d9",flex:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:d})]}),f&&l.jsx("div",{style:{backgroundColor:"#05070a",padding:"5px 0"},children:I.length>0?I.map(k=>{const H=c[k.id]!==!1;return l.jsxs("div",{children:[l.jsxs("div",{onClick:B=>_(k.id,B),onMouseEnter:B=>B.currentTarget.style.backgroundColor="#161b22",onMouseLeave:B=>B.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:[H?l.jsx(Dr,{size:12,color:"#6e7681",style:{marginRight:"6px",flexShrink:0}}):l.jsx(Rn,{size:12,color:"#6e7681",style:{marginRight:"6px",flexShrink:0}}),l.jsx("div",{style:{flexShrink:0,display:"flex",alignItems:"center"},children:L(k.status,12)}),l.jsx("span",{style:{color:"#a78bfa",fontWeight:"bold",fontSize:"11px",marginLeft:"6px",flexShrink:0},children:k.type}),k.desc&&l.jsxs("span",{style:{color:"#c9d1d9",fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginLeft:"4px"},children:['- "',k.desc,'"']})]}),H&&l.jsx("div",{style:{paddingBottom:"8px"},children:k.steps.map(B=>{const oe=n===`${d}:::${B.id}`||o&&n===B.id&&t===d;return l.jsxs("div",{onClick:()=>r(`${d}:::${B.id}`),"data-flow-file":d,"data-step-id":B.id,"data-active-step":oe?"true":"false",style:{display:"flex",alignItems:"center",padding:"6px 15px 6px 65px",opacity:B.status==="pending"?.5:1,cursor:"pointer",backgroundColor:oe?"rgba(124, 58, 237, 0.15)":"transparent",borderLeft:oe?"3px solid #a78bfa":"3px solid transparent",transition:"all 0.2s ease"},children:[l.jsx("div",{style:{flexShrink:0,display:"flex",alignItems:"center"},children:L(B.status,10)}),l.jsxs("span",{style:{color:oe?"#fff":"#8b949e",fontWeight:oe?"bold":"normal",fontFamily:"monospace",fontSize:"11px",flex:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"normal",marginLeft:"8px"},children:[B.commandLabel||B.command,l.jsx(Cl,{result:B.assertion}),B.error&&!B.assertion&&l.jsx("div",{style:{whiteSpace:"pre-wrap",color:"#f87171"},children:B.error})]})]},B.id)})})]},k.id)}):l.jsx("div",{style:{padding:"20px",textAlign:"center",color:"#8b949e",fontSize:"11px"},children:"Awaiting execution..."})})]},d)})]})]})},d1=({isRightPanelOpen:e,onToggleRightPanel:t})=>{const{isRunning:n,runStatus:r,timer:o,startExecution:i,stopExecution:s,incrementTimer:a,activeTestFile:c,browserInfo:u}=Ye();b.useEffect(()=>{let y;return n?y=setInterval(()=>{a()},1e3):clearInterval(y),()=>clearInterval(y)},[n,a]);const m=()=>{i(),sl("RERUN_REQ",{filePath:c})},h=()=>{s(),sl("STOP_REQ",{})},x=y=>{const w=Math.floor(y/60).toString().padStart(2,"0"),_=(y%60).toString().padStart(2,"0");return`00:${w}:${_}`};return l.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:[l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[l.jsx("span",{style:{fontWeight:"bold",color:"#7c3aed",fontSize:"14px"},children:"Flowstride"}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",color:"#8b949e",fontSize:"12px"},children:[l.jsx("span",{children:"E2E"})," ",l.jsx(Rn,{size:12})," ",l.jsx("span",{style:{color:"white"},children:c})]}),u[c]&&l.jsxs("span",{"data-testid":"test-browser",title:`Verified engine: ${u[c].engine} ${u[c].version}`,style:{color:"#a78bfa",fontSize:"12px"},children:["Test browser: ",{chromium:"Chromium",firefox:"Firefox",webkit:"WebKit"}[u[c].engine]||u[c].engine," · ",u[c].headless?"Headless":"Headed"]}),(n||o>0||r!=="idle")&&l.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:[l.jsx("span",{style:{width:"6px",height:"6px",backgroundColor:n?"#22c55e":"#a78bfa",borderRadius:"50%",boxShadow:n?"0 0 8px #22c55e":"0 0 8px #a78bfa"}}),l.jsx("span",{style:{fontSize:"11px",color:n?"#22c55e":"#a78bfa",fontWeight:"600"},children:n?"Running":r==="failed"?"Failed":r==="interrupted"?"Interrupted":r==="incomplete"?"Incomplete":"Complete"}),l.jsx("span",{style:{fontSize:"11px",color:"white",fontFamily:"monospace"},children:x(o)})]})]}),l.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"center"},children:[l.jsx("button",{"aria-label":"Toggle execution details",onClick:t,style:{background:"none",border:"1px solid #30363d",color:e?"#a78bfa":"#8b949e",padding:"5px 12px",borderRadius:"6px",cursor:"pointer"},children:e?l.jsx(ey,{size:16}):l.jsx(Jx,{size:16})}),l.jsx("div",{style:{width:"1px",height:"20px",backgroundColor:"#30363d",margin:"0 5px"}}),n?l.jsxs("button",{onClick:h,style:{background:"none",border:"1px solid #30363d",color:"#f87171",padding:"5px 12px",borderRadius:"6px",cursor:"pointer",display:"flex",alignItems:"center",gap:"6px"},children:[l.jsx(ly,{size:14,fill:"currentColor"})," Stop"]}):l.jsxs("button",{onClick:m,style:{background:"none",border:"1px solid #30363d",color:"#22c55e",padding:"5px 12px",borderRadius:"6px",cursor:"pointer",display:"flex",alignItems:"center",gap:"6px"},children:[l.jsx(Kp,{size:14,fill:"currentColor"})," Run"]}),l.jsxs("button",{onClick:m,style:{background:"none",border:"1px solid #30363d",color:"#8b949e",padding:"5px 12px",borderRadius:"6px",cursor:"pointer",display:"flex",alignItems:"center",gap:"6px"},children:[l.jsx(Zp,{size:14})," Rerun"]})]})]})};function f1(){const{activeView:e}=Ye(),[t,n]=b.useState(!0),[r,o]=b.useState(!1),i=()=>{switch(e){case"Workspace":return l.jsx(a1,{});case"Runs":return l.jsx(c1,{});case"Flows":return l.jsxs(l.Fragment,{children:[l.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:l.jsx("div",{style:{width:"280px"},children:l.jsx(u1,{})})}),l.jsxs("main",{style:{flex:1,display:"flex",flexDirection:"column",height:"100vh",overflow:"hidden"},children:[l.jsx(d1,{isRightPanelOpen:r,onToggleRightPanel:()=>o(!r)}),l.jsx("div",{style:{flex:1,overflow:"hidden",position:"relative"},children:l.jsx(_y,{isRightPanelOpen:r})})]})]});case"Logs":return l.jsx(Cy,{});case"Reports":return l.jsx(wy,{});case"TestCase":return l.jsx(Ey,{});default:return l.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#0b0e14"},children:l.jsxs("h2",{style:{color:"#8b949e"},children:[e," (Under Construction)"]})})}};return l.jsxs("div",{style:{display:"flex",height:"100vh",width:"100vw",backgroundColor:"#0b0e14",color:"white",overflow:"hidden"},children:[l.jsx(xy,{isTestFlowsOpen:t,setTestFlowsOpen:n}),l.jsx("div",{style:{flex:1,display:"flex",height:"100vh",overflow:"hidden"},children:i()})]})}function p1(){const[e,t]=b.useState("Initialising Native Engine...");return b.useEffect(()=>(eg(),(async()=>{try{await tg();const r=Ty();t(`Secure Connection: ${r} | Core memory ready for Workspace allocation`),console.log("Native Engine Core Loaded Successfully")}catch(r){console.error("Failed to load native engine:",r),t("Security Alert: Failed to load Native Engine Core")}})(),()=>{ky()}),[]),l.jsxs(l.Fragment,{children:[l.jsx("div",{style:{backgroundColor:"#1e1e1e",color:"#00ff00",padding:"8px",textAlign:"center",fontFamily:"monospace"},children:e}),l.jsx(f1,{})]})}function g1(){const e="flowstride-isolated-engine-canvas",t=b.useRef(null),n=b.useRef(null),r=b.useRef(null),o=b.useRef(!1),[i,s]=b.useState(!1),[a,c]=b.useState(he.Design),[u,m]=b.useState("Hand"),[h,x]=b.useState(!1),[y,w]=b.useState(null),_=b.useRef(he.Design),L=b.useRef("Hand"),d=b.useRef(1),f=b.useRef(1),[p,v]=b.useState(null),[R,I]=b.useState(null),D=b.useRef({x:0,y:0}),k=b.useRef({x:0,y:0}),H=b.useRef(!1),B=b.useRef(!1),oe=b.useRef(!1),ie=b.useRef(!1),M=b.useRef(!1),re=b.useRef(!1),ne=b.useRef({dx:0,dy:0,rafId:0}),xe=b.useRef({x:0,y:0}),q=(A,C)=>{window.parent.postMessage({type:A,payload:C},window.location.origin)},T=A=>{if(!(!n.current||!document.getElementById(e))&&!o.current){o.current=!0;try{n.current.clear_canvas(),f.current=1;const C=Array.isArray(A.nodes)?A.nodes:[],V=Array.isArray(A.groups)?A.groups:[],G=Array.isArray(A.texts)?A.texts:[],$=Array.isArray(A.connections)?A.connections:[];C.forEach(O=>{var ue;const se=[O.visual_step||String(O.id),O.title||"",O.description||"",O.steps||"",O.expected_result||"",O.references||"",O.defect_report||"",O.defect_media||"",O.assigned_to||"",O.priority||""].join("|||FLOWSTRIDE|||");(ue=n.current)==null||ue.restore_node_packed(O.id,O.x,O.y,O.width,O.height,se,!1);const J=parseInt(O.visual_step,10);!isNaN(J)&&J>=f.current&&(f.current=J+1)}),V.forEach(O=>{var se;(se=n.current)==null||se.restore_group(O.id,O.x,O.y,O.width,O.height,O.title||"",!1)}),G.forEach(O=>{var se;(se=n.current)==null||se.restore_text(O.id,O.x,O.y,O.width,O.height,O.content||"",!1)}),$.forEach(O=>{var J;const se=[O.start_anchor||"Center",O.end_anchor||"Center"].join("|||FLOWSTRIDE|||");(J=n.current)==null||J.restore_connection_packed(O.id,O.start_x,O.start_y,O.end_x,O.end_y,O.start_node_id||0,O.end_node_id||0,se,!1)}),C.length+V.length+G.length>0?(n.current.recenter_view(),k.current.x=n.current.get_pan_offset_x(),k.current.y=n.current.get_pan_offset_y()):(n.current.set_pan_offset(0,0),k.current.x=0,k.current.y=0),n.current.render_diagnostic_grid(),console.log("[Flowstride Telemetry]: Blueprint securely restored to WebAssembly memory.")}catch(C){console.error("[Flowstride Telemetry Error]: Failed to safely inject parsed state",C)}finally{o.current=!1}}};b.useEffect(()=>(window.flowstrideEngineAPI={exportDesignState:()=>{if(!n.current||!document.getElementById(e))return console.warn("[Flowstride Telemetry]: Wasm engine missing. Cannot export state."),{nodes:[],groups:[],texts:[],connections:[]};try{return JSON.parse(n.current.export_design_state())}catch(A){throw console.error("[Flowstride Telemetry Error]: Failed to parse state from Wasm",A),A}},importDesignState:A=>{if(A=pg(A),!document.getElementById(e)){r.current=A;return}if(n.current)try{n.current.free()}catch{console.warn("[Flowstride Telemetry]: Bypassing poisoned Wasm lock during Hard Reset.")}const C=document.getElementById(e),V=Math.max(1,C.clientWidth),G=Math.max(1,C.clientHeight);n.current=new al(e,V,G),n.current.set_mode(_.current);const $=window.devicePixelRatio||1;n.current.update_dimensions(V,G,$,d.current),T(A)},setMode:A=>{_.current=A,c(A),n.current&&document.getElementById(e)&&(n.current.set_mode(A),n.current.render_diagnostic_grid(),A!==he.Execution&&I(null))},setTool:A=>{L.current=A,m(A)},setZoom:A=>{if(d.current=A,n.current&&document.getElementById(e)){const C=document.getElementById(e),V=Math.max(1,C.clientWidth),G=Math.max(1,C.clientHeight),$=window.devicePixelRatio||1;n.current.update_dimensions(V,G,$,d.current),n.current.render_diagnostic_grid()}},recenterView:()=>{var A,C,V;if(n.current&&document.getElementById(e))try{const G=n.current.export_design_state(),$=JSON.parse(G);(((A=$.nodes)==null?void 0:A.length)||0)+(((C=$.groups)==null?void 0:C.length)||0)+(((V=$.texts)==null?void 0:V.length)||0)>0?(n.current.recenter_view(),k.current.x=n.current.get_pan_offset_x(),k.current.y=n.current.get_pan_offset_y()):(n.current.set_pan_offset(0,0),k.current.x=0,k.current.y=0),n.current.render_diagnostic_grid()}catch(G){console.error("[Flowstride Telemetry Error]: Failed to structurally recenter view safely.",G)}},updateNodeData:(A,C,V,G,$,ee,O)=>{n.current&&document.getElementById(e)&&(n.current.update_node_data(A,C,V,G,$,ee,O),n.current.render_diagnostic_grid())},updateNodeDefectData:(A,C,V,G)=>{if(n.current&&document.getElementById(e)){n.current.update_node_defect_data(A,C,V,G);try{const $=n.current.get_execution_report(),ee=JSON.parse($);q("EXECUTION_REPORT_CHANGED",ee)}catch($){console.error("Security Alert: Failed to safely parse Wasm execution report after defect mutation",$)}}},updateGroupTitle:(A,C)=>{n.current&&document.getElementById(e)&&(n.current.update_group_title(A,C),n.current.render_diagnostic_grid())},updateTextContent:(A,C)=>{n.current&&document.getElementById(e)&&(n.current.update_text_content(A,C),n.current.render_diagnostic_grid())}},()=>{if(delete window.flowstrideEngineAPI,n.current){try{n.current.free()}catch{}n.current=null}}),[]),b.useEffect(()=>{let A=!0;return(async()=>{try{await tg(),A&&s(!0)}catch(V){console.error("[Flowstride Telemetry Error]: Failed to allocate WebAssembly memory",V)}})(),()=>{A=!1}},[]),b.useEffect(()=>{if(!i)return;let A,C=null;const V=()=>{if(t.current&&n.current&&document.getElementById(e)){const $=Math.max(1,t.current.clientWidth),ee=Math.max(1,t.current.clientHeight),O=window.devicePixelRatio||1;n.current.update_dimensions($,ee,O,d.current),n.current.render_diagnostic_grid()}},G=()=>{const $=document.getElementById(e);if(!$){A=requestAnimationFrame(G);return}if(!n.current){const ee=Math.max(1,$.clientWidth),O=Math.max(1,$.clientHeight);n.current=new al(e,ee,O),n.current.set_mode(_.current)}V(),r.current?(T(r.current),r.current=null):n.current&&n.current.render_diagnostic_grid(),q("ENGINE_READY"),C=new ResizeObserver(()=>{V()}),C.observe($),window.addEventListener("resize",V)};return A=requestAnimationFrame(G),()=>{cancelAnimationFrame(A),C&&C.disconnect(),window.removeEventListener("resize",V)}},[i]),b.useEffect(()=>{const A=C=>{var V;if(!(document.activeElement instanceof HTMLInputElement||document.activeElement instanceof HTMLTextAreaElement||(V=document.activeElement)!=null&&V.isContentEditable||!document.getElementById(e))){if(_.current===he.Design){const G=C.metaKey||C.ctrlKey,$=C.shiftKey,ee=C.key.toLowerCase();if(G&&ee==="z"){C.preventDefault(),n.current&&($?n.current.trigger_redo()&&n.current.render_diagnostic_grid():n.current.trigger_undo()&&n.current.render_diagnostic_grid());return}if(G&&ee==="y"){C.preventDefault(),n.current&&n.current.trigger_redo()&&n.current.render_diagnostic_grid();return}if(G&&ee==="c"){C.preventDefault(),n.current&&n.current.copy_to_clipboard();return}if(G&&ee==="v"){C.preventDefault(),n.current&&n.current.paste_from_clipboard()&&n.current.render_diagnostic_grid();return}if(G&&ee==="d"){C.preventDefault(),n.current&&n.current.duplicate_selected()&&n.current.render_diagnostic_grid();return}(C.key==="Backspace"||C.key==="Delete")&&n.current&&n.current.delete_selected_entities()&&(n.current.render_diagnostic_grid(),q("NODE_SELECTED",{id:null,title:"",description:""}),q("GROUP_SELECTED",{id:null,title:""}),q("TEXT_SELECTED",{id:null,content:""}))}else if(_.current===he.Execution&&["Enter","Delete","Backspace","Tab","Escape"].includes(C.key)&&(C.preventDefault(),n.current)){let G;if(C.key==="Enter"?G=vi.Passed:C.key==="Delete"||C.key==="Backspace"?G=vi.Failed:C.key==="Tab"?G=vi.Blocked:C.key==="Escape"&&(G=vi.Skipped),G!==void 0){n.current.evaluate_current_step(G)&&(n.current.render_diagnostic_grid(),I(null));try{const ee=n.current.get_execution_report(),O=JSON.parse(ee);q("EXECUTION_REPORT_CHANGED",O)}catch(ee){console.error("Security Alert: Failed to safely parse Wasm report",ee)}}}}};return window.addEventListener("keydown",A),()=>{window.removeEventListener("keydown",A)}},[]),b.useEffect(()=>{const A=t.current;if(!A)return;const C=V=>{if(V.preventDefault(),!document.getElementById(e))return;const G=d.current;k.current.x-=V.deltaX/G,k.current.y-=V.deltaY/G,n.current&&(n.current.set_pan_offset(k.current.x,k.current.y),n.current.render_diagnostic_grid())};return A.addEventListener("wheel",C,{passive:!1}),()=>{A.removeEventListener("wheel",C)}},[]);const z=(A,C)=>{if(C.trim()!==""&&n.current&&document.getElementById(e)&&n.current.update_node_visual_step(A,C.trim())){n.current.render_diagnostic_grid();const G=n.current.get_node_title(A),$=n.current.get_node_description(A),ee=n.current.get_node_visual_step(A),O=n.current.get_node_steps(A),se=n.current.get_node_expected_result(A),J=n.current.get_node_references(A),ue=n.current.get_node_priority(A);q("NODE_SELECTED",{id:A,title:G,description:$,visualStep:ee,stepsContent:O,expectedResult:se,references:J,priority:ue});const ge=parseInt(C.trim(),10);isNaN(ge)||(f.current=ge+1)}v(null)},E=()=>{ne.current.rafId&&(cancelAnimationFrame(ne.current.rafId),ne.current.rafId=0),ne.current.dx=0,ne.current.dy=0},P=()=>{if(!n.current||!document.getElementById(e)||ne.current.dx===0&&ne.current.dy===0){ne.current.rafId=0;return}const A=d.current;k.current.x-=ne.current.dx/A,k.current.y-=ne.current.dy/A,n.current.set_pan_offset(k.current.x,k.current.y);const C=xe.current.x,V=xe.current.y;oe.current?n.current.update_group_draw(C,V):H.current?n.current.update_connection_cursor(C,V):B.current?n.current.update_node_drag(C,V):ie.current?n.current.update_group_drag(C,V):M.current?n.current.update_text_drag(C,V):re.current&&n.current.update_text_resize(C,V),n.current.render_diagnostic_grid(),ne.current.rafId=requestAnimationFrame(P)},N=A=>{if(!n.current||!t.current||!document.getElementById(e))return;const C=t.current.getBoundingClientRect(),V=A.clientX-C.left,G=A.clientY-C.top,$=d.current,ee=V/$,O=G/$;if(_.current===he.Execution){const se=ee-k.current.x,J=O-k.current.y;try{const ue=n.current.get_active_execution_hover_data(se,J);if(ue){const ge=JSON.parse(ue);I({x:ge.x,y:ge.y,width:ge.width,height:ge.height,stepsHtml:ge.steps})}else R&&I(null)}catch{R&&I(null)}return}if(_.current===he.Design){if(A.currentTarget.setPointerCapture(A.pointerId),E(),p&&v(null),xe.current={x:ee,y:O},n.current.check_group_delete_click(ee,O)){n.current.render_diagnostic_grid();return}if(L.current==="Hand")x(!0),D.current={x:A.clientX-k.current.x*$,y:A.clientY-k.current.y*$};else if(L.current==="Group")n.current.begin_group_draw(ee,O)&&(oe.current=!0,n.current.render_diagnostic_grid());else if(L.current==="Arrow")n.current.begin_connection(ee,O)&&(H.current=!0,n.current.render_diagnostic_grid());else if(L.current==="Select"){const se=n.current.check_node_menu_click(ee,O);if(se>0){const ue=n.current.get_node_visual_step(se);v({nodeId:se,x:V,y:G,value:ue});return}if(n.current.begin_text_resize(ee,O)){re.current=!0,n.current.render_diagnostic_grid();return}const J=n.current.begin_node_drag(ee,O);if(J>0){B.current=!0;const ue=n.current.get_node_title(J),ge=n.current.get_node_description(J),Pe=n.current.get_node_visual_step(J),Vt=n.current.get_node_steps(J),Wr=n.current.get_node_expected_result(J),$o=n.current.get_node_references(J),Ho=n.current.get_node_priority(J);q("NODE_SELECTED",{id:J,title:ue,description:ge,visualStep:Pe,stepsContent:Vt,expectedResult:Wr,references:$o,priority:Ho})}else{const ue=n.current.begin_group_drag(ee,O);if(ue>0){ie.current=!0;const ge=n.current.get_group_title(ue);q("GROUP_SELECTED",{id:ue,title:ge})}else{const ge=n.current.begin_text_drag(ee,O);if(ge>0){M.current=!0;const Pe=n.current.get_text_content(ge);q("TEXT_SELECTED",{id:ge,content:Pe})}else q("NODE_SELECTED",{id:null,title:"",description:""}),q("GROUP_SELECTED",{id:null,title:""}),q("TEXT_SELECTED",{id:null,content:""})}}n.current.render_diagnostic_grid()}}},X=A=>{if(_.current!==he.Design||!n.current||!t.current||!document.getElementById(e))return;const C=t.current.getBoundingClientRect(),V=A.clientX-C.left,G=A.clientY-C.top,$=d.current,ee=V/$,O=G/$;if(xe.current={x:ee,y:O},h){const se=(A.clientX-D.current.x)/$,J=(A.clientY-D.current.y)/$;k.current={x:se,y:J},n.current.set_pan_offset(se,J),n.current.render_diagnostic_grid()}else if(L.current==="Select"&&!h&&!oe.current&&!H.current&&!B.current&&!ie.current&&!M.current&&!re.current&&n.current.check_text_resize_handle(ee,O)>0?y!=="ew-resize"&&w("ew-resize"):y!==null&&w(null),re.current&&L.current==="Select"?(n.current.update_text_resize(ee,O),n.current.render_diagnostic_grid()):oe.current&&L.current==="Group"?(n.current.update_group_draw(ee,O),n.current.render_diagnostic_grid()):H.current&&L.current==="Arrow"?(n.current.update_connection_cursor(ee,O),n.current.render_diagnostic_grid()):B.current&&L.current==="Select"?(n.current.update_node_drag(ee,O),n.current.render_diagnostic_grid()):ie.current&&L.current==="Select"?(n.current.update_group_drag(ee,O),n.current.render_diagnostic_grid()):M.current&&L.current==="Select"&&(n.current.update_text_drag(ee,O),n.current.render_diagnostic_grid()),oe.current||H.current||B.current||ie.current||M.current||re.current){let ue=0,ge=0;V<40?ue=-12*(1-Math.max(0,V)/40):V>C.width-40&&(ue=12*(1-Math.max(0,C.width-V)/40)),G<40?ge=-12*(1-Math.max(0,G)/40):G>C.height-40&&(ge=12*(1-Math.max(0,C.height-G)/40)),ne.current.dx=ue,ne.current.dy=ge,(ue!==0||ge!==0)&&!ne.current.rafId?ne.current.rafId=requestAnimationFrame(P):ue===0&&ge===0&&ne.current.rafId&&E()}},Z=A=>{var se;A.currentTarget.hasPointerCapture(A.pointerId)&&A.currentTarget.releasePointerCapture(A.pointerId),E(),h&&x(!1);const C=(se=t.current)==null?void 0:se.getBoundingClientRect();if(!C||!n.current||!document.getElementById(e))return;const V=A.clientX-C.left,G=A.clientY-C.top,$=d.current,ee=V/$,O=G/$;re.current&&L.current==="Select"&&(n.current.end_text_resize(),n.current.render_diagnostic_grid(),re.current=!1),oe.current&&L.current==="Group"&&(n.current.complete_group_draw(ee,O,"NEW TEST GROUP"),n.current.render_diagnostic_grid(),oe.current=!1),H.current&&L.current==="Arrow"&&(n.current.complete_connection(ee,O),n.current.render_diagnostic_grid(),H.current=!1),B.current&&L.current==="Select"&&(n.current.end_node_drag(),n.current.render_diagnostic_grid(),B.current=!1),ie.current&&L.current==="Select"&&(n.current.end_group_drag(),n.current.render_diagnostic_grid(),ie.current=!1),M.current&&L.current==="Select"&&(n.current.end_text_drag(),n.current.render_diagnostic_grid(),M.current=!1)},ve=A=>{A.currentTarget.hasPointerCapture(A.pointerId)&&A.currentTarget.releasePointerCapture(A.pointerId),E(),x(!1),!(!n.current||!document.getElementById(e))&&(re.current&&(n.current.end_text_resize(),n.current.render_diagnostic_grid(),re.current=!1),oe.current&&(n.current.cancel_group_draw(),n.current.render_diagnostic_grid(),oe.current=!1),H.current&&(n.current.cancel_connection(),n.current.render_diagnostic_grid(),H.current=!1),B.current&&(n.current.end_node_drag(),n.current.render_diagnostic_grid(),B.current=!1),ie.current&&(n.current.end_group_drag(),n.current.render_diagnostic_grid(),ie.current=!1),M.current&&(n.current.end_text_drag(),n.current.render_diagnostic_grid(),M.current=!1))},le=A=>{if(_.current===he.Design&&n.current&&t.current&&document.getElementById(e)){const C=t.current.getBoundingClientRect(),V=A.clientX-C.left,G=A.clientY-C.top,$=d.current,ee=V/$,O=G/$,se=ee-k.current.x,J=O-k.current.y;if(L.current==="Step"){const ue="New Step",ge="Enter description here",Pe=f.current.toString(),Vt=n.current.add_node(se,J,Pe,ue,ge,!0);f.current+=1,n.current.render_diagnostic_grid(),q("NODE_SELECTED",{id:Vt,title:ue,description:ge,visualStep:Pe,stepsContent:"",expectedResult:"",references:"",priority:""})}else if(L.current==="Text"){const ue="New Text Block",ge=n.current.add_text(se,J,ue,!0);n.current.render_diagnostic_grid(),q("TEXT_SELECTED",{id:ge,content:ue}),q("TOOL_CHANGED","Select")}}},de=()=>a===he.Execution?"pointer":re.current?"ew-resize":y||(u==="Step"||u==="Group"?"crosshair":u==="Text"?"text":u==="Select"?B.current||ie.current||M.current?"grabbing":"pointer":u==="Hand"?h?"grabbing":"grab":u==="Arrow"?"crosshair":"default");return l.jsxs("main",{style:{flex:1,width:"100vw",height:"100vh",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#f8f9fa",overflow:"hidden",position:"relative",outline:"none",margin:0,padding:0},tabIndex:-1,children:[l.jsx("style",{children:`
|
|
618
|
+
body { margin: 0; padding: 0; overflow: hidden; }
|
|
619
|
+
.flowstride-tooltip-fade-in {
|
|
620
|
+
animation: flowstride-tooltip-fade-in-anim 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
621
|
+
}
|
|
622
|
+
@keyframes flowstride-tooltip-fade-in-anim {
|
|
623
|
+
0% { opacity: 0; transform: translateY(5px) scale(0.98); }
|
|
624
|
+
100% { opacity: 1; transform: translateY(0) scale(1); }
|
|
625
|
+
}
|
|
626
|
+
.rich-text-preview font[size="1"] { font-size: 10px; }
|
|
627
|
+
.rich-text-preview font[size="3"] { font-size: 13px; }
|
|
628
|
+
.rich-text-preview font[size="4"] { font-size: 18px; }
|
|
629
|
+
.rich-text-preview font[size="5"] { font-size: 24px; }
|
|
630
|
+
.rich-text-preview li:has(font[size="1"]) { font-size: 10px; }
|
|
631
|
+
.rich-text-preview li:has(font[size="3"]) { font-size: 13px; }
|
|
632
|
+
.rich-text-preview li:has(font[size="4"]) { font-size: 18px; }
|
|
633
|
+
.rich-text-preview li:has(font[size="5"]) { font-size: 24px; }
|
|
634
|
+
.rich-text-preview ul, .rich-text-preview ol { padding-left: 20px; margin: 4px 0; }
|
|
635
|
+
.rich-text-preview p { margin: 0 0 4px 0; }
|
|
636
|
+
`}),l.jsx("canvas",{id:e,ref:t,onClick:le,onPointerDown:N,onPointerMove:X,onPointerUp:Z,onPointerCancel:ve,style:{width:"100%",height:"100%",display:"block",cursor:de(),touchAction:"none"}}),R&&l.jsxs("div",{className:"flowstride-tooltip-fade-in",style:{position:"absolute",left:(R.x+k.current.x)*d.current+R.width*d.current+24,top:(R.y+k.current.y)*d.current,backgroundColor:"#ffffff",border:"1px solid #d0d7de",borderRadius:"8px",padding:"16px",width:"320px",maxHeight:"400px",overflowY:"auto",boxShadow:"0 12px 36px rgba(0,0,0,0.18)",zIndex:50,pointerEvents:"auto"},children:[l.jsx("h4",{style:{margin:"0 0 10px 0",fontSize:"11px",color:"#57606a",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Execution Test Steps"}),l.jsx("div",{className:"rich-text-preview",dangerouslySetInnerHTML:{__html:fg.sanitize(R.stepsHtml,{ALLOWED_TAGS:["b","i","em","strong","a","ul","ol","li","br","div","p","font"],ALLOWED_ATTR:["href","target","rel","size"]})},style:{fontSize:"13px",color:"#24292f",lineHeight:"1.5"}})]}),p&&l.jsxs("div",{style:{position:"absolute",left:p.x,top:p.y,backgroundColor:"#ffffff",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",borderRadius:"6px",padding:"8px",display:"flex",flexDirection:"column",gap:"6px",zIndex:10,border:"1px solid #d0d7de"},onClick:A=>A.stopPropagation(),children:[l.jsx("label",{style:{fontSize:"10px",fontWeight:"bold",color:"#57606a",letterSpacing:"0.5px"},children:"OVERRIDE LABEL"}),l.jsx("input",{autoFocus:!0,type:"text",value:p.value,onChange:A=>v({...p,value:A.target.value}),onKeyDown:A=>{A.key==="Enter"&&z(p.nodeId,p.value),A.key==="Escape"&&v(null)},style:{width:"120px",padding:"6px",border:"1px solid #0969da",borderRadius:"4px",outline:"none",fontSize:"13px",color:"#24292f"}})]})]})}const bd=js.createRoot(document.getElementById("root"));window.location.search.includes("frame=engine")?bd.render(l.jsx(g1,{})):bd.render(l.jsx(p1,{}));
|