flowstride 1.0.20 → 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.
Files changed (99) hide show
  1. package/NATIVE_BROWSER.md +381 -0
  2. package/NATIVE_CI.md +17 -5
  3. package/NATIVE_WORKFLOWS.md +44 -0
  4. package/README.md +11 -4
  5. package/dist/adapters/api/undici.d.ts +11 -1
  6. package/dist/adapters/api/undici.js +28 -3
  7. package/dist/adapters/web/playwright.d.ts +22 -2
  8. package/dist/adapters/web/playwright.js +254 -107
  9. package/dist/ci/config.js +14 -1
  10. package/dist/ci/distribution.d.ts +38 -0
  11. package/dist/ci/distribution.js +134 -0
  12. package/dist/ci/init.d.ts +4 -1
  13. package/dist/ci/init.js +13 -2
  14. package/dist/ci/runtime.js +33 -6
  15. package/dist/cli/commands/run.js +17 -4
  16. package/dist/cli/index.js +24 -5
  17. package/dist/cli/manual_server/workspace_server.js +90 -74
  18. package/dist/manual/security.d.ts +6 -6
  19. package/dist/native/accessibility.d.ts +4 -0
  20. package/dist/native/accessibility.js +84 -0
  21. package/dist/native/assertions.d.ts +3 -0
  22. package/dist/native/assertions.js +223 -0
  23. package/dist/native/compatibility.d.ts +3 -0
  24. package/dist/native/compatibility.js +16 -0
  25. package/dist/native/components.d.ts +12 -0
  26. package/dist/native/components.js +122 -0
  27. package/dist/native/dashboard.d.ts +7 -0
  28. package/dist/native/dashboard.js +32 -0
  29. package/dist/native/deadline.d.ts +2 -0
  30. package/dist/native/deadline.js +13 -0
  31. package/dist/native/events.d.ts +35 -0
  32. package/dist/native/events.js +308 -0
  33. package/dist/native/evidence.d.ts +3 -0
  34. package/dist/native/evidence.js +31 -0
  35. package/dist/native/functions.d.ts +10 -0
  36. package/dist/native/functions.js +131 -0
  37. package/dist/native/runtime.d.ts +17 -0
  38. package/dist/native/runtime.js +160 -0
  39. package/dist/native/validation.d.ts +107 -0
  40. package/dist/native/validation.js +84 -0
  41. package/dist/parser/assertion_contract.d.ts +12 -0
  42. package/dist/parser/assertion_contract.js +56 -0
  43. package/dist/parser/lexer.js +15 -4
  44. package/dist/parser/parser.js +15 -7
  45. package/dist/reporting/assertion_result.d.ts +36 -0
  46. package/dist/reporting/assertion_result.js +104 -0
  47. package/dist/reporting/pdf_generator.js +25 -20
  48. package/dist/reporting/runtime_failure.d.ts +10 -0
  49. package/dist/reporting/runtime_failure.js +64 -0
  50. package/dist/reporting/step_status.d.ts +10 -0
  51. package/dist/reporting/step_status.js +44 -0
  52. package/dist/runner/flow_orchestrator.d.ts +5 -0
  53. package/dist/runner/flow_orchestrator.js +30 -8
  54. package/dist/runner/flow_worker.d.ts +15 -1
  55. package/dist/runner/flow_worker.js +219 -42
  56. package/dist/runner/plugin_manager.js +3 -0
  57. package/dist/runner/temporary_store.d.ts +1 -0
  58. package/dist/runner/temporary_store.js +3 -0
  59. package/dist/sdk/api_proxy.d.ts +3 -0
  60. package/dist/sdk/api_proxy.js +16 -0
  61. package/dist/security/localWorkspace.d.ts +2 -0
  62. package/dist/security/localWorkspace.js +17 -0
  63. package/dist/security/redaction.js +1 -1
  64. package/dist/types/index.d.ts +13 -0
  65. package/examples/native-workflows/README.md +144 -0
  66. package/examples/native-workflows/api-and-ui/README.md +80 -0
  67. package/examples/native-workflows/api-and-ui/flows/api-and-ui.flow +27 -0
  68. package/examples/native-workflows/api-and-ui/negative/wrong-backend-state.flow +27 -0
  69. package/examples/native-workflows/api-ui-otp/README.md +140 -0
  70. package/examples/native-workflows/api-ui-otp/templates/api-ui-otp.flow +31 -0
  71. package/examples/native-workflows/api-ui-otp/templates/existing-account-otp.flow +20 -0
  72. package/examples/native-workflows/audio-to-text/README.md +131 -0
  73. package/examples/native-workflows/audio-to-text/fixtures/microphone-tone.wav +0 -0
  74. package/examples/native-workflows/audio-to-text/flows/microphone-demo.flow +23 -0
  75. package/examples/native-workflows/audio-to-text/negative/wrong-transcript.flow +23 -0
  76. package/examples/native-workflows/audio-to-text/templates/real-transcription.flow +25 -0
  77. package/examples/native-workflows/iframes/README.md +116 -0
  78. package/examples/native-workflows/iframes/flows/explicit-frame-plugin.flow +20 -0
  79. package/examples/native-workflows/iframes/flows/readable-frame.flow +13 -0
  80. package/examples/native-workflows/iframes/negative/wrong-frame-result.flow +13 -0
  81. package/examples/native-workflows/iframes/plugins/frame-actions.ts +7 -0
  82. package/examples/native-workflows/manual-testing/README.md +85 -0
  83. package/examples/native-workflows/manual-testing/fixtures/profile-review-mismatch.json +93 -0
  84. package/examples/native-workflows/manual-testing/fixtures/profile-review.json +93 -0
  85. package/examples/native-workflows/shared/server.mjs +80 -0
  86. package/examples/native-workflows/tables-and-cells/README.md +118 -0
  87. package/examples/native-workflows/tables-and-cells/flows/coordinates.flow +17 -0
  88. package/examples/native-workflows/tables-and-cells/flows/search-extract-reuse.flow +27 -0
  89. package/examples/native-workflows/tables-and-cells/negative/wrong-cell-value.flow +27 -0
  90. package/examples/native-workflows/variables-and-reuse/README.md +140 -0
  91. package/examples/native-workflows/variables-and-reuse/flows/reuse.flow +9 -0
  92. package/examples/native-workflows/variables-and-reuse/flows/setup.first.flow +27 -0
  93. package/examples/native-workflows/variables-and-reuse/negative/wrong-reused-value.flow +27 -0
  94. package/examples/native-workflows/variables-and-reuse/sessions/restore.flow +10 -0
  95. package/examples/native-workflows/variables-and-reuse/sessions/save.flow +29 -0
  96. package/package.json +23 -9
  97. package/src/ui/dist/assets/index-s0WYkGPt.js +636 -0
  98. package/src/ui/dist/index.html +1 -1
  99. package/src/ui/dist/assets/index-B7MuBTWm.js +0 -460
@@ -1,460 +0,0 @@
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 Vd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gd={exports:{}},pl={},Yd={exports:{}},de={};/**
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 $o=Symbol.for("react.element"),oh=Symbol.for("react.portal"),ih=Symbol.for("react.fragment"),lh=Symbol.for("react.strict_mode"),sh=Symbol.for("react.profiler"),ah=Symbol.for("react.provider"),ch=Symbol.for("react.context"),uh=Symbol.for("react.forward_ref"),dh=Symbol.for("react.suspense"),fh=Symbol.for("react.memo"),ph=Symbol.for("react.lazy"),uu=Symbol.iterator;function gh(e){return e===null||typeof e!="object"?null:(e=uu&&e[uu]||e["@@iterator"],typeof e=="function"?e:null)}var Xd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qd=Object.assign,Kd={};function $r(e,t,n){this.props=e,this.context=t,this.refs=Kd,this.updater=n||Xd}$r.prototype.isReactComponent={};$r.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")};$r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qd(){}qd.prototype=$r.prototype;function Oa(e,t,n){this.props=e,this.context=t,this.refs=Kd,this.updater=n||Xd}var Fa=Oa.prototype=new qd;Fa.constructor=Oa;Qd(Fa,$r.prototype);Fa.isPureReactComponent=!0;var du=Array.isArray,Zd=Object.prototype.hasOwnProperty,Ma={current:null},Jd={key:!0,ref:!0,__self:!0,__source:!0};function ef(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)&&!Jd.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:$o,type:e,key:i,ref:s,props:o,_owner:Ma.current}}function hh(e,t){return{$$typeof:$o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Wa(e){return typeof e=="object"&&e!==null&&e.$$typeof===$o}function xh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var fu=/\/+/g;function Zl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?xh(""+e.key):t.toString(36)}function Ei(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 $o:case oh:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Zl(s,0):r,du(o)?(n="",e!=null&&(n=e.replace(fu,"$&/")+"/"),Ei(o,t,n,"",function(u){return u})):o!=null&&(Wa(o)&&(o=hh(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(fu,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",du(e))for(var a=0;a<e.length;a++){i=e[a];var c=r+Zl(i,a);s+=Ei(i,t,n,c,o)}else if(c=gh(e),typeof c=="function")for(e=c.call(e),a=0;!(i=e.next()).done;)i=i.value,c=r+Zl(i,a++),s+=Ei(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 ii(e,t,n){if(e==null)return e;var r=[],o=0;return Ei(e,r,"","",function(i){return t.call(n,i,o++)}),r}function mh(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 rt={current:null},Ci={transition:null},yh={ReactCurrentDispatcher:rt,ReactCurrentBatchConfig:Ci,ReactCurrentOwner:Ma};function tf(){throw Error("act(...) is not supported in production builds of React.")}de.Children={map:ii,forEach:function(e,t,n){ii(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ii(e,function(){t++}),t},toArray:function(e){return ii(e,function(t){return t})||[]},only:function(e){if(!Wa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};de.Component=$r;de.Fragment=ih;de.Profiler=sh;de.PureComponent=Oa;de.StrictMode=lh;de.Suspense=dh;de.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yh;de.act=tf;de.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=Qd({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Ma.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)&&!Jd.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:$o,type:e.type,key:o,ref:i,props:r,_owner:s}};de.createContext=function(e){return e={$$typeof:ch,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ah,_context:e},e.Consumer=e};de.createElement=ef;de.createFactory=function(e){var t=ef.bind(null,e);return t.type=e,t};de.createRef=function(){return{current:null}};de.forwardRef=function(e){return{$$typeof:uh,render:e}};de.isValidElement=Wa;de.lazy=function(e){return{$$typeof:ph,_payload:{_status:-1,_result:e},_init:mh}};de.memo=function(e,t){return{$$typeof:fh,type:e,compare:t===void 0?null:t}};de.startTransition=function(e){var t=Ci.transition;Ci.transition={};try{e()}finally{Ci.transition=t}};de.unstable_act=tf;de.useCallback=function(e,t){return rt.current.useCallback(e,t)};de.useContext=function(e){return rt.current.useContext(e)};de.useDebugValue=function(){};de.useDeferredValue=function(e){return rt.current.useDeferredValue(e)};de.useEffect=function(e,t){return rt.current.useEffect(e,t)};de.useId=function(){return rt.current.useId()};de.useImperativeHandle=function(e,t,n){return rt.current.useImperativeHandle(e,t,n)};de.useInsertionEffect=function(e,t){return rt.current.useInsertionEffect(e,t)};de.useLayoutEffect=function(e,t){return rt.current.useLayoutEffect(e,t)};de.useMemo=function(e,t){return rt.current.useMemo(e,t)};de.useReducer=function(e,t,n){return rt.current.useReducer(e,t,n)};de.useRef=function(e){return rt.current.useRef(e)};de.useState=function(e){return rt.current.useState(e)};de.useSyncExternalStore=function(e,t,n){return rt.current.useSyncExternalStore(e,t,n)};de.useTransition=function(){return rt.current.useTransition()};de.version="18.3.1";Yd.exports=de;var b=Yd.exports;const vh=Vd(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 _h=b,wh=Symbol.for("react.element"),Sh=Symbol.for("react.fragment"),bh=Object.prototype.hasOwnProperty,kh=_h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Eh={key:!0,ref:!0,__self:!0,__source:!0};function nf(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)bh.call(t,r)&&!Eh.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:wh,type:e,key:i,ref:s,props:o,_owner:kh.current}}pl.Fragment=Sh;pl.jsx=nf;pl.jsxs=nf;Gd.exports=pl;var l=Gd.exports,Ms={},rf={exports:{}},wt={},of={exports:{}},lf={};/**
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(M,z){var k=M.length;M.push(z);e:for(;0<k;){var D=k-1>>>1,W=M[D];if(0<o(W,z))M[D]=z,M[k]=W,k=D;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var z=M[0],k=M.pop();if(k!==z){M[0]=k;e:for(var D=0,W=M.length,K=W>>>1;D<K;){var re=2*(D+1)-1,ve=M[re],X=re+1,fe=M[X];if(0>o(ve,k))X<W&&0>o(fe,ve)?(M[D]=fe,M[X]=k,D=X):(M[D]=ve,M[re]=k,D=re);else if(X<W&&0>o(fe,k))M[D]=fe,M[X]=k,D=X;else break e}}return z}function o(M,z){var k=M.sortIndex-z.sortIndex;return k!==0?k:M.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,_=!1,w=!1,T=typeof setTimeout=="function"?setTimeout:null,p=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 g(M){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=M)r(u),z.sortIndex=z.expirationTime,t(c,z);else break;z=n(u)}}function S(M){if(w=!1,g(M),!_)if(n(c)!==null)_=!0,ye(A);else{var z=n(u);z!==null&&N(S,z.startTime-M)}}function A(M,z){_=!1,w&&(w=!1,p(C),C=-1),y=!0;var k=x;try{for(g(z),h=n(c);h!==null&&(!(h.expirationTime>z)||M&&!ee());){var D=h.callback;if(typeof D=="function"){h.callback=null,x=h.priorityLevel;var W=D(h.expirationTime<=z);z=e.unstable_now(),typeof W=="function"?h.callback=W:h===n(c)&&r(c),g(z)}else r(c);h=n(c)}if(h!==null)var K=!0;else{var re=n(u);re!==null&&N(S,re.startTime-z),K=!1}return K}finally{h=null,x=k,y=!1}}var P=!1,F=null,C=-1,G=5,H=-1;function ee(){return!(e.unstable_now()-H<G)}function ae(){if(F!==null){var M=e.unstable_now();H=M;var z=!0;try{z=F(!0,M)}finally{z?B():(P=!1,F=null)}}else P=!1}var B;if(typeof f=="function")B=function(){f(ae)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,ne=le.port2;le.port1.onmessage=ae,B=function(){ne.postMessage(null)}}else B=function(){T(ae,0)};function ye(M){F=M,P||(P=!0,B())}function N(M,z){C=T(function(){M(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(M){M.callback=null},e.unstable_continueExecution=function(){_||y||(_=!0,ye(A))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(M){switch(x){case 1:case 2:case 3:var z=3;break;default:z=x}var k=x;x=z;try{return M()}finally{x=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,z){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var k=x;x=M;try{return z()}finally{x=k}},e.unstable_scheduleCallback=function(M,z,k){var D=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?D+k:D):k=D,M){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=k+W,M={id:m++,callback:z,priorityLevel:M,startTime:k,expirationTime:W,sortIndex:-1},k>D?(M.sortIndex=k,t(u,M),n(c)===null&&M===n(u)&&(w?(p(C),C=-1):w=!0,N(S,k-D))):(M.sortIndex=W,t(c,M),_||y||(_=!0,ye(A))),M},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(M){var z=x;return function(){var k=x;x=z;try{return M.apply(this,arguments)}finally{x=k}}}})(lf);of.exports=lf;var Ch=of.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 jh=b,_t=Ch;function U(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 sf=new Set,Co={};function tr(e,t){Ar(e,t),Ar(e+"Capture",t)}function Ar(e,t){for(Co[e]=t,e=0;e<t.length;e++)sf.add(t[e])}var tn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ws=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]*$/,pu={},gu={};function Rh(e){return Ws.call(gu,e)?!0:Ws.call(pu,e)?!1:Th.test(e)?gu[e]=!0:(pu[e]=!0,!1)}function zh(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 Ih(e,t,n,r){if(t===null||typeof t>"u"||zh(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 ot(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 Ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ye[e]=new ot(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ye[t]=new ot(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ye[e]=new ot(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ye[e]=new ot(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){Ye[e]=new ot(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ye[e]=new ot(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ye[e]=new ot(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ye[e]=new ot(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ye[e]=new ot(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ba=/[\-:]([a-z])/g;function Ua(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(Ba,Ua);Ye[t]=new ot(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(Ba,Ua);Ye[t]=new ot(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(Ba,Ua);Ye[t]=new ot(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ye[e]=new ot(e,1,!1,e.toLowerCase(),null,!1,!1)});Ye.xlinkHref=new ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ye[e]=new ot(e,1,!1,e.toLowerCase(),null,!0,!0)});function $a(e,t,n,r){var o=Ye.hasOwnProperty(t)?Ye[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ih(t,n,o,r)&&(n=null),r||o===null?Rh(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 sn=jh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,li=Symbol.for("react.element"),pr=Symbol.for("react.portal"),gr=Symbol.for("react.fragment"),Ha=Symbol.for("react.strict_mode"),Bs=Symbol.for("react.profiler"),af=Symbol.for("react.provider"),cf=Symbol.for("react.context"),Va=Symbol.for("react.forward_ref"),Us=Symbol.for("react.suspense"),$s=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),gn=Symbol.for("react.lazy"),uf=Symbol.for("react.offscreen"),hu=Symbol.iterator;function Qr(e){return e===null||typeof e!="object"?null:(e=hu&&e[hu]||e["@@iterator"],typeof e=="function"?e:null)}var Re=Object.assign,Jl;function ao(e){if(Jl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Jl=t&&t[1]||""}return`
34
- `+Jl+e}var es=!1;function ts(e,t){if(!e||es)return"";es=!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{es=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ao(e):""}function Lh(e){switch(e.tag){case 5:return ao(e.type);case 16:return ao("Lazy");case 13:return ao("Suspense");case 19:return ao("SuspenseList");case 0:case 2:case 15:return e=ts(e.type,!1),e;case 11:return e=ts(e.type.render,!1),e;case 1:return e=ts(e.type,!0),e;default:return""}}function Hs(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 gr:return"Fragment";case pr:return"Portal";case Bs:return"Profiler";case Ha:return"StrictMode";case Us:return"Suspense";case $s:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cf:return(e.displayName||"Context")+".Consumer";case af:return(e._context.displayName||"Context")+".Provider";case Va:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ga:return t=e.displayName||null,t!==null?t:Hs(e.type)||"Memo";case gn:t=e._payload,e=e._init;try{return Hs(e(t))}catch{}}return null}function Ah(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 Hs(t);case 8:return t===Ha?"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 Rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function df(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dh(e){var t=df(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 si(e){e._valueTracker||(e._valueTracker=Dh(e))}function ff(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=df(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Wi(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 Vs(e,t){var n=t.checked;return Re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function xu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rn(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 pf(e,t){t=t.checked,t!=null&&$a(e,"checked",t,!1)}function Gs(e,t){pf(e,t);var n=Rn(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")?Ys(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ys(e,t.type,Rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mu(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 Ys(e,t,n){(t!=="number"||Wi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var co=Array.isArray;function Er(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=""+Rn(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 Xs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(U(91));return Re({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(U(92));if(co(n)){if(1<n.length)throw Error(U(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Rn(n)}}function gf(e,t){var n=Rn(t.value),r=Rn(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 vu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function hf(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 Qs(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?hf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ai,xf=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(ai=ai||document.createElement("div"),ai.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ai.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function jo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ho={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},Nh=["Webkit","ms","Moz","O"];Object.keys(ho).forEach(function(e){Nh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ho[t]=ho[e]})});function mf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ho.hasOwnProperty(e)&&ho[e]?(""+t).trim():t+"px"}function yf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=mf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ph=Re({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 Ks(e,t){if(t){if(Ph[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function qs(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 Zs=null;function Ya(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Js=null,Cr=null,jr=null;function _u(e){if(e=Go(e)){if(typeof Js!="function")throw Error(U(280));var t=e.stateNode;t&&(t=yl(t),Js(e.stateNode,e.type,t))}}function vf(e){Cr?jr?jr.push(e):jr=[e]:Cr=e}function _f(){if(Cr){var e=Cr,t=jr;if(jr=Cr=null,_u(e),t)for(e=0;e<t.length;e++)_u(t[e])}}function wf(e,t){return e(t)}function Sf(){}var ns=!1;function bf(e,t,n){if(ns)return e(t,n);ns=!0;try{return wf(e,t,n)}finally{ns=!1,(Cr!==null||jr!==null)&&(Sf(),_f())}}function To(e,t){var n=e.stateNode;if(n===null)return null;var r=yl(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(U(231,t,typeof n));return n}var ea=!1;if(tn)try{var Kr={};Object.defineProperty(Kr,"passive",{get:function(){ea=!0}}),window.addEventListener("test",Kr,Kr),window.removeEventListener("test",Kr,Kr)}catch{ea=!1}function Oh(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 xo=!1,Bi=null,Ui=!1,ta=null,Fh={onError:function(e){xo=!0,Bi=e}};function Mh(e,t,n,r,o,i,s,a,c){xo=!1,Bi=null,Oh.apply(Fh,arguments)}function Wh(e,t,n,r,o,i,s,a,c){if(Mh.apply(this,arguments),xo){if(xo){var u=Bi;xo=!1,Bi=null}else throw Error(U(198));Ui||(Ui=!0,ta=u)}}function nr(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 kf(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 wu(e){if(nr(e)!==e)throw Error(U(188))}function Bh(e){var t=e.alternate;if(!t){if(t=nr(e),t===null)throw Error(U(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 wu(o),e;if(i===r)return wu(o),t;i=i.sibling}throw Error(U(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(U(189))}}if(n.alternate!==r)throw Error(U(190))}if(n.tag!==3)throw Error(U(188));return n.stateNode.current===n?e:t}function Ef(e){return e=Bh(e),e!==null?Cf(e):null}function Cf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Cf(e);if(t!==null)return t;e=e.sibling}return null}var jf=_t.unstable_scheduleCallback,Su=_t.unstable_cancelCallback,Uh=_t.unstable_shouldYield,$h=_t.unstable_requestPaint,Ae=_t.unstable_now,Hh=_t.unstable_getCurrentPriorityLevel,Xa=_t.unstable_ImmediatePriority,Tf=_t.unstable_UserBlockingPriority,$i=_t.unstable_NormalPriority,Vh=_t.unstable_LowPriority,Rf=_t.unstable_IdlePriority,gl=null,Vt=null;function Gh(e){if(Vt&&typeof Vt.onCommitFiberRoot=="function")try{Vt.onCommitFiberRoot(gl,e,void 0,(e.current.flags&128)===128)}catch{}}var Nt=Math.clz32?Math.clz32:Qh,Yh=Math.log,Xh=Math.LN2;function Qh(e){return e>>>=0,e===0?32:31-(Yh(e)/Xh|0)|0}var ci=64,ui=4194304;function uo(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 Hi(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=uo(a):(i&=s,i!==0&&(r=uo(i)))}else s=n&~o,s!==0?r=uo(s):i!==0&&(r=uo(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-Nt(t),o=1<<n,r|=e[n],t&=~o;return r}function Kh(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 qh(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-Nt(i),a=1<<s,c=o[s];c===-1?(!(a&n)||a&r)&&(o[s]=Kh(a,t)):c<=t&&(e.expiredLanes|=a),i&=~a}}function na(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function zf(){var e=ci;return ci<<=1,!(ci&4194240)&&(ci=64),e}function rs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ho(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nt(t),e[t]=n}function Zh(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-Nt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Qa(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Nt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var me=0;function If(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Lf,Ka,Af,Df,Nf,ra=!1,di=[],wn=null,Sn=null,bn=null,Ro=new Map,zo=new Map,xn=[],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 bu(e,t){switch(e){case"focusin":case"focusout":wn=null;break;case"dragenter":case"dragleave":Sn=null;break;case"mouseover":case"mouseout":bn=null;break;case"pointerover":case"pointerout":Ro.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zo.delete(t.pointerId)}}function qr(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=Go(t),t!==null&&Ka(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function e0(e,t,n,r,o){switch(t){case"focusin":return wn=qr(wn,e,t,n,r,o),!0;case"dragenter":return Sn=qr(Sn,e,t,n,r,o),!0;case"mouseover":return bn=qr(bn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Ro.set(i,qr(Ro.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,zo.set(i,qr(zo.get(i)||null,e,t,n,r,o)),!0}return!1}function Pf(e){var t=Vn(e.target);if(t!==null){var n=nr(t);if(n!==null){if(t=n.tag,t===13){if(t=kf(n),t!==null){e.blockedOn=t,Nf(e.priority,function(){Af(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 ji(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=oa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Zs=r,n.target.dispatchEvent(r),Zs=null}else return t=Go(n),t!==null&&Ka(t),e.blockedOn=n,!1;t.shift()}return!0}function ku(e,t,n){ji(e)&&n.delete(t)}function t0(){ra=!1,wn!==null&&ji(wn)&&(wn=null),Sn!==null&&ji(Sn)&&(Sn=null),bn!==null&&ji(bn)&&(bn=null),Ro.forEach(ku),zo.forEach(ku)}function Zr(e,t){e.blockedOn===t&&(e.blockedOn=null,ra||(ra=!0,_t.unstable_scheduleCallback(_t.unstable_NormalPriority,t0)))}function Io(e){function t(o){return Zr(o,e)}if(0<di.length){Zr(di[0],e);for(var n=1;n<di.length;n++){var r=di[n];r.blockedOn===e&&(r.blockedOn=null)}}for(wn!==null&&Zr(wn,e),Sn!==null&&Zr(Sn,e),bn!==null&&Zr(bn,e),Ro.forEach(t),zo.forEach(t),n=0;n<xn.length;n++)r=xn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<xn.length&&(n=xn[0],n.blockedOn===null);)Pf(n),n.blockedOn===null&&xn.shift()}var Tr=sn.ReactCurrentBatchConfig,Vi=!0;function n0(e,t,n,r){var o=me,i=Tr.transition;Tr.transition=null;try{me=1,qa(e,t,n,r)}finally{me=o,Tr.transition=i}}function r0(e,t,n,r){var o=me,i=Tr.transition;Tr.transition=null;try{me=4,qa(e,t,n,r)}finally{me=o,Tr.transition=i}}function qa(e,t,n,r){if(Vi){var o=oa(e,t,n,r);if(o===null)ps(e,t,r,Gi,n),bu(e,r);else if(e0(o,e,t,n,r))r.stopPropagation();else if(bu(e,r),t&4&&-1<Jh.indexOf(e)){for(;o!==null;){var i=Go(o);if(i!==null&&Lf(i),i=oa(e,t,n,r),i===null&&ps(e,t,r,Gi,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else ps(e,t,r,null,n)}}var Gi=null;function oa(e,t,n,r){if(Gi=null,e=Ya(r),e=Vn(e),e!==null)if(t=nr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=kf(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 Gi=e,null}function Of(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(Hh()){case Xa:return 1;case Tf:return 4;case $i:case Vh:return 16;case Rf:return 536870912;default:return 16}default:return 16}}var vn=null,Za=null,Ti=null;function Ff(){if(Ti)return Ti;var e,t=Za,n=t.length,r,o="value"in vn?vn.value:vn.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 Ti=o.slice(e,1<r?1-r:void 0)}function Ri(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 fi(){return!0}function Eu(){return!1}function St(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)?fi:Eu,this.isPropagationStopped=Eu,this}return Re(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=fi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=fi)},persist:function(){},isPersistent:fi}),t}var Hr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ja=St(Hr),Vo=Re({},Hr,{view:0,detail:0}),o0=St(Vo),os,is,Jr,hl=Re({},Vo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ec,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!==Jr&&(Jr&&e.type==="mousemove"?(os=e.screenX-Jr.screenX,is=e.screenY-Jr.screenY):is=os=0,Jr=e),os)},movementY:function(e){return"movementY"in e?e.movementY:is}}),Cu=St(hl),i0=Re({},hl,{dataTransfer:0}),l0=St(i0),s0=Re({},Vo,{relatedTarget:0}),ls=St(s0),a0=Re({},Hr,{animationName:0,elapsedTime:0,pseudoElement:0}),c0=St(a0),u0=Re({},Hr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),d0=St(u0),f0=Re({},Hr,{data:0}),ju=St(f0),p0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},g0={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"},h0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function x0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=h0[e])?!!t[e]:!1}function ec(){return x0}var m0=Re({},Vo,{key:function(e){if(e.key){var t=p0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ri(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?g0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ec,charCode:function(e){return e.type==="keypress"?Ri(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ri(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),y0=St(m0),v0=Re({},hl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tu=St(v0),_0=Re({},Vo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ec}),w0=St(_0),S0=Re({},Hr,{propertyName:0,elapsedTime:0,pseudoElement:0}),b0=St(S0),k0=Re({},hl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),E0=St(k0),C0=[9,13,27,32],tc=tn&&"CompositionEvent"in window,mo=null;tn&&"documentMode"in document&&(mo=document.documentMode);var j0=tn&&"TextEvent"in window&&!mo,Mf=tn&&(!tc||mo&&8<mo&&11>=mo),Ru=" ",zu=!1;function Wf(e,t){switch(e){case"keyup":return C0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hr=!1;function T0(e,t){switch(e){case"compositionend":return Bf(t);case"keypress":return t.which!==32?null:(zu=!0,Ru);case"textInput":return e=t.data,e===Ru&&zu?null:e;default:return null}}function R0(e,t){if(hr)return e==="compositionend"||!tc&&Wf(e,t)?(e=Ff(),Ti=Za=vn=null,hr=!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 z0={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 Iu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!z0[e.type]:t==="textarea"}function Uf(e,t,n,r){vf(r),t=Yi(t,"onChange"),0<t.length&&(n=new Ja("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var yo=null,Lo=null;function I0(e){Jf(e,0)}function xl(e){var t=yr(e);if(ff(t))return e}function L0(e,t){if(e==="change")return t}var $f=!1;if(tn){var ss;if(tn){var as="oninput"in document;if(!as){var Lu=document.createElement("div");Lu.setAttribute("oninput","return;"),as=typeof Lu.oninput=="function"}ss=as}else ss=!1;$f=ss&&(!document.documentMode||9<document.documentMode)}function Au(){yo&&(yo.detachEvent("onpropertychange",Hf),Lo=yo=null)}function Hf(e){if(e.propertyName==="value"&&xl(Lo)){var t=[];Uf(t,Lo,e,Ya(e)),bf(I0,t)}}function A0(e,t,n){e==="focusin"?(Au(),yo=t,Lo=n,yo.attachEvent("onpropertychange",Hf)):e==="focusout"&&Au()}function D0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xl(Lo)}function N0(e,t){if(e==="click")return xl(t)}function P0(e,t){if(e==="input"||e==="change")return xl(t)}function O0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:O0;function Ao(e,t){if(Ot(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(!Ws.call(t,o)||!Ot(e[o],t[o]))return!1}return!0}function Du(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nu(e,t){var n=Du(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=Du(n)}}function Vf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gf(){for(var e=window,t=Wi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wi(e.document)}return t}function nc(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 F0(e){var t=Gf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Vf(n.ownerDocument.documentElement,n)){if(r!==null&&nc(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=Nu(n,i);var s=Nu(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 M0=tn&&"documentMode"in document&&11>=document.documentMode,xr=null,ia=null,vo=null,la=!1;function Pu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;la||xr==null||xr!==Wi(r)||(r=xr,"selectionStart"in r&&nc(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}),vo&&Ao(vo,r)||(vo=r,r=Yi(ia,"onSelect"),0<r.length&&(t=new Ja("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xr)))}function pi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mr={animationend:pi("Animation","AnimationEnd"),animationiteration:pi("Animation","AnimationIteration"),animationstart:pi("Animation","AnimationStart"),transitionend:pi("Transition","TransitionEnd")},cs={},Yf={};tn&&(Yf=document.createElement("div").style,"AnimationEvent"in window||(delete mr.animationend.animation,delete mr.animationiteration.animation,delete mr.animationstart.animation),"TransitionEvent"in window||delete mr.transitionend.transition);function ml(e){if(cs[e])return cs[e];if(!mr[e])return e;var t=mr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Yf)return cs[e]=t[n];return e}var Xf=ml("animationend"),Qf=ml("animationiteration"),Kf=ml("animationstart"),qf=ml("transitionend"),Zf=new Map,Ou="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 Ln(e,t){Zf.set(e,t),tr(t,[e])}for(var us=0;us<Ou.length;us++){var ds=Ou[us],W0=ds.toLowerCase(),B0=ds[0].toUpperCase()+ds.slice(1);Ln(W0,"on"+B0)}Ln(Xf,"onAnimationEnd");Ln(Qf,"onAnimationIteration");Ln(Kf,"onAnimationStart");Ln("dblclick","onDoubleClick");Ln("focusin","onFocus");Ln("focusout","onBlur");Ln(qf,"onTransitionEnd");Ar("onMouseEnter",["mouseout","mouseover"]);Ar("onMouseLeave",["mouseout","mouseover"]);Ar("onPointerEnter",["pointerout","pointerover"]);Ar("onPointerLeave",["pointerout","pointerover"]);tr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));tr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));tr("onBeforeInput",["compositionend","keypress","textInput","paste"]);tr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));tr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));tr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fo="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(" "),U0=new Set("cancel close invalid load scroll toggle".split(" ").concat(fo));function Fu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Wh(r,t,void 0,e),e.currentTarget=null}function Jf(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;Fu(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;Fu(o,a,u),i=c}}}if(Ui)throw e=ta,Ui=!1,ta=null,e}function Se(e,t){var n=t[da];n===void 0&&(n=t[da]=new Set);var r=e+"__bubble";n.has(r)||(ep(t,e,2,!1),n.add(r))}function fs(e,t,n){var r=0;t&&(r|=4),ep(n,e,r,t)}var gi="_reactListening"+Math.random().toString(36).slice(2);function Do(e){if(!e[gi]){e[gi]=!0,sf.forEach(function(n){n!=="selectionchange"&&(U0.has(n)||fs(n,!1,e),fs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gi]||(t[gi]=!0,fs("selectionchange",!1,t))}}function ep(e,t,n,r){switch(Of(t)){case 1:var o=n0;break;case 4:o=r0;break;default:o=qa}n=o.bind(null,t,n,e),o=void 0,!ea||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 ps(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=Vn(a),s===null)return;if(c=s.tag,c===5||c===6){r=i=s;continue e}a=a.parentNode}}r=r.return}bf(function(){var u=i,m=Ya(n),h=[];e:{var x=Zf.get(e);if(x!==void 0){var y=Ja,_=e;switch(e){case"keypress":if(Ri(n)===0)break e;case"keydown":case"keyup":y=y0;break;case"focusin":_="focus",y=ls;break;case"focusout":_="blur",y=ls;break;case"beforeblur":case"afterblur":y=ls;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=Cu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=l0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=w0;break;case Xf:case Qf:case Kf:y=c0;break;case qf:y=b0;break;case"scroll":y=o0;break;case"wheel":y=E0;break;case"copy":case"cut":case"paste":y=d0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Tu}var w=(t&4)!==0,T=!w&&e==="scroll",p=w?x!==null?x+"Capture":null:x;w=[];for(var f=u,g;f!==null;){g=f;var S=g.stateNode;if(g.tag===5&&S!==null&&(g=S,p!==null&&(S=To(f,p),S!=null&&w.push(No(f,S,g)))),T)break;f=f.return}0<w.length&&(x=new y(x,_,null,n,m),h.push({event:x,listeners:w}))}}if(!(t&7)){e:{if(x=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",x&&n!==Zs&&(_=n.relatedTarget||n.fromElement)&&(Vn(_)||_[nn]))break e;if((y||x)&&(x=m.window===m?m:(x=m.ownerDocument)?x.defaultView||x.parentWindow:window,y?(_=n.relatedTarget||n.toElement,y=u,_=_?Vn(_):null,_!==null&&(T=nr(_),_!==T||_.tag!==5&&_.tag!==6)&&(_=null)):(y=null,_=u),y!==_)){if(w=Cu,S="onMouseLeave",p="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(w=Tu,S="onPointerLeave",p="onPointerEnter",f="pointer"),T=y==null?x:yr(y),g=_==null?x:yr(_),x=new w(S,f+"leave",y,n,m),x.target=T,x.relatedTarget=g,S=null,Vn(m)===u&&(w=new w(p,f+"enter",_,n,m),w.target=g,w.relatedTarget=T,S=w),T=S,y&&_)t:{for(w=y,p=_,f=0,g=w;g;g=ur(g))f++;for(g=0,S=p;S;S=ur(S))g++;for(;0<f-g;)w=ur(w),f--;for(;0<g-f;)p=ur(p),g--;for(;f--;){if(w===p||p!==null&&w===p.alternate)break t;w=ur(w),p=ur(p)}w=null}else w=null;y!==null&&Mu(h,x,y,w,!1),_!==null&&T!==null&&Mu(h,T,_,w,!0)}}e:{if(x=u?yr(u):window,y=x.nodeName&&x.nodeName.toLowerCase(),y==="select"||y==="input"&&x.type==="file")var A=L0;else if(Iu(x))if($f)A=P0;else{A=D0;var P=A0}else(y=x.nodeName)&&y.toLowerCase()==="input"&&(x.type==="checkbox"||x.type==="radio")&&(A=N0);if(A&&(A=A(e,u))){Uf(h,A,n,m);break e}P&&P(e,x,u),e==="focusout"&&(P=x._wrapperState)&&P.controlled&&x.type==="number"&&Ys(x,"number",x.value)}switch(P=u?yr(u):window,e){case"focusin":(Iu(P)||P.contentEditable==="true")&&(xr=P,ia=u,vo=null);break;case"focusout":vo=ia=xr=null;break;case"mousedown":la=!0;break;case"contextmenu":case"mouseup":case"dragend":la=!1,Pu(h,n,m);break;case"selectionchange":if(M0)break;case"keydown":case"keyup":Pu(h,n,m)}var F;if(tc)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else hr?Wf(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Mf&&n.locale!=="ko"&&(hr||C!=="onCompositionStart"?C==="onCompositionEnd"&&hr&&(F=Ff()):(vn=m,Za="value"in vn?vn.value:vn.textContent,hr=!0)),P=Yi(u,C),0<P.length&&(C=new ju(C,e,null,n,m),h.push({event:C,listeners:P}),F?C.data=F:(F=Bf(n),F!==null&&(C.data=F)))),(F=j0?T0(e,n):R0(e,n))&&(u=Yi(u,"onBeforeInput"),0<u.length&&(m=new ju("onBeforeInput","beforeinput",null,n,m),h.push({event:m,listeners:u}),m.data=F))}Jf(h,t)})}function No(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yi(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=To(e,n),i!=null&&r.unshift(No(e,i,o)),i=To(e,t),i!=null&&r.push(No(e,i,o))),e=e.return}return r}function ur(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=To(n,i),c!=null&&s.unshift(No(n,c,a))):o||(c=To(n,i),c!=null&&s.push(No(n,c,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var $0=/\r\n?/g,H0=/\u0000|\uFFFD/g;function Wu(e){return(typeof e=="string"?e:""+e).replace($0,`
38
- `).replace(H0,"")}function hi(e,t,n){if(t=Wu(t),Wu(e)!==t&&n)throw Error(U(425))}function Xi(){}var sa=null,aa=null;function ca(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 ua=typeof setTimeout=="function"?setTimeout:void 0,V0=typeof clearTimeout=="function"?clearTimeout:void 0,Bu=typeof Promise=="function"?Promise:void 0,G0=typeof queueMicrotask=="function"?queueMicrotask:typeof Bu<"u"?function(e){return Bu.resolve(null).then(e).catch(Y0)}:ua;function Y0(e){setTimeout(function(){throw e})}function gs(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),Io(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Io(t)}function kn(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 Uu(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 Vr=Math.random().toString(36).slice(2),$t="__reactFiber$"+Vr,Po="__reactProps$"+Vr,nn="__reactContainer$"+Vr,da="__reactEvents$"+Vr,X0="__reactListeners$"+Vr,Q0="__reactHandles$"+Vr;function Vn(e){var t=e[$t];if(t)return t;for(var n=e.parentNode;n;){if(t=n[nn]||n[$t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Uu(e);e!==null;){if(n=e[$t])return n;e=Uu(e)}return t}e=n,n=e.parentNode}return null}function Go(e){return e=e[$t]||e[nn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function yr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(U(33))}function yl(e){return e[Po]||null}var fa=[],vr=-1;function An(e){return{current:e}}function be(e){0>vr||(e.current=fa[vr],fa[vr]=null,vr--)}function we(e,t){vr++,fa[vr]=e.current,e.current=t}var zn={},Je=An(zn),ft=An(!1),Kn=zn;function Dr(e,t){var n=e.type.contextTypes;if(!n)return zn;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 pt(e){return e=e.childContextTypes,e!=null}function Qi(){be(ft),be(Je)}function $u(e,t,n){if(Je.current!==zn)throw Error(U(168));we(Je,t),we(ft,n)}function tp(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(U(108,Ah(e)||"Unknown",o));return Re({},n,r)}function Ki(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zn,Kn=Je.current,we(Je,e),we(ft,ft.current),!0}function Hu(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=tp(e,t,Kn),r.__reactInternalMemoizedMergedChildContext=e,be(ft),be(Je),we(Je,e)):be(ft),we(ft,n)}var qt=null,vl=!1,hs=!1;function np(e){qt===null?qt=[e]:qt.push(e)}function K0(e){vl=!0,np(e)}function Dn(){if(!hs&&qt!==null){hs=!0;var e=0,t=me;try{var n=qt;for(me=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}qt=null,vl=!1}catch(o){throw qt!==null&&(qt=qt.slice(e+1)),jf(Xa,Dn),o}finally{me=t,hs=!1}}return null}var _r=[],wr=0,qi=null,Zi=0,kt=[],Et=0,qn=null,Zt=1,Jt="";function Un(e,t){_r[wr++]=Zi,_r[wr++]=qi,qi=e,Zi=t}function rp(e,t,n){kt[Et++]=Zt,kt[Et++]=Jt,kt[Et++]=qn,qn=e;var r=Zt;e=Jt;var o=32-Nt(r)-1;r&=~(1<<o),n+=1;var i=32-Nt(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Zt=1<<32-Nt(t)+o|n<<o|r,Jt=i+e}else Zt=1<<i|n<<o|r,Jt=e}function rc(e){e.return!==null&&(Un(e,1),rp(e,1,0))}function oc(e){for(;e===qi;)qi=_r[--wr],_r[wr]=null,Zi=_r[--wr],_r[wr]=null;for(;e===qn;)qn=kt[--Et],kt[Et]=null,Jt=kt[--Et],kt[Et]=null,Zt=kt[--Et],kt[Et]=null}var vt=null,yt=null,Ee=!1,Dt=null;function op(e,t){var n=Ct(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 Vu(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,vt=e,yt=kn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,vt=e,yt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=qn!==null?{id:Zt,overflow:Jt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ct(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,vt=e,yt=null,!0):!1;default:return!1}}function pa(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ga(e){if(Ee){var t=yt;if(t){var n=t;if(!Vu(e,t)){if(pa(e))throw Error(U(418));t=kn(n.nextSibling);var r=vt;t&&Vu(e,t)?op(r,n):(e.flags=e.flags&-4097|2,Ee=!1,vt=e)}}else{if(pa(e))throw Error(U(418));e.flags=e.flags&-4097|2,Ee=!1,vt=e}}}function Gu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;vt=e}function xi(e){if(e!==vt)return!1;if(!Ee)return Gu(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ca(e.type,e.memoizedProps)),t&&(t=yt)){if(pa(e))throw ip(),Error(U(418));for(;t;)op(e,t),t=kn(t.nextSibling)}if(Gu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){yt=kn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}yt=null}}else yt=vt?kn(e.stateNode.nextSibling):null;return!0}function ip(){for(var e=yt;e;)e=kn(e.nextSibling)}function Nr(){yt=vt=null,Ee=!1}function ic(e){Dt===null?Dt=[e]:Dt.push(e)}var q0=sn.ReactCurrentBatchConfig;function eo(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(U(309));var r=n.stateNode}if(!r)throw Error(U(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(U(284));if(!n._owner)throw Error(U(290,e))}return e}function mi(e,t){throw e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Yu(e){var t=e._init;return t(e._payload)}function lp(e){function t(p,f){if(e){var g=p.deletions;g===null?(p.deletions=[f],p.flags|=16):g.push(f)}}function n(p,f){if(!e)return null;for(;f!==null;)t(p,f),f=f.sibling;return null}function r(p,f){for(p=new Map;f!==null;)f.key!==null?p.set(f.key,f):p.set(f.index,f),f=f.sibling;return p}function o(p,f){return p=Tn(p,f),p.index=0,p.sibling=null,p}function i(p,f,g){return p.index=g,e?(g=p.alternate,g!==null?(g=g.index,g<f?(p.flags|=2,f):g):(p.flags|=2,f)):(p.flags|=1048576,f)}function s(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,f,g,S){return f===null||f.tag!==6?(f=Ss(g,p.mode,S),f.return=p,f):(f=o(f,g),f.return=p,f)}function c(p,f,g,S){var A=g.type;return A===gr?m(p,f,g.props.children,S,g.key):f!==null&&(f.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===gn&&Yu(A)===f.type)?(S=o(f,g.props),S.ref=eo(p,f,g),S.return=p,S):(S=Pi(g.type,g.key,g.props,null,p.mode,S),S.ref=eo(p,f,g),S.return=p,S)}function u(p,f,g,S){return f===null||f.tag!==4||f.stateNode.containerInfo!==g.containerInfo||f.stateNode.implementation!==g.implementation?(f=bs(g,p.mode,S),f.return=p,f):(f=o(f,g.children||[]),f.return=p,f)}function m(p,f,g,S,A){return f===null||f.tag!==7?(f=Qn(g,p.mode,S,A),f.return=p,f):(f=o(f,g),f.return=p,f)}function h(p,f,g){if(typeof f=="string"&&f!==""||typeof f=="number")return f=Ss(""+f,p.mode,g),f.return=p,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case li:return g=Pi(f.type,f.key,f.props,null,p.mode,g),g.ref=eo(p,null,f),g.return=p,g;case pr:return f=bs(f,p.mode,g),f.return=p,f;case gn:var S=f._init;return h(p,S(f._payload),g)}if(co(f)||Qr(f))return f=Qn(f,p.mode,g,null),f.return=p,f;mi(p,f)}return null}function x(p,f,g,S){var A=f!==null?f.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return A!==null?null:a(p,f,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case li:return g.key===A?c(p,f,g,S):null;case pr:return g.key===A?u(p,f,g,S):null;case gn:return A=g._init,x(p,f,A(g._payload),S)}if(co(g)||Qr(g))return A!==null?null:m(p,f,g,S,null);mi(p,g)}return null}function y(p,f,g,S,A){if(typeof S=="string"&&S!==""||typeof S=="number")return p=p.get(g)||null,a(f,p,""+S,A);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case li:return p=p.get(S.key===null?g:S.key)||null,c(f,p,S,A);case pr:return p=p.get(S.key===null?g:S.key)||null,u(f,p,S,A);case gn:var P=S._init;return y(p,f,g,P(S._payload),A)}if(co(S)||Qr(S))return p=p.get(g)||null,m(f,p,S,A,null);mi(f,S)}return null}function _(p,f,g,S){for(var A=null,P=null,F=f,C=f=0,G=null;F!==null&&C<g.length;C++){F.index>C?(G=F,F=null):G=F.sibling;var H=x(p,F,g[C],S);if(H===null){F===null&&(F=G);break}e&&F&&H.alternate===null&&t(p,F),f=i(H,f,C),P===null?A=H:P.sibling=H,P=H,F=G}if(C===g.length)return n(p,F),Ee&&Un(p,C),A;if(F===null){for(;C<g.length;C++)F=h(p,g[C],S),F!==null&&(f=i(F,f,C),P===null?A=F:P.sibling=F,P=F);return Ee&&Un(p,C),A}for(F=r(p,F);C<g.length;C++)G=y(F,p,C,g[C],S),G!==null&&(e&&G.alternate!==null&&F.delete(G.key===null?C:G.key),f=i(G,f,C),P===null?A=G:P.sibling=G,P=G);return e&&F.forEach(function(ee){return t(p,ee)}),Ee&&Un(p,C),A}function w(p,f,g,S){var A=Qr(g);if(typeof A!="function")throw Error(U(150));if(g=A.call(g),g==null)throw Error(U(151));for(var P=A=null,F=f,C=f=0,G=null,H=g.next();F!==null&&!H.done;C++,H=g.next()){F.index>C?(G=F,F=null):G=F.sibling;var ee=x(p,F,H.value,S);if(ee===null){F===null&&(F=G);break}e&&F&&ee.alternate===null&&t(p,F),f=i(ee,f,C),P===null?A=ee:P.sibling=ee,P=ee,F=G}if(H.done)return n(p,F),Ee&&Un(p,C),A;if(F===null){for(;!H.done;C++,H=g.next())H=h(p,H.value,S),H!==null&&(f=i(H,f,C),P===null?A=H:P.sibling=H,P=H);return Ee&&Un(p,C),A}for(F=r(p,F);!H.done;C++,H=g.next())H=y(F,p,C,H.value,S),H!==null&&(e&&H.alternate!==null&&F.delete(H.key===null?C:H.key),f=i(H,f,C),P===null?A=H:P.sibling=H,P=H);return e&&F.forEach(function(ae){return t(p,ae)}),Ee&&Un(p,C),A}function T(p,f,g,S){if(typeof g=="object"&&g!==null&&g.type===gr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case li:e:{for(var A=g.key,P=f;P!==null;){if(P.key===A){if(A=g.type,A===gr){if(P.tag===7){n(p,P.sibling),f=o(P,g.props.children),f.return=p,p=f;break e}}else if(P.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===gn&&Yu(A)===P.type){n(p,P.sibling),f=o(P,g.props),f.ref=eo(p,P,g),f.return=p,p=f;break e}n(p,P);break}else t(p,P);P=P.sibling}g.type===gr?(f=Qn(g.props.children,p.mode,S,g.key),f.return=p,p=f):(S=Pi(g.type,g.key,g.props,null,p.mode,S),S.ref=eo(p,f,g),S.return=p,p=S)}return s(p);case pr:e:{for(P=g.key;f!==null;){if(f.key===P)if(f.tag===4&&f.stateNode.containerInfo===g.containerInfo&&f.stateNode.implementation===g.implementation){n(p,f.sibling),f=o(f,g.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else t(p,f);f=f.sibling}f=bs(g,p.mode,S),f.return=p,p=f}return s(p);case gn:return P=g._init,T(p,f,P(g._payload),S)}if(co(g))return _(p,f,g,S);if(Qr(g))return w(p,f,g,S);mi(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,f!==null&&f.tag===6?(n(p,f.sibling),f=o(f,g),f.return=p,p=f):(n(p,f),f=Ss(g,p.mode,S),f.return=p,p=f),s(p)):n(p,f)}return T}var Pr=lp(!0),sp=lp(!1),Ji=An(null),el=null,Sr=null,lc=null;function sc(){lc=Sr=el=null}function ac(e){var t=Ji.current;be(Ji),e._currentValue=t}function ha(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 Rr(e,t){el=e,lc=Sr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(dt=!0),e.firstContext=null)}function Tt(e){var t=e._currentValue;if(lc!==e)if(e={context:e,memoizedValue:t,next:null},Sr===null){if(el===null)throw Error(U(308));Sr=e,el.dependencies={lanes:0,firstContext:e}}else Sr=Sr.next=e;return t}var Gn=null;function cc(e){Gn===null?Gn=[e]:Gn.push(e)}function ap(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,cc(t)):(n.next=o.next,o.next=n),t.interleaved=n,rn(e,r)}function rn(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 hn=!1;function uc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cp(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 en(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function En(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,he&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,rn(e,n)}return o=r.interleaved,o===null?(t.next=t,cc(r)):(t.next=o.next,o.next=t),r.interleaved=t,rn(e,n)}function zi(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,Qa(e,n)}}function Xu(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 tl(e,t,n,r){var o=e.updateQueue;hn=!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 _=e,w=a;switch(x=t,y=n,w.tag){case 1:if(_=w.payload,typeof _=="function"){h=_.call(y,h,x);break e}h=_;break e;case 3:_.flags=_.flags&-65537|128;case 0:if(_=w.payload,x=typeof _=="function"?_.call(y,h,x):_,x==null)break e;h=Re({},h,x);break e;case 2:hn=!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);Jn|=s,e.lanes=s,e.memoizedState=h}}function Qu(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(U(191,o));o.call(r)}}}var Yo={},Gt=An(Yo),Oo=An(Yo),Fo=An(Yo);function Yn(e){if(e===Yo)throw Error(U(174));return e}function dc(e,t){switch(we(Fo,t),we(Oo,e),we(Gt,Yo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Qs(t,e)}be(Gt),we(Gt,t)}function Or(){be(Gt),be(Oo),be(Fo)}function up(e){Yn(Fo.current);var t=Yn(Gt.current),n=Qs(t,e.type);t!==n&&(we(Oo,e),we(Gt,n))}function fc(e){Oo.current===e&&(be(Gt),be(Oo))}var je=An(0);function nl(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 xs=[];function pc(){for(var e=0;e<xs.length;e++)xs[e]._workInProgressVersionPrimary=null;xs.length=0}var Ii=sn.ReactCurrentDispatcher,ms=sn.ReactCurrentBatchConfig,Zn=0,Te=null,Oe=null,We=null,rl=!1,_o=!1,Mo=0,Z0=0;function Qe(){throw Error(U(321))}function gc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ot(e[n],t[n]))return!1;return!0}function hc(e,t,n,r,o,i){if(Zn=i,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ii.current=e===null||e.memoizedState===null?nx:rx,e=n(r,o),_o){i=0;do{if(_o=!1,Mo=0,25<=i)throw Error(U(301));i+=1,We=Oe=null,t.updateQueue=null,Ii.current=ox,e=n(r,o)}while(_o)}if(Ii.current=ol,t=Oe!==null&&Oe.next!==null,Zn=0,We=Oe=Te=null,rl=!1,t)throw Error(U(300));return e}function xc(){var e=Mo!==0;return Mo=0,e}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?Te.memoizedState=We=e:We=We.next=e,We}function Rt(){if(Oe===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=We===null?Te.memoizedState:We.next;if(t!==null)We=t,Oe=e;else{if(e===null)throw Error(U(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},We===null?Te.memoizedState=We=e:We=We.next=e}return We}function Wo(e,t){return typeof t=="function"?t(e):t}function ys(e){var t=Rt(),n=t.queue;if(n===null)throw Error(U(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((Zn&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,Te.lanes|=m,Jn|=m}u=u.next}while(u!==null&&u!==i);c===null?s=r:c.next=a,Ot(r,t.memoizedState)||(dt=!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,Te.lanes|=i,Jn|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function vs(e){var t=Rt(),n=t.queue;if(n===null)throw Error(U(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);Ot(i,t.memoizedState)||(dt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function dp(){}function fp(e,t){var n=Te,r=Rt(),o=t(),i=!Ot(r.memoizedState,o);if(i&&(r.memoizedState=o,dt=!0),r=r.queue,mc(hp.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||We!==null&&We.memoizedState.tag&1){if(n.flags|=2048,Bo(9,gp.bind(null,n,r,o,t),void 0,null),Ue===null)throw Error(U(349));Zn&30||pp(n,t,o)}return o}function pp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gp(e,t,n,r){t.value=n,t.getSnapshot=r,xp(t)&&mp(e)}function hp(e,t,n){return n(function(){xp(t)&&mp(e)})}function xp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ot(e,n)}catch{return!0}}function mp(e){var t=rn(e,1);t!==null&&Pt(t,e,1,-1)}function Ku(e){var t=Ut();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Wo,lastRenderedState:e},t.queue=e,e=e.dispatch=tx.bind(null,Te,e),[t.memoizedState,e]}function Bo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.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 yp(){return Rt().memoizedState}function Li(e,t,n,r){var o=Ut();Te.flags|=e,o.memoizedState=Bo(1|t,n,void 0,r===void 0?null:r)}function _l(e,t,n,r){var o=Rt();r=r===void 0?null:r;var i=void 0;if(Oe!==null){var s=Oe.memoizedState;if(i=s.destroy,r!==null&&gc(r,s.deps)){o.memoizedState=Bo(t,n,i,r);return}}Te.flags|=e,o.memoizedState=Bo(1|t,n,i,r)}function qu(e,t){return Li(8390656,8,e,t)}function mc(e,t){return _l(2048,8,e,t)}function vp(e,t){return _l(4,2,e,t)}function _p(e,t){return _l(4,4,e,t)}function wp(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 Sp(e,t,n){return n=n!=null?n.concat([e]):null,_l(4,4,wp.bind(null,t,e),n)}function yc(){}function bp(e,t){var n=Rt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function kp(e,t){var n=Rt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ep(e,t,n){return Zn&21?(Ot(n,t)||(n=zf(),Te.lanes|=n,Jn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,dt=!0),e.memoizedState=n)}function J0(e,t){var n=me;me=n!==0&&4>n?n:4,e(!0);var r=ms.transition;ms.transition={};try{e(!1),t()}finally{me=n,ms.transition=r}}function Cp(){return Rt().memoizedState}function ex(e,t,n){var r=jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jp(e))Tp(t,n);else if(n=ap(e,t,n,r),n!==null){var o=nt();Pt(n,e,r,o),Rp(n,t,r)}}function tx(e,t,n){var r=jn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jp(e))Tp(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,Ot(a,s)){var c=t.interleaved;c===null?(o.next=o,cc(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=ap(e,t,o,r),n!==null&&(o=nt(),Pt(n,e,r,o),Rp(n,t,r))}}function jp(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Tp(e,t){_o=rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qa(e,n)}}var ol={readContext:Tt,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},nx={readContext:Tt,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:Tt,useEffect:qu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Li(4194308,4,wp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Li(4194308,4,e,t)},useInsertionEffect:function(e,t){return Li(4,2,e,t)},useMemo:function(e,t){var n=Ut();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ut();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=ex.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:Ku,useDebugValue:yc,useDeferredValue:function(e){return Ut().memoizedState=e},useTransition:function(){var e=Ku(!1),t=e[0];return e=J0.bind(null,e[1]),Ut().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,o=Ut();if(Ee){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Ue===null)throw Error(U(349));Zn&30||pp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,qu(hp.bind(null,r,i,e),[e]),r.flags|=2048,Bo(9,gp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ut(),t=Ue.identifierPrefix;if(Ee){var n=Jt,r=Zt;n=(r&~(1<<32-Nt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Mo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Z0++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},rx={readContext:Tt,useCallback:bp,useContext:Tt,useEffect:mc,useImperativeHandle:Sp,useInsertionEffect:vp,useLayoutEffect:_p,useMemo:kp,useReducer:ys,useRef:yp,useState:function(){return ys(Wo)},useDebugValue:yc,useDeferredValue:function(e){var t=Rt();return Ep(t,Oe.memoizedState,e)},useTransition:function(){var e=ys(Wo)[0],t=Rt().memoizedState;return[e,t]},useMutableSource:dp,useSyncExternalStore:fp,useId:Cp,unstable_isNewReconciler:!1},ox={readContext:Tt,useCallback:bp,useContext:Tt,useEffect:mc,useImperativeHandle:Sp,useInsertionEffect:vp,useLayoutEffect:_p,useMemo:kp,useReducer:vs,useRef:yp,useState:function(){return vs(Wo)},useDebugValue:yc,useDeferredValue:function(e){var t=Rt();return Oe===null?t.memoizedState=e:Ep(t,Oe.memoizedState,e)},useTransition:function(){var e=vs(Wo)[0],t=Rt().memoizedState;return[e,t]},useMutableSource:dp,useSyncExternalStore:fp,useId:Cp,unstable_isNewReconciler:!1};function Lt(e,t){if(e&&e.defaultProps){t=Re({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xa(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Re({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var wl={isMounted:function(e){return(e=e._reactInternals)?nr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=nt(),o=jn(e),i=en(r,o);i.payload=t,n!=null&&(i.callback=n),t=En(e,i,o),t!==null&&(Pt(t,e,o,r),zi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=nt(),o=jn(e),i=en(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=En(e,i,o),t!==null&&(Pt(t,e,o,r),zi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=nt(),r=jn(e),o=en(n,r);o.tag=2,t!=null&&(o.callback=t),t=En(e,o,r),t!==null&&(Pt(t,e,r,n),zi(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?!Ao(n,r)||!Ao(o,i):!0}function zp(e,t,n){var r=!1,o=zn,i=t.contextType;return typeof i=="object"&&i!==null?i=Tt(i):(o=pt(t)?Kn:Je.current,r=t.contextTypes,i=(r=r!=null)?Dr(e,o):zn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=wl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ju(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&&wl.enqueueReplaceState(t,t.state,null)}function ma(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},uc(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Tt(i):(i=pt(t)?Kn:Je.current,o.context=Dr(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(xa(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&&wl.enqueueReplaceState(o,o.state,null),tl(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Fr(e,t){try{var n="",r=t;do n+=Lh(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 _s(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ya(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ix=typeof WeakMap=="function"?WeakMap:Map;function Ip(e,t,n){n=en(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ll||(ll=!0,Ta=r),ya(e,t)},n}function Lp(e,t,n){n=en(-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(){ya(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ya(e,t),typeof r!="function"&&(Cn===null?Cn=new Set([this]):Cn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function ed(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ix;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=vx.bind(null,e,t,n),t.then(e,e))}function td(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 nd(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=en(-1,1),t.tag=2,En(n,t,1))),n.lanes|=1),e)}var lx=sn.ReactCurrentOwner,dt=!1;function tt(e,t,n,r){t.child=e===null?sp(t,null,n,r):Pr(t,e.child,n,r)}function rd(e,t,n,r,o){n=n.render;var i=t.ref;return Rr(t,o),r=hc(e,t,n,r,i,o),n=xc(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,on(e,t,o)):(Ee&&n&&rc(t),t.flags|=1,tt(e,t,r,o),t.child)}function od(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Cc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Ap(e,t,i,r,o)):(e=Pi(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:Ao,n(s,r)&&e.ref===t.ref)return on(e,t,o)}return t.flags|=1,e=Tn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Ap(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Ao(i,r)&&e.ref===t.ref)if(dt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(dt=!0);else return t.lanes=e.lanes,on(e,t,o)}return va(e,t,n,r,o)}function Dp(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(kr,xt),xt|=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(kr,xt),xt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,we(kr,xt),xt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,we(kr,xt),xt|=r;return tt(e,t,o,n),t.child}function Np(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function va(e,t,n,r,o){var i=pt(n)?Kn:Je.current;return i=Dr(t,i),Rr(t,o),n=hc(e,t,n,r,i,o),r=xc(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,on(e,t,o)):(Ee&&r&&rc(t),t.flags|=1,tt(e,t,n,o),t.child)}function id(e,t,n,r,o){if(pt(n)){var i=!0;Ki(t)}else i=!1;if(Rr(t,o),t.stateNode===null)Ai(e,t),zp(t,n,r),ma(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=Tt(u):(u=pt(n)?Kn:Je.current,u=Dr(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)&&Ju(t,s,r,u),hn=!1;var x=t.memoizedState;s.state=x,tl(t,r,s,o),c=t.memoizedState,a!==r||x!==c||ft.current||hn?(typeof m=="function"&&(xa(t,n,m,r),c=t.memoizedState),(a=hn||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,cp(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Lt(t.type,a),s.props=u,h=t.pendingProps,x=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=Tt(c):(c=pt(n)?Kn:Je.current,c=Dr(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)&&Ju(t,s,r,c),hn=!1,x=t.memoizedState,s.state=x,tl(t,r,s,o);var _=t.memoizedState;a!==h||x!==_||ft.current||hn?(typeof y=="function"&&(xa(t,n,y,r),_=t.memoizedState),(u=hn||Zu(t,n,u,r,x,_,c)||!1)?(m||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,_,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,_,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=_),s.props=r,s.state=_,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 _a(e,t,n,r,i,o)}function _a(e,t,n,r,o,i){Np(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Hu(t,n,!1),on(e,t,i);r=t.stateNode,lx.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Pr(t,e.child,null,i),t.child=Pr(t,null,a,i)):tt(e,t,a,i),t.memoizedState=r.state,o&&Hu(t,n,!0),t.child}function Pp(e){var t=e.stateNode;t.pendingContext?$u(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$u(e,t.context,!1),dc(e,t.containerInfo)}function ld(e,t,n,r,o){return Nr(),ic(o),t.flags|=256,tt(e,t,n,r),t.child}var wa={dehydrated:null,treeContext:null,retryLane:0};function Sa(e){return{baseLanes:e,cachePool:null,transitions:null}}function Op(e,t,n){var r=t.pendingProps,o=je.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(je,o&1),e===null)return ga(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=kl(s,r,0,null),e=Qn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Sa(n),t.memoizedState=wa,e):vc(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return sx(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=Tn(o,c),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Tn(a,i):(i=Qn(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?Sa(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=wa,r}return i=e.child,e=i.sibling,r=Tn(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 vc(e,t){return t=kl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function yi(e,t,n,r){return r!==null&&ic(r),Pr(t,e.child,null,n),e=vc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sx(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=_s(Error(U(422))),yi(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=kl({mode:"visible",children:r.children},o,0,null),i=Qn(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Pr(t,e.child,null,s),t.child.memoizedState=Sa(s),t.memoizedState=wa,i);if(!(t.mode&1))return yi(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(U(419)),r=_s(i,r,void 0),yi(e,t,s,r)}if(a=(s&e.childLanes)!==0,dt||a){if(r=Ue,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,rn(e,o),Pt(r,e,o,-1))}return Ec(),r=_s(Error(U(421))),yi(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=_x.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,yt=kn(o.nextSibling),vt=t,Ee=!0,Dt=null,e!==null&&(kt[Et++]=Zt,kt[Et++]=Jt,kt[Et++]=qn,Zt=e.id,Jt=e.overflow,qn=t),t=vc(t,r.children),t.flags|=4096,t)}function sd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ha(e.return,t,n)}function ws(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 Fp(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(tt(e,t,r.children,n),r=je.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&&sd(e,n,t);else if(e.tag===19)sd(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(je,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&&nl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ws(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&&nl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ws(t,!0,n,null,i);break;case"together":ws(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ai(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function on(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=Tn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Tn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ax(e,t,n){switch(t.tag){case 3:Pp(t),Nr();break;case 5:up(t);break;case 1:pt(t.type)&&Ki(t);break;case 4:dc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;we(Ji,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(we(je,je.current&1),t.flags|=128,null):n&t.child.childLanes?Op(e,t,n):(we(je,je.current&1),e=on(e,t,n),e!==null?e.sibling:null);we(je,je.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Fp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),we(je,je.current),r)break;return null;case 22:case 23:return t.lanes=0,Dp(e,t,n)}return on(e,t,n)}var Mp,ba,Wp,Bp;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}};ba=function(){};Wp=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Yn(Gt.current);var i=null;switch(n){case"input":o=Vs(e,o),r=Vs(e,r),i=[];break;case"select":o=Re({},o,{value:void 0}),r=Re({},r,{value:void 0}),i=[];break;case"textarea":o=Xs(e,o),r=Xs(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Xi)}Ks(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"&&(Co.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"&&(Co.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)}};Bp=function(e,t,n,r){n!==r&&(t.flags|=4)};function to(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 Ke(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 cx(e,t,n){var r=t.pendingProps;switch(oc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return pt(t.type)&&Qi(),Ke(t),null;case 3:return r=t.stateNode,Or(),be(ft),be(Je),pc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dt!==null&&(Ia(Dt),Dt=null))),ba(e,t),Ke(t),null;case 5:fc(t);var o=Yn(Fo.current);if(n=t.type,e!==null&&t.stateNode!=null)Wp(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(U(166));return Ke(t),null}if(e=Yn(Gt.current),xi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[$t]=t,r[Po]=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<fo.length;o++)Se(fo[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":xu(r,i),Se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Se("invalid",r);break;case"textarea":yu(r,i),Se("invalid",r)}Ks(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&&hi(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&hi(r.textContent,a,e),o=["children",""+a]):Co.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Se("scroll",r)}switch(n){case"input":si(r),mu(r,i,!0);break;case"textarea":si(r),vu(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Xi)}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=hf(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[$t]=t,e[Po]=r,Mp(e,t,!1,!1),t.stateNode=e;e:{switch(s=qs(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<fo.length;o++)Se(fo[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":xu(e,r),o=Vs(e,r),Se("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Re({},r,{value:void 0}),Se("invalid",e);break;case"textarea":yu(e,r),o=Xs(e,r),Se("invalid",e);break;default:o=r}Ks(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];i==="style"?yf(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&xf(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&jo(e,c):typeof c=="number"&&jo(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Co.hasOwnProperty(i)?c!=null&&i==="onScroll"&&Se("scroll",e):c!=null&&$a(e,i,c,s))}switch(n){case"input":si(e),mu(e,r,!1);break;case"textarea":si(e),vu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Rn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Er(e,!!r.multiple,i,!1):r.defaultValue!=null&&Er(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Xi)}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 Ke(t),null;case 6:if(e&&t.stateNode!=null)Bp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(n=Yn(Fo.current),Yn(Gt.current),xi(t)){if(r=t.stateNode,n=t.memoizedProps,r[$t]=t,(i=r.nodeValue!==n)&&(e=vt,e!==null))switch(e.tag){case 3:hi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&hi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[$t]=t,t.stateNode=r}return Ke(t),null;case 13:if(be(je),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&yt!==null&&t.mode&1&&!(t.flags&128))ip(),Nr(),t.flags|=98560,i=!1;else if(i=xi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(U(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(U(317));i[$t]=t}else Nr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ke(t),i=!1}else Dt!==null&&(Ia(Dt),Dt=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||je.current&1?Me===0&&(Me=3):Ec())),t.updateQueue!==null&&(t.flags|=4),Ke(t),null);case 4:return Or(),ba(e,t),e===null&&Do(t.stateNode.containerInfo),Ke(t),null;case 10:return ac(t.type._context),Ke(t),null;case 17:return pt(t.type)&&Qi(),Ke(t),null;case 19:if(be(je),i=t.memoizedState,i===null)return Ke(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)to(i,!1);else{if(Me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=nl(e),s!==null){for(t.flags|=128,to(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(je,je.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ae()>Mr&&(t.flags|=128,r=!0,to(i,!1),t.lanes=4194304)}else{if(!r)if(e=nl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),to(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ee)return Ke(t),null}else 2*Ae()-i.renderingStartTime>Mr&&n!==1073741824&&(t.flags|=128,r=!0,to(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=je.current,we(je,r?n&1|2:n&1),t):(Ke(t),null);case 22:case 23:return kc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xt&1073741824&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function ux(e,t){switch(oc(t),t.tag){case 1:return pt(t.type)&&Qi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Or(),be(ft),be(Je),pc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return fc(t),null;case 13:if(be(je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Nr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return be(je),null;case 4:return Or(),null;case 10:return ac(t.type._context),null;case 22:case 23:return kc(),null;case 24:return null;default:return null}}var vi=!1,qe=!1,dx=typeof WeakSet=="function"?WeakSet:Set,Q=null;function br(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function ka(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var ad=!1;function fx(e,t){if(sa=Vi,e=Gf(),nc(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(aa={focusedElem:e,selectionRange:n},Vi=!1,Q=t;Q!==null;)if(t=Q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Q=e;else for(;Q!==null;){t=Q;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var w=_.memoizedProps,T=_.memoizedState,p=t.stateNode,f=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Lt(t.type,w),T);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(S){Ie(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Q=e;break}Q=t.return}return _=ad,ad=!1,_}function wo(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&&ka(t,n,i)}o=o.next}while(o!==r)}}function Sl(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 Ea(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 Up(e){var t=e.alternate;t!==null&&(e.alternate=null,Up(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$t],delete t[Po],delete t[da],delete t[X0],delete t[Q0])),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 $p(e){return e.tag===5||e.tag===3||e.tag===4}function cd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$p(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 Ca(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=Xi));else if(r!==4&&(e=e.child,e!==null))for(Ca(e,t,n),e=e.sibling;e!==null;)Ca(e,t,n),e=e.sibling}function ja(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(ja(e,t,n),e=e.sibling;e!==null;)ja(e,t,n),e=e.sibling}var Ve=null,At=!1;function un(e,t,n){for(n=n.child;n!==null;)Hp(e,t,n),n=n.sibling}function Hp(e,t,n){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(gl,n)}catch{}switch(n.tag){case 5:qe||br(n,t);case 6:var r=Ve,o=At;Ve=null,un(e,t,n),Ve=r,At=o,Ve!==null&&(At?(e=Ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ve.removeChild(n.stateNode));break;case 18:Ve!==null&&(At?(e=Ve,n=n.stateNode,e.nodeType===8?gs(e.parentNode,n):e.nodeType===1&&gs(e,n),Io(e)):gs(Ve,n.stateNode));break;case 4:r=Ve,o=At,Ve=n.stateNode.containerInfo,At=!0,un(e,t,n),Ve=r,At=o;break;case 0:case 11:case 14:case 15:if(!qe&&(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)&&ka(n,t,s),o=o.next}while(o!==r)}un(e,t,n);break;case 1:if(!qe&&(br(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ie(n,t,a)}un(e,t,n);break;case 21:un(e,t,n);break;case 22:n.mode&1?(qe=(r=qe)||n.memoizedState!==null,un(e,t,n),qe=r):un(e,t,n);break;default:un(e,t,n)}}function ud(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new dx),t.forEach(function(r){var o=wx.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function It(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:Ve=a.stateNode,At=!1;break e;case 3:Ve=a.stateNode.containerInfo,At=!0;break e;case 4:Ve=a.stateNode.containerInfo,At=!0;break e}a=a.return}if(Ve===null)throw Error(U(160));Hp(i,s,o),Ve=null,At=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){Ie(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Vp(t,e),t=t.sibling}function Vp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(It(t,e),Bt(e),r&4){try{wo(3,e,e.return),Sl(3,e)}catch(w){Ie(e,e.return,w)}try{wo(5,e,e.return)}catch(w){Ie(e,e.return,w)}}break;case 1:It(t,e),Bt(e),r&512&&n!==null&&br(n,n.return);break;case 5:if(It(t,e),Bt(e),r&512&&n!==null&&br(n,n.return),e.flags&32){var o=e.stateNode;try{jo(o,"")}catch(w){Ie(e,e.return,w)}}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&&pf(o,i),qs(a,s);var u=qs(a,i);for(s=0;s<c.length;s+=2){var m=c[s],h=c[s+1];m==="style"?yf(o,h):m==="dangerouslySetInnerHTML"?xf(o,h):m==="children"?jo(o,h):$a(o,m,h,u)}switch(a){case"input":Gs(o,i);break;case"textarea":gf(o,i);break;case"select":var x=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?Er(o,!!i.multiple,y,!1):x!==!!i.multiple&&(i.defaultValue!=null?Er(o,!!i.multiple,i.defaultValue,!0):Er(o,!!i.multiple,i.multiple?[]:"",!1))}o[Po]=i}catch(w){Ie(e,e.return,w)}}break;case 6:if(It(t,e),Bt(e),r&4){if(e.stateNode===null)throw Error(U(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(w){Ie(e,e.return,w)}}break;case 3:if(It(t,e),Bt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Io(t.containerInfo)}catch(w){Ie(e,e.return,w)}break;case 4:It(t,e),Bt(e);break;case 13:It(t,e),Bt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Sc=Ae())),r&4&&ud(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(qe=(u=qe)||m,It(t,e),qe=u):It(t,e),Bt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!m&&e.mode&1)for(Q=e,m=e.child;m!==null;){for(h=Q=m;Q!==null;){switch(x=Q,y=x.child,x.tag){case 0:case 11:case 14:case 15:wo(4,x,x.return);break;case 1:br(x,x.return);var _=x.stateNode;if(typeof _.componentWillUnmount=="function"){r=x,n=x.return;try{t=r,_.props=t.memoizedProps,_.state=t.memoizedState,_.componentWillUnmount()}catch(w){Ie(r,n,w)}}break;case 5:br(x,x.return);break;case 22:if(x.memoizedState!==null){fd(h);continue}}y!==null?(y.return=x,Q=y):fd(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=mf("display",s))}catch(w){Ie(e,e.return,w)}}}else if(h.tag===6){if(m===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(w){Ie(e,e.return,w)}}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:It(t,e),Bt(e),r&4&&ud(e);break;case 21:break;default:It(t,e),Bt(e)}}function Bt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if($p(n)){var r=n;break e}n=n.return}throw Error(U(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(jo(o,""),r.flags&=-33);var i=cd(e);ja(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=cd(e);Ca(e,a,s);break;default:throw Error(U(161))}}catch(c){Ie(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function px(e,t,n){Q=e,Gp(e)}function Gp(e,t,n){for(var r=(e.mode&1)!==0;Q!==null;){var o=Q,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||vi;if(!s){var a=o.alternate,c=a!==null&&a.memoizedState!==null||qe;a=vi;var u=qe;if(vi=s,(qe=c)&&!u)for(Q=o;Q!==null;)s=Q,c=s.child,s.tag===22&&s.memoizedState!==null?pd(o):c!==null?(c.return=s,Q=c):pd(o);for(;i!==null;)Q=i,Gp(i),i=i.sibling;Q=o,vi=a,qe=u}dd(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,Q=i):dd(e)}}function dd(e){for(;Q!==null;){var t=Q;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:qe||Sl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!qe)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Lt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Qu(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}Qu(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&&Io(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}qe||t.flags&512&&Ea(t)}catch(x){Ie(t,t.return,x)}}if(t===e){Q=null;break}if(n=t.sibling,n!==null){n.return=t.return,Q=n;break}Q=t.return}}function fd(e){for(;Q!==null;){var t=Q;if(t===e){Q=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Q=n;break}Q=t.return}}function pd(e){for(;Q!==null;){var t=Q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Sl(4,t)}catch(c){Ie(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){Ie(t,o,c)}}var i=t.return;try{Ea(t)}catch(c){Ie(t,i,c)}break;case 5:var s=t.return;try{Ea(t)}catch(c){Ie(t,s,c)}}}catch(c){Ie(t,t.return,c)}if(t===e){Q=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Q=a;break}Q=t.return}}var gx=Math.ceil,il=sn.ReactCurrentDispatcher,_c=sn.ReactCurrentOwner,jt=sn.ReactCurrentBatchConfig,he=0,Ue=null,Ne=null,Ge=0,xt=0,kr=An(0),Me=0,Uo=null,Jn=0,bl=0,wc=0,So=null,ut=null,Sc=0,Mr=1/0,Kt=null,ll=!1,Ta=null,Cn=null,_i=!1,_n=null,sl=0,bo=0,Ra=null,Di=-1,Ni=0;function nt(){return he&6?Ae():Di!==-1?Di:Di=Ae()}function jn(e){return e.mode&1?he&2&&Ge!==0?Ge&-Ge:q0.transition!==null?(Ni===0&&(Ni=zf()),Ni):(e=me,e!==0||(e=window.event,e=e===void 0?16:Of(e.type)),e):1}function Pt(e,t,n,r){if(50<bo)throw bo=0,Ra=null,Error(U(185));Ho(e,n,r),(!(he&2)||e!==Ue)&&(e===Ue&&(!(he&2)&&(bl|=n),Me===4&&mn(e,Ge)),gt(e,r),n===1&&he===0&&!(t.mode&1)&&(Mr=Ae()+500,vl&&Dn()))}function gt(e,t){var n=e.callbackNode;qh(e,t);var r=Hi(e,e===Ue?Ge:0);if(r===0)n!==null&&Su(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Su(n),t===1)e.tag===0?K0(gd.bind(null,e)):np(gd.bind(null,e)),G0(function(){!(he&6)&&Dn()}),n=null;else{switch(If(r)){case 1:n=Xa;break;case 4:n=Tf;break;case 16:n=$i;break;case 536870912:n=Rf;break;default:n=$i}n=eg(n,Yp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Yp(e,t){if(Di=-1,Ni=0,he&6)throw Error(U(327));var n=e.callbackNode;if(zr()&&e.callbackNode!==n)return null;var r=Hi(e,e===Ue?Ge:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=al(e,r);else{t=r;var o=he;he|=2;var i=Qp();(Ue!==e||Ge!==t)&&(Kt=null,Mr=Ae()+500,Xn(e,t));do try{mx();break}catch(a){Xp(e,a)}while(!0);sc(),il.current=i,he=o,Ne!==null?t=0:(Ue=null,Ge=0,t=Me)}if(t!==0){if(t===2&&(o=na(e),o!==0&&(r=o,t=za(e,o))),t===1)throw n=Uo,Xn(e,0),mn(e,r),gt(e,Ae()),n;if(t===6)mn(e,r);else{if(o=e.current.alternate,!(r&30)&&!hx(o)&&(t=al(e,r),t===2&&(i=na(e),i!==0&&(r=i,t=za(e,i))),t===1))throw n=Uo,Xn(e,0),mn(e,r),gt(e,Ae()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(U(345));case 2:$n(e,ut,Kt);break;case 3:if(mn(e,r),(r&130023424)===r&&(t=Sc+500-Ae(),10<t)){if(Hi(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){nt(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ua($n.bind(null,e,ut,Kt),t);break}$n(e,ut,Kt);break;case 4:if(mn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Nt(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*gx(r/1960))-r,10<r){e.timeoutHandle=ua($n.bind(null,e,ut,Kt),r);break}$n(e,ut,Kt);break;case 5:$n(e,ut,Kt);break;default:throw Error(U(329))}}}return gt(e,Ae()),e.callbackNode===n?Yp.bind(null,e):null}function za(e,t){var n=So;return e.current.memoizedState.isDehydrated&&(Xn(e,t).flags|=256),e=al(e,t),e!==2&&(t=ut,ut=n,t!==null&&Ia(t)),e}function Ia(e){ut===null?ut=e:ut.push.apply(ut,e)}function hx(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(!Ot(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 mn(e,t){for(t&=~wc,t&=~bl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Nt(t),r=1<<n;e[n]=-1,t&=~r}}function gd(e){if(he&6)throw Error(U(327));zr();var t=Hi(e,0);if(!(t&1))return gt(e,Ae()),null;var n=al(e,t);if(e.tag!==0&&n===2){var r=na(e);r!==0&&(t=r,n=za(e,r))}if(n===1)throw n=Uo,Xn(e,0),mn(e,t),gt(e,Ae()),n;if(n===6)throw Error(U(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,$n(e,ut,Kt),gt(e,Ae()),null}function bc(e,t){var n=he;he|=1;try{return e(t)}finally{he=n,he===0&&(Mr=Ae()+500,vl&&Dn())}}function er(e){_n!==null&&_n.tag===0&&!(he&6)&&zr();var t=he;he|=1;var n=jt.transition,r=me;try{if(jt.transition=null,me=1,e)return e()}finally{me=r,jt.transition=n,he=t,!(he&6)&&Dn()}}function kc(){xt=kr.current,be(kr)}function Xn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,V0(n)),Ne!==null)for(n=Ne.return;n!==null;){var r=n;switch(oc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Qi();break;case 3:Or(),be(ft),be(Je),pc();break;case 5:fc(r);break;case 4:Or();break;case 13:be(je);break;case 19:be(je);break;case 10:ac(r.type._context);break;case 22:case 23:kc()}n=n.return}if(Ue=e,Ne=e=Tn(e.current,null),Ge=xt=t,Me=0,Uo=null,wc=bl=Jn=0,ut=So=null,Gn!==null){for(t=0;t<Gn.length;t++)if(n=Gn[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}Gn=null}return e}function Xp(e,t){do{var n=Ne;try{if(sc(),Ii.current=ol,rl){for(var r=Te.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}rl=!1}if(Zn=0,We=Oe=Te=null,_o=!1,Mo=0,_c.current=null,n===null||n.return===null){Me=1,Uo=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=td(s);if(y!==null){y.flags&=-257,nd(y,s,a,i,t),y.mode&1&&ed(i,u,t),t=y,c=u;var _=t.updateQueue;if(_===null){var w=new Set;w.add(c),t.updateQueue=w}else _.add(c);break e}else{if(!(t&1)){ed(i,u,t),Ec();break e}c=Error(U(426))}}else if(Ee&&a.mode&1){var T=td(s);if(T!==null){!(T.flags&65536)&&(T.flags|=256),nd(T,s,a,i,t),ic(Fr(c,a));break e}}i=c=Fr(c,a),Me!==4&&(Me=2),So===null?So=[i]:So.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var p=Ip(i,c,t);Xu(i,p);break e;case 1:a=c;var f=i.type,g=i.stateNode;if(!(i.flags&128)&&(typeof f.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Cn===null||!Cn.has(g)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=Lp(i,a,t);Xu(i,S);break e}}i=i.return}while(i!==null)}qp(n)}catch(A){t=A,Ne===n&&n!==null&&(Ne=n=n.return);continue}break}while(!0)}function Qp(){var e=il.current;return il.current=ol,e===null?ol:e}function Ec(){(Me===0||Me===3||Me===2)&&(Me=4),Ue===null||!(Jn&268435455)&&!(bl&268435455)||mn(Ue,Ge)}function al(e,t){var n=he;he|=2;var r=Qp();(Ue!==e||Ge!==t)&&(Kt=null,Xn(e,t));do try{xx();break}catch(o){Xp(e,o)}while(!0);if(sc(),he=n,il.current=r,Ne!==null)throw Error(U(261));return Ue=null,Ge=0,Me}function xx(){for(;Ne!==null;)Kp(Ne)}function mx(){for(;Ne!==null&&!Uh();)Kp(Ne)}function Kp(e){var t=Jp(e.alternate,e,xt);e.memoizedProps=e.pendingProps,t===null?qp(e):Ne=t,_c.current=null}function qp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ux(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=cx(n,t,xt),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 $n(e,t,n){var r=me,o=jt.transition;try{jt.transition=null,me=1,yx(e,t,n,r)}finally{jt.transition=o,me=r}return null}function yx(e,t,n,r){do zr();while(_n!==null);if(he&6)throw Error(U(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(U(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Zh(e,i),e===Ue&&(Ne=Ue=null,Ge=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||_i||(_i=!0,eg($i,function(){return zr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=jt.transition,jt.transition=null;var s=me;me=1;var a=he;he|=4,_c.current=null,fx(e,n),Vp(n,e),F0(aa),Vi=!!sa,aa=sa=null,e.current=n,px(n),$h(),he=a,me=s,jt.transition=i}else e.current=n;if(_i&&(_i=!1,_n=e,sl=o),i=e.pendingLanes,i===0&&(Cn=null),Gh(n.stateNode),gt(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(ll)throw ll=!1,e=Ta,Ta=null,e;return sl&1&&e.tag!==0&&zr(),i=e.pendingLanes,i&1?e===Ra?bo++:(bo=0,Ra=e):bo=0,Dn(),null}function zr(){if(_n!==null){var e=If(sl),t=jt.transition,n=me;try{if(jt.transition=null,me=16>e?16:e,_n===null)var r=!1;else{if(e=_n,_n=null,sl=0,he&6)throw Error(U(331));var o=he;for(he|=4,Q=e.current;Q!==null;){var i=Q,s=i.child;if(Q.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c<a.length;c++){var u=a[c];for(Q=u;Q!==null;){var m=Q;switch(m.tag){case 0:case 11:case 15:wo(8,m,i)}var h=m.child;if(h!==null)h.return=m,Q=h;else for(;Q!==null;){m=Q;var x=m.sibling,y=m.return;if(Up(m),m===u){Q=null;break}if(x!==null){x.return=y,Q=x;break}Q=y}}}var _=i.alternate;if(_!==null){var w=_.child;if(w!==null){_.child=null;do{var T=w.sibling;w.sibling=null,w=T}while(w!==null)}}Q=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,Q=s;else e:for(;Q!==null;){if(i=Q,i.flags&2048)switch(i.tag){case 0:case 11:case 15:wo(9,i,i.return)}var p=i.sibling;if(p!==null){p.return=i.return,Q=p;break e}Q=i.return}}var f=e.current;for(Q=f;Q!==null;){s=Q;var g=s.child;if(s.subtreeFlags&2064&&g!==null)g.return=s,Q=g;else e:for(s=f;Q!==null;){if(a=Q,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Sl(9,a)}}catch(A){Ie(a,a.return,A)}if(a===s){Q=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,Q=S;break e}Q=a.return}}if(he=o,Dn(),Vt&&typeof Vt.onPostCommitFiberRoot=="function")try{Vt.onPostCommitFiberRoot(gl,e)}catch{}r=!0}return r}finally{me=n,jt.transition=t}}return!1}function hd(e,t,n){t=Fr(n,t),t=Ip(e,t,1),e=En(e,t,1),t=nt(),e!==null&&(Ho(e,1,t),gt(e,t))}function Ie(e,t,n){if(e.tag===3)hd(e,e,n);else for(;t!==null;){if(t.tag===3){hd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Cn===null||!Cn.has(r))){e=Fr(n,e),e=Lp(t,e,1),t=En(t,e,1),e=nt(),t!==null&&(Ho(t,1,e),gt(t,e));break}}t=t.return}}function vx(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=nt(),e.pingedLanes|=e.suspendedLanes&n,Ue===e&&(Ge&n)===n&&(Me===4||Me===3&&(Ge&130023424)===Ge&&500>Ae()-Sc?Xn(e,0):wc|=n),gt(e,t)}function Zp(e,t){t===0&&(e.mode&1?(t=ui,ui<<=1,!(ui&130023424)&&(ui=4194304)):t=1);var n=nt();e=rn(e,t),e!==null&&(Ho(e,t,n),gt(e,n))}function _x(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zp(e,n)}function wx(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(U(314))}r!==null&&r.delete(t),Zp(e,n)}var Jp;Jp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return dt=!1,ax(e,t,n);dt=!!(e.flags&131072)}else dt=!1,Ee&&t.flags&1048576&&rp(t,Zi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ai(e,t),e=t.pendingProps;var o=Dr(t,Je.current);Rr(t,n),o=hc(null,t,r,e,o,n);var i=xc();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,pt(r)?(i=!0,Ki(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,uc(t),o.updater=wl,t.stateNode=o,o._reactInternals=t,ma(t,r,e,n),t=_a(null,t,r,!0,i,n)):(t.tag=0,Ee&&i&&rc(t),tt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ai(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=bx(r),e=Lt(r,e),o){case 0:t=va(null,t,r,e,n);break e;case 1:t=id(null,t,r,e,n);break e;case 11:t=rd(null,t,r,e,n);break e;case 14:t=od(null,t,r,Lt(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lt(r,o),va(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lt(r,o),id(e,t,r,o,n);case 3:e:{if(Pp(t),e===null)throw Error(U(387));r=t.pendingProps,i=t.memoizedState,o=i.element,cp(e,t),tl(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=Fr(Error(U(423)),t),t=ld(e,t,r,n,o);break e}else if(r!==o){o=Fr(Error(U(424)),t),t=ld(e,t,r,n,o);break e}else for(yt=kn(t.stateNode.containerInfo.firstChild),vt=t,Ee=!0,Dt=null,n=sp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Nr(),r===o){t=on(e,t,n);break e}tt(e,t,r,n)}t=t.child}return t;case 5:return up(t),e===null&&ga(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,ca(r,o)?s=null:i!==null&&ca(r,i)&&(t.flags|=32),Np(e,t),tt(e,t,s,n),t.child;case 6:return e===null&&ga(t),null;case 13:return Op(e,t,n);case 4:return dc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pr(t,null,r,n):tt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lt(r,o),rd(e,t,r,o,n);case 7:return tt(e,t,t.pendingProps,n),t.child;case 8:return tt(e,t,t.pendingProps.children,n),t.child;case 12:return tt(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(Ji,r._currentValue),r._currentValue=s,i!==null)if(Ot(i.value,s)){if(i.children===o.children&&!ft.current){t=on(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=en(-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),ha(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(U(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ha(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}tt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Rr(t,n),o=Tt(o),r=r(o),t.flags|=1,tt(e,t,r,n),t.child;case 14:return r=t.type,o=Lt(r,t.pendingProps),o=Lt(r.type,o),od(e,t,r,o,n);case 15:return Ap(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Lt(r,o),Ai(e,t),t.tag=1,pt(r)?(e=!0,Ki(t)):e=!1,Rr(t,n),zp(t,r,o),ma(t,r,o,n),_a(null,t,r,!0,e,n);case 19:return Fp(e,t,n);case 22:return Dp(e,t,n)}throw Error(U(156,t.tag))};function eg(e,t){return jf(e,t)}function Sx(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 Ct(e,t,n,r){return new Sx(e,t,n,r)}function Cc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bx(e){if(typeof e=="function")return Cc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Va)return 11;if(e===Ga)return 14}return 2}function Tn(e,t){var n=e.alternate;return n===null?(n=Ct(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 Pi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Cc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case gr:return Qn(n.children,o,i,t);case Ha:s=8,o|=8;break;case Bs:return e=Ct(12,n,t,o|2),e.elementType=Bs,e.lanes=i,e;case Us:return e=Ct(13,n,t,o),e.elementType=Us,e.lanes=i,e;case $s:return e=Ct(19,n,t,o),e.elementType=$s,e.lanes=i,e;case uf:return kl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case af:s=10;break e;case cf:s=9;break e;case Va:s=11;break e;case Ga:s=14;break e;case gn:s=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Ct(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Qn(e,t,n,r){return e=Ct(7,e,r,t),e.lanes=n,e}function kl(e,t,n,r){return e=Ct(22,e,r,t),e.elementType=uf,e.lanes=n,e.stateNode={isHidden:!1},e}function Ss(e,t,n){return e=Ct(6,e,null,t),e.lanes=n,e}function bs(e,t,n){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function kx(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=rs(0),this.expirationTimes=rs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function jc(e,t,n,r,o,i,s,a,c){return e=new kx(e,t,n,a,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ct(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},uc(i),e}function Ex(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:pr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function tg(e){if(!e)return zn;e=e._reactInternals;e:{if(nr(e)!==e||e.tag!==1)throw Error(U(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(pt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(U(171))}if(e.tag===1){var n=e.type;if(pt(n))return tp(e,n,t)}return t}function ng(e,t,n,r,o,i,s,a,c){return e=jc(n,r,!0,e,o,i,s,a,c),e.context=tg(null),n=e.current,r=nt(),o=jn(n),i=en(r,o),i.callback=t??null,En(n,i,o),e.current.lanes=o,Ho(e,o,r),gt(e,r),e}function El(e,t,n,r){var o=t.current,i=nt(),s=jn(o);return n=tg(n),t.context===null?t.context=n:t.pendingContext=n,t=en(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=En(o,t,s),e!==null&&(Pt(e,o,s,i),zi(e,o,s)),s}function cl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function xd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Tc(e,t){xd(e,t),(e=e.alternate)&&xd(e,t)}function Cx(){return null}var rg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Rc(e){this._internalRoot=e}Cl.prototype.render=Rc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));El(e,t,null,null)};Cl.prototype.unmount=Rc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;er(function(){El(null,e,null,null)}),t[nn]=null}};function Cl(e){this._internalRoot=e}Cl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Df();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xn.length&&t!==0&&t<xn[n].priority;n++);xn.splice(n,0,e),n===0&&Pf(e)}};function zc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function jl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function md(){}function jx(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=cl(s);i.call(u)}}var s=ng(t,r,e,0,null,!1,!1,"",md);return e._reactRootContainer=s,e[nn]=s.current,Do(e.nodeType===8?e.parentNode:e),er(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=cl(c);a.call(u)}}var c=jc(e,0,!1,null,null,!1,!1,"",md);return e._reactRootContainer=c,e[nn]=c.current,Do(e.nodeType===8?e.parentNode:e),er(function(){El(t,c,n,r)}),c}function Tl(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=cl(s);a.call(c)}}El(t,s,e,o)}else s=jx(n,t,e,o,r);return cl(s)}Lf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=uo(t.pendingLanes);n!==0&&(Qa(t,n|1),gt(t,Ae()),!(he&6)&&(Mr=Ae()+500,Dn()))}break;case 13:er(function(){var r=rn(e,1);if(r!==null){var o=nt();Pt(r,e,1,o)}}),Tc(e,1)}};Ka=function(e){if(e.tag===13){var t=rn(e,134217728);if(t!==null){var n=nt();Pt(t,e,134217728,n)}Tc(e,134217728)}};Af=function(e){if(e.tag===13){var t=jn(e),n=rn(e,t);if(n!==null){var r=nt();Pt(n,e,t,r)}Tc(e,t)}};Df=function(){return me};Nf=function(e,t){var n=me;try{return me=e,t()}finally{me=n}};Js=function(e,t,n){switch(t){case"input":if(Gs(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=yl(r);if(!o)throw Error(U(90));ff(r),Gs(r,o)}}}break;case"textarea":gf(e,n);break;case"select":t=n.value,t!=null&&Er(e,!!n.multiple,t,!1)}};wf=bc;Sf=er;var Tx={usingClientEntryPoint:!1,Events:[Go,yr,yl,vf,_f,bc]},no={findFiberByHostInstance:Vn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Rx={bundleType:no.bundleType,version:no.version,rendererPackageName:no.rendererPackageName,rendererConfig:no.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:sn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ef(e),e===null?null:e.stateNode},findFiberByHostInstance:no.findFiberByHostInstance||Cx,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 wi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wi.isDisabled&&wi.supportsFiber)try{gl=wi.inject(Rx),Vt=wi}catch{}}wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tx;wt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!zc(t))throw Error(U(200));return Ex(e,t,null,n)};wt.createRoot=function(e,t){if(!zc(e))throw Error(U(299));var n=!1,r="",o=rg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=jc(e,1,!1,null,null,n,!1,r,o),e[nn]=t.current,Do(e.nodeType===8?e.parentNode:e),new Rc(t)};wt.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(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=Ef(t),e=e===null?null:e.stateNode,e};wt.flushSync=function(e){return er(e)};wt.hydrate=function(e,t,n){if(!jl(t))throw Error(U(200));return Tl(null,e,t,!0,n)};wt.hydrateRoot=function(e,t,n){if(!zc(e))throw Error(U(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=rg;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=ng(t,null,e,1,n??null,o,!1,i,s),e[nn]=t.current,Do(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 Cl(t)};wt.render=function(e,t,n){if(!jl(t))throw Error(U(200));return Tl(null,e,t,!1,n)};wt.unmountComponentAtNode=function(e){if(!jl(e))throw Error(U(40));return e._reactRootContainer?(er(function(){Tl(null,null,e,!1,function(){e._reactRootContainer=null,e[nn]=null})}),!0):!1};wt.unstable_batchedUpdates=bc;wt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!jl(n))throw Error(U(200));if(e==null||e._reactInternals===void 0)throw Error(U(38));return Tl(e,t,n,!1,r)};wt.version="18.3.1-next-f1338f8080-20240426";function og(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(og)}catch(e){console.error(e)}}og(),rf.exports=wt;var zx=rf.exports,yd=zx;Ms.createRoot=yd.createRoot,Ms.hydrateRoot=yd.hydrateRoot;function Ic(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 ig(e,t){return e.filter(r=>r.fileName===t).flatMap(r=>r.steps).findLast(r=>!!r.screenshot)}function vd(e,t){var o;const r=Object.hasOwn(e.historicalStepIds,t)?e.historicalStepIds[t]:e.isRunning?null:(o=ig(e.testScenarios,t))==null?void 0:o.id;return r&&Ic(e.testScenarios,t,r)?`${t}:::${r}`:null}function Lc(e,t){return t?e.filter(n=>n.fileName===t):e}const Ix={},_d=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(_=>_(t,y))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>u,subscribe:m=>(n.add(m),()=>n.delete(m)),destroy:()=>{(Ix?"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},Lx=e=>e?_d(e):_d;var lg={exports:{}},sg={},ag={exports:{}},cg={};/**
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 Wr=b;function Ax(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dx=typeof Object.is=="function"?Object.is:Ax,Nx=Wr.useState,Px=Wr.useEffect,Ox=Wr.useLayoutEffect,Fx=Wr.useDebugValue;function Mx(e,t){var n=t(),r=Nx({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Ox(function(){o.value=n,o.getSnapshot=t,ks(o)&&i({inst:o})},[e,n,t]),Px(function(){return ks(o)&&i({inst:o}),e(function(){ks(o)&&i({inst:o})})},[e]),Fx(n),n}function ks(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dx(e,n)}catch{return!0}}function Wx(e,t){return t()}var Bx=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Wx:Mx;cg.useSyncExternalStore=Wr.useSyncExternalStore!==void 0?Wr.useSyncExternalStore:Bx;ag.exports=cg;var Ux=ag.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 Rl=b,$x=Ux;function Hx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vx=typeof Object.is=="function"?Object.is:Hx,Gx=$x.useSyncExternalStore,Yx=Rl.useRef,Xx=Rl.useEffect,Qx=Rl.useMemo,Kx=Rl.useDebugValue;sg.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=Yx(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=Qx(function(){function c(y){if(!u){if(u=!0,m=y,y=r(y),o!==void 0&&s.hasValue){var _=s.value;if(o(_,y))return h=_}return h=y}if(_=h,Vx(m,y))return _;var w=r(y);return o!==void 0&&o(_,w)?(m=y,_):(m=y,h=w)}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=Gx(e,i[0],i[1]);return Xx(function(){s.hasValue=!0,s.value=a},[a]),Kx(a),a};lg.exports=sg;var qx=lg.exports;const Zx=Vd(qx),ug={},{useDebugValue:Jx}=vh,{useSyncExternalStoreWithSelector:em}=Zx;let wd=!1;const tm=e=>e;function nm(e,t=tm,n){(ug?"production":void 0)!=="production"&&n&&!wd&&(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"),wd=!0);const r=em(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Jx(r),r}const Sd=e=>{(ug?"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"?Lx(e):e,n=(r,o)=>nm(t,r,o);return Object.assign(n,t),n},rm=e=>e?Sd(e):Sd,Ze=rm(e=>({isRunning:!1,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=Ic(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:vd(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,timer:0,completedSteps:[],activeStepId:null,historicalStepIds:{},logs:[],networkLogs:[],assertions:[],testScenarios:[],browserFrames:{},currentUrls:{},pageTitles:{},selectedLogId:null,activeReplay:null,activeTestFile:""}),stopExecution:()=>e(t=>{const n=t.testScenarios.map(r=>{const o=r.steps.map(s=>s.status==="running"?{...s,status:"failed"}:s);let i=r.status;if(r.status==="running"){const s=o.some(c=>c.status==="failed"),a=o.every(c=>["pass","passed","success"].includes(c.status));i=s?"failed":a?"pass":"failed"}return{...r,status:i,steps:o}});return{isRunning:!1,activeStepId:vd({...t,isRunning:!1,testScenarios:n},t.activeTestFile),testScenarios:n}}),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 c=o.length-1;c>=0;c--)if(o[c].fileName===r){i=c;break}i===-1&&(o.push({fileName:r,name:"Scenario",status:"running",steps:[]}),i=o.length-1);const s=o[i];if(s.steps.some(c=>c.id===t.id))return n;const a={id:t.id,type:t.type||"ACTION",description:t.description||"",command:t.command||"",status:t.status||"running"};return o[i]={...s,steps:[...s.steps,a]},{testScenarios:o}}),updateStepStatus:(t,n,r,o)=>e(i=>{if(!o)return i;let s=!1;const a=i.testScenarios.map(u=>{if(u.fileName!==o)return u;const m=u.steps.findIndex(w=>w.id===t);if(m===-1)return u;s=!0;const h=[...u.steps];h[m]={...h[m],status:n||"pending",screenshot:r||h[m].screenshot};const x=h.some(w=>w.status==="failed"),y=h.every(w=>["pass","passed","success"].includes(w.status));let _=u.status;return x?_="failed":y&&(_="pass"),{...u,status:_,steps:h}});if(!s)return i;const c=["pass","passed","success"].includes(n);return{testScenarios:a,completedSteps:c&&!i.completedSteps.includes(t)?[...i.completedSteps,t]:i.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 om=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),dg=(...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 im={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 lm=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,...im,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:dg("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 J=(e,t)=>{const n=b.forwardRef(({className:r,...o},i)=>b.createElement(lm,{ref:i,iconNode:t,className:dg(`lucide-${om(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 sm=J("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 am=J("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 cm=J("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 fg=J("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 Br=J("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 Ac=J("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 In=J("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 um=J("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 Dc=J("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 bd=J("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 pg=J("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 Nc=J("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 dm=J("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 fm=J("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 pm=J("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 gm=J("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 gg=J("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 ko=J("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 kd=J("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 hm=J("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 xm=J("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 Es=J("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 mm=J("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 ym=J("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 vm=J("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 Cs=J("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 _m=J("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 wm=J("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 Sm=J("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 hg=J("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 bm=J("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 Ur=J("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 km=J("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 xg=J("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 Em=J("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 Cm=J("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 jm=J("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 Tm=J("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 mg=J("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 yg=J("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 Rm=J("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 vg=J("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 zm=J("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 Im=J("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 Pc=J("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 Lm=J("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 Am=J("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 Dm=J("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 Nm=J("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 Pm=J("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 Om=J("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 Fm=J("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 Mm=J("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 Ed=J("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 js=J("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 Ir=J("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 Wm=J("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 Bm=J("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"}]]),Um=""+new URL("flow_logo-CjiL4Lvy.png",import.meta.url).href,$m=({isTestFlowsOpen:e,setTestFlowsOpen:t})=>{const{activeView:n,setActiveView:r}=Ze(),o=[{id:"Flows",icon:xm,label:"Flows"},{id:"Workspace",icon:xg,label:"Workspace"},{id:"Runs",icon:dm,label:"Runs"},{id:"Logs",icon:Im,label:"Logs"},{id:"Reports",icon:ko,label:"Reports"},{id:"TestCase",icon:Nc,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:Um,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(hg,{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"})]})]})})},Hm=()=>{var T;const{currentUrls:e,pageTitles:t,browserFrames:n,testScenarios:r,activeStepId:o,setActiveStepId:i,isRunning:s,activeTestFile:a,setActiveTestFile:c}=Ze(),u=Ic(r,a,o),m=!s&&!!(u!=null&&u.screenshot),h=e[a]||"about:blank",x=t[a]||"New Tab",y=n[a]||null,_=!s&&u?u.screenshot:y||(s?null:(T=ig(r,a))==null?void 0:T.screenshot),w=Array.from(new Set(r.map(p=>p.fileName)));return l.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column",backgroundColor:"#1c2128"},children:[l.jsxs("div",{onWheel:p=>{p.currentTarget.scrollLeft+=p.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
- `}),w.length>0?w.map(p=>{const f=a===p;return l.jsxs("div",{role:"tab","aria-selected":f,"aria-label":p,tabIndex:0,onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),c(p))},onClick:()=>c(p),style:{backgroundColor:f?"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:f?"1px solid var(--fs-border)":"1px solid transparent",borderBottom:"none",minWidth:"130px",maxWidth:"200px",flexShrink:0,cursor:"pointer",opacity:f?1:.6},children:[l.jsx(Es,{size:12,color:f?"var(--fs-accent-purple)":"#8b949e",style:{flexShrink:0}}),l.jsx("span",{style:{fontSize:"10px",color:f?"white":"#8b949e",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:f?"bold":"normal"},children:p})]},p)}):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(Es,{size:12,color:"var(--fs-accent-purple)"}),l.jsx("span",{style:{fontSize:"10px",color:"white"},children:x})]})]}),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(Ac,{size:14}),l.jsx(In,{size:14}),l.jsx(vg,{size:14}),l.jsx(vm,{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(km,{size:10,color:"#22c55e"}),l.jsx("span",{style:{fontSize:"10px",color:"#8b949e",whiteSpace:"nowrap",overflow:"hidden"},children:h})]}),l.jsxs("div",{style:{display:"flex",gap:"10px",color:"#444",borderLeft:"1px solid #333",paddingLeft:"12px"},children:[l.jsx(xg,{size:14,color:"var(--fs-accent-purple)"}),l.jsx(Dm,{size:14}),l.jsx(Lm,{size:14}),l.jsx(cm,{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:[m&&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(gm,{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.jsx("div",{style:{fontSize:"12px",color:"#e2e8f0",fontFamily:"monospace",marginTop:"2px"},children:u==null?void 0:u.command})]})]}),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:p=>p.currentTarget.style.backgroundColor="#6d28d9",onMouseLeave:p=>p.currentTarget.style.backgroundColor="#7c3aed",children:"Return to Live"})]}),_?l.jsx("img",{src:`data:image/png;base64,${_}`,style:{width:"100%",height:"100%",objectFit:"contain",opacity:m?.95:1},alt:"Browser frame"}):l.jsxs("div",{style:{textAlign:"center",color:"#ccc"},children:[l.jsx(Es,{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."})]})]})]})},Vm=()=>{const{networkLogs:e,activeTestFile:t,activeNetworkTab:n,setNetworkTab:r,setSelectedLogId:o,setActiveView:i}=Ze(),s=["REST","GraphQL","Network","WS"],a=Lc(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(Pc,{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(hm,{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))})]})},Gm=()=>{const{logs:e,activeTestFile:t}=Ze(),n=Lc(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)})]})},Ym=({isRightPanelOpen:e})=>{const{logs:t,pageTitles:n,activeTestFile:r}=Ze(),o=Lc(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(Hm,{})}),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(Vm,{})}),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(Gm,{})})]})]})]})]})},Xm=()=>{var x,y;const[e,t]=b.useState(null),{testScenarios:n,logs:r}=Ze(),o=n.reduce((_,w)=>_+w.steps.length,0),i=n.reduce((_,w)=>_+w.steps.filter(T=>["pass","passed","success"].includes(T.status)).length,0),s=n.reduce((_,w)=>_+w.steps.filter(T=>T.status==="failed").length,0),a=n.reduce((_,w)=>{const T=w.fileName||"General";return _[T]||(_[T]=[]),_[T].push(w),_},{});let c="Verified.",u=null,m=null,h=null;if(e){const _=e.status==="failed",w=["pass","passed","success"].includes(e.status);if(m=e.screenshot,_){const p=`${e.type} ${e.description}`,f=r.slice().reverse().find(g=>g.type==="ERROR"&&g.fileName===e.fileName&&g.stepContext===p);c=f?f.summary:"Validation Failed.",!m&&((x=f==null?void 0:f.details)!=null&&x.screenshot)&&(m=f.details.screenshot),(y=f==null?void 0:f.details)!=null&&y.boundingBox&&(h=f.details.boundingBox)}else e.status==="running"?c="Executing...":w&&(c="Action verified successfully.");const T=r.slice().reverse().find(p=>(p.type==="REST"||p.type==="GRAPHQL")&&p.fileName===e.fileName);u=T?T.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(Ts,{label:"PASSED",value:i,color:"#10b981",icon:l.jsx(Dc,{size:20})}),l.jsx(Ts,{label:"FAILED",value:s,color:"#ef4444",icon:l.jsx(pg,{size:20})}),l.jsx(Ts,{label:"TOTAL",value:o,color:"#3b82f6",icon:l.jsx(ko,{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(gg,{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((w,T)=>l.jsx("th",{style:{padding:"16px 24px",fontSize:"10px",fontWeight:"800",color:"#64748b",textTransform:"uppercase"},children:w},T))})}),l.jsx("tbody",{children:a[_].flatMap(w=>w.steps.map((T,p)=>l.jsxs("tr",{onClick:()=>t({...T,scenarioName:w.name,fileName:_}),style:{cursor:"pointer",borderBottom:"1px solid #f1f5f9",backgroundColor:(e==null?void 0:e.id)===T.id?"#eff6ff":"transparent"},children:[l.jsx("td",{style:{padding:"18px 24px",fontSize:"12px",color:"#94a3b8",fontFamily:"monospace",fontWeight:"bold"},children:p+1}),l.jsx("td",{style:{padding:"18px 24px",fontWeight:"600",color:"#334155"},children:w.name}),l.jsxs("td",{style:{padding:"18px 24px",fontSize:"14px",color:"#475569"},children:[l.jsx("b",{style:{color:"#7c3aed",marginRight:"8px"},children:T.type})," ",T.description]}),l.jsx("td",{style:{padding:"18px 24px"},children:l.jsx(Km,{status:T.status})}),l.jsx("td",{style:{padding:"18px 24px",textAlign:"right"},children:l.jsx(In,{size:16,color:(e==null?void 0:e.id)===T.id?"#3b82f6":"#cbd5e1",style:{transform:(e==null?void 0:e.id)===T.id?"rotate(90deg)":"none",transition:"0.2s"}})})]},T.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(Nm,{size:18,color:"#3b82f6"})," Step Diagnostics"]}),l.jsx(Ir,{onClick:()=>t(null),style:{cursor:"pointer",color:"#94a3b8"}})]}),m&&l.jsx(ro,{label:`Visual State (${(e.status||"").toUpperCase()})`,children:l.jsx(Qm,{screenshot:m,boundingBox:h})}),l.jsx(ro,{label:"Context",children:l.jsx("div",{style:{fontWeight:"bold",color:"#1e293b"},children:e.scenarioName})}),l.jsx(ro,{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(ro,{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:c})}),u&&l.jsx(ro,{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)})})})]})})]})},Qm=({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"})]})},Ts=({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})]})]}),Km=({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()})},ro=({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 mt=null;const _g=()=>{if(mt&&(mt.readyState===WebSocket.OPEN||mt.readyState===WebSocket.CONNECTING))return;const e=window.location.protocol==="https:"?"wss:":"ws:",t=window.location.host;mt=new WebSocket(`${e}//${t}`),mt.onopen=()=>console.log("[Flowstride] Connected to Execution Engine"),mt.onmessage=n=>{var r,o;try{const i=JSON.parse(n.data),s=Ze.getState();switch(i.type){case"CLI_CONTEXT":((r=i.payload)==null?void 0:r.command)==="run"?s.setActiveView("Flows"):((o=i.payload)==null?void 0:o.command)==="open"&&s.setActiveView("Workspace");break;case"SUITE_START":s.startExecution();break;case"RUN_START":{Ze.getState().isRunning||Ze.setState({isRunning:!0}),s.startRun(i.payload.fileName,i.payload.scenarioName);break}case"RUN_COMPLETE":s.stopExecution();break;case"LOG_EVENT":s.addLog(i.payload);break;case"BROWSER_FRAME":s.setBrowserFrame(i.payload.fileName||"General",i.payload.base64);break;case"NETWORK_REQ":s.addNetworkLog(i.payload);break;case"STEP_ADD":s.addStep(i.payload);break;case"STEP_UPDATE":const a=i.payload.status==="passed"?"pass":i.payload.status;s.updateStepStatus(i.payload.id,a,i.payload.screenshot,i.payload.fileName);break;case"URL_CHANGE":s.setPageMetadata(i.payload.fileName||"General",i.payload.url,i.payload.title);break;case"REPLAY_RES":s.setReplayResponse(i.payload.responseBody,i.payload.status,i.payload.error,i.payload.requestId);break;case"EXPORT_PDF_RES":{const c=i.payload.base64,u=document.createElement("a");u.href=`data:application/pdf;base64,${c}`,u.download=`Flowstride_Test_Report_${new Date().toISOString().split("T")[0]}.pdf`,document.body.appendChild(u),u.click(),document.body.removeChild(u);break}case"EXPORT_PDF_SUCCESS":console.log("[Flowstride] PDF safely archived at:",i.payload.path);break;case"EXPORT_PDF_ERROR":window.alert(`Report Error: Failed to generate PDF - ${i.payload.error}`);break;default:console.warn("Unknown event:",i.type)}}catch(i){console.error("Socket error:",i)}},mt.onclose=()=>setTimeout(_g,3e3)},qm=()=>{mt&&(mt.close(),mt=null)},ul=(e,t)=>{mt&&mt.readyState===WebSocket.OPEN&&mt.send(JSON.stringify({type:e,payload:t}))},Zm=()=>{const{testScenarios:e}=Ze(),t=e.reduce((r,o)=>{const i=o.fileName||"General";return r[i]||(r[i]=[]),r[i].push(o),r},{});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=()=>{ul("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(Nc,{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(Rm,{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(gg,{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=i.status==="failed",c=s+1;return l.jsxs("tr",{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?"#ef4444":"#64748b"},children:a?"Validation Failed":"Action verified successfully."}),l.jsx("td",{style:{padding:"16px 14px",textAlign:"left"},children:l.jsx("span",{style:{fontSize:"10px",fontWeight:"900",color:a?"#ef4444":"#10b981"},children:(i.status||"PENDING").toUpperCase()})})]},i.id)})})]})]},r)})]})]})},po=({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(po,{label:i?null:c,value:t[c]},c))}),r&&!a&&l.jsx("div",{style:{color:"#8b949e"},children:i?"]":"}"})]})},Jm=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}},ey=()=>{var ae;const{logs:e,selectedLogId:t,setSelectedLogId:n,activeReplay:r,updateReplay:o}=Ze(),[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),[T,p]=b.useState(!1);b.useEffect(()=>{const B=ne=>{if(!T||!y.current)return;const ye=y.current.getBoundingClientRect().left,N=ne.clientX-ye;N>=250&&N<=800&&w(N)},le=()=>p(!1);return T&&(document.addEventListener("mousemove",B),document.addEventListener("mouseup",le)),()=>{document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",le)}},[T]),b.useEffect(()=>{t&&(!e||!e.find(B=>B.id===t))&&n(null)},[e,t,n]);const f=Array.isArray(e)?e:[],g=f.find(B=>B.id===t),S={},A=[];f.forEach(B=>{if(!B)return;if(B.type==="FILE_HEADER"){A.includes(B.summary)||A.push(B.summary);return}const le=B.fileName||"System Initialization";S[le]||(S[le]=[],A.includes(le)||A.push(le)),(i==="ALL"||B.type===i)&&S[le].push(B)});const P=A.map(B=>({fileName:B,items:S[B]||[]})).filter(B=>B.items.length>0),F=(g==null?void 0:g.type)==="REST"||(g==null?void 0:g.type)==="GRAPHQL",C=["Overview","Headers","Payload"];F&&((ae=g==null?void 0:g.details)!=null&&ae.curlString)&&C.push("cURL"),C.push("Response","Step Context"),F&&C.push("Replay");const G=()=>{if(!r)return;o("isLoading",!0),o("response",null),o("status",null),o("error",null);const B=crypto.randomUUID();o("requestId",B),ul("REPLAY_REQ",{requestId:B,method:r.method,url:r.url,headers:r.headers,body:r.body})},H=async B=>{try{await navigator.clipboard.writeText(B),x(!0),setTimeout(()=>x(!1),2e3)}catch(le){console.error("Failed to copy text: ",le)}},ee=()=>{if(!g)return null;const B=g.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:g.status==="error"?"#f87171":"#a78bfa",fontWeight:"bold",display:"block",marginBottom:"6px"},children:g.status==="error"?"Error Message:":"Summary:"}),l.jsx("span",{style:{color:"#c9d1d9",lineHeight:"1.6",fontSize:"14px"},children:g.summary})]}),l.jsxs("div",{children:[l.jsx("span",{style:{color:"#8b949e",width:"80px",display:"inline-block"},children:"Context:"})," ",g.stepContext||"System"]}),l.jsxs("div",{children:[l.jsx("span",{style:{color:"#8b949e",width:"80px",display:"inline-block"},children:"URL:"})," ",B.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:g.status==="error"?"#f87171":"#34d399",fontWeight:"bold"},children:B.responseStatus||g.status.toUpperCase()})]})]})});case"Headers":return l.jsx(po,{label:"Headers",value:{request:B.requestHeaders||{},response:B.responseHeaders||{}},isRoot:!0});case"Payload":return l.jsx(po,{label:"Payload",value:B.requestBody||B,isRoot:!0});case"cURL":return l.jsxs("div",{style:{position:"relative"},children:[l.jsx("button",{onClick:()=>H(B.rawCurlString||B.curlString),disabled:!B.rawCurlString&&B.curlString==="[REDACTED]",title:!B.rawCurlString&&B.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(fg,{size:12})," Copied!"]}):l.jsxs(l.Fragment,{children:[l.jsx(fm,{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:B.curlString})})]});case"Response":return l.jsx(po,{label:"Response",value:B.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:g.stepContext});case"Replay":if(!r)return null;const le={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:{...le,width:"80px",fontWeight:"bold",color:"#a78bfa"},placeholder:"GET"}),l.jsx("input",{value:r.url,onChange:ne=>o("url",ne.target.value),style:{...le,flex:1},placeholder:"https://api..."}),l.jsx("button",{onClick:G,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(mg,{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:{...le,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:{...le,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(po,{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:T?"none":"auto"},children:[l.jsxs("div",{style:{width:_,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(B=>l.jsx("button",{onClick:()=>s(B),style:{background:i===B?"rgba(124, 58, 237, 0.1)":"transparent",border:"1px solid #30363d",color:i===B?"#a78bfa":"#8b949e",padding:"3px 8px",borderRadius:"4px",fontSize:"10px",cursor:"pointer"},children:B},B))})}),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:[P.map((B,le)=>{const ne=B.items.some(N=>N.status==="error"),ye=B.items.filter(N=>N.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:B.fileName})]}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[l.jsxs("button",{onClick:N=>{N.stopPropagation(),m(B.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:N=>N.currentTarget.style.backgroundColor="rgba(52, 211, 153, 0.2)",onMouseLeave:N=>N.currentTarget.style.backgroundColor="rgba(52, 211, 153, 0.1)",children:[l.jsx(kd,{size:10})," Watch"]}),ne&&l.jsxs("span",{style:{backgroundColor:"#f87171",color:"white",padding:"2px 6px",borderRadius:"10px",fontSize:"9px",fontWeight:"900"},children:[ye," ERROR",ye>1?"S":""]})]})]}),B.items.map(N=>{const{name:M,methodLabel:z,methodColor:k,typeLabel:D,statusLabel:W,statusColor:K}=Jm(N);return l.jsxs("div",{onClick:()=>{n(N.id),m(null),c("Overview")},style:{display:"flex",alignItems:"center",padding:"8px 15px 8px 25px",cursor:"pointer",backgroundColor:t===N.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===N.id?"bold":"500"},children:M}),l.jsx("div",{style:{width:"45px",flexShrink:0,color:k,fontWeight:"bold"},children:z}),l.jsx("div",{style:{width:"45px",flexShrink:0,color:K,fontWeight:"bold"},children:W}),l.jsx("div",{style:{width:"45px",flexShrink:0,color:"#8b949e"},children:D}),l.jsx("div",{style:{width:"65px",flexShrink:0,textAlign:"right",color:"#6e7681",fontFamily:"monospace"},children:N.timestamp})]},N.id)})]},B.fileName+le)}),P.length===0&&l.jsx("div",{style:{padding:"20px",textAlign:"center",color:"#8b949e",fontSize:"11px"},children:"Awaiting execution..."})]})]}),l.jsx("div",{onMouseDown:()=>p(!0),onMouseEnter:B=>{B.currentTarget.style.backgroundColor="#7c3aed"},onMouseLeave:B=>{T||(B.currentTarget.style.backgroundColor="transparent")},style:{width:"5px",cursor:"col-resize",backgroundColor:T?"#7c3aed":"transparent",borderRight:T?"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(kd,{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)})]}):g?l.jsxs(l.Fragment,{children:[l.jsx("div",{style:{display:"flex",borderBottom:"1px solid #30363d",backgroundColor:"#0d1117"},children:C.map(B=>l.jsx("div",{onClick:()=>c(B),style:{padding:"12px 15px",fontSize:"11px",cursor:"pointer",color:a===B?"#a78bfa":"#8b949e",borderBottom:a===B?"2px solid #a78bfa":"none",fontWeight:B==="Replay"?"bold":"normal"},children:B==="Replay"?"▶ Replay":B},B))}),l.jsx("div",{style:{flex:1,padding:"20px",overflow:"auto"},children:l.jsx("div",{style:{minWidth:"fit-content"},children:ee()})})]}):l.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",opacity:.2},children:[l.jsx(Pc,{size:48}),l.jsx("p",{style:{marginTop:"10px"},children:"Select a log to inspect"})]})})]})},Si=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 dl{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Cd.unregister(this),t}free(){const t=this.__destroy_into_raw();E.__wbg_workspaceengine_free(t,0)}add_node(t,n,r,o,i,s){const a=ze(r,E.__wbindgen_malloc,E.__wbindgen_realloc),c=ke,u=ze(o,E.__wbindgen_malloc,E.__wbindgen_realloc),m=ke,h=ze(i,E.__wbindgen_malloc,E.__wbindgen_realloc),x=ke;return E.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,E.__wbindgen_malloc,E.__wbindgen_realloc),s=ke;return E.workspaceengine_add_text(this.__wbg_ptr,t,n,i,s,o)>>>0}begin_connection(t,n){return E.workspaceengine_begin_connection(this.__wbg_ptr,t,n)!==0}begin_group_drag(t,n){return E.workspaceengine_begin_group_drag(this.__wbg_ptr,t,n)>>>0}begin_group_draw(t,n){return E.workspaceengine_begin_group_draw(this.__wbg_ptr,t,n)!==0}begin_node_drag(t,n){return E.workspaceengine_begin_node_drag(this.__wbg_ptr,t,n)>>>0}begin_text_drag(t,n){return E.workspaceengine_begin_text_drag(this.__wbg_ptr,t,n)>>>0}begin_text_resize(t,n){return E.workspaceengine_begin_text_resize(this.__wbg_ptr,t,n)!==0}cancel_connection(){E.workspaceengine_cancel_connection(this.__wbg_ptr)}cancel_group_draw(){E.workspaceengine_cancel_group_draw(this.__wbg_ptr)}check_group_delete_click(t,n){return E.workspaceengine_check_group_delete_click(this.__wbg_ptr,t,n)!==0}check_node_menu_click(t,n){return E.workspaceengine_check_node_menu_click(this.__wbg_ptr,t,n)>>>0}check_text_resize_handle(t,n){return E.workspaceengine_check_text_resize_handle(this.__wbg_ptr,t,n)}clear_canvas(){E.workspaceengine_clear_canvas(this.__wbg_ptr)}complete_connection(t,n){return E.workspaceengine_complete_connection(this.__wbg_ptr,t,n)!==0}complete_group_draw(t,n,r){const o=ze(r,E.__wbindgen_malloc,E.__wbindgen_realloc),i=ke;return E.workspaceengine_complete_group_draw(this.__wbg_ptr,t,n,o,i)>>>0}copy_to_clipboard(){return E.workspaceengine_copy_to_clipboard(this.__wbg_ptr)!==0}delete_selected_entities(){return E.workspaceengine_delete_selected_entities(this.__wbg_ptr)!==0}duplicate_selected(){return E.workspaceengine_duplicate_selected(this.__wbg_ptr)!==0}end_group_drag(){E.workspaceengine_end_group_drag(this.__wbg_ptr)}end_node_drag(){E.workspaceengine_end_node_drag(this.__wbg_ptr)}end_text_drag(){E.workspaceengine_end_text_drag(this.__wbg_ptr)}end_text_resize(){E.workspaceengine_end_text_resize(this.__wbg_ptr)}evaluate_current_step(t){return E.workspaceengine_evaluate_current_step(this.__wbg_ptr,t)!==0}export_design_state(){let t,n;try{const r=E.workspaceengine_export_design_state(this.__wbg_ptr);return t=r[0],n=r[1],_e(r[0],r[1])}finally{E.__wbindgen_free(t,n,1)}}get_active_execution_hover_data(t,n){let r,o;try{const i=E.workspaceengine_get_active_execution_hover_data(this.__wbg_ptr,t,n);return r=i[0],o=i[1],_e(i[0],i[1])}finally{E.__wbindgen_free(r,o,1)}}get_dimensions(){let t,n;try{const r=E.workspaceengine_get_dimensions(this.__wbg_ptr);return t=r[0],n=r[1],_e(r[0],r[1])}finally{E.__wbindgen_free(t,n,1)}}get_execution_report(){let t,n;try{const r=E.workspaceengine_get_execution_report(this.__wbg_ptr);return t=r[0],n=r[1],_e(r[0],r[1])}finally{E.__wbindgen_free(t,n,1)}}get_group_title(t){let n,r;try{const o=E.workspaceengine_get_group_title(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{E.__wbindgen_free(n,r,1)}}get_node_assigned_to(t){let n,r;try{const o=E.workspaceengine_get_node_assigned_to(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{E.__wbindgen_free(n,r,1)}}get_node_defect_media(t){let n,r;try{const o=E.workspaceengine_get_node_defect_media(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{E.__wbindgen_free(n,r,1)}}get_node_defect_report(t){let n,r;try{const o=E.workspaceengine_get_node_defect_report(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{E.__wbindgen_free(n,r,1)}}get_node_description(t){let n,r;try{const o=E.workspaceengine_get_node_description(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{E.__wbindgen_free(n,r,1)}}get_node_expected_result(t){let n,r;try{const o=E.workspaceengine_get_node_expected_result(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{E.__wbindgen_free(n,r,1)}}get_node_priority(t){let n,r;try{const o=E.workspaceengine_get_node_priority(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{E.__wbindgen_free(n,r,1)}}get_node_references(t){let n,r;try{const o=E.workspaceengine_get_node_references(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{E.__wbindgen_free(n,r,1)}}get_node_steps(t){let n,r;try{const o=E.workspaceengine_get_node_steps(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{E.__wbindgen_free(n,r,1)}}get_node_title(t){let n,r;try{const o=E.workspaceengine_get_node_title(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{E.__wbindgen_free(n,r,1)}}get_node_visual_step(t){let n,r;try{const o=E.workspaceengine_get_node_visual_step(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{E.__wbindgen_free(n,r,1)}}get_pan_offset_x(){return E.workspaceengine_get_pan_offset_x(this.__wbg_ptr)}get_pan_offset_y(){return E.workspaceengine_get_pan_offset_y(this.__wbg_ptr)}get_text_content(t){let n,r;try{const o=E.workspaceengine_get_text_content(this.__wbg_ptr,t);return n=o[0],r=o[1],_e(o[0],o[1])}finally{E.__wbindgen_free(n,r,1)}}constructor(t,n,r){const o=ze(t,E.__wbindgen_malloc,E.__wbindgen_realloc),i=ke,s=E.workspaceengine_new(o,i,n,r);return this.__wbg_ptr=s,Cd.register(this,this.__wbg_ptr,this),this}paste_from_clipboard(){return E.workspaceengine_paste_from_clipboard(this.__wbg_ptr)!==0}recenter_view(){E.workspaceengine_recenter_view(this.__wbg_ptr)}render_diagnostic_grid(){const t=E.workspaceengine_render_diagnostic_grid(this.__wbg_ptr);if(t[1])throw ry(t[0])}restore_connection_packed(t,n,r,o,i,s,a,c,u){const m=ze(c,E.__wbindgen_malloc,E.__wbindgen_realloc),h=ke;E.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,E.__wbindgen_malloc,E.__wbindgen_realloc),u=ke;E.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,E.__wbindgen_malloc,E.__wbindgen_realloc),u=ke;E.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,E.__wbindgen_malloc,E.__wbindgen_realloc),u=ke;E.workspaceengine_restore_text(this.__wbg_ptr,t,n,r,o,i,c,u,a)}set_mode(t){E.workspaceengine_set_mode(this.__wbg_ptr,t)}set_pan_offset(t,n){E.workspaceengine_set_pan_offset(this.__wbg_ptr,t,n)}trigger_redo(){return E.workspaceengine_trigger_redo(this.__wbg_ptr)!==0}trigger_undo(){return E.workspaceengine_trigger_undo(this.__wbg_ptr)!==0}update_connection_cursor(t,n){E.workspaceengine_update_connection_cursor(this.__wbg_ptr,t,n)}update_dimensions(t,n,r,o){E.workspaceengine_update_dimensions(this.__wbg_ptr,t,n,r,o)}update_group_drag(t,n){E.workspaceengine_update_group_drag(this.__wbg_ptr,t,n)}update_group_draw(t,n){E.workspaceengine_update_group_draw(this.__wbg_ptr,t,n)}update_group_title(t,n){const r=ze(n,E.__wbindgen_malloc,E.__wbindgen_realloc),o=ke;E.workspaceengine_update_group_title(this.__wbg_ptr,t,r,o)}update_hover_cursor(t,n){E.workspaceengine_update_hover_cursor(this.__wbg_ptr,t,n)}update_node_data(t,n,r,o,i,s,a){const c=ze(n,E.__wbindgen_malloc,E.__wbindgen_realloc),u=ke,m=ze(r,E.__wbindgen_malloc,E.__wbindgen_realloc),h=ke,x=ze(o,E.__wbindgen_malloc,E.__wbindgen_realloc),y=ke,_=ze(i,E.__wbindgen_malloc,E.__wbindgen_realloc),w=ke,T=ze(s,E.__wbindgen_malloc,E.__wbindgen_realloc),p=ke,f=ze(a,E.__wbindgen_malloc,E.__wbindgen_realloc),g=ke;E.workspaceengine_update_node_data(this.__wbg_ptr,t,c,u,m,h,x,y,_,w,T,p,f,g)}update_node_defect_data(t,n,r,o){const i=ze(n,E.__wbindgen_malloc,E.__wbindgen_realloc),s=ke,a=ze(r,E.__wbindgen_malloc,E.__wbindgen_realloc),c=ke,u=ze(o,E.__wbindgen_malloc,E.__wbindgen_realloc),m=ke;E.workspaceengine_update_node_defect_data(this.__wbg_ptr,t,i,s,a,c,u,m)}update_node_drag(t,n){E.workspaceengine_update_node_drag(this.__wbg_ptr,t,n)}update_node_visual_step(t,n){const r=ze(n,E.__wbindgen_malloc,E.__wbindgen_realloc),o=ke;return E.workspaceengine_update_node_visual_step(this.__wbg_ptr,t,r,o)!==0}update_text_content(t,n){const r=ze(n,E.__wbindgen_malloc,E.__wbindgen_realloc),o=ke;E.workspaceengine_update_text_content(this.__wbg_ptr,t,r,o)}update_text_drag(t,n){E.workspaceengine_update_text_drag(this.__wbg_ptr,t,n)}update_text_resize(t,n){E.workspaceengine_update_text_resize(this.__wbg_ptr,t,n)}}Symbol.dispose&&(dl.prototype[Symbol.dispose]=dl.prototype.free);const xe=Object.freeze({Design:0,0:"Design",Execution:1,1:"Execution"});function ty(){let e,t;try{const n=E.get_engine_version();return e=n[0],t=n[1],_e(n[0],n[1])}finally{E.__wbindgen_free(e,t,1)}}function ny(){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 dr(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 Bn(n)?0:pn(n)},__wbg_fillRect_97b1f503e30148c3:function(t,n,r,o,i){t.fillRect(n,r,o,i)},__wbg_fillText_e462ba58cec15054:function(){return dr(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 dr(function(t,n,r){const o=t.getContext(_e(n,r));return Bn(o)?0:pn(o)},arguments)},__wbg_getElementById_1cbd8f06dbe8eb8e:function(t,n,r){const o=t.getElementById(_e(n,r));return Bn(o)?0:pn(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 dr(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 dr(function(t,n,r){t.scale(n,r)},arguments)},__wbg_setLineDash_63ce60143e4d578a:function(){return dr(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 Bn(t)?0:pn(t)},__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4:function(){const t=typeof globalThis>"u"?null:globalThis;return Bn(t)?0:pn(t)},__wbg_static_accessor_SELF_146583524fe1469b:function(){const t=typeof self>"u"?null:self;return Bn(t)?0:pn(t)},__wbg_static_accessor_WINDOW_f2829a2234d7819e:function(){const t=typeof window>"u"?null:window;return Bn(t)?0:pn(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=E.__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=>E.__wbg_qaarrow_free(e,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(e=>E.__wbg_qagroup_free(e,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(e=>E.__wbg_qanode_free(e,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(e=>E.__wbg_qatext_free(e,1));const Cd=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>E.__wbg_workspaceengine_free(e,1));function pn(e){const t=E.__externref_table_alloc();return E.__wbindgen_externrefs.set(t,e),t}function _e(e,t){return iy(e>>>0,t)}let go=null;function Oi(){return(go===null||go.byteLength===0)&&(go=new Uint8Array(E.memory.buffer)),go}function dr(e,t){try{return e.apply(this,t)}catch(n){const r=pn(n);E.__wbindgen_exn_store(r)}}function Bn(e){return e==null}function ze(e,t,n){if(n===void 0){const a=Eo.encode(e),c=t(a.length,1)>>>0;return Oi().subarray(c,c+a.length).set(a),ke=a.length,c}let r=e.length,o=t(r,1)>>>0;const i=Oi();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=Oi().subarray(o+s,o+r),c=Eo.encodeInto(e,a);s+=c.written,o=n(o,r,s,1)>>>0}return ke=s,o}function ry(e){const t=E.__wbindgen_externrefs.get(e);return E.__externref_table_dealloc(e),t}let Fi=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Fi.decode();const oy=2146435072;let Rs=0;function iy(e,t){return Rs+=t,Rs>=oy&&(Fi=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Fi.decode(),Rs=t),Fi.decode(Oi().subarray(e,e+t))}const Eo=new TextEncoder;"encodeInto"in Eo||(Eo.encodeInto=function(e,t){const n=Eo.encode(e);return t.set(n),{read:e.length,written:n.length}});let ke=0,E;function ly(e,t){return E=e.exports,go=null,E.__wbindgen_start(),E}async function sy(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 wg(e){if(E!==void 0)return E;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=ny();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:n,module:r}=await sy(await e,t);return ly(n)}let ay={data:""},cy=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||ay},uy=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,dy=/\/\*[^]*?\*\/| +/g,jd=/\n+/g,yn=(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"?yn(s,i):i+"{"+yn(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=yn(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+=yn.p?yn.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},dn={},Sg=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Sg(e[n]);return t}return e},fy=(e,t,n,r,o)=>{let i=Sg(e),s=dn[i]||(dn[i]=(c=>{let u=0,m=11;for(;u<c.length;)m=101*m+c.charCodeAt(u++)>>>0;return"go"+m})(i));if(!dn[s]){let c=i!==e?e:(u=>{let m,h,x=[{}];for(;m=uy.exec(u.replace(dy,""));)m[4]?x.shift():m[3]?(h=m[3].replace(jd," ").trim(),x.unshift(x[0][h]=x[0][h]||{})):x[0][m[1]]=m[2].replace(jd," ").trim();return x[0]})(e);dn[s]=yn(o?{["@keyframes "+s]:c}:c,n?"":"."+s)}let a=n&&dn.g;return n&&(dn.g=dn[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)})(dn[s],t,r,a),s},py=(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?"":yn(a,""):a===!1?"":a}return r+o+(s??"")},"");function zl(e){let t=this||{},n=e.call?e(t.p):e;return fy(n.unshift?n.raw?py(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,cy(t.target),t.g,t.o,t.k)}let bg,La,Aa;zl.bind({g:1});let ln=zl.bind({k:1});function gy(e,t,n,r){yn.p=t,bg=e,La=n,Aa=r}function Nn(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:La&&La()},a),n.o=/go\d/.test(c),a.className=zl.apply(n,r)+(c?" "+c:"");let u=e;return e[0]&&(u=a.as||e,delete a.as),Aa&&u[0]&&Aa(a),bg(u,a)}return o}}var hy=e=>typeof e=="function",fl=(e,t)=>hy(e)?e(t):e,xy=(()=>{let e=0;return()=>(++e).toString()})(),kg=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),my=20,Oc="default",Eg=(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 Eg(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}))}}},Mi=[],Cg={toasts:[],pausedAt:void 0,settings:{toastLimit:my}},Ht={},jg=(e,t=Oc)=>{Ht[t]=Eg(Ht[t]||Cg,e),Mi.forEach(([n,r])=>{n===t&&r(Ht[t])})},Tg=e=>Object.keys(Ht).forEach(t=>jg(e,t)),yy=e=>Object.keys(Ht).find(t=>Ht[t].toasts.some(n=>n.id===e)),Il=(e=Oc)=>t=>{jg(t,e)},vy={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},_y=(e={},t=Oc)=>{let[n,r]=b.useState(Ht[t]||Cg),o=b.useRef(Ht[t]);b.useEffect(()=>(o.current!==Ht[t]&&r(Ht[t]),Mi.push([t,r]),()=>{let s=Mi.findIndex(([a])=>a===t);s>-1&&Mi.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)||vy[s.type],style:{...e.style,...(u=e[s.type])==null?void 0:u.style,...s.style}}});return{...n,toasts:i}},wy=(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)||xy()}),Xo=e=>(t,n)=>{let r=wy(t,e,n);return Il(r.toasterId||yy(r.id))({type:2,toast:r}),r.id},Fe=(e,t)=>Xo("blank")(e,t);Fe.error=Xo("error");Fe.success=Xo("success");Fe.loading=Xo("loading");Fe.custom=Xo("custom");Fe.dismiss=(e,t)=>{let n={type:3,toastId:e};t?Il(t)(n):Tg(n)};Fe.dismissAll=e=>Fe.dismiss(void 0,e);Fe.remove=(e,t)=>{let n={type:4,toastId:e};t?Il(t)(n):Tg(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?fl(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?fl(t.error,o):void 0;i?Fe.error(i,{id:r,...n,...n==null?void 0:n.error}):Fe.dismiss(r)}),e};var Sy=1e3,by=(e,t="default")=>{let{toasts:n,pausedAt:r}=_y(e,t),o=b.useRef(new Map).current,i=b.useCallback((h,x=Sy)=>{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 _=(y.duration||0)+y.pauseDuration-(h-y.createdAt);if(_<0){y.visible&&Fe.dismiss(y.id);return}return setTimeout(()=>Fe.dismiss(y.id,t),_)});return()=>{x.forEach(y=>y&&clearTimeout(y))}},[n,r,t]);let s=b.useCallback(Il(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:_=8,defaultPosition:w}=x||{},T=n.filter(g=>(g.position||w)===(h.position||w)&&g.height),p=T.findIndex(g=>g.id===h.id),f=T.filter((g,S)=>S<p&&g.visible).length;return T.filter(g=>g.visible).slice(...y?[f+1]:[0,f]).reduce((g,S)=>g+(S.height||0)+_,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}}},ky=ln` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,Ey=ln` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,Cy=ln` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,jy=Nn("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#ff4b4b"}; position: relative; transform: rotate(45deg); animation: ${ky} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${Ey} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${e=>e.secondary||"#fff"}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${Cy} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,Ty=ln` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,Ry=Nn("div")` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; animation: ${Ty} 1s linear infinite; `,zy=ln` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,Iy=ln` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,Ly=Nn("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#61d345"}; position: relative; transform: rotate(45deg); animation: ${zy} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${Iy} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${e=>e.secondary||"#fff"}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,Ay=Nn("div")` position: absolute; `,Dy=Nn("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,Ny=ln` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,Py=Nn("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${Ny} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,Oy=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?b.createElement(Py,null,t):t:n==="blank"?null:b.createElement(Dy,null,b.createElement(Ry,{...r}),n!=="loading"&&b.createElement(Ay,null,n==="error"?b.createElement(jy,{...r}):b.createElement(Ly,{...r})))},Fy=e=>` 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} 100% {transform: translate3d(0,0,0) scale(1); opacity:1;} `,My=e=>` 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} `,Wy="0%{opacity:0;} 100%{opacity:1;}",By="0%{opacity:1;} 100%{opacity:0;}",Uy=Nn("div")` :where(&) { display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; } `,$y=Nn("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `,Hy=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=kg()?[Wy,By]:[Fy(n),My(n)];return{animation:t?`${ln(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${ln(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Vy=b.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?Hy(e.position||t||"top-center",e.visible):{opacity:0},i=b.createElement(Oy,{toast:e}),s=b.createElement($y,{...e.ariaProps},fl(e.message,e));return b.createElement(Uy,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:i,message:s}):b.createElement(b.Fragment,null,i,s))});gy(b.createElement);var Gy=({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)},Yy=(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:kg()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},Xy=zl` z-index: 9999; > * { pointer-events: auto; } `,bi=16,Qy=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,toasterId:i,containerStyle:s,containerClassName:a})=>{let{toasts:c,handlers:u}=by(n,i);return b.createElement("div",{"data-rht-toaster":i||"",style:{position:"fixed",zIndex:9999,top:bi,left:bi,right:bi,bottom:bi,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=Yy(h,x);return b.createElement(Gy,{id:m.id,key:m.id,onHeightUpdate:u.updateHeight,className:m.visible?Xy:"",style:y},m.type==="custom"?fl(m.message,m):o?o(m):b.createElement(Vy,{toast:m,position:h}))}))},at=Fe;/*! @license DOMPurify 3.4.17 | (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.17/LICENSE */function Td(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 Ky(e){if(Array.isArray(e))return e}function qy(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 Zy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
389
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function Jy(e,t){return Ky(e)||qy(e,t)||e1(e,t)||Zy()}function e1(e,t){if(e){if(typeof e=="string")return Td(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)?Td(e,t):void 0}}const Rg=Object.entries,Rd=Object.setPrototypeOf,t1=Object.isFrozen,zg=Object.getPrototypeOf,Ig=Object.getOwnPropertyDescriptor;let Be=Object.freeze,Xe=Object.seal,fr=Object.create,Lg=typeof Reflect<"u"&&Reflect,Da=Lg.apply,Na=Lg.construct;Be||(Be=function(t){return t});Xe||(Xe=function(t){return t});Da||(Da=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)});Na||(Na=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 Xt=Ce(Array.prototype.forEach),n1=Ce(Array.prototype.lastIndexOf),zd=Ce(Array.prototype.pop),oo=Ce(Array.prototype.push),r1=Ce(Array.prototype.slice),o1=Ce(Array.prototype.splice),Lr=Array.isArray,zs=Ag(Set),Is=Ce(Set.prototype.add),io=Ce(Set.prototype.has),Hn=Ce(String.prototype.toLowerCase),Ls=Ce(String.prototype.toString),Id=Ce(String.prototype.match),lo=Ce(String.prototype.replace),Ld=Ce(String.prototype.indexOf),i1=Ce(String.prototype.trim),l1=Ce(Number.prototype.toString),s1=Ce(Boolean.prototype.toString),Ad=typeof BigInt>"u"?null:Ce(BigInt.prototype.toString),Dd=typeof Symbol>"u"?null:Ce(Symbol.prototype.toString),ct=Ce(Object.prototype.hasOwnProperty),so=Ce(Object.prototype.toString),He=Ce(RegExp.prototype.test),Qt=Ag(TypeError);function Ce(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 Da(e,t,r)}}function Ag(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Na(e,n)}}function ge(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hn;if(Rd&&Rd(e,null),!Lr(t))return e;let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const i=n(o);i!==o&&(t1(t)||(t[r]=i),o=i)}e[o]=!0}return e}function a1(e){for(let t=0;t<e.length;t++)ct(e,t)||(e[t]=null);return e}function ht(e){const t=fr(null);for(const r of Rg(e)){var n=Jy(r,2);const o=n[0],i=n[1];ct(e,o)&&(Lr(i)?t[o]=a1(i):i&&typeof i=="object"&&i.constructor===Object?t[o]=ht(i):t[o]=i)}return t}function c1(e){switch(typeof e){case"string":return e;case"number":return l1(e);case"boolean":return s1(e);case"bigint":return Ad?Ad(e):"0";case"symbol":return Dd?Dd(e):"Symbol()";case"undefined":return so(e);case"function":case"object":{if(e===null)return so(e);const t=e,n=bt(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:so(r)}return so(e)}default:return so(e)}}function bt(e,t){for(;e!==null;){const r=Ig(e,t);if(r){if(r.get)return Ce(r.get);if(typeof r.value=="function")return Ce(r.value)}e=zg(e)}function n(){return null}return n}function u1(e,t){for(;e!==null;){const n=Ig(e,t);if(n)return n.get?Ce(n.get):null;e=zg(e)}return null}function d1(e){try{return He(e,""),!0}catch{return!1}}const Nd=Be(["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"]),As=Be(["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"]),Ds=Be(["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"]),f1=Be(["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"]),Ns=Be(["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"]),p1=Be(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Pd=Be(["#text"]),Od=Be(["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"]),Ps=Be(["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","pointer-events","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","vector-effect","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"]),Fd=Be(["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"]),ki=Be(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),g1=Xe(/{{[\w\W]*|^[\w\W]*}}/g),h1=Xe(/<%[\w\W]*|^[\w\W]*%>/g),x1=Xe(/\${[\w\W]*/g),m1=Xe(/^data-[\-\w.\u00B7-\uFFFF]+$/),y1=Xe(/^aria-[\-\w]+$/),Md=Xe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),v1=Xe(/^(?:\w+script|data):/i),_1=Xe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),w1=Xe(/^html$/i),S1=Xe(/^[a-z][.\w]*(-[.\w]+)+$/i),Os=Xe(/<[/\w!]/g),Wd=Xe(/<[/\w]/g),b1=Xe(/<\/no(script|embed|frames)/i),Bd=Xe(/\/>/i),De={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},k1=Be(ge({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),E1=function(){return typeof window>"u"?null:window},C1=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}},Ud=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},fn=function(t,n,r,o){return ct(t,n)&&Lr(t[n])?ge(o.base?ht(o.base):{},t[n],o.transform):r},Fs=function(t,n,r){const o=ct(t,n)?t[n]:void 0;return o&&typeof o=="object"?ht(o):r()};function Dg(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:E1();const t=O=>Dg(O);if(t.version="3.4.17",t.removed=[],!e||!e.document||e.document.nodeType!==De.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;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const u=e.DOMParser,m=e.trustedTypes,h=a.prototype,x=bt(h,"cloneNode"),y=bt(h,"remove"),_=bt(h,"removeAttributeNode"),w=bt(h,"nextSibling"),T=bt(h,"childNodes"),p=bt(h,"parentNode"),f=bt(h,"shadowRoot"),g=bt(h,"attributes"),S=s&&s.prototype?bt(s.prototype,"nodeType"):null,A=s&&s.prototype?bt(s.prototype,"nodeName"):null,P=s&&s.prototype?bt(s.prototype,"ownerDocument"):null,F=function(d){return S?S(d):d.nodeType},C=function(d){return A?A(d):d.nodeName},G=u1(h,"namespaceURI"),H=function(d){return G?G(d):d.namespaceURI};if(typeof i=="function"){const O=n.createElement("template");O.content&&O.content.ownerDocument&&(n=O.content.ownerDocument)}let ee,ae="",B,le=!1,ne=0;const ye=function(){if(ne>0)throw Qt('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.')},N=function(d){ye(),ne++;try{return ee.createHTML(d)}finally{ne--}},M=function(d){ye(),ne++;try{return ee.createScriptURL(d)}finally{ne--}},z=function(){return le||(B=C1(m,o),le=!0),B},k=n,D=k.implementation,W=k.createNodeIterator,K=k.createDocumentFragment,re=k.getElementsByTagName,ve=r.importNode;let X=Ud();t.isSupported=typeof Rg=="function"&&typeof p=="function"&&D&&D.createHTMLDocument!==void 0;const fe=g1,R=h1,j=x1,V=m1,Y=y1,q=v1,oe=_1,$=S1;let ce=Md,Z=null;const pe=ge({},[...Nd,...As,...Ds,...Ns,...Pd]);let ie=null;const it=ge({},[...Od,...Ps,...Fd,...ki]);let $e=Object.seal(fr(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}})),Pn=null,Qo=null;const Ft=Object.seal(fr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Fc=!0,Ll=!0,Mc=!1,Al=!0,Yt=!1,On=!0,Fn=!1,Dl=!1,Ko=null,qo=null,Nl=!1,rr=!1,Zo=!1,Jo=!1,Wc=!0,Bc=!1;const Uc="user-content-";let Pl=!0,Ol=!1,Mn=null,or={},Wn=null;const $c=ge({},["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 Hc=null;const Vc=ge({},["audio","video","img","source","image","track"]);let Gc=null;const Yc=ge({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ei="http://www.w3.org/1998/Math/MathML",ti="http://www.w3.org/2000/svg",Mt="http://www.w3.org/1999/xhtml";let ir=Mt,Fl=!1,Ml=null;const Fg=ge({},[ei,ti,Mt],Ls),Xc=Be(["mi","mo","mn","ms","mtext"]);let Wl=ge({},Xc);const Qc=Be(["annotation-xml"]);let Bl=ge({},Qc);const Mg=ge({},["title","style","font","a","script"]);let Gr=null;const Wg=["application/xhtml+xml","text/html"],Bg="text/html";let Le=null,lr=null;const Ug=n.createElement("form"),Kc=function(d){return d instanceof RegExp||d instanceof Function},Ul=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(lr&&lr===d)return;(!d||typeof d!="object")&&(d={}),d=ht(d),Gr=Wg.indexOf(d.PARSER_MEDIA_TYPE)===-1?Bg:d.PARSER_MEDIA_TYPE,Le=Gr==="application/xhtml+xml"?Ls:Hn,Z=fn(d,"ALLOWED_TAGS",pe,{transform:Le}),ie=fn(d,"ALLOWED_ATTR",it,{transform:Le}),Ml=fn(d,"ALLOWED_NAMESPACES",Fg,{transform:Ls}),Gc=fn(d,"ADD_URI_SAFE_ATTR",Yc,{transform:Le,base:Yc}),Hc=fn(d,"ADD_DATA_URI_TAGS",Vc,{transform:Le,base:Vc}),Wn=fn(d,"FORBID_CONTENTS",$c,{transform:Le}),Pn=fn(d,"FORBID_TAGS",ht({}),{transform:Le}),Qo=fn(d,"FORBID_ATTR",ht({}),{transform:Le}),or=ct(d,"USE_PROFILES")?d.USE_PROFILES&&typeof d.USE_PROFILES=="object"?ht(d.USE_PROFILES):d.USE_PROFILES:!1,Fc=d.ALLOW_ARIA_ATTR!==!1,Ll=d.ALLOW_DATA_ATTR!==!1,Mc=d.ALLOW_UNKNOWN_PROTOCOLS||!1,Al=d.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Yt=d.SAFE_FOR_TEMPLATES||!1,On=d.SAFE_FOR_XML!==!1,Fn=d.WHOLE_DOCUMENT||!1,rr=d.RETURN_DOM||!1,Zo=d.RETURN_DOM_FRAGMENT||!1,Jo=d.RETURN_TRUSTED_TYPE||!1,Nl=d.FORCE_BODY||!1,Wc=d.SANITIZE_DOM!==!1,Bc=d.SANITIZE_NAMED_PROPS||!1,Pl=d.KEEP_CONTENT!==!1,Ol=d.IN_PLACE||!1,ce=d1(d.ALLOWED_URI_REGEXP)?d.ALLOWED_URI_REGEXP:Md,ir=typeof d.NAMESPACE=="string"?d.NAMESPACE:Mt,Wl=Fs(d,"MATHML_TEXT_INTEGRATION_POINTS",()=>ge({},Xc)),Bl=Fs(d,"HTML_INTEGRATION_POINTS",()=>ge({},Qc));const v=Fs(d,"CUSTOM_ELEMENT_HANDLING",()=>fr(null));if($e=fr(null),ct(v,"tagNameCheck")&&Kc(v.tagNameCheck)&&($e.tagNameCheck=v.tagNameCheck),ct(v,"attributeNameCheck")&&Kc(v.attributeNameCheck)&&($e.attributeNameCheck=v.attributeNameCheck),ct(v,"allowCustomizedBuiltInElements")&&typeof v.allowCustomizedBuiltInElements=="boolean"&&($e.allowCustomizedBuiltInElements=v.allowCustomizedBuiltInElements),Xe($e),Yt&&(Ll=!1),Zo&&(rr=!0),or&&(Z=ge({},Pd),ie=fr(null),or.html===!0&&(ge(Z,Nd),ge(ie,Od)),or.svg===!0&&(ge(Z,As),ge(ie,Ps),ge(ie,ki)),or.svgFilters===!0&&(ge(Z,Ds),ge(ie,Ps),ge(ie,ki)),or.mathMl===!0&&(ge(Z,Ns),ge(ie,Fd),ge(ie,ki))),Ft.tagCheck=null,Ft.attributeCheck=null,ct(d,"ADD_TAGS")&&(typeof d.ADD_TAGS=="function"?Ft.tagCheck=d.ADD_TAGS:Lr(d.ADD_TAGS)&&(Z===pe&&(Z=ht(Z)),ge(Z,d.ADD_TAGS,Le))),ct(d,"ADD_ATTR")&&(typeof d.ADD_ATTR=="function"?Ft.attributeCheck=d.ADD_ATTR:Lr(d.ADD_ATTR)&&(ie===it&&(ie=ht(ie)),ge(ie,d.ADD_ATTR,Le))),ct(d,"ADD_FORBID_CONTENTS")&&Lr(d.ADD_FORBID_CONTENTS)&&(Wn===$c&&(Wn=ht(Wn)),ge(Wn,d.ADD_FORBID_CONTENTS,Le)),Pl&&(Z["#text"]=!0),Fn&&ge(Z,["html","head","body"]),Z.table&&(ge(Z,["tbody"]),delete Pn.tbody),d.TRUSTED_TYPES_POLICY){if(typeof d.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof d.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const I=ee;ee=d.TRUSTED_TYPES_POLICY;try{ae=N("")}catch(L){throw ee=I,L}}else d.TRUSTED_TYPES_POLICY===null?(ee=void 0,ae=""):(ee===void 0&&(ee=z()),ee&&typeof ae=="string"&&(ae=N("")));Be&&Be(d),lr=d},qc=ge({},[...As,...Ds,...f1]),Zc=ge({},[...Ns,...p1]),$g=function(d,v,I){return v.namespaceURI===Mt?d==="svg":v.namespaceURI===ei?d==="svg"&&(I==="annotation-xml"||Wl[I]):!!qc[d]},Hg=function(d,v,I){return v.namespaceURI===Mt?d==="math":v.namespaceURI===ti?d==="math"&&Bl[I]:!!Zc[d]},Vg=function(d,v,I){return v.namespaceURI===ti&&!Bl[I]||v.namespaceURI===ei&&!Wl[I]?!1:!Zc[d]&&(Mg[d]||!qc[d])},Gg=function(d){const v=H(d),I=Hn(C(d)),L=p(d);let te,se;return L&&F(L)===De.element?(te={namespaceURI:H(L)},se=Hn(C(L))):(te={namespaceURI:ir},se="template"),Ml[v]?v===ti?$g(I,te,se):v===ei?Hg(I,te,se):v===Mt?Vg(I,te,se):!!(Gr==="application/xhtml+xml"&&Ml[v]):!1},an=function(d){oo(t.removed,{element:d});try{p(d).removeChild(d)}catch{if(y(d),!p(d))throw Qt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Jc=function(d,v,I){try{_(d,v)}catch{try{d.removeAttribute(I)}catch{}}},$l=function(d){Vl(d);const v=T(d);v&&Xt(r1(v),L=>{try{y(L)}catch{}});const I=F(d)===De.element?g(d):null;if(I)for(let L=I.length-1;L>=0;--L){const te=I[L],se=te&&te.name;typeof se=="string"&&Jc(d,te,se)}},sr=function(d,v,I){if(!I)try{I=v.getAttributeNode(d)}catch{I=null}oo(t.removed,{attribute:I||null,from:v});try{I?_(v,I):v.removeAttribute(d)}catch{try{v.removeAttribute(d)}catch{}}if(d==="is")if(rr||Zo)try{an(v)}catch{}else try{v.setAttribute(d,"")}catch{}},eu=function(d){const v=g(d);if(v)for(let I=v.length-1;I>=0;--I){const L=v[I],te=L&&L.name;typeof te!="string"||ie[Le(te)]||Jc(d,L,te)}},Hl=function(d,v){let I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const L=[d];for(;L.length>0;){const te=L.pop();if(v(te)===!1)continue;if(I&&F(te)===De.element){const ue=f(te);cn(ue)&&L.push(ue)}const se=T(te);if(se)for(let ue=se.length-1;ue>=0;--ue)L.push(se[ue])}},Vl=function(d){Hl(d,v=>{F(v)===De.element&&eu(v)})},Gl=function(d){const v=[];return Hl(d,I=>{v.push(I)},!0),v},Yg=function(d,v){const I=zs();Xt(Gl(d),L=>{F(L)===De.element&&Is(I,L)}),Xt(v,L=>{F(L)===De.element&&!io(I,L)&&eu(L)})},tu=function(d,v){let I=!1;return Xt(t.removed,L=>{L.element&&(I=I||L.element===d,Vl(L.element))}),Yg(d,v),I},Xg=8,Qg=function(d,v){const I=Mn;let L=null;const te=()=>(L||(L=zs(),Xt(v,se=>{Is(L,se)})),L);for(let se=0;;se++){const ue=Gl(d),Pe=[d];let Wt=!1;if(Xt(ue,et=>{F(et)===De.documentFragment?oo(Pe,et):!Wt&&!io(I,et)&&(Wt=io(te(),et))}),!Wt)return;if(se>=Xg)throw Qt("the tree kept changing during in-place sanitization; refusing to return it");Xt(Pe,(et,lt)=>{Kg(et,lt>0,d,te())})}},Kg=function(d,v,I,L){const te=Yl(d);let se;for(;se=te.nextNode();)!io(L,se)||io(Mn,se)||(v&&zt(X.uponSanitizeShadowNode,se,null),Ql(se,I),Kl(se,I),cn(se.content)&&Xr(se.content))},qg=function(d){Mn&&Is(Mn,d)},nu=function(d,v){return On?d==="patchsrc"?!0:d==="for"&&v!=="label"&&v!=="output":!1},Zg=function(d){On&&Hl(d,v=>{const I=F(v);if(I===De.processingInstruction||I===De.comment&&He(Wd,v.data)){try{y(v)}catch{}return!1}if(I===De.element){const L=v,te=Le(C(v));try{L.hasAttribute&&L.hasAttribute("patchsrc")&&L.removeAttribute("patchsrc"),L.hasAttribute&&L.hasAttribute("for")&&nu("for",te)&&L.removeAttribute("for")}catch{}}return!0})},ru=function(d){let v=null,I=null;if(Nl)d="<remove></remove>"+d;else{const se=Id(d,/^[\r\n\t ]+/);I=se&&se[0]}Gr==="application/xhtml+xml"&&ir===Mt&&(d='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+d+"</body></html>");const L=ee?N(d):d;if(ir===Mt)try{v=new u().parseFromString(L,Gr)}catch{}if(!v||!v.documentElement){v=D.createDocument(ir,"template",null);try{v.documentElement.innerHTML=Fl?ae:L}catch{}}const te=v.body||v.documentElement;return d&&I&&te.insertBefore(n.createTextNode(I),te.childNodes[0]||null),ir===Mt?re.call(v,Fn?"html":"body")[0]:Fn?v.documentElement:te},Yl=function(d){const v=P?P(d):d.ownerDocument;return W.call(v||d,d,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},ni=function(d){return d=lo(d,fe," "),d=lo(d,R," "),d=lo(d,j," "),d},Xl=function(d){var v;ou(d);const I=(v=d.querySelectorAll)===null||v===void 0?void 0:v.call(d,"template");I&&Xt(I,L=>{cn(L.content)&&Xl(L.content)})},ou=function(d){d.normalize();const v=P?P(d):d.ownerDocument,I=W.call(v||d,d,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let L=I.nextNode();for(;L;)L.data=ni(L.data),L=I.nextNode()},ri=function(d){const v=A?A(d):null;return typeof v!="string"||Le(v)!=="form"?!1:typeof d.nodeName!="string"||typeof d.textContent!="string"||typeof d.removeChild!="function"||d.attributes!==g(d)||typeof d.removeAttribute!="function"||typeof d.removeAttributeNode!="function"||typeof d.getAttributeNode!="function"||typeof d.setAttribute!="function"||typeof d.namespaceURI!="string"||typeof d.insertBefore!="function"||typeof d.hasChildNodes!="function"||d.nodeType!==S(d)||d.childNodes!==T(d)},cn=function(d){if(!S||typeof d!="object"||d===null)return!1;try{return S(d)===De.documentFragment}catch{return!1}},Yr=function(d){if(!S||typeof d!="object"||d===null)return!1;try{return typeof S(d)=="number"}catch{return!1}};function zt(O,d,v){O.length!==0&&Xt(O,I=>{I.call(t,d,v,lr)})}const Jg=function(d,v){return!!(On&&d.hasChildNodes()&&!Yr(d.firstElementChild)&&He(Os,d.textContent)&&He(Os,d.innerHTML)||On&&k1[v]&&F(d)===De.element&&H(d)===Mt&&(Yr(d.firstElementChild)||typeof d.textContent=="string"&&He(Os,d.textContent))||d.nodeType===De.processingInstruction||On&&d.nodeType===De.comment&&He(Wd,d.data))},oi=function(d,v){if(d instanceof RegExp)return He(d,v);if(d instanceof Function){for(var I=arguments.length,L=new Array(I>2?I-2:0),te=2;te<I;te++)L[te-2]=arguments[te];return!!d(v,...L)}return!1},eh=function(d,v,I){if(!Pn[v]&&su(v)&&oi($e.tagNameCheck,v))return!1;if(Pl&&!Wn[v]&&!Wn[Hn(v)]){const L=p(d),te=T(d);if(te&&L){const se=te.length;for(let ue=se-1;ue>=0;--ue){const Pe=d===I?x(te[ue],!0):te[ue];L.insertBefore(Pe,w(d))}}}return an(d),!0},iu=function(d,v,I,L){return d.length===0?v:v===I||v===L?ht(v):v},ar=function(d,v){return d===v||p(d)!==null?!1:(Ol&&Vl(d),!0)},Ql=function(d,v){if(qg(d),zt(X.beforeSanitizeElements,d,null),ar(d,v))return!0;if(ri(d))return an(d),!0;const I=Le(C(d));if(Z=iu(X.uponSanitizeElement,Z,pe,Ko),zt(X.uponSanitizeElement,d,{tagName:I,allowedTags:Z}),ar(d,v))return!0;if(Jg(d,I))return an(d),!0;if(Pn[I]||!(Ft.tagCheck instanceof Function&&Ft.tagCheck(I))&&!Z[I]){const L=eh(d,I,v);return L===!1&&(zt(X.afterSanitizeElements,d,null),ar(d,v))?!0:L}if(F(d)===De.element&&!Gg(d)||(I==="noscript"||I==="noembed"||I==="noframes")&&He(b1,d.innerHTML))return an(d),!0;if(Yt&&d.nodeType===De.text){const L=ni(d.textContent);d.textContent!==L&&(oo(t.removed,{element:d.cloneNode()}),d.textContent=L)}return zt(X.afterSanitizeElements,d,null),ar(d,v)},lu=function(d,v,I){if(Qo[v]||nu(v,d)||Wc&&(v==="id"||v==="name")&&(I in n||I in Ug))return!1;const L=ie[v]||Ft.attributeCheck instanceof Function&&Ft.attributeCheck(v,d);return Ll&&He(V,v)||Fc&&He(Y,v)?!0:L?Gc[v]||He(ce,lo(I,oe,""))||(v==="src"||v==="xlink:href"||v==="href")&&d!=="script"&&Ld(I,"data:")===0&&Hc[d]||Mc&&!He(q,lo(I,oe,""))?!0:!I:su(d)&&oi($e.tagNameCheck,d)&&oi($e.attributeNameCheck,v,d)||v==="is"&&$e.allowCustomizedBuiltInElements&&oi($e.tagNameCheck,I)},th=ge({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),su=function(d){return!th[Hn(d)]&&He($,d)},nh=function(d,v,I,L){if(ee&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!I)switch(m.getAttributeType(d,v)){case"TrustedHTML":return N(L);case"TrustedScriptURL":return M(L)}return L},rh=function(d,v,I,L){try{return I?d.setAttributeNS(I,v,L):d.setAttribute(v,L),ri(d)?(an(d),!1):!0}catch{return sr(v,d),!1}},au=function(d,v){return On&&He(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,v)?!0:Hn(d)==="attributename"&&Id(v,"href")!==null},Kl=function(d,v){if(zt(X.beforeSanitizeAttributes,d,null),ar(d,v))return;const I=d.attributes;if(!I||ri(d))return;ie=iu(X.uponSanitizeAttribute,ie,it,qo);const L={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ie,forceKeepAttr:void 0};let te=I.length;const se=Le(d.nodeName);for(;te--;){const ue=I[te],Pe=ue.name,Wt=ue.namespaceURI,et=ue.value,lt=Le(Pe),cr=et;let st=Pe==="value"?cr:i1(cr),cu=!1;if(L.attrName=lt,L.attrValue=st,L.keepAttr=!0,L.forceKeepAttr=void 0,zt(X.uponSanitizeAttribute,d,L),st=L.attrValue,Bc&&(lt==="id"||lt==="name")&&Ld(st,Uc)!==0&&(sr(Pe,d,ue),st=Uc+st,cu=!0),au(Pe,st)){sr(Pe,d,ue);continue}if(!L.forceKeepAttr){if(!L.keepAttr){sr(Pe,d,ue);continue}if(!Al&&He(Bd,st)){sr(Pe,d,ue);continue}if(Yt&&(st=ni(st)),!lu(se,lt,st)){sr(Pe,d,ue);continue}st=nh(se,lt,Wt,st),st!==cr&&rh(d,Pe,Wt,st)&&cu&&zd(t.removed)}}zt(X.afterSanitizeAttributes,d,null),ar(d,v)},Xr=function(d){let v=null;const I=Yl(d);for(zt(X.beforeSanitizeShadowDOM,d,null);v=I.nextNode();)if(zt(X.uponSanitizeShadowNode,v,null),Ql(v,d),Kl(v,d),cn(v.content)&&Xr(v.content),F(v)===De.element){const L=f(v);cn(L)&&(ql(L),Xr(L))}Yt&&ou(d),zt(X.afterSanitizeShadowDOM,d,null)},ql=function(d){const v=[{node:d,shadow:null}];for(;v.length>0;){const I=v.pop();if(I.shadow){Xr(I.shadow);continue}const L=I.node,te=F(L)===De.element,se=T(L);if(se)for(let ue=se.length-1;ue>=0;--ue)v.push({node:se[ue],shadow:null});if(te){const ue=A?A(L):null;if(typeof ue=="string"&&Le(ue)==="template"){const Pe=L.content;cn(Pe)&&v.push({node:Pe,shadow:null})}}if(te){const ue=f(L);cn(ue)&&v.push({node:null,shadow:ue},{node:ue,shadow:null})}}};return t.sanitize=function(O){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=null,I=null,L=null,te=null;if(Fl=!O,Fl&&(O="<!-->"),typeof O!="string"&&!Yr(O)&&(O=c1(O),typeof O!="string"))throw Qt("dirty is not a string, aborting");if(!t.isSupported)return O;Dl?(Z=Ko,ie=qo):Ul(d),(X.uponSanitizeElement.length>0||X.uponSanitizeAttribute.length>0)&&(Z=ht(Z)),X.uponSanitizeAttribute.length>0&&(ie=ht(ie)),t.removed=[];const se=Ol&&typeof O!="string"&&Yr(O);let ue=[];const Pe=Mn;if(se){Zg(O);const lt=C(O);if(typeof lt=="string"){const cr=Le(lt);if(!Z[cr]||Pn[cr])throw $l(O),Qt("root node is forbidden and cannot be sanitized in-place")}if(ri(O))throw $l(O),Qt("root node is clobbered and cannot be sanitized in-place");ue=Gl(O),Mn=zs()}else if(Yr(O))v=ru("<!---->"),I=v.ownerDocument.importNode(O,!0),I.nodeType===De.element&&I.nodeName==="BODY"||I.nodeName==="HTML"?v=I:v.appendChild(I),ql(v);else{if(!rr&&!Yt&&!Fn&&O.indexOf("<")===-1)return ee&&Jo?N(O):O;if(v=ru(O),!v)return rr?null:Jo?ae:""}v&&Nl&&an(v.firstChild);const Wt=se?O:v;try{se&&ql(O);const lt=Yl(Wt);for(;L=lt.nextNode();)Ql(L,Wt),Kl(L,Wt),cn(L.content)&&Xr(L.content);se&&Qg(O,ue)}catch(lt){throw se&&($l(O),tu(O,ue)),lt}finally{Mn=Pe}if(se){if(tu(O,ue))throw Qt("a node selected for removal could not be safely returned; refusing to sanitize in place");return Yt&&Xl(O),O}if(rr){if(Yt&&Xl(v),Zo)for(te=K.call(v.ownerDocument);v.firstChild;)te.appendChild(v.firstChild);else te=v;return(ie.shadowroot||ie.shadowrootmode)&&(te=ve.call(r,te,!0)),te}let et=Fn?v.outerHTML:v.innerHTML;return Fn&&Z["!doctype"]&&v.ownerDocument&&v.ownerDocument.doctype&&v.ownerDocument.doctype.name&&He(w1,v.ownerDocument.doctype.name)&&(et="<!DOCTYPE "+v.ownerDocument.doctype.name+`>
390
- `+et),Yt&&(et=ni(et)),ee&&Jo?N(et):et},t.setConfig=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ul(O),Dl=!0,Ko=Z,qo=ie},t.clearConfig=function(){lr=null,Dl=!1,Ko=null,qo=null,ee=B,ae=""},t.isValidAttribute=function(O,d,v){lr||Ul({});const I=Le(O),L=Le(d);return typeof v=="string"&&(au(d,v)||!Al&&He(Bd,v))?!1:lu(I,L,v)},t.addHook=function(O,d){typeof d=="function"&&ct(X,O)&&oo(X[O],d)},t.removeHook=function(O,d){if(ct(X,O)){if(d!==void 0){const v=n1(X[O],d);return v===-1?void 0:o1(X[O],v,1)[0]}return zd(X[O])}},t.removeHooks=function(O){ct(X,O)&&(X[O]=[])},t.removeAllHooks=function(){X=Ud()},t}var Ng=Dg();function Pa(e){const t=Ng.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]=Pa(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 Og=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 _=b.useRef(null),[w,T]=b.useState(!1),p=b.useRef(null),f=()=>!_.current||!_.current.contentWindow?null:_.current.contentWindow.flowstrideEngineAPI||null;return b.useImperativeHandle(y,()=>({exportDesignState:()=>{const g=f();if(g)try{return g.exportDesignState()}catch(S){return console.error("[Flowstride Telemetry Error]: Failed to pull state from EngineFrame",S),{nodes:[],groups:[],texts:[],connections:[]}}return console.warn("[Flowstride Telemetry]: Iframe engine missing. Cannot export state."),{nodes:[],groups:[],texts:[],connections:[]}},importDesignState:g=>{g=Pg(g);const S=f();S&&w?S.importDesignState(g):p.current=g}})),b.useEffect(()=>{const g=S=>{if(S.origin!==window.location.origin)return;const{type:A,payload:P}=S.data;if(A)switch(A){case"ENGINE_READY":T(!0);const F=f();F&&p.current&&(F.importDesignState(p.current),p.current=null);break;case"NODE_SELECTED":n==null||n(P.id,P.title,P.description,P.visualStep,P.stepsContent,P.expectedResult,P.references,P.priority);break;case"GROUP_SELECTED":i==null||i(P.id,P.title);break;case"TEXT_SELECTED":a==null||a(P.id,P.content);break;case"TOOL_CHANGED":x==null||x(P);break;case"EXECUTION_REPORT_CHANGED":u==null||u(P);break}};return window.addEventListener("message",g),()=>window.removeEventListener("message",g)},[n,i,a,x,u]),b.useEffect(()=>{var g;w&&((g=f())==null||g.setMode(e))},[e,w]),b.useEffect(()=>{var g;w&&t&&((g=f())==null||g.setTool(t))},[t,w]),b.useEffect(()=>{var g;w&&m!==void 0&&((g=f())==null||g.setZoom(m))},[m,w]),b.useEffect(()=>{var g;w&&h!==void 0&&h>0&&((g=f())==null||g.recenterView())},[h,w]),b.useEffect(()=>{var g;w&&r&&((g=f())==null||g.updateNodeData(r.stepNumber,r.title,r.description,r.stepsContent,r.expectedResult,r.references,r.priority))},[r,w]),b.useEffect(()=>{var g;w&&o&&((g=f())==null||g.updateNodeDefectData(o.stepNumber,o.defectReport,o.defectMedia,o.assignedTo))},[o,w]),b.useEffect(()=>{var g;w&&s&&((g=f())==null||g.updateGroupTitle(s.groupId,s.title))},[s,w]),b.useEffect(()=>{var g;w&&c&&((g=f())==null||g.updateTextContent(c.textId,c.content))},[c,w]),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:`
391
- .flowstride-spin-circle {
392
- animation: flowstride-spin-anim 0.8s linear infinite;
393
- }
394
- @keyframes flowstride-spin-anim {
395
- 0% { transform: rotate(0deg); }
396
- 100% { transform: rotate(360deg); }
397
- }
398
- `}),!w&&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:_,src:"?frame=engine",title:"Flowstride Isolated Workspace Engine",style:{width:"100%",height:"100%",border:"none",display:"block",backgroundColor:"#f8f9fa",opacity:w?1:0,transition:"opacity 0.2s ease-in-out"}})]})});Og.displayName="FlowCanvas";const j1=({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:_})=>{const[w,T]=b.useState(!1),[p,f]=b.useState(!1),[g,S]=b.useState(!1),[A,P]=b.useState(""),F=b.useRef(null),C=b.useRef(!1),G=e===xe.Execution,H=r.find(N=>N.id===o),ee=H?H.name:"New Local Flow",ae=N=>{if(!N)return"Just now";const M=Math.floor((Date.now()-N)/1e3);if(M<60)return"Just now";const z=Math.floor(M/60);if(z<60)return`${z} minute${z>1?"s":""} ago`;const k=Math.floor(z/60);if(k<24)return`${k} hour${k>1?"s":""} ago`;const D=Math.floor(k/24);return`${D} day${D>1?"s":""} ago`};b.useEffect(()=>{const N=M=>{F.current&&!F.current.contains(M.target)&&f(!1)};return p&&document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[p]);const B=async()=>{T(!0);try{const N=window.flowstrideEngineAPI;if(N){const M=N.exportDesignState(),z={metadata:{flowName:ee,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:M},k=new Blob([JSON.stringify(z,null,2)],{type:"application/json"}),D=URL.createObjectURL(k),W=document.createElement("a");W.href=D;const K=ee.replace(/[^a-z0-9]/gi,"_").toLowerCase();W.download=`${K||"local_workspace"}.json`,document.body.appendChild(W),W.click(),document.body.removeChild(W),URL.revokeObjectURL(D)}n&&await n()}catch(N){console.error("[Flowstride Telemetry Error]: Failed to generate local export file",N)}finally{T(!1)}},le=(N,M,z)=>{N.stopPropagation(),window.confirm(`Are you sure you want to delete the flow: "${z}"?`)&&a&&a(M)},ne=()=>{G||(P(ee),S(!0))},ye=async()=>{if(C.current||G)return;C.current=!0;const N=A.trim();if(S(!1),N!==""&&o&&c&&(c(o,N),n)){T(!0);try{await n(N)}finally{T(!1)}}C.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(In,{size:14})]}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[l.jsxs("div",{ref:F,style:{position:"relative"},children:[l.jsxs("button",{onClick:()=>{G||f(!p)},disabled:G,style:{display:"flex",alignItems:"center",gap:"6px",padding:"6px 12px",border:p?"1px solid #0969da":"1px solid #d0d7de",backgroundColor:G?"#f6f8fa":"#ffffff",borderRadius:"6px",cursor:G?"not-allowed":"pointer",fontSize:"13px",fontWeight:"600",color:p?"#0969da":G?"#8c959f":"#24292f",transition:"all 0.2s ease",opacity:G?.7:1},children:[ee,p?l.jsx(um,{size:14}):l.jsx(Br,{size:14})]}),p&&!G&&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(N=>l.jsxs("div",{onClick:()=>{i==null||i(N.id),f(!1)},style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 16px",cursor:"pointer",backgroundColor:o===N.id?"#f0f7ff":"transparent",color:o===N.id?"#0969da":"#24292f",fontSize:"13px",fontWeight:"500"},onMouseEnter:M=>{o!==N.id&&(M.currentTarget.style.backgroundColor="#f6f8fa")},onMouseLeave:M=>{o!==N.id&&(M.currentTarget.style.backgroundColor="transparent")},children:[l.jsx("span",{children:N.name}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[o===N.id&&l.jsx(fg,{size:14,color:"#0969da"}),o!==N.id&&l.jsx("button",{onClick:M=>le(M,N.id,N.name),style:{background:"transparent",border:"none",padding:"4px",cursor:"pointer",color:"#8c959f",display:"flex",alignItems:"center",justifyContent:"center"},title:"Delete Flow",children:l.jsx(Pm,{size:14})})]})]},N.id))]})]}),!G&&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(yg,{size:16})})]})]}),l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[g&&!G?l.jsx("input",{autoFocus:!0,value:A,onChange:N=>P(N.target.value),onBlur:ye,onKeyDown:N=>{N.key==="Enter"&&(N.preventDefault(),ye()),N.key==="Escape"&&S(!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:[ee,!G&&l.jsx("button",{onClick:ne,style:{background:"transparent",border:"none",cursor:"pointer",color:"#8c959f",display:"flex",padding:0},children:l.jsx(Tm,{size:16})})]}),G?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:N=>N.currentTarget.style.border="1px solid #0969da",onBlur:N=>N.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:N=>_==null?void 0:_({...y,version:N.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:",G?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:N=>_==null?void 0:_({...y,testPlan:N.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:N=>N.target.style.borderBottom="1px solid #0969da",onBlur:N=>N.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:",G?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:N=>_==null?void 0:_({...y,environment:N.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: ",ae(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(xe.Design),style:{padding:"6px 16px",borderRadius:"6px",border:"none",fontSize:"13px",fontWeight:e===xe.Design?"bold":"normal",backgroundColor:e===xe.Design?"#ffffff":"transparent",color:e===xe.Design?"#0969da":"#57606a",boxShadow:e===xe.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(xe.Execution),style:{padding:"6px 16px",borderRadius:"6px",border:"none",fontSize:"13px",fontWeight:e===xe.Execution?"bold":"normal",backgroundColor:e===xe.Execution?"#ffffff":"transparent",color:e===xe.Execution?"#0969da":"#57606a",boxShadow:e===xe.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===xe.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(Bm,{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(Wm,{size:16})})]}),l.jsx("button",{onClick:B,disabled:w,style:{display:"flex",alignItems:"center",gap:"6px",padding:"8px 16px",backgroundColor:w?"#f6f8fa":"#ffffff",border:"1px solid #d0d7de",borderRadius:"6px",fontSize:"13px",fontWeight:"600",color:w?"#8c959f":"#24292f",cursor:w?"not-allowed":"pointer",transition:"all 0.2s ease"},children:w?l.jsxs(l.Fragment,{children:[l.jsx(Ur,{size:16})," Exporting..."]}):l.jsxs(l.Fragment,{children:[l.jsx(pm,{size:16})," Save"]})})]})]})},T1=["Hand","Select","Step","Group","Arrow","Text","Requirement"],R1={Hand:ym,Select:Em,Step:hg,Group:mm,Arrow:sm,Text:Fm,Requirement:Nc},z1=({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(Ac,{size:18}):l.jsx(In,{size:18})}),T1.map(o=>{const i=e===o,s=R1[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)})]})})},$d=({label:e,value:t,onChange:n,placeholder:r,minHeight:o,maxLength:i})=>{const s=b.useRef(null);b.useEffect(()=>{const h=Pa(t);s.current&&h!==s.current.innerHTML&&(s.current.innerHTML=h)},[t]);const a=()=>{if(s.current&&n){const h=s.current.innerHTML,x=Pa(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(am,{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(_m,{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(bm,{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(Sm,{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(wm,{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]})]})]})]})},I1=({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:_})=>{const[w,T]=b.useState("Details"),[p,f]=b.useState(!0),[g,S]=b.useState(320),[A,P]=b.useState(!1),F=b.useRef(0),C=b.useRef(320),G=b.useRef(null),[H,ee]=b.useState(!1),[ae,B]=b.useState(!1),[le,ne]=b.useState(!1),[ye,N]=b.useState(null),M=a.split(",").filter(Boolean),z=M.filter(j=>j.endsWith(".mp4")||j.endsWith(".webm")).length,k=M.filter(j=>!j.endsWith(".mp4")&&!j.endsWith(".webm")).length,D=j=>{j.preventDefault(),j.currentTarget.setPointerCapture(j.pointerId),P(!0),F.current=j.clientX,C.current=g},W=j=>{if(!A)return;const V=F.current-j.clientX;let Y=C.current+V;Y<260&&(Y=260),Y>800&&(Y=800),S(Y)},K=j=>{A&&(P(!1),j.currentTarget.releasePointerCapture(j.pointerId))},re=async j=>{var $;const V=Array.from(j.target.files||[]);if(V.length===0)return;let Y=z,q=k;const oe=[];ee(!0);for(const ce of V){const Z="."+((($=ce.name.split(".").pop())==null?void 0:$.toLowerCase())||""),pe=Z===".mp4"||Z===".webm",ie=[".png",".jpg",".jpeg",".gif"].includes(Z);if(pe){if(Y>=1){window.alert("Architectural Limit Reached: Maximum 1 video clip allowed per step.");continue}if(ce.size>41943040){window.alert(`Security Block: Video ${ce.name} exceeds 40MB physical limit.`);continue}Y++}else if(ie){if(q>=1){window.alert("Architectural Limit Reached: Maximum 1 image allowed per step.");continue}if(ce.size>5242880){window.alert(`Security Block: Image ${ce.name} exceeds 5MB physical limit.`);continue}q++}else{window.alert(`Security Block: Unsupported file format ${Z}.`);continue}try{const it=await fetch("/api/upload",{method:"POST",headers:{"X-File-Extension":Z},body:ce});if(!it.ok)throw new Error("Network response was not ok");const $e=await it.json();$e.url&&oe.push($e.url)}catch{window.alert(`Network Error: Failed to vault ${ce.name}.`)}}if(oe.length>0){const ce=[...M,...oe].join(",");y==null||y(ce)}ee(!1),G.current&&(G.current.value="")},ve=async j=>{if(ae)return;const V=M[j];if(V){B(!0);try{const Y=await fetch(`/api/media?filepath=${encodeURIComponent(V)}`,{method:"DELETE"});if(!Y.ok&&Y.status!==404)throw new Error(`Server returned ${Y.status}`);const q=[...M];q.splice(j,1),y==null||y(q.join(","))}catch(Y){console.error("[Flowstride Security Alert]: Physical deletion failed.",Y),window.alert("Security Block: Failed to physically remove media from local hard drive. Please try again.")}finally{B(!1)}}},X={Low:"#2da44e",Medium:"#bf8700",High:"#cf222e",Critical:"#8250df"},fe=c||"Low",R=X[fe]||X.Low;return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
399
- .rich-text-editor:empty::before {
400
- content: attr(data-placeholder);
401
- color: #8c959f;
402
- pointer-events: none;
403
- }
404
- .rich-text-editor a {
405
- color: #0969da;
406
- text-decoration: underline;
407
- }
408
- .rich-text-editor ul, .rich-text-editor ol {
409
- padding-left: 24px;
410
- margin: 4px 0;
411
- }
412
- .rich-text-editor p {
413
- margin: 0 0 4px 0;
414
- }
415
- .rich-text-editor div {
416
- margin: 0;
417
- }
418
- .rich-text-editor font[size="1"] { font-size: 10px; }
419
- .rich-text-editor font[size="3"] { font-size: 13px; }
420
- .rich-text-editor font[size="4"] { font-size: 18px; }
421
- .rich-text-editor font[size="5"] { font-size: 24px; }
422
-
423
- .rich-text-editor li:has(font[size="1"]) { font-size: 10px; }
424
- .rich-text-editor li:has(font[size="3"]) { font-size: 13px; }
425
- .rich-text-editor li:has(font[size="4"]) { font-size: 18px; }
426
- .rich-text-editor li:has(font[size="5"]) { font-size: 24px; }
427
-
428
- .flowstride-spin {
429
- animation: flowstride-spin-anim 1s linear infinite;
430
- }
431
- @keyframes flowstride-spin-anim {
432
- 100% { transform: rotate(360deg); }
433
- }
434
- `}),ye&&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:()=>N(null),children:l.jsxs("div",{style:{position:"relative",maxWidth:"90%",maxHeight:"90%",display:"flex",alignItems:"center",justifyContent:"center"},onClick:j=>j.stopPropagation(),children:[l.jsx("button",{onClick:()=>N(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:j=>j.currentTarget.style.background="rgba(255, 255, 255, 0.2)",onMouseLeave:j=>j.currentTarget.style.background="rgba(255, 255, 255, 0.1)",children:l.jsx(Ir,{size:20})}),ye.type==="video"?l.jsx("video",{src:ye.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:ye.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:p?`${g}px`:"64px",backgroundColor:"#ffffff",borderLeft:"1px solid #e1e4e8",flexShrink:0,transition:A?"none":"width 0.2s ease",display:"flex",flexDirection:"column",position:"relative"},children:[p&&l.jsx("div",{onPointerDown:D,onPointerMove:W,onPointerUp:K,onPointerCancel:K,style:{position:"absolute",left:"-3px",top:0,bottom:0,width:"6px",cursor:"col-resize",zIndex:50,backgroundColor:A?"#0969da":"transparent",transition:"background-color 0.2s ease"},onMouseEnter:j=>{A||(j.currentTarget.style.backgroundColor="#0969da")},onMouseLeave:j=>{A||(j.currentTarget.style.backgroundColor="transparent")}}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",overflowY:"auto",padding:p?"24px 20px 80px 20px":"16px 8px 16px 8px"},children:[l.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:p?"flex-start":"center",gap:"12px",marginBottom:p?"24px":"16px",flexShrink:0},children:[l.jsx("button",{onClick:()=>f(!p),style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"4px",marginTop:p?"4px":"0",background:"transparent",border:"none",color:"#8c959f",cursor:"pointer",transition:"color 0.2s ease",flexShrink:0},onMouseEnter:j=>j.currentTarget.style.color="#24292f",onMouseLeave:j=>j.currentTarget.style.color="#8c959f",title:p?"Collapse Property Editor":"Expand Property Editor",children:p?l.jsx(In,{size:18}):l.jsx(Ac,{size:18})}),p&&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})]})]}),p&&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:()=>T("Details"),style:{padding:"8px 0",marginRight:"24px",background:"transparent",border:"none",borderBottom:w==="Details"?"2px solid #0969da":"2px solid transparent",color:w==="Details"?"#0969da":"#57606a",fontWeight:w==="Details"?"600":"500",fontSize:"13px",cursor:"pointer",transition:"all 0.2s ease"},children:"Details"}),l.jsx("button",{onClick:()=>T("Connections"),style:{padding:"8px 0",background:"transparent",border:"none",borderBottom:w==="Connections"?"2px solid #0969da":"2px solid transparent",color:w==="Connections"?"#0969da":"#57606a",fontWeight:w==="Connections"?"600":"500",fontSize:"13px",cursor:"pointer",transition:"all 0.2s ease"},children:"Connections"})]}),w==="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:j=>u==null?void 0:u(j.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:j=>u==null?void 0:u(j.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:j=>m==null?void 0:m(j.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($d,{label:"Steps",value:i,onChange:h,placeholder:"Enter steps to reproduce...",minHeight:"80px"}),l.jsx($d,{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: ",k,"/1"]})]}),l.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"},children:[M.map((j,V)=>{const Y=j.endsWith(".mp4")||j.endsWith(".webm");return l.jsxs("div",{onClick:()=>N({url:j,type:Y?"video":"image"}),style:{position:"relative",width:"80px",height:"60px",borderRadius:"6px",border:"1px solid #d0d7de",overflow:"hidden",backgroundColor:"#f6f8fa",cursor:"pointer"},children:[Y?l.jsx("video",{src:j,style:{width:"100%",height:"100%",objectFit:"cover"},muted:!0,loop:!0,playsInline:!0,onMouseEnter:q=>q.currentTarget.play().catch(()=>{}),onMouseLeave:q=>{q.currentTarget.pause(),q.currentTarget.currentTime=0}}):l.jsx("img",{src:j,alt:`Reference ${V}`,style:{width:"100%",height:"100%",objectFit:"cover"}}),l.jsx("button",{onClick:q=>{q.stopPropagation(),ve(V)},disabled:ae,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:ae?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center",opacity:ae?.5:1},children:ae?l.jsx(Ur,{size:12,className:"flowstride-spin"}):l.jsx(Ir,{size:12})})]},`${j}-${V}`)}),(z<1||k<1)&&l.jsxs(l.Fragment,{children:[l.jsx("input",{type:"file",ref:G,onChange:re,multiple:!0,accept:".png,.jpg,.jpeg,.gif,.mp4,.webm",style:{display:"none"}}),l.jsxs("button",{onClick:()=>{var j;return(j=G.current)==null?void 0:j.click()},disabled:H,style:{width:"80px",height:"60px",backgroundColor:H?"#f6f8fa":"#ffffff",border:"1px dashed #0969da",borderRadius:"6px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:H?"not-allowed":"pointer",color:H?"#8c959f":"#0969da",transition:"all 0.2s ease"},children:[H?l.jsx(Ur,{size:16,className:"flowstride-spin",style:{marginBottom:"4px"}}):l.jsx(yg,{size:16,style:{marginBottom:"4px"}}),l.jsx("span",{style:{fontSize:"11px",fontWeight:"500"},children:H?"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(!le),style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px",border:le?"1px solid #0969da":"1px solid #d0d7de",borderRadius:"6px",backgroundColor:"#ffffff",cursor:"pointer",outline:"none",boxShadow:le?"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:R}}),l.jsx("span",{style:{fontSize:"13px",color:"#24292f",fontWeight:"500"},children:fe})]}),l.jsx(Br,{size:14,color:"#57606a",style:{transform:le?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}})]}),le&&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(j=>l.jsxs("button",{onClick:()=>{_==null||_(j),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:X[j]}}),l.jsx("span",{style:{fontSize:"13px",color:"#24292f"},children:j})]},j))})]})]})]})}):l.jsx("div",{style:{display:"flex",flexDirection:"column"},children:l.jsx("p",{style:{fontSize:"12px",color:"#57606a",fontFamily:"monospace"},children:"CONNECTIONS UI SCAFFOLD"})})]})]})]})]})},L1=({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),[T,p]=b.useState(!1),f=e.length,g=e.filter(z=>z.status==="Passed").length,S=e.filter(z=>z.status==="Failed").length,A=e.filter(z=>z.status==="Blocked").length,P=e.filter(z=>z.status==="Skipped").length,F=f===0?0:g/f*100,C=f===0?0:S/f*100,G=f===0?0:A/f*100,H=f===0?0:P/f*100,ee=100-F-C-G-H;b.useEffect(()=>{const z=e.find(k=>k.status==="Current");z&&z.group_title&&s(z.group_title)},[e]);const ae=[];e.forEach(z=>{const k=z.group_title||"";let D=ae.find(W=>W.groupName===k);D||(D={groupName:k,steps:[]},ae.push(D)),D.steps.push(z)});const B=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"}}},le=(z,k)=>{const D=e.find(W=>W.id===z);x({report:(D==null?void 0:D.defect_report)||"",media:(D==null?void 0:D.defect_media)||"",assignedTo:(D==null?void 0:D.assigned_to)||""}),c({stepId:z,type:k})},ne=()=>{c(null)},ye=()=>{!a||n||(t==null||t(a.stepId,h.report,h.media,h.assignedTo),ne())},N=async z=>{var ve;if(n)return;const k=Array.from(z.target.files||[]);if(k.length===0)return;const D=h.media.split(",").filter(Boolean);let W=D.filter(X=>X.endsWith(".mp4")||X.endsWith(".webm")).length,K=D.filter(X=>!X.endsWith(".mp4")&&!X.endsWith(".webm")).length;const re=[];w(!0);for(const X of k){const fe="."+(((ve=X.name.split(".").pop())==null?void 0:ve.toLowerCase())||""),R=fe===".mp4"||fe===".webm",j=[".png",".jpg",".jpeg",".gif"].includes(fe);if(R){if(W>=4){window.alert("Architectural Limit Reached: Maximum 4 defect video clips allowed.");continue}if(X.size>104857600){window.alert(`Security Block: Video ${X.name} exceeds 100MB physical limit.`);continue}W++}else if(j){if(K>=6){window.alert("Architectural Limit Reached: Maximum 6 defect images allowed.");continue}if(X.size>5242880){window.alert(`Security Block: Image ${X.name} exceeds 5MB physical limit.`);continue}K++}else{window.alert(`Security Block: Unsupported file format ${fe}.`);continue}try{const V=await fetch("/api/upload-defect",{method:"POST",headers:{"X-File-Extension":fe},body:X});if(!V.ok)throw new Error("Network response was not ok");const Y=await V.json();Y.url&&re.push(Y.url)}catch{window.alert(`Network Error: Failed to vault defect evidence ${X.name}.`)}}if(re.length>0){const X=[...D,...re].join(",");x({...h,media:X})}w(!1),y.current&&(y.current.value="")},M=async z=>{if(T||n)return;const k=h.media.split(",").filter(Boolean),D=k[z];if(D){p(!0);try{const W=await fetch(`/api/defect-media?filepath=${encodeURIComponent(D)}`,{method:"DELETE"});if(!W.ok&&W.status!==404)throw new Error(`Server returned ${W.status}`);const K=[...k];K.splice(z,1),x({...h,media:K.join(",")})}catch(W){console.error("[Flowstride Security Alert]: Physical deletion of defect media failed.",W),window.alert("Security Block: Failed to physically remove defect media. Please try again.")}finally{p(!1)}}};return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
435
- .flowstride-spin {
436
- animation: flowstride-spin-anim 1s linear infinite;
437
- }
438
- @keyframes flowstride-spin-anim {
439
- 100% { transform: rotate(360deg); }
440
- }
441
- `}),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(Ir,{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(Dc,{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:g}),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:S}),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:A}),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:P}),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:`${F}%`,transition:"width 0.3s ease"}}),l.jsx("div",{style:{height:"100%",backgroundColor:"#ef4444",width:`${C}%`,transition:"width 0.3s ease"}}),l.jsx("div",{style:{height:"100%",backgroundColor:"#f59e0b",width:`${G}%`,transition:"width 0.3s ease"}}),l.jsx("div",{style:{height:"100%",backgroundColor:"#a855f7",width:`${H}%`,transition:"width 0.3s ease"}}),l.jsx("div",{style:{height:"100%",backgroundColor:"#cbd5e1",width:`${ee}%`,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:ae.map((z,k)=>{const D=z.groupName==="",W=D||i===z.groupName;return l.jsxs("div",{style:{marginBottom:D?"0":"8px"},children:[!D&&l.jsxs("button",{onClick:()=>s(W?null:z.groupName),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:W?"#f8fafc":"#ffffff",border:"1px solid #e2e8f0",borderRadius:"8px",cursor:"pointer",transition:"all 0.2s ease",outline:"none",boxShadow:W?"none":"0 1px 2px rgba(0,0,0,0.02)"},children:[l.jsx("span",{style:{fontSize:"12px",fontWeight:"bold",color:W?"#0f172a":"#475569",textTransform:"uppercase",letterSpacing:"0.05em"},children:z.groupName}),l.jsx(Br,{size:16,color:"#94a3b8",style:{transform:W?"rotate(180deg)":"none",transition:"transform 0.2s ease"}})]}),W&&l.jsx("div",{style:{position:"relative",borderLeft:"2px solid #e2e8f0",marginLeft:D?"11px":"27px",paddingBottom:"8px",marginTop:D?"0":"16px",transition:"all 0.3s ease"},children:z.steps.map(K=>{const re=B(K.status),ve=r===K.id,X=re.label==="FAILED"||re.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:re.dotBg,boxShadow:`0 0 0 4px ${re.dotRing}`,zIndex:10,transition:"background-color 0.3s ease, box-shadow 0.3s ease"}}),l.jsxs("div",{style:{border:`1px solid ${re.cardBorder}`,borderRadius:"8px",padding:"14px",backgroundColor:re.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 ",K.id]}),l.jsx("span",{style:{padding:"2px 8px",borderRadius:"4px",fontSize:"9px",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"0.05em",backgroundColor:re.badgeBg,color:re.badgeText,transition:"all 0.3s ease"},children:re.label})]}),l.jsx("h3",{style:{fontSize:"13px",fontWeight:"bold",color:"#0f172a",lineHeight:"1.4",margin:"0 0 4px 0"},children:K.title}),l.jsx("p",{style:{fontSize:"11px",color:"#64748b",lineHeight:"1.6",margin:0},children:K.description}),X&&l.jsxs("div",{style:{marginTop:"12px"},children:[l.jsxs("button",{onClick:()=>o(ve?null:K.id),style:{width:"100%",padding:"6px 12px",backgroundColor:"#ffffff",border:`1px solid ${re.label==="FAILED"?"#fecaca":"#fde68a"}`,color:re.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(Om,{size:14,strokeWidth:2.5}),re.label==="FAILED"?"Failure Details":"Blocked Details"]}),l.jsx(Br,{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 ${re.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:()=>le(K.id,re.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(ko,{size:14,color:re.label==="FAILED"?"#ef4444":"#f59e0b",style:{marginRight:"8px"}})," ",re.label==="FAILED"?"Failed Report":"Blocked Report"]}),l.jsxs("button",{onClick:()=>le(K.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(Cs,{size:14,color:"#6366f1",style:{marginRight:"8px"}})," ","Screenshot"]}),l.jsxs("button",{onClick:()=>le(K.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(js,{size:14,color:"#10b981",style:{marginRight:"8px"}})," ","Video Clip"]}),l.jsxs("button",{onClick:()=>le(K.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(Ed,{size:14,color:"#f59e0b",style:{marginRight:"8px"}})," ","Assigned To"]})]})]})]})]},K.id)})})]},z.groupName||`ungrouped-${k}`)})})})]}),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(Cs,{size:20,color:"#6366f1"}),a.type==="Video Clip"&&l.jsx(js,{size:20,color:"#10b981"}),a.type==="Failed Report"&&l.jsx(ko,{size:20,color:"#ef4444"}),a.type==="Blocked Report"&&l.jsx(ko,{size:20,color:"#f59e0b"}),a.type==="Assigned To"&&l.jsx(Ed,{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(Ir,{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,k)=>{const D=z.endsWith(".mp4")||z.endsWith(".webm");return l.jsxs("div",{onClick:()=>m({url:z,type:D?"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:[D?l.jsx("video",{src:z,style:{width:"100%",height:"100%",objectFit:"cover"},muted:!0,loop:!0,playsInline:!0,onMouseEnter:W=>W.currentTarget.play().catch(()=>{}),onMouseLeave:W=>{W.currentTarget.pause(),W.currentTarget.currentTime=0}}):l.jsx("img",{src:z,alt:`Defect Evidence ${k}`,style:{width:"100%",height:"100%",objectFit:"cover"}}),!n&&l.jsx("button",{onClick:W=>{W.stopPropagation(),M(k)},disabled:T,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:T?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center",opacity:T?.5:1,transition:"background 0.2s ease"},children:T?l.jsx(Ur,{size:14,className:"flowstride-spin"}):l.jsx(Ir,{size:14})})]},`${z}-${k}`)})}),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(Cs,{size:28,color:"#cbd5e1"}):l.jsx(js,{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:N,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:_,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:_?"not-allowed":"pointer",boxShadow:"0 1px 2px rgba(0,0,0,0.05)",opacity:_?.7:1},children:[_?l.jsx(Ur,{size:16,className:"flowstride-spin"}):l.jsx(Mm,{size:16}),_?"Vaulting...":"Upload Evidence"]})]}):null,l.jsxs("button",{onClick:ye,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(zm,{size:16})," Save Data"]})]})]})]})]})]})},A1=()=>{const[e,t]=b.useState(xe.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),[T,p]=b.useState({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()}),{activeHistoricalRunId:f,setActiveHistoricalRunId:g}=Ze(),S=b.useRef(null),[A,P]=b.useState(null),F=b.useCallback((k,D,W,K)=>{P({stepNumber:k,defectReport:D,defectMedia:W,assignedTo:K})},[]),C=async()=>{try{const k=await fetch("/api/templates");if(k.ok){const D=await k.json();y(D.templates||[])}}catch(k){console.error("[Flowstride Telemetry Error]: Failed to fetch local templates",k),at.error("Failed to connect to local file vault.")}};b.useEffect(()=>{let k=!0;return(async()=>{if(await C(),!k||f)return;let W=null;try{const K=await fetch("/api/state");K.ok&&(W=(await K.json()).activeFlowId)}catch(K){console.warn("[Flowstride Telemetry]: Failed to read physical state vault.",K)}if(k){if(W&&S.current)try{const K=await fetch(`/api/template?filename=${encodeURIComponent(W)}`);if(K.ok){const re=await K.json();if(!k)return;S.current.importDesignState(re),re.metadata&&p(re.metadata),w(W);return}}catch{console.warn("[Flowstride Telemetry]: Persisted flow missing, reverting to default.")}if(k&&S.current){S.current.importDesignState({nodes:[],groups:[],texts:[],connections:[]}),p({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()});const K=`unsaved-temp-${Date.now()}`;y(re=>[...re.filter(ve=>!ve.id.startsWith("unsaved-temp")),{id:K,name:"New Local Flow"}]),w(K)}}})(),()=>{k=!1}},[]),b.useEffect(()=>{if(_===void 0)return;(async()=>{const D=_&&!_.startsWith("unsaved-temp")?_:null;try{await fetch("/api/state",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({activeFlowId:D})})}catch(W){console.warn("[Flowstride Telemetry]: Failed to sync physical state vault.",W)}})()},[_]),b.useEffect(()=>{if(!f)return;(async()=>{try{const D=await fetch(`/api/run?filename=${encodeURIComponent(f)}`);if(!D.ok)throw new Error("Failed to fetch historical run payload");const W=await D.json();S.current&&(S.current.importDesignState(W),W.executionReport?a(W.executionReport):a([]),W.metadata&&p(W.metadata),w(void 0),i(null),t(xe.Execution),at.success("Historical record loaded successfully."))}catch(D){console.error("[Flowstride Telemetry Error]: Historical load failed",D),at.error("Failed to load the historical run.")}})()},[f]);const G=()=>{u(k=>Math.min(k+.1,3))},H=()=>{u(k=>Math.max(k-.1,.25))},ee=()=>{u(1),h(k=>k+1)},ae=(k,D,W,K="Node",re,ve,X,fe,R)=>{i(k===null?null:{type:K,id:k,title:D,description:W,visualStep:re,stepsContent:ve,expectedResult:X,references:fe,priority:R})},B=async k=>{if(f&&g(null),y(D=>D.filter(W=>!W.id.startsWith("unsaved-temp")||W.id===k)),k.startsWith("unsaved-temp")){S.current&&(S.current.importDesignState({nodes:[],groups:[],texts:[],connections:[]}),w(k),i(null));return}try{const D=await fetch(`/api/template?filename=${encodeURIComponent(k)}`);if(!D.ok)throw new Error("Failed to fetch template payload");const W=await D.json();S.current&&(S.current.importDesignState(W),W.metadata?p(W.metadata):p({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()}),w(k),i(null),at.success(`Loaded ${k.replace(".json","")}`))}catch(D){console.error("[Flowstride Telemetry Error]: Blueprint load failed",D),at.error("Failed to load the selected flow.")}},le=()=>{if(f&&g(null),S.current){S.current.importDesignState({nodes:[],groups:[],texts:[],connections:[]}),p({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()});const k=`unsaved-temp-${Date.now()}`;y(D=>[...D.filter(W=>!W.id.startsWith("unsaved-temp")),{id:k,name:"New Local Flow"}]),w(k),i(null)}},ne=async k=>{try{if(k.startsWith("unsaved-temp")){y(W=>W.filter(K=>K.id!==k)),_===k&&(w(void 0),S.current&&(S.current.importDesignState({nodes:[],groups:[],texts:[],connections:[]}),p({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()}))),at.success("Temporary flow removed");return}const D=await fetch(`/api/template?filename=${encodeURIComponent(k)}`,{method:"DELETE"});if(!D.ok)throw new Error(`Local backend rejected deletion with status: ${D.status}`);at.success(`Deleted ${k.replace(".json","")}`),await C(),_===k&&(w(void 0),i(null),S.current&&(S.current.importDesignState({nodes:[],groups:[],texts:[],connections:[]}),p({flowName:"New Local Flow",version:"1.0",testPlan:"",environment:"Local",lastUpdatedBy:"Local User",lastUpdatedAt:Date.now()})))}catch(D){console.error("[Flowstride Telemetry Error]: Failed to delete flow",D),at.error("Failed to delete flow securely.")}},ye=(k,D)=>{y(W=>W.map(K=>K.id===k?{...K,name:D}:K))},N=async k=>{if(!S.current){console.warn("[Flowstride Telemetry]: Canvas bridge is not yet established."),at.error("System not fully initialized.");return}try{const D=S.current.exportDesignState(),W=Date.now(),K="Local User";let re="New Local Flow",ve=null;if(k)re=k,_&&!_.startsWith("unsaved-temp")&&_!==`${k}.json`&&(ve=_);else if(_)if(_.startsWith("unsaved-temp")){const fe=x.find(R=>R.id===_);fe&&(re=fe.name)}else re=_.replace(".json","");let X;if(e===xe.Execution){const fe={...T,flowName:re,testedBy:K,lastUpdatedAt:W};X={...D,metadata:fe,executionReport:s}}else{const fe={...T,flowName:re,lastUpdatedBy:K,lastUpdatedAt:W};p(fe),X={...D,metadata:fe}}if(e===xe.Execution){const fe=`Run_${re}_${Date.now()}.json`,R=await fetch("/api/save-run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({canvasData:X,filename:fe})});if(!R.ok)throw new Error(`Local server rejected the run payload with status: ${R.status}`);console.log(`[Flowstride Telemetry]: Execution Run securely vaulted as ${fe}`),at.success("Run successfully submitted and vaulted locally.")}else{const fe=`${re}.json`,R=await fetch("/api/save-design",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({canvasData:X,filename:fe})});if(!R.ok)throw new Error(`Local server rejected the template payload with status: ${R.status}`);const j=await R.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 ${fe}`),_&&_.startsWith("unsaved-temp")&&y(V=>V.filter(Y=>Y.id!==_)),await C(),j.filename&&w(j.filename),at.success(`Successfully vaulted ${re} locally`)}}catch(D){throw console.error("[Flowstride Telemetry Error]: Failed to vault data locally:",D.message),at.error("Failed to vault data securely."),D}},M=async k=>{if(k===xe.Execution&&e===xe.Design)try{await N()}catch{console.warn("[Flowstride Telemetry Error]: Aborting mode switch due to auto save failure.");return}t(k)},z=b.useCallback(k=>{f||a(k)},[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(Qy,{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(j1,{activeMode:e,onModeChange:M,onSave:N,flows:x,activeFlowId:_,onSelectFlow:B,onCreateFlow:le,onDeleteFlow:ne,onRenameFlow:ye,zoomLevel:c,onZoomIn:G,onZoomOut:H,onZoomReset:ee,metadata:T,onMetadataChange:p}),l.jsxs("div",{style:{flex:1,display:"flex",overflow:"hidden"},children:[e===xe.Design&&l.jsx(z1,{activeTool:n,onToolSelect:r}),l.jsx(Og,{ref:S,activeMode:e,activeTool:n,onNodeSelected:(k,D,W,K,re,ve,X,fe)=>ae(k,D,W,"Node",K,re,ve,X,fe),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:A,onGroupSelected:(k,D)=>ae(k,D,"","Group"),groupUpdateTrigger:(o==null?void 0:o.type)==="Group"?{groupId:o.id,title:o.title}:null,onTextSelected:(k,D)=>ae(k,D,"","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===xe.Design?o?l.jsx(I1,{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:k=>i({...o,title:k}),onDescriptionChange:k=>i({...o,description:k}),onStepsContentChange:k=>i({...o,stepsContent:k}),onExpectedResultChange:k=>i({...o,expectedResult:k}),onReferencesChange:k=>i({...o,references:k}),onPriorityChange:k=>i({...o,priority:k})}):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(L1,{report:s,onDefectSubmit:F,isReadOnly:!!f})]})]})},D1=()=>{const[e,t]=b.useState([]),[n,r]=b.useState(!0),[o,i]=b.useState(""),{setActiveView:s,setActiveHistoricalRunId:a}=Ze();b.useEffect(()=>{(async()=>{try{const x=await fetch("/api/runs");if(x.ok){const _=((await x.json()).runs||[]).sort((w,T)=>T.id.localeCompare(w.id));t(_)}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 g,S,A,P;const x=h.id.split("/"),y=x.length>=3?x[0]:"N/A",_=x.length>=3?x[1].replace(/-/g,":"):"N/A",w=((g=h.metrics)==null?void 0:g.status)||"UNKNOWN",T=((S=h.metrics)==null?void 0:S.passed)||0,p=((A=h.metrics)==null?void 0:A.failed)||0,f=((P=h.metrics)==null?void 0:P.total)||0;return l.jsxs("tr",{style:{borderBottom:"1px solid #21262d",transition:"background-color 0.2s",cursor:"pointer"},onMouseEnter:F=>F.currentTarget.style.backgroundColor="#1c2128",onMouseLeave:F=>F.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:_}),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(w),backgroundColor:m(w),padding:"4px 8px",borderRadius:"12px",fontSize:"11px",fontWeight:"600",display:"inline-block"},children:w})}),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:T>0?"#3fb950":"#8b949e",fontWeight:T>0?"500":"normal"},children:[T," Passed"]}),l.jsx("span",{style:{margin:"0 4px"},children:"•"}),l.jsxs("span",{style:{color:p>0?"#f85149":"#8b949e",fontWeight:p>0?"500":"normal"},children:[p," Failed"]})]})})]},h.id)})})]}),c.length===0&&l.jsx("div",{style:{padding:"32px",textAlign:"center",color:"#8b949e"},children:"No runs match your search query."})]})]})},N1=()=>{const{testScenarios:e,activeTestFile:t,activeStepId:n,setActiveStepId:r,isRunning:o}=Ze(),i=Array.from(new Set(e.map(p=>p.fileName))).filter(Boolean),[s,a]=b.useState(null),[c,u]=b.useState({}),m=b.useRef(null);b.useEffect(()=>{if(n){const p=setTimeout(()=>{const f=document.querySelector('[data-active-step="true"]');f&&f.scrollIntoView({behavior:"smooth",block:"nearest"})},60);return()=>clearTimeout(p)}},[n,t]),b.useEffect(()=>{t&&a(t)},[t]);const h=i.length;let x=0,y=0;i.forEach(p=>{const g=e.filter(S=>S.fileName===p).flatMap(S=>S.steps);g.length>0&&(g.some(S=>S.status==="failed")?y++:g.every(S=>["pass","passed","success"].includes(S.status))&&x++)});const _=p=>{a(s===p?null:p)},w=(p,f)=>{f.stopPropagation(),u(g=>({...g,[p]:!g[p]}))},T=(p,f=14)=>{switch(p){case"pass":case"passed":case"success":return l.jsx(Dc,{size:f,color:"#34d399"});case"failed":return l.jsx(pg,{size:f,color:"#f87171"});case"running":return l.jsx(Ur,{size:f,color:"#60a5fa",className:"animate-spin"});case"skipped":return l.jsx(bd,{size:f,color:"#6e7681"});default:return l.jsx(bd,{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(Pc,{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(p=>{const f=s===p,g=e.filter(C=>C.fileName===p),S=g.flatMap(C=>C.steps);let A="pending";S.length>0?S.some(C=>C.status==="failed")?A="failed":S.some(C=>C.status==="running")?A="running":S.every(C=>["pass","passed","success"].includes(C.status))&&(A="pass"):g.some(C=>C.status==="running")&&(A="running");const P=[];let F=null;return S.forEach(C=>{const G=`${C.type}-${C.description||"Action"}`;!F||F.id!==G?(F={id:G,type:C.type,desc:C.description,status:C.status,steps:[C]},P.push(F)):F.steps.push(C)}),P.forEach(C=>{C.steps.some(G=>G.status==="failed")?C.status="failed":C.steps.some(G=>G.status==="running")?C.status="running":C.steps.every(G=>["pass","passed","success"].includes(G.status))?C.status="pass":C.status="pending"}),l.jsxs("div",{style:{borderBottom:"1px solid #21262d"},children:[l.jsxs("div",{onClick:()=>_(p),onMouseEnter:C=>C.currentTarget.style.backgroundColor="rgba(124, 58, 237, 0.05)",onMouseLeave:C=>C.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(Br,{size:14,color:"#8b949e",style:{marginRight:"8px",flexShrink:0}}):l.jsx(In,{size:14,color:"#8b949e",style:{marginRight:"8px",flexShrink:0}}),l.jsx("div",{style:{flexShrink:0,display:"flex",alignItems:"center"},children:T(A,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:p})]}),f&&l.jsx("div",{style:{backgroundColor:"#05070a",padding:"5px 0"},children:P.length>0?P.map(C=>{const G=c[C.id]!==!1;return l.jsxs("div",{children:[l.jsxs("div",{onClick:H=>w(C.id,H),onMouseEnter:H=>H.currentTarget.style.backgroundColor="#161b22",onMouseLeave:H=>H.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:[G?l.jsx(Br,{size:12,color:"#6e7681",style:{marginRight:"6px",flexShrink:0}}):l.jsx(In,{size:12,color:"#6e7681",style:{marginRight:"6px",flexShrink:0}}),l.jsx("div",{style:{flexShrink:0,display:"flex",alignItems:"center"},children:T(C.status,12)}),l.jsx("span",{style:{color:"#a78bfa",fontWeight:"bold",fontSize:"11px",marginLeft:"6px",flexShrink:0},children:C.type}),C.desc&&l.jsxs("span",{style:{color:"#c9d1d9",fontSize:"11px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginLeft:"4px"},children:['- "',C.desc,'"']})]}),G&&l.jsx("div",{style:{paddingBottom:"8px"},children:C.steps.map(H=>{const ee=n===`${p}:::${H.id}`||o&&n===H.id&&t===p;return l.jsxs("div",{onClick:()=>r(`${p}:::${H.id}`),"data-flow-file":p,"data-step-id":H.id,"data-active-step":ee?"true":"false",style:{display:"flex",alignItems:"center",padding:"6px 15px 6px 65px",opacity:H.status==="pending"?.5:1,cursor:"pointer",backgroundColor:ee?"rgba(124, 58, 237, 0.15)":"transparent",borderLeft:ee?"3px solid #a78bfa":"3px solid transparent",transition:"all 0.2s ease"},children:[l.jsx("div",{style:{flexShrink:0,display:"flex",alignItems:"center"},children:T(H.status,10)}),l.jsx("span",{style:{color:ee?"#fff":"#8b949e",fontWeight:ee?"bold":"normal",fontFamily:"monospace",fontSize:"11px",flex:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",marginLeft:"8px"},children:H.command})]},H.id)})})]},C.id)}):l.jsx("div",{style:{padding:"20px",textAlign:"center",color:"#8b949e",fontSize:"11px"},children:"Awaiting execution..."})})]},p)})]})]})},P1=({isRightPanelOpen:e,onToggleRightPanel:t})=>{const{isRunning:n,timer:r,startExecution:o,stopExecution:i,incrementTimer:s,activeTestFile:a}=Ze();b.useEffect(()=>{let h;return n?h=setInterval(()=>{s()},1e3):clearInterval(h),()=>clearInterval(h)},[n,s]);const c=()=>{o(),ul("RERUN_REQ",{filePath:a})},u=()=>{i(),ul("STOP_REQ",{})},m=h=>{const x=Math.floor(h/60).toString().padStart(2,"0"),y=(h%60).toString().padStart(2,"0");return`00:${x}:${y}`};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(In,{size:12})," ",l.jsx("span",{style:{color:"white"},children:a})]}),(n||r>0)&&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":"Complete"}),l.jsx("span",{style:{fontSize:"11px",color:"white",fontFamily:"monospace"},children:m(r)})]})]}),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(jm,{size:16}):l.jsx(Cm,{size:16})}),l.jsx("div",{style:{width:"1px",height:"20px",backgroundColor:"#30363d",margin:"0 5px"}}),n?l.jsxs("button",{onClick:u,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(Am,{size:14,fill:"currentColor"})," Stop"]}):l.jsxs("button",{onClick:c,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(mg,{size:14,fill:"currentColor"})," Run"]}),l.jsxs("button",{onClick:c,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(vg,{size:14})," Rerun"]})]})]})};function O1(){const{activeView:e}=Ze(),[t,n]=b.useState(!0),[r,o]=b.useState(!1),i=()=>{switch(e){case"Workspace":return l.jsx(A1,{});case"Runs":return l.jsx(D1,{});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(N1,{})})}),l.jsxs("main",{style:{flex:1,display:"flex",flexDirection:"column",height:"100vh",overflow:"hidden"},children:[l.jsx(P1,{isRightPanelOpen:r,onToggleRightPanel:()=>o(!r)}),l.jsx("div",{style:{flex:1,overflow:"hidden",position:"relative"},children:l.jsx(Ym,{isRightPanelOpen:r})})]})]});case"Logs":return l.jsx(ey,{});case"Reports":return l.jsx(Xm,{});case"TestCase":return l.jsx(Zm,{});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($m,{isTestFlowsOpen:t,setTestFlowsOpen:n}),l.jsx("div",{style:{flex:1,display:"flex",height:"100vh",overflow:"hidden"},children:i()})]})}function F1(){const[e,t]=b.useState("Initialising Native Engine...");return b.useEffect(()=>(_g(),(async()=>{try{await wg();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")}})(),()=>{qm()}),[]),l.jsxs(l.Fragment,{children:[l.jsx("div",{style:{backgroundColor:"#1e1e1e",color:"#00ff00",padding:"8px",textAlign:"center",fontFamily:"monospace"},children:e}),l.jsx(O1,{})]})}function M1(){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(xe.Design),[u,m]=b.useState("Hand"),[h,x]=b.useState(!1),[y,_]=b.useState(null),w=b.useRef(xe.Design),T=b.useRef("Hand"),p=b.useRef(1),f=b.useRef(1),[g,S]=b.useState(null),[A,P]=b.useState(null),F=b.useRef({x:0,y:0}),C=b.useRef({x:0,y:0}),G=b.useRef(!1),H=b.useRef(!1),ee=b.useRef(!1),ae=b.useRef(!1),B=b.useRef(!1),le=b.useRef(!1),ne=b.useRef({dx:0,dy:0,rafId:0}),ye=b.useRef({x:0,y:0}),N=(R,j)=>{window.parent.postMessage({type:R,payload:j},window.location.origin)},M=R=>{if(!(!n.current||!document.getElementById(e))&&!o.current){o.current=!0;try{n.current.clear_canvas(),f.current=1;const j=Array.isArray(R.nodes)?R.nodes:[],V=Array.isArray(R.groups)?R.groups:[],Y=Array.isArray(R.texts)?R.texts:[],q=Array.isArray(R.connections)?R.connections:[];j.forEach($=>{var pe;const ce=[$.visual_step||String($.id),$.title||"",$.description||"",$.steps||"",$.expected_result||"",$.references||"",$.defect_report||"",$.defect_media||"",$.assigned_to||"",$.priority||""].join("|||FLOWSTRIDE|||");(pe=n.current)==null||pe.restore_node_packed($.id,$.x,$.y,$.width,$.height,ce,!1);const Z=parseInt($.visual_step,10);!isNaN(Z)&&Z>=f.current&&(f.current=Z+1)}),V.forEach($=>{var ce;(ce=n.current)==null||ce.restore_group($.id,$.x,$.y,$.width,$.height,$.title||"",!1)}),Y.forEach($=>{var ce;(ce=n.current)==null||ce.restore_text($.id,$.x,$.y,$.width,$.height,$.content||"",!1)}),q.forEach($=>{var Z;const ce=[$.start_anchor||"Center",$.end_anchor||"Center"].join("|||FLOWSTRIDE|||");(Z=n.current)==null||Z.restore_connection_packed($.id,$.start_x,$.start_y,$.end_x,$.end_y,$.start_node_id||0,$.end_node_id||0,ce,!1)}),j.length+V.length+Y.length>0?(n.current.recenter_view(),C.current.x=n.current.get_pan_offset_x(),C.current.y=n.current.get_pan_offset_y()):(n.current.set_pan_offset(0,0),C.current.x=0,C.current.y=0),n.current.render_diagnostic_grid(),console.log("[Flowstride Telemetry]: Blueprint securely restored to WebAssembly memory.")}catch(j){console.error("[Flowstride Telemetry Error]: Failed to safely inject parsed state",j)}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(R){throw console.error("[Flowstride Telemetry Error]: Failed to parse state from Wasm",R),R}},importDesignState:R=>{if(R=Pg(R),!document.getElementById(e)){r.current=R;return}if(n.current)try{n.current.free()}catch{console.warn("[Flowstride Telemetry]: Bypassing poisoned Wasm lock during Hard Reset.")}const j=document.getElementById(e),V=Math.max(1,j.clientWidth),Y=Math.max(1,j.clientHeight);n.current=new dl(e,V,Y),n.current.set_mode(w.current);const q=window.devicePixelRatio||1;n.current.update_dimensions(V,Y,q,p.current),M(R)},setMode:R=>{w.current=R,c(R),n.current&&document.getElementById(e)&&(n.current.set_mode(R),n.current.render_diagnostic_grid(),R!==xe.Execution&&P(null))},setTool:R=>{T.current=R,m(R)},setZoom:R=>{if(p.current=R,n.current&&document.getElementById(e)){const j=document.getElementById(e),V=Math.max(1,j.clientWidth),Y=Math.max(1,j.clientHeight),q=window.devicePixelRatio||1;n.current.update_dimensions(V,Y,q,p.current),n.current.render_diagnostic_grid()}},recenterView:()=>{var R,j,V;if(n.current&&document.getElementById(e))try{const Y=n.current.export_design_state(),q=JSON.parse(Y);(((R=q.nodes)==null?void 0:R.length)||0)+(((j=q.groups)==null?void 0:j.length)||0)+(((V=q.texts)==null?void 0:V.length)||0)>0?(n.current.recenter_view(),C.current.x=n.current.get_pan_offset_x(),C.current.y=n.current.get_pan_offset_y()):(n.current.set_pan_offset(0,0),C.current.x=0,C.current.y=0),n.current.render_diagnostic_grid()}catch(Y){console.error("[Flowstride Telemetry Error]: Failed to structurally recenter view safely.",Y)}},updateNodeData:(R,j,V,Y,q,oe,$)=>{n.current&&document.getElementById(e)&&(n.current.update_node_data(R,j,V,Y,q,oe,$),n.current.render_diagnostic_grid())},updateNodeDefectData:(R,j,V,Y)=>{if(n.current&&document.getElementById(e)){n.current.update_node_defect_data(R,j,V,Y);try{const q=n.current.get_execution_report(),oe=JSON.parse(q);N("EXECUTION_REPORT_CHANGED",oe)}catch(q){console.error("Security Alert: Failed to safely parse Wasm execution report after defect mutation",q)}}},updateGroupTitle:(R,j)=>{n.current&&document.getElementById(e)&&(n.current.update_group_title(R,j),n.current.render_diagnostic_grid())},updateTextContent:(R,j)=>{n.current&&document.getElementById(e)&&(n.current.update_text_content(R,j),n.current.render_diagnostic_grid())}},()=>{if(delete window.flowstrideEngineAPI,n.current){try{n.current.free()}catch{}n.current=null}}),[]),b.useEffect(()=>{let R=!0;return(async()=>{try{await wg(),R&&s(!0)}catch(V){console.error("[Flowstride Telemetry Error]: Failed to allocate WebAssembly memory",V)}})(),()=>{R=!1}},[]),b.useEffect(()=>{if(!i)return;let R,j=null;const V=()=>{if(t.current&&n.current&&document.getElementById(e)){const q=Math.max(1,t.current.clientWidth),oe=Math.max(1,t.current.clientHeight),$=window.devicePixelRatio||1;n.current.update_dimensions(q,oe,$,p.current),n.current.render_diagnostic_grid()}},Y=()=>{const q=document.getElementById(e);if(!q){R=requestAnimationFrame(Y);return}if(!n.current){const oe=Math.max(1,q.clientWidth),$=Math.max(1,q.clientHeight);n.current=new dl(e,oe,$),n.current.set_mode(w.current)}V(),r.current?(M(r.current),r.current=null):n.current&&n.current.render_diagnostic_grid(),N("ENGINE_READY"),j=new ResizeObserver(()=>{V()}),j.observe(q),window.addEventListener("resize",V)};return R=requestAnimationFrame(Y),()=>{cancelAnimationFrame(R),j&&j.disconnect(),window.removeEventListener("resize",V)}},[i]),b.useEffect(()=>{const R=j=>{var V;if(!(document.activeElement instanceof HTMLInputElement||document.activeElement instanceof HTMLTextAreaElement||(V=document.activeElement)!=null&&V.isContentEditable||!document.getElementById(e))){if(w.current===xe.Design){const Y=j.metaKey||j.ctrlKey,q=j.shiftKey,oe=j.key.toLowerCase();if(Y&&oe==="z"){j.preventDefault(),n.current&&(q?n.current.trigger_redo()&&n.current.render_diagnostic_grid():n.current.trigger_undo()&&n.current.render_diagnostic_grid());return}if(Y&&oe==="y"){j.preventDefault(),n.current&&n.current.trigger_redo()&&n.current.render_diagnostic_grid();return}if(Y&&oe==="c"){j.preventDefault(),n.current&&n.current.copy_to_clipboard();return}if(Y&&oe==="v"){j.preventDefault(),n.current&&n.current.paste_from_clipboard()&&n.current.render_diagnostic_grid();return}if(Y&&oe==="d"){j.preventDefault(),n.current&&n.current.duplicate_selected()&&n.current.render_diagnostic_grid();return}(j.key==="Backspace"||j.key==="Delete")&&n.current&&n.current.delete_selected_entities()&&(n.current.render_diagnostic_grid(),N("NODE_SELECTED",{id:null,title:"",description:""}),N("GROUP_SELECTED",{id:null,title:""}),N("TEXT_SELECTED",{id:null,content:""}))}else if(w.current===xe.Execution&&["Enter","Delete","Backspace","Tab","Escape"].includes(j.key)&&(j.preventDefault(),n.current)){let Y;if(j.key==="Enter"?Y=Si.Passed:j.key==="Delete"||j.key==="Backspace"?Y=Si.Failed:j.key==="Tab"?Y=Si.Blocked:j.key==="Escape"&&(Y=Si.Skipped),Y!==void 0){n.current.evaluate_current_step(Y)&&(n.current.render_diagnostic_grid(),P(null));try{const oe=n.current.get_execution_report(),$=JSON.parse(oe);N("EXECUTION_REPORT_CHANGED",$)}catch(oe){console.error("Security Alert: Failed to safely parse Wasm report",oe)}}}}};return window.addEventListener("keydown",R),()=>{window.removeEventListener("keydown",R)}},[]),b.useEffect(()=>{const R=t.current;if(!R)return;const j=V=>{if(V.preventDefault(),!document.getElementById(e))return;const Y=p.current;C.current.x-=V.deltaX/Y,C.current.y-=V.deltaY/Y,n.current&&(n.current.set_pan_offset(C.current.x,C.current.y),n.current.render_diagnostic_grid())};return R.addEventListener("wheel",j,{passive:!1}),()=>{R.removeEventListener("wheel",j)}},[]);const z=(R,j)=>{if(j.trim()!==""&&n.current&&document.getElementById(e)&&n.current.update_node_visual_step(R,j.trim())){n.current.render_diagnostic_grid();const Y=n.current.get_node_title(R),q=n.current.get_node_description(R),oe=n.current.get_node_visual_step(R),$=n.current.get_node_steps(R),ce=n.current.get_node_expected_result(R),Z=n.current.get_node_references(R),pe=n.current.get_node_priority(R);N("NODE_SELECTED",{id:R,title:Y,description:q,visualStep:oe,stepsContent:$,expectedResult:ce,references:Z,priority:pe});const ie=parseInt(j.trim(),10);isNaN(ie)||(f.current=ie+1)}S(null)},k=()=>{ne.current.rafId&&(cancelAnimationFrame(ne.current.rafId),ne.current.rafId=0),ne.current.dx=0,ne.current.dy=0},D=()=>{if(!n.current||!document.getElementById(e)||ne.current.dx===0&&ne.current.dy===0){ne.current.rafId=0;return}const R=p.current;C.current.x-=ne.current.dx/R,C.current.y-=ne.current.dy/R,n.current.set_pan_offset(C.current.x,C.current.y);const j=ye.current.x,V=ye.current.y;ee.current?n.current.update_group_draw(j,V):G.current?n.current.update_connection_cursor(j,V):H.current?n.current.update_node_drag(j,V):ae.current?n.current.update_group_drag(j,V):B.current?n.current.update_text_drag(j,V):le.current&&n.current.update_text_resize(j,V),n.current.render_diagnostic_grid(),ne.current.rafId=requestAnimationFrame(D)},W=R=>{if(!n.current||!t.current||!document.getElementById(e))return;const j=t.current.getBoundingClientRect(),V=R.clientX-j.left,Y=R.clientY-j.top,q=p.current,oe=V/q,$=Y/q;if(w.current===xe.Execution){const ce=oe-C.current.x,Z=$-C.current.y;try{const pe=n.current.get_active_execution_hover_data(ce,Z);if(pe){const ie=JSON.parse(pe);P({x:ie.x,y:ie.y,width:ie.width,height:ie.height,stepsHtml:ie.steps})}else A&&P(null)}catch{A&&P(null)}return}if(w.current===xe.Design){if(R.currentTarget.setPointerCapture(R.pointerId),k(),g&&S(null),ye.current={x:oe,y:$},n.current.check_group_delete_click(oe,$)){n.current.render_diagnostic_grid();return}if(T.current==="Hand")x(!0),F.current={x:R.clientX-C.current.x*q,y:R.clientY-C.current.y*q};else if(T.current==="Group")n.current.begin_group_draw(oe,$)&&(ee.current=!0,n.current.render_diagnostic_grid());else if(T.current==="Arrow")n.current.begin_connection(oe,$)&&(G.current=!0,n.current.render_diagnostic_grid());else if(T.current==="Select"){const ce=n.current.check_node_menu_click(oe,$);if(ce>0){const pe=n.current.get_node_visual_step(ce);S({nodeId:ce,x:V,y:Y,value:pe});return}if(n.current.begin_text_resize(oe,$)){le.current=!0,n.current.render_diagnostic_grid();return}const Z=n.current.begin_node_drag(oe,$);if(Z>0){H.current=!0;const pe=n.current.get_node_title(Z),ie=n.current.get_node_description(Z),it=n.current.get_node_visual_step(Z),$e=n.current.get_node_steps(Z),Pn=n.current.get_node_expected_result(Z),Qo=n.current.get_node_references(Z),Ft=n.current.get_node_priority(Z);N("NODE_SELECTED",{id:Z,title:pe,description:ie,visualStep:it,stepsContent:$e,expectedResult:Pn,references:Qo,priority:Ft})}else{const pe=n.current.begin_group_drag(oe,$);if(pe>0){ae.current=!0;const ie=n.current.get_group_title(pe);N("GROUP_SELECTED",{id:pe,title:ie})}else{const ie=n.current.begin_text_drag(oe,$);if(ie>0){B.current=!0;const it=n.current.get_text_content(ie);N("TEXT_SELECTED",{id:ie,content:it})}else N("NODE_SELECTED",{id:null,title:"",description:""}),N("GROUP_SELECTED",{id:null,title:""}),N("TEXT_SELECTED",{id:null,content:""})}}n.current.render_diagnostic_grid()}}},K=R=>{if(w.current!==xe.Design||!n.current||!t.current||!document.getElementById(e))return;const j=t.current.getBoundingClientRect(),V=R.clientX-j.left,Y=R.clientY-j.top,q=p.current,oe=V/q,$=Y/q;if(ye.current={x:oe,y:$},h){const ce=(R.clientX-F.current.x)/q,Z=(R.clientY-F.current.y)/q;C.current={x:ce,y:Z},n.current.set_pan_offset(ce,Z),n.current.render_diagnostic_grid()}else if(T.current==="Select"&&!h&&!ee.current&&!G.current&&!H.current&&!ae.current&&!B.current&&!le.current&&n.current.check_text_resize_handle(oe,$)>0?y!=="ew-resize"&&_("ew-resize"):y!==null&&_(null),le.current&&T.current==="Select"?(n.current.update_text_resize(oe,$),n.current.render_diagnostic_grid()):ee.current&&T.current==="Group"?(n.current.update_group_draw(oe,$),n.current.render_diagnostic_grid()):G.current&&T.current==="Arrow"?(n.current.update_connection_cursor(oe,$),n.current.render_diagnostic_grid()):H.current&&T.current==="Select"?(n.current.update_node_drag(oe,$),n.current.render_diagnostic_grid()):ae.current&&T.current==="Select"?(n.current.update_group_drag(oe,$),n.current.render_diagnostic_grid()):B.current&&T.current==="Select"&&(n.current.update_text_drag(oe,$),n.current.render_diagnostic_grid()),ee.current||G.current||H.current||ae.current||B.current||le.current){let pe=0,ie=0;V<40?pe=-12*(1-Math.max(0,V)/40):V>j.width-40&&(pe=12*(1-Math.max(0,j.width-V)/40)),Y<40?ie=-12*(1-Math.max(0,Y)/40):Y>j.height-40&&(ie=12*(1-Math.max(0,j.height-Y)/40)),ne.current.dx=pe,ne.current.dy=ie,(pe!==0||ie!==0)&&!ne.current.rafId?ne.current.rafId=requestAnimationFrame(D):pe===0&&ie===0&&ne.current.rafId&&k()}},re=R=>{var ce;R.currentTarget.hasPointerCapture(R.pointerId)&&R.currentTarget.releasePointerCapture(R.pointerId),k(),h&&x(!1);const j=(ce=t.current)==null?void 0:ce.getBoundingClientRect();if(!j||!n.current||!document.getElementById(e))return;const V=R.clientX-j.left,Y=R.clientY-j.top,q=p.current,oe=V/q,$=Y/q;le.current&&T.current==="Select"&&(n.current.end_text_resize(),n.current.render_diagnostic_grid(),le.current=!1),ee.current&&T.current==="Group"&&(n.current.complete_group_draw(oe,$,"NEW TEST GROUP"),n.current.render_diagnostic_grid(),ee.current=!1),G.current&&T.current==="Arrow"&&(n.current.complete_connection(oe,$),n.current.render_diagnostic_grid(),G.current=!1),H.current&&T.current==="Select"&&(n.current.end_node_drag(),n.current.render_diagnostic_grid(),H.current=!1),ae.current&&T.current==="Select"&&(n.current.end_group_drag(),n.current.render_diagnostic_grid(),ae.current=!1),B.current&&T.current==="Select"&&(n.current.end_text_drag(),n.current.render_diagnostic_grid(),B.current=!1)},ve=R=>{R.currentTarget.hasPointerCapture(R.pointerId)&&R.currentTarget.releasePointerCapture(R.pointerId),k(),x(!1),!(!n.current||!document.getElementById(e))&&(le.current&&(n.current.end_text_resize(),n.current.render_diagnostic_grid(),le.current=!1),ee.current&&(n.current.cancel_group_draw(),n.current.render_diagnostic_grid(),ee.current=!1),G.current&&(n.current.cancel_connection(),n.current.render_diagnostic_grid(),G.current=!1),H.current&&(n.current.end_node_drag(),n.current.render_diagnostic_grid(),H.current=!1),ae.current&&(n.current.end_group_drag(),n.current.render_diagnostic_grid(),ae.current=!1),B.current&&(n.current.end_text_drag(),n.current.render_diagnostic_grid(),B.current=!1))},X=R=>{if(w.current===xe.Design&&n.current&&t.current&&document.getElementById(e)){const j=t.current.getBoundingClientRect(),V=R.clientX-j.left,Y=R.clientY-j.top,q=p.current,oe=V/q,$=Y/q,ce=oe-C.current.x,Z=$-C.current.y;if(T.current==="Step"){const pe="New Step",ie="Enter description here",it=f.current.toString(),$e=n.current.add_node(ce,Z,it,pe,ie,!0);f.current+=1,n.current.render_diagnostic_grid(),N("NODE_SELECTED",{id:$e,title:pe,description:ie,visualStep:it,stepsContent:"",expectedResult:"",references:"",priority:""})}else if(T.current==="Text"){const pe="New Text Block",ie=n.current.add_text(ce,Z,pe,!0);n.current.render_diagnostic_grid(),N("TEXT_SELECTED",{id:ie,content:pe}),N("TOOL_CHANGED","Select")}}},fe=()=>a===xe.Execution?"pointer":le.current?"ew-resize":y||(u==="Step"||u==="Group"?"crosshair":u==="Text"?"text":u==="Select"?H.current||ae.current||B.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:`
442
- body { margin: 0; padding: 0; overflow: hidden; }
443
- .flowstride-tooltip-fade-in {
444
- animation: flowstride-tooltip-fade-in-anim 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
445
- }
446
- @keyframes flowstride-tooltip-fade-in-anim {
447
- 0% { opacity: 0; transform: translateY(5px) scale(0.98); }
448
- 100% { opacity: 1; transform: translateY(0) scale(1); }
449
- }
450
- .rich-text-preview font[size="1"] { font-size: 10px; }
451
- .rich-text-preview font[size="3"] { font-size: 13px; }
452
- .rich-text-preview font[size="4"] { font-size: 18px; }
453
- .rich-text-preview font[size="5"] { font-size: 24px; }
454
- .rich-text-preview li:has(font[size="1"]) { font-size: 10px; }
455
- .rich-text-preview li:has(font[size="3"]) { font-size: 13px; }
456
- .rich-text-preview li:has(font[size="4"]) { font-size: 18px; }
457
- .rich-text-preview li:has(font[size="5"]) { font-size: 24px; }
458
- .rich-text-preview ul, .rich-text-preview ol { padding-left: 20px; margin: 4px 0; }
459
- .rich-text-preview p { margin: 0 0 4px 0; }
460
- `}),l.jsx("canvas",{id:e,ref:t,onClick:X,onPointerDown:W,onPointerMove:K,onPointerUp:re,onPointerCancel:ve,style:{width:"100%",height:"100%",display:"block",cursor:fe(),touchAction:"none"}}),A&&l.jsxs("div",{className:"flowstride-tooltip-fade-in",style:{position:"absolute",left:(A.x+C.current.x)*p.current+A.width*p.current+24,top:(A.y+C.current.y)*p.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:Ng.sanitize(A.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"}})]}),g&&l.jsxs("div",{style:{position:"absolute",left:g.x,top:g.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:R=>R.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:g.value,onChange:R=>S({...g,value:R.target.value}),onKeyDown:R=>{R.key==="Enter"&&z(g.nodeId,g.value),R.key==="Escape"&&S(null)},style:{width:"120px",padding:"6px",border:"1px solid #0969da",borderRadius:"4px",outline:"none",fontSize:"13px",color:"#24292f"}})]})]})}const Hd=Ms.createRoot(document.getElementById("root"));window.location.search.includes("frame=engine")?Hd.render(l.jsx(M1,{})):Hd.render(l.jsx(F1,{}));