@salesforce/metadata-plugins 1.14.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/plugins/agent/ui/assets/{VibeEditComposer-D5GykTkw.js → VibeEditComposer-sSbOXosJ.js} +1 -1
- package/dist/plugins/agent/ui/assets/index-BIxtmvIY.js +72 -0
- package/dist/plugins/agent/ui/assets/index-DK6mLwjU.css +1 -0
- package/dist/plugins/agent/ui/index.html +2 -2
- package/dist/plugins/{flow/ui/assets/VibeEditComposer-C36-RsSl.js → flexipage/ui/assets/VibeEditComposer-2omfTQa8.js} +1 -1
- package/dist/plugins/flexipage/ui/assets/index-Ch0zZsHI.css +1 -0
- package/dist/plugins/flexipage/ui/assets/index-uJdxEdOM.js +49 -0
- package/dist/plugins/flexipage/ui/index.html +2 -2
- package/dist/plugins/{permissionset/ui/assets/VibeEditComposer-HYu9RPHQ.js → flow/ui/assets/VibeEditComposer-6VCphcxQ.js} +1 -1
- package/dist/plugins/flow/ui/assets/index-CQ3TDL7z.css +1 -0
- package/dist/plugins/flow/ui/assets/index-CpyTpkLI.js +49 -0
- package/dist/plugins/flow/ui/index.html +2 -2
- package/dist/plugins/flowintent/ui/assets/{index-CzlE9StJ.js → index-y2EUB92Z.js} +8 -8
- package/dist/plugins/flowintent/ui/index.html +1 -1
- package/dist/plugins/keyvaluetable/KeyValueTableParser.d.ts +2 -1
- package/dist/plugins/keyvaluetable/KeyValueTableParser.d.ts.map +1 -1
- package/dist/plugins/keyvaluetable/KeyValueTableParser.js +4 -0
- package/dist/plugins/keyvaluetable/keyvaluetableSelectionGraph.d.ts +42 -0
- package/dist/plugins/keyvaluetable/keyvaluetableSelectionGraph.d.ts.map +1 -0
- package/dist/plugins/keyvaluetable/keyvaluetableSelectionGraph.js +167 -0
- package/dist/plugins/keyvaluetable/panelModel.d.ts +61 -0
- package/dist/plugins/keyvaluetable/panelModel.d.ts.map +1 -0
- package/dist/plugins/keyvaluetable/panelModel.js +101 -0
- package/dist/plugins/keyvaluetable/ui/assets/VibeEditComposer-BQeSigSs.css +1 -0
- package/dist/plugins/{flexipage/ui/assets/VibeEditComposer-CwNZdtC5.js → keyvaluetable/ui/assets/VibeEditComposer-D5tmk2tP.js} +1 -1
- package/dist/plugins/keyvaluetable/ui/assets/index-BHCYa3XE.css +1 -0
- package/dist/plugins/keyvaluetable/ui/assets/index-CKi34Iea.js +51 -0
- package/dist/plugins/keyvaluetable/ui/index.html +2 -2
- package/dist/plugins/permissionset/ui/assets/VibeEditComposer-CIuLlA6k.js +1 -0
- package/dist/plugins/permissionset/ui/assets/index-C30GA5Fg.js +49 -0
- package/dist/plugins/permissionset/ui/assets/index-DrM8dMi5.css +1 -0
- package/dist/plugins/permissionset/ui/index.html +2 -2
- package/dist/plugins/schema/ui/assets/VibeEditComposer-4dxANHzI.js +1 -0
- package/dist/plugins/schema/ui/assets/index-ByiBxce_.js +71 -0
- package/dist/plugins/schema/ui/assets/index-CkSyHqut.css +1 -0
- package/dist/plugins/schema/ui/index.html +2 -2
- package/package.json +3 -3
- package/dist/plugins/agent/ui/assets/index-CFqH429G.css +0 -1
- package/dist/plugins/agent/ui/assets/index-nYWtX5pm.js +0 -72
- package/dist/plugins/flexipage/ui/assets/index-C2upgZns.css +0 -1
- package/dist/plugins/flexipage/ui/assets/index-hFZPLB6p.js +0 -49
- package/dist/plugins/flow/ui/assets/index-CdpIq7gH.js +0 -49
- package/dist/plugins/flow/ui/assets/index-Ckw5Ej7p.css +0 -1
- package/dist/plugins/keyvaluetable/ui/assets/index-BMYDJ7MA.js +0 -50
- package/dist/plugins/keyvaluetable/ui/assets/index-CxfJGu2l.css +0 -1
- package/dist/plugins/permissionset/ui/assets/index-DWBjNYzW.css +0 -1
- package/dist/plugins/permissionset/ui/assets/index-DilBd-cG.js +0 -49
- package/dist/plugins/schema/ui/assets/VibeEditComposer-Ce9dBbb3.js +0 -1
- package/dist/plugins/schema/ui/assets/index-DSSQ6K8b.js +0 -71
- package/dist/plugins/schema/ui/assets/index-Dsaw92BM.css +0 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./VibeEditComposer-6VCphcxQ.js","./VibeEditComposer-BQeSigSs.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
(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 l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).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 Gc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var y2={exports:{}},Li={},v2={exports:{}},ne={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var uo=Symbol.for("react.element"),Zc=Symbol.for("react.portal"),Yc=Symbol.for("react.fragment"),Xc=Symbol.for("react.strict_mode"),Qc=Symbol.for("react.profiler"),Kc=Symbol.for("react.provider"),qc=Symbol.for("react.context"),Jc=Symbol.for("react.forward_ref"),ef=Symbol.for("react.suspense"),tf=Symbol.for("react.memo"),nf=Symbol.for("react.lazy"),ju=Symbol.iterator;function rf(e){return e===null||typeof e!="object"?null:(e=ju&&e[ju]||e["@@iterator"],typeof e=="function"?e:null)}var C2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x2=Object.assign,w2={};function ar(e,t,n){this.props=e,this.context=t,this.refs=w2,this.updater=n||C2}ar.prototype.isReactComponent={};ar.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")};ar.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function S2(){}S2.prototype=ar.prototype;function ks(e,t,n){this.props=e,this.context=t,this.refs=w2,this.updater=n||C2}var _s=ks.prototype=new S2;_s.constructor=ks;x2(_s,ar.prototype);_s.isPureReactComponent=!0;var Iu=Array.isArray,E2=Object.prototype.hasOwnProperty,Ls={current:null},k2={key:!0,ref:!0,__self:!0,__source:!0};function _2(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)E2.call(t,r)&&!k2.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var a=Array(s),c=0;c<s;c++)a[c]=arguments[c+2];o.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:uo,type:e,key:i,ref:l,props:o,_owner:Ls.current}}function of(e,t){return{$$typeof:uo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ms(e){return typeof e=="object"&&e!==null&&e.$$typeof===uo}function lf(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Pu=/\/+/g;function Qi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?lf(""+e.key):t.toString(36)}function Vo(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case uo:case Zc:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+Qi(l,0):r,Iu(o)?(n="",e!=null&&(n=e.replace(Pu,"$&/")+"/"),Vo(o,t,n,"",function(c){return c})):o!=null&&(Ms(o)&&(o=of(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Pu,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",Iu(e))for(var s=0;s<e.length;s++){i=e[s];var a=r+Qi(i,s);l+=Vo(i,t,n,a,o)}else if(a=rf(e),typeof a=="function")for(e=a.call(e),s=0;!(i=e.next()).done;)i=i.value,a=r+Qi(i,s++),l+=Vo(i,t,n,a,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 l}function go(e,t,n){if(e==null)return e;var r=[],o=0;return Vo(e,r,"","",function(i){return t.call(n,i,o++)}),r}function sf(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 Ye={current:null},Bo={transition:null},uf={ReactCurrentDispatcher:Ye,ReactCurrentBatchConfig:Bo,ReactCurrentOwner:Ls};function L2(){throw Error("act(...) is not supported in production builds of React.")}ne.Children={map:go,forEach:function(e,t,n){go(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return go(e,function(){t++}),t},toArray:function(e){return go(e,function(t){return t})||[]},only:function(e){if(!Ms(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Component=ar;ne.Fragment=Yc;ne.Profiler=Qc;ne.PureComponent=ks;ne.StrictMode=Xc;ne.Suspense=ef;ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uf;ne.act=L2;ne.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=x2({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=Ls.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)E2.call(t,a)&&!k2.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var c=0;c<a;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:uo,type:e.type,key:o,ref:i,props:r,_owner:l}};ne.createContext=function(e){return e={$$typeof:qc,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Kc,_context:e},e.Consumer=e};ne.createElement=_2;ne.createFactory=function(e){var t=_2.bind(null,e);return t.type=e,t};ne.createRef=function(){return{current:null}};ne.forwardRef=function(e){return{$$typeof:Jc,render:e}};ne.isValidElement=Ms;ne.lazy=function(e){return{$$typeof:nf,_payload:{_status:-1,_result:e},_init:sf}};ne.memo=function(e,t){return{$$typeof:tf,type:e,compare:t===void 0?null:t}};ne.startTransition=function(e){var t=Bo.transition;Bo.transition={};try{e()}finally{Bo.transition=t}};ne.unstable_act=L2;ne.useCallback=function(e,t){return Ye.current.useCallback(e,t)};ne.useContext=function(e){return Ye.current.useContext(e)};ne.useDebugValue=function(){};ne.useDeferredValue=function(e){return Ye.current.useDeferredValue(e)};ne.useEffect=function(e,t){return Ye.current.useEffect(e,t)};ne.useId=function(){return Ye.current.useId()};ne.useImperativeHandle=function(e,t,n){return Ye.current.useImperativeHandle(e,t,n)};ne.useInsertionEffect=function(e,t){return Ye.current.useInsertionEffect(e,t)};ne.useLayoutEffect=function(e,t){return Ye.current.useLayoutEffect(e,t)};ne.useMemo=function(e,t){return Ye.current.useMemo(e,t)};ne.useReducer=function(e,t,n){return Ye.current.useReducer(e,t,n)};ne.useRef=function(e){return Ye.current.useRef(e)};ne.useState=function(e){return Ye.current.useState(e)};ne.useSyncExternalStore=function(e,t,n){return Ye.current.useSyncExternalStore(e,t,n)};ne.useTransition=function(){return Ye.current.useTransition()};ne.version="18.3.1";v2.exports=ne;var _=v2.exports;const U=Gc(_);/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react-jsx-runtime.production.min.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var af=_,cf=Symbol.for("react.element"),ff=Symbol.for("react.fragment"),df=Object.prototype.hasOwnProperty,pf=af.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,hf={key:!0,ref:!0,__self:!0,__source:!0};function M2(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)df.call(t,r)&&!hf.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:cf,type:e,key:i,ref:l,props:o,_owner:pf.current}}Li.Fragment=ff;Li.jsx=M2;Li.jsxs=M2;y2.exports=Li;var u=y2.exports,Ml={},T2={exports:{}},it={},j2={exports:{}},I2={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.min.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/(function(e){function t(R,H){var W=R.length;R.push(H);e:for(;0<W;){var ee=W-1>>>1,A=R[ee];if(0<o(A,H))R[ee]=H,R[W]=A,W=ee;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var H=R[0],W=R.pop();if(W!==H){R[0]=W;e:for(var ee=0,A=R.length,te=A>>>1;ee<te;){var ie=2*(ee+1)-1,re=R[ie],le=ie+1,pe=R[le];if(0>o(re,W))le<A&&0>o(pe,re)?(R[ee]=pe,R[le]=W,ee=le):(R[ee]=re,R[ie]=W,ee=ie);else if(le<A&&0>o(pe,W))R[ee]=pe,R[le]=W,ee=le;else break e}}return H}function o(R,H){var W=R.sortIndex-H.sortIndex;return W!==0?W:R.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],c=[],d=1,m=null,g=3,y=!1,S=!1,L=!1,w=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 h(R){for(var H=n(c);H!==null;){if(H.callback===null)r(c);else if(H.startTime<=R)r(c),H.sortIndex=H.expirationTime,t(a,H);else break;H=n(c)}}function x(R){if(L=!1,h(R),!S)if(n(a)!==null)S=!0,z(k);else{var H=n(c);H!==null&&X(x,H.startTime-R)}}function k(R,H){S=!1,L&&(L=!1,p(E),E=-1),y=!0;var W=g;try{for(h(H),m=n(a);m!==null&&(!(m.expirationTime>H)||R&&!G());){var ee=m.callback;if(typeof ee=="function"){m.callback=null,g=m.priorityLevel;var A=ee(m.expirationTime<=H);H=e.unstable_now(),typeof A=="function"?m.callback=A:m===n(a)&&r(a),h(H)}else r(a);m=n(a)}if(m!==null)var te=!0;else{var ie=n(c);ie!==null&&X(x,ie.startTime-H),te=!1}return te}finally{m=null,g=W,y=!1}}var j=!1,P=null,E=-1,N=5,M=-1;function G(){return!(e.unstable_now()-M<N)}function Z(){if(P!==null){var R=e.unstable_now();M=R;var H=!0;try{H=P(!0,R)}finally{H?Y():(j=!1,P=null)}}else j=!1}var Y;if(typeof f=="function")Y=function(){f(Z)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,Q=F.port2;F.port1.onmessage=Z,Y=function(){Q.postMessage(null)}}else Y=function(){w(Z,0)};function z(R){P=R,j||(j=!0,Y())}function X(R,H){E=w(function(){R(e.unstable_now())},H)}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(R){R.callback=null},e.unstable_continueExecution=function(){S||y||(S=!0,z(k))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(R){switch(g){case 1:case 2:case 3:var H=3;break;default:H=g}var W=g;g=H;try{return R()}finally{g=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,H){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var W=g;g=R;try{return H()}finally{g=W}},e.unstable_scheduleCallback=function(R,H,W){var ee=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?ee+W:ee):W=ee,R){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=W+A,R={id:d++,callback:H,priorityLevel:R,startTime:W,expirationTime:A,sortIndex:-1},W>ee?(R.sortIndex=W,t(c,R),n(a)===null&&R===n(c)&&(L?(p(E),E=-1):L=!0,X(x,W-ee))):(R.sortIndex=A,t(a,R),S||y||(S=!0,z(k))),R},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(R){var H=g;return function(){var W=g;g=H;try{return R.apply(this,arguments)}finally{g=W}}}})(I2);j2.exports=I2;var mf=j2.exports;/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.min.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var gf=_,ot=mf;function O(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 P2=new Set,Br={};function Tn(e,t){qn(e,t),qn(e+"Capture",t)}function qn(e,t){for(Br[e]=t,e=0;e<t.length;e++)P2.add(t[e])}var Dt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tl=Object.prototype.hasOwnProperty,yf=/^[: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]*$/,Nu={},Ru={};function vf(e){return Tl.call(Ru,e)?!0:Tl.call(Nu,e)?!1:yf.test(e)?Ru[e]=!0:(Nu[e]=!0,!1)}function Cf(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 xf(e,t,n,r){if(t===null||typeof t>"u"||Cf(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 Xe(e,t,n,r,o,i,l){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=l}var Fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fe[e]=new Xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Fe[t]=new Xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fe[e]=new Xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fe[e]=new Xe(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){Fe[e]=new Xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fe[e]=new Xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fe[e]=new Xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fe[e]=new Xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fe[e]=new Xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ts=/[\-:]([a-z])/g;function js(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(Ts,js);Fe[t]=new Xe(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(Ts,js);Fe[t]=new Xe(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(Ts,js);Fe[t]=new Xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Fe[e]=new Xe(e,1,!1,e.toLowerCase(),null,!1,!1)});Fe.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Fe[e]=new Xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Is(e,t,n,r){var o=Fe.hasOwnProperty(t)?Fe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(xf(t,n,o,r)&&(n=null),r||o===null?vf(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 Ut=gf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,yo=Symbol.for("react.element"),Nn=Symbol.for("react.portal"),Rn=Symbol.for("react.fragment"),Ps=Symbol.for("react.strict_mode"),jl=Symbol.for("react.profiler"),N2=Symbol.for("react.provider"),R2=Symbol.for("react.context"),Ns=Symbol.for("react.forward_ref"),Il=Symbol.for("react.suspense"),Pl=Symbol.for("react.suspense_list"),Rs=Symbol.for("react.memo"),Gt=Symbol.for("react.lazy"),O2=Symbol.for("react.offscreen"),Ou=Symbol.iterator;function mr(e){return e===null||typeof e!="object"?null:(e=Ou&&e[Ou]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Object.assign,Ki;function kr(e){if(Ki===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ki=t&&t[1]||""}return`
|
|
35
|
+
`+Ki+e}var qi=!1;function Ji(e,t){if(!e||qi)return"";qi=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(`
|
|
36
|
+
`),i=r.stack.split(`
|
|
37
|
+
`),l=o.length-1,s=i.length-1;1<=l&&0<=s&&o[l]!==i[s];)s--;for(;1<=l&&0<=s;l--,s--)if(o[l]!==i[s]){if(l!==1||s!==1)do if(l--,s--,0>s||o[l]!==i[s]){var a=`
|
|
38
|
+
`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{qi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?kr(e):""}function wf(e){switch(e.tag){case 5:return kr(e.type);case 16:return kr("Lazy");case 13:return kr("Suspense");case 19:return kr("SuspenseList");case 0:case 2:case 15:return e=Ji(e.type,!1),e;case 11:return e=Ji(e.type.render,!1),e;case 1:return e=Ji(e.type,!0),e;default:return""}}function Nl(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 Rn:return"Fragment";case Nn:return"Portal";case jl:return"Profiler";case Ps:return"StrictMode";case Il:return"Suspense";case Pl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R2:return(e.displayName||"Context")+".Consumer";case N2:return(e._context.displayName||"Context")+".Provider";case Ns:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Rs:return t=e.displayName||null,t!==null?t:Nl(e.type)||"Memo";case Gt:t=e._payload,e=e._init;try{return Nl(e(t))}catch{}}return null}function Sf(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 Nl(t);case 8:return t===Ps?"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 un(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function A2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ef(e){var t=A2(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(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vo(e){e._valueTracker||(e._valueTracker=Ef(e))}function F2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=A2(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ei(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 Rl(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Au(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=un(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 H2(e,t){t=t.checked,t!=null&&Is(e,"checked",t,!1)}function Ol(e,t){H2(e,t);var n=un(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")?Al(e,t.type,n):t.hasOwnProperty("defaultValue")&&Al(e,t.type,un(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fu(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 Al(e,t,n){(t!=="number"||ei(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var _r=Array.isArray;function Gn(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=""+un(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 Fl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return xe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Hu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(_r(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:un(n)}}function $2(e,t){var n=un(t.value),r=un(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 $u(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function z2(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 Hl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?z2(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Co,D2=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(Co=Co||document.createElement("div"),Co.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Co.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function br(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ir={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},kf=["Webkit","ms","Moz","O"];Object.keys(Ir).forEach(function(e){kf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ir[t]=Ir[e]})});function V2(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ir.hasOwnProperty(e)&&Ir[e]?(""+t).trim():t+"px"}function B2(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=V2(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var _f=xe({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 $l(e,t){if(t){if(_f[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function zl(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 Dl=null;function Os(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vl=null,Zn=null,Yn=null;function zu(e){if(e=fo(e)){if(typeof Vl!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Pi(t),Vl(e.stateNode,e.type,t))}}function b2(e){Zn?Yn?Yn.push(e):Yn=[e]:Zn=e}function U2(){if(Zn){var e=Zn,t=Yn;if(Yn=Zn=null,zu(e),t)for(e=0;e<t.length;e++)zu(t[e])}}function W2(e,t){return e(t)}function G2(){}var el=!1;function Z2(e,t,n){if(el)return e(t,n);el=!0;try{return W2(e,t,n)}finally{el=!1,(Zn!==null||Yn!==null)&&(G2(),U2())}}function Ur(e,t){var n=e.stateNode;if(n===null)return null;var r=Pi(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(O(231,t,typeof n));return n}var Bl=!1;if(Dt)try{var gr={};Object.defineProperty(gr,"passive",{get:function(){Bl=!0}}),window.addEventListener("test",gr,gr),window.removeEventListener("test",gr,gr)}catch{Bl=!1}function Lf(e,t,n,r,o,i,l,s,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Pr=!1,ti=null,ni=!1,bl=null,Mf={onError:function(e){Pr=!0,ti=e}};function Tf(e,t,n,r,o,i,l,s,a){Pr=!1,ti=null,Lf.apply(Mf,arguments)}function jf(e,t,n,r,o,i,l,s,a){if(Tf.apply(this,arguments),Pr){if(Pr){var c=ti;Pr=!1,ti=null}else throw Error(O(198));ni||(ni=!0,bl=c)}}function jn(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 Y2(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 Du(e){if(jn(e)!==e)throw Error(O(188))}function If(e){var t=e.alternate;if(!t){if(t=jn(e),t===null)throw Error(O(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 Du(o),e;if(i===r)return Du(o),t;i=i.sibling}throw Error(O(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function X2(e){return e=If(e),e!==null?Q2(e):null}function Q2(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Q2(e);if(t!==null)return t;e=e.sibling}return null}var K2=ot.unstable_scheduleCallback,Vu=ot.unstable_cancelCallback,Pf=ot.unstable_shouldYield,Nf=ot.unstable_requestPaint,ke=ot.unstable_now,Rf=ot.unstable_getCurrentPriorityLevel,As=ot.unstable_ImmediatePriority,q2=ot.unstable_UserBlockingPriority,ri=ot.unstable_NormalPriority,Of=ot.unstable_LowPriority,J2=ot.unstable_IdlePriority,Mi=null,Rt=null;function Af(e){if(Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Mi,e,void 0,(e.current.flags&128)===128)}catch{}}var _t=Math.clz32?Math.clz32:$f,Ff=Math.log,Hf=Math.LN2;function $f(e){return e>>>=0,e===0?32:31-(Ff(e)/Hf|0)|0}var xo=64,wo=4194304;function Lr(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 oi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=Lr(s):(i&=l,i!==0&&(r=Lr(i)))}else l=n&~o,l!==0?r=Lr(l):i!==0&&(r=Lr(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-_t(t),o=1<<n,r|=e[n],t&=~o;return r}function zf(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 Df(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-_t(i),s=1<<l,a=o[l];a===-1?(!(s&n)||s&r)&&(o[l]=zf(s,t)):a<=t&&(e.expiredLanes|=s),i&=~s}}function Ul(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function e1(){var e=xo;return xo<<=1,!(xo&4194240)&&(xo=64),e}function tl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ao(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=n}function Vf(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-_t(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Fs(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_t(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ae=0;function t1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var n1,Hs,r1,o1,i1,Wl=!1,So=[],Jt=null,en=null,tn=null,Wr=new Map,Gr=new Map,Yt=[],Bf="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":Jt=null;break;case"dragenter":case"dragleave":en=null;break;case"mouseover":case"mouseout":tn=null;break;case"pointerover":case"pointerout":Wr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gr.delete(t.pointerId)}}function yr(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=fo(t),t!==null&&Hs(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function bf(e,t,n,r,o){switch(t){case"focusin":return Jt=yr(Jt,e,t,n,r,o),!0;case"dragenter":return en=yr(en,e,t,n,r,o),!0;case"mouseover":return tn=yr(tn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Wr.set(i,yr(Wr.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Gr.set(i,yr(Gr.get(i)||null,e,t,n,r,o)),!0}return!1}function l1(e){var t=yn(e.target);if(t!==null){var n=jn(t);if(n!==null){if(t=n.tag,t===13){if(t=Y2(n),t!==null){e.blockedOn=t,i1(e.priority,function(){r1(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 bo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Dl=r,n.target.dispatchEvent(r),Dl=null}else return t=fo(n),t!==null&&Hs(t),e.blockedOn=n,!1;t.shift()}return!0}function bu(e,t,n){bo(e)&&n.delete(t)}function Uf(){Wl=!1,Jt!==null&&bo(Jt)&&(Jt=null),en!==null&&bo(en)&&(en=null),tn!==null&&bo(tn)&&(tn=null),Wr.forEach(bu),Gr.forEach(bu)}function vr(e,t){e.blockedOn===t&&(e.blockedOn=null,Wl||(Wl=!0,ot.unstable_scheduleCallback(ot.unstable_NormalPriority,Uf)))}function Zr(e){function t(o){return vr(o,e)}if(0<So.length){vr(So[0],e);for(var n=1;n<So.length;n++){var r=So[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Jt!==null&&vr(Jt,e),en!==null&&vr(en,e),tn!==null&&vr(tn,e),Wr.forEach(t),Gr.forEach(t),n=0;n<Yt.length;n++)r=Yt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Yt.length&&(n=Yt[0],n.blockedOn===null);)l1(n),n.blockedOn===null&&Yt.shift()}var Xn=Ut.ReactCurrentBatchConfig,ii=!0;function Wf(e,t,n,r){var o=ae,i=Xn.transition;Xn.transition=null;try{ae=1,$s(e,t,n,r)}finally{ae=o,Xn.transition=i}}function Gf(e,t,n,r){var o=ae,i=Xn.transition;Xn.transition=null;try{ae=4,$s(e,t,n,r)}finally{ae=o,Xn.transition=i}}function $s(e,t,n,r){if(ii){var o=Gl(e,t,n,r);if(o===null)fl(e,t,r,li,n),Bu(e,r);else if(bf(o,e,t,n,r))r.stopPropagation();else if(Bu(e,r),t&4&&-1<Bf.indexOf(e)){for(;o!==null;){var i=fo(o);if(i!==null&&n1(i),i=Gl(e,t,n,r),i===null&&fl(e,t,r,li,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else fl(e,t,r,null,n)}}var li=null;function Gl(e,t,n,r){if(li=null,e=Os(r),e=yn(e),e!==null)if(t=jn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Y2(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 li=e,null}function s1(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(Rf()){case As:return 1;case q2:return 4;case ri:case Of:return 16;case J2:return 536870912;default:return 16}default:return 16}}var Qt=null,zs=null,Uo=null;function u1(){if(Uo)return Uo;var e,t=zs,n=t.length,r,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[i-r];r++);return Uo=o.slice(e,1<r?1-r:void 0)}function Wo(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 Eo(){return!0}function Uu(){return!1}function lt(e){function t(n,r,o,i,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Eo:Uu,this.isPropagationStopped=Uu,this}return xe(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=Eo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Eo)},persist:function(){},isPersistent:Eo}),t}var cr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ds=lt(cr),co=xe({},cr,{view:0,detail:0}),Zf=lt(co),nl,rl,Cr,Ti=xe({},co,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vs,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!==Cr&&(Cr&&e.type==="mousemove"?(nl=e.screenX-Cr.screenX,rl=e.screenY-Cr.screenY):rl=nl=0,Cr=e),nl)},movementY:function(e){return"movementY"in e?e.movementY:rl}}),Wu=lt(Ti),Yf=xe({},Ti,{dataTransfer:0}),Xf=lt(Yf),Qf=xe({},co,{relatedTarget:0}),ol=lt(Qf),Kf=xe({},cr,{animationName:0,elapsedTime:0,pseudoElement:0}),qf=lt(Kf),Jf=xe({},cr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),e3=lt(Jf),t3=xe({},cr,{data:0}),Gu=lt(t3),n3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r3={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"},o3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i3(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=o3[e])?!!t[e]:!1}function Vs(){return i3}var l3=xe({},co,{key:function(e){if(e.key){var t=n3[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?r3[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vs,charCode:function(e){return e.type==="keypress"?Wo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),s3=lt(l3),u3=xe({},Ti,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zu=lt(u3),a3=xe({},co,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vs}),c3=lt(a3),f3=xe({},cr,{propertyName:0,elapsedTime:0,pseudoElement:0}),d3=lt(f3),p3=xe({},Ti,{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}),h3=lt(p3),m3=[9,13,27,32],Bs=Dt&&"CompositionEvent"in window,Nr=null;Dt&&"documentMode"in document&&(Nr=document.documentMode);var g3=Dt&&"TextEvent"in window&&!Nr,a1=Dt&&(!Bs||Nr&&8<Nr&&11>=Nr),Yu=" ",Xu=!1;function c1(e,t){switch(e){case"keyup":return m3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function f1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var On=!1;function y3(e,t){switch(e){case"compositionend":return f1(t);case"keypress":return t.which!==32?null:(Xu=!0,Yu);case"textInput":return e=t.data,e===Yu&&Xu?null:e;default:return null}}function v3(e,t){if(On)return e==="compositionend"||!Bs&&c1(e,t)?(e=u1(),Uo=zs=Qt=null,On=!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 a1&&t.locale!=="ko"?null:t.data;default:return null}}var C3={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 Qu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!C3[e.type]:t==="textarea"}function d1(e,t,n,r){b2(r),t=si(t,"onChange"),0<t.length&&(n=new Ds("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rr=null,Yr=null;function x3(e){E1(e,0)}function ji(e){var t=Hn(e);if(F2(t))return e}function w3(e,t){if(e==="change")return t}var p1=!1;if(Dt){var il;if(Dt){var ll="oninput"in document;if(!ll){var Ku=document.createElement("div");Ku.setAttribute("oninput","return;"),ll=typeof Ku.oninput=="function"}il=ll}else il=!1;p1=il&&(!document.documentMode||9<document.documentMode)}function qu(){Rr&&(Rr.detachEvent("onpropertychange",h1),Yr=Rr=null)}function h1(e){if(e.propertyName==="value"&&ji(Yr)){var t=[];d1(t,Yr,e,Os(e)),Z2(x3,t)}}function S3(e,t,n){e==="focusin"?(qu(),Rr=t,Yr=n,Rr.attachEvent("onpropertychange",h1)):e==="focusout"&&qu()}function E3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ji(Yr)}function k3(e,t){if(e==="click")return ji(t)}function _3(e,t){if(e==="input"||e==="change")return ji(t)}function L3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mt=typeof Object.is=="function"?Object.is:L3;function Xr(e,t){if(Mt(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(!Tl.call(t,o)||!Mt(e[o],t[o]))return!1}return!0}function Ju(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ea(e,t){var n=Ju(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=Ju(n)}}function m1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?m1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function g1(){for(var e=window,t=ei();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ei(e.document)}return t}function bs(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 M3(e){var t=g1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&m1(n.ownerDocument.documentElement,n)){if(r!==null&&bs(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=ea(n,i);var l=ea(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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 T3=Dt&&"documentMode"in document&&11>=document.documentMode,An=null,Zl=null,Or=null,Yl=!1;function ta(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Yl||An==null||An!==ei(r)||(r=An,"selectionStart"in r&&bs(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}),Or&&Xr(Or,r)||(Or=r,r=si(Zl,"onSelect"),0<r.length&&(t=new Ds("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=An)))}function ko(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fn={animationend:ko("Animation","AnimationEnd"),animationiteration:ko("Animation","AnimationIteration"),animationstart:ko("Animation","AnimationStart"),transitionend:ko("Transition","TransitionEnd")},sl={},y1={};Dt&&(y1=document.createElement("div").style,"AnimationEvent"in window||(delete Fn.animationend.animation,delete Fn.animationiteration.animation,delete Fn.animationstart.animation),"TransitionEvent"in window||delete Fn.transitionend.transition);function Ii(e){if(sl[e])return sl[e];if(!Fn[e])return e;var t=Fn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in y1)return sl[e]=t[n];return e}var v1=Ii("animationend"),C1=Ii("animationiteration"),x1=Ii("animationstart"),w1=Ii("transitionend"),S1=new Map,na="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 cn(e,t){S1.set(e,t),Tn(t,[e])}for(var ul=0;ul<na.length;ul++){var al=na[ul],j3=al.toLowerCase(),I3=al[0].toUpperCase()+al.slice(1);cn(j3,"on"+I3)}cn(v1,"onAnimationEnd");cn(C1,"onAnimationIteration");cn(x1,"onAnimationStart");cn("dblclick","onDoubleClick");cn("focusin","onFocus");cn("focusout","onBlur");cn(w1,"onTransitionEnd");qn("onMouseEnter",["mouseout","mouseover"]);qn("onMouseLeave",["mouseout","mouseover"]);qn("onPointerEnter",["pointerout","pointerover"]);qn("onPointerLeave",["pointerout","pointerover"]);Tn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="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(" "),P3=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function ra(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,jf(r,t,void 0,e),e.currentTarget=null}function E1(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 l=r.length-1;0<=l;l--){var s=r[l],a=s.instance,c=s.currentTarget;if(s=s.listener,a!==i&&o.isPropagationStopped())break e;ra(o,s,c),i=a}else for(l=0;l<r.length;l++){if(s=r[l],a=s.instance,c=s.currentTarget,s=s.listener,a!==i&&o.isPropagationStopped())break e;ra(o,s,c),i=a}}}if(ni)throw e=bl,ni=!1,bl=null,e}function he(e,t){var n=t[Jl];n===void 0&&(n=t[Jl]=new Set);var r=e+"__bubble";n.has(r)||(k1(t,e,2,!1),n.add(r))}function cl(e,t,n){var r=0;t&&(r|=4),k1(n,e,r,t)}var _o="_reactListening"+Math.random().toString(36).slice(2);function Qr(e){if(!e[_o]){e[_o]=!0,P2.forEach(function(n){n!=="selectionchange"&&(P3.has(n)||cl(n,!1,e),cl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[_o]||(t[_o]=!0,cl("selectionchange",!1,t))}}function k1(e,t,n,r){switch(s1(t)){case 1:var o=Wf;break;case 4:o=Gf;break;default:o=$s}n=o.bind(null,t,n,e),o=void 0,!Bl||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 fl(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var a=l.tag;if((a===3||a===4)&&(a=l.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;l=l.return}for(;s!==null;){if(l=yn(s),l===null)return;if(a=l.tag,a===5||a===6){r=i=l;continue e}s=s.parentNode}}r=r.return}Z2(function(){var c=i,d=Os(n),m=[];e:{var g=S1.get(e);if(g!==void 0){var y=Ds,S=e;switch(e){case"keypress":if(Wo(n)===0)break e;case"keydown":case"keyup":y=s3;break;case"focusin":S="focus",y=ol;break;case"focusout":S="blur",y=ol;break;case"beforeblur":case"afterblur":y=ol;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=Wu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Xf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=c3;break;case v1:case C1:case x1:y=qf;break;case w1:y=d3;break;case"scroll":y=Zf;break;case"wheel":y=h3;break;case"copy":case"cut":case"paste":y=e3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Zu}var L=(t&4)!==0,w=!L&&e==="scroll",p=L?g!==null?g+"Capture":null:g;L=[];for(var f=c,h;f!==null;){h=f;var x=h.stateNode;if(h.tag===5&&x!==null&&(h=x,p!==null&&(x=Ur(f,p),x!=null&&L.push(Kr(f,x,h)))),w)break;f=f.return}0<L.length&&(g=new y(g,S,null,n,d),m.push({event:g,listeners:L}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",g&&n!==Dl&&(S=n.relatedTarget||n.fromElement)&&(yn(S)||S[Vt]))break e;if((y||g)&&(g=d.window===d?d:(g=d.ownerDocument)?g.defaultView||g.parentWindow:window,y?(S=n.relatedTarget||n.toElement,y=c,S=S?yn(S):null,S!==null&&(w=jn(S),S!==w||S.tag!==5&&S.tag!==6)&&(S=null)):(y=null,S=c),y!==S)){if(L=Wu,x="onMouseLeave",p="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(L=Zu,x="onPointerLeave",p="onPointerEnter",f="pointer"),w=y==null?g:Hn(y),h=S==null?g:Hn(S),g=new L(x,f+"leave",y,n,d),g.target=w,g.relatedTarget=h,x=null,yn(d)===c&&(L=new L(p,f+"enter",S,n,d),L.target=h,L.relatedTarget=w,x=L),w=x,y&&S)t:{for(L=y,p=S,f=0,h=L;h;h=Pn(h))f++;for(h=0,x=p;x;x=Pn(x))h++;for(;0<f-h;)L=Pn(L),f--;for(;0<h-f;)p=Pn(p),h--;for(;f--;){if(L===p||p!==null&&L===p.alternate)break t;L=Pn(L),p=Pn(p)}L=null}else L=null;y!==null&&oa(m,g,y,L,!1),S!==null&&w!==null&&oa(m,w,S,L,!0)}}e:{if(g=c?Hn(c):window,y=g.nodeName&&g.nodeName.toLowerCase(),y==="select"||y==="input"&&g.type==="file")var k=w3;else if(Qu(g))if(p1)k=_3;else{k=E3;var j=S3}else(y=g.nodeName)&&y.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(k=k3);if(k&&(k=k(e,c))){d1(m,k,n,d);break e}j&&j(e,g,c),e==="focusout"&&(j=g._wrapperState)&&j.controlled&&g.type==="number"&&Al(g,"number",g.value)}switch(j=c?Hn(c):window,e){case"focusin":(Qu(j)||j.contentEditable==="true")&&(An=j,Zl=c,Or=null);break;case"focusout":Or=Zl=An=null;break;case"mousedown":Yl=!0;break;case"contextmenu":case"mouseup":case"dragend":Yl=!1,ta(m,n,d);break;case"selectionchange":if(T3)break;case"keydown":case"keyup":ta(m,n,d)}var P;if(Bs)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else On?c1(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(a1&&n.locale!=="ko"&&(On||E!=="onCompositionStart"?E==="onCompositionEnd"&&On&&(P=u1()):(Qt=d,zs="value"in Qt?Qt.value:Qt.textContent,On=!0)),j=si(c,E),0<j.length&&(E=new Gu(E,e,null,n,d),m.push({event:E,listeners:j}),P?E.data=P:(P=f1(n),P!==null&&(E.data=P)))),(P=g3?y3(e,n):v3(e,n))&&(c=si(c,"onBeforeInput"),0<c.length&&(d=new Gu("onBeforeInput","beforeinput",null,n,d),m.push({event:d,listeners:c}),d.data=P))}E1(m,t)})}function Kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function si(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Ur(e,n),i!=null&&r.unshift(Kr(e,i,o)),i=Ur(e,t),i!=null&&r.push(Kr(e,i,o))),e=e.return}return r}function Pn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function oa(e,t,n,r,o){for(var i=t._reactName,l=[];n!==null&&n!==r;){var s=n,a=s.alternate,c=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&c!==null&&(s=c,o?(a=Ur(n,i),a!=null&&l.unshift(Kr(n,a,s))):o||(a=Ur(n,i),a!=null&&l.push(Kr(n,a,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var N3=/\r\n?/g,R3=/\u0000|\uFFFD/g;function ia(e){return(typeof e=="string"?e:""+e).replace(N3,`
|
|
39
|
+
`).replace(R3,"")}function Lo(e,t,n){if(t=ia(t),ia(e)!==t&&n)throw Error(O(425))}function ui(){}var Xl=null,Ql=null;function Kl(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 ql=typeof setTimeout=="function"?setTimeout:void 0,O3=typeof clearTimeout=="function"?clearTimeout:void 0,la=typeof Promise=="function"?Promise:void 0,A3=typeof queueMicrotask=="function"?queueMicrotask:typeof la<"u"?function(e){return la.resolve(null).then(e).catch(F3)}:ql;function F3(e){setTimeout(function(){throw e})}function dl(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),Zr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Zr(t)}function nn(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 sa(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 fr=Math.random().toString(36).slice(2),Nt="__reactFiber$"+fr,qr="__reactProps$"+fr,Vt="__reactContainer$"+fr,Jl="__reactEvents$"+fr,H3="__reactListeners$"+fr,$3="__reactHandles$"+fr;function yn(e){var t=e[Nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Vt]||n[Nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=sa(e);e!==null;){if(n=e[Nt])return n;e=sa(e)}return t}e=n,n=e.parentNode}return null}function fo(e){return e=e[Nt]||e[Vt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function Pi(e){return e[qr]||null}var es=[],$n=-1;function fn(e){return{current:e}}function me(e){0>$n||(e.current=es[$n],es[$n]=null,$n--)}function de(e,t){$n++,es[$n]=e.current,e.current=t}var an={},Ue=fn(an),qe=fn(!1),Sn=an;function Jn(e,t){var n=e.type.contextTypes;if(!n)return an;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 Je(e){return e=e.childContextTypes,e!=null}function ai(){me(qe),me(Ue)}function ua(e,t,n){if(Ue.current!==an)throw Error(O(168));de(Ue,t),de(qe,n)}function _1(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(O(108,Sf(e)||"Unknown",o));return xe({},n,r)}function ci(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||an,Sn=Ue.current,de(Ue,e),de(qe,qe.current),!0}function aa(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=_1(e,t,Sn),r.__reactInternalMemoizedMergedChildContext=e,me(qe),me(Ue),de(Ue,e)):me(qe),de(qe,n)}var Ft=null,Ni=!1,pl=!1;function L1(e){Ft===null?Ft=[e]:Ft.push(e)}function z3(e){Ni=!0,L1(e)}function dn(){if(!pl&&Ft!==null){pl=!0;var e=0,t=ae;try{var n=Ft;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ft=null,Ni=!1}catch(o){throw Ft!==null&&(Ft=Ft.slice(e+1)),K2(As,dn),o}finally{ae=t,pl=!1}}return null}var zn=[],Dn=0,fi=null,di=0,ct=[],ft=0,En=null,Ht=1,$t="";function hn(e,t){zn[Dn++]=di,zn[Dn++]=fi,fi=e,di=t}function M1(e,t,n){ct[ft++]=Ht,ct[ft++]=$t,ct[ft++]=En,En=e;var r=Ht;e=$t;var o=32-_t(r)-1;r&=~(1<<o),n+=1;var i=32-_t(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,Ht=1<<32-_t(t)+o|n<<o|r,$t=i+e}else Ht=1<<i|n<<o|r,$t=e}function Us(e){e.return!==null&&(hn(e,1),M1(e,1,0))}function Ws(e){for(;e===fi;)fi=zn[--Dn],zn[Dn]=null,di=zn[--Dn],zn[Dn]=null;for(;e===En;)En=ct[--ft],ct[ft]=null,$t=ct[--ft],ct[ft]=null,Ht=ct[--ft],ct[ft]=null}var rt=null,nt=null,ge=!1,Et=null;function T1(e,t){var n=pt(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 ca(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,rt=e,nt=nn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,rt=e,nt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=En!==null?{id:Ht,overflow:$t}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=pt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,rt=e,nt=null,!0):!1;default:return!1}}function ts(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ns(e){if(ge){var t=nt;if(t){var n=t;if(!ca(e,t)){if(ts(e))throw Error(O(418));t=nn(n.nextSibling);var r=rt;t&&ca(e,t)?T1(r,n):(e.flags=e.flags&-4097|2,ge=!1,rt=e)}}else{if(ts(e))throw Error(O(418));e.flags=e.flags&-4097|2,ge=!1,rt=e}}}function fa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;rt=e}function Mo(e){if(e!==rt)return!1;if(!ge)return fa(e),ge=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Kl(e.type,e.memoizedProps)),t&&(t=nt)){if(ts(e))throw j1(),Error(O(418));for(;t;)T1(e,t),t=nn(t.nextSibling)}if(fa(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){nt=nn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}nt=null}}else nt=rt?nn(e.stateNode.nextSibling):null;return!0}function j1(){for(var e=nt;e;)e=nn(e.nextSibling)}function er(){nt=rt=null,ge=!1}function Gs(e){Et===null?Et=[e]:Et.push(e)}var D3=Ut.ReactCurrentBatchConfig;function xr(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(O(309));var r=n.stateNode}if(!r)throw Error(O(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(l){var s=o.refs;l===null?delete s[i]:s[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function To(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function da(e){var t=e._init;return t(e._payload)}function I1(e){function t(p,f){if(e){var h=p.deletions;h===null?(p.deletions=[f],p.flags|=16):h.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=sn(p,f),p.index=0,p.sibling=null,p}function i(p,f,h){return p.index=h,e?(h=p.alternate,h!==null?(h=h.index,h<f?(p.flags|=2,f):h):(p.flags|=2,f)):(p.flags|=1048576,f)}function l(p){return e&&p.alternate===null&&(p.flags|=2),p}function s(p,f,h,x){return f===null||f.tag!==6?(f=xl(h,p.mode,x),f.return=p,f):(f=o(f,h),f.return=p,f)}function a(p,f,h,x){var k=h.type;return k===Rn?d(p,f,h.props.children,x,h.key):f!==null&&(f.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Gt&&da(k)===f.type)?(x=o(f,h.props),x.ref=xr(p,f,h),x.return=p,x):(x=qo(h.type,h.key,h.props,null,p.mode,x),x.ref=xr(p,f,h),x.return=p,x)}function c(p,f,h,x){return f===null||f.tag!==4||f.stateNode.containerInfo!==h.containerInfo||f.stateNode.implementation!==h.implementation?(f=wl(h,p.mode,x),f.return=p,f):(f=o(f,h.children||[]),f.return=p,f)}function d(p,f,h,x,k){return f===null||f.tag!==7?(f=wn(h,p.mode,x,k),f.return=p,f):(f=o(f,h),f.return=p,f)}function m(p,f,h){if(typeof f=="string"&&f!==""||typeof f=="number")return f=xl(""+f,p.mode,h),f.return=p,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case yo:return h=qo(f.type,f.key,f.props,null,p.mode,h),h.ref=xr(p,null,f),h.return=p,h;case Nn:return f=wl(f,p.mode,h),f.return=p,f;case Gt:var x=f._init;return m(p,x(f._payload),h)}if(_r(f)||mr(f))return f=wn(f,p.mode,h,null),f.return=p,f;To(p,f)}return null}function g(p,f,h,x){var k=f!==null?f.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return k!==null?null:s(p,f,""+h,x);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case yo:return h.key===k?a(p,f,h,x):null;case Nn:return h.key===k?c(p,f,h,x):null;case Gt:return k=h._init,g(p,f,k(h._payload),x)}if(_r(h)||mr(h))return k!==null?null:d(p,f,h,x,null);To(p,h)}return null}function y(p,f,h,x,k){if(typeof x=="string"&&x!==""||typeof x=="number")return p=p.get(h)||null,s(f,p,""+x,k);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case yo:return p=p.get(x.key===null?h:x.key)||null,a(f,p,x,k);case Nn:return p=p.get(x.key===null?h:x.key)||null,c(f,p,x,k);case Gt:var j=x._init;return y(p,f,h,j(x._payload),k)}if(_r(x)||mr(x))return p=p.get(h)||null,d(f,p,x,k,null);To(f,x)}return null}function S(p,f,h,x){for(var k=null,j=null,P=f,E=f=0,N=null;P!==null&&E<h.length;E++){P.index>E?(N=P,P=null):N=P.sibling;var M=g(p,P,h[E],x);if(M===null){P===null&&(P=N);break}e&&P&&M.alternate===null&&t(p,P),f=i(M,f,E),j===null?k=M:j.sibling=M,j=M,P=N}if(E===h.length)return n(p,P),ge&&hn(p,E),k;if(P===null){for(;E<h.length;E++)P=m(p,h[E],x),P!==null&&(f=i(P,f,E),j===null?k=P:j.sibling=P,j=P);return ge&&hn(p,E),k}for(P=r(p,P);E<h.length;E++)N=y(P,p,E,h[E],x),N!==null&&(e&&N.alternate!==null&&P.delete(N.key===null?E:N.key),f=i(N,f,E),j===null?k=N:j.sibling=N,j=N);return e&&P.forEach(function(G){return t(p,G)}),ge&&hn(p,E),k}function L(p,f,h,x){var k=mr(h);if(typeof k!="function")throw Error(O(150));if(h=k.call(h),h==null)throw Error(O(151));for(var j=k=null,P=f,E=f=0,N=null,M=h.next();P!==null&&!M.done;E++,M=h.next()){P.index>E?(N=P,P=null):N=P.sibling;var G=g(p,P,M.value,x);if(G===null){P===null&&(P=N);break}e&&P&&G.alternate===null&&t(p,P),f=i(G,f,E),j===null?k=G:j.sibling=G,j=G,P=N}if(M.done)return n(p,P),ge&&hn(p,E),k;if(P===null){for(;!M.done;E++,M=h.next())M=m(p,M.value,x),M!==null&&(f=i(M,f,E),j===null?k=M:j.sibling=M,j=M);return ge&&hn(p,E),k}for(P=r(p,P);!M.done;E++,M=h.next())M=y(P,p,E,M.value,x),M!==null&&(e&&M.alternate!==null&&P.delete(M.key===null?E:M.key),f=i(M,f,E),j===null?k=M:j.sibling=M,j=M);return e&&P.forEach(function(Z){return t(p,Z)}),ge&&hn(p,E),k}function w(p,f,h,x){if(typeof h=="object"&&h!==null&&h.type===Rn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case yo:e:{for(var k=h.key,j=f;j!==null;){if(j.key===k){if(k=h.type,k===Rn){if(j.tag===7){n(p,j.sibling),f=o(j,h.props.children),f.return=p,p=f;break e}}else if(j.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Gt&&da(k)===j.type){n(p,j.sibling),f=o(j,h.props),f.ref=xr(p,j,h),f.return=p,p=f;break e}n(p,j);break}else t(p,j);j=j.sibling}h.type===Rn?(f=wn(h.props.children,p.mode,x,h.key),f.return=p,p=f):(x=qo(h.type,h.key,h.props,null,p.mode,x),x.ref=xr(p,f,h),x.return=p,p=x)}return l(p);case Nn:e:{for(j=h.key;f!==null;){if(f.key===j)if(f.tag===4&&f.stateNode.containerInfo===h.containerInfo&&f.stateNode.implementation===h.implementation){n(p,f.sibling),f=o(f,h.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else t(p,f);f=f.sibling}f=wl(h,p.mode,x),f.return=p,p=f}return l(p);case Gt:return j=h._init,w(p,f,j(h._payload),x)}if(_r(h))return S(p,f,h,x);if(mr(h))return L(p,f,h,x);To(p,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,f!==null&&f.tag===6?(n(p,f.sibling),f=o(f,h),f.return=p,p=f):(n(p,f),f=xl(h,p.mode,x),f.return=p,p=f),l(p)):n(p,f)}return w}var tr=I1(!0),P1=I1(!1),pi=fn(null),hi=null,Vn=null,Zs=null;function Ys(){Zs=Vn=hi=null}function Xs(e){var t=pi.current;me(pi),e._currentValue=t}function rs(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 Qn(e,t){hi=e,Zs=Vn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ke=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(Zs!==e)if(e={context:e,memoizedValue:t,next:null},Vn===null){if(hi===null)throw Error(O(308));Vn=e,hi.dependencies={lanes:0,firstContext:e}}else Vn=Vn.next=e;return t}var vn=null;function Qs(e){vn===null?vn=[e]:vn.push(e)}function N1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Qs(t)):(n.next=o.next,o.next=n),t.interleaved=n,Bt(e,r)}function Bt(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 Zt=!1;function Ks(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function R1(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 zt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function rn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,oe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Bt(e,n)}return o=r.interleaved,o===null?(t.next=t,Qs(r)):(t.next=o.next,o.next=t),r.interleaved=t,Bt(e,n)}function Go(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,Fs(e,n)}}function pa(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 l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,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 mi(e,t,n,r){var o=e.updateQueue;Zt=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,c=a.next;a.next=null,l===null?i=c:l.next=c,l=a;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==l&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=a))}if(i!==null){var m=o.baseState;l=0,d=c=a=null,s=i;do{var g=s.lane,y=s.eventTime;if((r&g)===g){d!==null&&(d=d.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var S=e,L=s;switch(g=t,y=n,L.tag){case 1:if(S=L.payload,typeof S=="function"){m=S.call(y,m,g);break e}m=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=L.payload,g=typeof S=="function"?S.call(y,m,g):S,g==null)break e;m=xe({},m,g);break e;case 2:Zt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[s]:g.push(s))}else y={eventTime:y,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=y,a=m):d=d.next=y,l|=g;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;g=s,s=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(d===null&&(a=m),o.baseState=a,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);_n|=l,e.lanes=l,e.memoizedState=m}}function ha(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(O(191,o));o.call(r)}}}var po={},Ot=fn(po),Jr=fn(po),eo=fn(po);function Cn(e){if(e===po)throw Error(O(174));return e}function qs(e,t){switch(de(eo,t),de(Jr,e),de(Ot,po),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Hl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Hl(t,e)}me(Ot),de(Ot,t)}function nr(){me(Ot),me(Jr),me(eo)}function O1(e){Cn(eo.current);var t=Cn(Ot.current),n=Hl(t,e.type);t!==n&&(de(Jr,e),de(Ot,n))}function Js(e){Jr.current===e&&(me(Ot),me(Jr))}var ve=fn(0);function gi(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 hl=[];function eu(){for(var e=0;e<hl.length;e++)hl[e]._workInProgressVersionPrimary=null;hl.length=0}var Zo=Ut.ReactCurrentDispatcher,ml=Ut.ReactCurrentBatchConfig,kn=0,Ce=null,je=null,Pe=null,yi=!1,Ar=!1,to=0,V3=0;function De(){throw Error(O(321))}function tu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mt(e[n],t[n]))return!1;return!0}function nu(e,t,n,r,o,i){if(kn=i,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zo.current=e===null||e.memoizedState===null?W3:G3,e=n(r,o),Ar){i=0;do{if(Ar=!1,to=0,25<=i)throw Error(O(301));i+=1,Pe=je=null,t.updateQueue=null,Zo.current=Z3,e=n(r,o)}while(Ar)}if(Zo.current=vi,t=je!==null&&je.next!==null,kn=0,Pe=je=Ce=null,yi=!1,t)throw Error(O(300));return e}function ru(){var e=to!==0;return to=0,e}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?Ce.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function gt(){if(je===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Pe===null?Ce.memoizedState:Pe.next;if(t!==null)Pe=t,je=e;else{if(e===null)throw Error(O(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Pe===null?Ce.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function no(e,t){return typeof t=="function"?t(e):t}function gl(e){var t=gt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=je,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=l=null,a=null,c=i;do{var d=c.lane;if((kn&d)===d)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var m={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(s=a=m,l=r):a=a.next=m,Ce.lanes|=d,_n|=d}c=c.next}while(c!==null&&c!==i);a===null?l=r:a.next=s,Mt(r,t.memoizedState)||(Ke=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Ce.lanes|=i,_n|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function yl(e){var t=gt(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);Mt(i,t.memoizedState)||(Ke=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function A1(){}function F1(e,t){var n=Ce,r=gt(),o=t(),i=!Mt(r.memoizedState,o);if(i&&(r.memoizedState=o,Ke=!0),r=r.queue,ou(z1.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Pe!==null&&Pe.memoizedState.tag&1){if(n.flags|=2048,ro(9,$1.bind(null,n,r,o,t),void 0,null),Ne===null)throw Error(O(349));kn&30||H1(n,t,o)}return o}function H1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function $1(e,t,n,r){t.value=n,t.getSnapshot=r,D1(t)&&V1(e)}function z1(e,t,n){return n(function(){D1(t)&&V1(e)})}function D1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mt(e,n)}catch{return!0}}function V1(e){var t=Bt(e,1);t!==null&&Lt(t,e,1,-1)}function ma(e){var t=jt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:no,lastRenderedState:e},t.queue=e,e=e.dispatch=U3.bind(null,Ce,e),[t.memoizedState,e]}function ro(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.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 B1(){return gt().memoizedState}function Yo(e,t,n,r){var o=jt();Ce.flags|=e,o.memoizedState=ro(1|t,n,void 0,r===void 0?null:r)}function Ri(e,t,n,r){var o=gt();r=r===void 0?null:r;var i=void 0;if(je!==null){var l=je.memoizedState;if(i=l.destroy,r!==null&&tu(r,l.deps)){o.memoizedState=ro(t,n,i,r);return}}Ce.flags|=e,o.memoizedState=ro(1|t,n,i,r)}function ga(e,t){return Yo(8390656,8,e,t)}function ou(e,t){return Ri(2048,8,e,t)}function b1(e,t){return Ri(4,2,e,t)}function U1(e,t){return Ri(4,4,e,t)}function W1(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 G1(e,t,n){return n=n!=null?n.concat([e]):null,Ri(4,4,W1.bind(null,t,e),n)}function iu(){}function Z1(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&tu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Y1(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&tu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function X1(e,t,n){return kn&21?(Mt(n,t)||(n=e1(),Ce.lanes|=n,_n|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ke=!0),e.memoizedState=n)}function B3(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=ml.transition;ml.transition={};try{e(!1),t()}finally{ae=n,ml.transition=r}}function Q1(){return gt().memoizedState}function b3(e,t,n){var r=ln(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},K1(e))q1(t,n);else if(n=N1(e,t,n,r),n!==null){var o=Ze();Lt(n,e,r,o),J1(n,t,r)}}function U3(e,t,n){var r=ln(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(K1(e))q1(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,Mt(s,l)){var a=t.interleaved;a===null?(o.next=o,Qs(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=N1(e,t,o,r),n!==null&&(o=Ze(),Lt(n,e,r,o),J1(n,t,r))}}function K1(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function q1(e,t){Ar=yi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function J1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Fs(e,n)}}var vi={readContext:mt,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},W3={readContext:mt,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:ga,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yo(4194308,4,W1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yo(4,2,e,t)},useMemo:function(e,t){var n=jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=jt();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=b3.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:ma,useDebugValue:iu,useDeferredValue:function(e){return jt().memoizedState=e},useTransition:function(){var e=ma(!1),t=e[0];return e=B3.bind(null,e[1]),jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ce,o=jt();if(ge){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Ne===null)throw Error(O(349));kn&30||H1(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ga(z1.bind(null,r,i,e),[e]),r.flags|=2048,ro(9,$1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=jt(),t=Ne.identifierPrefix;if(ge){var n=$t,r=Ht;n=(r&~(1<<32-_t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=to++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=V3++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},G3={readContext:mt,useCallback:Z1,useContext:mt,useEffect:ou,useImperativeHandle:G1,useInsertionEffect:b1,useLayoutEffect:U1,useMemo:Y1,useReducer:gl,useRef:B1,useState:function(){return gl(no)},useDebugValue:iu,useDeferredValue:function(e){var t=gt();return X1(t,je.memoizedState,e)},useTransition:function(){var e=gl(no)[0],t=gt().memoizedState;return[e,t]},useMutableSource:A1,useSyncExternalStore:F1,useId:Q1,unstable_isNewReconciler:!1},Z3={readContext:mt,useCallback:Z1,useContext:mt,useEffect:ou,useImperativeHandle:G1,useInsertionEffect:b1,useLayoutEffect:U1,useMemo:Y1,useReducer:yl,useRef:B1,useState:function(){return yl(no)},useDebugValue:iu,useDeferredValue:function(e){var t=gt();return je===null?t.memoizedState=e:X1(t,je.memoizedState,e)},useTransition:function(){var e=yl(no)[0],t=gt().memoizedState;return[e,t]},useMutableSource:A1,useSyncExternalStore:F1,useId:Q1,unstable_isNewReconciler:!1};function xt(e,t){if(e&&e.defaultProps){t=xe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function os(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:xe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Oi={isMounted:function(e){return(e=e._reactInternals)?jn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ze(),o=ln(e),i=zt(r,o);i.payload=t,n!=null&&(i.callback=n),t=rn(e,i,o),t!==null&&(Lt(t,e,o,r),Go(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ze(),o=ln(e),i=zt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=rn(e,i,o),t!==null&&(Lt(t,e,o,r),Go(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ze(),r=ln(e),o=zt(n,r);o.tag=2,t!=null&&(o.callback=t),t=rn(e,o,r),t!==null&&(Lt(t,e,r,n),Go(t,e,r))}};function ya(e,t,n,r,o,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!Xr(n,r)||!Xr(o,i):!0}function ec(e,t,n){var r=!1,o=an,i=t.contextType;return typeof i=="object"&&i!==null?i=mt(i):(o=Je(t)?Sn:Ue.current,r=t.contextTypes,i=(r=r!=null)?Jn(e,o):an),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Oi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function va(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&&Oi.enqueueReplaceState(t,t.state,null)}function is(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ks(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=mt(i):(i=Je(t)?Sn:Ue.current,o.context=Jn(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(os(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&&Oi.enqueueReplaceState(o,o.state,null),mi(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function rr(e,t){try{var n="",r=t;do n+=wf(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
40
|
+
Error generating stack: `+i.message+`
|
|
41
|
+
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function vl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ls(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Y3=typeof WeakMap=="function"?WeakMap:Map;function tc(e,t,n){n=zt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){xi||(xi=!0,gs=r),ls(e,t)},n}function nc(e,t,n){n=zt(-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(){ls(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ls(e,t),typeof r!="function"&&(on===null?on=new Set([this]):on.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Ca(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Y3;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=ud.bind(null,e,t,n),t.then(e,e))}function xa(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 wa(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=zt(-1,1),t.tag=2,rn(n,t,1))),n.lanes|=1),e)}var X3=Ut.ReactCurrentOwner,Ke=!1;function Ge(e,t,n,r){t.child=e===null?P1(t,null,n,r):tr(t,e.child,n,r)}function Sa(e,t,n,r,o){n=n.render;var i=t.ref;return Qn(t,o),r=nu(e,t,n,r,i,o),n=ru(),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bt(e,t,o)):(ge&&n&&Us(t),t.flags|=1,Ge(e,t,r,o),t.child)}function Ea(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!pu(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,rc(e,t,i,r,o)):(e=qo(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 l=i.memoizedProps;if(n=n.compare,n=n!==null?n:Xr,n(l,r)&&e.ref===t.ref)return bt(e,t,o)}return t.flags|=1,e=sn(i,r),e.ref=t.ref,e.return=t,t.child=e}function rc(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Xr(i,r)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Ke=!0);else return t.lanes=e.lanes,bt(e,t,o)}return ss(e,t,n,r,o)}function oc(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},de(bn,tt),tt|=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,de(bn,tt),tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,de(bn,tt),tt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,de(bn,tt),tt|=r;return Ge(e,t,o,n),t.child}function ic(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ss(e,t,n,r,o){var i=Je(n)?Sn:Ue.current;return i=Jn(t,i),Qn(t,o),n=nu(e,t,n,r,i,o),r=ru(),e!==null&&!Ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bt(e,t,o)):(ge&&r&&Us(t),t.flags|=1,Ge(e,t,n,o),t.child)}function ka(e,t,n,r,o){if(Je(n)){var i=!0;ci(t)}else i=!1;if(Qn(t,o),t.stateNode===null)Xo(e,t),ec(t,n,r),is(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,c=n.contextType;typeof c=="object"&&c!==null?c=mt(c):(c=Je(n)?Sn:Ue.current,c=Jn(t,c));var d=n.getDerivedStateFromProps,m=typeof d=="function"||typeof l.getSnapshotBeforeUpdate=="function";m||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==c)&&va(t,l,r,c),Zt=!1;var g=t.memoizedState;l.state=g,mi(t,r,l,o),a=t.memoizedState,s!==r||g!==a||qe.current||Zt?(typeof d=="function"&&(os(t,n,d,r),a=t.memoizedState),(s=Zt||ya(t,n,s,r,g,a,c))?(m||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=c,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,R1(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:xt(t.type,s),l.props=c,m=t.pendingProps,g=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=mt(a):(a=Je(n)?Sn:Ue.current,a=Jn(t,a));var y=n.getDerivedStateFromProps;(d=typeof y=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==m||g!==a)&&va(t,l,r,a),Zt=!1,g=t.memoizedState,l.state=g,mi(t,r,l,o);var S=t.memoizedState;s!==m||g!==S||qe.current||Zt?(typeof y=="function"&&(os(t,n,y,r),S=t.memoizedState),(c=Zt||ya(t,n,c,r,g,S,a)||!1)?(d||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,S,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,S,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),l.props=r,l.state=S,l.context=a,r=c):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return us(e,t,n,r,i,o)}function us(e,t,n,r,o,i){ic(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&aa(t,n,!1),bt(e,t,i);r=t.stateNode,X3.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=tr(t,e.child,null,i),t.child=tr(t,null,s,i)):Ge(e,t,s,i),t.memoizedState=r.state,o&&aa(t,n,!0),t.child}function lc(e){var t=e.stateNode;t.pendingContext?ua(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ua(e,t.context,!1),qs(e,t.containerInfo)}function _a(e,t,n,r,o){return er(),Gs(o),t.flags|=256,Ge(e,t,n,r),t.child}var as={dehydrated:null,treeContext:null,retryLane:0};function cs(e){return{baseLanes:e,cachePool:null,transitions:null}}function sc(e,t,n){var r=t.pendingProps,o=ve.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),de(ve,o&1),e===null)return ns(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):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Hi(l,r,0,null),e=wn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=cs(n),t.memoizedState=as,e):lu(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return Q3(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var a={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=sn(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=sn(s,i):(i=wn(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?cs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=as,r}return i=e.child,e=i.sibling,r=sn(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 lu(e,t){return t=Hi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jo(e,t,n,r){return r!==null&&Gs(r),tr(t,e.child,null,n),e=lu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Q3(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=vl(Error(O(422))),jo(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Hi({mode:"visible",children:r.children},o,0,null),i=wn(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&tr(t,e.child,null,l),t.child.memoizedState=cs(l),t.memoizedState=as,i);if(!(t.mode&1))return jo(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(O(419)),r=vl(i,r,void 0),jo(e,t,l,r)}if(s=(l&e.childLanes)!==0,Ke||s){if(r=Ne,r!==null){switch(l&-l){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|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Bt(e,o),Lt(r,e,o,-1))}return du(),r=vl(Error(O(421))),jo(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=ad.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,nt=nn(o.nextSibling),rt=t,ge=!0,Et=null,e!==null&&(ct[ft++]=Ht,ct[ft++]=$t,ct[ft++]=En,Ht=e.id,$t=e.overflow,En=t),t=lu(t,r.children),t.flags|=4096,t)}function La(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),rs(e.return,t,n)}function Cl(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 uc(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ge(e,t,r.children,n),r=ve.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&&La(e,n,t);else if(e.tag===19)La(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(de(ve,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&&gi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Cl(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&&gi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Cl(t,!0,n,null,i);break;case"together":Cl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_n|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=sn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function K3(e,t,n){switch(t.tag){case 3:lc(t),er();break;case 5:O1(t);break;case 1:Je(t.type)&&ci(t);break;case 4:qs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;de(pi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(de(ve,ve.current&1),t.flags|=128,null):n&t.child.childLanes?sc(e,t,n):(de(ve,ve.current&1),e=bt(e,t,n),e!==null?e.sibling:null);de(ve,ve.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return uc(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),de(ve,ve.current),r)break;return null;case 22:case 23:return t.lanes=0,oc(e,t,n)}return bt(e,t,n)}var ac,fs,cc,fc;ac=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}};fs=function(){};cc=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Cn(Ot.current);var i=null;switch(n){case"input":o=Rl(e,o),r=Rl(e,r),i=[];break;case"select":o=xe({},o,{value:void 0}),r=xe({},r,{value:void 0}),i=[];break;case"textarea":o=Fl(e,o),r=Fl(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ui)}$l(n,r);var l;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var s=o[c];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Br.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var a=r[c];if(s=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&a!==s&&(a!=null||s!=null))if(c==="style")if(s){for(l in s)!s.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&s[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(i||(i=[]),i.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Br.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&he("scroll",e),i||s===a||(i=[])):(i=i||[]).push(c,a))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};fc=function(e,t,n,r){n!==r&&(t.flags|=4)};function wr(e,t){if(!ge)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 Ve(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 q3(e,t,n){var r=t.pendingProps;switch(Ws(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return Je(t.type)&&ai(),Ve(t),null;case 3:return r=t.stateNode,nr(),me(qe),me(Ue),eu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Mo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Et!==null&&(Cs(Et),Et=null))),fs(e,t),Ve(t),null;case 5:Js(t);var o=Cn(eo.current);if(n=t.type,e!==null&&t.stateNode!=null)cc(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return Ve(t),null}if(e=Cn(Ot.current),Mo(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Nt]=t,r[qr]=i,e=(t.mode&1)!==0,n){case"dialog":he("cancel",r),he("close",r);break;case"iframe":case"object":case"embed":he("load",r);break;case"video":case"audio":for(o=0;o<Mr.length;o++)he(Mr[o],r);break;case"source":he("error",r);break;case"img":case"image":case"link":he("error",r),he("load",r);break;case"details":he("toggle",r);break;case"input":Au(r,i),he("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},he("invalid",r);break;case"textarea":Hu(r,i),he("invalid",r)}$l(n,i),o=null;for(var l in i)if(i.hasOwnProperty(l)){var s=i[l];l==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&Lo(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Lo(r.textContent,s,e),o=["children",""+s]):Br.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&he("scroll",r)}switch(n){case"input":vo(r),Fu(r,i,!0);break;case"textarea":vo(r),$u(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=ui)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=z2(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Nt]=t,e[qr]=r,ac(e,t,!1,!1),t.stateNode=e;e:{switch(l=zl(n,r),n){case"dialog":he("cancel",e),he("close",e),o=r;break;case"iframe":case"object":case"embed":he("load",e),o=r;break;case"video":case"audio":for(o=0;o<Mr.length;o++)he(Mr[o],e);o=r;break;case"source":he("error",e),o=r;break;case"img":case"image":case"link":he("error",e),he("load",e),o=r;break;case"details":he("toggle",e),o=r;break;case"input":Au(e,r),o=Rl(e,r),he("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=xe({},r,{value:void 0}),he("invalid",e);break;case"textarea":Hu(e,r),o=Fl(e,r),he("invalid",e);break;default:o=r}$l(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="style"?B2(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&D2(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&br(e,a):typeof a=="number"&&br(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Br.hasOwnProperty(i)?a!=null&&i==="onScroll"&&he("scroll",e):a!=null&&Is(e,i,a,l))}switch(n){case"input":vo(e),Fu(e,r,!1);break;case"textarea":vo(e),$u(e);break;case"option":r.value!=null&&e.setAttribute("value",""+un(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Gn(e,!!r.multiple,i,!1):r.defaultValue!=null&&Gn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=ui)}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 Ve(t),null;case 6:if(e&&t.stateNode!=null)fc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=Cn(eo.current),Cn(Ot.current),Mo(t)){if(r=t.stateNode,n=t.memoizedProps,r[Nt]=t,(i=r.nodeValue!==n)&&(e=rt,e!==null))switch(e.tag){case 3:Lo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Lo(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Nt]=t,t.stateNode=r}return Ve(t),null;case 13:if(me(ve),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ge&&nt!==null&&t.mode&1&&!(t.flags&128))j1(),er(),t.flags|=98560,i=!1;else if(i=Mo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(O(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(O(317));i[Nt]=t}else er(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ve(t),i=!1}else Et!==null&&(Cs(Et),Et=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||ve.current&1?Ie===0&&(Ie=3):du())),t.updateQueue!==null&&(t.flags|=4),Ve(t),null);case 4:return nr(),fs(e,t),e===null&&Qr(t.stateNode.containerInfo),Ve(t),null;case 10:return Xs(t.type._context),Ve(t),null;case 17:return Je(t.type)&&ai(),Ve(t),null;case 19:if(me(ve),i=t.memoizedState,i===null)return Ve(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)wr(i,!1);else{if(Ie!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=gi(e),l!==null){for(t.flags|=128,wr(i,!1),r=l.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,l=i.alternate,l===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=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return de(ve,ve.current&1|2),t.child}e=e.sibling}i.tail!==null&&ke()>or&&(t.flags|=128,r=!0,wr(i,!1),t.lanes=4194304)}else{if(!r)if(e=gi(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!ge)return Ve(t),null}else 2*ke()-i.renderingStartTime>or&&n!==1073741824&&(t.flags|=128,r=!0,wr(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ke(),t.sibling=null,n=ve.current,de(ve,r?n&1|2:n&1),t):(Ve(t),null);case 22:case 23:return fu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tt&1073741824&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function J3(e,t){switch(Ws(t),t.tag){case 1:return Je(t.type)&&ai(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nr(),me(qe),me(Ue),eu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Js(t),null;case 13:if(me(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));er()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(ve),null;case 4:return nr(),null;case 10:return Xs(t.type._context),null;case 22:case 23:return fu(),null;case 24:return null;default:return null}}var Io=!1,be=!1,ed=typeof WeakSet=="function"?WeakSet:Set,V=null;function Bn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Se(e,t,r)}else n.current=null}function ds(e,t,n){try{n()}catch(r){Se(e,t,r)}}var Ma=!1;function td(e,t){if(Xl=ii,e=g1(),bs(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 l=0,s=-1,a=-1,c=0,d=0,m=e,g=null;t:for(;;){for(var y;m!==n||o!==0&&m.nodeType!==3||(s=l+o),m!==i||r!==0&&m.nodeType!==3||(a=l+r),m.nodeType===3&&(l+=m.nodeValue.length),(y=m.firstChild)!==null;)g=m,m=y;for(;;){if(m===e)break t;if(g===n&&++c===o&&(s=l),g===i&&++d===r&&(a=l),(y=m.nextSibling)!==null)break;m=g,g=m.parentNode}m=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ql={focusedElem:e,selectionRange:n},ii=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var L=S.memoizedProps,w=S.memoizedState,p=t.stateNode,f=p.getSnapshotBeforeUpdate(t.elementType===t.type?L:xt(t.type,L),w);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(x){Se(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return S=Ma,Ma=!1,S}function Fr(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&&ds(t,n,i)}o=o.next}while(o!==r)}}function Ai(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 ps(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 dc(e){var t=e.alternate;t!==null&&(e.alternate=null,dc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Nt],delete t[qr],delete t[Jl],delete t[H3],delete t[$3])),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 pc(e){return e.tag===5||e.tag===3||e.tag===4}function Ta(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pc(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 hs(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=ui));else if(r!==4&&(e=e.child,e!==null))for(hs(e,t,n),e=e.sibling;e!==null;)hs(e,t,n),e=e.sibling}function ms(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(ms(e,t,n),e=e.sibling;e!==null;)ms(e,t,n),e=e.sibling}var Oe=null,St=!1;function Wt(e,t,n){for(n=n.child;n!==null;)hc(e,t,n),n=n.sibling}function hc(e,t,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Mi,n)}catch{}switch(n.tag){case 5:be||Bn(n,t);case 6:var r=Oe,o=St;Oe=null,Wt(e,t,n),Oe=r,St=o,Oe!==null&&(St?(e=Oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Oe.removeChild(n.stateNode));break;case 18:Oe!==null&&(St?(e=Oe,n=n.stateNode,e.nodeType===8?dl(e.parentNode,n):e.nodeType===1&&dl(e,n),Zr(e)):dl(Oe,n.stateNode));break;case 4:r=Oe,o=St,Oe=n.stateNode.containerInfo,St=!0,Wt(e,t,n),Oe=r,St=o;break;case 0:case 11:case 14:case 15:if(!be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&ds(n,t,l),o=o.next}while(o!==r)}Wt(e,t,n);break;case 1:if(!be&&(Bn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Se(n,t,s)}Wt(e,t,n);break;case 21:Wt(e,t,n);break;case 22:n.mode&1?(be=(r=be)||n.memoizedState!==null,Wt(e,t,n),be=r):Wt(e,t,n);break;default:Wt(e,t,n)}}function ja(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ed),t.forEach(function(r){var o=cd.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ct(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,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 5:Oe=s.stateNode,St=!1;break e;case 3:Oe=s.stateNode.containerInfo,St=!0;break e;case 4:Oe=s.stateNode.containerInfo,St=!0;break e}s=s.return}if(Oe===null)throw Error(O(160));hc(i,l,o),Oe=null,St=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(c){Se(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)mc(t,e),t=t.sibling}function mc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ct(t,e),Tt(e),r&4){try{Fr(3,e,e.return),Ai(3,e)}catch(L){Se(e,e.return,L)}try{Fr(5,e,e.return)}catch(L){Se(e,e.return,L)}}break;case 1:Ct(t,e),Tt(e),r&512&&n!==null&&Bn(n,n.return);break;case 5:if(Ct(t,e),Tt(e),r&512&&n!==null&&Bn(n,n.return),e.flags&32){var o=e.stateNode;try{br(o,"")}catch(L){Se(e,e.return,L)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&H2(o,i),zl(s,l);var c=zl(s,i);for(l=0;l<a.length;l+=2){var d=a[l],m=a[l+1];d==="style"?B2(o,m):d==="dangerouslySetInnerHTML"?D2(o,m):d==="children"?br(o,m):Is(o,d,m,c)}switch(s){case"input":Ol(o,i);break;case"textarea":$2(o,i);break;case"select":var g=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var y=i.value;y!=null?Gn(o,!!i.multiple,y,!1):g!==!!i.multiple&&(i.defaultValue!=null?Gn(o,!!i.multiple,i.defaultValue,!0):Gn(o,!!i.multiple,i.multiple?[]:"",!1))}o[qr]=i}catch(L){Se(e,e.return,L)}}break;case 6:if(Ct(t,e),Tt(e),r&4){if(e.stateNode===null)throw Error(O(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(L){Se(e,e.return,L)}}break;case 3:if(Ct(t,e),Tt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Zr(t.containerInfo)}catch(L){Se(e,e.return,L)}break;case 4:Ct(t,e),Tt(e);break;case 13:Ct(t,e),Tt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(au=ke())),r&4&&ja(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(be=(c=be)||d,Ct(t,e),be=c):Ct(t,e),Tt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(V=e,d=e.child;d!==null;){for(m=V=d;V!==null;){switch(g=V,y=g.child,g.tag){case 0:case 11:case 14:case 15:Fr(4,g,g.return);break;case 1:Bn(g,g.return);var S=g.stateNode;if(typeof S.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(L){Se(r,n,L)}}break;case 5:Bn(g,g.return);break;case 22:if(g.memoizedState!==null){Pa(m);continue}}y!==null?(y.return=g,V=y):Pa(m)}d=d.sibling}e:for(d=null,m=e;;){if(m.tag===5){if(d===null){d=m;try{o=m.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=m.stateNode,a=m.memoizedProps.style,l=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=V2("display",l))}catch(L){Se(e,e.return,L)}}}else if(m.tag===6){if(d===null)try{m.stateNode.nodeValue=c?"":m.memoizedProps}catch(L){Se(e,e.return,L)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;d===m&&(d=null),m=m.return}d===m&&(d=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Ct(t,e),Tt(e),r&4&&ja(e);break;case 21:break;default:Ct(t,e),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(pc(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(br(o,""),r.flags&=-33);var i=Ta(e);ms(e,i,o);break;case 3:case 4:var l=r.stateNode.containerInfo,s=Ta(e);hs(e,s,l);break;default:throw Error(O(161))}}catch(a){Se(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function nd(e,t,n){V=e,gc(e)}function gc(e,t,n){for(var r=(e.mode&1)!==0;V!==null;){var o=V,i=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||Io;if(!l){var s=o.alternate,a=s!==null&&s.memoizedState!==null||be;s=Io;var c=be;if(Io=l,(be=a)&&!c)for(V=o;V!==null;)l=V,a=l.child,l.tag===22&&l.memoizedState!==null?Na(o):a!==null?(a.return=l,V=a):Na(o);for(;i!==null;)V=i,gc(i),i=i.sibling;V=o,Io=s,be=c}Ia(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,V=i):Ia(e)}}function Ia(e){for(;V!==null;){var t=V;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:be||Ai(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!be)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:xt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&ha(t,i,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ha(t,l,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var m=d.dehydrated;m!==null&&Zr(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}be||t.flags&512&&ps(t)}catch(g){Se(t,t.return,g)}}if(t===e){V=null;break}if(n=t.sibling,n!==null){n.return=t.return,V=n;break}V=t.return}}function Pa(e){for(;V!==null;){var t=V;if(t===e){V=null;break}var n=t.sibling;if(n!==null){n.return=t.return,V=n;break}V=t.return}}function Na(e){for(;V!==null;){var t=V;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ai(4,t)}catch(a){Se(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){Se(t,o,a)}}var i=t.return;try{ps(t)}catch(a){Se(t,i,a)}break;case 5:var l=t.return;try{ps(t)}catch(a){Se(t,l,a)}}}catch(a){Se(t,t.return,a)}if(t===e){V=null;break}var s=t.sibling;if(s!==null){s.return=t.return,V=s;break}V=t.return}}var rd=Math.ceil,Ci=Ut.ReactCurrentDispatcher,su=Ut.ReactCurrentOwner,ht=Ut.ReactCurrentBatchConfig,oe=0,Ne=null,Te=null,Ae=0,tt=0,bn=fn(0),Ie=0,oo=null,_n=0,Fi=0,uu=0,Hr=null,Qe=null,au=0,or=1/0,At=null,xi=!1,gs=null,on=null,Po=!1,Kt=null,wi=0,$r=0,ys=null,Qo=-1,Ko=0;function Ze(){return oe&6?ke():Qo!==-1?Qo:Qo=ke()}function ln(e){return e.mode&1?oe&2&&Ae!==0?Ae&-Ae:D3.transition!==null?(Ko===0&&(Ko=e1()),Ko):(e=ae,e!==0||(e=window.event,e=e===void 0?16:s1(e.type)),e):1}function Lt(e,t,n,r){if(50<$r)throw $r=0,ys=null,Error(O(185));ao(e,n,r),(!(oe&2)||e!==Ne)&&(e===Ne&&(!(oe&2)&&(Fi|=n),Ie===4&&Xt(e,Ae)),et(e,r),n===1&&oe===0&&!(t.mode&1)&&(or=ke()+500,Ni&&dn()))}function et(e,t){var n=e.callbackNode;Df(e,t);var r=oi(e,e===Ne?Ae:0);if(r===0)n!==null&&Vu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Vu(n),t===1)e.tag===0?z3(Ra.bind(null,e)):L1(Ra.bind(null,e)),A3(function(){!(oe&6)&&dn()}),n=null;else{switch(t1(r)){case 1:n=As;break;case 4:n=q2;break;case 16:n=ri;break;case 536870912:n=J2;break;default:n=ri}n=kc(n,yc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yc(e,t){if(Qo=-1,Ko=0,oe&6)throw Error(O(327));var n=e.callbackNode;if(Kn()&&e.callbackNode!==n)return null;var r=oi(e,e===Ne?Ae:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Si(e,r);else{t=r;var o=oe;oe|=2;var i=Cc();(Ne!==e||Ae!==t)&&(At=null,or=ke()+500,xn(e,t));do try{ld();break}catch(s){vc(e,s)}while(!0);Ys(),Ci.current=i,oe=o,Te!==null?t=0:(Ne=null,Ae=0,t=Ie)}if(t!==0){if(t===2&&(o=Ul(e),o!==0&&(r=o,t=vs(e,o))),t===1)throw n=oo,xn(e,0),Xt(e,r),et(e,ke()),n;if(t===6)Xt(e,r);else{if(o=e.current.alternate,!(r&30)&&!od(o)&&(t=Si(e,r),t===2&&(i=Ul(e),i!==0&&(r=i,t=vs(e,i))),t===1))throw n=oo,xn(e,0),Xt(e,r),et(e,ke()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:mn(e,Qe,At);break;case 3:if(Xt(e,r),(r&130023424)===r&&(t=au+500-ke(),10<t)){if(oi(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Ze(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ql(mn.bind(null,e,Qe,At),t);break}mn(e,Qe,At);break;case 4:if(Xt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-_t(r);i=1<<l,l=t[l],l>o&&(o=l),r&=~i}if(r=o,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rd(r/1960))-r,10<r){e.timeoutHandle=ql(mn.bind(null,e,Qe,At),r);break}mn(e,Qe,At);break;case 5:mn(e,Qe,At);break;default:throw Error(O(329))}}}return et(e,ke()),e.callbackNode===n?yc.bind(null,e):null}function vs(e,t){var n=Hr;return e.current.memoizedState.isDehydrated&&(xn(e,t).flags|=256),e=Si(e,t),e!==2&&(t=Qe,Qe=n,t!==null&&Cs(t)),e}function Cs(e){Qe===null?Qe=e:Qe.push.apply(Qe,e)}function od(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(!Mt(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 Xt(e,t){for(t&=~uu,t&=~Fi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_t(t),r=1<<n;e[n]=-1,t&=~r}}function Ra(e){if(oe&6)throw Error(O(327));Kn();var t=oi(e,0);if(!(t&1))return et(e,ke()),null;var n=Si(e,t);if(e.tag!==0&&n===2){var r=Ul(e);r!==0&&(t=r,n=vs(e,r))}if(n===1)throw n=oo,xn(e,0),Xt(e,t),et(e,ke()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,mn(e,Qe,At),et(e,ke()),null}function cu(e,t){var n=oe;oe|=1;try{return e(t)}finally{oe=n,oe===0&&(or=ke()+500,Ni&&dn())}}function Ln(e){Kt!==null&&Kt.tag===0&&!(oe&6)&&Kn();var t=oe;oe|=1;var n=ht.transition,r=ae;try{if(ht.transition=null,ae=1,e)return e()}finally{ae=r,ht.transition=n,oe=t,!(oe&6)&&dn()}}function fu(){tt=bn.current,me(bn)}function xn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,O3(n)),Te!==null)for(n=Te.return;n!==null;){var r=n;switch(Ws(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ai();break;case 3:nr(),me(qe),me(Ue),eu();break;case 5:Js(r);break;case 4:nr();break;case 13:me(ve);break;case 19:me(ve);break;case 10:Xs(r.type._context);break;case 22:case 23:fu()}n=n.return}if(Ne=e,Te=e=sn(e.current,null),Ae=tt=t,Ie=0,oo=null,uu=Fi=_n=0,Qe=Hr=null,vn!==null){for(t=0;t<vn.length;t++)if(n=vn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var l=i.next;i.next=o,r.next=l}n.pending=r}vn=null}return e}function vc(e,t){do{var n=Te;try{if(Ys(),Zo.current=vi,yi){for(var r=Ce.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}yi=!1}if(kn=0,Pe=je=Ce=null,Ar=!1,to=0,su.current=null,n===null||n.return===null){Ie=1,oo=t,Te=null;break}e:{var i=e,l=n.return,s=n,a=t;if(t=Ae,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,d=s,m=d.tag;if(!(d.mode&1)&&(m===0||m===11||m===15)){var g=d.alternate;g?(d.updateQueue=g.updateQueue,d.memoizedState=g.memoizedState,d.lanes=g.lanes):(d.updateQueue=null,d.memoizedState=null)}var y=xa(l);if(y!==null){y.flags&=-257,wa(y,l,s,i,t),y.mode&1&&Ca(i,c,t),t=y,a=c;var S=t.updateQueue;if(S===null){var L=new Set;L.add(a),t.updateQueue=L}else S.add(a);break e}else{if(!(t&1)){Ca(i,c,t),du();break e}a=Error(O(426))}}else if(ge&&s.mode&1){var w=xa(l);if(w!==null){!(w.flags&65536)&&(w.flags|=256),wa(w,l,s,i,t),Gs(rr(a,s));break e}}i=a=rr(a,s),Ie!==4&&(Ie=2),Hr===null?Hr=[i]:Hr.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var p=tc(i,a,t);pa(i,p);break e;case 1:s=a;var f=i.type,h=i.stateNode;if(!(i.flags&128)&&(typeof f.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(on===null||!on.has(h)))){i.flags|=65536,t&=-t,i.lanes|=t;var x=nc(i,s,t);pa(i,x);break e}}i=i.return}while(i!==null)}wc(n)}catch(k){t=k,Te===n&&n!==null&&(Te=n=n.return);continue}break}while(!0)}function Cc(){var e=Ci.current;return Ci.current=vi,e===null?vi:e}function du(){(Ie===0||Ie===3||Ie===2)&&(Ie=4),Ne===null||!(_n&268435455)&&!(Fi&268435455)||Xt(Ne,Ae)}function Si(e,t){var n=oe;oe|=2;var r=Cc();(Ne!==e||Ae!==t)&&(At=null,xn(e,t));do try{id();break}catch(o){vc(e,o)}while(!0);if(Ys(),oe=n,Ci.current=r,Te!==null)throw Error(O(261));return Ne=null,Ae=0,Ie}function id(){for(;Te!==null;)xc(Te)}function ld(){for(;Te!==null&&!Pf();)xc(Te)}function xc(e){var t=Ec(e.alternate,e,tt);e.memoizedProps=e.pendingProps,t===null?wc(e):Te=t,su.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=J3(n,t),n!==null){n.flags&=32767,Te=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ie=6,Te=null;return}}else if(n=q3(n,t,tt),n!==null){Te=n;return}if(t=t.sibling,t!==null){Te=t;return}Te=t=e}while(t!==null);Ie===0&&(Ie=5)}function mn(e,t,n){var r=ae,o=ht.transition;try{ht.transition=null,ae=1,sd(e,t,n,r)}finally{ht.transition=o,ae=r}return null}function sd(e,t,n,r){do Kn();while(Kt!==null);if(oe&6)throw Error(O(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(O(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Vf(e,i),e===Ne&&(Te=Ne=null,Ae=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Po||(Po=!0,kc(ri,function(){return Kn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=ht.transition,ht.transition=null;var l=ae;ae=1;var s=oe;oe|=4,su.current=null,td(e,n),mc(n,e),M3(Ql),ii=!!Xl,Ql=Xl=null,e.current=n,nd(n),Nf(),oe=s,ae=l,ht.transition=i}else e.current=n;if(Po&&(Po=!1,Kt=e,wi=o),i=e.pendingLanes,i===0&&(on=null),Af(n.stateNode),et(e,ke()),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(xi)throw xi=!1,e=gs,gs=null,e;return wi&1&&e.tag!==0&&Kn(),i=e.pendingLanes,i&1?e===ys?$r++:($r=0,ys=e):$r=0,dn(),null}function Kn(){if(Kt!==null){var e=t1(wi),t=ht.transition,n=ae;try{if(ht.transition=null,ae=16>e?16:e,Kt===null)var r=!1;else{if(e=Kt,Kt=null,wi=0,oe&6)throw Error(O(331));var o=oe;for(oe|=4,V=e.current;V!==null;){var i=V,l=i.child;if(V.flags&16){var s=i.deletions;if(s!==null){for(var a=0;a<s.length;a++){var c=s[a];for(V=c;V!==null;){var d=V;switch(d.tag){case 0:case 11:case 15:Fr(8,d,i)}var m=d.child;if(m!==null)m.return=d,V=m;else for(;V!==null;){d=V;var g=d.sibling,y=d.return;if(dc(d),d===c){V=null;break}if(g!==null){g.return=y,V=g;break}V=y}}}var S=i.alternate;if(S!==null){var L=S.child;if(L!==null){S.child=null;do{var w=L.sibling;L.sibling=null,L=w}while(L!==null)}}V=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,V=l;else e:for(;V!==null;){if(i=V,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Fr(9,i,i.return)}var p=i.sibling;if(p!==null){p.return=i.return,V=p;break e}V=i.return}}var f=e.current;for(V=f;V!==null;){l=V;var h=l.child;if(l.subtreeFlags&2064&&h!==null)h.return=l,V=h;else e:for(l=f;V!==null;){if(s=V,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Ai(9,s)}}catch(k){Se(s,s.return,k)}if(s===l){V=null;break e}var x=s.sibling;if(x!==null){x.return=s.return,V=x;break e}V=s.return}}if(oe=o,dn(),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Mi,e)}catch{}r=!0}return r}finally{ae=n,ht.transition=t}}return!1}function Oa(e,t,n){t=rr(n,t),t=tc(e,t,1),e=rn(e,t,1),t=Ze(),e!==null&&(ao(e,1,t),et(e,t))}function Se(e,t,n){if(e.tag===3)Oa(e,e,n);else for(;t!==null;){if(t.tag===3){Oa(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(on===null||!on.has(r))){e=rr(n,e),e=nc(t,e,1),t=rn(t,e,1),e=Ze(),t!==null&&(ao(t,1,e),et(t,e));break}}t=t.return}}function ud(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ze(),e.pingedLanes|=e.suspendedLanes&n,Ne===e&&(Ae&n)===n&&(Ie===4||Ie===3&&(Ae&130023424)===Ae&&500>ke()-au?xn(e,0):uu|=n),et(e,t)}function Sc(e,t){t===0&&(e.mode&1?(t=wo,wo<<=1,!(wo&130023424)&&(wo=4194304)):t=1);var n=Ze();e=Bt(e,t),e!==null&&(ao(e,t,n),et(e,n))}function ad(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sc(e,n)}function cd(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(O(314))}r!==null&&r.delete(t),Sc(e,n)}var Ec;Ec=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)Ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ke=!1,K3(e,t,n);Ke=!!(e.flags&131072)}else Ke=!1,ge&&t.flags&1048576&&M1(t,di,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xo(e,t),e=t.pendingProps;var o=Jn(t,Ue.current);Qn(t,n),o=nu(null,t,r,e,o,n);var i=ru();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,Je(r)?(i=!0,ci(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ks(t),o.updater=Oi,t.stateNode=o,o._reactInternals=t,is(t,r,e,n),t=us(null,t,r,!0,i,n)):(t.tag=0,ge&&i&&Us(t),Ge(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=dd(r),e=xt(r,e),o){case 0:t=ss(null,t,r,e,n);break e;case 1:t=ka(null,t,r,e,n);break e;case 11:t=Sa(null,t,r,e,n);break e;case 14:t=Ea(null,t,r,xt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xt(r,o),ss(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xt(r,o),ka(e,t,r,o,n);case 3:e:{if(lc(t),e===null)throw Error(O(387));r=t.pendingProps,i=t.memoizedState,o=i.element,R1(e,t),mi(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=rr(Error(O(423)),t),t=_a(e,t,r,n,o);break e}else if(r!==o){o=rr(Error(O(424)),t),t=_a(e,t,r,n,o);break e}else for(nt=nn(t.stateNode.containerInfo.firstChild),rt=t,ge=!0,Et=null,n=P1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(er(),r===o){t=bt(e,t,n);break e}Ge(e,t,r,n)}t=t.child}return t;case 5:return O1(t),e===null&&ns(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Kl(r,o)?l=null:i!==null&&Kl(r,i)&&(t.flags|=32),ic(e,t),Ge(e,t,l,n),t.child;case 6:return e===null&&ns(t),null;case 13:return sc(e,t,n);case 4:return qs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=tr(t,null,r,n):Ge(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xt(r,o),Sa(e,t,r,o,n);case 7:return Ge(e,t,t.pendingProps,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,de(pi,r._currentValue),r._currentValue=l,i!==null)if(Mt(i.value,l)){if(i.children===o.children&&!qe.current){t=bt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=zt(-1,n&-n),a.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?a.next=a:(a.next=d.next,d.next=a),c.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),rs(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(O(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),rs(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Ge(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Qn(t,n),o=mt(o),r=r(o),t.flags|=1,Ge(e,t,r,n),t.child;case 14:return r=t.type,o=xt(r,t.pendingProps),o=xt(r.type,o),Ea(e,t,r,o,n);case 15:return rc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xt(r,o),Xo(e,t),t.tag=1,Je(r)?(e=!0,ci(t)):e=!1,Qn(t,n),ec(t,r,o),is(t,r,o,n),us(null,t,r,!0,e,n);case 19:return uc(e,t,n);case 22:return oc(e,t,n)}throw Error(O(156,t.tag))};function kc(e,t){return K2(e,t)}function fd(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 pt(e,t,n,r){return new fd(e,t,n,r)}function pu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dd(e){if(typeof e=="function")return pu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ns)return 11;if(e===Rs)return 14}return 2}function sn(e,t){var n=e.alternate;return n===null?(n=pt(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 qo(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")pu(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Rn:return wn(n.children,o,i,t);case Ps:l=8,o|=8;break;case jl:return e=pt(12,n,t,o|2),e.elementType=jl,e.lanes=i,e;case Il:return e=pt(13,n,t,o),e.elementType=Il,e.lanes=i,e;case Pl:return e=pt(19,n,t,o),e.elementType=Pl,e.lanes=i,e;case O2:return Hi(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N2:l=10;break e;case R2:l=9;break e;case Ns:l=11;break e;case Rs:l=14;break e;case Gt:l=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=pt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function wn(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function Hi(e,t,n,r){return e=pt(22,e,r,t),e.elementType=O2,e.lanes=n,e.stateNode={isHidden:!1},e}function xl(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function wl(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pd(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=tl(0),this.expirationTimes=tl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function hu(e,t,n,r,o,i,l,s,a){return e=new pd(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=pt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ks(i),e}function hd(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Nn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function _c(e){if(!e)return an;e=e._reactInternals;e:{if(jn(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Je(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(Je(n))return _1(e,n,t)}return t}function Lc(e,t,n,r,o,i,l,s,a){return e=hu(n,r,!0,e,o,i,l,s,a),e.context=_c(null),n=e.current,r=Ze(),o=ln(n),i=zt(r,o),i.callback=t??null,rn(n,i,o),e.current.lanes=o,ao(e,o,r),et(e,r),e}function $i(e,t,n,r){var o=t.current,i=Ze(),l=ln(o);return n=_c(n),t.context===null?t.context=n:t.pendingContext=n,t=zt(i,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=rn(o,t,l),e!==null&&(Lt(e,o,l,i),Go(e,o,l)),l}function Ei(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 Aa(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mu(e,t){Aa(e,t),(e=e.alternate)&&Aa(e,t)}function md(){return null}var Mc=typeof reportError=="function"?reportError:function(e){console.error(e)};function gu(e){this._internalRoot=e}zi.prototype.render=gu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));$i(e,t,null,null)};zi.prototype.unmount=gu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ln(function(){$i(null,e,null,null)}),t[Vt]=null}};function zi(e){this._internalRoot=e}zi.prototype.unstable_scheduleHydration=function(e){if(e){var t=o1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Yt.length&&t!==0&&t<Yt[n].priority;n++);Yt.splice(n,0,e),n===0&&l1(e)}};function yu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Di(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Fa(){}function gd(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var c=Ei(l);i.call(c)}}var l=Lc(t,r,e,0,null,!1,!1,"",Fa);return e._reactRootContainer=l,e[Vt]=l.current,Qr(e.nodeType===8?e.parentNode:e),Ln(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var c=Ei(a);s.call(c)}}var a=hu(e,0,!1,null,null,!1,!1,"",Fa);return e._reactRootContainer=a,e[Vt]=a.current,Qr(e.nodeType===8?e.parentNode:e),Ln(function(){$i(t,a,n,r)}),a}function Vi(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i;if(typeof o=="function"){var s=o;o=function(){var a=Ei(l);s.call(a)}}$i(t,l,e,o)}else l=gd(n,t,e,o,r);return Ei(l)}n1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Lr(t.pendingLanes);n!==0&&(Fs(t,n|1),et(t,ke()),!(oe&6)&&(or=ke()+500,dn()))}break;case 13:Ln(function(){var r=Bt(e,1);if(r!==null){var o=Ze();Lt(r,e,1,o)}}),mu(e,1)}};Hs=function(e){if(e.tag===13){var t=Bt(e,134217728);if(t!==null){var n=Ze();Lt(t,e,134217728,n)}mu(e,134217728)}};r1=function(e){if(e.tag===13){var t=ln(e),n=Bt(e,t);if(n!==null){var r=Ze();Lt(n,e,t,r)}mu(e,t)}};o1=function(){return ae};i1=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};Vl=function(e,t,n){switch(t){case"input":if(Ol(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=Pi(r);if(!o)throw Error(O(90));F2(r),Ol(r,o)}}}break;case"textarea":$2(e,n);break;case"select":t=n.value,t!=null&&Gn(e,!!n.multiple,t,!1)}};W2=cu;G2=Ln;var yd={usingClientEntryPoint:!1,Events:[fo,Hn,Pi,b2,U2,cu]},Sr={findFiberByHostInstance:yn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},vd={bundleType:Sr.bundleType,version:Sr.version,rendererPackageName:Sr.rendererPackageName,rendererConfig:Sr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ut.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=X2(e),e===null?null:e.stateNode},findFiberByHostInstance:Sr.findFiberByHostInstance||md,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 No=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!No.isDisabled&&No.supportsFiber)try{Mi=No.inject(vd),Rt=No}catch{}}it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yd;it.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yu(t))throw Error(O(200));return hd(e,t,null,n)};it.createRoot=function(e,t){if(!yu(e))throw Error(O(299));var n=!1,r="",o=Mc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=hu(e,1,!1,null,null,n,!1,r,o),e[Vt]=t.current,Qr(e.nodeType===8?e.parentNode:e),new gu(t)};it.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(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=X2(t),e=e===null?null:e.stateNode,e};it.flushSync=function(e){return Ln(e)};it.hydrate=function(e,t,n){if(!Di(t))throw Error(O(200));return Vi(null,e,t,!0,n)};it.hydrateRoot=function(e,t,n){if(!yu(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",l=Mc;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Lc(t,null,e,1,n??null,o,!1,i,l),e[Vt]=t.current,Qr(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 zi(t)};it.render=function(e,t,n){if(!Di(t))throw Error(O(200));return Vi(null,e,t,!1,n)};it.unmountComponentAtNode=function(e){if(!Di(e))throw Error(O(40));return e._reactRootContainer?(Ln(function(){Vi(null,null,e,!1,function(){e._reactRootContainer=null,e[Vt]=null})}),!0):!1};it.unstable_batchedUpdates=cu;it.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Di(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return Vi(e,t,n,!1,r)};it.version="18.3.1-next-f1338f8080-20240426";function Tc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Tc)}catch(e){console.error(e)}}Tc(),T2.exports=it;var vu=T2.exports,Ha=vu;Ml.createRoot=Ha.createRoot,Ml.hydrateRoot=Ha.hydrateRoot;var ir;(function(e){e.Parsing="Parsing",e.Validation="Validation",e.Network="Network",e.Dependency="Dependency",e.Rendering="Rendering",e.Timeout="Timeout",e.Permission="Permission",e.Configuration="Configuration",e.Runtime="Runtime"})(ir||(ir={}));var $a;(function(e){e.Debug="debug",e.Info="info",e.Warn="warn",e.Error="error",e.Success="success"})($a||($a={}));const Be={PLUGIN_ERROR:"PLUGIN_ERROR",RETRY_VISUALIZATION:"RETRY_VISUALIZATION",CLOSE_VISUALIZER:"CLOSE_VISUALIZER",COPY_STACK_TRACE:"COPY_STACK_TRACE",OPEN_SETTINGS:"openSettings",REQUEST_PLUGIN_DATA:"REQUEST_PLUGIN_DATA",PLUGIN_DATA_RESPONSE:"PLUGIN_DATA_RESPONSE",PLUGIN_DATA_UPDATE:"PLUGIN_DATA_UPDATE",SUBMIT_EDIT:"SUBMIT_EDIT",SUBMIT_EDIT_RESULT:"SUBMIT_EDIT_RESULT",TELEMETRY_EVENT:"TELEMETRY_EVENT",MV_READY:"MV_READY",MV_SET_EDIT_STATE:"MV_SET_EDIT_STATE",MV_GET_SELECTION_SNAPSHOT:"MV_GET_SELECTION_SNAPSHOT",MV_SELECTION_CHANGED:"MV_SELECTION_CHANGED",MV_SELECTION_SNAPSHOT:"MV_SELECTION_SNAPSHOT",MV_RESTORE_SELECTION:"MV_RESTORE_SELECTION",MV_COMMAND_RESULT:"MV_COMMAND_RESULT"};new Set(Object.values(Be));let Er=null;function zr(){return typeof window<"u"&&typeof window.getHostApi=="function"}function Cu(e){const t=window.__ExtensionHostExpectedRenderId;return t===void 0||e.renderId===t}function Ro(e,...t){e||console.error(...t)}function jc(e,t){if(typeof window>"u")return Ro(t,"[sendToHost] Not in browser context"),!1;if(typeof window.__ExtensionHostPostMessage=="function")try{return window.__ExtensionHostPostMessage(e),!0}catch(n){Ro(t,"[sendToHost] Error sending via __ExtensionHostPostMessage:",n)}if(window.parent&&window.parent!==window)try{const n=typeof window.location<"u"&&window.location.origin?window.location.origin:"*";return window.parent.postMessage(e,n),!0}catch(n){Ro(t,"[sendToHost] Error sending via window.parent:",n)}return Ro(t,"[sendToHost] No host communication channel available"),!1}function xu(e){return jc(e,!1)}function Cd(e){try{return jc({type:Be.TELEMETRY_EVENT,payload:e},!0)}catch{return!1}}function xd(e){var n,r;if(!zr()||typeof window.__ExtensionHostPostMessage!="function")return Promise.reject(new Error("vibe-edit: acknowledged submission is only available in VS Code"));const t=((r=(n=globalThis.crypto)==null?void 0:n.randomUUID)==null?void 0:r.call(n))??`${Date.now()}-${Math.random()}`;return new Promise((o,i)=>{const l=window.setTimeout(()=>{s(),i(new Error("vibe-edit: host acknowledgement timed out; the edit may still be pending"))},12e4),s=()=>{clearTimeout(l),window.removeEventListener("message",a)},a=c=>{if(!Bi(c))return;const d=c.data,m=d.payload;d.type!==Be.SUBMIT_EDIT_RESULT||!Cu(d)||(m==null?void 0:m.requestId)!==t||(s(),m.result.delivered?o(m):i(new Error(m.result.detail??"vibe-edit: host did not deliver the edit")))};window.addEventListener("message",a);try{window.__ExtensionHostPostMessage({type:Be.SUBMIT_EDIT,payload:e,requestId:t})}catch(c){s(),i(c)}})}async function wd(e=5e3){return typeof window.__ExtensionHostPostMessage!="function"?(console.error("[getPluginData] Extension host postMessage not available. Ensure platform bootstrap has run."),Promise.resolve(null)):(Er!==null||(Er=new Promise(t=>{let n=0;const r=i=>{if(!Bi(i))return;const l=i.data;l.type===Be.PLUGIN_DATA_RESPONSE&&Cu(l)&&(o(),t(l.payload))};function o(){n&&(clearTimeout(n),n=0),window.removeEventListener("message",r),Er=null}window.addEventListener("message",r),n=window.setTimeout(()=>{console.error("[getPluginData] Timeout waiting for plugin data"),o(),t(null)},e),window.__ExtensionHostPostMessage({type:Be.REQUEST_PLUGIN_DATA})})),Er)}function Bi(e){var t,n;return e.source===null?!0:typeof window>"u"?!1:window.parent!==window&&e.source===window.parent||window.parent===window&&((n=(t=e.source)==null?void 0:t.constructor)==null?void 0:n.name)==="Window"}function Sd(e){const t=n=>{if(!Bi(n))return;const r=n.data;if(r.type===Be.PLUGIN_DATA_UPDATE&&Cu(r)){const o=r.payload;e(o)}};return window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}}class Mn{constructor(){this.error={}}static create(){return new Mn}category(t){return this.error.category=t,this}message(t){return this.error.message=t,this}stackTrace(t){return this.error.stackTrace=t,this}context(t){return this.error.context={...this.error.context,...t},this}build(){if(!this.error.category)throw new Error("ErrorBuilder: category is required");if(!this.error.message)throw new Error("ErrorBuilder: message is required");return this.error}send(){const t=this.build();xu({type:Be.PLUGIN_ERROR,payload:t})||console.error("[ErrorBuilder] Unable to send error to host:",t)}static fromError(t,n,r){const o=Mn.create().category(t);return n instanceof Error?(o.message(n.message),o.stackTrace(n.stack)):o.message(String(n)),r&&o.context(r),o}}function Ed(){typeof window>"u"||(window.addEventListener("error",e=>{const t=e.error;Mn.create().category(ir.Runtime).message(e.message||"An error occurred").stackTrace(t==null?void 0:t.stack).context({lineno:e.lineno,colno:e.colno,filename:e.filename}).send()}),window.addEventListener("unhandledrejection",e=>{const t=e.reason;let n;if(t instanceof Error)n=t.message;else if(t!=null&&typeof t=="object")try{n=JSON.stringify(t)}catch{n=String(t)}else n=t!=null?String(t):"Unhandled promise rejection";Mn.create().category(ir.Runtime).message(n).stackTrace(t instanceof Error?t.stack:void 0).send()}))}const kd=2,bi=100,_d=256e3,Ld=128,Md=512,Td=["inactive","selecting","locked"],za={protocolVersions:[kd],supportsHostControlledEntry:!0,supportsSelectionSnapshot:!0,supportsSelectionRestore:!0,maxSelectionCount:bi,maxPayloadBytes:_d},gn={MV_READY:Be.MV_READY,MV_SET_EDIT_STATE:Be.MV_SET_EDIT_STATE,MV_GET_SELECTION_SNAPSHOT:Be.MV_GET_SELECTION_SNAPSHOT,MV_SELECTION_CHANGED:Be.MV_SELECTION_CHANGED,MV_SELECTION_SNAPSHOT:Be.MV_SELECTION_SNAPSHOT,MV_RESTORE_SELECTION:Be.MV_RESTORE_SELECTION,MV_COMMAND_RESULT:Be.MV_COMMAND_RESULT},Da=1,jd=["vibeEdit.selectMode","vibeEdit.selection","vibeEdit.promptAbandoned"],Id=["agent","start-agent","subagent","topic","system-instructions","reasoning","reasoning-action","action","action-target","action-input","action-output","messages","description","heading","step","detail","start","screen","apexAction","apexPluginCall","emailAction","externalCallout","routeWork","addScreenPop","addSkillRequirement","checkAvailability","setScreenProperty","assignment","addPromptInstructions","decision","loop","recordCreate","recordLookup","recordUpdate","recordDelete","recordRollback","subflow","wait","collectionProcessor","collectionSort","transform","customError","stage","interactiveStep","managedContentStep","permissionset","objectPermission","fieldPermission","recordTypeVisibility","tabSetting","apexClassAccesses","pageAccesses","flowAccesses","agentAccesses","customPermissions","customMetadataTypeAccesses","customSettingAccesses","externalDataSourceAccesses","externalCredentialPrincipalAccesses","servicePresenceStatusAccesses","emailRoutingAddressAccesses","genComputingSummaryDefAccesses","userPermissions","applicationVisibilities","object","field","region","block","dataProvider","other"],xs=1e4;new Set(jd);const Pd=new Set(Id);function Va(e){return typeof e=="string"&&Pd.has(e)?e:"other"}const lr="data-mv-selectable",sr="data-mv-type",ws="data-mv-id",Ba="data-mv-selected",ba="data-mv-hover",Ic=.5,Nd=.8,Rd=5;function Oo(e,t,n,r){return{left:Math.min(e,n),top:Math.min(t,r),right:Math.max(e,n),bottom:Math.max(t,r)}}function Od(e,t){const n=Math.max(0,Math.min(e.right,t.right)-Math.max(e.left,t.left)),r=Math.max(0,Math.min(e.bottom,t.bottom)-Math.max(e.top,t.top));return n*r}function Ad(e){return Math.max(0,e.right-e.left)*Math.max(0,e.bottom-e.top)}function Ss(e,t){const n=Ad(t);return n<=0?0:Od(e,t)/n}function wu(e){const t=e.getAttribute(sr),n=e.getAttribute(ws);return!t||!n?null:{type:t,id:n}}function Dr(e){return`${e.type}::${e.id}`}function Fd(e,t,n=Ic,r=n){const i=Array.from(e.querySelectorAll(`[${lr}]`)).filter(g=>{const y=g.getBoundingClientRect();return Ss(t,{left:y.left,top:y.top,right:y.right,bottom:y.bottom})>=n}),l=new Set(i),s=new Set;for(const g of i){let y=g.parentElement;for(;y;)l.has(y)&&s.add(y),y=y.parentElement}const a=g=>{const y=g.getBoundingClientRect();return Ss(t,{left:y.left,top:y.top,right:y.right,bottom:y.bottom})>=r},c=i.filter(g=>!s.has(g)||a(g)),d=new Set(c),m=[];for(const g of c){let y=g.parentElement,S=!1;for(;y;){if(d.has(y)){S=!0;break}y=y.parentElement}if(S)continue;const L=wu(g);L&&m.push(L)}return m}function Hd(e,t,n=Ic){const r=Array.from(e.querySelectorAll(`[${lr}]`)),o=[];for(const i of r){const l=i.getBoundingClientRect();if(Ss(t,{left:l.left,top:l.top,right:l.right,bottom:l.bottom})>=n){const s=wu(i);s&&o.push(s)}}return o}function Sl(e,t,n){const r=Array.from(e.querySelectorAll(`[${lr}]`));let o=null;for(const i of r){const l=i.getBoundingClientRect();if(t<l.left||t>l.right||n<l.top||n>l.bottom)continue;const s=(l.right-l.left)*(l.bottom-l.top);(!o||s<o.area)&&(o={el:i,area:s})}return o?wu(o.el):null}function Pc(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=t+((t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24))>>>0;return t.toString(16).padStart(8,"0")}function Nc(e,t,n,r=0){return`${t}_${Pc(`${e}/${t}:${n}#${r}`)}`}function $d(e,t){Mn.create().category(ir.Rendering).message(e.message).stackTrace(e.stack).context({componentStack:t.componentStack,errorName:e.name}).send(),console.error("[ErrorBoundary] Rendering error:",e,t)}function zd({error:e}){return u.jsxs(u.Fragment,{children:[u.jsx("p",{children:"Something went wrong. Check the error panel for details."}),e&&u.jsxs(u.Fragment,{children:[e.message&&u.jsx("p",{children:e.message}),e.stack&&u.jsx("pre",{children:e.stack})]})]})}class Dd extends U.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){$d(t,n)}render(){return this.state.hasError?u.jsx(zd,{error:this.state.error}):this.props.children}}let at=null,Ao=null,wt=null,Ua=!1;function Vd(e){if(typeof e!="object"||e===null)return e;const t=e;return t.kind===void 0&&typeof t.filePath=="string"&&typeof t.fileName=="string"?{...t,kind:"file",filePath:t.filePath,fileName:t.fileName}:e}function Bd(e,t){const{rootClass:n,title:r,message:o,filePath:i}=t,l=i?`<p>File: ${i}</p>`:"";e.innerHTML=`
|
|
42
|
+
<div class="${n}">
|
|
43
|
+
<div class="error-message">
|
|
44
|
+
<h2>${r}</h2>
|
|
45
|
+
<p>${o}</p>
|
|
46
|
+
${l}
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
`}function Fo(e,t){const{logPrefix:n,rootClass:r,title:o,consoleMessage:i,errorBuilderMessage:l,context:s={},domMessage:a,filePath:c}=t;console.error(`${n} ${i}`),Mn.create().category(ir.Rendering).message(l).context(s).send(),Bd(e,{rootClass:r,title:o,message:a,filePath:c})}async function Wa(e){const{pluginName:t,rootClass:n,expectedSourceKind:r,render:o,validateData:i}=e,l=`[${t} React App]`,s=document.getElementById("root");if(!s){console.error(`${l} Root element not found`);return}if(wt&&(wt(),wt=null),at){try{at.unmount()}catch(f){console.warn(`${l} Error unmounting previous root:`,f)}at=null,Ao=null}const a={fn:null};let c=null,d=!1;wt=Sd(f=>{if(!d)if(a.fn)try{a.fn(f)}catch(h){console.error(`${l} Update handler threw:`,h)}else c=f});const g=(f,h,x)=>{f.render(u.jsx(U.StrictMode,{children:u.jsx(Dd,{children:o(h,x)})}))},y=()=>{if(at){try{at.unmount()}catch(f){console.warn(`${l} Error unmounting previous root:`,f)}at=null}Ao=null},S=f=>f.kind===r,L=()=>{d=!0,wt==null||wt(),wt=null,c=null},w=(f,h)=>{const x=f!=null&&f.context?Vd(f.context):void 0,k=f==null?void 0:f.data;if(!x||k==null){y();const M=(x==null?void 0:x.kind)==="file"?x.filePath:void 0;Fo(s,{logPrefix:l,rootClass:n,title:h?"Error: No updated data provided":"Error: No data provided",consoleMessage:"No data provided",errorBuilderMessage:`${t} data is missing or invalid`,context:{sourceKind:x==null?void 0:x.kind,reason:"No data provided in response"},domMessage:`${t} data is missing or invalid.`,filePath:M});return}if(!S(x)){y(),L(),Fo(s,{logPrefix:l,rootClass:n,title:"Error: Unsupported visualization source",consoleMessage:`Expected ${r} context but received ${x.kind}`,errorBuilderMessage:`${t} received an incompatible visualization source`,context:{expectedSourceKind:r,actualSourceKind:x.kind},domMessage:`${t} cannot render data from this source.`});return}const j=x,P=i!=null?i(k):null;if(P!=null){y(),Fo(s,{logPrefix:l,rootClass:n,title:h?"Error: Invalid Updated Data":"Error: Invalid Data",consoleMessage:`Validation failed: ${P}`,errorBuilderMessage:`${t} data structure is invalid`,context:{sourceKind:j.kind,reason:P},domMessage:P,filePath:j.kind==="file"?j.filePath:void 0});return}const E={...j,selectableNodes:f.selectableNodes},N=j.kind==="file"?`file:${j.filePath}`:`payload:${j.pluginId}`;if(at==null||N!==Ao){if(at){try{at.unmount()}catch(M){console.warn(`${l} Error unmounting previous root:`,M)}at=null}s.innerHTML="",at=Ml.createRoot(s),Ao=N}g(at,k,E)},p=await wd();if(!p){if(Fo(s,{logPrefix:l,rootClass:n,title:"Error: Failed to load data",consoleMessage:"Failed to receive plugin data from host",errorBuilderMessage:`${t} data is missing or invalid`,context:{reason:"Failed to receive plugin data from host"},domMessage:`Could not receive ${t} data from the extension host.`}),a.fn=f=>w(f,!0),c){const f=c;c=null,a.fn(f)}return}if(w(p,!1),!d&&(a.fn=f=>w(f,!0),c)){const f=c;c=null,a.fn(f)}}function bd(e){Ed(),Ua||(window.addEventListener("pagehide",()=>{wt&&(wt(),wt=null)}),Ua=!0),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{Wa(e)}):Wa(e)}const Ud=({items:e,header:t="LEGEND"})=>U.createElement("div",{className:"mv-legend-panel"},U.createElement("div",{className:"mv-legend-panel__header"},t),U.createElement("div",{className:"mv-legend-panel__body"},e.map(n=>U.createElement("div",{key:n.key,className:"mv-legend-panel__item"},U.createElement("span",{className:"mv-legend-panel__icon"},n.icon),n.label)))),Wd="modulepreload",Gd=function(e,t){return new URL(e,t).href},Ga={},Zd=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const l=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.allSettled(n.map(c=>{if(c=Gd(c,r),c in Ga)return;Ga[c]=!0;const d=c.endsWith(".css"),m=d?'[rel="stylesheet"]':"";if(!!r)for(let S=l.length-1;S>=0;S--){const L=l[S];if(L.href===c&&(!d||L.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${m}`))return;const y=document.createElement("link");if(y.rel=d?"stylesheet":Wd,d||(y.as="script"),y.crossOrigin="",y.href=c,a&&y.setAttribute("nonce",a),document.head.appendChild(y),d)return new Promise((S,L)=>{y.addEventListener("load",S),y.addEventListener("error",()=>L(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(l){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=l,window.dispatchEvent(s),!s.defaultPrevented)throw l}return o.then(l=>{for(const s of l||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})};function Yd(e,t,n){if(n)return{changed:!1,key:e,item:null};const r=t?Dr(t):null;return r===e?{changed:!1,key:r,item:null}:{changed:!0,key:r,item:t}}function Xd(e,t){return t&&!e}const Qd=({active:e,selected:t,onReplace:n,onAdd:r,onToggle:o,onClear:i,clearOnEmptyClick:l=!0,wholeContainerCoverage:s,onActivate:a,onHover:c,onMarqueePreview:d})=>{var ee;const m=_.useRef(null),g=_.useRef(null),[y,S]=_.useState(null),[L,w]=_.useState(!1),p=_.useRef(!1),f=_.useRef(null),h=_.useRef(null),x=_.useRef(null),k=_.useRef(null),j=_.useCallback(()=>{var A;return((A=m.current)==null?void 0:A.parentElement)??null},[]),P=_.useCallback(()=>{var te;const A=f.current;A!==null&&((te=m.current)!=null&&te.hasPointerCapture(A))&&m.current.releasePointerCapture(A),f.current=null,g.current=null,S(null),d==null||d([])},[d]),E=_.useCallback(A=>{p.current=A,w(A),A&&P()},[P]),N=_.useCallback(A=>{A.code==="Space"&&!A.nativeEvent.isComposing&&(A.preventDefault(),E(!0))},[E]),M=_.useCallback(A=>{A.code==="Space"&&E(!1)},[E]),G=_.useCallback(A=>{var te;!e||p.current||A.button!==0||(A.currentTarget.focus(),g.current={x:A.clientX,y:A.clientY,additive:A.shiftKey||A.metaKey||A.ctrlKey},S(Oo(A.clientX,A.clientY,A.clientX,A.clientY)),(te=m.current)==null||te.setPointerCapture(A.pointerId),f.current=A.pointerId,h.current!==null&&(cancelAnimationFrame(h.current),h.current=null),k.current!==null&&(k.current=null,c==null||c(null)))},[e,c]),Z=_.useCallback(A=>{if(g.current){const te=g.current,ie=Oo(te.x,te.y,A.clientX,A.clientY);S(ie),d&&(x.current={x:A.clientX,y:A.clientY},h.current===null&&(h.current=requestAnimationFrame(()=>{h.current=null;const re=g.current,le=x.current,pe=j();!re||!le||!pe||d(Hd(pe,Oo(re.x,re.y,le.x,le.y)))})));return}c&&(x.current={x:A.clientX,y:A.clientY},h.current===null&&(h.current=requestAnimationFrame(()=>{h.current=null;const te=x.current,ie=j();if(!te||!ie)return;const re=Sl(ie,te.x,te.y),le=Yd(k.current,re,g.current!==null);le.changed&&(k.current=le.key,c(le.item))})))},[c,d,j]),Y=_.useCallback(A=>{var se;const te=g.current;if(g.current=null,f.current=null,S(null),h.current!==null&&(cancelAnimationFrame(h.current),h.current=null),d==null||d([]),!te)return;(se=m.current)==null||se.releasePointerCapture(A.pointerId);const ie=j();if(!ie)return;if(Math.hypot(A.clientX-te.x,A.clientY-te.y)<Rd){const _e=Sl(ie,A.clientX,A.clientY);_e?o(_e):Xd(te.additive,l)&&i();return}const le=Oo(te.x,te.y,A.clientX,A.clientY),pe=Fd(ie,le,void 0,s);te.additive?r(pe):n(pe)},[j,r,n,o,i,l,s,d]),F=_.useCallback(A=>{if(!e||!a)return;const te=j();if(!te)return;const ie=Sl(te,A.clientX,A.clientY);ie&&a(ie)},[e,a,j]),Q=_.useCallback(()=>{g.current||(h.current!==null&&(cancelAnimationFrame(h.current),h.current=null),k.current!==null&&(k.current=null,c==null||c(null)))},[c]),z=_.useCallback(()=>{P()},[P]),X=_.useRef(c);X.current=c;const R=_.useRef(d);if(R.current=d,_.useEffect(()=>()=>{var A,te;h.current!==null&&(cancelAnimationFrame(h.current),h.current=null),k.current!==null&&(k.current=null,(A=X.current)==null||A.call(X,null)),(te=R.current)==null||te.call(R,[])},[]),!e)return null;const H=(ee=m.current)==null?void 0:ee.getBoundingClientRect(),W=y&&H?{left:y.left-H.left,top:y.top-H.top,width:y.right-y.left,height:y.bottom-y.top}:void 0;return U.createElement("div",{ref:m,className:`mv-marquee-overlay${L?" mv-marquee-overlay--panning":""}`,tabIndex:0,"aria-label":"Metadata selection canvas",onKeyDown:N,onKeyUp:M,onBlur:()=>E(!1),onPointerDown:G,onPointerMove:Z,onPointerUp:Y,onPointerCancel:z,onLostPointerCapture:z,onPointerLeave:Q,onDoubleClick:F},W&&U.createElement("div",{className:"mv-marquee-box",style:W}),U.createElement("span",{hidden:!0},t.size))},Kd=4500,qd=1400,Jd=1950;function e4(e,t){const n=new Set(e),r=[];for(const o of e){let i=o.parentElement,l=!1;for(;i;){if(n.has(i)){l=!0;break}i=i.parentElement}if(l)continue;const s=o.getBoundingClientRect();s.width<=0||s.height<=0||s.left+s.width<0||s.top+s.height<0||s.left>t.width||s.top>t.height||r.push({left:s.left,top:s.top,width:s.width,height:s.height})}return r}const t4=U.createElement("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",focusable:"false"},U.createElement("path",{d:"M11.5 2H10.5C10.3674 2 10.2402 2.05268 10.1464 2.14645C10.0527 2.24021 10 2.36739 10 2.5C10 2.63261 10.0527 2.75979 10.1464 2.85355C10.2402 2.94732 10.3674 3 10.5 3H11V3.5C11 3.63261 11.0527 3.75979 11.1464 3.85355C11.2402 3.94732 11.3674 4 11.5 4C11.6326 4 11.7598 3.94732 11.8536 3.85355C11.9473 3.75979 12 3.63261 12 3.5V2.5C12 2.36739 11.9473 2.24021 11.8536 2.14645C11.7598 2.05268 11.6326 2 11.5 2V2Z",fill:"currentColor"}),U.createElement("path",{d:"M2.5 8C2.63261 8 2.75979 7.94732 2.85355 7.85355C2.94732 7.75979 3 7.63261 3 7.5V6.5C3 6.36739 2.94732 6.24021 2.85355 6.14645C2.75979 6.05268 2.63261 6 2.5 6C2.36739 6 2.24021 6.05268 2.14645 6.14645C2.05268 6.24021 2 6.36739 2 6.5V7.5C2 7.63261 2.05268 7.75979 2.14645 7.85355C2.24021 7.94732 2.36739 8 2.5 8Z",fill:"currentColor"}),U.createElement("path",{d:"M11.5 6C11.3674 6 11.2402 6.05268 11.1464 6.14645C11.0527 6.24021 11 6.36739 11 6.5V7.5C11 7.63261 11.0527 7.75979 11.1464 7.85355C11.2402 7.94732 11.3674 8 11.5 8C11.6326 8 11.7598 7.94732 11.8536 7.85355C11.9473 7.75979 12 7.63261 12 7.5V6.5C12 6.36739 11.9473 6.24021 11.8536 6.14645C11.7598 6.05268 11.6326 6 11.5 6Z",fill:"currentColor"}),U.createElement("path",{d:"M3.5 2H2.5C2.36739 2 2.24021 2.05268 2.14645 2.14645C2.05268 2.24021 2 2.36739 2 2.5V3.5C2 3.63261 2.05268 3.75979 2.14645 3.85355C2.24021 3.94732 2.36739 4 2.5 4C2.63261 4 2.75979 3.94732 2.85355 3.85355C2.94732 3.75979 3 3.63261 3 3.5V3H3.5C3.63261 3 3.75979 2.94732 3.85355 2.85355C3.94732 2.75979 4 2.63261 4 2.5C4 2.36739 3.94732 2.24021 3.85355 2.14645C3.75979 2.05268 3.63261 2 3.5 2V2Z",fill:"currentColor"}),U.createElement("path",{d:"M6.5 3H7.5C7.63261 3 7.75979 2.94732 7.85355 2.85355C7.94732 2.75979 8 2.63261 8 2.5C8 2.36739 7.94732 2.24021 7.85355 2.14645C7.75979 2.05268 7.63261 2 7.5 2H6.5C6.36739 2 6.24021 2.05268 6.14645 2.14645C6.05268 2.24021 6 2.36739 6 2.5C6 2.63261 6.05268 2.75979 6.14645 2.85355C6.24021 2.94732 6.36739 3 6.5 3V3Z",fill:"currentColor"}),U.createElement("path",{d:"M3.5 11H3V10.5C3 10.3674 2.94732 10.2402 2.85355 10.1464C2.75979 10.0527 2.63261 10 2.5 10C2.36739 10 2.24021 10.0527 2.14645 10.1464C2.05268 10.2402 2 10.3674 2 10.5V11.5C2 11.6326 2.05268 11.7598 2.14645 11.8536C2.24021 11.9473 2.36739 12 2.5 12H3.5C3.63261 12 3.75979 11.9473 3.85355 11.8536C3.94732 11.7598 4 11.6326 4 11.5C4 11.3674 3.94732 11.2402 3.85355 11.1464C3.75979 11.0527 3.63261 11 3.5 11Z",fill:"currentColor"}),U.createElement("path",{d:"M6.85002 5.18144C6.78805 5.10177 6.70208 5.04416 6.60483 5.01715C6.50757 4.99013 6.40421 4.99514 6.31002 5.03144C6.21214 5.07132 6.1294 5.14119 6.07371 5.23102C6.01801 5.32086 5.99221 5.42603 6.00002 5.53144V12.5314C6.00052 12.6302 6.03022 12.7265 6.08539 12.8084C6.14055 12.8902 6.21872 12.9539 6.31002 12.9914C6.37257 13.0056 6.43748 13.0056 6.50002 12.9914C6.5656 12.9922 6.63062 12.9793 6.6909 12.9535C6.75117 12.9276 6.80538 12.8895 6.85002 12.8414L8.71002 11.0314H11.5C11.5987 11.0309 11.6951 11.0012 11.777 10.9461C11.8588 10.8909 11.9225 10.8127 11.96 10.7214C12.0009 10.6313 12.0122 10.5306 11.9925 10.4336C11.9727 10.3367 11.9229 10.2484 11.85 10.1814L6.85002 5.18144Z",fill:"currentColor"})),n4=({active:e,getElements:t})=>{const[n,r]=_.useState(!1),[o,i]=_.useState([]),[l,s]=_.useState(!1),a=_.useRef(t);return a.current=t,_.useEffect(()=>{if(!e||typeof window>"u"){r(!1),s(!1),i([]);return}r(!0);const c=[];let d=0;return d=requestAnimationFrame(()=>{d=requestAnimationFrame(()=>{i(e4(a.current(),{width:window.innerWidth,height:window.innerHeight})),s(!0)})}),c.push(window.setTimeout(()=>r(!1),Kd)),c.push(window.setTimeout(()=>s(!1),qd)),c.push(window.setTimeout(()=>i([]),Jd)),()=>{cancelAnimationFrame(d),c.forEach(m=>window.clearTimeout(m))}},[e]),typeof document>"u"?null:vu.createPortal(U.createElement(U.Fragment,null,o.length>0&&U.createElement("div",{className:"mv-select-glow-layer","aria-hidden":"true"},o.map((c,d)=>U.createElement("div",{key:d,className:`mv-select-glow${l?" mv-select-glow--on":""}`,style:{left:c.left,top:c.top,width:c.width,height:c.height}}))),U.createElement("div",{role:"status",className:`mv-select-hint${n?" mv-select-hint--visible":""}`,"aria-hidden":!n},U.createElement("span",{className:"mv-select-hint__icon"},t4),U.createElement("span",null,"Select any element on screen"),U.createElement("button",{type:"button",className:"mv-select-hint__dismiss","aria-label":"Dismiss",tabIndex:n?0:-1,onClick:()=>r(!1)},U.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true"},U.createElement("path",{d:"M2 2l8 8M10 2l-8 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}))))),document.body)};function r4(){const[e,t]=_.useState(new Map),n=_.useCallback(a=>{const c=new Map;for(const d of a)c.set(Dr(d),d);t(c)},[]),r=_.useCallback(a=>{t(c=>{const d=new Map(c);for(const m of a)d.set(Dr(m),m);return d})},[]),o=_.useCallback(a=>{t(c=>{const d=new Map(c),m=Dr(a);return d.has(m)?d.delete(m):d.set(m,a),d})},[]),i=_.useCallback(()=>t(new Map),[]),l=_.useCallback((a,c)=>e.has(`${a}::${c}`),[e]),s=_.useMemo(()=>Array.from(e.values()),[e]);return{selected:e,items:s,replace:n,add:r,toggle:o,clear:i,isSelected:l}}function Ui(e){const t=new Map;for(const n of e)n.id&&!t.has(n.id)&&t.set(n.id,n);return t}function o4(e,t){if(typeof document>"u")return;const n=new Map,r=document.querySelectorAll(`[${ws}]`);for(let o=0;o<r.length;o++){const i=r.item(o),l=i.getAttribute(ws)??"",s=e.get(l);s&&(i.setAttribute(lr,""),i.setAttribute(sr,s.type),n.set(l,i))}for(const[o,i]of t)n.get(o)!==i&&(i.removeAttribute(lr),i.removeAttribute(sr));t.clear(),n.forEach((o,i)=>t.set(i,o))}function Za(e){for(const t of e.values())t.removeAttribute(lr),t.removeAttribute(sr);e.clear()}function i4(e,t){const n=Ui(e),r=()=>o4(n,t);if(typeof document>"u"||typeof MutationObserver>"u")return r(),()=>Za(t);r();const o=new MutationObserver(()=>r());return o.observe(document.documentElement,{childList:!0,subtree:!0}),()=>{o.disconnect(),Za(t)}}function l4(e,t,n){var s;const r=e.parentId?(s=t.get(e.parentId))==null?void 0:s.apiName:void 0,o={elementType:e.type,apiName:e.apiName};r&&(o.parent=r),e.attributes&&Object.keys(e.attributes).length>0&&(o.attributes=e.attributes),e.filePath&&(o.filePath=e.filePath);const l=(e.filePath?e.filePath.split("/").pop():void 0)||n;return l&&(o.fileName=l),o}function Jo(e,t,n){const r=Ui(t),o=[];for(const i of e){const l=r.get(i.id);l&&o.push(l4(l,r,n))}return o}function s4(){return U.createElement("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},U.createElement("path",{d:"M14.5 1.5L7 9M14.5 1.5L10 14.5l-3-5.5-5.5-3L14.5 1.5z",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}))}const u4=({chips:e,onSubmit:t,onClear:n,onRemove:r,placeholder:o,onDraftChange:i})=>{const[l,s]=_.useState(""),[a,c]=_.useState(!1),d=_.useRef(null),m=e.length,g=m===0;_.useEffect(()=>{var f;g||(f=d.current)==null||f.focus()},[g]);const y=!g&&l.trim().length>0;_.useEffect(()=>{i==null||i(y)},[y,i]);const S=e.map(f=>f.title??f.label).join("|");if(_.useEffect(()=>{c(!1)},[S]),g)return null;const L=l.trim().length>0,w=()=>{if(!L)return;t(l)&&(c(!0),s(""))},p=f=>{(f.metaKey||f.ctrlKey)&&f.key==="Enter"&&(f.preventDefault(),w())};return U.createElement("div",{className:"vibe-edit-panel",role:"dialog","aria-label":"Edit selected metadata with AI"},U.createElement("div",{className:"vibe-edit-panel__header"},U.createElement("span",{className:"vibe-edit-panel__title"},"Edit Element (",m," Selected)"),U.createElement("button",{className:"vibe-edit-panel__close",onClick:n,"aria-label":"Clear selection",type:"button"},"✕")),U.createElement("div",{className:"vibe-edit-panel__chips"},e.map((f,h)=>U.createElement("span",{className:`vibe-edit-panel__chip ${f.variant==="primary"?"vibe-edit-panel__chip--field":""}`,key:`${f.title??f.label}:${h}`,title:f.title??f.label},U.createElement("span",{className:"vibe-edit-panel__chip-label"},f.label),r&&U.createElement("button",{type:"button",className:"vibe-edit-panel__chip-remove","aria-label":`Remove ${f.label} from selection`,onClick:()=>r(h)},"✕")))),U.createElement("div",{className:"vibe-edit-panel__input-wrap"},U.createElement("textarea",{ref:d,className:"vibe-edit-panel__input",value:l,onChange:f=>s(f.target.value),onKeyDown:p,placeholder:o??"Describe the change you want…",rows:3}),U.createElement("button",{className:"vibe-edit-panel__submit",onClick:w,disabled:!L,type:"button"},U.createElement(s4,null),U.createElement("span",null,"Send to Agent"))),U.createElement("div",{className:"vibe-edit-panel__footer"},U.createElement("span",{className:"vibe-edit-panel__hint",role:"status","aria-live":"polite"},a?"✓ Sent to agent":"⌘/Ctrl + Enter to send")))};function a4(e,t){const n=Object.keys(t).sort().map(r=>`${r}=${t[r]}`);return`${e}|${n.join("&")}`}const c4=2e4;class f4{constructor(t,n=0){this.send=t,this.flushDelayMs=n,this.buckets=new Map,this.lifecycleAttached=!1}add(t,n,r=1){const o=Math.floor(r);if(!Number.isFinite(o)||o<=0)return;this.scheduleFlush();const i=a4(t,n),l=this.buckets.get(i);l?l.count=Math.min(xs,l.count+o):this.buckets.set(i,{name:t,properties:{...n},count:Math.min(xs,o)})}flush(t){t===void 0&&this.cancelScheduledFlush();const n=[];for(const[r,o]of this.buckets)(t===void 0||o.name===t)&&(n.push(o),this.buckets.delete(r));for(const r of n)this.dispatch({schemaVersion:Da,name:r.name,properties:r.properties,measurements:{count:r.count}})}emitNow(t,n,r={}){this.dispatch({schemaVersion:Da,name:t,properties:{...n},measurements:{...r}})}attachPageLifecycle(t,n){if(!this.lifecycleAttached){this.lifecycleAttached=!0;try{t==null||t.addEventListener("pagehide",()=>this.flush()),n==null||n.addEventListener("visibilitychange",()=>{n.visibilityState==="hidden"&&this.flush()})}catch{}}}scheduleFlush(){var t;if(!(this.flushDelayMs<=0||this.flushTimer!==void 0))try{const n=setTimeout(()=>{this.flushTimer=void 0,this.flush()},this.flushDelayMs);(t=n.unref)==null||t.call(n),this.flushTimer=n}catch{}}cancelScheduledFlush(){this.flushTimer!==void 0&&(clearTimeout(this.flushTimer),this.flushTimer=void 0)}dispatch(t){try{this.send(t)}catch{}}}let Ho;function $o(){return Ho||(Ho=new f4(Cd,c4),Ho.attachPageLifecycle(typeof window>"u"?void 0:window,typeof document>"u"?void 0:document)),Ho}function Rc(e){const t=new Map;for(const n of e)t.set(Dr(n),n.type);return t}function d4(e,t){const n=Rc(t),r=[],o=[];for(const[i,l]of n)e.has(i)||r.push(l);for(const[i,l]of e)n.has(i)||o.push(l);return{added:r,removed:o}}function p4(e){return e.attachmentCount>0||e.hadText}function h4(e,t){for(const n of t.added)e.add("vibeEdit.selection",{action:"add",elementType:Va(n)});for(const n of t.removed)e.add("vibeEdit.selection",{action:"remove",elementType:Va(n)})}const m4=["M11.5 2H10.5C10.3674 2 10.2402 2.05268 10.1464 2.14645C10.0527 2.24021 10 2.36739 10 2.5C10 2.63261 10.0527 2.75979 10.1464 2.85355C10.2402 2.94732 10.3674 3 10.5 3H11V3.5C11 3.63261 11.0527 3.75979 11.1464 3.85355C11.2402 3.94732 11.3674 4 11.5 4C11.6326 4 11.7598 3.94732 11.8536 3.85355C11.9473 3.75979 12 3.63261 12 3.5V2.5C12 2.36739 11.9473 2.24021 11.8536 2.14645C11.7598 2.05268 11.6326 2 11.5 2V2Z","M2.5 8C2.63261 8 2.75979 7.94732 2.85355 7.85355C2.94732 7.75979 3 7.63261 3 7.5V6.5C3 6.36739 2.94732 6.24021 2.85355 6.14645C2.75979 6.05268 2.63261 6 2.5 6C2.36739 6 2.24021 6.05268 2.14645 6.14645C2.05268 6.24021 2 6.36739 2 6.5V7.5C2 7.63261 2.05268 7.75979 2.14645 7.85355C2.24021 7.94732 2.36739 8 2.5 8Z","M11.5 6C11.3674 6 11.2402 6.05268 11.1464 6.14645C11.0527 6.24021 11 6.36739 11 6.5V7.5C11 7.63261 11.0527 7.75979 11.1464 7.85355C11.2402 7.94732 11.3674 8 11.5 8C11.6326 8 11.7598 7.94732 11.8536 7.85355C11.9473 7.75979 12 7.63261 12 7.5V6.5C12 6.36739 11.9473 6.24021 11.8536 6.14645C11.7598 6.05268 11.6326 6 11.5 6Z","M3.5 2H2.5C2.36739 2 2.24021 2.05268 2.14645 2.14645C2.05268 2.24021 2 2.36739 2 2.5V3.5C2 3.63261 2.05268 3.75979 2.14645 3.85355C2.24021 3.94732 2.36739 4 2.5 4C2.63261 4 2.75979 3.94732 2.85355 3.85355C2.94732 3.75979 3 3.63261 3 3.5V3H3.5C3.63261 3 3.75979 2.94732 3.85355 2.85355C3.94732 2.75979 4 2.63261 4 2.5C4 2.36739 3.94732 2.24021 3.85355 2.14645C3.75979 2.05268 3.63261 2 3.5 2V2Z","M6.5 3H7.5C7.63261 3 7.75979 2.94732 7.85355 2.85355C7.94732 2.75979 8 2.63261 8 2.5C8 2.36739 7.94732 2.24021 7.85355 2.14645C7.75979 2.05268 7.63261 2 7.5 2H6.5C6.36739 2 6.24021 2.05268 6.14645 2.14645C6.05268 2.24021 6 2.36739 6 2.5C6 2.63261 6.05268 2.75979 6.14645 2.85355C6.24021 2.94732 6.36739 3 6.5 3V3Z","M3.5 11H3V10.5C3 10.3674 2.94732 10.2402 2.85355 10.1464C2.75979 10.0527 2.63261 10 2.5 10C2.36739 10 2.24021 10.0527 2.14645 10.1464C2.05268 10.2402 2 10.3674 2 10.5V11.5C2 11.6326 2.05268 11.7598 2.14645 11.8536C2.24021 11.9473 2.36739 12 2.5 12H3.5C3.63261 12 3.75979 11.9473 3.85355 11.8536C3.94732 11.7598 4 11.6326 4 11.5C4 11.3674 3.94732 11.2402 3.85355 11.1464C3.75979 11.0527 3.63261 11 3.5 11Z","M6.85002 5.18144C6.78805 5.10177 6.70208 5.04416 6.60483 5.01715C6.50757 4.99013 6.40421 4.99514 6.31002 5.03144C6.21214 5.07132 6.1294 5.14119 6.07371 5.23102C6.01801 5.32086 5.99221 5.42603 6.00002 5.53144V12.5314C6.00052 12.6302 6.03022 12.7265 6.08539 12.8084C6.14055 12.8902 6.21872 12.9539 6.31002 12.9914C6.37257 13.0056 6.43748 13.0056 6.50002 12.9914C6.5656 12.9922 6.63062 12.9793 6.6909 12.9535C6.75117 12.9276 6.80538 12.8895 6.85002 12.8414L8.71002 11.0314H11.5C11.5987 11.0309 11.6951 11.0012 11.777 10.9461C11.8588 10.8909 11.9225 10.8127 11.96 10.7214C12.0009 10.6313 12.0122 10.5306 11.9925 10.4336C11.9727 10.3367 11.9229 10.2484 11.85 10.1814L6.85002 5.18144ZM8.50002 10.0314C8.43445 10.0306 8.36943 10.0436 8.30915 10.0694C8.24888 10.0952 8.19467 10.1334 8.15002 10.1814L7.00002 11.3214V6.74144L10.29 10.0314H8.50002Z"],W6=["M9.00527 7.75427C11.1465 7.75427 12.8824 6.01842 12.8824 3.87714C12.8824 1.73585 11.1465 0 9.00527 0C6.86401 0 5.12817 1.73585 5.12817 3.87714C5.12817 6.01842 6.86401 7.75427 9.00527 7.75427Z","M30.9978 7.75427C33.139 7.75427 34.8749 6.01842 34.8749 3.87714C34.8749 1.73585 33.139 0 30.9978 0C28.8565 0 27.1207 1.73585 27.1207 3.87714C27.1207 6.01842 28.8565 7.75427 30.9978 7.75427Z","M20.0013 48.3291C11.2613 48.3291 1.47456 43.1867 0.331247 41.5454C-0.00920626 41.0575 -0.0905088 40.4732 0.102584 39.9396C0.813978 37.9934 2.15038 34.157 3.07011 30.3154C3.54268 28.3387 3.85265 26.5805 3.98985 25.0815L4.00509 24.9392C4.04066 24.5226 4.07623 24.05 4.1118 23.5164C4.37603 19.8222 4.81811 13.6381 6.38318 10.264C7.69418 7.44893 10.4229 4.21205 19.9962 4.21205C29.4933 4.21205 32.1509 7.11864 33.6093 10.264C35.1743 13.6381 35.6164 19.8222 35.8806 23.5164C35.9213 24.05 35.9518 24.5226 35.9873 24.9087L36.0077 25.0713C36.1449 26.5856 36.4548 28.3489 36.9274 30.3154C37.8471 34.1519 39.1835 37.9934 39.8949 39.9396C40.0931 40.4732 40.0067 41.0575 39.6714 41.5454C38.528 43.1867 28.7413 48.3291 20.0013 48.3291ZM3.5935 39.9955C5.86488 41.4183 13.1211 45.0261 20.0013 45.0261C26.8612 45.0261 34.1276 41.4183 36.4091 39.9955C35.6367 37.8156 34.529 34.4618 33.7211 31.0878C33.2129 28.9637 32.8775 27.0429 32.7251 25.3813C32.7149 25.2949 32.7048 25.234 32.7048 25.1781C32.6743 24.7817 32.6387 24.299 32.5981 23.7502C32.3694 20.5082 31.9375 14.4766 30.6265 11.6564C29.9049 10.1065 28.7057 7.51499 20.0064 7.51499C11.307 7.51499 10.0113 10.3098 9.38628 11.6564C8.07528 14.4816 7.64336 20.5133 7.4147 23.7553C7.37405 24.3041 7.33848 24.7919 7.30799 25.1882C7.30291 25.2441 7.29783 25.2949 7.29275 25.3457C7.13523 27.0429 6.79985 28.9637 6.29171 31.0929C5.47361 34.4618 4.36587 37.8207 3.5935 39.9955Z","M19.8686 39.8437C18.9133 39.8437 14.0606 39.5998 12.0483 34.8487C11.1947 32.8415 11.1032 31.373 11.1032 28.7103C11.1032 26.9877 11.2963 25.4531 11.6774 24.1573C11.967 23.1715 12.3736 22.2924 12.8868 21.5455C13.7252 20.3158 14.8533 19.6044 15.7374 19.1165C18.0444 17.8513 22.1298 17.8614 24.3047 19.1419C25.2904 19.7212 26.3169 20.3818 27.1096 21.5455C27.6228 22.2924 28.0293 23.1715 28.319 24.1573C28.7001 25.4531 28.8932 26.9826 28.8932 28.7103C28.8932 31.2815 28.8931 32.8364 27.9226 34.9046C26.4287 38.0855 23.6644 39.8386 20.1328 39.8437H19.8686ZM19.8737 36.5408H20.1328C22.3788 36.5408 23.9947 35.5194 24.9398 33.5021C25.5648 32.1707 25.5953 31.2307 25.5953 28.7154C25.5953 27.3078 25.448 26.0883 25.1532 25.0974C24.9602 24.447 24.7061 23.8778 24.386 23.4205C23.9744 22.8158 23.3443 22.4195 22.6278 21.9977C21.4642 21.3168 18.5881 21.327 17.3177 22.0231C16.6877 22.3687 16.0474 22.7752 15.6053 23.4205C15.2903 23.8829 15.0311 24.447 14.838 25.0974C14.5484 26.0883 14.3959 27.3078 14.3959 28.7154C14.3959 31.2256 14.4874 32.1657 15.0769 33.558C16.2913 36.3934 19.2842 36.5408 19.8737 36.5408Z","M31.2512 12.8562C30.9869 12.6936 30.7125 12.5259 30.4331 12.409C28.116 11.4588 25.7379 11.4893 23.3699 12.1244C22.2419 12.4243 21.1189 12.6529 19.9857 12.6631C18.8577 12.6631 17.7347 12.4243 16.6015 12.1244C14.2336 11.4842 11.8504 11.4588 9.5384 12.409C9.24877 12.5259 8.97437 12.6834 8.7203 12.8562C8.21724 13.1763 7.98858 13.593 8.11053 14.2332C8.32903 15.4172 8.46623 16.6317 8.68473 17.8157C8.90323 18.9895 9.68577 19.7923 10.8748 19.9041C12.4958 20.0566 14.1218 20.143 15.7529 20.1684C17.0589 20.1938 17.9888 19.6043 18.3597 18.273C18.7052 17.0534 19.0609 15.8288 19.4624 14.6194C19.5437 14.3654 19.8181 14.1723 20.0111 13.9538C20.1941 14.1723 20.4736 14.3654 20.5599 14.6194C20.9614 15.8339 21.3171 17.0534 21.6626 18.273C22.0386 19.6043 22.9685 20.1988 24.2694 20.1684C25.8903 20.143 27.5214 20.0566 29.1475 19.9041C30.3314 19.7923 31.1241 18.9844 31.3376 17.8157C31.5561 16.6215 31.6933 15.4172 31.9118 14.2332C32.0286 13.6031 31.7949 13.1763 31.302 12.8562H31.2512Z","M21.3181 34.1013C21.3689 34.0861 21.4197 34.0708 21.4655 34.0505L21.4604 34.0454C21.4147 34.0657 21.3638 34.081 21.3181 34.1013Z","M18.6603 34.0869C18.6603 34.0869 18.6756 34.092 18.6959 34.1022C18.6807 34.0971 18.6705 34.092 18.6603 34.0869Z","M22.6086 30.7222C22.136 30.5291 21.6177 30.6409 21.2722 30.9661V30.8695V30.0108V27.4345C21.7498 27.2262 22.2021 26.9009 22.5832 26.4589C22.7915 26.22 22.9491 25.9761 23.0558 25.7373C23.1625 25.4985 23.2184 25.2596 23.2184 25.0259C23.2184 24.7464 23.132 24.472 22.9745 24.2434C22.8576 24.0706 22.695 23.9181 22.507 23.7911C22.2224 23.598 21.8667 23.4557 21.45 23.3541C21.0334 23.2576 20.5506 23.2067 20.0069 23.2067C19.5242 23.2067 19.0872 23.2474 18.6959 23.3287C18.1167 23.4456 17.6441 23.6488 17.3087 23.9385C17.141 24.0807 17.0038 24.2484 16.9124 24.4364C16.8209 24.6245 16.7701 24.8328 16.7701 25.0462C16.7701 25.2749 16.826 25.5086 16.9276 25.7475C17.0292 25.9812 17.1817 26.22 17.3849 26.4589C17.7356 26.8705 18.1421 27.1855 18.5841 27.3938C18.6299 27.4142 18.6807 27.4345 18.7264 27.4548V30.0108V30.8695V30.9661C18.3606 30.6256 17.8067 30.524 17.329 30.7476C16.6939 31.0423 16.4195 31.7995 16.7142 32.4346C17.141 33.3493 17.9236 33.8371 18.6553 34.0861C18.6654 34.0912 18.6807 34.0963 18.6909 34.1013C18.8941 34.1776 19.9968 34.5333 21.3129 34.1013C21.3586 34.0861 21.4094 34.0658 21.4551 34.0505C22.1818 33.7863 22.9389 33.2832 23.3048 32.3787C23.5741 31.7232 23.259 30.9813 22.6086 30.7222Z"];function Oc(e){return e.length>0}function g4(e,t){const n=JSON.stringify({ids:e,contexts:t.map(r=>({elementType:r.elementType,apiName:r.apiName,parent:r.parent??"",fileName:r.fileName??"",filePath:r.filePath??""}))});return Pc(n)}function y4(e,t){const n=Ui(t);return e.filter(r=>n.has(r.id)).slice(0,bi)}function v4(e){const t=y4(e.items,e.nodes),n=Jo(t,e.nodes,e.fileName),r=t.map(o=>o.id);return{sessionId:e.sessionId,selectionHash:g4(r,n),contexts:n,stableNodeIds:r,...e.anchor?{anchor:e.anchor}:{}}}function C4(e){const{anchor:t}=e;return[e.sessionId,e.selectionHash,t?`${t.x},${t.y},${t.width},${t.height}`:""].join("|")}function x4(e){return e.hostControlled&&e.inIframe}function w4(e,t){const n=Ui(t),r=[];for(const o of e){const i=n.get(o);i&&r.push({type:i.type,id:i.id})}return r.slice(0,bi)}function Ya(e){return typeof e=="string"&&e.length>0&&e.length<=Ld?e:null}function S4(e){return Td.find(t=>t===e)??null}function E4(e){if(!Array.isArray(e)||e.length>bi)return null;for(const t of e)if(typeof t!="string"||t.length===0||t.length>Md)return null;return e}const k4={sessionId:"",key:"",revision:0};function _4(e,t,n){return t!==e.sessionId?{sessionId:t,key:n,revision:1}:n===e.key?e:{sessionId:t,key:n,revision:e.revision+1}}function Xa(e){return typeof e=="object"&&e!==null}function L4(e,t){if(!Xa(e))return!1;const n=e,r=typeof n.requestId=="string"?n.requestId:void 0,o=a=>t.post(gn.MV_COMMAND_RESULT,a,r),i=a=>(o({ok:!1,error:a}),!0),l=Xa(n.payload)?n.payload:null,s=l!==null&&l.instanceId!==void 0&&l.instanceId!==t.instanceId;switch(n.type){case gn.MV_SET_EDIT_STATE:{const a=Ya(l==null?void 0:l.sessionId),c=S4(l==null?void 0:l.state);return!l||!a||!c?i("Malformed set-edit-state"):s?i("Unknown instance"):(t.applyHostState(a,c),o({ok:!0}),!0)}case gn.MV_GET_SELECTION_SNAPSHOT:{if(s)return i("Unknown instance");const a=t.getSnapshot();return a?(l==null?void 0:l.sessionId)!==void 0&&l.sessionId!==a.sessionId?i("Unknown session"):(t.post(gn.MV_SELECTION_SNAPSHOT,a,r),o({ok:!0}),!0):i("No selection snapshot")}case gn.MV_RESTORE_SELECTION:{const a=Ya(l==null?void 0:l.sessionId),c=E4(l==null?void 0:l.nodeIds);if(!l||!a||!c)return i("Malformed restore");if(s)return i("Unknown instance");const d=t.restoreSelection(a,c);return c.length>0&&d===0?i("None of the requested nodes exist"):(o({ok:!0,restored:d}),!0)}default:return!1}}function M4(){var e,t;return((t=(e=globalThis.crypto)==null?void 0:e.randomUUID)==null?void 0:t.call(e))??`mv-${Date.now()}-${Math.random()}`}function T4(e){const{nodes:t,sessionState:n,snapshot:r,applyHostState:o,restoreSelection:i}=e,l=_.useRef(M4()),s=_.useRef(o),a=_.useRef(i),c=_.useRef(r);s.current=o,a.current=i,c.current=r;const d=!zr(),m=_.useCallback((S,L,w)=>{xu({type:S,payload:L,requestId:w})},[]);_.useEffect(()=>{if(!d)return;const S=L=>{Bi(L)&&L4(L.data,{instanceId:l.current,getSnapshot:()=>c.current,applyHostState:(w,p)=>s.current(w,p),restoreSelection:(w,p)=>a.current(w,p),post:m})};return window.addEventListener("message",S),()=>window.removeEventListener("message",S)},[d,m]);const g=Oc(t);_.useEffect(()=>{d&&m(gn.MV_READY,{instanceId:l.current,protocolVersions:za.protocolVersions,capability:za,available:g})},[d,g,m]);const y=_.useRef(null);_.useEffect(()=>{if(!d||!r||n==="inactive")return;const S=y.current;S&&S.sessionId===r.sessionId&&S.revision===r.revision||(y.current={sessionId:r.sessionId,revision:r.revision},m(gn.MV_SELECTION_CHANGED,r))},[d,r,n,m])}const j4=U.lazy(()=>Zd(()=>import("./VibeEditComposer-6VCphcxQ.js"),__vite__mapDeps([0,1]),import.meta.url)),Qa="viz-header-actions";function I4(e){return Oc(e)}function P4(e){return{label:e.apiName,title:`${e.elementType}: ${e.apiName}`,variant:e.elementType==="field"?"primary":"default"}}function N4(){return U.createElement("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true"},m4.map(e=>U.createElement("path",{key:e,d:e,fill:"currentColor"})))}const R4=20,O4=2e3;function A4(e){const{nodes:t,fileName:n,options:r}=e,o=r==null?void 0:r.placeholder,i=(r==null?void 0:r.selectLabel)??"Select",l=(r==null?void 0:r.selectingLabel)??"Selecting",s=(r==null?void 0:r.chipFor)??P4,a=r==null?void 0:r.onActivate,c=(r==null?void 0:r.toggleInline)??!1,[d,m]=_.useState(()=>!c&&zr()&&typeof document<"u"?document.getElementById(Qa):null);_.useEffect(()=>{c||d||!zr()||typeof document>"u"||m(document.getElementById(Qa))},[c,d]);const[g,y]=_.useState(!1),[S,L]=_.useState(!1),[w,p]=_.useState("inactive"),[f,h]=_.useState(""),[x,k]=_.useState(null),[j,P]=_.useState([]),E=r4(),N=I4(t),M=_.useRef(!1),G=_.useRef(0),Z=_.useRef(!1),Y=_.useRef(new Map),F=_.useRef(!1),Q=_.useRef(!1),z=_.useRef(!1);_.useEffect(()=>{M.current=g},[g]);const X=_.useCallback(b=>{Z.current=b},[]),R=_.useCallback(()=>{if(Q.current||z.current)return;const b=Math.min(G.current,xs),J=Z.current;p4({attachmentCount:b,hadText:J})&&(Q.current=!0,$o().emitNow("vibeEdit.promptAbandoned",{hadText:String(J)},{attachmentCount:b}))},[]),H=_.useCallback(()=>{G.current>0&&(F.current=!0)},[]),W=_.useCallback(()=>{const b=$o();H(),b.flush("vibeEdit.selection"),M.current&&(M.current=!1,b.emitNow("vibeEdit.selectMode",{action:"exit"}))},[H]);_.useEffect(()=>{const b=d4(Y.current,E.items);if(Y.current=Rc(E.items),G.current=E.items.length,!(b.added.length===0&&b.removed.length===0)){if(F.current){F.current=!1;return}N&&h4($o(),b)}},[E.items,N]),_.useEffect(()=>{if(!N||typeof window>"u")return;const b=()=>{M.current&&R()};return window.addEventListener("pagehide",b),()=>{window.removeEventListener("pagehide",b)}},[N,R]);const ee=_.useRef(new Map);_.useEffect(()=>{if(g)return i4(t,ee.current)},[g,t]),_.useEffect(()=>{if(typeof document>"u")return;const b=[];if(g)for(const[J,ue]of ee.current){const st=ue.getAttribute(sr)??"";J&&E.isSelected(st,J)&&(ue.setAttribute(Ba,""),b.push(ue))}return()=>{for(const J of b)J.removeAttribute(Ba)}},[g,E.selected,t]),_.useEffect(()=>{if(typeof document>"u"||!g)return;const b=new Set;x&&b.add(`${x.type}::${x.id}`);for(const ue of j)b.add(`${ue.type}::${ue.id}`);if(b.size===0)return;const J=[];for(const[ue,st]of ee.current){const vt=st.getAttribute(sr)??"";ue&&b.has(`${vt}::${ue}`)&&(st.setAttribute(ba,""),J.push(st))}return()=>{for(const ue of J)ue.removeAttribute(ba)}},[g,x,j,t]);const A=_.useMemo(()=>Jo(E.items,t,n),[t,E.items,n]),[te,ie]=_.useState(null);_.useEffect(()=>{if(typeof window>"u")return;const b=E.items[0];if(!S||!g||!b){ie(null);return}const J=()=>{const ue=ee.current.get(b.id);if(!ue||!ue.isConnected){ie(null);return}const st=ue.getBoundingClientRect(),vt={x:Math.round(st.left),y:Math.round(st.top),width:Math.round(st.width),height:Math.round(st.height)};ie(ut=>ut&&ut.x===vt.x&&ut.y===vt.y&&ut.width===vt.width&&ut.height===vt.height?ut:vt)};return J(),window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)},[S,g,E.items,t]);const[re,le]=_.useState(k4),pe=_.useMemo(()=>f?v4({sessionId:f,items:E.items,nodes:t,fileName:n,anchor:te}):null,[f,E.items,t,n,te]),se=pe?_4(re,pe.sessionId,C4(pe)):re;se!==re&&le(se);const _e=_.useMemo(()=>pe?{...pe,revision:se.revision}:null,[pe,se.revision]),Ee=typeof window<"u"&&window.parent!==window,$e=x4({hostControlled:S,inIframe:Ee});_.useEffect(()=>{if(!(!$e||typeof document>"u"))return document.documentElement.setAttribute("data-mv-host-chrome",""),()=>document.documentElement.removeAttribute("data-mv-host-chrome")},[$e]);const In=_.useRef("inactive"),pr=_.useCallback((b,J)=>{In.current=J,L(!0),h(b),p(J),y(J==="selecting"),J==="inactive"&&(E.clear(),k(null),P([]))},[E]),v=_.useCallback((b,J)=>{const ue=w4(J,t);return J.length>0&&ue.length===0?0:(L(!0),h(b),In.current!=="locked"&&(In.current="selecting",p("selecting"),y(!0)),E.replace(ue),ue.length)},[E,t]);T4({nodes:t,sessionState:w,snapshot:_e,applyHostState:pr,restoreSelection:v});const T=_.useMemo(()=>A.map(s),[A,s]),I=_.useCallback(b=>{const J={prompt:b.trim(),attachments:A},ue=xu({type:Be.SUBMIT_EDIT,payload:J});return ue&&(W(),E.clear(),y(!1)),ue},[A,E,W]),D=_.useMemo(()=>E.items.flatMap(b=>{const[J]=Jo([b],t,n);return J?[{id:b.id,elementType:J.elementType,label:s(J).label,data:J}]:[]}),[E.items,t,n,s]),$=_.useCallback(b=>{const J=ee.current.get(b);if(J)return J;if(typeof document>"u")return null;const ue=typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(b):b;return document.querySelector(`[data-mv-id="${ue}"]`)},[]),K=_.useRef(()=>Array.from(ee.current.values())),B=_.useRef(null),q=_.useCallback(()=>{var b;return(b=B.current)==null?void 0:b.focus()},[]),ye=_.useCallback(async(b,J,ue)=>{const st=b.map(hr=>({type:"",id:hr})),vt=Jo(st,t,n),ut=[];let _u=0;for(const hr of vt.slice(0,R4)){const Xi=`@${hr.apiName}`;if(ut.length>0&&_u+Xi.length+1>O4)break;ut.push(Xi),_u+=Xi.length+1}const Lu=vt.length-ut.length,Wc={prompt:[(Lu>0?[...ut,`and ${Lu} more`]:ut).join(" "),J.trim()].filter(hr=>hr.length>0).join(" "),attachments:vt,chatTarget:ue,selectionIds:b};let Mu;z.current=!0;try{Mu=await xd(Wc)}finally{z.current=!1}const{result:Tu}=Mu;return W(),E.clear(),y(!1),Tu.conversationId?{chatId:Tu.conversationId}:void 0},[t,n,E,W]),Le=_.useCallback(b=>{const J=E.items.find(ue=>ue.id===b);J&&E.toggle(J)},[E]),Re=_.useCallback(b=>{const J=E.items[b];J&&E.toggle(J)},[E]),we=_.useCallback((b,J)=>{g&&E.toggle({type:b,id:J})},[g,E]),ze=_.useCallback(()=>{const b=$o();if(!M.current){M.current=!0,Q.current=!1,b.emitNow("vibeEdit.selectMode",{action:"enter"}),y(!0);return}M.current=!1,R(),H(),E.clear(),k(null),P([]),y(!1),b.flush("vibeEdit.selection"),b.emitNow("vibeEdit.selectMode",{action:"exit"})},[E,R,H]);if(!N)return{toggleButton:null,overlay:null,panel:null,selectMode:!1,isSelected:()=>!1,toggle:()=>{}};const yt=$e,mo=U.createElement("button",{ref:B,className:`mv-vibe-edit-toggle ${g?"mv-vibe-edit-toggle--active":""}`,onClick:ze,"aria-label":"Select components to edit with AI",title:"Select components to edit with AI",type:"button"},U.createElement(N4,null),U.createElement("span",null,g?l:i)),Wi=d?vu.createPortal(mo,d):mo,Gi=yt?null:Wi,Zi=K.current,Yi=U.createElement(U.Fragment,null,yt?U.createElement(n4,{active:g,getElements:Zi}):null,U.createElement(Qd,{active:g,selected:E.selected,onReplace:E.replace,onAdd:E.add,onToggle:E.toggle,onClear:E.clear,clearOnEmptyClick:!yt,wholeContainerCoverage:yt?Nd:void 0,onActivate:a?b=>a(b.id):void 0,onHover:k,onMarqueePreview:P}));let fe;return zr()?fe=U.createElement(U.Suspense,{fallback:null},U.createElement(j4,{elements:D,active:g,nodeFor:$,onEdit:ye,onDeselect:Le,onSent:q,onClose:q,onDraftChange:X})):fe=U.createElement(u4,{chips:T,onSubmit:I,onClear:E.clear,onRemove:Re,placeholder:o,onDraftChange:X}),{toggleButton:Gi,overlay:Yi,panel:yt?null:fe,selectMode:g,isSelected:E.isSelected,toggle:we}}const Me={canvasBg:"var(--mv-canvas-bg, #1e1e1e)",bgSurface:"var(--mv-bg-surface, #1e1e1e)",bgSurfaceHover:"var(--mv-bg-surface-hover, #2a2d2e)",bgElevated:"var(--mv-bg-elevated, #252526)",panelBg:"var(--mv-panel-bg, #252526)",panelBorder:"var(--mv-panel-border, #454545)",panelShadow:"var(--mv-panel-shadow, 0 4px 16px rgba(0, 0, 0, 0.16))",borderDefault:"var(--mv-border-default, #454545)",borderStrong:"var(--mv-border-default, #5b5b5b)",separator:"var(--mv-border-default, rgba(229, 229, 238, 0.18))",textPrimary:"var(--mv-text-primary, #cccccc)",textSecondary:"var(--mv-text-secondary, #999999)",textMuted:"var(--mv-text-muted, #656565)",textInverse:"#ffffff",textBright:"var(--mv-text-primary, #f3f3f3)",interactivePrimary:"var(--mv-interactive-primary, #3794ff)",interactivePrimaryFg:"var(--mv-button-primary-fg, #ffffff)",focusBorder:"var(--mv-border-focus, #007fd4)",flowAction:"var(--mv-flow-action, #5867e8)",flowOrchestration:"var(--mv-flow-orchestration, #9050e9)",statusNegative:"var(--mv-status-negative, #f14c4c)",edgeNeutral:"var(--mv-edge-neutral, #9999a0)",dotsColor:"rgba(120, 120, 130, 0.4)",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',fontFamilyMono:'SF Mono, Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace',radiusSm:2,radiusMd:4,radiusLg:8,radiusFull:9999,shadowSm:"0 1px 2px 0 rgba(0, 0, 0, 0.12)",shadowMd:"0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1)",shadowXl:"0 20px 25px -5px rgba(0, 0, 0, 0.18), 0 10px 10px -5px rgba(0, 0, 0, 0.1)"},Ka=Me,C=Me;function qa(e){return Math.min(2.5,Math.max(.05,e))}const dr=e=>({width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0});function F4({size:e=17}){return u.jsxs("svg",{...dr(e),children:[u.jsx("line",{x1:"8",y1:"6",x2:"21",y2:"6"}),u.jsx("line",{x1:"8",y1:"12",x2:"21",y2:"12"}),u.jsx("line",{x1:"8",y1:"18",x2:"21",y2:"18"}),u.jsx("line",{x1:"3",y1:"6",x2:"3.01",y2:"6"}),u.jsx("line",{x1:"3",y1:"12",x2:"3.01",y2:"12"}),u.jsx("line",{x1:"3",y1:"18",x2:"3.01",y2:"18"})]})}function H4({size:e=17}){return u.jsxs("svg",{...dr(e),children:[u.jsx("circle",{cx:"11",cy:"11",r:"8"}),u.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),u.jsx("line",{x1:"8",y1:"11",x2:"14",y2:"11"})]})}function $4({size:e=17}){return u.jsxs("svg",{...dr(e),children:[u.jsx("circle",{cx:"11",cy:"11",r:"8"}),u.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),u.jsx("line",{x1:"11",y1:"8",x2:"11",y2:"14"}),u.jsx("line",{x1:"8",y1:"11",x2:"14",y2:"11"})]})}function z4({size:e=14}){return u.jsxs("svg",{...dr(e),children:[u.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),u.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}function D4({size:e=14}){return u.jsx("svg",{...dr(e),children:u.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})}function V4({size:e=14}){return u.jsxs("svg",{...dr(e),children:[u.jsx("path",{d:"M15 3h6v6"}),u.jsx("path",{d:"M9 21H3v-6"}),u.jsx("path",{d:"M21 3l-7 7"}),u.jsx("path",{d:"M3 21l7-7"})]})}function B4({contentWidth:e,contentHeight:t,contentCenterX:n,children:r,overlayTopRight:o,resetKey:i,zoomControlsVariant:l="default",legend:s,overlay:a,onBackgroundClick:c}){const[d,m]=_.useState(1),[g,y]=_.useState({x:0,y:0}),[S,L]=_.useState(!1),[w,p]=_.useState(!1),f=_.useRef(null),h=_.useRef(null),x=_.useCallback((F,Q)=>{m(z=>{const X=qa(z+F);if(Q&&X!==z){const R=X/z;y(H=>({x:Q.x-(Q.x-H.x)*R,y:Q.y-(Q.y-H.y)*R}))}return X})},[]),k=_.useRef(e);k.current=e;const j=_.useRef(t);j.current=t;const P=_.useRef(n);P.current=n;const E=_.useCallback((F=1)=>{const Q=f.current,z=k.current;if(!Q||!z){y({x:0,y:0});return}const X=Q.getBoundingClientRect(),R=P.current,H=R!==void 0?X.width/2-R*F:Math.max(0,(X.width-z*F)/2);y({x:H,y:24})},[]),N=_.useCallback(()=>{const F=f.current,Q=k.current,z=j.current;if(!F||!Q||!z)return 1;const X=F.getBoundingClientRect();if(X.width<=0||X.height<=0)return 1;const R=48,H=(X.width-R)/Q,W=(X.height-R)/z;return qa(Math.min(1,H,W))},[]),M=_.useCallback(()=>{const F=N();m(F),E(F)},[E,N]),G=_.useRef(d);G.current=d;const Z=_.useRef(!1);_.useEffect(()=>{Z.current=!1},[i]),_.useLayoutEffect(()=>{if(Z.current||!e)return;const F=N();m(F),E(F),Z.current=!0},[i,e]);const Y=_.useCallback(F=>{var z;if(F.button!==0)return;const Q=F.target;Q.closest("button, a, input, select")||Q.closest("[data-no-pan]")||((z=window.getSelection())==null||z.removeAllRanges(),c==null||c(),h.current={startX:F.clientX,startY:F.clientY,panX:g.x,panY:g.y},L(!0))},[g.x,g.y,c]);return _.useEffect(()=>{if(!S)return;const F=z=>{const X=h.current;X&&y({x:X.panX+(z.clientX-X.startX),y:X.panY+(z.clientY-X.startY)})},Q=()=>{h.current=null,L(!1)};return window.addEventListener("mousemove",F),window.addEventListener("mouseup",Q),window.addEventListener("mouseleave",Q),()=>{window.removeEventListener("mousemove",F),window.removeEventListener("mouseup",Q),window.removeEventListener("mouseleave",Q)}},[S]),_.useEffect(()=>{const F=f.current;if(!F)return;const Q=z=>{const X=z.ctrlKey,R=z.metaKey||z.altKey;if(X||R){z.preventDefault();const H=F.getBoundingClientRect(),W={x:z.clientX-H.left,y:z.clientY-H.top},ee=X?.01:.0025;x(-z.deltaY*ee,W);return}z.preventDefault(),y(H=>({x:H.x-z.deltaX,y:H.y-z.deltaY}))};return F.addEventListener("wheel",Q,{passive:!1}),()=>F.removeEventListener("wheel",Q)},[x]),u.jsxs("div",{style:{position:"relative",flex:1,overflow:"hidden"},children:[u.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:Ka.canvasBg,backgroundImage:`radial-gradient(circle, ${Ka.dotsColor} 1px, transparent 1.5px)`,backgroundSize:"22px 22px",pointerEvents:"none"}}),u.jsx("div",{ref:f,onMouseDown:Y,style:{position:"relative",height:"100%",width:"100%",overflow:"hidden",overscrollBehavior:"contain",cursor:S?"grabbing":"grab",userSelect:S?"none":"auto"},children:r({zoom:d,pan:g})}),o?u.jsx("div",{style:{position:"absolute",top:12,right:12,zIndex:25},children:o}):null,a,s&&w?s:null,l==="pill"?u.jsx(b4,{zoom:d,onZoomIn:()=>x(.1),onZoomOut:()=>x(-.1),onReset:M,onListClick:s?()=>p(F=>!F):void 0,listActive:w}):u.jsx(U4,{zoom:d,onZoomIn:()=>x(.1),onZoomOut:()=>x(-.1),onReset:M})]})}function b4({zoom:e,onZoomIn:t,onZoomOut:n,onReset:r,onListClick:o,listActive:i}){const l={display:"flex",alignItems:"center",justifyContent:"center",height:34,width:38,border:"none",backgroundColor:"transparent",color:Me.textSecondary,cursor:"pointer",fontFamily:Me.fontFamily};return u.jsxs("div",{className:"mv-zoom-bar",style:{position:"absolute",bottom:16,right:16,display:"flex",alignItems:"center",height:40,padding:"0 4px",borderRadius:Me.radiusLg,border:`1px solid ${Me.borderDefault}`,backgroundColor:Me.panelBg,boxShadow:Me.panelShadow},children:[o?u.jsxs(u.Fragment,{children:[u.jsx("button",{type:"button",onClick:o,style:{...l,color:i?Me.interactivePrimary:Me.textSecondary},title:"Legend","aria-label":"Toggle legend","aria-pressed":i,children:u.jsx(F4,{size:17})}),u.jsx("span",{style:{width:1,height:20,backgroundColor:Me.borderDefault}})]}):null,u.jsx("button",{type:"button",onClick:n,style:l,title:"Zoom out",children:u.jsx(H4,{size:17})}),u.jsxs("button",{type:"button",onClick:r,style:{...l,width:"auto",minWidth:52,padding:"0 8px",color:Me.textPrimary,fontSize:13,fontWeight:600,fontVariantNumeric:"tabular-nums"},title:"Reset zoom",children:[Math.round(e*100),"%"]}),u.jsx("button",{type:"button",onClick:t,style:l,title:"Zoom in",children:u.jsx($4,{size:17})})]})}function U4({zoom:e,onZoomIn:t,onZoomOut:n,onReset:r}){const o={display:"flex",alignItems:"center",justifyContent:"center",height:28,width:28,border:"none",backgroundColor:"transparent",color:Me.textPrimary,cursor:"pointer",fontFamily:Me.fontFamily};return u.jsxs("div",{className:"mv-zoom-bar",style:{position:"absolute",bottom:12,left:12,display:"flex",flexDirection:"column",overflow:"hidden",borderRadius:Me.radiusMd,border:`1px solid ${Me.borderDefault}`,backgroundColor:Me.panelBg,boxShadow:Me.panelShadow},children:[u.jsx("button",{type:"button",onClick:t,style:{...o,borderBottom:`1px solid ${Me.borderDefault}`},title:`Zoom in (${Math.round(e*100)}%)`,children:u.jsx(z4,{size:14})}),u.jsx("button",{type:"button",onClick:n,style:{...o,borderBottom:`1px solid ${Me.borderDefault}`},title:"Zoom out",children:u.jsx(D4,{size:14})}),u.jsx("button",{type:"button",onClick:r,style:o,title:`Reset zoom (${Math.round(e*100)}%)`,children:u.jsx(V4,{size:14})})]})}function He({size:e=16,color:t="currentColor",strokeWidth:n=2},r){return u.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:r})}const ho=e=>He(e,u.jsx("path",{d:"m6 9 6 6 6-6"})),ur=e=>He(e,u.jsx("path",{d:"m9 18 6-6-6-6"})),W4=e=>He(e,u.jsx("path",{d:"m15 18-6-6 6-6"})),G4=e=>He(e,u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M18 6 6 18"}),u.jsx("path",{d:"m6 6 12 12"})]})),Z4=e=>He(e,u.jsxs(u.Fragment,{children:[u.jsx("polyline",{points:"15 3 21 3 21 9"}),u.jsx("polyline",{points:"9 21 3 21 3 15"}),u.jsx("line",{x1:"21",x2:"14",y1:"3",y2:"10"}),u.jsx("line",{x1:"3",x2:"10",y1:"21",y2:"14"})]})),Y4=e=>He(e,u.jsxs(u.Fragment,{children:[u.jsx("polyline",{points:"4 14 10 14 10 20"}),u.jsx("polyline",{points:"20 10 14 10 14 4"}),u.jsx("line",{x1:"14",x2:"21",y1:"10",y2:"3"}),u.jsx("line",{x1:"3",x2:"10",y1:"21",y2:"14"})]})),X4=e=>He(e,u.jsxs(u.Fragment,{children:[u.jsx("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),u.jsx("path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}),u.jsx("path",{d:"M3 12A9 3 0 0 0 21 12"})]})),Q4=e=>He(e,u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),u.jsx("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),u.jsx("path",{d:"M10 9H8"}),u.jsx("path",{d:"M16 13H8"}),u.jsx("path",{d:"M16 17H8"})]})),K4=e=>He(e,u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"}),u.jsx("line",{x1:"4",x2:"4",y1:"22",y2:"15"})]})),q4=e=>He(e,u.jsxs(u.Fragment,{children:[u.jsx("line",{x1:"6",x2:"6",y1:"3",y2:"15"}),u.jsx("circle",{cx:"18",cy:"6",r:"3"}),u.jsx("circle",{cx:"6",cy:"18",r:"3"}),u.jsx("path",{d:"M18 9a9 9 0 0 1-9 9"})]})),J4=e=>He(e,u.jsxs(u.Fragment,{children:[u.jsx("line",{x1:"4",x2:"20",y1:"9",y2:"9"}),u.jsx("line",{x1:"4",x2:"20",y1:"15",y2:"15"}),u.jsx("line",{x1:"10",x2:"8",y1:"3",y2:"21"}),u.jsx("line",{x1:"16",x2:"14",y1:"3",y2:"21"})]})),e0=e=>He(e,u.jsxs(u.Fragment,{children:[u.jsx("rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}),u.jsx("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),u.jsx("rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}),u.jsx("rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"})]})),t0=e=>He(e,u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m3 17 2 2 4-4"}),u.jsx("path",{d:"m3 7 2 2 4-4"}),u.jsx("path",{d:"M13 6h8"}),u.jsx("path",{d:"M13 12h8"}),u.jsx("path",{d:"M13 18h8"})]})),n0=e=>He(e,u.jsx("path",{d:"M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2"})),r0=e=>He(e,u.jsxs(u.Fragment,{children:[u.jsx("polyline",{points:"4 17 10 11 4 5"}),u.jsx("line",{x1:"12",x2:"20",y1:"19",y2:"19"})]})),o0=e=>He(e,u.jsxs(u.Fragment,{children:[u.jsx("polyline",{points:"4 7 4 4 20 4 20 7"}),u.jsx("line",{x1:"9",x2:"15",y1:"20",y2:"20"}),u.jsx("line",{x1:"12",x2:"12",y1:"4",y2:"20"})]})),i0=e=>He(e,u.jsx("path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"}));function Ac({title:e,open:t,onToggle:n,children:r}){return u.jsxs("div",{style:{borderBottom:`1px solid ${C.separator}`},children:[u.jsxs("button",{type:"button",onClick:n,style:{width:"100%",display:"flex",alignItems:"center",gap:6,padding:"12px 16px",background:"none",border:"none",color:C.textPrimary,cursor:"pointer",fontSize:13,fontWeight:600,fontFamily:C.fontFamily},children:[t?u.jsx(ho,{size:14}):u.jsx(ur,{size:14}),e]}),t?u.jsx("div",{style:{padding:"0 16px 14px 16px"},children:r}):null]})}function Su(e,t){return t?t.selectMode?{"data-mv-id":e,onClick:n=>{n.stopPropagation(),t.onToggle(e)},onMouseEnter:n=>n.currentTarget.setAttribute("data-mv-hover",""),onMouseLeave:n=>n.currentTarget.removeAttribute("data-mv-hover"),style:{cursor:"crosshair",display:"inline-block"}}:{"data-mv-id":e}:{}}function kt({label:e,value:t,rowId:n,selection:r}){const o=n?Su(n,r):{};return u.jsxs("div",{style:{display:"flex",justifyContent:"space-between",gap:10,fontSize:12,padding:"3px 0",borderBottom:`1px solid ${C.separator}`},children:[u.jsx("span",{style:{color:C.textSecondary,fontFamily:C.fontFamilyMono,flexShrink:0,whiteSpace:"nowrap"},children:e}),u.jsx("span",{...o,style:{color:C.textPrimary,fontFamily:C.fontFamilyMono,textAlign:"right",wordBreak:"break-word",minWidth:0,...o.style},children:t})]})}function pn({label:e,value:t,mono:n}){return u.jsxs("div",{style:{marginBottom:8,fontSize:12.5,lineHeight:1.5},children:[u.jsxs("span",{style:{color:C.textMuted},children:[e,": "]}),u.jsx("span",{style:{color:C.textSecondary,fontFamily:n?C.fontFamilyMono:void 0},children:t})]})}function l0({text:e}){return u.jsx("div",{style:{fontSize:12,color:C.textMuted},children:e})}function Eu({onBack:e}){return u.jsxs("button",{type:"button",onClick:e,style:{display:"flex",alignItems:"center",gap:6,background:"none",border:"none",borderBottom:`1px solid ${C.separator}`,color:C.interactivePrimary,cursor:"pointer",fontSize:12,fontWeight:600,fontFamily:C.fontFamily,padding:"10px 16px",textAlign:"left"},children:[u.jsx(W4,{size:14}),"Back to flow"]})}function s0({model:e}){const[t,n]=_.useState(!0);return u.jsxs(Ac,{title:"Flow Properties",open:t,onToggle:()=>n(r=>!r),children:[u.jsx(pn,{label:"Label",value:e.label}),e.description?u.jsx(pn,{label:"Description",value:e.description}):null,e.processType?u.jsx(pn,{label:"Type",value:e.processType}):null,e.apiVersion?u.jsx(pn,{label:"API Version",value:e.apiVersion}):null,e.status?u.jsx(pn,{label:"Status",value:e.status}):null,e.interviewLabel?u.jsx(pn,{label:"Interview Label",value:e.interviewLabel}):null,e.canvasMode?u.jsx(pn,{label:"Canvas",value:e.canvasMode==="AUTO_LAYOUT_CANVAS"?"Auto-Layout":"Free-Form"}):null]})}const u0=[{key:"actionOutput",title:"Actions"},{key:"apexVariable",title:"Apex-Defined Variables"},{key:"collectionVariable",title:"Collection Variables"},{key:"constant",title:"Constants"},{key:"decisionOutcome",title:"Decision Outcomes"},{key:"formula",title:"Formulas"},{key:"recordOutput",title:"Record Outputs"},{key:"recordVariable",title:"Record (Single) Variables"},{key:"choice",title:"Choices"},{key:"textTemplate",title:"Text Templates"},{key:"stage",title:"Stages"},{key:"variable",title:"Variables"}];function a0({category:e}){const t={size:15,color:C.textMuted,strokeWidth:2};switch(e){case"actionOutput":return u.jsx(i0,{...t});case"apexVariable":return u.jsx(r0,{...t});case"recordVariable":case"recordOutput":return u.jsx(X4,{...t});case"decisionOutcome":return u.jsx(q4,{...t});case"formula":return u.jsx(n0,{...t});case"constant":return u.jsx(J4,{...t});case"choice":return u.jsx(t0,{...t});case"textTemplate":return u.jsx(Q4,{...t});case"stage":return u.jsx(K4,{...t});case"collectionVariable":case"variable":default:return u.jsx(o0,{...t})}}function c0({model:e}){const t=e.resources??[],n=new Map;for(const r of t){const o=n.get(r.category)??[];o.push(r),n.set(r.category,o)}return t.length===0?u.jsx(Ac,{title:"Resources",open:!0,onToggle:()=>{},children:u.jsx(l0,{text:"No resources."})}):u.jsxs("div",{style:{borderBottom:`1px solid ${C.separator}`},children:[u.jsx("div",{style:{padding:"12px 16px 4px 16px",fontSize:11,fontWeight:700,letterSpacing:.6,textTransform:"uppercase",color:C.textMuted},children:"Resources"}),u0.map(({key:r,title:o})=>{const i=n.get(r);return!i||i.length===0?null:u.jsx(f0,{category:r,title:o,items:i},r)})]})}function f0({category:e,title:t,items:n}){const[r,o]=_.useState(!0);return u.jsxs("div",{children:[u.jsxs("button",{type:"button",onClick:()=>o(i=>!i),style:{width:"100%",display:"flex",alignItems:"center",gap:6,padding:"6px 16px",background:"none",border:"none",color:C.textPrimary,cursor:"pointer",fontSize:12.5,fontWeight:600,fontFamily:C.fontFamily,textAlign:"left"},children:[r?u.jsx(ho,{size:13}):u.jsx(ur,{size:13}),u.jsx("span",{children:t}),u.jsxs("span",{style:{color:C.textMuted,fontWeight:500},children:["(",n.length,")"]})]}),r?n.map((i,l)=>u.jsx(d0,{resource:i},`${e}-${i.name}-${l}`)):null]})}function d0({resource:e}){const t=[e.dataType,e.detail].filter(Boolean).join(" · ")||e.name;return u.jsxs("div",{title:t,style:{display:"flex",alignItems:"center",gap:9,padding:"5px 16px 5px 34px",cursor:"default"},children:[u.jsx("span",{style:{flexShrink:0,display:"flex"},children:u.jsx(a0,{category:e.category})}),u.jsx("span",{style:{fontSize:12.5,color:C.textPrimary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:e.name})]})}const Fc={start:"#0B827C",end:"#EA001E",interaction:"#1B96FF",logic:"#DD7A01",data:"#FF538A",action:"#032D60"};function ce({size:e=48,title:t,tile:n,shape:r="square",children:o}){const i=Fc[n],l=r==="diamond"?"0 0 68 68":"0 0 48 48";let s;return r==="circle"?s=u.jsx("circle",{cx:"24",cy:"24",r:"24",fill:i}):r==="diamond"?s=u.jsx("rect",{y:"33.9411",width:"48",height:"48",rx:"4",transform:"rotate(-45 0 33.9411)",fill:i}):s=u.jsx("rect",{width:"48",height:"48",rx:"4",fill:i}),u.jsxs("svg",{width:e,height:e,viewBox:l,xmlns:"http://www.w3.org/2000/svg",role:t?"img":"presentation","aria-hidden":t?void 0:!0,fill:"none",children:[t?u.jsx("title",{children:t}):null,s,o]})}function p0(e){return u.jsx(ce,{...e,tile:"start",shape:"circle",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9231 34.8923V13.1077C13.9231 12.4923 14.7231 12.0615 15.2769 12.5538L35.7077 23.2C36.2 23.5692 36.2 24.3692 35.7077 24.7385L15.2769 35.5077C14.7231 35.9385 13.9231 35.5692 13.9231 34.8923Z",fill:"white"})})}function h0(e){return u.jsx(ce,{...e,tile:"end",shape:"circle",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9231 12.9231H35.0769V35.0769H12.9231V12.9231Z",fill:"white"})})}function m0(e){return u.jsx(ce,{...e,tile:"interaction",children:u.jsx("path",{d:"M38.4 12C38.4 10.656 37.344 9.60001 36 9.60001H12C10.656 9.60001 9.6 10.656 9.6 12V28.656C9.6 30 10.656 31.056 12 31.056H36C37.344 31.056 38.4 30 38.4 28.656V12ZM34.8 26.544C34.8 27.024 34.368 27.456 33.888 27.456H14.112C13.632 27.456 13.2 27.024 13.2 26.544V14.112C13.2 13.632 13.632 13.2 14.112 13.2H33.888C34.368 13.2 34.8 13.632 34.8 14.112V26.544ZM19.776 34.8C18.432 34.8 17.376 35.856 17.376 37.2V37.488C17.376 37.968 17.808 38.4 18.288 38.4H29.712C30.192 38.4 30.624 37.968 30.624 37.488V37.2C30.624 35.856 29.568 34.8 28.224 34.8H19.776ZM19.296 24.432H16.608C16.368 24.432 16.128 24.192 16.128 23.952V16.656C16.128 16.368 16.368 16.176 16.608 16.176H19.296C19.536 16.176 19.776 16.368 19.776 16.656V23.952C19.776 24.192 19.536 24.432 19.296 24.432ZM31.392 24.432H23.184C22.944 24.432 22.704 24.192 22.704 23.952V16.656C22.704 16.416 22.944 16.176 23.184 16.176H31.392C31.632 16.176 31.872 16.416 31.872 16.656V23.952C31.872 24.24 31.632 24.432 31.392 24.432Z",fill:"white"})})}function g0(e){return u.jsx(ce,{...e,tile:"logic",children:u.jsx("path",{d:"M10.56 26.352H37.44C37.6946 26.352 37.9388 26.4531 38.1188 26.6332C38.2989 26.8132 38.4 27.0574 38.4 27.312V29.232C38.4 29.4866 38.2989 29.7308 38.1188 29.9108C37.9388 30.0908 37.6946 30.192 37.44 30.192H10.56C10.3054 30.192 10.0612 30.0908 9.88118 29.9108C9.70115 29.7308 9.60001 29.4866 9.60001 29.232V27.312C9.60001 26.784 10.032 26.352 10.56 26.352ZM10.56 17.808H37.44C37.6946 17.808 37.9388 17.9091 38.1188 18.0892C38.2989 18.2692 38.4 18.5134 38.4 18.768V20.688C38.4 20.9426 38.2989 21.1868 38.1188 21.3668C37.9388 21.5468 37.6946 21.648 37.44 21.648H10.56C10.3054 21.648 10.0612 21.5468 9.88118 21.3668C9.70115 21.1868 9.60001 20.9426 9.60001 20.688V18.768C9.60001 18.24 10.032 17.808 10.56 17.808Z",fill:"white"})})}function y0(e){return u.jsx(ce,{...e,tile:"logic",shape:"diamond",children:u.jsx("path",{d:"M48.0514 23.7609L45.5554 21.8889C45.1714 21.6489 44.8354 21.5049 44.4034 21.5049H35.8594V20.4969C35.8594 19.9689 35.4274 19.5369 34.8994 19.5369H32.9794C32.4514 19.5369 32.0194 19.9689 32.0194 20.4969V21.4569H22.4194C21.8914 21.4569 21.4594 21.8889 21.4594 22.4169V26.2569C21.4594 26.7849 21.8914 27.2169 22.4194 27.2169H44.4034C44.8354 27.2169 45.2674 27.1209 45.5554 26.8329L48.0514 24.9609C48.4354 24.6249 48.4354 24.0489 48.0514 23.7609ZM45.4594 32.0169H35.8594V30.5769C35.8594 30.2889 35.6674 30.0969 35.3794 30.0969H32.4994C32.2114 30.0969 32.0194 30.2889 32.0194 30.5769V32.0169H23.5234C23.0914 32.0169 22.6594 32.1129 22.3714 32.4009L19.8754 34.2729C19.4434 34.5609 19.4434 35.1849 19.8754 35.5209L22.3714 37.3929C22.7554 37.6329 23.0914 37.7769 23.5234 37.7769H45.4594C45.9874 37.7769 46.4194 37.3449 46.4194 36.8169V32.9769C46.4194 32.4489 45.9874 32.0169 45.4594 32.0169ZM35.8594 44.3049V41.9529C35.8594 41.6649 35.6674 41.4729 35.3794 41.4729H32.4994C32.2114 41.4729 32.0194 41.6649 32.0194 41.9529V44.3049C30.0994 44.8329 29.0434 45.9849 28.7074 47.4249C28.6114 47.8569 28.9474 48.3369 29.4274 48.3369H38.4994C38.9794 48.3369 39.3634 47.9049 39.2194 47.4249C38.8834 45.9849 37.7794 44.8809 35.8594 44.3049Z",fill:"white"})})}function v0(e){return u.jsx(ce,{...e,tile:"logic",children:u.jsx("path",{d:"M36.72 27.984L36.672 28.08L36.144 29.664L35.376 31.296C34.8 32.352 34.08 33.312 33.216 34.176C31.5416 35.9669 29.3951 37.2481 27.024 37.872C24.8385 38.4767 22.5372 38.5307 20.3257 38.0289C18.1142 37.5272 16.0615 36.4855 14.3509 34.9969C12.6403 33.5082 11.3251 31.619 10.5228 29.498C9.72055 27.377 9.45619 25.0903 9.75335 22.8422C10.0505 20.5941 10.8999 18.4546 12.2258 16.6149C13.5516 14.7752 15.3125 13.2926 17.3511 12.2995C19.3898 11.3065 21.6427 10.8339 23.9085 10.924C26.1744 11.0141 28.3827 11.6641 30.336 12.816H30.384C31.6273 13.5047 32.7336 14.4158 33.648 15.504C34.08 15.888 34.416 15.648 34.416 15.072V10.56C34.416 10.032 34.848 9.59998 35.376 9.59998H37.296C37.824 9.59998 38.256 10.032 38.352 10.56V22.32C38.352 22.752 37.968 23.184 37.488 23.184H25.728C25.2 23.184 24.816 22.8 24.816 22.272V20.256C24.816 19.728 25.248 19.296 25.776 19.296H30.288C30.672 19.296 30.96 19.2 31.104 18.96C29.8335 17.2199 28.0172 15.9552 25.9445 15.3673C23.8717 14.7794 21.6618 14.9022 19.667 15.7161C17.6722 16.5301 16.0072 17.9883 14.9373 19.8584C13.8675 21.7286 13.4544 23.903 13.764 26.0351C14.0735 28.1673 15.0877 30.1345 16.6451 31.6233C18.2025 33.112 20.2134 34.0367 22.3574 34.2498C24.5013 34.463 26.6549 33.9524 28.4749 32.7994C30.295 31.6464 31.6767 29.9175 32.4 27.888C32.4 27.888 32.544 27.024 33.216 27.024H35.952C36.336 27.024 36.72 27.312 36.72 27.744V27.984Z",fill:"white"})})}function C0(e){return u.jsx(ce,{...e,tile:"data",children:u.jsx("path",{d:"M18.72 15.36H29.28C29.808 15.36 30.24 14.928 30.24 14.4V12.48C30.24 10.896 28.944 9.59998 27.36 9.59998H20.64C19.056 9.59998 17.76 10.896 17.76 12.48V14.4C17.76 14.928 18.192 15.36 18.72 15.36ZM34.56 12H33.6C33.312 12 33.12 12.192 33.12 12.48V14.4C33.12 16.512 31.392 18.24 29.28 18.24H18.72C16.608 18.24 14.88 16.512 14.88 14.4V12.48C14.88 12.192 14.688 12 14.4 12H13.44C11.856 12 10.56 13.296 10.56 14.88V35.52C10.56 37.104 11.856 38.4 13.44 38.4H34.56C36.144 38.4 37.44 37.104 37.44 35.52V14.88C37.44 13.296 36.144 12 34.56 12ZM31.056 28.896C31.056 29.136 30.816 29.376 30.576 29.376H25.296C25.104 29.376 24.96 29.52 24.96 29.712V34.992C24.96 35.232 24.72 35.472 24.48 35.472H23.52C23.28 35.472 23.04 35.232 23.04 34.992V29.712C23.04 29.52 22.896 29.376 22.704 29.376H17.424C17.184 29.376 16.944 29.136 16.944 28.896V27.936C16.944 27.696 17.184 27.456 17.424 27.456H22.704C22.896 27.456 23.04 27.312 23.04 27.12V21.84C23.04 21.6 23.28 21.36 23.52 21.36H24.48C24.72 21.36 24.96 21.6 24.96 21.84V27.12C24.96 27.312 25.104 27.456 25.296 27.456H30.576C30.816 27.456 31.056 27.696 31.056 27.936V28.896Z",fill:"white"})})}function x0(e){return u.jsx(ce,{...e,tile:"data",children:u.jsx("path",{d:"M18.72 15.36H29.28C29.808 15.36 30.24 14.928 30.24 14.4V12.48C30.24 10.896 28.944 9.59998 27.36 9.59998H20.64C19.056 9.59998 17.76 10.896 17.76 12.48V14.4C17.76 14.928 18.192 15.36 18.72 15.36ZM34.56 12H33.6C33.312 12 33.12 12.192 33.12 12.48V14.4C33.12 16.512 31.392 18.24 29.28 18.24H18.72C16.608 18.24 14.88 16.512 14.88 14.4V12.48C14.88 12.192 14.688 12 14.4 12H13.44C11.856 12 10.56 13.296 10.56 14.88V35.52C10.56 37.104 11.856 38.4 13.44 38.4H34.56C36.144 38.4 37.44 37.104 37.44 35.52V14.88C37.44 13.296 36.144 12 34.56 12ZM30.864 34.848L30.24 35.472C30.096 35.616 29.808 35.616 29.616 35.472L25.728 31.584C24.624 32.352 23.232 32.784 21.696 32.592C20.5007 32.4224 19.394 31.8656 18.5454 31.0069C17.6967 30.1483 17.153 29.0351 16.9975 27.8379C16.8419 26.6407 17.0832 25.4255 17.6842 24.3785C18.2852 23.3315 19.213 22.5104 20.3252 22.041C21.4375 21.5717 22.673 21.4798 23.8424 21.7797C25.0118 22.0795 26.0507 22.7544 26.7999 23.7011C27.5491 24.6477 27.9673 25.8139 27.9904 27.0209C28.0136 28.228 27.6404 29.4093 26.928 30.384L30.816 34.272C31.056 34.368 31.056 34.656 30.864 34.848ZM22.512 23.28C21.5063 23.28 20.5418 23.6795 19.8306 24.3906C19.1195 25.1018 18.72 26.0663 18.72 27.072C18.72 28.0777 19.1195 29.0422 19.8306 29.7533C20.5418 30.4645 21.5063 30.864 22.512 30.864C23.5177 30.864 24.4822 30.4645 25.1933 29.7533C25.9045 29.0422 26.304 28.0777 26.304 27.072C26.304 26.0663 25.9045 25.1018 25.1933 24.3906C24.4822 23.6795 23.5177 23.28 22.512 23.28Z",fill:"white"})})}function w0(e){return u.jsx(ce,{...e,tile:"data",children:u.jsx("path",{d:"M18.72 15.36H29.28C29.808 15.36 30.24 14.928 30.24 14.4V12.48C30.24 10.896 28.944 9.59998 27.36 9.59998H20.64C19.056 9.59998 17.76 10.896 17.76 12.48V14.4C17.76 14.928 18.192 15.36 18.72 15.36ZM34.56 12H33.6C33.312 12 33.12 12.192 33.12 12.48V14.4C33.12 16.512 31.392 18.24 29.28 18.24H18.72C16.608 18.24 14.88 16.512 14.88 14.4V12.48C14.88 12.192 14.688 12 14.4 12H13.44C11.856 12 10.56 13.296 10.56 14.88V35.52C10.56 37.104 11.856 38.4 13.44 38.4H34.56C36.144 38.4 37.44 37.104 37.44 35.52V14.88C37.44 13.296 36.144 12 34.56 12ZM28.8 26.64L21.12 34.32H21.168L17.808 35.28C17.472 35.376 17.184 35.04 17.28 34.704L18.24 31.392L25.92 23.712C26.016 23.616 26.208 23.616 26.352 23.712L28.8 26.256C28.896 26.352 28.896 26.544 28.8 26.64ZM31.008 24.432L30.048 25.392C29.952 25.488 29.76 25.488 29.616 25.392L27.12 22.896C27.024 22.8 27.024 22.608 27.12 22.464L28.08 21.504C28.512 21.024 29.232 21.024 29.712 21.504L30.96 22.752C31.488 23.232 31.488 23.952 31.008 24.432Z",fill:"white"})})}function S0(e){return u.jsxs(ce,{...e,tile:"data",children:[u.jsx("path",{d:"M18.72 15.36H29.28C29.808 15.36 30.24 14.928 30.24 14.4V12.48C30.24 10.896 28.944 9.59998 27.36 9.59998H20.64C19.056 9.59998 17.76 10.896 17.76 12.48V14.4C17.76 14.928 18.192 15.36 18.72 15.36Z",fill:"white"}),u.jsx("path",{d:"M34.56 12H33.6C33.312 12 33.12 12.192 33.12 12.48V14.4C33.12 16.512 31.392 18.24 29.28 18.24H18.72C16.608 18.24 14.88 16.512 14.88 14.4V12.48C14.88 12.192 14.688 12 14.4 12H13.44C11.856 12 10.56 13.296 10.56 14.88V35.52C10.56 37.104 11.856 38.4 13.44 38.4H34.56C36.144 38.4 37.44 37.104 37.44 35.52V14.88C37.44 13.296 36.144 12 34.56 12ZM28.992 33.888C28.992 34.704 28.368 35.376 27.504 35.376H20.496C19.68 35.376 19.008 34.752 19.008 33.888V27.648C19.008 27.408 19.2 27.216 19.44 27.216H28.56C28.8 27.216 28.992 27.408 28.992 27.648V33.888ZM30.144 24.912C30.144 25.152 29.952 25.344 29.712 25.344H18.288C18.048 25.344 17.856 25.152 17.856 24.912V24.048C17.856 23.808 18.048 23.616 18.288 23.616H21.936V22.464C21.936 21.84 22.464 21.312 23.088 21.312H24.864C25.488 21.312 26.016 21.84 26.016 22.464V23.616H29.664C29.904 23.616 30.096 23.808 30.096 24.048V24.912H30.144Z",fill:"white"}),u.jsx("path",{d:"M22.848 29.28H22.272C22.08 29.28 21.984 29.376 21.984 29.568V32.976C21.984 33.168 22.08 33.264 22.272 33.264H22.848C23.04 33.264 23.136 33.168 23.136 32.976V29.568C23.136 29.376 22.992 29.28 22.848 29.28ZM25.776 29.28H25.2C25.008 29.28 24.912 29.376 24.912 29.568V32.976C24.912 33.168 25.008 33.264 25.2 33.264H25.776C25.968 33.264 26.064 33.168 26.064 32.976V29.568C26.064 29.376 25.92 29.28 25.776 29.28ZM24.576 22.416H23.424C23.232 22.416 23.136 22.512 23.136 22.704V23.568H24.912V22.704C24.864 22.512 24.768 22.416 24.576 22.416Z",fill:"white"})]})}function E0(e){return u.jsxs(ce,{...e,tile:"data",children:[u.jsx("path",{d:"M13.488 23.04C13.44 23.376 13.44 23.664 13.44 24H10.56C10.56 23.664 10.56 23.376 10.608 23.04H13.488ZM24.72 17.28H23.28C22.896 17.28 22.56 17.616 22.56 18V24.288C22.56 24.48 22.656 24.672 22.752 24.816L26.784 28.848C27.072 29.136 27.504 29.136 27.792 28.848L28.8 27.84C29.088 27.552 29.088 27.12 28.8 26.832L25.44 23.424V18C25.44 17.616 25.104 17.28 24.72 17.28Z",fill:"white"}),u.jsx("path",{d:"M24 10.56C16.896 10.56 11.088 16.08 10.608 23.04C10.608 23.184 10.56 23.376 10.56 23.52H8.40001C7.77601 23.52 7.44001 24.24 7.82401 24.672L11.424 29.04C11.712 29.376 12.24 29.376 12.528 29.04L16.128 24.672C16.512 24.192 16.176 23.52 15.552 23.52H13.44V23.04C13.92 17.664 18.48 13.44 23.952 13.44C30.192 13.44 35.136 18.864 34.464 25.2C33.984 29.76 29.664 34.08 25.056 34.512C21.648 34.848 18.432 33.6 16.176 31.152C15.888 30.816 15.504 30.624 15.12 31.104L13.968 32.496C13.728 32.784 13.92 32.976 14.16 33.216C16.752 35.952 20.304 37.488 24.144 37.44C31.056 37.344 36.864 31.872 37.344 24.96C37.968 17.136 31.728 10.56 24 10.56Z",fill:"white"})]})}function k0(e){return u.jsx(ce,{...e,tile:"action",children:u.jsx("path",{d:"M22.368 11.3759L21.36 10.3679C21.072 10.0799 20.64 10.0799 20.352 10.3679L14.016 16.7039L11.472 14.1599C11.184 13.8719 10.752 13.8719 10.464 14.1599L9.45599 15.1679C9.16799 15.4559 9.16799 15.8879 9.45599 16.1759L13.008 19.7279C13.138 19.8644 13.2944 19.973 13.4677 20.0473C13.6409 20.1216 13.8275 20.1599 14.016 20.1599C14.2045 20.1599 14.3911 20.1216 14.5643 20.0473C14.7376 19.973 14.894 19.8644 15.024 19.7279L22.368 12.3839C22.608 12.1439 22.608 11.6639 22.368 11.3759ZM36.96 18.2399H24.48C23.952 18.2399 23.52 17.8079 23.52 17.2799V15.3599C23.52 14.8319 23.952 14.3999 24.48 14.3999H36.96C37.488 14.3999 37.92 14.8319 37.92 15.3599V17.2799C37.92 17.8079 37.488 18.2399 36.96 18.2399ZM36.96 26.8799H21.6C21.072 26.8799 20.64 26.4479 20.64 25.9199V23.9999C20.64 23.4719 21.072 23.0399 21.6 23.0399H36.96C37.488 23.0399 37.92 23.4719 37.92 23.9999V25.9199C37.92 26.4479 37.488 26.8799 36.96 26.8799ZM15.84 26.8799H13.92C13.392 26.8799 12.96 26.4479 12.96 25.9199V23.9999C12.96 23.4719 13.392 23.0399 13.92 23.0399H15.84C16.368 23.0399 16.8 23.4719 16.8 23.9999V25.9199C16.8 26.4479 16.368 26.8799 15.84 26.8799ZM15.84 35.5199H13.92C13.392 35.5199 12.96 35.0879 12.96 34.5599V32.6399C12.96 32.1119 13.392 31.6799 13.92 31.6799H15.84C16.368 31.6799 16.8 32.1119 16.8 32.6399V34.5599C16.8 35.0879 16.368 35.5199 15.84 35.5199ZM36.96 35.5199H21.6C21.072 35.5199 20.64 35.0879 20.64 34.5599V32.6399C20.64 32.1119 21.072 31.6799 21.6 31.6799H36.96C37.488 31.6799 37.92 32.1119 37.92 32.6399V34.5599C37.92 35.0879 37.488 35.5199 36.96 35.5199Z",fill:"white"})})}function _0(e){return u.jsx(ce,{...e,tile:"action",children:u.jsx("path",{d:"M38.352 14.736C37.104 12.288 33.936 7.728 28.032 10.416L22.32 13.056L17.04 15.36C15.552 16.08 12.288 15.072 10.464 14.4C9.93599 14.208 9.45599 14.784 9.69599 15.312C10.944 17.76 14.112 22.32 20.016 19.632C23.664 17.952 31.008 14.784 31.008 14.784C32.496 14.064 35.76 15.072 37.584 15.744C38.112 15.84 38.592 15.312 38.352 14.736ZM25.68 22.464C25.008 22.848 22.368 24.048 22.368 24.048L19.728 25.2C18.432 25.92 15.6 24.96 13.92 24.288C13.44 24.048 13.008 24.672 13.248 25.152C14.304 27.552 17.136 31.872 22.32 29.232C25.536 27.6 28.272 26.544 28.272 26.544C29.568 25.824 32.4 26.784 34.08 27.456C34.56 27.648 34.992 27.072 34.752 26.544C33.648 24.144 30.816 19.824 25.68 22.464ZM23.76 33.072L22.32 33.936C21.312 34.56 19.2 33.744 17.952 33.12C17.616 32.928 17.28 33.504 17.472 33.984C18.24 36.144 20.352 40.032 24.24 37.632L25.68 36.768C26.736 36.24 28.8 36.96 30.048 37.536C30.384 37.728 30.72 37.152 30.528 36.672C29.76 34.56 27.792 30.864 23.76 33.072Z",fill:"white"})})}function L0(e){return u.jsx(ce,{...e,tile:"logic",children:u.jsx("path",{d:"M24 9.59998C16.08 9.59998 9.60001 16.08 9.60001 24C9.60001 31.92 16.08 38.4 24 38.4C31.92 38.4 38.4 31.92 38.4 24C38.4 16.08 31.92 9.59998 24 9.59998ZM24 35.52C17.664 35.52 12.48 30.336 12.48 24C12.48 17.664 17.664 12.48 24 12.48C30.336 12.48 35.52 17.664 35.52 24C35.52 30.336 30.336 35.52 24 35.52ZM25.44 23.424V17.28C25.44 16.752 25.008 16.32 24.48 16.32H23.52C22.992 16.32 22.56 16.752 22.56 17.28V24C22.56 24.384 22.704 24.768 22.992 25.008L27.6 29.616C27.984 30 28.56 30 28.944 29.616L29.616 28.944C30 28.56 30 27.984 29.616 27.6L25.44 23.424Z",fill:"white"})})}function M0(e){return u.jsx(ce,{...e,tile:"logic",children:u.jsx("path",{d:"M36.96 9.59998H10.08C9.168 9.59998 8.736 10.608 9.312 11.28L20.928 25.008C21.312 25.44 21.456 26.016 21.456 26.592V37.488C21.456 37.968 21.936 38.4 22.416 38.4H24.528C25.008 38.4 25.392 37.968 25.392 37.488V26.64C25.392 26.016 25.632 25.488 26.064 25.056L37.728 11.328C38.304 10.656 37.872 9.59998 36.96 9.59998Z",fill:"white"})})}function T0(e){return u.jsx(ce,{...e,tile:"logic",children:u.jsx("path",{d:"M24.432 18.096C24.768 17.76 24.768 17.184 24.432 16.848L17.568 9.93602C17.232 9.60002 16.656 9.60002 16.32 9.93602L9.456 16.848C9.12 17.184 9.12 17.76 9.456 18.096L10.704 19.344C11.04 19.68 11.616 19.68 11.952 19.344L14.112 17.184C14.448 16.848 15.12 17.088 15.12 17.616V30.288C15.12 30.768 15.552 31.2 16.032 31.2H17.808C18.288 31.2 18.72 30.72 18.72 30.288V17.616C18.72 17.088 19.392 16.848 19.728 17.184L21.888 19.344C22.224 19.68 22.8 19.68 23.136 19.344L24.432 18.096ZM37.584 30.048L36.336 28.848C36 28.512 35.424 28.512 35.088 28.848L32.928 31.008C32.592 31.344 31.92 31.104 31.92 30.576V17.808C31.92 17.328 31.488 16.896 31.008 16.896H29.232C28.752 16.896 28.32 17.376 28.32 17.808V30.48C28.32 31.008 27.648 31.248 27.312 30.912L25.152 28.752C24.816 28.416 24.24 28.416 23.904 28.752L22.656 30.048C22.32 30.384 22.32 30.96 22.656 31.296L29.52 38.16C29.856 38.496 30.432 38.496 30.768 38.16L37.632 31.296C37.968 30.96 37.968 30.336 37.584 30.048Z",fill:"white"})})}function j0(e){return u.jsx(ce,{...e,tile:"logic",children:u.jsx("path",{d:"M35.088 21.024C35.6787 21.0185 36.2602 21.1711 36.7721 21.466C37.284 21.7609 37.7077 22.1874 37.9993 22.7012C38.2909 23.215 38.4398 23.7974 38.4304 24.3881C38.4211 24.9788 38.254 25.5563 37.9463 26.0606C37.6387 26.565 37.2017 26.9778 36.6808 27.2564C36.1598 27.535 35.5738 27.6692 34.9835 27.6451C34.3932 27.621 33.8202 27.4394 33.3237 27.1192C32.8272 26.799 32.4254 26.3518 32.16 25.824H31.632C28.368 25.824 27.264 26.832 25.44 30.192L25.344 30.384L25.2 30.624C24.144 32.64 23.52 33.552 22.416 34.56C20.832 35.904 18.864 36.624 16.176 36.624H15.84C15.5007 37.2852 14.949 37.813 14.2735 38.1227C13.5979 38.4324 12.8379 38.5059 12.1155 38.3314C11.3932 38.1569 10.7505 37.7445 10.2908 37.1606C9.83119 36.5767 9.58127 35.8551 9.58127 35.112C9.58127 34.3689 9.83119 33.6473 10.2908 33.0634C10.7505 32.4795 11.3932 32.0671 12.1155 31.8926C12.8379 31.7181 13.5979 31.7916 14.2735 32.1013C14.949 32.411 15.5007 32.9388 15.84 33.6H16.368C19.68 33.552 20.784 32.544 22.656 28.992L22.8 28.752C23.3193 27.7129 23.9467 26.7314 24.672 25.824H15.84C15.5007 26.4852 14.949 27.013 14.2735 27.3227C13.5979 27.6324 12.8379 27.7059 12.1155 27.5314C11.3932 27.3569 10.7505 26.9445 10.2908 26.3606C9.83119 25.7767 9.58127 25.0551 9.58127 24.312C9.58127 23.5689 9.83119 22.8473 10.2908 22.2634C10.7505 21.6795 11.3932 21.2671 12.1155 21.0926C12.8379 20.9181 13.5979 20.9916 14.2735 21.3013C14.949 21.611 15.5007 22.1388 15.84 22.8H32.16C32.4321 22.2794 32.8378 21.8406 33.3355 21.5285C33.8332 21.2164 34.4049 21.0423 34.992 21.024H35.088ZM35.088 9.6C35.6787 9.5945 36.2602 9.74711 36.7721 10.042C37.284 10.3369 37.7077 10.7634 37.9993 11.2772C38.2909 11.791 38.4398 12.3734 38.4304 12.9641C38.4211 13.5548 38.254 14.1323 37.9463 14.6366C37.6387 15.141 37.2017 15.5538 36.6808 15.8324C36.1598 16.111 35.5738 16.2452 34.9835 16.2211C34.3932 16.197 33.8202 16.0154 33.3237 15.6952C32.8272 15.375 32.4254 14.9278 32.16 14.4H15.84C15.5051 15.066 14.9553 15.5995 14.2796 15.9142C13.6039 16.229 12.8417 16.3066 12.1164 16.1345C11.3911 15.9624 10.7451 15.5507 10.2828 14.9659C9.82055 14.3811 9.56908 13.6574 9.56908 12.912C9.56908 12.1666 9.82055 11.4429 10.2828 10.8581C10.7451 10.2733 11.3911 9.86158 12.1164 9.68948C12.8417 9.51737 13.6039 9.59498 14.2796 9.90975C14.9553 10.2245 15.5051 10.758 15.84 11.424H32.16C32.4334 10.8803 32.8513 10.4225 33.3678 10.1007C33.8843 9.77893 34.4795 9.60569 35.088 9.6Z",fill:"white"})})}function Ja(e){return u.jsx(ce,{...e,tile:"action",children:u.jsx("path",{d:"M25.824 10.512L24 19.248C23.9924 19.3192 24.0009 19.3912 24.0248 19.4587C24.0486 19.5262 24.0873 19.5875 24.1379 19.6381C24.1885 19.6887 24.2498 19.7274 24.3173 19.7512C24.3848 19.7751 24.4568 19.7836 24.528 19.776H33.888C34.0484 19.7828 34.2045 19.8298 34.342 19.9125C34.4795 19.9952 34.5941 20.1112 34.6753 20.2496C34.7565 20.3881 34.8016 20.5447 34.8067 20.7052C34.8117 20.8656 34.7764 21.0247 34.704 21.168L24.48 37.92C24.3767 38.0825 24.2247 38.2082 24.0456 38.279C23.8665 38.3499 23.6696 38.3622 23.4831 38.3142C23.2966 38.2662 23.13 38.1605 23.0073 38.0121C22.8846 37.8636 22.812 37.6802 22.8 37.488L24.624 27.168C24.624 26.832 24.288 26.976 23.952 26.976L14.112 26.928C13.488 26.928 13.008 25.968 13.344 25.392L24.144 10.08C24.2473 9.91744 24.3993 9.79176 24.5784 9.72094C24.7575 9.65013 24.9544 9.63782 25.1409 9.68578C25.3274 9.73374 25.494 9.8395 25.6167 9.98792C25.7394 10.1363 25.8119 10.3198 25.824 10.512Z",fill:"white"})})}function I0(e){return u.jsx(ce,{...e,tile:"action",children:u.jsx("path",{d:"M37.44 32.4H21.312C20.832 32.4 20.4 32.832 20.4 33.312V35.088C20.4 35.568 20.832 36 21.312 36H37.44C37.92 36 38.352 35.568 38.352 35.088V33.312C38.352 32.784 37.92 32.4 37.44 32.4ZM23.616 21.504L12.048 12.192C11.712 11.904 11.136 11.952 10.848 12.384L9.83999 13.824C9.55199 14.256 9.64799 14.784 10.032 15.072L18.24 21.648C18.528 21.888 18.528 22.368 18.24 22.608L9.98399 29.232C9.64799 29.52 9.50399 30.144 9.79199 30.48L10.8 32.016C11.088 32.448 11.616 32.496 12 32.208L23.616 22.944C24.096 22.56 24.096 21.84 23.616 21.504Z",fill:"white"})})}function P0(e){return u.jsx(ce,{...e,tile:"action",children:u.jsx("path",{d:"M24.096 19.2L30.816 12.48C31.152 12.144 31.152 11.568 30.816 11.232L29.376 9.79201C29.04 9.45601 28.464 9.45601 28.128 9.79201L21.408 16.512L24.096 19.2ZM31.488 26.784L38.208 20.064C38.544 19.728 38.544 19.152 38.208 18.816L36.768 17.376C36.432 17.04 35.856 17.04 35.52 17.376L28.8 24.096L31.488 26.784ZM30.528 32.352L30.768 31.872C30.816 31.632 30.768 31.392 30.624 31.2L30.528 31.056L16.896 17.424C16.752 17.232 16.464 17.184 16.272 17.184C15.984 17.184 15.792 17.328 15.6 17.472L15.264 17.808L15.072 18.048L14.832 18.336L14.592 18.72L14.352 19.2L14.064 19.728L13.824 20.352L13.584 21.072L13.344 21.888L13.152 22.848L12.96 23.904L12.816 25.056L12.72 26.352V27.792L12.768 29.376L12.864 31.104L12.912 31.584H13.008L9.88799 34.704C9.55199 35.04 9.55199 35.616 9.88799 35.952L12.096 38.16C12.432 38.496 13.008 38.496 13.344 38.16L16.464 35.04C17.568 35.136 18.72 35.232 19.872 35.232C20.832 35.232 21.744 35.232 22.704 35.136C24.5963 35 26.4572 34.5792 28.224 33.888L29.232 33.36C29.664 33.072 30.096 32.784 30.432 32.4L30.528 32.352Z",fill:"white"})})}function N0(e){return u.jsx(ce,{...e,tile:"action",children:u.jsx("path",{d:"M23.376 26.4C23.76 26.736 24.288 26.736 24.672 26.4L38.256 13.824C38.496 13.344 38.448 12.576 37.488 12.576L10.608 12.624C9.88802 12.624 9.31202 13.296 9.84002 13.872L23.376 26.4ZM38.4 19.2C38.4 18.576 37.632 18.24 37.2 18.672L26.64 28.464C25.92 29.136 25.008 29.472 24.048 29.472C23.088 29.472 22.176 29.136 21.456 28.464L10.848 18.672C10.745 18.5798 10.6176 18.5192 10.481 18.4975C10.3445 18.4758 10.2046 18.4939 10.078 18.5496C9.95144 18.6053 9.8436 18.6962 9.76735 18.8115C9.6911 18.9269 9.64967 19.0617 9.64802 19.2V31.68C9.64802 33.264 10.944 34.56 12.528 34.56H35.568C37.152 34.56 38.448 33.264 38.448 31.68L38.4 19.2Z",fill:"white"})})}function R0(e){return u.jsx(ce,{...e,tile:"action",children:u.jsx("path",{d:"M7.296 32.736L14.112 24.48C14.304 24.144 14.304 23.76 14.112 23.472L7.296 15.312L7.2 15.024C7.2 14.736 7.44 14.544 7.68 14.544H17.616C17.904 14.544 18.144 14.64 18.288 14.88L25.44 23.52C25.632 23.808 25.632 24.192 25.44 24.528L18.336 33.168C18.192 33.36 17.904 33.504 17.664 33.504H7.728C7.44 33.504 7.248 33.312 7.248 33.024C7.2 32.928 7.248 32.784 7.296 32.736ZM22.464 32.736L29.232 24.48C29.424 24.144 29.424 23.76 29.232 23.472L22.416 15.312L22.32 15.024C22.32 14.736 22.56 14.544 22.8 14.544H32.736C33.024 14.544 33.264 14.64 33.408 14.88L40.56 23.52C40.752 23.808 40.752 24.192 40.56 24.528L33.456 33.168C33.312 33.36 33.024 33.504 32.784 33.504H22.848C22.56 33.504 22.368 33.312 22.368 33.024L22.464 32.736Z",fill:"white"})})}function O0(e){return u.jsxs(ce,{...e,tile:"action",children:[u.jsx("path",{d:"M22.8 12.48C20.352 12.624 18.384 14.592 18.24 17.04C18.336 14.544 20.304 12.576 22.8 12.48ZM27.84 17.04C27.696 14.592 25.728 12.624 23.28 12.48C25.776 12.576 27.744 14.544 27.84 17.04ZM30.528 26.304L25.632 24.624C25.248 24.48 24.96 24.144 24.96 23.712V17.184C24.96 16.176 24.144 15.36 23.136 15.36H22.944C21.936 15.36 21.12 16.176 21.12 17.184V30.096C21.12 31.2 19.728 31.632 19.152 30.672L17.904 28.032C17.7485 27.7639 17.5382 27.5316 17.287 27.3502C17.0358 27.1688 16.7492 27.0422 16.4458 26.9788C16.1425 26.9155 15.8292 26.9166 15.5264 26.9823C15.2235 27.048 14.9378 27.1767 14.688 27.36L13.92 27.936L18.048 37.728C18.24 38.16 18.624 38.4 19.104 38.4H29.952C30.48 38.4 30.912 38.016 31.056 37.536L32.976 30.672C33.36 28.8 32.304 26.928 30.528 26.304Z",fill:"white"}),u.jsx("path",{d:"M18.24 22.176V17.04C18.384 14.592 20.352 12.624 22.8 12.48H23.28C25.728 12.624 27.696 14.592 27.84 17.04V22.176C27.84 22.608 28.368 22.8 28.656 22.512C29.6766 21.4179 30.3554 20.0494 30.6089 18.5749C30.8625 17.1003 30.6798 15.5837 30.0833 14.2115C29.4867 12.8393 28.5024 11.6713 27.2511 10.8509C25.9999 10.0304 24.5362 9.59338 23.04 9.59338C21.5438 9.59338 20.0801 10.0304 18.8289 10.8509C17.5776 11.6713 16.5933 12.8393 15.9967 14.2115C15.4002 15.5837 15.2175 17.1003 15.4711 18.5749C15.7246 20.0494 16.4034 21.4179 17.424 22.512C17.712 22.8 18.24 22.608 18.24 22.176Z",fill:"white"})]})}function e2(e){return u.jsx(ce,{...e,tile:"action",children:u.jsx("path",{d:"M38.4 12C38.4 10.656 37.344 9.60001 36 9.60001H12C10.656 9.60001 9.60001 10.656 9.60001 12V28.656C9.60001 30 10.656 31.056 12 31.056H36C37.344 31.056 38.4 30 38.4 28.656V12ZM34.8 26.544C34.8 27.024 34.368 27.456 33.888 27.456H14.112C13.632 27.456 13.2 27.024 13.2 26.544V14.112C13.2 13.632 13.632 13.2 14.112 13.2H33.888C34.368 13.2 34.8 13.632 34.8 14.112V26.544ZM19.776 34.8C18.432 34.8 17.376 35.856 17.376 37.2V37.488C17.376 37.968 17.808 38.4 18.288 38.4H29.712C30.192 38.4 30.624 37.968 30.624 37.488V37.2C30.624 35.856 29.568 34.8 28.224 34.8H19.776ZM19.296 24.432H16.608C16.368 24.432 16.128 24.192 16.128 23.952V16.656C16.128 16.368 16.368 16.176 16.608 16.176H19.296C19.536 16.176 19.776 16.368 19.776 16.656V23.952C19.776 24.192 19.536 24.432 19.296 24.432ZM31.392 24.432H23.184C22.944 24.432 22.704 24.192 22.704 23.952V16.656C22.704 16.416 22.944 16.176 23.184 16.176H31.392C31.632 16.176 31.872 16.416 31.872 16.656V23.952C31.872 24.24 31.632 24.432 31.392 24.432Z",fill:"white"})})}function A0({size:e=48,title:t}){return u.jsxs("svg",{width:e,height:e,viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"presentation","aria-hidden":t?void 0:!0,fill:"none",children:[t?u.jsx("title",{children:t}):null,u.jsx("rect",{x:"4",y:"4",width:"48",height:"48",rx:"4",fill:Fc.action}),u.jsx("path",{d:"M25.024 26.464C24.5135 26.4546 24.0172 26.2945 23.5973 26.004C23.1774 25.7135 22.8526 25.3055 22.6638 24.8311C22.475 24.3567 22.4304 23.8371 22.5358 23.3376C22.6412 22.838 22.8917 22.3806 23.2561 22.0229C23.6204 21.6652 24.0823 21.423 24.5837 21.3269C25.0852 21.2307 25.6039 21.2847 26.0747 21.4822C26.5455 21.6798 26.9475 22.0119 27.2303 22.4371C27.513 22.8622 27.6639 23.3614 27.664 23.872C27.6641 24.2165 27.5955 24.5575 27.4622 24.8751C27.329 25.1928 27.1337 25.4807 26.8879 25.722C26.6421 25.9633 26.3507 26.1533 26.0307 26.2807C25.7106 26.4081 25.3684 26.4704 25.024 26.464ZM41.104 30.736L37.648 25.552V25.12C37.648 22.073 36.4409 19.1501 34.2909 16.9911C32.1408 14.832 29.223 13.6127 26.176 13.6C25.2532 13.592 24.3334 13.7049 23.44 13.936C20.9403 14.5499 18.7196 15.9866 17.1351 18.0151C15.5506 20.0436 14.6944 22.546 14.704 25.12C14.6393 27.2814 15.2427 29.4101 16.432 31.216C18.448 34.096 19.792 36.4 18.976 39.52C18.8786 39.8658 18.867 40.2302 18.9422 40.5815C19.0175 40.9328 19.1774 41.2605 19.408 41.536C19.6065 41.8071 19.8669 42.0269 20.1674 42.1772C20.468 42.3274 20.8 42.4038 21.136 42.4H30.544C31.0745 42.4098 31.5915 42.2323 32.0041 41.8987C32.4167 41.5651 32.6985 41.0968 32.8 40.576C32.8553 40.3886 32.8876 40.1952 32.896 40C32.9418 39.7288 33.0831 39.483 33.2944 39.3069C33.5057 39.1308 33.773 39.0362 34.048 39.04H34.72C35.2244 39.0596 35.7208 38.9094 36.1298 38.6136C36.5388 38.3177 36.8368 37.8932 36.976 37.408C37.3965 35.9057 37.6382 34.359 37.696 32.8H40.144C40.3708 32.7723 40.5868 32.6872 40.7715 32.5529C40.9563 32.4185 41.1038 32.2392 41.2 32.032C41.2906 31.8245 41.3293 31.598 41.3125 31.3721C41.2958 31.1463 41.2242 30.9279 41.104 30.736ZM31.6 26.704L31.12 27.472C31.0207 27.6076 30.8906 27.7175 30.7403 27.7926C30.59 27.8677 30.424 27.9059 30.256 27.904C30.1422 27.9047 30.029 27.8885 29.92 27.856L28.672 27.376C28.1225 27.8462 27.4867 28.2049 26.8 28.432L26.56 29.824C26.5151 30.0441 26.3945 30.2415 26.2191 30.3818C26.0437 30.5222 25.8246 30.5965 25.6 30.592H24.64C24.4154 30.5965 24.1963 30.5222 24.0209 30.3818C23.8455 30.2415 23.7249 30.0441 23.68 29.824L23.44 28.432C22.8036 28.2354 22.2152 27.9084 21.712 27.472L20.32 27.952C20.211 27.9845 20.0978 28.0007 19.984 28C19.8191 27.9929 19.6584 27.9455 19.5161 27.8618C19.3739 27.7781 19.2543 27.6607 19.168 27.52L18.688 26.752C18.5669 26.5634 18.5196 26.3367 18.555 26.1154C18.5904 25.894 18.7061 25.6935 18.88 25.552L20.032 24.64C19.9488 24.31 19.9005 23.9721 19.888 23.632C19.9013 23.3078 19.9496 22.9859 20.032 22.672L18.928 21.712C18.7463 21.5773 18.6212 21.38 18.5769 21.1582C18.5325 20.9365 18.5721 20.7062 18.688 20.512L19.168 19.696C19.255 19.5452 19.3813 19.4208 19.5335 19.3363C19.6857 19.2517 19.858 19.2102 20.032 19.216C20.1482 19.2307 20.2615 19.2631 20.368 19.312L21.712 19.792C22.2362 19.3485 22.8385 19.0066 23.488 18.784L23.68 17.44C23.7154 17.2153 23.8335 17.012 24.0111 16.8699C24.1887 16.7279 24.413 16.6573 24.64 16.672H25.6C25.82 16.6556 26.0386 16.7195 26.2151 16.8519C26.3916 16.9843 26.5142 17.1762 26.56 17.392L26.8 18.736C27.4505 18.9565 28.0532 19.2986 28.576 19.744L29.92 19.264C30.0265 19.2151 30.1398 19.1827 30.256 19.168C30.4291 19.1671 30.5995 19.2108 30.7509 19.2948C30.9022 19.3789 31.0293 19.5005 31.12 19.648L31.6 20.416C31.719 20.6175 31.7603 20.8556 31.7161 21.0854C31.6719 21.3152 31.5453 21.521 31.36 21.664L30.256 22.576C30.3249 22.9075 30.3571 23.2455 30.352 23.584C30.3544 23.9065 30.3222 24.2284 30.256 24.544L31.36 25.456C31.5453 25.599 31.6719 25.8048 31.7161 26.0346C31.7603 26.2644 31.719 26.5025 31.6 26.704Z",fill:"white"})]})}function F0(e){return u.jsxs(ce,{...e,tile:"action",children:[u.jsx("path",{d:"M32.448 9.64801C31.056 9.64801 29.856 10.656 29.376 12.048C30.3191 12.4982 31.1443 13.1621 31.7859 13.987C32.4275 14.8119 32.8679 15.7751 33.072 16.8C34.56 16.464 35.664 15.024 35.664 13.296C35.664 11.232 34.224 9.64801 32.448 9.64801ZM35.424 18.192C34.7979 18.7753 34.0127 19.1596 33.168 19.296C33.024 20.592 32.544 21.792 31.824 22.752H37.152C37.824 22.752 38.352 22.224 38.352 21.552V20.976C38.352 19.68 36.912 18.864 35.424 18.192ZM30.336 24C29.376 24.864 28.176 25.392 26.88 25.392C26.784 26.88 26.352 28.224 25.68 29.376H32.4C32.7819 29.376 33.1482 29.2243 33.4182 28.9542C33.6883 28.6842 33.84 28.3179 33.84 27.936V27.36C33.792 25.776 32.064 24.816 30.336 24ZM24.144 31.296C23.475 31.9765 22.6757 32.5152 21.7939 32.88C20.9121 33.2447 19.9659 33.4281 19.0116 33.4192C18.0574 33.4102 17.1147 33.2091 16.2399 32.8278C15.3652 32.4465 14.5761 31.8929 13.92 31.2C11.712 32.256 9.60001 33.6 9.60001 35.568V36.48C9.60001 37.536 10.464 38.352 11.472 38.352H26.496C27.552 38.352 28.368 37.488 28.368 36.48V35.616C28.368 33.6 26.352 32.304 24.144 31.296Z",fill:"white"}),u.jsx("path",{d:"M19.008 30.432C21.8445 30.432 24.144 27.8962 24.144 24.768C24.144 21.6399 21.8445 19.104 19.008 19.104C16.1715 19.104 13.872 21.6399 13.872 24.768C13.872 27.8962 16.1715 30.432 19.008 30.432Z",fill:"white"}),u.jsx("path",{d:"M26.736 14.16C25.8556 14.1774 25.0079 14.4969 24.335 15.065C23.6622 15.633 23.2049 16.415 23.04 17.28C24.816 18.432 26.112 20.4 26.64 22.656H26.736C28.848 22.656 30.576 20.736 30.576 18.384C30.624 16.08 28.896 14.16 26.736 14.16Z",fill:"white"})]})}function H0(e){return u.jsx(ce,{...e,tile:"action",children:u.jsx("path",{d:"M33.024 9.744C33.9963 9.74587 34.9489 10.0187 35.7748 10.5317C36.6008 11.0448 37.2674 11.7779 37.6999 12.6487C38.1324 13.5196 38.3136 14.4937 38.2234 15.4618C38.1331 16.4299 37.7748 17.3537 37.1887 18.1296C36.6026 18.9054 35.812 19.5026 34.9054 19.8541C33.9989 20.2056 33.0123 20.2976 32.0564 20.1196C31.1005 19.9417 30.2131 19.5009 29.4938 18.8467C28.7744 18.1925 28.2516 17.3508 27.984 16.416H27.792C27.1555 16.416 26.5451 16.6689 26.095 17.1189C25.6449 17.569 25.392 18.1795 25.392 18.816V20.88L28.416 23.904C28.5091 23.9894 28.5835 24.0933 28.6343 24.209C28.6852 24.3246 28.7115 24.4496 28.7115 24.576C28.7115 24.7024 28.6852 24.8274 28.6343 24.943C28.5835 25.0587 28.5091 25.1626 28.416 25.248L27.792 25.92C27.7066 26.0131 27.6027 26.0875 27.4871 26.1383C27.3714 26.1892 27.2464 26.2154 27.12 26.2154C26.9937 26.2154 26.8687 26.1892 26.753 26.1383C26.6373 26.0875 26.5335 26.0131 26.448 25.92L25.44 24.912V29.232C25.4409 30.587 24.9161 31.8895 23.9761 32.8653C23.0361 33.8412 21.7541 34.4143 20.4 34.464H20.016C19.7484 35.3988 19.2256 36.2405 18.5063 36.8947C17.7869 37.5489 16.8996 37.9897 15.9437 38.1676C14.9878 38.3456 14.0012 38.2536 13.0946 37.9021C12.1881 37.5506 11.3974 36.9534 10.8113 36.1776C10.2253 35.4017 9.86698 34.4779 9.7767 33.5098C9.68641 32.5417 9.86769 31.5676 10.3002 30.6967C10.7327 29.8259 11.3993 29.0928 12.2252 28.5797C13.0511 28.0667 14.0037 27.7939 14.976 27.792C16.1123 27.7976 17.2164 28.1696 18.1244 28.8528C19.0324 29.5359 19.6958 30.4938 20.016 31.584H20.208C20.8445 31.584 21.455 31.3311 21.9051 30.8811C22.3552 30.431 22.608 29.8205 22.608 29.184V25.008L21.744 25.92C21.6586 26.0131 21.5547 26.0875 21.4391 26.1383C21.3234 26.1892 21.1984 26.2154 21.072 26.2154C20.9457 26.2154 20.8207 26.1892 20.705 26.1383C20.5893 26.0875 20.4855 26.0131 20.4 25.92L19.728 25.248C19.6349 25.1626 19.5606 25.0587 19.5097 24.943C19.4589 24.8274 19.4326 24.7024 19.4326 24.576C19.4326 24.4496 19.4589 24.3246 19.5097 24.209C19.5606 24.0933 19.6349 23.9894 19.728 23.904L22.56 21.072V18.816C22.5591 17.461 23.0839 16.1585 24.0239 15.1827C24.964 14.2068 26.246 13.6337 27.6 13.584H27.984C28.2812 12.4767 28.9371 11.4992 29.8491 10.8044C30.761 10.1096 31.8776 9.73666 33.024 9.744ZM14.976 30.672C14.5013 30.672 14.0373 30.8128 13.6427 31.0765C13.248 31.3402 12.9404 31.715 12.7587 32.1536C12.5771 32.5921 12.5295 33.0747 12.6221 33.5402C12.7147 34.0058 12.9433 34.4334 13.279 34.7691C13.6146 35.1047 14.0423 35.3333 14.5078 35.4259C14.9734 35.5185 15.4559 35.471 15.8945 35.2893C16.333 35.1077 16.7078 34.8 16.9715 34.4054C17.2353 34.0107 17.376 33.5467 17.376 33.072C17.376 32.4355 17.1232 31.825 16.6731 31.3749C16.223 30.9249 15.6125 30.672 14.976 30.672ZM33.024 12.576C32.5493 12.576 32.0853 12.7168 31.6907 12.9805C31.296 13.2442 30.9884 13.619 30.8067 14.0576C30.6251 14.4961 30.5775 14.9787 30.6701 15.4442C30.7627 15.9098 30.9913 16.3374 31.327 16.6731C31.6626 17.0087 32.0903 17.2373 32.5558 17.3299C33.0214 17.4225 33.5039 17.375 33.9425 17.1933C34.381 17.0117 34.7558 16.704 35.0196 16.3094C35.2833 15.9147 35.424 15.4507 35.424 14.976C35.424 14.3395 35.1712 13.729 34.7211 13.2789C34.271 12.8289 33.6605 12.576 33.024 12.576Z",fill:"white"})})}function $0(e){return u.jsx(ce,{...e,tile:"action",children:u.jsx("g",{transform:"translate(8 8)",children:u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0002 1.23071C7.87711 1.23071 1.23096 7.87687 1.23096 15.9999C1.23096 24.123 7.87711 30.7692 16.0002 30.7692C24.1233 30.7692 30.7694 24.123 30.7694 15.9999C30.7694 7.87687 24.1233 1.23071 16.0002 1.23071ZM4.92331 15.9999C4.92331 9.90758 9.90793 4.92297 16.0002 4.92297C18.4002 4.92297 20.6156 5.66143 22.4002 6.95374L6.95408 22.3999C5.66177 20.6153 4.92331 18.3999 4.92331 15.9999ZM15.9999 27.0769C13.5999 27.0769 11.3846 26.3385 9.59995 25.0462L25.0461 9.6C26.3384 11.3846 27.0769 13.6 27.0769 16C27.0769 22.0923 22.0923 27.0769 15.9999 27.0769Z",fill:"white"})})})}function z0(e){return u.jsx(ce,{...e,tile:"action",children:u.jsx("g",{transform:"translate(9.5 11)",children:u.jsx("path",{d:"M27.024 0H1.824C0.768 0 0 0.768 0 1.824V20.16C0 21.168 0.768 21.984 1.824 21.984H10.512L12.672 25.104C13.248 25.92 14.352 26.112 15.168 25.488L15.552 25.152L18.048 21.936L27.024 21.984C28.032 21.984 28.8 21.168 28.8 20.16V1.824C28.8 0.768 28.032 0 27.024 0Z",fill:"white"})})})}function D0(e){return u.jsx(ce,{...e,tile:"action",children:u.jsx("path",{d:"M32.2344 13.3705C29.0732 14.6422 27.4052 17.7147 27.2182 22.7772H32.2477C32.4873 21.8491 33.0573 21.0402 33.8507 20.5021C34.6441 19.9641 35.6065 19.7339 36.5575 19.8547C37.5084 19.9755 38.3827 20.439 39.0164 21.1583C39.6501 21.8776 39.9997 22.8033 39.9997 23.7619C39.9997 24.7205 39.6501 25.6462 39.0164 26.3655C38.3827 27.0848 37.5084 27.5482 36.5575 27.669C35.6065 27.7898 34.6441 27.5596 33.8507 27.0216C33.0573 26.4836 32.4873 25.6747 32.2477 24.7465H27.2182C27.4052 29.809 29.0732 32.8816 32.2349 34.1533C32.4603 33.2281 33.0133 32.416 33.7914 31.8672C34.5695 31.3184 35.5201 31.0701 36.4672 31.1682C37.4144 31.2663 38.2939 31.7042 38.943 32.4008C39.5921 33.0975 39.9669 34.0057 39.9979 34.9574C40.029 35.909 39.7142 36.8397 39.1119 37.5772C38.5095 38.3147 37.6604 38.809 36.7217 38.9686C35.783 39.1282 34.8183 38.9424 34.006 38.4455C33.1938 37.9486 32.5891 37.1742 32.3038 36.2658C27.8257 34.8981 25.469 30.9807 25.2484 24.7465H22.2772C22.0161 24.7465 21.7657 24.6428 21.581 24.4581C21.3963 24.2735 21.2926 24.023 21.2926 23.7619C21.2926 23.5007 21.3963 23.2503 21.581 23.0656C21.7657 22.881 22.0161 22.7772 22.2772 22.7772H25.2484C25.469 16.5435 27.8262 12.6256 32.3033 11.2575C32.5886 10.349 33.1933 9.57469 34.0056 9.07777C34.8178 8.58086 35.7825 8.39502 36.7212 8.55465C37.66 8.71429 38.509 9.20858 39.1114 9.94605C39.7137 10.6835 40.0285 11.6142 39.9974 12.5659C39.9664 13.5176 39.5916 14.4258 38.9425 15.1224C38.2934 15.8191 37.4139 16.2569 36.4667 16.3551C35.5196 16.4532 34.569 16.2048 33.7909 15.656C33.0128 15.1072 32.4598 14.2956 32.2344 13.3705ZM36.0622 14.4078C36.5845 14.4078 37.0854 14.2003 37.4547 13.831C37.824 13.4617 38.0315 12.9608 38.0315 12.4385C38.0315 11.9163 37.824 11.4154 37.4547 11.0461C37.0854 10.6767 36.5845 10.4693 36.0622 10.4693C35.5399 10.4693 35.039 10.6767 34.6697 11.0461C34.3004 11.4154 34.0929 11.9163 34.0929 12.4385C34.0929 12.9608 34.3004 13.4617 34.6697 13.831C35.039 14.2003 35.5399 14.4078 36.0622 14.4078ZM36.0622 37.0545C36.5845 37.0545 37.0854 36.847 37.4547 36.4777C37.824 36.1084 38.0315 35.6075 38.0315 35.0852C38.0315 34.5629 37.824 34.062 37.4547 33.6927C37.0854 33.3234 36.5845 33.1159 36.0622 33.1159C35.5399 33.1159 35.039 33.3234 34.6697 33.6927C34.3004 34.062 34.0929 34.5629 34.0929 35.0852C34.0929 35.6075 34.3004 36.1084 34.6697 36.4777C35.039 36.847 35.5399 37.0545 36.0622 37.0545ZM36.0622 25.7312C36.5845 25.7312 37.0854 25.5237 37.4547 25.1544C37.824 24.7851 38.0315 24.2842 38.0315 23.7619C38.0315 23.2396 37.824 22.7387 37.4547 22.3694C37.0854 22.0001 36.5845 21.7926 36.0622 21.7926C35.5399 21.7926 35.039 22.0001 34.6697 22.3694C34.3004 22.7387 34.0929 23.2396 34.0929 23.7619C34.0929 24.2842 34.3004 24.7851 34.6697 25.1544C35.039 25.5237 35.5399 25.7312 36.0622 25.7312ZM21.329 32.6236H10.1972C8.95165 32.6236 8 31.4519 8 30.1335C8.07336 28.1563 10.1239 27.1308 12.2477 26.1787C13.7124 25.5195 13.9324 25.007 13.9324 24.3477C13.9324 23.6885 13.4928 23.1027 13.0532 22.6635C12.1744 21.8576 11.7352 20.7592 11.7352 19.4408C11.7352 17.024 13.1999 14.9001 15.8362 14.9001C18.4731 14.9001 19.9373 17.024 19.9373 19.4408C19.9373 20.7592 19.4981 21.8581 18.6193 22.6635C18.1068 23.1027 17.7405 23.6885 17.7405 24.3477C17.7405 24.9336 17.9601 25.5195 19.4252 26.1792C21.5491 27.1308 23.5996 28.1563 23.673 30.1335C23.5263 31.4519 22.5736 32.6236 21.329 32.6236Z",fill:"white"})})}const Hc={start:p0,end:h0,screen:m0,action:Ja,apexAction:I0,apexPluginCall:P0,emailAction:N0,externalCallout:H0,routeWork:D0,addScreenPop:e2,addSkillRequirement:A0,checkAvailability:F0,setScreenProperty:e2,assignment:g0,addPromptInstructions:z0,decision:y0,loop:v0,recordCreate:C0,recordLookup:x0,recordUpdate:w0,recordDelete:S0,recordRollback:E0,subflow:_0,wait:L0,collectionProcessor:M0,collectionSort:T0,transform:j0,customError:$0,stage:R0,interactiveStep:O0,managedContentStep:k0,group:Ja};Object.freeze(Object.keys(Hc));function io({kind:e,size:t=48,title:n}){const r=Hc[e];return u.jsx(r,{size:t,title:n})}function ku({kind:e,size:t}){return u.jsx("span",{style:{flexShrink:0,width:t,height:t,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:u.jsx(io,{kind:e,size:t})})}function V0(e,t){return Nc(e,"step",t)}const B0="Properties";function $c(e,t,n,r){return Nc(e,"detail",`${t}::${n}`,r)}function b0({node:e,selection:t}){const n=i=>$c(e.id,B0,i,0),r=n("Description"),o=Su(r,t);return u.jsxs("div",{style:{marginBottom:12},children:[u.jsx("div",{style:{fontSize:10.5,fontWeight:700,letterSpacing:.5,textTransform:"uppercase",color:C.textMuted,marginBottom:5},children:"Properties"}),u.jsx(kt,{label:"Label",value:e.label,rowId:n("Label"),selection:t}),e.kind!=="group"&&e.kind!=="start"?u.jsx(kt,{label:"API Name",value:e.id,rowId:n("API Name"),selection:t}):null,e.description?u.jsxs("div",{style:{marginTop:6},children:[u.jsx("div",{style:{fontSize:11.5,color:C.textMuted,marginBottom:2},children:"Description"}),u.jsx("div",{...o,style:{fontSize:12.5,color:C.textPrimary,lineHeight:1.5,wordBreak:"break-word",...o.style},children:e.description})]}):null]})}function U0({group:e,elementId:t,groupIndex:n,selection:r}){const o=t!==void 0&&n!==void 0?`${n}:${e.title}`:void 0;return u.jsxs("div",{style:{marginBottom:12},children:[u.jsx("div",{style:{fontSize:10.5,fontWeight:700,letterSpacing:.5,textTransform:"uppercase",color:C.textMuted,marginBottom:5},children:e.title}),(e.rows??[]).map((i,l)=>{const s=t!==void 0&&o!==void 0?Su($c(t,o,i.label,l),r):{};return u.jsxs("div",{style:{display:"flex",justifyContent:"space-between",gap:10,fontSize:12,padding:"3px 0",borderBottom:`1px solid ${C.separator}`},children:[u.jsx("span",{style:{color:C.textSecondary,fontFamily:C.fontFamilyMono,flexShrink:0,whiteSpace:"nowrap"},children:i.label}),i.value?u.jsx("span",{...s,style:{color:C.textPrimary,fontFamily:C.fontFamilyMono,textAlign:"right",wordBreak:"break-word",minWidth:0,...s.style},children:i.value}):null]},`${i.label}-${l}`)}),e.note?u.jsx("div",{style:{fontSize:11,color:C.textMuted,fontStyle:"italic",marginTop:4},children:e.note}):null]})}function W0({node:e,onBack:t,selection:n}){return u.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[u.jsx(Eu,{onBack:t}),u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"14px 16px",borderBottom:`1px solid ${C.separator}`},children:[u.jsx(ku,{kind:e.kind,size:34,glyph:18}),u.jsxs("div",{style:{minWidth:0},children:[u.jsx("div",{style:{fontSize:14,fontWeight:700,color:C.textBright,lineHeight:1.25},children:e.label}),u.jsx("div",{style:{fontSize:11,color:C.textMuted},children:e.typeLabel})]})]}),u.jsxs("div",{style:{padding:"14px 16px"},children:[u.jsx(b0,{node:e,selection:n}),(e.details??[]).map((r,o)=>u.jsx(U0,{group:r,elementId:e.id,groupIndex:o,selection:n},`${r.title}-${o}`))]})]})}function G0({group:e,model:t,onBack:n}){const r=e.memberIds.map(o=>{const i=t.nodes.find(l=>l.id===o);return{id:o,label:(i==null?void 0:i.label)??o,typeLabel:i==null?void 0:i.typeLabel}});return u.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[u.jsx(Eu,{onBack:n}),u.jsxs("div",{style:{padding:"14px 16px",borderBottom:`1px solid ${C.separator}`},children:[u.jsx("div",{style:{fontSize:14,fontWeight:700,color:C.textBright,lineHeight:1.25},children:e.label}),e.groupType?u.jsx("div",{style:{fontSize:11,color:C.textMuted},children:e.groupType}):null]}),u.jsxs("div",{style:{padding:"14px 16px"},children:[u.jsxs("div",{style:{marginBottom:12},children:[u.jsx("div",{style:{fontSize:10.5,fontWeight:700,letterSpacing:.5,textTransform:"uppercase",color:C.textMuted,marginBottom:5},children:"Properties"}),u.jsx(kt,{label:"Label",value:e.label}),u.jsx(kt,{label:"API Name",value:e.id}),e.groupType?u.jsx(kt,{label:"Type",value:e.groupType}):null]}),u.jsxs("div",{style:{marginBottom:12},children:[u.jsxs("div",{style:{fontSize:10.5,fontWeight:700,letterSpacing:.5,textTransform:"uppercase",color:C.textMuted,marginBottom:5},children:["Members (",r.length,")"]}),r.length===0?u.jsx("div",{style:{fontSize:12,color:C.textMuted,fontStyle:"italic"},children:"No members"}):r.map(o=>u.jsxs("div",{style:{fontSize:12,padding:"4px 0",borderBottom:`1px solid ${C.separator}`},children:[u.jsx("div",{style:{color:C.textPrimary,wordBreak:"break-word"},children:o.label}),o.typeLabel?u.jsx("div",{style:{fontSize:11,color:C.textMuted},children:o.typeLabel}):null]},o.id))]})]})]})}function Z0(e){const t=(e.stepSubtype??"").toLowerCase(),n=(e.actionType??"").toLowerCase();return t==="managedcontentroleinteractivestep"||n==="managedcontentrolestepinteractive"?"managedContentStep":t.endsWith("interactivestep")||n.endsWith("stepinteractive")?"interactiveStep":t.endsWith("backgroundstep")||n.endsWith("stepbackground")?"subflow":"action"}function Y0(e){const t=(e.stepSubtype??"").toLowerCase();return t.endsWith("interactivestep")?"Interactive Step":t.endsWith("backgroundstep")?"Background Step":"Stage Step"}function X0({stage:e,step:t,onBack:n}){return u.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[u.jsx(Eu,{onBack:n}),u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"14px 16px",borderBottom:`1px solid ${C.separator}`},children:[u.jsx("span",{style:{flexShrink:0,width:34,height:34,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:u.jsx(io,{kind:Z0(t),size:26})}),u.jsxs("div",{style:{minWidth:0},children:[u.jsx("div",{style:{fontSize:14,fontWeight:700,color:C.textBright,lineHeight:1.25},children:t.label}),u.jsx("div",{style:{fontSize:11,color:C.textMuted},children:Y0(t)})]})]}),u.jsx("div",{style:{padding:"14px 16px"},children:u.jsxs("div",{style:{marginBottom:12},children:[u.jsx("div",{style:{fontSize:10.5,fontWeight:700,letterSpacing:.5,textTransform:"uppercase",color:C.textMuted,marginBottom:5},children:"Properties"}),u.jsx(kt,{label:"Label",value:t.label}),u.jsx(kt,{label:"API Name",value:t.name}),t.stepSubtype?u.jsx(kt,{label:"Step Subtype",value:t.stepSubtype}):null,t.actionType?u.jsx(kt,{label:"Action Type",value:t.actionType}):null,t.actionName?u.jsx(kt,{label:"Action Name",value:t.actionName}):null,u.jsx(kt,{label:"Stage",value:e.label})]})})]})}function Q0({model:e,selectedNode:t,selectedGroup:n,selectedStepStage:r,selectedStep:o,onClearSelection:i,onClose:l,rowSelection:s}){return u.jsxs("div",{style:{width:312,flexShrink:0,margin:12,border:`1px solid ${C.panelBorder}`,borderRadius:C.radiusLg,backgroundColor:C.panelBg,boxShadow:C.shadowXl,display:"flex",flexDirection:"column",overflowY:"auto"},children:[u.jsxs("div",{style:{position:"sticky",top:0,zIndex:2,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",backgroundColor:C.panelBg,borderBottom:`1px solid ${C.separator}`,borderTopLeftRadius:C.radiusLg,borderTopRightRadius:C.radiusLg},children:[u.jsx("span",{style:{fontSize:15,fontWeight:700,color:C.textBright},children:o&&r?"Step Details":t?"Element Details":n?"Group Details":"Flow Information"}),u.jsx("button",{type:"button",onClick:l,"aria-label":"Close",style:{background:"none",border:"none",color:C.textMuted,cursor:"pointer",padding:2,display:"flex"},children:u.jsx(G4,{size:18})})]}),o&&r?u.jsx(X0,{stage:r,step:o,onBack:i}):t?u.jsx(W0,{node:t,onBack:i,selection:s}):n?u.jsx(G0,{group:n,model:e,onBack:i}):u.jsxs(u.Fragment,{children:[u.jsx(s0,{model:e}),u.jsx(c0,{model:e})]})]})}const Un=260,Tr=64,t2=40,K0=300,zc=44,Dc=28,Vc=44,q0=10,jr=120,Vr=140,n2=60,J0=80,e6=90,r2=120,zo=22,lo=34,Bc=12,bc=60,t6=Un+28,n6=lo+Bc*2+bc+4,El=26,kl=16,dt=48,qt=56,r6=16,o6=12,i6=8;function o2(e){return r6+o6+Math.max(1,e.length)*i6}const l6=200,i2=44,s6=40,u6=60;function _l(e){if(e.kind==="end")return{w:t2,h:t2};if(e.kind==="group")return{w:t6,h:n6};if(e.kind==="stage"&&e.steps&&e.steps.length>0){const t=zc+Dc+e.steps.length*Vc+q0;return{w:K0,h:t}}return{w:Un,h:Tr}}function ki(e){return e.isFault?2:e.isDefault?1:0}const l2=14,It=8;function Pt(e,t){if(e.length===0)return"";if(e.length===1)return`M ${e[0].x} ${e[0].y}`;const n=[`M ${e[0].x} ${e[0].y}`];for(let o=1;o<e.length-1;o++){const i=e[o-1],l=e[o],s=e[o+1],a=Math.hypot(l.x-i.x,l.y-i.y),c=Math.hypot(s.x-l.x,s.y-l.y),d=Math.min(t,a/2,c/2);if(d<=0||a===0||c===0){n.push(`L ${l.x} ${l.y}`);continue}const m=d/a,g=l.x-(l.x-i.x)*m,y=l.y-(l.y-i.y)*m,S=d/c,L=l.x+(s.x-l.x)*S,w=l.y+(s.y-l.y)*S;n.push(`L ${g} ${y}`),n.push(`Q ${l.x} ${l.y} ${L} ${w}`)}const r=e[e.length-1];return n.push(`L ${r.x} ${r.y}`),n.join(" ")}function _i(e,t,n,r,o){const i=Math.min(t,n),l=Math.max(t,n);return r.some(s=>o.has(s.node.id)?!1:e>s.x-l2&&e<s.x+s.w+l2&&s.y<l-1&&s.y+s.h>i+1)}function s2(e,t,n,r,o){if(!_i(e,t,n,r,o))return e;const i=[];for(const a of r)i.push(a.x-Vr/2,a.x+a.w+Vr/2);const l=Array.from(new Set(i)).sort((a,c)=>Math.abs(a-e)-Math.abs(c-e));for(const a of l)if(!_i(a,t,n,r,o))return a;return r.reduce((a,c)=>Math.max(a,c.x+c.w),0)+Vr}const a6=22;function c6(e){if(!e||e.siblingCount<=1)return 0;const t=e.laneGap??a6;return(e.siblingIndex-(e.siblingCount-1)/2)*t}function Es(e,t,n,r=[],o){let i,l,s;if(e.isFaultStub||e.isFault&&!n){const a=t.x+t.w,c=t.y+t.h/2,d=a+dt;i=Pt([{x:a,y:c},{x:d,y:c}],It),l=d+qt/2,s=c}else if(e.isFault&&n){const a=t.x+t.w,c=t.y+t.h/2,d=n.y+n.h/2;if(Math.abs(c-d)<1){const m=n.x;i=Pt([{x:a,y:c},{x:m,y:c}],It),l=(a+m)/2,s=c}else if(n.y>t.y+t.h){const m=n.x+n.w/2,g=n.y;i=Pt([{x:a,y:c},{x:m,y:c},{x:m,y:g}],It),l=(a+m)/2,s=c}else{const m=n.x,g=d,y=new Set([t.node.id,n.node.id]),S=m-Vr/2,L=s2(S,c,g,r,y);i=Pt([{x:a,y:c},{x:L,y:c},{x:L,y:g},{x:m,y:g}],It),l=(a+m)/2,s=c}}else if(n){const a=t.x+t.w/2,c=t.y+t.h,d=c6(o),m=n.x+n.w/2+d,g=Math.max(0,n.w/2-4),y=n.x+n.w/2,S=Math.abs(d)<=g?m:y,L=S!==m,w=S,p=n.y;if(Math.abs(a-m)<2&&!L)i=Pt([{x:a,y:c},{x:w,y:p}],It),l=w,s=Math.min(c+El+kl,p-2);else if(L){const f=c+El,h=p-Math.min(jr/2,24);i=Pt([{x:a,y:c},{x:a,y:f},{x:m,y:f},{x:m,y:h},{x:S,y:h},{x:S,y:p}],It),l=m,s=Math.min(f+kl,h-2)}else{const f=new Set([t.node.id,n.node.id]),h=p-c,x=p-Math.min(jr/2,32),P=!(((o==null?void 0:o.sourceOutgoingCount)??1)>1)&&h>jr*1.5&&!_i(a,c,x,r,f)&&!_i(w,x,p,r,f)?x:c+El,E=s2(w,P,p,r,f);if(E===w)i=Pt([{x:a,y:c},{x:a,y:P},{x:w,y:P},{x:w,y:p}],It);else{const N=p-Math.min(jr/2,24);i=Pt([{x:a,y:c},{x:a,y:P},{x:E,y:P},{x:E,y:N},{x:w,y:N},{x:w,y:p}],It)}l=w,s=Math.min(P+kl,p-2)}}else{const a=t.x+t.w/2,c=t.y+t.h;i=`M ${a} ${c} L ${a} ${c}`,l=a,s=c}return{d:i,lx:l,ly:s}}function f6(e,t){if(!e.groups||e.groups.length===0)return[];const n=[];for(const r of e.groups){const o=r.memberIds.map(c=>t.get(c)).filter(c=>!!c);if(o.length===0)continue;let i=1/0,l=1/0,s=-1/0,a=-1/0;for(const c of o)i=Math.min(i,c.x),l=Math.min(l,c.y),s=Math.max(s,c.x+c.w),a=Math.max(a,c.y+c.h);n.push({id:r.id,label:r.label,count:o.length,x:i-zo,y:l-zo-lo,w:s-i+zo*2,h:a-l+zo*2+lo})}return n}function u2(e,t,n){const r=new Set(e),o=new Map;for(const i of e)o.set(i,[]);for(const i of t)!r.has(i.from)||!r.has(i.to)||o.get(i[n]).push(i);return o}function d6(e,t,n){const r=new Set,o=new Set,i=new Set,l=s=>{if(i.has(s)||o.has(s))return;const a=[],c=d=>{o.add(d),a.push({id:d,i:0,outs:(n.get(d)??[]).filter(m=>!m.isFault)})};for(c(s);a.length;){const d=a[a.length-1];if(d.i<d.outs.length){const m=d.outs[d.i++];if(o.has(m.to)){r.add(m);continue}if(i.has(m.to))continue;c(m.to)}else o.delete(d.id),i.add(d.id),a.pop()}};for(const s of e)l(s);for(const s of t)l(s);return r}function p6(e,t,n){const r=new Map;for(const o of e){if(r.has(o))continue;const i=[{id:o,phase:0}],l=new Set;for(;i.length;){const s=i[i.length-1];if(s.phase===0){if(r.has(s.id)){i.pop();continue}if(l.has(s.id)){r.set(s.id,0),l.delete(s.id),i.pop();continue}l.add(s.id),s.phase=1;for(const a of t.get(s.id)??[])a.from===s.id||a.isFault||n.has(a)||r.has(a.from)||i.push({id:a.from,phase:0})}else{let a=0;for(const c of t.get(s.id)??[])c.from===s.id||c.isFault||n.has(c)||(a=Math.max(a,(r.get(c.from)??0)+1));r.set(s.id,a),l.delete(s.id),i.pop()}}}return r}function h6(e,t,n,r,o){const i=new Set,l=[[e,t]];for(;l.length;){const[s,a]=l.shift();if(!(i.has(s)||r.has(s))){i.add(s),o.set(s,a);for(const c of n.get(s)??[])c.isFault||c.isGoTo||l.push([c.to,a+1])}}}function m6(e,t,n){const r=new Map,o=new Set;let i=0;const l=s=>{if(o.has(s))return;const a=[s];for(;a.length;){const c=a.pop();if(o.has(c))continue;o.add(c),r.set(c,i++);const d=(n.get(c)??[]).filter(m=>!m.isFault&&!m.isGoTo).slice().sort((m,g)=>ki(m)-ki(g));for(let m=d.length-1;m>=0;m--)o.has(d[m].to)||a.push(d[m].to)}};for(const s of e)l(s);for(const s of t)l(s);return r}function g6(e,t,n,r){const o=new Map,i=a=>{const c=[...t.get(a)??[]],d=n.get(a);return d&&c.push(d),c};for(const a of e){if(o.has(a))continue;const c=[{id:a,phase:0}];for(;c.length;){const d=c[c.length-1];if(d.phase===0){d.phase=1;for(const m of i(d.id))o.has(m)||c.push({id:m,phase:0})}else{const m=t.get(d.id)??[],g=n.get(d.id),y=m.reduce((L,w)=>L+(o.get(w)??r),0),S=g?o.get(g)??r:0;o.set(d.id,Math.max(r,y,S)),c.pop()}}}const l=new Map;let s=0;for(const a of e){const c=o.get(a)??r,d=[{id:a,x:s+c/2}];for(;d.length;){const{id:m,x:g}=d.pop();l.set(m,g);const y=t.get(m)??[],S=n.get(m);if(y.length>0){const L=y.reduce((f,h)=>f+(o.get(h)??r),0);let w=g-L/2;const p=[];for(const f of y){const h=o.get(f)??r;p.push({id:f,x:w+h/2}),w+=h}for(let f=p.length-1;f>=0;f--)d.push(p[f])}S&&d.push({id:S,x:g})}s+=c}return l}function y6(e,t){const n=new Set,r=[e];for(;r.length;){const o=r.shift();if(!n.has(o)){n.add(o);for(const i of t.get(o)??[])i.isFault||i.isGoTo||r.push(i.to)}}return n}function a2(e,t){const n=new Map;for(const r of e.nodes){if(r.kind!=="loop")continue;const i=(t.get(r.id)??[]).find(d=>!d.isDefault&&!d.isFault&&!d.isGoTo);if(!i)continue;const l=new Set,s=[i.to];for(;s.length;){const d=s.shift();if(!(d===r.id||l.has(d))){l.add(d);for(const m of t.get(d)??[])m.isFault||m.isGoTo||m.to!==r.id&&s.push(m.to)}}const a=[];for(const d of l)for(const m of t.get(d)??[])m.isFault&&(m.isGoTo||m.to!==r.id&&a.push(m.to));const c=[...a];for(;c.length;){const d=c.shift();if(!(d===r.id||l.has(d))){l.add(d);for(const m of t.get(d)??[])m.isFault||m.isGoTo||m.to!==r.id&&c.push(m.to)}}l.size>0&&n.set(r.id,l)}return n}function v6(e){const t=e.nodes.map(v=>v.id),n=u2(t,e.edges,"to"),r=u2(t,e.edges,"from"),o=e.nodes.filter(v=>v.kind==="start").map(v=>v.id),i=o.length?o:t.filter(v=>n.get(v).length===0),l=new Set;{const v=[...i];for(;v.length;){const T=v.shift();if(!l.has(T)){l.add(T);for(const I of r.get(T))I.isFault||I.isGoTo||l.has(I.to)||v.push(I.to)}}}const s=new Set;for(const v of e.edges){if(!v.isFault||v.isGoTo)continue;const T=[v.to];for(;T.length;){const I=T.shift();if(!(l.has(I)||s.has(I))){s.add(I);for(const D of r.get(I)??[])D.isFault||D.isGoTo||T.push(D.to)}}}const a=new Set;for(const v of e.nodes)!l.has(v.id)&&!s.has(v.id)&&a.add(v.id);const c=d6(i,t,r);for(const v of e.edges)v.isGoTo&&c.add(v);const d=p6(t,n,c),m=new Set;{const v=e.nodes.filter(I=>I.kind==="decision").map(I=>I.id),T=[];for(const I of v)for(const D of r.get(I)??[])D.isFault||D.isGoTo||l.has(D.to)&&T.push(D.to);for(;T.length;){const I=T.shift();if(!m.has(I)){m.add(I);for(const D of r.get(I)??[])D.isFault||D.isGoTo||l.has(D.to)&&T.push(D.to)}}}const g=new Map;for(const v of e.edges)v.isFault&&!v.isGoTo&&g.set(v.to,v.from);for(const[v,T]of g){const I=d.get(T)??0,D=m.has(T)?I+1:I;h6(v,D,r,l,d)}{const v=T=>{const I=e.nodes.find($=>$.id===T);if(!I||I.kind!=="end")return!1;const D=(n.get(T)??[]).filter($=>!$.isFault&&!$.isGoTo&&!c.has($)&&l.has($.from));return new Set(D.map($=>$.from)).size>=2};for(const T of t){if(!l.has(T)||!v(T))continue;const I=new Set,D=[T];let $=-1/0;for(;D.length;){const q=D.shift();if(!I.has(q)){I.add(q);for(const ye of r.get(q)??[]){if(!ye.isFault||ye.isGoTo)continue;const Le=[ye.to],Re=new Set;for(;Le.length;){const we=Le.shift();if(Re.has(we)||l.has(we))continue;Re.add(we);const ze=d.get(we);ze!==void 0&&($=Math.max($,ze));for(const yt of r.get(we)??[])yt.isFault||yt.isGoTo||Le.push(yt.to)}}for(const ye of n.get(q)??[])ye.isFault||ye.isGoTo||c.has(ye)||l.has(ye.from)&&D.push(ye.from)}}if(!Number.isFinite($))continue;const K=d.get(T)??0,B=$+1;if(B>K){const q=B-K,ye=new Set,Le=[T];for(;Le.length;){const Re=Le.shift();if(!ye.has(Re)){ye.add(Re),d.set(Re,(d.get(Re)??0)+q);for(const we of r.get(Re)??[])we.isFault||c.has(we)||we.isGoTo||Le.push(we.to)}}}}}const y=a2(e,r);for(const[v,T]of y){let I=d.get(v)??0;for(const K of T)I=Math.max(I,d.get(K)??0);const D=I+1,$=r.get(v)??[];for(const K of $){if(K.isFault||!K.isDefault)continue;const B=K.to,q=d.get(B)??0;if(q>=D)continue;const ye=D-q,Le=[B],Re=new Set;for(;Le.length;){const we=Le.shift();if(!Re.has(we)){Re.add(we),d.set(we,(d.get(we)??0)+ye);for(const ze of r.get(we)??[])ze.isFault||c.has(ze)||Re.has(ze.to)||Le.push(ze.to)}}}}const S=m6(i,t,r);let L=Un;for(const v of e.nodes){const T=_l(v).w;T>L&&T<Un*2&&(L=T)}const w=L+Vr,p=new Map,f=new Map,h=new Map;for(const v of t)l.has(v)&&p.set(v,[]);const x=t.filter(v=>l.has(v)).sort((v,T)=>(d.get(v)??0)-(d.get(T)??0)),k=[];for(const v of x){const T=Array.from(new Set(n.get(v).filter(I=>!I.isFault&&!c.has(I)&&l.has(I.from)).map(I=>I.from)));if(T.length!==0)if(T.length===1){const I=T[0],D=e.nodes.find(K=>K.id===I),$=n.get(v).find(K=>K.from===I&&!K.isFault&&!c.has(K));if((D==null?void 0:D.kind)==="loop"&&($!=null&&$.isDefault)&&!f.has(I)){f.set(I,v),h.set(v,I);continue}p.get(I).push(v),h.set(v,I)}else k.push(v)}const j=v=>{const T=[];let I=v;const D=new Set;for(;I&&!D.has(I);)D.add(I),T.push(I),I=h.get(I);return T};for(const v of k){const T=Array.from(new Set(n.get(v).filter(B=>!B.isFault&&!c.has(B)&&l.has(B.from)).map(B=>B.from))),I=T.map(B=>new Set(j(B))),D=j(T[0]);let $;for(const B of D)if(I.every(q=>q.has(B))){$=B;break}if(!$){p.get(T[0]).push(v),h.set(v,T[0]);continue}if(T.includes($)){p.get($).push(v),h.set(v,$);continue}if(f.get($)!==void 0){p.get($).push(v),h.set(v,$);continue}f.set($,v),h.set(v,$)}for(const[v,T]of p){const I=r.get(v)??[];T.sort((D,$)=>{const K=I.find(Le=>Le.to===D),B=I.find(Le=>Le.to===$),q=K?ki(K):999,ye=B?ki(B):999;return q!==ye?q-ye:(S.get(D)??0)-(S.get($)??0)})}const P=i.filter(v=>l.has(v)),E=g6(P,p,f,w);let N=1/0,M=-1/0;for(const v of E.values())N=Math.min(N,v),M=Math.max(M,v);Number.isFinite(N)||(N=0,M=0);const G=new Set;for(const v of y.values())for(const T of v)G.add(T);const Z=new Set;for(const v of e.edges){if(!v.isFault||v.isGoTo||!G.has(v.from)||!G.has(v.to))continue;const T=E.get(v.from);if(T===void 0)continue;const I=T+w,D=[v.to];for(;D.length;){const $=D.shift();if(!(Z.has($)||l.has($))){Z.add($),E.set($,I),M=Math.max(M,I);for(const K of r.get($)??[])K.isFault||K.isGoTo||D.push(K.to)}}}const Y=new Set;for(const v of e.edges)!v.isFault||!v.isGoTo||l.has(v.from)&&Y.add(v.to);const F=[];for(const v of e.edges){if(!v.isFault||v.isGoTo||l.has(v.to)||Z.has(v.to)||F.some(I=>I.rootId===v.to))continue;const T=Y.has(v.to)&&e.edges.some(I=>I!==v&&I.isFault&&I.isGoTo&&I.to===v.to&&I.from!==v.from);F.push({rootId:v.to,sourceId:v.from,sourceRow:d.get(v.from)??0,inDecision:m.has(v.from)&&l.has(v.from)&&!T})}const Q=new Set,z=F.filter(v=>v.inDecision),X=new Set;for(;X.size<z.length;){let v,T=1/0,I=1/0;for(const B of z){if(X.has(B.sourceId))continue;const q=E.get(B.sourceId)??0;(B.sourceRow<T||B.sourceRow===T&&q<I)&&(T=B.sourceRow,I=q,v=B)}if(!v)break;X.add(v.sourceId);const $=(E.get(v.sourceId)??0)+w;for(const B of t){if(!l.has(B))continue;const q=E.get(B);q!==void 0&&q>=$-.5&&E.set(B,q+w)}for(const B of Q){const q=E.get(B);q!==void 0&&q>=$-.5&&E.set(B,q+w)}for(const B of Z){const q=E.get(B);q!==void 0&&q>=$-.5&&E.set(B,q+w)}const K=[v.rootId];for(;K.length;){const B=K.shift();if(!(Q.has(B)||l.has(B)||Z.has(B))){Q.add(B),E.set(B,$);for(const q of r.get(B)??[])q.isFault||q.isGoTo||K.push(q.to)}}}{const v=t.filter(T=>l.has(T)).sort((T,I)=>(d.get(I)??0)-(d.get(T)??0));for(const T of v){const I=p.get(T)??[],D=f.get(T);if(I.length===0&&!D)continue;let $=0,K=0;for(const B of I){const q=E.get(B);q!==void 0&&($+=q,K++)}if(K>0)E.set(T,$/K);else if(D){const B=E.get(D);B!==void 0&&E.set(T,B)}}for(const[T,I]of f){const D=[];for(const $ of n.get(I)??[]){if($.isFault||$.isGoTo||c.has($)||!l.has($.from))continue;const K=E.get($.from);K!==void 0&&D.push(K)}if(D.length>=2){const $=D.reduce((K,B)=>K+B,0)/D.length;E.set(I,$)}else{const $=E.get(T);$!==void 0&&E.set(I,$)}}}N=1/0,M=-1/0;for(const v of E.values())N=Math.min(N,v),M=Math.max(M,v);Number.isFinite(N)||(N=0,M=0);const R=F.filter(v=>!v.inDecision).sort((v,T)=>T.sourceRow-v.sourceRow);let H=M+w+l6;for(const{rootId:v}of R){const T=[v];for(;T.length;){const I=T.shift();if(!(Q.has(I)||l.has(I)||Z.has(I))){Q.add(I),E.set(I,H);for(const D of r.get(I)??[])D.isFault||D.isGoTo||T.push(D.to)}}H+=w}for(const v of e.nodes)!l.has(v.id)&&!Z.has(v.id)&&!Q.has(v.id)&&E.set(v.id,H);const W=[...new Set(e.nodes.map(v=>d.get(v.id)??0))].sort((v,T)=>v-T),ee=new Map;for(const v of e.nodes){const T=d.get(v.id)??0;ee.set(T,Math.max(ee.get(T)??Tr,_l(v).h))}const A=new Map;let te=n2;for(const v of W)A.set(v,te),te+=(ee.get(v)??Tr)+jr;const ie=[],re=new Map;for(const v of e.nodes){if(a.has(v.id))continue;const{w:T,h:I}=_l(v),D=J0+(E.get(v.id)??0)-N+Un/2,$=A.get(d.get(v.id)??0)??n2,K=I<Tr?$+(Tr-I)/2:$,B={node:v,x:D-T/2,y:K,w:T,h:I,cx:D};ie.push(B),re.set(v.id,B)}for(const v of e.edges){if(!v.isFault||v.isGoTo||m.has(v.from))continue;const T=re.get(v.from),I=re.get(v.to);if(!T||!I)continue;const D=T.y+T.h/2-(I.y+I.h/2);if(Math.abs(D)<.5)continue;const $=y6(v.to,r);for(const K of $){const B=re.get(K);B&&(B.y+=D)}}let le=0,pe=0;for(const v of ie)le=Math.max(le,v.cx+Un/2),pe=Math.max(pe,v.y+v.h);const se=[];for(const v of e.edges)v.isFault&&v.isGoTo&&se.push(v);for(const v of e.edges){if(!v.isFaultStub)continue;const T=re.get(v.from);T&&(le=Math.max(le,T.x+T.w+dt+qt))}for(const v of se){const T=re.get(v.from);if(!T)continue;const I=re.get(v.to),D=(I==null?void 0:I.node.label)??"";le=Math.max(le,T.x+T.w+dt+qt+dt+o2(D))}const _e=i.map(v=>{var T;return(T=re.get(v))==null?void 0:T.cx}).filter(v=>v!==void 0);let Ee;if(_e.length)Ee=_e.reduce((v,T)=>v+T,0)/_e.length;else{const v=ie.filter(T=>l.has(T.node.id)).map(T=>T.cx);Ee=v.length?v.reduce((T,I)=>T+I,0)/v.length:(le+r2)/2}const $e=a2(e,r),In=[],pr=new Set;for(const[v,T]of $e){const I=re.get(v);if(!I)continue;let D=1/0,$=-1/0,K=-1/0;for(const fe of T){const We=re.get(fe);We&&(D=Math.min(D,We.x),$=Math.max($,We.x+We.w),K=Math.max(K,We.y+We.h))}if(!Number.isFinite(D))continue;D=Math.min(D,I.x),$=Math.max($,I.x+I.w);for(const fe of e.edges){if(!fe.isFaultStub||!T.has(fe.from))continue;const We=re.get(fe.from);We&&($=Math.max($,We.x+We.w+dt+qt))}for(const fe of se){if(!T.has(fe.from))continue;const We=re.get(fe.from);if(!We)continue;const b=re.get(fe.to),J=(b==null?void 0:b.node.label)??"";$=Math.max($,We.x+We.w+dt+qt+dt+o2(J))}const B=D-i2,q=I.y+I.h+s6,ye=$-D+i2*2,Le=K-q+u6,Re=r.get(v)??[],we=Re.find(fe=>fe.isDefault&&!fe.isFault&&!fe.isGoTo),ze=we==null?void 0:we.to,yt=ze?re.get(ze):void 0,mo=ze?T.has(ze):!1,Wi=I.cx,Gi=q,Zi=B+ye,Yi=q+30;In.push({loopId:v,bodyIds:T,x:B,y:q,w:ye,h:Le,forEachChip:{x:Wi,y:Gi},afterLastChip:{x:Zi,y:Yi},afterLastTargetId:yt&&!mo&&ze!==v?ze:void 0}),le=Math.max(le,B+ye),pe=Math.max(pe,q+Le);for(const fe of e.edges)fe.to===v&&T.has(fe.from)&&pr.add(`${fe.from}->${fe.to}`);for(const fe of Re)fe.isFault||fe.isGoTo||pr.add(`${fe.from}->${fe.to}`)}return{width:le+r2,height:pe+e6,placed:ie,byId:re,groups:f6(e,re),loops:In,suppressedEdges:pr,spineCenterX:Ee}}const Uc=`0 0 0 1px ${C.canvasBg}, 0 0 0 3px ${C.focusBorder}`;function C6({group:e,selected:t}){return u.jsx("div",{style:{position:"absolute",left:e.x,top:e.y,width:e.w,height:e.h,borderRadius:C.radiusLg,border:`1px solid ${t?C.focusBorder:C.borderDefault}`,backgroundColor:"rgba(120,120,140,0.06)",boxShadow:t?Uc:C.shadowSm}})}function x6({group:e,onCollapse:t,onSelect:n}){return u.jsxs("div",{"data-no-pan":!0,onClick:r=>{r.stopPropagation(),n()},title:e.label,style:{position:"absolute",top:e.y,left:e.x,width:e.w,height:lo,boxSizing:"border-box",display:"flex",alignItems:"center",gap:8,padding:"0 12px",borderTopLeftRadius:C.radiusLg,borderTopRightRadius:C.radiusLg,backgroundColor:C.flowAction,fontSize:12,fontWeight:700,color:C.textInverse,fontFamily:C.fontFamily,cursor:"pointer"},children:[u.jsx("button",{type:"button","data-no-pan":!0,onClick:r=>{r.stopPropagation(),t()},title:"Collapse group",style:{flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",width:18,height:18,padding:0,border:"none",background:"transparent",color:C.textInverse,cursor:"pointer"},children:u.jsx(ho,{size:14})}),u.jsx("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.label}),u.jsx("span",{style:{flexShrink:0,opacity:.85,fontWeight:600},children:e.count})]})}function w6({edge:e,from:t,to:n,boxes:r,siblings:o}){if(!t||!n&&!e.isFaultStub)return null;const i=e.isFault?C.statusNegative:C.edgeNeutral,l=e.isFault?"url(#fd-arrow-fault)":"url(#fd-arrow)",s=e.isFault?"5 4":void 0,{d:a}=Es(e,t,n,r,o);return u.jsx("path",{d:a,stroke:i,strokeWidth:1.6,fill:"none",strokeDasharray:s,markerEnd:l})}function c2({x:e,y:t,text:n,fault:r}){const o=Math.max(30,n.length*7+16),i=20,l=C.bgElevated,s=r?C.statusNegative:C.borderStrong,a=r?C.statusNegative:C.textPrimary,c=4;return u.jsxs("g",{children:[u.jsx("rect",{x:e-o/2-c,y:t-i/2-c,width:o+c*2,height:i+c*2,rx:4+c,fill:C.canvasBg}),u.jsx("rect",{x:e-o/2,y:t-i/2,width:o,height:i,rx:4,fill:l,stroke:s,strokeWidth:1}),u.jsx("text",{x:e,y:t+1,textAnchor:"middle",dominantBaseline:"middle",fontSize:11,fontWeight:700,fontFamily:C.fontFamily,fill:a,children:n})]})}function Wn({top:e}){return u.jsx("div",{style:{position:"absolute",left:"50%",transform:"translateX(-50%)",[e?"top":"bottom"]:-4,width:8,height:8,borderRadius:"50%",backgroundColor:C.textMuted,border:`2px solid ${C.canvasBg}`}})}function S6(e){const t=(e.stepSubtype??"").toLowerCase(),n=(e.actionType??"").toLowerCase();return t==="managedcontentroleinteractivestep"||n==="managedcontentrolestepinteractive"?"managedContentStep":t.endsWith("interactivestep")||n.endsWith("stepinteractive")?"interactiveStep":t.endsWith("backgroundstep")||n.endsWith("stepbackground")?"subflow":"action"}function E6({placed:e,selected:t,onSelect:n,onStepSelect:r,selectedStepName:o}){const{node:i}=e,l=i.steps??[];return u.jsxs("div",{"data-no-pan":!0,"data-mv-id":i.id,onClick:()=>n(i.id),title:i.description??i.label,style:{position:"absolute",left:e.x,top:e.y,width:e.w,minHeight:e.h,boxSizing:"border-box",backgroundColor:C.bgElevated,border:`1px solid ${t?C.interactivePrimary:C.borderDefault}`,outline:t?`1px solid ${C.interactivePrimary}`:void 0,borderRadius:C.radiusMd,boxShadow:t?C.shadowXl:C.panelShadow,cursor:"pointer",overflow:"hidden"},children:[u.jsx(Wn,{top:!0}),u.jsx(Wn,{}),u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,height:zc,padding:"0 12px",boxSizing:"border-box",backgroundColor:C.bgElevated,color:C.textBright,borderBottom:`1px solid ${C.separator}`},children:[u.jsx("span",{style:{flexShrink:0,width:24,height:24,display:"inline-flex",alignItems:"center",justifyContent:"center",color:C.textPrimary},children:u.jsx(io,{kind:"stage",size:24})}),u.jsx("div",{style:{minWidth:0,flex:1},children:u.jsx("div",{style:{fontSize:13,fontWeight:700,lineHeight:1.2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i.label})})]}),u.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:Dc,padding:"0 12px",fontSize:11,fontWeight:700,color:C.textSecondary,textTransform:"uppercase",letterSpacing:.5,borderBottom:`1px solid ${C.separator}`},children:u.jsxs("span",{children:[l.length," ",l.length===1?"Step":"Steps"]})}),u.jsx("div",{children:l.map((s,a)=>{const c=o===s.name;return u.jsxs("div",{"data-no-pan":!0,"data-mv-id":V0(i.id,s.name),onClick:d=>{d.stopPropagation(),r==null||r(i.id,s.name)},style:{display:"flex",alignItems:"center",gap:10,height:Vc,padding:"0 12px",boxSizing:"border-box",borderBottom:a<l.length-1?`1px solid ${C.separator}`:"none",color:C.textPrimary,cursor:"pointer",backgroundColor:c?C.bgSurfaceHover:"transparent"},title:s.actionName?`${s.label} (${s.actionName})`:s.label,children:[u.jsx("span",{style:{flexShrink:0,width:22,height:22,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:u.jsx(io,{kind:S6(s),size:22})}),u.jsx("div",{style:{minWidth:0,flex:1,fontSize:12.5,fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:s.label})]},s.name)})})]})}function k6({placed:e,selected:t,collapsible:n,isCollapsed:r,isGroupSummary:o,onSelect:i,onSelectStep:l,selectedStepName:s,onExpandGroup:a,onToggleCollapse:c}){var m,g;const{node:d}=e;if(o){const y=d.groupConnections,S=y?`${y.incoming} incoming, ${y.outgoing} outgoing connections`:void 0;return u.jsxs("div",{"data-no-pan":!0,onClick:()=>i(d.id),title:d.label,style:{position:"absolute",left:e.x,top:e.y,width:e.w,minHeight:e.h,boxSizing:"border-box",backgroundColor:"rgba(120,120,140,0.06)",border:`1px solid ${t?C.focusBorder:C.borderDefault}`,borderRadius:C.radiusLg,boxShadow:t?Uc:C.shadowSm,cursor:"pointer"},children:[u.jsx(Wn,{top:!0}),u.jsx(Wn,{}),u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,height:lo,padding:"0 12px",boxSizing:"border-box",borderTopLeftRadius:C.radiusLg,borderTopRightRadius:C.radiusLg,backgroundColor:C.flowAction,color:C.textInverse},children:[u.jsx("button",{type:"button","data-no-pan":!0,onClick:L=>{L.stopPropagation(),a==null||a()},title:"Expand group",style:{flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",width:18,height:18,padding:0,border:"none",background:"transparent",color:C.textInverse,cursor:"pointer"},children:u.jsx(ur,{size:14})}),u.jsx("span",{style:{flex:1,minWidth:0,fontSize:12,fontWeight:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:d.label}),u.jsx("span",{style:{flexShrink:0,opacity:.85,fontSize:12,fontWeight:600},children:((g=(m=e.node.detail)==null?void 0:m.match(/^\d+/))==null?void 0:g[0])??""})]}),u.jsx("div",{style:{padding:Bc},children:u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,height:bc,padding:"0 12px",boxSizing:"border-box",backgroundColor:C.bgElevated,border:`1px solid ${C.borderDefault}`,borderRadius:C.radiusMd},children:[u.jsx("span",{style:{flexShrink:0,width:34,height:34,borderRadius:C.radiusMd,backgroundColor:C.flowOrchestration,display:"inline-flex",alignItems:"center",justifyContent:"center",color:C.textInverse},children:u.jsx(e0,{size:18})}),u.jsxs("div",{style:{minWidth:0,flex:1},children:[u.jsx("div",{style:{fontSize:13,fontWeight:700,color:C.textBright,lineHeight:1.2},children:d.detail?d.detail.replace(/^(\d+) element/,"$1 Element"):"Elements"}),S?u.jsx("div",{style:{fontSize:11,fontStyle:"italic",color:C.textSecondary,marginTop:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:S}):null]})]})})]})}return d.kind==="stage"&&d.steps&&d.steps.length>0?u.jsx(E6,{placed:e,selected:t,onSelect:i,onStepSelect:l,selectedStepName:s}):d.kind==="end"?u.jsx("div",{style:{position:"absolute",left:e.x,top:e.y,width:e.w,height:e.h,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",boxShadow:`0 0 0 4px ${C.canvasBg}, ${C.shadowMd}`},title:"End",children:u.jsx(io,{kind:"end",size:e.w,title:"End"})}):u.jsxs("div",{"data-no-pan":!0,"data-mv-id":d.id,onClick:()=>i(d.id),style:{position:"absolute",left:e.x,top:e.y,width:e.w,minHeight:e.h,backgroundColor:C.bgElevated,border:`1px solid ${t?C.interactivePrimary:C.borderDefault}`,outline:t?`1px solid ${C.interactivePrimary}`:void 0,borderRadius:C.radiusMd,display:"flex",alignItems:"center",gap:12,padding:"0 14px 0 10px",boxSizing:"border-box",boxShadow:t?C.shadowXl:C.panelShadow,cursor:"pointer"},title:d.description??d.label,children:[u.jsx(Wn,{top:!0}),u.jsx(Wn,{}),n?u.jsx("button",{type:"button","data-no-pan":!0,onClick:y=>{y.stopPropagation(),c(d.id)},title:r?"Expand branches":"Collapse branches",style:{flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",width:24,height:24,marginLeft:-2,borderRadius:C.radiusSm,border:"none",backgroundColor:"transparent",color:C.textSecondary,cursor:"pointer"},children:r?u.jsx(ur,{size:15}):u.jsx(ho,{size:15})}):null,u.jsx(ku,{kind:d.kind,size:42,glyph:20}),u.jsxs("div",{style:{minWidth:0,flex:1,padding:"8px 0"},children:[u.jsx("div",{style:{fontSize:13.5,fontWeight:700,color:C.textBright,lineHeight:1.2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:d.label}),u.jsx("div",{style:{fontSize:11,color:C.textMuted,marginTop:1},children:d.typeLabel})]})]})}function f2({x:e,y:t,collapsed:n,onToggle:r}){return u.jsxs("button",{type:"button","data-no-pan":!0,onClick:o=>{o.stopPropagation(),r()},title:n?"Expand fault path":"Collapse fault path",style:{position:"absolute",top:t,left:e,transform:"translate(-50%, -50%)",display:"inline-flex",alignItems:"center",gap:5,padding:"4px 10px",borderRadius:C.radiusFull,backgroundColor:C.bgSurface,border:`1px solid ${C.statusNegative}`,boxShadow:`0 0 0 3px ${C.canvasBg}`,fontSize:11.5,fontWeight:700,color:C.statusNegative,fontFamily:C.fontFamily,whiteSpace:"nowrap",cursor:"pointer"},children:["Fault",n?u.jsx(ur,{size:12}):u.jsx(ho,{size:12})]})}const _6=8,d2=20;function p2({x:e,y:t,text:n}){return u.jsx("div",{style:{position:"absolute",top:t,left:e,transform:"translate(-50%, -50%)",height:d2,display:"inline-flex",alignItems:"center",padding:`0 ${_6}px`,borderRadius:d2/2,border:`1px solid ${C.borderDefault}`,background:C.bgSurface,color:C.textSecondary,fontFamily:C.fontFamily,fontSize:11,fontWeight:600,whiteSpace:"nowrap",pointerEvents:"none",lineHeight:1},children:n})}function L6({loop:e}){return u.jsxs(u.Fragment,{children:[u.jsx(p2,{x:e.forEachChip.x,y:e.forEachChip.y,text:"For Each"}),u.jsx(p2,{x:e.afterLastChip.x,y:e.afterLastChip.y,text:"After Last"})]})}function Ll({x:e,y:t,targetLabel:n,onSelect:r,variant:o="below",fault:i=!1}){const l=o==="right"?"translate(0, -50%)":"translate(-50%, 0)",s=i?C.statusNegative:C.borderDefault,a=i?C.statusNegative:C.textSecondary;return u.jsxs("div",{role:r?"button":void 0,tabIndex:r?0:void 0,onClick:r,onKeyDown:r?c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),r())}:void 0,style:{position:"absolute",top:t,left:e,transform:l,display:"inline-flex",alignItems:"center",gap:4,padding:"2px 8px",borderRadius:10,border:`1px solid ${s}`,background:C.bgSurface,color:a,fontFamily:C.fontFamily,fontSize:11,fontWeight:i?700:600,whiteSpace:"nowrap",lineHeight:1.4,cursor:r?"pointer":"default",userSelect:"none"},children:[u.jsx("span",{"aria-hidden":"true",children:"→"}),n]})}const h2=6,m2=24,Do=22;function M6({layout:e,model:t,zoom:n,pan:r,selectedId:o,selectedGroupId:i,collapsedBranches:l,branchSources:s,collapsedFaults:a,onSelect:c,onSelectGroup:d,onSelectStep:m,selectedStep:g,onToggleCollapse:y,onToggleFault:S,onToggleGroup:L}){return u.jsxs("div",{style:{position:"absolute",top:0,left:0,width:e.width,height:e.height,transform:`translate(${r.x}px, ${r.y}px) scale(${n})`,transformOrigin:"0 0",willChange:"transform"},children:[e.groups.map(w=>u.jsx(C6,{group:w,selected:w.id===i},w.id)),e.loops.map(w=>u.jsx(L6,{loop:w},`loop-${w.loopId}`)),u.jsxs("svg",{width:e.width,height:e.height,style:{position:"absolute",inset:0,pointerEvents:"none",overflow:"visible"},children:[u.jsxs("defs",{children:[u.jsx("marker",{id:"fd-arrow",viewBox:"0 0 10 10",refX:"8",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:u.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:C.edgeNeutral})}),u.jsx("marker",{id:"fd-arrow-fault",viewBox:"0 0 10 10",refX:"8",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:u.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:C.statusNegative})})]}),(()=>{const w=new Set;for(const N of e.loops)for(const M of t.edges)M.from===N.loopId&&(M.isFault||w.add(`${M.from}->${M.to}`));const p=new Map,f=new Map;for(const N of t.edges){if(N.isFault||N.isGoTo)continue;const M=`${N.from}->${N.to}`;if(e.suppressedEdges.has(M))continue;p.set(M,(p.get(M)??0)+1);const G=f.get(M);G?G.push(N):f.set(M,[N])}const h=6,x=N=>Math.max(30,N.length*7+16),k=N=>{const M=f.get(N);if(!M)return 0;let G=0;for(const Z of M)Z.label&&(G=Math.max(G,x(Z.label)));return G+h},j=new Map;for(const N of t.edges)N.isFault||N.isGoTo||e.suppressedEdges.has(`${N.from}->${N.to}`)||j.set(N.from,(j.get(N.from)??0)+1);const P=new Map,E=N=>{if(N.isFault)return;const M=`${N.from}->${N.to}`,G=p.get(M)??1,Z=j.get(N.from)??1;if(G<=1&&Z<=1)return;const Y=P.get(M)??0;return P.set(M,Y+1),{siblingIndex:Y,siblingCount:G,laneGap:k(M),sourceOutgoingCount:Z}};return u.jsxs(u.Fragment,{children:[t.edges.map((N,M)=>e.suppressedEdges.has(`${N.from}->${N.to}`)||N.isGoTo?null:u.jsx(w6,{edge:N,from:e.byId.get(N.from),to:e.byId.get(N.to),boxes:e.placed,siblings:E(N)},`${N.from}-${N.to}-${M}`)),(()=>{const N=new Map;return t.edges.map((M,G)=>{if(!M.label||M.isFault||M.isGoTo)return null;const Z=`${M.from}->${M.to}`;if(e.suppressedEdges.has(Z)||w.has(Z))return null;const Y=e.byId.get(M.from),F=e.byId.get(M.to);if(!Y||!F)return null;const Q=p.get(Z)??1,z=N.get(Z)??0;N.set(Z,z+1);const X=j.get(M.from)??1,R=Q>1||X>1?{siblingIndex:z,siblingCount:Q,laneGap:k(Z),sourceOutgoingCount:X}:void 0,{lx:H,ly:W}=Es(M,Y,F,e.placed,R);return u.jsx(c2,{x:H,y:W,text:M.label},`lbl-${M.from}-${M.to}-${G}`)})})()]})})(),e.loops.map(w=>{const p=t.edges.filter(z=>z.to===w.loopId&&w.bodyIds.has(z.from)&&!z.isFault&&!z.isGoTo);if(p.length===0)return null;const f=p.map(z=>e.byId.get(z.from)).filter(z=>z!==void 0);if(f.length===0)return null;const h=e.byId.get(w.loopId);if(!h)return null;const x=w.forEachChip.x,k=24,j=20,E=f.reduce((z,X)=>Math.max(z,X.y+X.h),0)+k,N=E+j,M=w.x,G=h.x,Z=h.y+h.h/2,Y=12,F=[`M ${x} ${E}`,`V ${N-Y}`,`A ${Y} ${Y} 0 0 1 ${x-Y} ${N}`,`H ${M+Y}`,`A ${Y} ${Y} 0 0 1 ${M} ${N-Y}`,`V ${Z+Y}`,`A ${Y} ${Y} 0 0 1 ${M+Y} ${Z}`,`H ${G}`].join(" "),Q=new Map;for(const z of p)z.label&&Q.set(z.from,z.label);return u.jsxs("g",{children:[f.map(z=>u.jsx("path",{d:Pt([{x:z.cx,y:z.y+z.h},{x:z.cx,y:E},{x,y:E}],It),stroke:C.edgeNeutral,strokeWidth:1.6,fill:"none"},`loopreturn-${w.loopId}-${z.node.id}`)),u.jsx("path",{d:F,stroke:C.edgeNeutral,strokeWidth:1.6,fill:"none"}),f.map(z=>{const X=Q.get(z.node.id);return X?u.jsx(c2,{x:z.cx,y:z.y+z.h+14,text:X},`loopreturn-lbl-${w.loopId}-${z.node.id}`):null})]},`loopreturn-${w.loopId}`)}),e.loops.map(w=>{const p=e.byId.get(w.loopId);if(!p)return null;let f;for(const Y of w.bodyIds){const F=e.byId.get(Y);F&&(!f||F.y<f.y)&&(f=F)}if(!f)return null;const h=p.cx,x=p.y+p.h,k=f.cx,j=f.y,P=w.forEachChip.y,E=14,N=P-E,M=P+E,G=`M ${h} ${x} V ${N}`,Z=h===k?`M ${h} ${M} V ${j}`:Pt([{x:h,y:M},{x:h,y:(M+j)/2},{x:k,y:(M+j)/2},{x:k,y:j}],It);return u.jsxs("g",{children:[u.jsx("path",{d:G,stroke:C.edgeNeutral,strokeWidth:1.6,fill:"none"}),u.jsx("path",{d:Z,stroke:C.edgeNeutral,strokeWidth:1.6,fill:"none",markerEnd:"url(#fd-arrow)"})]},`foreach-${w.loopId}`)}),e.loops.map(w=>{if(!w.afterLastTargetId)return null;const p=e.byId.get(w.loopId),f=e.byId.get(w.afterLastTargetId);if(!p||!f)return null;const h=w.afterLastChip.y,x=14,k=h-x,j=h+x,P=f.cx,E=f.y,N=p.x+p.w,M=p.y+p.h/2,G=w.x+w.w;let Z=w.y;for(const R of w.bodyIds){const H=e.byId.get(R);H&&(Z=Math.max(Z,H.y+H.h))}const Y=Math.min(Z+40,E-20),F=12,Q=[`M ${N} ${M}`,`H ${G-F}`,`A ${F} ${F} 0 0 1 ${G} ${M+F}`,`V ${k}`].join(" "),X=P<=G?[`M ${G} ${j}`,`V ${Y-F}`,`A ${F} ${F} 0 0 1 ${G-F} ${Y}`,`H ${P+F}`,`A ${F} ${F} 0 0 0 ${P} ${Y+F}`,`V ${E}`].join(" "):[`M ${G} ${j}`,`V ${Y-F}`,`A ${F} ${F} 0 0 0 ${G+F} ${Y}`,`H ${P-F}`,`A ${F} ${F} 0 0 1 ${P} ${Y+F}`,`V ${E}`].join(" ");return u.jsxs("g",{children:[u.jsx("path",{d:Q,stroke:C.edgeNeutral,strokeWidth:1.6,fill:"none"}),u.jsx("path",{d:X,stroke:C.edgeNeutral,strokeWidth:1.6,fill:"none",markerEnd:"url(#fd-arrow)"})]},`afterlast-${w.loopId}`)}),(()=>{const w=new Map;for(const f of t.edges)f.isFault||f.isGoTo||e.suppressedEdges.has(`${f.from}->${f.to}`)||w.set(f.from,(w.get(f.from)??0)+1);const p=new Map;return t.edges.map((f,h)=>{if(!f.isGoTo||f.isFault)return null;const x=e.byId.get(f.from);if(!x)return null;const k=p.get(f.from)??0;if(p.set(f.from,k+1),(w.get(f.from)??0)>0){const M=x.x+x.w,G=x.y+x.h/2+k*Do;return u.jsx("line",{x1:M,y1:G,x2:M+m2,y2:G,stroke:C.edgeNeutral,strokeWidth:1.6},`goto-stub-${f.from}-${f.to}-${h}`)}const P=x.cx,E=x.y+x.h,N=x.y+x.h+h2+k*Do;return u.jsx("line",{x1:P,y1:E,x2:P,y2:N,stroke:C.edgeNeutral,strokeWidth:1.6},`goto-stub-${f.from}-${f.to}-${h}`)})})(),t.edges.map((w,p)=>{if(!w.isGoTo||!w.isFault)return null;const f=e.byId.get(w.from);if(!f)return null;const h=f.x+f.w,x=f.y+f.h/2,k=h+dt,j=k+qt,P=j+dt,E=a.has(w.from);return u.jsxs("g",{children:[u.jsx("path",{d:`M ${h} ${x} L ${k} ${x}`,stroke:C.statusNegative,strokeWidth:1.6,fill:"none",strokeDasharray:"5 4"}),!E&&u.jsx("path",{d:`M ${j} ${x} L ${P} ${x}`,stroke:C.statusNegative,strokeWidth:1.6,fill:"none",strokeDasharray:"5 4",markerEnd:"url(#fd-arrow-fault)"})]},`fault-goto-stub-${w.from}-${w.to}-${p}`)})]}),e.placed.map(w=>{const p=w.node.kind==="group"?w.node.id.replace(/^__group__/,""):void 0;return u.jsx(k6,{placed:w,selected:p?p===i:w.node.id===o,collapsible:s.has(w.node.id),isCollapsed:l.has(w.node.id),isGroupSummary:w.node.kind==="group",onSelect:p?()=>d(p):c,onSelectStep:m,selectedStepName:g&&g.stageId===w.node.id?g.stepName:null,onExpandGroup:p?()=>L(p):void 0,onToggleCollapse:y},w.node.id)}),e.groups.map(w=>u.jsx(x6,{group:w,onCollapse:()=>L(w.id),onSelect:()=>d(w.id)},`gh-${w.id}`)),t.edges.map((w,p)=>{if(!w.isFault)return null;const f=e.byId.get(w.from);if(!f)return null;if(w.isGoTo){const j=f.x+f.w,P=f.y+f.h/2,E=j+dt+qt/2;return u.jsx(f2,{x:E,y:P,collapsed:a.has(w.from),onToggle:()=>S(w.from)},`fault-${w.from}-${w.to}-${p}`)}const h=e.byId.get(w.to),{lx:x,ly:k}=Es(w,f,h,e.placed);return u.jsx(f2,{x,y:k,collapsed:a.has(w.from),onToggle:()=>S(w.from)},`fault-${w.from}-${w.to}-${p}`)}),(()=>{const w=new Map,p=new Map(t.nodes.map(h=>[h.id,h])),f=new Map;for(const h of t.edges)h.isFault||h.isGoTo||e.suppressedEdges.has(`${h.from}->${h.to}`)||f.set(h.from,(f.get(h.from)??0)+1);return t.edges.map((h,x)=>{if(!h.isGoTo)return null;const k=e.byId.get(h.from),j=p.get(h.to);if(!k||!j)return null;if(h.isFault){if(a.has(h.from))return null;const Z=k.x+k.w+dt+qt+dt,Y=k.y+k.h/2;return u.jsx(Ll,{x:Z,y:Y,targetLabel:j.label,onSelect:()=>c(h.to),variant:"right",fault:!0},`goto-${h.from}-${h.to}-${x}`)}const P=h.label?`${h.label}: ${j.label}`:j.label,E=w.get(h.from)??0;if(w.set(h.from,E+1),(f.get(h.from)??0)>0){const Z=k.x+k.w+m2,Y=k.y+k.h/2+E*Do;return u.jsx(Ll,{x:Z,y:Y,targetLabel:P,onSelect:()=>c(h.to),variant:"right"},`goto-${h.from}-${h.to}-${x}`)}const M=k.cx,G=k.y+k.h+h2+E*Do;return u.jsx(Ll,{x:M,y:G,targetLabel:P,onSelect:()=>c(h.to)},`goto-${h.from}-${h.to}-${x}`)})})()]})}function T6({icon:e,label:t,onClick:n,primary:r,title:o}){return u.jsxs("button",{type:"button",onClick:n,title:o??t,style:{display:"inline-flex",alignItems:"center",gap:8,backgroundColor:r?C.interactivePrimary:C.bgElevated,color:r?C.interactivePrimaryFg:C.textPrimary,border:r?"none":`1px solid ${C.borderDefault}`,borderRadius:C.radiusMd,padding:"8px 14px",fontSize:13,fontWeight:600,fontFamily:C.fontFamily,cursor:"pointer",boxShadow:C.shadowMd},children:[e,t]})}function j6(){return u.jsx("div",{style:{display:"flex",height:"100%",minHeight:300,alignItems:"center",justifyContent:"center",fontSize:13,color:C.textSecondary,fontFamily:C.fontFamily},children:"Select a .flow-meta.xml file to render the flow."})}function I6(){return null}function P6({message:e}){return u.jsx("div",{style:{display:"flex",height:"100%",minHeight:300,alignItems:"center",justifyContent:"center",padding:"0 24px",fontFamily:C.fontFamily},children:u.jsx("div",{style:{borderRadius:C.radiusMd,border:`1px solid ${C.statusNegative}`,backgroundColor:C.bgElevated,padding:"12px 16px",fontSize:13,color:C.statusNegative},children:e})})}function N6({kind:e}){return u.jsx(ku,{kind:e,size:26,glyph:14})}function g2({color:e,dashed:t}){return u.jsx("svg",{width:"30",height:"10",style:{display:"block"},children:u.jsx("line",{x1:"1",y1:"5",x2:"29",y2:"5",stroke:e,strokeWidth:"2.5",strokeDasharray:t?"5 4":void 0,strokeLinecap:"round"})})}const R6=["start","screen","setScreenProperty","decision","loop","assignment","addPromptInstructions","collectionProcessor","collectionSort","wait","transform","customError","recordLookup","recordCreate","recordUpdate","recordDelete","recordRollback","action","apexAction","apexPluginCall","emailAction","externalCallout","routeWork","addScreenPop","addSkillRequirement","checkAvailability","stage","interactiveStep","subflow","end"],O6={start:"Start",end:"End",collectionProcessor:"Collection Filter",collectionSort:"Collection Sort",apexAction:"Apex Action",emailAction:"Email Action",routeWork:"Route Work",addScreenPop:"Add Screen",addPromptInstructions:"Add Prompt Instructions"};function A6(e){const t=new Set(e.nodes.map(o=>o.kind)),n=o=>{var i;return O6[o]??((i=e.nodes.find(l=>l.kind===o))==null?void 0:i.typeLabel)??o},r=R6.filter(o=>t.has(o)).map(o=>({key:o,icon:u.jsx(N6,{kind:o}),label:n(o)}));return e.edges.some(o=>!o.isFault)&&r.push({key:"connector",icon:u.jsx(g2,{color:C.edgeNeutral}),label:"Connector"}),e.edges.some(o=>o.isFault)&&r.push({key:"fault",icon:u.jsx(g2,{color:C.statusNegative,dashed:!0}),label:"Fault Path"}),r}function so(e){const t=new Map;for(const n of e){let r=t.get(n.from);r||(r=[],t.set(n.from,r)),r.push(n)}return t}function F6(e){const t=e.nodes.filter(r=>r.kind==="start").map(r=>r.id);if(t.length)return t;const n=new Set(e.edges.map(r=>r.to));return e.nodes.filter(r=>!n.has(r.id)).map(r=>r.id)}function H6(e,t,n=so(e.edges)){const r=(n.get(t)??[]).filter(d=>!d.isFault);if(r.length<2)return;const o=r.map(d=>{const m=new Set,g=[d.to];for(;g.length;){const y=g.shift();if(!(m.has(y)||y===t)){m.add(y);for(const S of n.get(y)??[])!S.isFault&&S.to!==t&&g.push(S.to)}}return m});let i=new Set(o[0]);for(let d=1;d<o.length;d++)i=new Set([...i].filter(m=>o[d].has(m)));if(i.size===0)return;const l=new Map,s=[[t,0]];for(;s.length;){const[d,m]=s.shift();if(!l.has(d)){l.set(d,m);for(const g of n.get(d)??[])g.isFault||s.push([g.to,m+1])}}let a,c=1/0;for(const d of i){const m=l.get(d)??1/0;m<c&&(c=m,a=d)}return a}function $6(e,t,n){if(t.size===0&&n.size===0)return e;const r=new Set(e.nodes.map(p=>p.id)),o=new Map(e.nodes.map(p=>[p.id,p])),i=so(e.edges),l=[],s=new Set,a=new Set,c=new Set;for(const p of n)if(r.has(p))for(const f of i.get(p)??[]){if(!f.isFault||f.isGoTo)continue;const h=[f.to];for(;h.length;){const x=h.pop();if(!(c.has(x)||x===p)){c.add(x);for(const k of i.get(x)??[])k.isFault||k.isGoTo||c.has(k.to)||k.to===p||h.push(k.to)}}}for(const p of t){if(!r.has(p))continue;const f=o.get(p);if((f==null?void 0:f.kind)==="loop"){a.add(p);continue}const h=H6(e,p,i);h?(s.add(p),l.push({from:p,to:h,label:void 0})):s.add(p)}const m=[...e.edges.filter(p=>a.has(p.from)?p.isFault?!0:!!p.isDefault:s.has(p.from)?!!p.isFault:!0),...l],g=p=>!!p.isFault&&n.has(p.from)&&r.has(p.from),y=so(m),S=new Set,L=[...F6(e)].filter(p=>!c.has(p));for(;L.length;){const p=L.shift();if(!S.has(p)){S.add(p);for(const f of y.get(p)??[])S.has(f.to)||g(f)||c.has(f.to)||L.push(f.to)}}const w=[];for(const p of m)S.has(p.from)&&(g(p)?w.push({...p,isFaultStub:!0}):S.has(p.to)&&w.push(p));return{...e,nodes:e.nodes.filter(p=>S.has(p.id)),edges:w}}function z6(e,t){if(!e.groups||t.size===0)return e;let n=e.nodes,r=e.edges;for(const o of e.groups){if(!t.has(o.id))continue;const i=new Set(o.memberIds),l=o.memberIds.filter(y=>n.some(S=>S.id===y));if(l.length===0)continue;const s=`__group__${o.id}`;let a=0,c=0;for(const y of r){const S=i.has(y.from),L=i.has(y.to);S&&L||(L&&(a+=1),S&&(c+=1))}const d={id:s,kind:"group",label:o.label,typeLabel:"Group",metaTypeLabel:o.groupType??"Group",detail:`${l.length} element${l.length===1?"":"s"}`,details:[],autoLabel:!1,groupConnections:{incoming:a,outgoing:c}},m=[],g=new Set;for(const y of r){const S=i.has(y.from),L=i.has(y.to);if(S&&L)continue;if(!S&&!L){m.push(y);continue}const w=S?s:y.from,p=L?s:y.to;if(w===p)continue;const f=`${w}->${p}:${y.label??""}:${y.isFault?"f":""}`;g.has(f)||(g.add(f),m.push({...y,from:w,to:p}))}n=[...n.filter(y=>!i.has(y.id)),d],r=m}return{...e,nodes:n,edges:r}}function D6(e){const t=new Map(e.nodes.map(m=>[m.id,m.kind])),n=e.nodes.filter(m=>m.kind==="decision").map(m=>m.id);if(n.length===0)return e;const r=so(e.edges);function o(m){const g=(r.get(m)??[]).filter(y=>!y.isFault&&!y.isGoTo);return g.length===1?g[0].to:void 0}function i(m){const g=new Set;let y=m;for(;y&&!g.has(y);){if(g.add(y),t.get(y)==="end")return y;y=o(y)}}const l=new Map;for(const m of n){const g=[];for(const S of r.get(m)??[]){if(S.isFault||S.isGoTo)continue;const L=i(S.to);if(!L)continue;const w=l.get(L)??L;g.push(w)}if(g.length<2)continue;const y=g[0];for(const S of g)S!==y&&l.set(S,y)}if(l.size===0)return e;const s=m=>l.get(m)??m,a=e.edges.map(m=>l.has(m.to)?{...m,to:s(m.to)}:m),c=new Set;for(const m of a)c.add(m.from),c.add(m.to);const d=e.nodes.filter(m=>!(l.has(m.id)&&!c.has(m.id)));return{...e,nodes:d,edges:a}}function V6(e,t,n,r){return D6($6(z6(e,r),t,n))}function B6(e){const t=new Set,n=new Set;if(!e)return{faultSources:t,branchSources:n};const r=new Map(e.nodes.map(i=>[i.id,i.kind])),o=so(e.edges);for(const[i,l]of o){l.some(c=>c.isFault)&&t.add(i);const s=r.get(i);if(s!=="decision"&&s!=="loop")continue;l.some(c=>!c.isFault&&!c.isGoTo)&&n.add(i)}return{faultSources:t,branchSources:n}}function b6({model:e,error:t,fileName:n,selectableNodes:r}){const[o,i]=_.useState(!1),[l,s]=_.useState(null),[a,c]=_.useState(new Set),[d,m]=_.useState(new Set),[g,y]=_.useState(new Set),[S,L]=_.useState(null),[w,p]=_.useState(null);_.useEffect(()=>{s(null),L(null),p(null),c(new Set),m(new Set),y(new Set),i(!1)},[e==null?void 0:e.sourcePath]);const{faultSources:f,branchSources:h}=_.useMemo(()=>B6(e),[e]),x=_.useMemo(()=>e?V6(e,a,d,g):void 0,[e,a,d,g]),[k,j]=_.useState(void 0),[P,E]=_.useState(!!x);_.useEffect(()=>{if(!x){j(void 0),E(!1);return}j(void 0),E(!0);let se=!1;const _e=setTimeout(()=>{if(se)return;const Ee=v6(x);se||(j(Ee),E(!1))},0);return()=>{se=!0,clearTimeout(_e)}},[x]);const N=_.useMemo(()=>(e==null?void 0:e.nodes.find(se=>se.id===l))??null,[e,l]),M=_.useMemo(()=>{var se;return((se=e==null?void 0:e.groups)==null?void 0:se.find(_e=>_e.id===S))??null},[e,S]),{selectedStepStage:G,selectedStepData:Z}=_.useMemo(()=>{var Ee;if(!e||!w)return{selectedStepStage:null,selectedStepData:null};const se=e.nodes.find($e=>$e.id===w.stageId)??null,_e=((Ee=se==null?void 0:se.steps)==null?void 0:Ee.find($e=>$e.name===w.stepName))??null;return{selectedStepStage:se,selectedStepData:_e}},[e,w]),Y=_.useMemo(()=>e?A6(e):[],[e]),{toggleButton:F,overlay:Q,panel:z,selectMode:X,toggle:R}=A4({nodes:r??[],fileName:n,options:{selectLabel:"Select to Edit",selectingLabel:"Selecting…"}}),H=_.useMemo(()=>({selectMode:X,onToggle:se=>R("detail",se)}),[X,R]),W=se=>_e=>se(Ee=>{const $e=new Set(Ee);return $e.has(_e)?$e.delete(_e):$e.add(_e),$e}),ee=W(c),A=W(m),te=W(y),ie=h.size+f.size,re=ie>0&&a.size>=h.size&&d.size>=f.size,le=()=>{c(re?new Set:new Set(h)),m(re?new Set:new Set(f))},pe=e&&(ie>0||F)?u.jsxs("div",{style:{display:"flex",gap:8},children:[ie>0?u.jsx(T6,{icon:re?u.jsx(Z4,{size:14}):u.jsx(Y4,{size:14}),label:re?"Expand All":"Collapse All",onClick:le,title:"Expand or collapse all branches and fault paths"}):null,F]}):void 0;return u.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%",overflow:"hidden",backgroundColor:C.canvasBg,color:C.textPrimary,fontFamily:C.fontFamily},children:u.jsxs("div",{style:{flex:1,display:"flex",minHeight:0},children:[u.jsx("div",{style:{width:e&&o?336:0,flexShrink:0,overflow:"hidden",transition:"width 240ms cubic-bezier(0.4, 0, 0.2, 1)"},"aria-hidden":!(e&&o),children:e?u.jsx("div",{style:{width:336,height:"100%",display:"flex"},children:u.jsx(Q0,{model:e,selectedNode:N,selectedGroup:M,selectedStepStage:G,selectedStep:Z,onClearSelection:()=>{s(null),L(null),p(null)},onClose:()=>i(!1),rowSelection:H})}):null}),u.jsxs("div",{style:{flex:1,position:"relative",minWidth:0,minHeight:0,display:"flex",flexDirection:"column"},children:[u.jsx(B4,{contentWidth:k==null?void 0:k.width,contentHeight:k==null?void 0:k.height,contentCenterX:k==null?void 0:k.spineCenterX,resetKey:(e==null?void 0:e.sourcePath)??"",overlayTopRight:pe,overlay:Q,zoomControlsVariant:"pill",legend:e&&Y.length?u.jsx("div",{className:"flow-legend-wrap",children:u.jsx(Ud,{items:Y})}):null,onBackgroundClick:()=>{s(null),L(null),p(null)},children:({zoom:se,pan:_e})=>t?u.jsx(P6,{message:t}):e&&(P||!k)?u.jsx(I6,{}):k&&e&&x?u.jsx(M6,{layout:k,model:x,zoom:se,pan:_e,selectedId:l,selectedGroupId:S,collapsedBranches:a,branchSources:h,collapsedFaults:d,onSelect:Ee=>{s(Ee),L(null),p(null),i(!0)},onSelectGroup:Ee=>{L(Ee),s(null),p(null),i(!0)},onSelectStep:(Ee,$e)=>{p({stageId:Ee,stepName:$e}),s(null),L(null),i(!0)},selectedStep:w,onToggleCollapse:ee,onToggleFault:A,onToggleGroup:Ee=>{L(Ee),s(null),te(Ee)}}):u.jsx(j6,{})}),z,o?null:u.jsxs("button",{type:"button",onClick:()=>i(!0),style:{position:"absolute",top:16,left:16,display:"inline-flex",alignItems:"center",gap:6,backgroundColor:C.bgElevated,color:C.textPrimary,border:`1px solid ${C.borderDefault}`,borderRadius:C.radiusMd,padding:"7px 12px",fontSize:12,fontWeight:600,fontFamily:C.fontFamily,cursor:"pointer",zIndex:5},children:[u.jsx(ur,{size:14}),"Flow Information"]})]})]})})}bd({pluginName:"Flow",rootClass:"flow-app",expectedSourceKind:"file",render:(e,t)=>u.jsx(b6,{model:e,fileName:t.fileName,pluginName:"Salesforce Flow",selectableNodes:t.selectableNodes}),validateData:e=>{var t;return(t=e==null?void 0:e.nodes)!=null&&t.length?null:"Flow has no elements"}});export{W6 as A,U as R,m4 as S,_ as r};
|