913 lines
492 KiB
JavaScript
913 lines
492 KiB
JavaScript
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function r(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(s){if(s.ep)return;s.ep=!0;const a=r(s);fetch(s.href,a)}})();function rt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wf={exports:{}},ns={},qf={exports:{}},Re={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var mm;function KS(){if(mm)return Re;mm=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.iterator;function y(T){return T===null||typeof T!="object"?null:(T=m&&T[m]||T["@@iterator"],typeof T=="function"?T:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,E={};function k(T,H,Z){this.props=T,this.context=H,this.refs=E,this.updater=Z||v}k.prototype.isReactComponent={},k.prototype.setState=function(T,H){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,H,"setState")},k.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function C(){}C.prototype=k.prototype;function R(T,H,Z){this.props=T,this.context=H,this.refs=E,this.updater=Z||v}var N=R.prototype=new C;N.constructor=R,S(N,k.prototype),N.isPureReactComponent=!0;var b=Array.isArray,M=Object.prototype.hasOwnProperty,L={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function G(T,H,Z){var te,ie={},le=null,de=null;if(H!=null)for(te in H.ref!==void 0&&(de=H.ref),H.key!==void 0&&(le=""+H.key),H)M.call(H,te)&&!j.hasOwnProperty(te)&&(ie[te]=H[te]);var re=arguments.length-2;if(re===1)ie.children=Z;else if(1<re){for(var he=Array(re),Se=0;Se<re;Se++)he[Se]=arguments[Se+2];ie.children=he}if(T&&T.defaultProps)for(te in re=T.defaultProps,re)ie[te]===void 0&&(ie[te]=re[te]);return{$$typeof:e,type:T,key:le,ref:de,props:ie,_owner:L.current}}function V(T,H){return{$$typeof:e,type:T.type,key:H,ref:T.ref,props:T.props,_owner:T._owner}}function Y(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function ee(T){var H={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(Z){return H[Z]})}var ne=/\/+/g;function J(T,H){return typeof T=="object"&&T!==null&&T.key!=null?ee(""+T.key):H.toString(36)}function I(T,H,Z,te,ie){var le=typeof T;(le==="undefined"||le==="boolean")&&(T=null);var de=!1;if(T===null)de=!0;else switch(le){case"string":case"number":de=!0;break;case"object":switch(T.$$typeof){case e:case t:de=!0}}if(de)return de=T,ie=ie(de),T=te===""?"."+J(de,0):te,b(ie)?(Z="",T!=null&&(Z=T.replace(ne,"$&/")+"/"),I(ie,H,Z,"",function(Se){return Se})):ie!=null&&(Y(ie)&&(ie=V(ie,Z+(!ie.key||de&&de.key===ie.key?"":(""+ie.key).replace(ne,"$&/")+"/")+T)),H.push(ie)),1;if(de=0,te=te===""?".":te+":",b(T))for(var re=0;re<T.length;re++){le=T[re];var he=te+J(le,re);de+=I(le,H,Z,he,ie)}else if(he=y(T),typeof he=="function")for(T=he.call(T),re=0;!(le=T.next()).done;)le=le.value,he=te+J(le,re++),de+=I(le,H,Z,he,ie);else if(le==="object")throw H=String(T),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.");return de}function U(T,H,Z){if(T==null)return T;var te=[],ie=0;return I(T,te,"","",function(le){return H.call(Z,le,ie++)}),te}function F(T){if(T._status===-1){var H=T._result;H=H(),H.then(function(Z){(T._status===0||T._status===-1)&&(T._status=1,T._result=Z)},function(Z){(T._status===0||T._status===-1)&&(T._status=2,T._result=Z)}),T._status===-1&&(T._status=0,T._result=H)}if(T._status===1)return T._result.default;throw T._result}var q={current:null},A={transition:null},O={ReactCurrentDispatcher:q,ReactCurrentBatchConfig:A,ReactCurrentOwner:L};function z(){throw Error("act(...) is not supported in production builds of React.")}return Re.Children={map:U,forEach:function(T,H,Z){U(T,function(){H.apply(this,arguments)},Z)},count:function(T){var H=0;return U(T,function(){H++}),H},toArray:function(T){return U(T,function(H){return H})||[]},only:function(T){if(!Y(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},Re.Component=k,Re.Fragment=r,Re.Profiler=s,Re.PureComponent=R,Re.StrictMode=i,Re.Suspense=d,Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,Re.act=z,Re.cloneElement=function(T,H,Z){if(T==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+T+".");var te=S({},T.props),ie=T.key,le=T.ref,de=T._owner;if(H!=null){if(H.ref!==void 0&&(le=H.ref,de=L.current),H.key!==void 0&&(ie=""+H.key),T.type&&T.type.defaultProps)var re=T.type.defaultProps;for(he in H)M.call(H,he)&&!j.hasOwnProperty(he)&&(te[he]=H[he]===void 0&&re!==void 0?re[he]:H[he])}var he=arguments.length-2;if(he===1)te.children=Z;else if(1<he){re=Array(he);for(var Se=0;Se<he;Se++)re[Se]=arguments[Se+2];te.children=re}return{$$typeof:e,type:T.type,key:ie,ref:le,props:te,_owner:de}},Re.createContext=function(T){return T={$$typeof:u,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},T.Provider={$$typeof:a,_context:T},T.Consumer=T},Re.createElement=G,Re.createFactory=function(T){var H=G.bind(null,T);return H.type=T,H},Re.createRef=function(){return{current:null}},Re.forwardRef=function(T){return{$$typeof:f,render:T}},Re.isValidElement=Y,Re.lazy=function(T){return{$$typeof:g,_payload:{_status:-1,_result:T},_init:F}},Re.memo=function(T,H){return{$$typeof:h,type:T,compare:H===void 0?null:H}},Re.startTransition=function(T){var H=A.transition;A.transition={};try{T()}finally{A.transition=H}},Re.unstable_act=z,Re.useCallback=function(T,H){return q.current.useCallback(T,H)},Re.useContext=function(T){return q.current.useContext(T)},Re.useDebugValue=function(){},Re.useDeferredValue=function(T){return q.current.useDeferredValue(T)},Re.useEffect=function(T,H){return q.current.useEffect(T,H)},Re.useId=function(){return q.current.useId()},Re.useImperativeHandle=function(T,H,Z){return q.current.useImperativeHandle(T,H,Z)},Re.useInsertionEffect=function(T,H){return q.current.useInsertionEffect(T,H)},Re.useLayoutEffect=function(T,H){return q.current.useLayoutEffect(T,H)},Re.useMemo=function(T,H){return q.current.useMemo(T,H)},Re.useReducer=function(T,H,Z){return q.current.useReducer(T,H,Z)},Re.useRef=function(T){return q.current.useRef(T)},Re.useState=function(T){return q.current.useState(T)},Re.useSyncExternalStore=function(T,H,Z){return q.current.useSyncExternalStore(T,H,Z)},Re.useTransition=function(){return q.current.useTransition()},Re.version="18.3.1",Re}var ym;function As(){return ym||(ym=1,qf.exports=KS()),qf.exports}/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var xm;function QS(){if(xm)return ns;xm=1;var e=As(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(f,d,h){var g,m={},y=null,v=null;h!==void 0&&(y=""+h),d.key!==void 0&&(y=""+d.key),d.ref!==void 0&&(v=d.ref);for(g in d)i.call(d,g)&&!a.hasOwnProperty(g)&&(m[g]=d[g]);if(f&&f.defaultProps)for(g in d=f.defaultProps,d)m[g]===void 0&&(m[g]=d[g]);return{$$typeof:t,type:f,key:y,ref:v,props:m,_owner:s.current}}return ns.Fragment=r,ns.jsx=u,ns.jsxs=u,ns}var vm;function JS(){return vm||(vm=1,Wf.exports=QS()),Wf.exports}var w=JS(),aa={},Yf={exports:{}},Nt={},Xf={exports:{}},Gf={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var wm;function ZS(){return wm||(wm=1,function(e){function t(A,O){var z=A.length;A.push(O);e:for(;0<z;){var T=z-1>>>1,H=A[T];if(0<s(H,O))A[T]=O,A[z]=H,z=T;else break e}}function r(A){return A.length===0?null:A[0]}function i(A){if(A.length===0)return null;var O=A[0],z=A.pop();if(z!==O){A[0]=z;e:for(var T=0,H=A.length,Z=H>>>1;T<Z;){var te=2*(T+1)-1,ie=A[te],le=te+1,de=A[le];if(0>s(ie,z))le<H&&0>s(de,ie)?(A[T]=de,A[le]=z,T=le):(A[T]=ie,A[te]=z,T=te);else if(le<H&&0>s(de,z))A[T]=de,A[le]=z,T=le;else break e}}return O}function s(A,O){var z=A.sortIndex-O.sortIndex;return z!==0?z:A.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var d=[],h=[],g=1,m=null,y=3,v=!1,S=!1,E=!1,k=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(A){for(var O=r(h);O!==null;){if(O.callback===null)i(h);else if(O.startTime<=A)i(h),O.sortIndex=O.expirationTime,t(d,O);else break;O=r(h)}}function b(A){if(E=!1,N(A),!S)if(r(d)!==null)S=!0,F(M);else{var O=r(h);O!==null&&q(b,O.startTime-A)}}function M(A,O){S=!1,E&&(E=!1,C(G),G=-1),v=!0;var z=y;try{for(N(O),m=r(d);m!==null&&(!(m.expirationTime>O)||A&&!ee());){var T=m.callback;if(typeof T=="function"){m.callback=null,y=m.priorityLevel;var H=T(m.expirationTime<=O);O=e.unstable_now(),typeof H=="function"?m.callback=H:m===r(d)&&i(d),N(O)}else i(d);m=r(d)}if(m!==null)var Z=!0;else{var te=r(h);te!==null&&q(b,te.startTime-O),Z=!1}return Z}finally{m=null,y=z,v=!1}}var L=!1,j=null,G=-1,V=5,Y=-1;function ee(){return!(e.unstable_now()-Y<V)}function ne(){if(j!==null){var A=e.unstable_now();Y=A;var O=!0;try{O=j(!0,A)}finally{O?J():(L=!1,j=null)}}else L=!1}var J;if(typeof R=="function")J=function(){R(ne)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,U=I.port2;I.port1.onmessage=ne,J=function(){U.postMessage(null)}}else J=function(){k(ne,0)};function F(A){j=A,L||(L=!0,J())}function q(A,O){G=k(function(){A(e.unstable_now())},O)}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(A){A.callback=null},e.unstable_continueExecution=function(){S||v||(S=!0,F(M))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return r(d)},e.unstable_next=function(A){switch(y){case 1:case 2:case 3:var O=3;break;default:O=y}var z=y;y=O;try{return A()}finally{y=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,O){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var z=y;y=A;try{return O()}finally{y=z}},e.unstable_scheduleCallback=function(A,O,z){var T=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?T+z:T):z=T,A){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=z+H,A={id:g++,callback:O,priorityLevel:A,startTime:z,expirationTime:H,sortIndex:-1},z>T?(A.sortIndex=z,t(h,A),r(d)===null&&A===r(h)&&(E?(C(G),G=-1):E=!0,q(b,z-T))):(A.sortIndex=H,t(d,A),S||v||(S=!0,F(M))),A},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(A){var O=y;return function(){var z=y;y=O;try{return A.apply(this,arguments)}finally{y=z}}}}(Gf)),Gf}var Sm;function eE(){return Sm||(Sm=1,Xf.exports=ZS()),Xf.exports}/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Em;function tE(){if(Em)return Nt;Em=1;var e=As(),t=eE();function r(n){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+n,l=1;l<arguments.length;l++)o+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+n+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function a(n,o){u(n,o),u(n+"Capture",o)}function u(n,o){for(s[n]=o,n=0;n<o.length;n++)i.add(o[n])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,h=/^[: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]*$/,g={},m={};function y(n){return d.call(m,n)?!0:d.call(g,n)?!1:h.test(n)?m[n]=!0:(g[n]=!0,!1)}function v(n,o,l,c){if(l!==null&&l.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return c?!1:l!==null?!l.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function S(n,o,l,c){if(o===null||typeof o>"u"||v(n,o,l,c))return!0;if(c)return!1;if(l!==null)switch(l.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function E(n,o,l,c,p,x,_){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=c,this.attributeNamespace=p,this.mustUseProperty=l,this.propertyName=n,this.type=o,this.sanitizeURL=x,this.removeEmptyString=_}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){k[n]=new E(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var o=n[0];k[o]=new E(o,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){k[n]=new E(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){k[n]=new E(n,2,!1,n,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(n){k[n]=new E(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){k[n]=new E(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){k[n]=new E(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){k[n]=new E(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){k[n]=new E(n,5,!1,n.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function R(n){return n[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(n){var o=n.replace(C,R);k[o]=new E(o,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var o=n.replace(C,R);k[o]=new E(o,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var o=n.replace(C,R);k[o]=new E(o,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){k[n]=new E(n,1,!1,n.toLowerCase(),null,!1,!1)}),k.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){k[n]=new E(n,1,!1,n.toLowerCase(),null,!0,!0)});function N(n,o,l,c){var p=k.hasOwnProperty(o)?k[o]:null;(p!==null?p.type!==0:c||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(S(o,l,p,c)&&(l=null),c||p===null?y(o)&&(l===null?n.removeAttribute(o):n.setAttribute(o,""+l)):p.mustUseProperty?n[p.propertyName]=l===null?p.type===3?!1:"":l:(o=p.attributeName,c=p.attributeNamespace,l===null?n.removeAttribute(o):(p=p.type,l=p===3||p===4&&l===!0?"":""+l,c?n.setAttributeNS(c,o,l):n.setAttribute(o,l))))}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,M=Symbol.for("react.element"),L=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),Y=Symbol.for("react.provider"),ee=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),q=Symbol.for("react.offscreen"),A=Symbol.iterator;function O(n){return n===null||typeof n!="object"?null:(n=A&&n[A]||n["@@iterator"],typeof n=="function"?n:null)}var z=Object.assign,T;function H(n){if(T===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);T=o&&o[1]||""}return`
|
||
`+T+n}var Z=!1;function te(n,o){if(!n||Z)return"";Z=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(K){var c=K}Reflect.construct(n,[],o)}else{try{o.call()}catch(K){c=K}n.call(o.prototype)}else{try{throw Error()}catch(K){c=K}n()}}catch(K){if(K&&c&&typeof K.stack=="string"){for(var p=K.stack.split(`
|
||
`),x=c.stack.split(`
|
||
`),_=p.length-1,$=x.length-1;1<=_&&0<=$&&p[_]!==x[$];)$--;for(;1<=_&&0<=$;_--,$--)if(p[_]!==x[$]){if(_!==1||$!==1)do if(_--,$--,0>$||p[_]!==x[$]){var D=`
|
||
`+p[_].replace(" at new "," at ");return n.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",n.displayName)),D}while(1<=_&&0<=$);break}}}finally{Z=!1,Error.prepareStackTrace=l}return(n=n?n.displayName||n.name:"")?H(n):""}function ie(n){switch(n.tag){case 5:return H(n.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return n=te(n.type,!1),n;case 11:return n=te(n.type.render,!1),n;case 1:return n=te(n.type,!0),n;default:return""}}function le(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case j:return"Fragment";case L:return"Portal";case V:return"Profiler";case G:return"StrictMode";case J:return"Suspense";case I:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case ee:return(n.displayName||"Context")+".Consumer";case Y:return(n._context.displayName||"Context")+".Provider";case ne:var o=n.render;return n=n.displayName,n||(n=o.displayName||o.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case U:return o=n.displayName||null,o!==null?o:le(n.type)||"Memo";case F:o=n._payload,n=n._init;try{return le(n(o))}catch{}}return null}function de(n){var o=n.type;switch(n.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=o.render,n=n.displayName||n.name||"",o.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return le(o);case 8:return o===G?"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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function re(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function he(n){var o=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Se(n){var o=he(n)?"checked":"value",l=Object.getOwnPropertyDescriptor(n.constructor.prototype,o),c=""+n[o];if(!n.hasOwnProperty(o)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var p=l.get,x=l.set;return Object.defineProperty(n,o,{configurable:!0,get:function(){return p.call(this)},set:function(_){c=""+_,x.call(this,_)}}),Object.defineProperty(n,o,{enumerable:l.enumerable}),{getValue:function(){return c},setValue:function(_){c=""+_},stopTracking:function(){n._valueTracker=null,delete n[o]}}}}function we(n){n._valueTracker||(n._valueTracker=Se(n))}function ge(n){if(!n)return!1;var o=n._valueTracker;if(!o)return!0;var l=o.getValue(),c="";return n&&(c=he(n)?n.checked?"true":"false":n.value),n=c,n!==l?(o.setValue(n),!0):!1}function Pe(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function $e(n,o){var l=o.checked;return z({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??n._wrapperState.initialChecked})}function Ke(n,o){var l=o.defaultValue==null?"":o.defaultValue,c=o.checked!=null?o.checked:o.defaultChecked;l=re(o.value!=null?o.value:l),n._wrapperState={initialChecked:c,initialValue:l,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Xt(n,o){o=o.checked,o!=null&&N(n,"checked",o,!1)}function Cr(n,o){Xt(n,o);var l=re(o.value),c=o.type;if(l!=null)c==="number"?(l===0&&n.value===""||n.value!=l)&&(n.value=""+l):n.value!==""+l&&(n.value=""+l);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}o.hasOwnProperty("value")?_r(n,o.type,l):o.hasOwnProperty("defaultValue")&&_r(n,o.type,re(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(n.defaultChecked=!!o.defaultChecked)}function lo(n,o,l){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var c=o.type;if(!(c!=="submit"&&c!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+n._wrapperState.initialValue,l||o===n.value||(n.value=o),n.defaultValue=o}l=n.name,l!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,l!==""&&(n.name=l)}function _r(n,o,l){(o!=="number"||Pe(n.ownerDocument)!==n)&&(l==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+l&&(n.defaultValue=""+l))}var Gt=Array.isArray;function fn(n,o,l,c){if(n=n.options,o){o={};for(var p=0;p<l.length;p++)o["$"+l[p]]=!0;for(l=0;l<n.length;l++)p=o.hasOwnProperty("$"+n[l].value),n[l].selected!==p&&(n[l].selected=p),p&&c&&(n[l].defaultSelected=!0)}else{for(l=""+re(l),o=null,p=0;p<n.length;p++){if(n[p].value===l){n[p].selected=!0,c&&(n[p].defaultSelected=!0);return}o!==null||n[p].disabled||(o=n[p])}o!==null&&(o.selected=!0)}}function En(n,o){if(o.dangerouslySetInnerHTML!=null)throw Error(r(91));return z({},o,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function Wn(n,o){var l=o.value;if(l==null){if(l=o.children,o=o.defaultValue,l!=null){if(o!=null)throw Error(r(92));if(Gt(l)){if(1<l.length)throw Error(r(93));l=l[0]}o=l}o==null&&(o=""),l=o}n._wrapperState={initialValue:re(l)}}function ao(n,o){var l=re(o.value),c=re(o.defaultValue);l!=null&&(l=""+l,l!==n.value&&(n.value=l),o.defaultValue==null&&n.defaultValue!==l&&(n.defaultValue=l)),c!=null&&(n.defaultValue=""+c)}function qn(n){var o=n.textContent;o===n._wrapperState.initialValue&&o!==""&&o!==null&&(n.value=o)}function Yn(n){switch(n){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 Xn(n,o){return n==null||n==="http://www.w3.org/1999/xhtml"?Yn(o):n==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var uo,co=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,l,c,p){MSApp.execUnsafeLocalFunction(function(){return n(o,l,c,p)})}:n}(function(n,o){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=o;else{for(uo=uo||document.createElement("div"),uo.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=uo.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)n.appendChild(o.firstChild)}});function Nr(n,o){if(o){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=o;return}}n.textContent=o}var br={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},Ju=["Webkit","ms","Moz","O"];Object.keys(br).forEach(function(n){Ju.forEach(function(o){o=o+n.charAt(0).toUpperCase()+n.substring(1),br[o]=br[n]})});function qs(n,o,l){return o==null||typeof o=="boolean"||o===""?"":l||typeof o!="number"||o===0||br.hasOwnProperty(n)&&br[n]?(""+o).trim():o+"px"}function Ys(n,o){n=n.style;for(var l in o)if(o.hasOwnProperty(l)){var c=l.indexOf("--")===0,p=qs(l,o[l],c);l==="float"&&(l="cssFloat"),c?n.setProperty(l,p):n[l]=p}}var Zu=z({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 hi(n,o){if(o){if(Zu[n]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(r(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(r(61))}if(o.style!=null&&typeof o.style!="object")throw Error(r(62))}}function pi(n,o){if(n.indexOf("-")===-1)return typeof o.is=="string";switch(n){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 gi=null;function mi(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var yi=null,Gn=null,Kn=null;function Xs(n){if(n=Bi(n)){if(typeof yi!="function")throw Error(r(280));var o=n.stateNode;o&&(o=kl(o),yi(n.stateNode,n.type,o))}}function xi(n){Gn?Kn?Kn.push(n):Kn=[n]:Gn=n}function Gs(){if(Gn){var n=Gn,o=Kn;if(Kn=Gn=null,Xs(n),o)for(n=0;n<o.length;n++)Xs(o[n])}}function Ks(n,o){return n(o)}function Qs(){}var vi=!1;function Js(n,o,l){if(vi)return n(o,l);vi=!0;try{return Ks(n,o,l)}finally{vi=!1,(Gn!==null||Kn!==null)&&(Qs(),Gs())}}function Pr(n,o){var l=n.stateNode;if(l===null)return null;var c=kl(l);if(c===null)return null;l=c[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(r(231,o,typeof l));return l}var wi=!1;if(f)try{var Rr={};Object.defineProperty(Rr,"passive",{get:function(){wi=!0}}),window.addEventListener("test",Rr,Rr),window.removeEventListener("test",Rr,Rr)}catch{wi=!1}function ec(n,o,l,c,p,x,_,$,D){var K=Array.prototype.slice.call(arguments,3);try{o.apply(l,K)}catch(ae){this.onError(ae)}}var Tr=!1,fo=null,ho=!1,Si=null,tc={onError:function(n){Tr=!0,fo=n}};function nc(n,o,l,c,p,x,_,$,D){Tr=!1,fo=null,ec.apply(tc,arguments)}function Zs(n,o,l,c,p,x,_,$,D){if(nc.apply(this,arguments),Tr){if(Tr){var K=fo;Tr=!1,fo=null}else throw Error(r(198));ho||(ho=!0,Si=K)}}function dn(n){var o=n,l=n;if(n.alternate)for(;o.return;)o=o.return;else{n=o;do o=n,(o.flags&4098)!==0&&(l=o.return),n=o.return;while(n)}return o.tag===3?l:null}function el(n){if(n.tag===13){var o=n.memoizedState;if(o===null&&(n=n.alternate,n!==null&&(o=n.memoizedState)),o!==null)return o.dehydrated}return null}function tl(n){if(dn(n)!==n)throw Error(r(188))}function rc(n){var o=n.alternate;if(!o){if(o=dn(n),o===null)throw Error(r(188));return o!==n?null:n}for(var l=n,c=o;;){var p=l.return;if(p===null)break;var x=p.alternate;if(x===null){if(c=p.return,c!==null){l=c;continue}break}if(p.child===x.child){for(x=p.child;x;){if(x===l)return tl(p),n;if(x===c)return tl(p),o;x=x.sibling}throw Error(r(188))}if(l.return!==c.return)l=p,c=x;else{for(var _=!1,$=p.child;$;){if($===l){_=!0,l=p,c=x;break}if($===c){_=!0,c=p,l=x;break}$=$.sibling}if(!_){for($=x.child;$;){if($===l){_=!0,l=x,c=p;break}if($===c){_=!0,c=x,l=p;break}$=$.sibling}if(!_)throw Error(r(189))}}if(l.alternate!==c)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?n:o}function nl(n){return n=rc(n),n!==null?rl(n):null}function rl(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var o=rl(n);if(o!==null)return o;n=n.sibling}return null}var ol=t.unstable_scheduleCallback,il=t.unstable_cancelCallback,sl=t.unstable_shouldYield,oc=t.unstable_requestPaint,Ve=t.unstable_now,ic=t.unstable_getCurrentPriorityLevel,Ei=t.unstable_ImmediatePriority,ll=t.unstable_UserBlockingPriority,po=t.unstable_NormalPriority,sc=t.unstable_LowPriority,ki=t.unstable_IdlePriority,go=null,Ft=null;function lc(n){if(Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(go,n,void 0,(n.current.flags&128)===128)}catch{}}var Tt=Math.clz32?Math.clz32:cc,ac=Math.log,uc=Math.LN2;function cc(n){return n>>>=0,n===0?32:31-(ac(n)/uc|0)|0}var mo=64,yo=4194304;function kn(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function xo(n,o){var l=n.pendingLanes;if(l===0)return 0;var c=0,p=n.suspendedLanes,x=n.pingedLanes,_=l&268435455;if(_!==0){var $=_&~p;$!==0?c=kn($):(x&=_,x!==0&&(c=kn(x)))}else _=l&~p,_!==0?c=kn(_):x!==0&&(c=kn(x));if(c===0)return 0;if(o!==0&&o!==c&&(o&p)===0&&(p=c&-c,x=o&-o,p>=x||p===16&&(x&4194240)!==0))return o;if((c&4)!==0&&(c|=l&16),o=n.entangledLanes,o!==0)for(n=n.entanglements,o&=c;0<o;)l=31-Tt(o),p=1<<l,c|=n[l],o&=~p;return c}function gw(n,o){switch(n){case 1:case 2:case 4:return o+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 o+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 mw(n,o){for(var l=n.suspendedLanes,c=n.pingedLanes,p=n.expirationTimes,x=n.pendingLanes;0<x;){var _=31-Tt(x),$=1<<_,D=p[_];D===-1?(($&l)===0||($&c)!==0)&&(p[_]=gw($,o)):D<=o&&(n.expiredLanes|=$),x&=~$}}function fc(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function Yh(){var n=mo;return mo<<=1,(mo&4194240)===0&&(mo=64),n}function dc(n){for(var o=[],l=0;31>l;l++)o.push(n);return o}function Ci(n,o,l){n.pendingLanes|=o,o!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,o=31-Tt(o),n[o]=l}function yw(n,o){var l=n.pendingLanes&~o;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=o,n.mutableReadLanes&=o,n.entangledLanes&=o,o=n.entanglements;var c=n.eventTimes;for(n=n.expirationTimes;0<l;){var p=31-Tt(l),x=1<<p;o[p]=0,c[p]=-1,n[p]=-1,l&=~x}}function hc(n,o){var l=n.entangledLanes|=o;for(n=n.entanglements;l;){var c=31-Tt(l),p=1<<c;p&o|n[c]&o&&(n[c]|=o),l&=~p}}var Me=0;function Xh(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var Gh,pc,Kh,Qh,Jh,gc=!1,al=[],Qn=null,Jn=null,Zn=null,_i=new Map,Ni=new Map,er=[],xw="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 Zh(n,o){switch(n){case"focusin":case"focusout":Qn=null;break;case"dragenter":case"dragleave":Jn=null;break;case"mouseover":case"mouseout":Zn=null;break;case"pointerover":case"pointerout":_i.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ni.delete(o.pointerId)}}function bi(n,o,l,c,p,x){return n===null||n.nativeEvent!==x?(n={blockedOn:o,domEventName:l,eventSystemFlags:c,nativeEvent:x,targetContainers:[p]},o!==null&&(o=Bi(o),o!==null&&pc(o)),n):(n.eventSystemFlags|=c,o=n.targetContainers,p!==null&&o.indexOf(p)===-1&&o.push(p),n)}function vw(n,o,l,c,p){switch(o){case"focusin":return Qn=bi(Qn,n,o,l,c,p),!0;case"dragenter":return Jn=bi(Jn,n,o,l,c,p),!0;case"mouseover":return Zn=bi(Zn,n,o,l,c,p),!0;case"pointerover":var x=p.pointerId;return _i.set(x,bi(_i.get(x)||null,n,o,l,c,p)),!0;case"gotpointercapture":return x=p.pointerId,Ni.set(x,bi(Ni.get(x)||null,n,o,l,c,p)),!0}return!1}function ep(n){var o=Ir(n.target);if(o!==null){var l=dn(o);if(l!==null){if(o=l.tag,o===13){if(o=el(l),o!==null){n.blockedOn=o,Jh(n.priority,function(){Kh(l)});return}}else if(o===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function ul(n){if(n.blockedOn!==null)return!1;for(var o=n.targetContainers;0<o.length;){var l=yc(n.domEventName,n.eventSystemFlags,o[0],n.nativeEvent);if(l===null){l=n.nativeEvent;var c=new l.constructor(l.type,l);gi=c,l.target.dispatchEvent(c),gi=null}else return o=Bi(l),o!==null&&pc(o),n.blockedOn=l,!1;o.shift()}return!0}function tp(n,o,l){ul(n)&&l.delete(o)}function ww(){gc=!1,Qn!==null&&ul(Qn)&&(Qn=null),Jn!==null&&ul(Jn)&&(Jn=null),Zn!==null&&ul(Zn)&&(Zn=null),_i.forEach(tp),Ni.forEach(tp)}function Pi(n,o){n.blockedOn===o&&(n.blockedOn=null,gc||(gc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,ww)))}function Ri(n){function o(p){return Pi(p,n)}if(0<al.length){Pi(al[0],n);for(var l=1;l<al.length;l++){var c=al[l];c.blockedOn===n&&(c.blockedOn=null)}}for(Qn!==null&&Pi(Qn,n),Jn!==null&&Pi(Jn,n),Zn!==null&&Pi(Zn,n),_i.forEach(o),Ni.forEach(o),l=0;l<er.length;l++)c=er[l],c.blockedOn===n&&(c.blockedOn=null);for(;0<er.length&&(l=er[0],l.blockedOn===null);)ep(l),l.blockedOn===null&&er.shift()}var vo=b.ReactCurrentBatchConfig,cl=!0;function Sw(n,o,l,c){var p=Me,x=vo.transition;vo.transition=null;try{Me=1,mc(n,o,l,c)}finally{Me=p,vo.transition=x}}function Ew(n,o,l,c){var p=Me,x=vo.transition;vo.transition=null;try{Me=4,mc(n,o,l,c)}finally{Me=p,vo.transition=x}}function mc(n,o,l,c){if(cl){var p=yc(n,o,l,c);if(p===null)Ac(n,o,c,fl,l),Zh(n,c);else if(vw(p,n,o,l,c))c.stopPropagation();else if(Zh(n,c),o&4&&-1<xw.indexOf(n)){for(;p!==null;){var x=Bi(p);if(x!==null&&Gh(x),x=yc(n,o,l,c),x===null&&Ac(n,o,c,fl,l),x===p)break;p=x}p!==null&&c.stopPropagation()}else Ac(n,o,c,null,l)}}var fl=null;function yc(n,o,l,c){if(fl=null,n=mi(c),n=Ir(n),n!==null)if(o=dn(n),o===null)n=null;else if(l=o.tag,l===13){if(n=el(o),n!==null)return n;n=null}else if(l===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null);return fl=n,null}function np(n){switch(n){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(ic()){case Ei:return 1;case ll:return 4;case po:case sc:return 16;case ki:return 536870912;default:return 16}default:return 16}}var tr=null,xc=null,dl=null;function rp(){if(dl)return dl;var n,o=xc,l=o.length,c,p="value"in tr?tr.value:tr.textContent,x=p.length;for(n=0;n<l&&o[n]===p[n];n++);var _=l-n;for(c=1;c<=_&&o[l-c]===p[x-c];c++);return dl=p.slice(n,1<c?1-c:void 0)}function hl(n){var o=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&o===13&&(n=13)):n=o,n===10&&(n=13),32<=n||n===13?n:0}function pl(){return!0}function op(){return!1}function It(n){function o(l,c,p,x,_){this._reactName=l,this._targetInst=p,this.type=c,this.nativeEvent=x,this.target=_,this.currentTarget=null;for(var $ in n)n.hasOwnProperty($)&&(l=n[$],this[$]=l?l(x):x[$]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?pl:op,this.isPropagationStopped=op,this}return z(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=pl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=pl)},persist:function(){},isPersistent:pl}),o}var wo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vc=It(wo),Ti=z({},wo,{view:0,detail:0}),kw=It(Ti),wc,Sc,Ii,gl=z({},Ti,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kc,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Ii&&(Ii&&n.type==="mousemove"?(wc=n.screenX-Ii.screenX,Sc=n.screenY-Ii.screenY):Sc=wc=0,Ii=n),wc)},movementY:function(n){return"movementY"in n?n.movementY:Sc}}),ip=It(gl),Cw=z({},gl,{dataTransfer:0}),_w=It(Cw),Nw=z({},Ti,{relatedTarget:0}),Ec=It(Nw),bw=z({},wo,{animationName:0,elapsedTime:0,pseudoElement:0}),Pw=It(bw),Rw=z({},wo,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Tw=It(Rw),Iw=z({},wo,{data:0}),sp=It(Iw),jw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$w={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"},Aw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mw(n){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(n):(n=Aw[n])?!!o[n]:!1}function kc(){return Mw}var Lw=z({},Ti,{key:function(n){if(n.key){var o=jw[n.key]||n.key;if(o!=="Unidentified")return o}return n.type==="keypress"?(n=hl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?$w[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kc,charCode:function(n){return n.type==="keypress"?hl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?hl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),Dw=It(Lw),Ow=z({},gl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lp=It(Ow),zw=z({},Ti,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kc}),Fw=It(zw),Bw=z({},wo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hw=It(Bw),Vw=z({},gl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),Uw=It(Vw),Ww=[9,13,27,32],Cc=f&&"CompositionEvent"in window,ji=null;f&&"documentMode"in document&&(ji=document.documentMode);var qw=f&&"TextEvent"in window&&!ji,ap=f&&(!Cc||ji&&8<ji&&11>=ji),up=" ",cp=!1;function fp(n,o){switch(n){case"keyup":return Ww.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dp(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var So=!1;function Yw(n,o){switch(n){case"compositionend":return dp(o);case"keypress":return o.which!==32?null:(cp=!0,up);case"textInput":return n=o.data,n===up&&cp?null:n;default:return null}}function Xw(n,o){if(So)return n==="compositionend"||!Cc&&fp(n,o)?(n=rp(),dl=xc=tr=null,So=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return ap&&o.locale!=="ko"?null:o.data;default:return null}}var Gw={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 hp(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o==="input"?!!Gw[n.type]:o==="textarea"}function pp(n,o,l,c){xi(c),o=wl(o,"onChange"),0<o.length&&(l=new vc("onChange","change",null,l,c),n.push({event:l,listeners:o}))}var $i=null,Ai=null;function Kw(n){jp(n,0)}function ml(n){var o=No(n);if(ge(o))return n}function Qw(n,o){if(n==="change")return o}var gp=!1;if(f){var _c;if(f){var Nc="oninput"in document;if(!Nc){var mp=document.createElement("div");mp.setAttribute("oninput","return;"),Nc=typeof mp.oninput=="function"}_c=Nc}else _c=!1;gp=_c&&(!document.documentMode||9<document.documentMode)}function yp(){$i&&($i.detachEvent("onpropertychange",xp),Ai=$i=null)}function xp(n){if(n.propertyName==="value"&&ml(Ai)){var o=[];pp(o,Ai,n,mi(n)),Js(Kw,o)}}function Jw(n,o,l){n==="focusin"?(yp(),$i=o,Ai=l,$i.attachEvent("onpropertychange",xp)):n==="focusout"&&yp()}function Zw(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return ml(Ai)}function eS(n,o){if(n==="click")return ml(o)}function tS(n,o){if(n==="input"||n==="change")return ml(o)}function nS(n,o){return n===o&&(n!==0||1/n===1/o)||n!==n&&o!==o}var Kt=typeof Object.is=="function"?Object.is:nS;function Mi(n,o){if(Kt(n,o))return!0;if(typeof n!="object"||n===null||typeof o!="object"||o===null)return!1;var l=Object.keys(n),c=Object.keys(o);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var p=l[c];if(!d.call(o,p)||!Kt(n[p],o[p]))return!1}return!0}function vp(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function wp(n,o){var l=vp(n);n=0;for(var c;l;){if(l.nodeType===3){if(c=n+l.textContent.length,n<=o&&c>=o)return{node:l,offset:o-n};n=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=vp(l)}}function Sp(n,o){return n&&o?n===o?!0:n&&n.nodeType===3?!1:o&&o.nodeType===3?Sp(n,o.parentNode):"contains"in n?n.contains(o):n.compareDocumentPosition?!!(n.compareDocumentPosition(o)&16):!1:!1}function Ep(){for(var n=window,o=Pe();o instanceof n.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)n=o.contentWindow;else break;o=Pe(n.document)}return o}function bc(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o&&(o==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||o==="textarea"||n.contentEditable==="true")}function rS(n){var o=Ep(),l=n.focusedElem,c=n.selectionRange;if(o!==l&&l&&l.ownerDocument&&Sp(l.ownerDocument.documentElement,l)){if(c!==null&&bc(l)){if(o=c.start,n=c.end,n===void 0&&(n=o),"selectionStart"in l)l.selectionStart=o,l.selectionEnd=Math.min(n,l.value.length);else if(n=(o=l.ownerDocument||document)&&o.defaultView||window,n.getSelection){n=n.getSelection();var p=l.textContent.length,x=Math.min(c.start,p);c=c.end===void 0?x:Math.min(c.end,p),!n.extend&&x>c&&(p=c,c=x,x=p),p=wp(l,x);var _=wp(l,c);p&&_&&(n.rangeCount!==1||n.anchorNode!==p.node||n.anchorOffset!==p.offset||n.focusNode!==_.node||n.focusOffset!==_.offset)&&(o=o.createRange(),o.setStart(p.node,p.offset),n.removeAllRanges(),x>c?(n.addRange(o),n.extend(_.node,_.offset)):(o.setEnd(_.node,_.offset),n.addRange(o)))}}for(o=[],n=l;n=n.parentNode;)n.nodeType===1&&o.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<o.length;l++)n=o[l],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var oS=f&&"documentMode"in document&&11>=document.documentMode,Eo=null,Pc=null,Li=null,Rc=!1;function kp(n,o,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Rc||Eo==null||Eo!==Pe(c)||(c=Eo,"selectionStart"in c&&bc(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Li&&Mi(Li,c)||(Li=c,c=wl(Pc,"onSelect"),0<c.length&&(o=new vc("onSelect","select",null,o,l),n.push({event:o,listeners:c}),o.target=Eo)))}function yl(n,o){var l={};return l[n.toLowerCase()]=o.toLowerCase(),l["Webkit"+n]="webkit"+o,l["Moz"+n]="moz"+o,l}var ko={animationend:yl("Animation","AnimationEnd"),animationiteration:yl("Animation","AnimationIteration"),animationstart:yl("Animation","AnimationStart"),transitionend:yl("Transition","TransitionEnd")},Tc={},Cp={};f&&(Cp=document.createElement("div").style,"AnimationEvent"in window||(delete ko.animationend.animation,delete ko.animationiteration.animation,delete ko.animationstart.animation),"TransitionEvent"in window||delete ko.transitionend.transition);function xl(n){if(Tc[n])return Tc[n];if(!ko[n])return n;var o=ko[n],l;for(l in o)if(o.hasOwnProperty(l)&&l in Cp)return Tc[n]=o[l];return n}var _p=xl("animationend"),Np=xl("animationiteration"),bp=xl("animationstart"),Pp=xl("transitionend"),Rp=new Map,Tp="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 nr(n,o){Rp.set(n,o),a(o,[n])}for(var Ic=0;Ic<Tp.length;Ic++){var jc=Tp[Ic],iS=jc.toLowerCase(),sS=jc[0].toUpperCase()+jc.slice(1);nr(iS,"on"+sS)}nr(_p,"onAnimationEnd"),nr(Np,"onAnimationIteration"),nr(bp,"onAnimationStart"),nr("dblclick","onDoubleClick"),nr("focusin","onFocus"),nr("focusout","onBlur"),nr(Pp,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Di="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(" "),lS=new Set("cancel close invalid load scroll toggle".split(" ").concat(Di));function Ip(n,o,l){var c=n.type||"unknown-event";n.currentTarget=l,Zs(c,o,void 0,n),n.currentTarget=null}function jp(n,o){o=(o&4)!==0;for(var l=0;l<n.length;l++){var c=n[l],p=c.event;c=c.listeners;e:{var x=void 0;if(o)for(var _=c.length-1;0<=_;_--){var $=c[_],D=$.instance,K=$.currentTarget;if($=$.listener,D!==x&&p.isPropagationStopped())break e;Ip(p,$,K),x=D}else for(_=0;_<c.length;_++){if($=c[_],D=$.instance,K=$.currentTarget,$=$.listener,D!==x&&p.isPropagationStopped())break e;Ip(p,$,K),x=D}}}if(ho)throw n=Si,ho=!1,Si=null,n}function Oe(n,o){var l=o[Fc];l===void 0&&(l=o[Fc]=new Set);var c=n+"__bubble";l.has(c)||($p(o,n,2,!1),l.add(c))}function $c(n,o,l){var c=0;o&&(c|=4),$p(l,n,c,o)}var vl="_reactListening"+Math.random().toString(36).slice(2);function Oi(n){if(!n[vl]){n[vl]=!0,i.forEach(function(l){l!=="selectionchange"&&(lS.has(l)||$c(l,!1,n),$c(l,!0,n))});var o=n.nodeType===9?n:n.ownerDocument;o===null||o[vl]||(o[vl]=!0,$c("selectionchange",!1,o))}}function $p(n,o,l,c){switch(np(o)){case 1:var p=Sw;break;case 4:p=Ew;break;default:p=mc}l=p.bind(null,o,l,n),p=void 0,!wi||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(p=!0),c?p!==void 0?n.addEventListener(o,l,{capture:!0,passive:p}):n.addEventListener(o,l,!0):p!==void 0?n.addEventListener(o,l,{passive:p}):n.addEventListener(o,l,!1)}function Ac(n,o,l,c,p){var x=c;if((o&1)===0&&(o&2)===0&&c!==null)e:for(;;){if(c===null)return;var _=c.tag;if(_===3||_===4){var $=c.stateNode.containerInfo;if($===p||$.nodeType===8&&$.parentNode===p)break;if(_===4)for(_=c.return;_!==null;){var D=_.tag;if((D===3||D===4)&&(D=_.stateNode.containerInfo,D===p||D.nodeType===8&&D.parentNode===p))return;_=_.return}for(;$!==null;){if(_=Ir($),_===null)return;if(D=_.tag,D===5||D===6){c=x=_;continue e}$=$.parentNode}}c=c.return}Js(function(){var K=x,ae=mi(l),ue=[];e:{var se=Rp.get(n);if(se!==void 0){var pe=vc,ye=n;switch(n){case"keypress":if(hl(l)===0)break e;case"keydown":case"keyup":pe=Dw;break;case"focusin":ye="focus",pe=Ec;break;case"focusout":ye="blur",pe=Ec;break;case"beforeblur":case"afterblur":pe=Ec;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pe=ip;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=_w;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=Fw;break;case _p:case Np:case bp:pe=Pw;break;case Pp:pe=Hw;break;case"scroll":pe=kw;break;case"wheel":pe=Uw;break;case"copy":case"cut":case"paste":pe=Tw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=lp}var xe=(o&4)!==0,Qe=!xe&&n==="scroll",W=xe?se!==null?se+"Capture":null:se;xe=[];for(var B=K,X;B!==null;){X=B;var fe=X.stateNode;if(X.tag===5&&fe!==null&&(X=fe,W!==null&&(fe=Pr(B,W),fe!=null&&xe.push(zi(B,fe,X)))),Qe)break;B=B.return}0<xe.length&&(se=new pe(se,ye,null,l,ae),ue.push({event:se,listeners:xe}))}}if((o&7)===0){e:{if(se=n==="mouseover"||n==="pointerover",pe=n==="mouseout"||n==="pointerout",se&&l!==gi&&(ye=l.relatedTarget||l.fromElement)&&(Ir(ye)||ye[Cn]))break e;if((pe||se)&&(se=ae.window===ae?ae:(se=ae.ownerDocument)?se.defaultView||se.parentWindow:window,pe?(ye=l.relatedTarget||l.toElement,pe=K,ye=ye?Ir(ye):null,ye!==null&&(Qe=dn(ye),ye!==Qe||ye.tag!==5&&ye.tag!==6)&&(ye=null)):(pe=null,ye=K),pe!==ye)){if(xe=ip,fe="onMouseLeave",W="onMouseEnter",B="mouse",(n==="pointerout"||n==="pointerover")&&(xe=lp,fe="onPointerLeave",W="onPointerEnter",B="pointer"),Qe=pe==null?se:No(pe),X=ye==null?se:No(ye),se=new xe(fe,B+"leave",pe,l,ae),se.target=Qe,se.relatedTarget=X,fe=null,Ir(ae)===K&&(xe=new xe(W,B+"enter",ye,l,ae),xe.target=X,xe.relatedTarget=Qe,fe=xe),Qe=fe,pe&&ye)t:{for(xe=pe,W=ye,B=0,X=xe;X;X=Co(X))B++;for(X=0,fe=W;fe;fe=Co(fe))X++;for(;0<B-X;)xe=Co(xe),B--;for(;0<X-B;)W=Co(W),X--;for(;B--;){if(xe===W||W!==null&&xe===W.alternate)break t;xe=Co(xe),W=Co(W)}xe=null}else xe=null;pe!==null&&Ap(ue,se,pe,xe,!1),ye!==null&&Qe!==null&&Ap(ue,Qe,ye,xe,!0)}}e:{if(se=K?No(K):window,pe=se.nodeName&&se.nodeName.toLowerCase(),pe==="select"||pe==="input"&&se.type==="file")var ve=Qw;else if(hp(se))if(gp)ve=tS;else{ve=Zw;var Ee=Jw}else(pe=se.nodeName)&&pe.toLowerCase()==="input"&&(se.type==="checkbox"||se.type==="radio")&&(ve=eS);if(ve&&(ve=ve(n,K))){pp(ue,ve,l,ae);break e}Ee&&Ee(n,se,K),n==="focusout"&&(Ee=se._wrapperState)&&Ee.controlled&&se.type==="number"&&_r(se,"number",se.value)}switch(Ee=K?No(K):window,n){case"focusin":(hp(Ee)||Ee.contentEditable==="true")&&(Eo=Ee,Pc=K,Li=null);break;case"focusout":Li=Pc=Eo=null;break;case"mousedown":Rc=!0;break;case"contextmenu":case"mouseup":case"dragend":Rc=!1,kp(ue,l,ae);break;case"selectionchange":if(oS)break;case"keydown":case"keyup":kp(ue,l,ae)}var ke;if(Cc)e:{switch(n){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else So?fp(n,l)&&(Ce="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(Ce="onCompositionStart");Ce&&(ap&&l.locale!=="ko"&&(So||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&So&&(ke=rp()):(tr=ae,xc="value"in tr?tr.value:tr.textContent,So=!0)),Ee=wl(K,Ce),0<Ee.length&&(Ce=new sp(Ce,n,null,l,ae),ue.push({event:Ce,listeners:Ee}),ke?Ce.data=ke:(ke=dp(l),ke!==null&&(Ce.data=ke)))),(ke=qw?Yw(n,l):Xw(n,l))&&(K=wl(K,"onBeforeInput"),0<K.length&&(ae=new sp("onBeforeInput","beforeinput",null,l,ae),ue.push({event:ae,listeners:K}),ae.data=ke))}jp(ue,o)})}function zi(n,o,l){return{instance:n,listener:o,currentTarget:l}}function wl(n,o){for(var l=o+"Capture",c=[];n!==null;){var p=n,x=p.stateNode;p.tag===5&&x!==null&&(p=x,x=Pr(n,l),x!=null&&c.unshift(zi(n,x,p)),x=Pr(n,o),x!=null&&c.push(zi(n,x,p))),n=n.return}return c}function Co(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function Ap(n,o,l,c,p){for(var x=o._reactName,_=[];l!==null&&l!==c;){var $=l,D=$.alternate,K=$.stateNode;if(D!==null&&D===c)break;$.tag===5&&K!==null&&($=K,p?(D=Pr(l,x),D!=null&&_.unshift(zi(l,D,$))):p||(D=Pr(l,x),D!=null&&_.push(zi(l,D,$)))),l=l.return}_.length!==0&&n.push({event:o,listeners:_})}var aS=/\r\n?/g,uS=/\u0000|\uFFFD/g;function Mp(n){return(typeof n=="string"?n:""+n).replace(aS,`
|
||
`).replace(uS,"")}function Sl(n,o,l){if(o=Mp(o),Mp(n)!==o&&l)throw Error(r(425))}function El(){}var Mc=null,Lc=null;function Dc(n,o){return n==="textarea"||n==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Oc=typeof setTimeout=="function"?setTimeout:void 0,cS=typeof clearTimeout=="function"?clearTimeout:void 0,Lp=typeof Promise=="function"?Promise:void 0,fS=typeof queueMicrotask=="function"?queueMicrotask:typeof Lp<"u"?function(n){return Lp.resolve(null).then(n).catch(dS)}:Oc;function dS(n){setTimeout(function(){throw n})}function zc(n,o){var l=o,c=0;do{var p=l.nextSibling;if(n.removeChild(l),p&&p.nodeType===8)if(l=p.data,l==="/$"){if(c===0){n.removeChild(p),Ri(o);return}c--}else l!=="$"&&l!=="$?"&&l!=="$!"||c++;l=p}while(l);Ri(o)}function rr(n){for(;n!=null;n=n.nextSibling){var o=n.nodeType;if(o===1||o===3)break;if(o===8){if(o=n.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return n}function Dp(n){n=n.previousSibling;for(var o=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"){if(o===0)return n;o--}else l==="/$"&&o++}n=n.previousSibling}return null}var _o=Math.random().toString(36).slice(2),hn="__reactFiber$"+_o,Fi="__reactProps$"+_o,Cn="__reactContainer$"+_o,Fc="__reactEvents$"+_o,hS="__reactListeners$"+_o,pS="__reactHandles$"+_o;function Ir(n){var o=n[hn];if(o)return o;for(var l=n.parentNode;l;){if(o=l[Cn]||l[hn]){if(l=o.alternate,o.child!==null||l!==null&&l.child!==null)for(n=Dp(n);n!==null;){if(l=n[hn])return l;n=Dp(n)}return o}n=l,l=n.parentNode}return null}function Bi(n){return n=n[hn]||n[Cn],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function No(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function kl(n){return n[Fi]||null}var Bc=[],bo=-1;function or(n){return{current:n}}function ze(n){0>bo||(n.current=Bc[bo],Bc[bo]=null,bo--)}function De(n,o){bo++,Bc[bo]=n.current,n.current=o}var ir={},dt=or(ir),St=or(!1),jr=ir;function Po(n,o){var l=n.type.contextTypes;if(!l)return ir;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===o)return c.__reactInternalMemoizedMaskedChildContext;var p={},x;for(x in l)p[x]=o[x];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=o,n.__reactInternalMemoizedMaskedChildContext=p),p}function Et(n){return n=n.childContextTypes,n!=null}function Cl(){ze(St),ze(dt)}function Op(n,o,l){if(dt.current!==ir)throw Error(r(168));De(dt,o),De(St,l)}function zp(n,o,l){var c=n.stateNode;if(o=o.childContextTypes,typeof c.getChildContext!="function")return l;c=c.getChildContext();for(var p in c)if(!(p in o))throw Error(r(108,de(n)||"Unknown",p));return z({},l,c)}function _l(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||ir,jr=dt.current,De(dt,n),De(St,St.current),!0}function Fp(n,o,l){var c=n.stateNode;if(!c)throw Error(r(169));l?(n=zp(n,o,jr),c.__reactInternalMemoizedMergedChildContext=n,ze(St),ze(dt),De(dt,n)):ze(St),De(St,l)}var _n=null,Nl=!1,Hc=!1;function Bp(n){_n===null?_n=[n]:_n.push(n)}function gS(n){Nl=!0,Bp(n)}function sr(){if(!Hc&&_n!==null){Hc=!0;var n=0,o=Me;try{var l=_n;for(Me=1;n<l.length;n++){var c=l[n];do c=c(!0);while(c!==null)}_n=null,Nl=!1}catch(p){throw _n!==null&&(_n=_n.slice(n+1)),ol(Ei,sr),p}finally{Me=o,Hc=!1}}return null}var Ro=[],To=0,bl=null,Pl=0,Bt=[],Ht=0,$r=null,Nn=1,bn="";function Ar(n,o){Ro[To++]=Pl,Ro[To++]=bl,bl=n,Pl=o}function Hp(n,o,l){Bt[Ht++]=Nn,Bt[Ht++]=bn,Bt[Ht++]=$r,$r=n;var c=Nn;n=bn;var p=32-Tt(c)-1;c&=~(1<<p),l+=1;var x=32-Tt(o)+p;if(30<x){var _=p-p%5;x=(c&(1<<_)-1).toString(32),c>>=_,p-=_,Nn=1<<32-Tt(o)+p|l<<p|c,bn=x+n}else Nn=1<<x|l<<p|c,bn=n}function Vc(n){n.return!==null&&(Ar(n,1),Hp(n,1,0))}function Uc(n){for(;n===bl;)bl=Ro[--To],Ro[To]=null,Pl=Ro[--To],Ro[To]=null;for(;n===$r;)$r=Bt[--Ht],Bt[Ht]=null,bn=Bt[--Ht],Bt[Ht]=null,Nn=Bt[--Ht],Bt[Ht]=null}var jt=null,$t=null,Be=!1,Qt=null;function Vp(n,o){var l=qt(5,null,null,0);l.elementType="DELETED",l.stateNode=o,l.return=n,o=n.deletions,o===null?(n.deletions=[l],n.flags|=16):o.push(l)}function Up(n,o){switch(n.tag){case 5:var l=n.type;return o=o.nodeType!==1||l.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(n.stateNode=o,jt=n,$t=rr(o.firstChild),!0):!1;case 6:return o=n.pendingProps===""||o.nodeType!==3?null:o,o!==null?(n.stateNode=o,jt=n,$t=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(l=$r!==null?{id:Nn,overflow:bn}:null,n.memoizedState={dehydrated:o,treeContext:l,retryLane:1073741824},l=qt(18,null,null,0),l.stateNode=o,l.return=n,n.child=l,jt=n,$t=null,!0):!1;default:return!1}}function Wc(n){return(n.mode&1)!==0&&(n.flags&128)===0}function qc(n){if(Be){var o=$t;if(o){var l=o;if(!Up(n,o)){if(Wc(n))throw Error(r(418));o=rr(l.nextSibling);var c=jt;o&&Up(n,o)?Vp(c,l):(n.flags=n.flags&-4097|2,Be=!1,jt=n)}}else{if(Wc(n))throw Error(r(418));n.flags=n.flags&-4097|2,Be=!1,jt=n}}}function Wp(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;jt=n}function Rl(n){if(n!==jt)return!1;if(!Be)return Wp(n),Be=!0,!1;var o;if((o=n.tag!==3)&&!(o=n.tag!==5)&&(o=n.type,o=o!=="head"&&o!=="body"&&!Dc(n.type,n.memoizedProps)),o&&(o=$t)){if(Wc(n))throw qp(),Error(r(418));for(;o;)Vp(n,o),o=rr(o.nextSibling)}if(Wp(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,o=0;n;){if(n.nodeType===8){var l=n.data;if(l==="/$"){if(o===0){$t=rr(n.nextSibling);break e}o--}else l!=="$"&&l!=="$!"&&l!=="$?"||o++}n=n.nextSibling}$t=null}}else $t=jt?rr(n.stateNode.nextSibling):null;return!0}function qp(){for(var n=$t;n;)n=rr(n.nextSibling)}function Io(){$t=jt=null,Be=!1}function Yc(n){Qt===null?Qt=[n]:Qt.push(n)}var mS=b.ReactCurrentBatchConfig;function Hi(n,o,l){if(n=l.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(r(309));var c=l.stateNode}if(!c)throw Error(r(147,n));var p=c,x=""+n;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===x?o.ref:(o=function(_){var $=p.refs;_===null?delete $[x]:$[x]=_},o._stringRef=x,o)}if(typeof n!="string")throw Error(r(284));if(!l._owner)throw Error(r(290,n))}return n}function Tl(n,o){throw n=Object.prototype.toString.call(o),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":n))}function Yp(n){var o=n._init;return o(n._payload)}function Xp(n){function o(W,B){if(n){var X=W.deletions;X===null?(W.deletions=[B],W.flags|=16):X.push(B)}}function l(W,B){if(!n)return null;for(;B!==null;)o(W,B),B=B.sibling;return null}function c(W,B){for(W=new Map;B!==null;)B.key!==null?W.set(B.key,B):W.set(B.index,B),B=B.sibling;return W}function p(W,B){return W=pr(W,B),W.index=0,W.sibling=null,W}function x(W,B,X){return W.index=X,n?(X=W.alternate,X!==null?(X=X.index,X<B?(W.flags|=2,B):X):(W.flags|=2,B)):(W.flags|=1048576,B)}function _(W){return n&&W.alternate===null&&(W.flags|=2),W}function $(W,B,X,fe){return B===null||B.tag!==6?(B=zf(X,W.mode,fe),B.return=W,B):(B=p(B,X),B.return=W,B)}function D(W,B,X,fe){var ve=X.type;return ve===j?ae(W,B,X.props.children,fe,X.key):B!==null&&(B.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===F&&Yp(ve)===B.type)?(fe=p(B,X.props),fe.ref=Hi(W,B,X),fe.return=W,fe):(fe=ea(X.type,X.key,X.props,null,W.mode,fe),fe.ref=Hi(W,B,X),fe.return=W,fe)}function K(W,B,X,fe){return B===null||B.tag!==4||B.stateNode.containerInfo!==X.containerInfo||B.stateNode.implementation!==X.implementation?(B=Ff(X,W.mode,fe),B.return=W,B):(B=p(B,X.children||[]),B.return=W,B)}function ae(W,B,X,fe,ve){return B===null||B.tag!==7?(B=Hr(X,W.mode,fe,ve),B.return=W,B):(B=p(B,X),B.return=W,B)}function ue(W,B,X){if(typeof B=="string"&&B!==""||typeof B=="number")return B=zf(""+B,W.mode,X),B.return=W,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case M:return X=ea(B.type,B.key,B.props,null,W.mode,X),X.ref=Hi(W,null,B),X.return=W,X;case L:return B=Ff(B,W.mode,X),B.return=W,B;case F:var fe=B._init;return ue(W,fe(B._payload),X)}if(Gt(B)||O(B))return B=Hr(B,W.mode,X,null),B.return=W,B;Tl(W,B)}return null}function se(W,B,X,fe){var ve=B!==null?B.key:null;if(typeof X=="string"&&X!==""||typeof X=="number")return ve!==null?null:$(W,B,""+X,fe);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case M:return X.key===ve?D(W,B,X,fe):null;case L:return X.key===ve?K(W,B,X,fe):null;case F:return ve=X._init,se(W,B,ve(X._payload),fe)}if(Gt(X)||O(X))return ve!==null?null:ae(W,B,X,fe,null);Tl(W,X)}return null}function pe(W,B,X,fe,ve){if(typeof fe=="string"&&fe!==""||typeof fe=="number")return W=W.get(X)||null,$(B,W,""+fe,ve);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case M:return W=W.get(fe.key===null?X:fe.key)||null,D(B,W,fe,ve);case L:return W=W.get(fe.key===null?X:fe.key)||null,K(B,W,fe,ve);case F:var Ee=fe._init;return pe(W,B,X,Ee(fe._payload),ve)}if(Gt(fe)||O(fe))return W=W.get(X)||null,ae(B,W,fe,ve,null);Tl(B,fe)}return null}function ye(W,B,X,fe){for(var ve=null,Ee=null,ke=B,Ce=B=0,st=null;ke!==null&&Ce<X.length;Ce++){ke.index>Ce?(st=ke,ke=null):st=ke.sibling;var je=se(W,ke,X[Ce],fe);if(je===null){ke===null&&(ke=st);break}n&&ke&&je.alternate===null&&o(W,ke),B=x(je,B,Ce),Ee===null?ve=je:Ee.sibling=je,Ee=je,ke=st}if(Ce===X.length)return l(W,ke),Be&&Ar(W,Ce),ve;if(ke===null){for(;Ce<X.length;Ce++)ke=ue(W,X[Ce],fe),ke!==null&&(B=x(ke,B,Ce),Ee===null?ve=ke:Ee.sibling=ke,Ee=ke);return Be&&Ar(W,Ce),ve}for(ke=c(W,ke);Ce<X.length;Ce++)st=pe(ke,W,Ce,X[Ce],fe),st!==null&&(n&&st.alternate!==null&&ke.delete(st.key===null?Ce:st.key),B=x(st,B,Ce),Ee===null?ve=st:Ee.sibling=st,Ee=st);return n&&ke.forEach(function(gr){return o(W,gr)}),Be&&Ar(W,Ce),ve}function xe(W,B,X,fe){var ve=O(X);if(typeof ve!="function")throw Error(r(150));if(X=ve.call(X),X==null)throw Error(r(151));for(var Ee=ve=null,ke=B,Ce=B=0,st=null,je=X.next();ke!==null&&!je.done;Ce++,je=X.next()){ke.index>Ce?(st=ke,ke=null):st=ke.sibling;var gr=se(W,ke,je.value,fe);if(gr===null){ke===null&&(ke=st);break}n&&ke&&gr.alternate===null&&o(W,ke),B=x(gr,B,Ce),Ee===null?ve=gr:Ee.sibling=gr,Ee=gr,ke=st}if(je.done)return l(W,ke),Be&&Ar(W,Ce),ve;if(ke===null){for(;!je.done;Ce++,je=X.next())je=ue(W,je.value,fe),je!==null&&(B=x(je,B,Ce),Ee===null?ve=je:Ee.sibling=je,Ee=je);return Be&&Ar(W,Ce),ve}for(ke=c(W,ke);!je.done;Ce++,je=X.next())je=pe(ke,W,Ce,je.value,fe),je!==null&&(n&&je.alternate!==null&&ke.delete(je.key===null?Ce:je.key),B=x(je,B,Ce),Ee===null?ve=je:Ee.sibling=je,Ee=je);return n&&ke.forEach(function(GS){return o(W,GS)}),Be&&Ar(W,Ce),ve}function Qe(W,B,X,fe){if(typeof X=="object"&&X!==null&&X.type===j&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case M:e:{for(var ve=X.key,Ee=B;Ee!==null;){if(Ee.key===ve){if(ve=X.type,ve===j){if(Ee.tag===7){l(W,Ee.sibling),B=p(Ee,X.props.children),B.return=W,W=B;break e}}else if(Ee.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===F&&Yp(ve)===Ee.type){l(W,Ee.sibling),B=p(Ee,X.props),B.ref=Hi(W,Ee,X),B.return=W,W=B;break e}l(W,Ee);break}else o(W,Ee);Ee=Ee.sibling}X.type===j?(B=Hr(X.props.children,W.mode,fe,X.key),B.return=W,W=B):(fe=ea(X.type,X.key,X.props,null,W.mode,fe),fe.ref=Hi(W,B,X),fe.return=W,W=fe)}return _(W);case L:e:{for(Ee=X.key;B!==null;){if(B.key===Ee)if(B.tag===4&&B.stateNode.containerInfo===X.containerInfo&&B.stateNode.implementation===X.implementation){l(W,B.sibling),B=p(B,X.children||[]),B.return=W,W=B;break e}else{l(W,B);break}else o(W,B);B=B.sibling}B=Ff(X,W.mode,fe),B.return=W,W=B}return _(W);case F:return Ee=X._init,Qe(W,B,Ee(X._payload),fe)}if(Gt(X))return ye(W,B,X,fe);if(O(X))return xe(W,B,X,fe);Tl(W,X)}return typeof X=="string"&&X!==""||typeof X=="number"?(X=""+X,B!==null&&B.tag===6?(l(W,B.sibling),B=p(B,X),B.return=W,W=B):(l(W,B),B=zf(X,W.mode,fe),B.return=W,W=B),_(W)):l(W,B)}return Qe}var jo=Xp(!0),Gp=Xp(!1),Il=or(null),jl=null,$o=null,Xc=null;function Gc(){Xc=$o=jl=null}function Kc(n){var o=Il.current;ze(Il),n._currentValue=o}function Qc(n,o,l){for(;n!==null;){var c=n.alternate;if((n.childLanes&o)!==o?(n.childLanes|=o,c!==null&&(c.childLanes|=o)):c!==null&&(c.childLanes&o)!==o&&(c.childLanes|=o),n===l)break;n=n.return}}function Ao(n,o){jl=n,Xc=$o=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&o)!==0&&(kt=!0),n.firstContext=null)}function Vt(n){var o=n._currentValue;if(Xc!==n)if(n={context:n,memoizedValue:o,next:null},$o===null){if(jl===null)throw Error(r(308));$o=n,jl.dependencies={lanes:0,firstContext:n}}else $o=$o.next=n;return o}var Mr=null;function Jc(n){Mr===null?Mr=[n]:Mr.push(n)}function Kp(n,o,l,c){var p=o.interleaved;return p===null?(l.next=l,Jc(o)):(l.next=p.next,p.next=l),o.interleaved=l,Pn(n,c)}function Pn(n,o){n.lanes|=o;var l=n.alternate;for(l!==null&&(l.lanes|=o),l=n,n=n.return;n!==null;)n.childLanes|=o,l=n.alternate,l!==null&&(l.childLanes|=o),l=n,n=n.return;return l.tag===3?l.stateNode:null}var lr=!1;function Zc(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qp(n,o){n=n.updateQueue,o.updateQueue===n&&(o.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Rn(n,o){return{eventTime:n,lane:o,tag:0,payload:null,callback:null,next:null}}function ar(n,o,l){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(Te&2)!==0){var p=c.pending;return p===null?o.next=o:(o.next=p.next,p.next=o),c.pending=o,Pn(n,l)}return p=c.interleaved,p===null?(o.next=o,Jc(c)):(o.next=p.next,p.next=o),c.interleaved=o,Pn(n,l)}function $l(n,o,l){if(o=o.updateQueue,o!==null&&(o=o.shared,(l&4194240)!==0)){var c=o.lanes;c&=n.pendingLanes,l|=c,o.lanes=l,hc(n,l)}}function Jp(n,o){var l=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var p=null,x=null;if(l=l.firstBaseUpdate,l!==null){do{var _={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};x===null?p=x=_:x=x.next=_,l=l.next}while(l!==null);x===null?p=x=o:x=x.next=o}else p=x=o;l={baseState:c.baseState,firstBaseUpdate:p,lastBaseUpdate:x,shared:c.shared,effects:c.effects},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=o:n.next=o,l.lastBaseUpdate=o}function Al(n,o,l,c){var p=n.updateQueue;lr=!1;var x=p.firstBaseUpdate,_=p.lastBaseUpdate,$=p.shared.pending;if($!==null){p.shared.pending=null;var D=$,K=D.next;D.next=null,_===null?x=K:_.next=K,_=D;var ae=n.alternate;ae!==null&&(ae=ae.updateQueue,$=ae.lastBaseUpdate,$!==_&&($===null?ae.firstBaseUpdate=K:$.next=K,ae.lastBaseUpdate=D))}if(x!==null){var ue=p.baseState;_=0,ae=K=D=null,$=x;do{var se=$.lane,pe=$.eventTime;if((c&se)===se){ae!==null&&(ae=ae.next={eventTime:pe,lane:0,tag:$.tag,payload:$.payload,callback:$.callback,next:null});e:{var ye=n,xe=$;switch(se=o,pe=l,xe.tag){case 1:if(ye=xe.payload,typeof ye=="function"){ue=ye.call(pe,ue,se);break e}ue=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=xe.payload,se=typeof ye=="function"?ye.call(pe,ue,se):ye,se==null)break e;ue=z({},ue,se);break e;case 2:lr=!0}}$.callback!==null&&$.lane!==0&&(n.flags|=64,se=p.effects,se===null?p.effects=[$]:se.push($))}else pe={eventTime:pe,lane:se,tag:$.tag,payload:$.payload,callback:$.callback,next:null},ae===null?(K=ae=pe,D=ue):ae=ae.next=pe,_|=se;if($=$.next,$===null){if($=p.shared.pending,$===null)break;se=$,$=se.next,se.next=null,p.lastBaseUpdate=se,p.shared.pending=null}}while(!0);if(ae===null&&(D=ue),p.baseState=D,p.firstBaseUpdate=K,p.lastBaseUpdate=ae,o=p.shared.interleaved,o!==null){p=o;do _|=p.lane,p=p.next;while(p!==o)}else x===null&&(p.shared.lanes=0);Or|=_,n.lanes=_,n.memoizedState=ue}}function Zp(n,o,l){if(n=o.effects,o.effects=null,n!==null)for(o=0;o<n.length;o++){var c=n[o],p=c.callback;if(p!==null){if(c.callback=null,c=l,typeof p!="function")throw Error(r(191,p));p.call(c)}}}var Vi={},pn=or(Vi),Ui=or(Vi),Wi=or(Vi);function Lr(n){if(n===Vi)throw Error(r(174));return n}function ef(n,o){switch(De(Wi,o),De(Ui,n),De(pn,Vi),n=o.nodeType,n){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Xn(null,"");break;default:n=n===8?o.parentNode:o,o=n.namespaceURI||null,n=n.tagName,o=Xn(o,n)}ze(pn),De(pn,o)}function Mo(){ze(pn),ze(Ui),ze(Wi)}function eg(n){Lr(Wi.current);var o=Lr(pn.current),l=Xn(o,n.type);o!==l&&(De(Ui,n),De(pn,l))}function tf(n){Ui.current===n&&(ze(pn),ze(Ui))}var Ue=or(0);function Ml(n){for(var o=n;o!==null;){if(o.tag===13){var l=o.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var nf=[];function rf(){for(var n=0;n<nf.length;n++)nf[n]._workInProgressVersionPrimary=null;nf.length=0}var Ll=b.ReactCurrentDispatcher,of=b.ReactCurrentBatchConfig,Dr=0,We=null,tt=null,ot=null,Dl=!1,qi=!1,Yi=0,yS=0;function ht(){throw Error(r(321))}function sf(n,o){if(o===null)return!1;for(var l=0;l<o.length&&l<n.length;l++)if(!Kt(n[l],o[l]))return!1;return!0}function lf(n,o,l,c,p,x){if(Dr=x,We=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,Ll.current=n===null||n.memoizedState===null?SS:ES,n=l(c,p),qi){x=0;do{if(qi=!1,Yi=0,25<=x)throw Error(r(301));x+=1,ot=tt=null,o.updateQueue=null,Ll.current=kS,n=l(c,p)}while(qi)}if(Ll.current=Fl,o=tt!==null&&tt.next!==null,Dr=0,ot=tt=We=null,Dl=!1,o)throw Error(r(300));return n}function af(){var n=Yi!==0;return Yi=0,n}function gn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?We.memoizedState=ot=n:ot=ot.next=n,ot}function Ut(){if(tt===null){var n=We.alternate;n=n!==null?n.memoizedState:null}else n=tt.next;var o=ot===null?We.memoizedState:ot.next;if(o!==null)ot=o,tt=n;else{if(n===null)throw Error(r(310));tt=n,n={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},ot===null?We.memoizedState=ot=n:ot=ot.next=n}return ot}function Xi(n,o){return typeof o=="function"?o(n):o}function uf(n){var o=Ut(),l=o.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var c=tt,p=c.baseQueue,x=l.pending;if(x!==null){if(p!==null){var _=p.next;p.next=x.next,x.next=_}c.baseQueue=p=x,l.pending=null}if(p!==null){x=p.next,c=c.baseState;var $=_=null,D=null,K=x;do{var ae=K.lane;if((Dr&ae)===ae)D!==null&&(D=D.next={lane:0,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),c=K.hasEagerState?K.eagerState:n(c,K.action);else{var ue={lane:ae,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null};D===null?($=D=ue,_=c):D=D.next=ue,We.lanes|=ae,Or|=ae}K=K.next}while(K!==null&&K!==x);D===null?_=c:D.next=$,Kt(c,o.memoizedState)||(kt=!0),o.memoizedState=c,o.baseState=_,o.baseQueue=D,l.lastRenderedState=c}if(n=l.interleaved,n!==null){p=n;do x=p.lane,We.lanes|=x,Or|=x,p=p.next;while(p!==n)}else p===null&&(l.lanes=0);return[o.memoizedState,l.dispatch]}function cf(n){var o=Ut(),l=o.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var c=l.dispatch,p=l.pending,x=o.memoizedState;if(p!==null){l.pending=null;var _=p=p.next;do x=n(x,_.action),_=_.next;while(_!==p);Kt(x,o.memoizedState)||(kt=!0),o.memoizedState=x,o.baseQueue===null&&(o.baseState=x),l.lastRenderedState=x}return[x,c]}function tg(){}function ng(n,o){var l=We,c=Ut(),p=o(),x=!Kt(c.memoizedState,p);if(x&&(c.memoizedState=p,kt=!0),c=c.queue,ff(ig.bind(null,l,c,n),[n]),c.getSnapshot!==o||x||ot!==null&&ot.memoizedState.tag&1){if(l.flags|=2048,Gi(9,og.bind(null,l,c,p,o),void 0,null),it===null)throw Error(r(349));(Dr&30)!==0||rg(l,o,p)}return p}function rg(n,o,l){n.flags|=16384,n={getSnapshot:o,value:l},o=We.updateQueue,o===null?(o={lastEffect:null,stores:null},We.updateQueue=o,o.stores=[n]):(l=o.stores,l===null?o.stores=[n]:l.push(n))}function og(n,o,l,c){o.value=l,o.getSnapshot=c,sg(o)&&lg(n)}function ig(n,o,l){return l(function(){sg(o)&&lg(n)})}function sg(n){var o=n.getSnapshot;n=n.value;try{var l=o();return!Kt(n,l)}catch{return!0}}function lg(n){var o=Pn(n,1);o!==null&&tn(o,n,1,-1)}function ag(n){var o=gn();return typeof n=="function"&&(n=n()),o.memoizedState=o.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:n},o.queue=n,n=n.dispatch=wS.bind(null,We,n),[o.memoizedState,n]}function Gi(n,o,l,c){return n={tag:n,create:o,destroy:l,deps:c,next:null},o=We.updateQueue,o===null?(o={lastEffect:null,stores:null},We.updateQueue=o,o.lastEffect=n.next=n):(l=o.lastEffect,l===null?o.lastEffect=n.next=n:(c=l.next,l.next=n,n.next=c,o.lastEffect=n)),n}function ug(){return Ut().memoizedState}function Ol(n,o,l,c){var p=gn();We.flags|=n,p.memoizedState=Gi(1|o,l,void 0,c===void 0?null:c)}function zl(n,o,l,c){var p=Ut();c=c===void 0?null:c;var x=void 0;if(tt!==null){var _=tt.memoizedState;if(x=_.destroy,c!==null&&sf(c,_.deps)){p.memoizedState=Gi(o,l,x,c);return}}We.flags|=n,p.memoizedState=Gi(1|o,l,x,c)}function cg(n,o){return Ol(8390656,8,n,o)}function ff(n,o){return zl(2048,8,n,o)}function fg(n,o){return zl(4,2,n,o)}function dg(n,o){return zl(4,4,n,o)}function hg(n,o){if(typeof o=="function")return n=n(),o(n),function(){o(null)};if(o!=null)return n=n(),o.current=n,function(){o.current=null}}function pg(n,o,l){return l=l!=null?l.concat([n]):null,zl(4,4,hg.bind(null,o,n),l)}function df(){}function gg(n,o){var l=Ut();o=o===void 0?null:o;var c=l.memoizedState;return c!==null&&o!==null&&sf(o,c[1])?c[0]:(l.memoizedState=[n,o],n)}function mg(n,o){var l=Ut();o=o===void 0?null:o;var c=l.memoizedState;return c!==null&&o!==null&&sf(o,c[1])?c[0]:(n=n(),l.memoizedState=[n,o],n)}function yg(n,o,l){return(Dr&21)===0?(n.baseState&&(n.baseState=!1,kt=!0),n.memoizedState=l):(Kt(l,o)||(l=Yh(),We.lanes|=l,Or|=l,n.baseState=!0),o)}function xS(n,o){var l=Me;Me=l!==0&&4>l?l:4,n(!0);var c=of.transition;of.transition={};try{n(!1),o()}finally{Me=l,of.transition=c}}function xg(){return Ut().memoizedState}function vS(n,o,l){var c=dr(n);if(l={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null},vg(n))wg(o,l);else if(l=Kp(n,o,l,c),l!==null){var p=vt();tn(l,n,c,p),Sg(l,o,c)}}function wS(n,o,l){var c=dr(n),p={lane:c,action:l,hasEagerState:!1,eagerState:null,next:null};if(vg(n))wg(o,p);else{var x=n.alternate;if(n.lanes===0&&(x===null||x.lanes===0)&&(x=o.lastRenderedReducer,x!==null))try{var _=o.lastRenderedState,$=x(_,l);if(p.hasEagerState=!0,p.eagerState=$,Kt($,_)){var D=o.interleaved;D===null?(p.next=p,Jc(o)):(p.next=D.next,D.next=p),o.interleaved=p;return}}catch{}finally{}l=Kp(n,o,p,c),l!==null&&(p=vt(),tn(l,n,c,p),Sg(l,o,c))}}function vg(n){var o=n.alternate;return n===We||o!==null&&o===We}function wg(n,o){qi=Dl=!0;var l=n.pending;l===null?o.next=o:(o.next=l.next,l.next=o),n.pending=o}function Sg(n,o,l){if((l&4194240)!==0){var c=o.lanes;c&=n.pendingLanes,l|=c,o.lanes=l,hc(n,l)}}var Fl={readContext:Vt,useCallback:ht,useContext:ht,useEffect:ht,useImperativeHandle:ht,useInsertionEffect:ht,useLayoutEffect:ht,useMemo:ht,useReducer:ht,useRef:ht,useState:ht,useDebugValue:ht,useDeferredValue:ht,useTransition:ht,useMutableSource:ht,useSyncExternalStore:ht,useId:ht,unstable_isNewReconciler:!1},SS={readContext:Vt,useCallback:function(n,o){return gn().memoizedState=[n,o===void 0?null:o],n},useContext:Vt,useEffect:cg,useImperativeHandle:function(n,o,l){return l=l!=null?l.concat([n]):null,Ol(4194308,4,hg.bind(null,o,n),l)},useLayoutEffect:function(n,o){return Ol(4194308,4,n,o)},useInsertionEffect:function(n,o){return Ol(4,2,n,o)},useMemo:function(n,o){var l=gn();return o=o===void 0?null:o,n=n(),l.memoizedState=[n,o],n},useReducer:function(n,o,l){var c=gn();return o=l!==void 0?l(o):o,c.memoizedState=c.baseState=o,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:o},c.queue=n,n=n.dispatch=vS.bind(null,We,n),[c.memoizedState,n]},useRef:function(n){var o=gn();return n={current:n},o.memoizedState=n},useState:ag,useDebugValue:df,useDeferredValue:function(n){return gn().memoizedState=n},useTransition:function(){var n=ag(!1),o=n[0];return n=xS.bind(null,n[1]),gn().memoizedState=n,[o,n]},useMutableSource:function(){},useSyncExternalStore:function(n,o,l){var c=We,p=gn();if(Be){if(l===void 0)throw Error(r(407));l=l()}else{if(l=o(),it===null)throw Error(r(349));(Dr&30)!==0||rg(c,o,l)}p.memoizedState=l;var x={value:l,getSnapshot:o};return p.queue=x,cg(ig.bind(null,c,x,n),[n]),c.flags|=2048,Gi(9,og.bind(null,c,x,l,o),void 0,null),l},useId:function(){var n=gn(),o=it.identifierPrefix;if(Be){var l=bn,c=Nn;l=(c&~(1<<32-Tt(c)-1)).toString(32)+l,o=":"+o+"R"+l,l=Yi++,0<l&&(o+="H"+l.toString(32)),o+=":"}else l=yS++,o=":"+o+"r"+l.toString(32)+":";return n.memoizedState=o},unstable_isNewReconciler:!1},ES={readContext:Vt,useCallback:gg,useContext:Vt,useEffect:ff,useImperativeHandle:pg,useInsertionEffect:fg,useLayoutEffect:dg,useMemo:mg,useReducer:uf,useRef:ug,useState:function(){return uf(Xi)},useDebugValue:df,useDeferredValue:function(n){var o=Ut();return yg(o,tt.memoizedState,n)},useTransition:function(){var n=uf(Xi)[0],o=Ut().memoizedState;return[n,o]},useMutableSource:tg,useSyncExternalStore:ng,useId:xg,unstable_isNewReconciler:!1},kS={readContext:Vt,useCallback:gg,useContext:Vt,useEffect:ff,useImperativeHandle:pg,useInsertionEffect:fg,useLayoutEffect:dg,useMemo:mg,useReducer:cf,useRef:ug,useState:function(){return cf(Xi)},useDebugValue:df,useDeferredValue:function(n){var o=Ut();return tt===null?o.memoizedState=n:yg(o,tt.memoizedState,n)},useTransition:function(){var n=cf(Xi)[0],o=Ut().memoizedState;return[n,o]},useMutableSource:tg,useSyncExternalStore:ng,useId:xg,unstable_isNewReconciler:!1};function Jt(n,o){if(n&&n.defaultProps){o=z({},o),n=n.defaultProps;for(var l in n)o[l]===void 0&&(o[l]=n[l]);return o}return o}function hf(n,o,l,c){o=n.memoizedState,l=l(c,o),l=l==null?o:z({},o,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var Bl={isMounted:function(n){return(n=n._reactInternals)?dn(n)===n:!1},enqueueSetState:function(n,o,l){n=n._reactInternals;var c=vt(),p=dr(n),x=Rn(c,p);x.payload=o,l!=null&&(x.callback=l),o=ar(n,x,p),o!==null&&(tn(o,n,p,c),$l(o,n,p))},enqueueReplaceState:function(n,o,l){n=n._reactInternals;var c=vt(),p=dr(n),x=Rn(c,p);x.tag=1,x.payload=o,l!=null&&(x.callback=l),o=ar(n,x,p),o!==null&&(tn(o,n,p,c),$l(o,n,p))},enqueueForceUpdate:function(n,o){n=n._reactInternals;var l=vt(),c=dr(n),p=Rn(l,c);p.tag=2,o!=null&&(p.callback=o),o=ar(n,p,c),o!==null&&(tn(o,n,c,l),$l(o,n,c))}};function Eg(n,o,l,c,p,x,_){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,x,_):o.prototype&&o.prototype.isPureReactComponent?!Mi(l,c)||!Mi(p,x):!0}function kg(n,o,l){var c=!1,p=ir,x=o.contextType;return typeof x=="object"&&x!==null?x=Vt(x):(p=Et(o)?jr:dt.current,c=o.contextTypes,x=(c=c!=null)?Po(n,p):ir),o=new o(l,x),n.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Bl,n.stateNode=o,o._reactInternals=n,c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=p,n.__reactInternalMemoizedMaskedChildContext=x),o}function Cg(n,o,l,c){n=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(l,c),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(l,c),o.state!==n&&Bl.enqueueReplaceState(o,o.state,null)}function pf(n,o,l,c){var p=n.stateNode;p.props=l,p.state=n.memoizedState,p.refs={},Zc(n);var x=o.contextType;typeof x=="object"&&x!==null?p.context=Vt(x):(x=Et(o)?jr:dt.current,p.context=Po(n,x)),p.state=n.memoizedState,x=o.getDerivedStateFromProps,typeof x=="function"&&(hf(n,o,x,l),p.state=n.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(o=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),o!==p.state&&Bl.enqueueReplaceState(p,p.state,null),Al(n,l,p,c),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308)}function Lo(n,o){try{var l="",c=o;do l+=ie(c),c=c.return;while(c);var p=l}catch(x){p=`
|
||
Error generating stack: `+x.message+`
|
||
`+x.stack}return{value:n,source:o,stack:p,digest:null}}function gf(n,o,l){return{value:n,source:null,stack:l??null,digest:o??null}}function mf(n,o){try{console.error(o.value)}catch(l){setTimeout(function(){throw l})}}var CS=typeof WeakMap=="function"?WeakMap:Map;function _g(n,o,l){l=Rn(-1,l),l.tag=3,l.payload={element:null};var c=o.value;return l.callback=function(){Xl||(Xl=!0,If=c),mf(n,o)},l}function Ng(n,o,l){l=Rn(-1,l),l.tag=3;var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var p=o.value;l.payload=function(){return c(p)},l.callback=function(){mf(n,o)}}var x=n.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(l.callback=function(){mf(n,o),typeof c!="function"&&(cr===null?cr=new Set([this]):cr.add(this));var _=o.stack;this.componentDidCatch(o.value,{componentStack:_!==null?_:""})}),l}function bg(n,o,l){var c=n.pingCache;if(c===null){c=n.pingCache=new CS;var p=new Set;c.set(o,p)}else p=c.get(o),p===void 0&&(p=new Set,c.set(o,p));p.has(l)||(p.add(l),n=OS.bind(null,n,o,l),o.then(n,n))}function Pg(n){do{var o;if((o=n.tag===13)&&(o=n.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return n;n=n.return}while(n!==null);return null}function Rg(n,o,l,c,p){return(n.mode&1)===0?(n===o?n.flags|=65536:(n.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(o=Rn(-1,1),o.tag=2,ar(l,o,1))),l.lanes|=1),n):(n.flags|=65536,n.lanes=p,n)}var _S=b.ReactCurrentOwner,kt=!1;function xt(n,o,l,c){o.child=n===null?Gp(o,null,l,c):jo(o,n.child,l,c)}function Tg(n,o,l,c,p){l=l.render;var x=o.ref;return Ao(o,p),c=lf(n,o,l,c,x,p),l=af(),n!==null&&!kt?(o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~p,Tn(n,o,p)):(Be&&l&&Vc(o),o.flags|=1,xt(n,o,c,p),o.child)}function Ig(n,o,l,c,p){if(n===null){var x=l.type;return typeof x=="function"&&!Of(x)&&x.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(o.tag=15,o.type=x,jg(n,o,x,c,p)):(n=ea(l.type,null,c,o,o.mode,p),n.ref=o.ref,n.return=o,o.child=n)}if(x=n.child,(n.lanes&p)===0){var _=x.memoizedProps;if(l=l.compare,l=l!==null?l:Mi,l(_,c)&&n.ref===o.ref)return Tn(n,o,p)}return o.flags|=1,n=pr(x,c),n.ref=o.ref,n.return=o,o.child=n}function jg(n,o,l,c,p){if(n!==null){var x=n.memoizedProps;if(Mi(x,c)&&n.ref===o.ref)if(kt=!1,o.pendingProps=c=x,(n.lanes&p)!==0)(n.flags&131072)!==0&&(kt=!0);else return o.lanes=n.lanes,Tn(n,o,p)}return yf(n,o,l,c,p)}function $g(n,o,l){var c=o.pendingProps,p=c.children,x=n!==null?n.memoizedState:null;if(c.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},De(Oo,At),At|=l;else{if((l&1073741824)===0)return n=x!==null?x.baseLanes|l:l,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:n,cachePool:null,transitions:null},o.updateQueue=null,De(Oo,At),At|=n,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=x!==null?x.baseLanes:l,De(Oo,At),At|=c}else x!==null?(c=x.baseLanes|l,o.memoizedState=null):c=l,De(Oo,At),At|=c;return xt(n,o,p,l),o.child}function Ag(n,o){var l=o.ref;(n===null&&l!==null||n!==null&&n.ref!==l)&&(o.flags|=512,o.flags|=2097152)}function yf(n,o,l,c,p){var x=Et(l)?jr:dt.current;return x=Po(o,x),Ao(o,p),l=lf(n,o,l,c,x,p),c=af(),n!==null&&!kt?(o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~p,Tn(n,o,p)):(Be&&c&&Vc(o),o.flags|=1,xt(n,o,l,p),o.child)}function Mg(n,o,l,c,p){if(Et(l)){var x=!0;_l(o)}else x=!1;if(Ao(o,p),o.stateNode===null)Vl(n,o),kg(o,l,c),pf(o,l,c,p),c=!0;else if(n===null){var _=o.stateNode,$=o.memoizedProps;_.props=$;var D=_.context,K=l.contextType;typeof K=="object"&&K!==null?K=Vt(K):(K=Et(l)?jr:dt.current,K=Po(o,K));var ae=l.getDerivedStateFromProps,ue=typeof ae=="function"||typeof _.getSnapshotBeforeUpdate=="function";ue||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||($!==c||D!==K)&&Cg(o,_,c,K),lr=!1;var se=o.memoizedState;_.state=se,Al(o,c,_,p),D=o.memoizedState,$!==c||se!==D||St.current||lr?(typeof ae=="function"&&(hf(o,l,ae,c),D=o.memoizedState),($=lr||Eg(o,l,$,c,se,D,K))?(ue||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(o.flags|=4194308)):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=c,o.memoizedState=D),_.props=c,_.state=D,_.context=K,c=$):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),c=!1)}else{_=o.stateNode,Qp(n,o),$=o.memoizedProps,K=o.type===o.elementType?$:Jt(o.type,$),_.props=K,ue=o.pendingProps,se=_.context,D=l.contextType,typeof D=="object"&&D!==null?D=Vt(D):(D=Et(l)?jr:dt.current,D=Po(o,D));var pe=l.getDerivedStateFromProps;(ae=typeof pe=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||($!==ue||se!==D)&&Cg(o,_,c,D),lr=!1,se=o.memoizedState,_.state=se,Al(o,c,_,p);var ye=o.memoizedState;$!==ue||se!==ye||St.current||lr?(typeof pe=="function"&&(hf(o,l,pe,c),ye=o.memoizedState),(K=lr||Eg(o,l,K,c,se,ye,D)||!1)?(ae||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(c,ye,D),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(c,ye,D)),typeof _.componentDidUpdate=="function"&&(o.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof _.componentDidUpdate!="function"||$===n.memoizedProps&&se===n.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||$===n.memoizedProps&&se===n.memoizedState||(o.flags|=1024),o.memoizedProps=c,o.memoizedState=ye),_.props=c,_.state=ye,_.context=D,c=K):(typeof _.componentDidUpdate!="function"||$===n.memoizedProps&&se===n.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||$===n.memoizedProps&&se===n.memoizedState||(o.flags|=1024),c=!1)}return xf(n,o,l,c,x,p)}function xf(n,o,l,c,p,x){Ag(n,o);var _=(o.flags&128)!==0;if(!c&&!_)return p&&Fp(o,l,!1),Tn(n,o,x);c=o.stateNode,_S.current=o;var $=_&&typeof l.getDerivedStateFromError!="function"?null:c.render();return o.flags|=1,n!==null&&_?(o.child=jo(o,n.child,null,x),o.child=jo(o,null,$,x)):xt(n,o,$,x),o.memoizedState=c.state,p&&Fp(o,l,!0),o.child}function Lg(n){var o=n.stateNode;o.pendingContext?Op(n,o.pendingContext,o.pendingContext!==o.context):o.context&&Op(n,o.context,!1),ef(n,o.containerInfo)}function Dg(n,o,l,c,p){return Io(),Yc(p),o.flags|=256,xt(n,o,l,c),o.child}var vf={dehydrated:null,treeContext:null,retryLane:0};function wf(n){return{baseLanes:n,cachePool:null,transitions:null}}function Og(n,o,l){var c=o.pendingProps,p=Ue.current,x=!1,_=(o.flags&128)!==0,$;if(($=_)||($=n!==null&&n.memoizedState===null?!1:(p&2)!==0),$?(x=!0,o.flags&=-129):(n===null||n.memoizedState!==null)&&(p|=1),De(Ue,p&1),n===null)return qc(o),n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((o.mode&1)===0?o.lanes=1:n.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(_=c.children,n=c.fallback,x?(c=o.mode,x=o.child,_={mode:"hidden",children:_},(c&1)===0&&x!==null?(x.childLanes=0,x.pendingProps=_):x=ta(_,c,0,null),n=Hr(n,c,l,null),x.return=o,n.return=o,x.sibling=n,o.child=x,o.child.memoizedState=wf(l),o.memoizedState=vf,n):Sf(o,_));if(p=n.memoizedState,p!==null&&($=p.dehydrated,$!==null))return NS(n,o,_,c,$,p,l);if(x){x=c.fallback,_=o.mode,p=n.child,$=p.sibling;var D={mode:"hidden",children:c.children};return(_&1)===0&&o.child!==p?(c=o.child,c.childLanes=0,c.pendingProps=D,o.deletions=null):(c=pr(p,D),c.subtreeFlags=p.subtreeFlags&14680064),$!==null?x=pr($,x):(x=Hr(x,_,l,null),x.flags|=2),x.return=o,c.return=o,c.sibling=x,o.child=c,c=x,x=o.child,_=n.child.memoizedState,_=_===null?wf(l):{baseLanes:_.baseLanes|l,cachePool:null,transitions:_.transitions},x.memoizedState=_,x.childLanes=n.childLanes&~l,o.memoizedState=vf,c}return x=n.child,n=x.sibling,c=pr(x,{mode:"visible",children:c.children}),(o.mode&1)===0&&(c.lanes=l),c.return=o,c.sibling=null,n!==null&&(l=o.deletions,l===null?(o.deletions=[n],o.flags|=16):l.push(n)),o.child=c,o.memoizedState=null,c}function Sf(n,o){return o=ta({mode:"visible",children:o},n.mode,0,null),o.return=n,n.child=o}function Hl(n,o,l,c){return c!==null&&Yc(c),jo(o,n.child,null,l),n=Sf(o,o.pendingProps.children),n.flags|=2,o.memoizedState=null,n}function NS(n,o,l,c,p,x,_){if(l)return o.flags&256?(o.flags&=-257,c=gf(Error(r(422))),Hl(n,o,_,c)):o.memoizedState!==null?(o.child=n.child,o.flags|=128,null):(x=c.fallback,p=o.mode,c=ta({mode:"visible",children:c.children},p,0,null),x=Hr(x,p,_,null),x.flags|=2,c.return=o,x.return=o,c.sibling=x,o.child=c,(o.mode&1)!==0&&jo(o,n.child,null,_),o.child.memoizedState=wf(_),o.memoizedState=vf,x);if((o.mode&1)===0)return Hl(n,o,_,null);if(p.data==="$!"){if(c=p.nextSibling&&p.nextSibling.dataset,c)var $=c.dgst;return c=$,x=Error(r(419)),c=gf(x,c,void 0),Hl(n,o,_,c)}if($=(_&n.childLanes)!==0,kt||$){if(c=it,c!==null){switch(_&-_){case 4:p=2;break;case 16:p=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:p=32;break;case 536870912:p=268435456;break;default:p=0}p=(p&(c.suspendedLanes|_))!==0?0:p,p!==0&&p!==x.retryLane&&(x.retryLane=p,Pn(n,p),tn(c,n,p,-1))}return Df(),c=gf(Error(r(421))),Hl(n,o,_,c)}return p.data==="$?"?(o.flags|=128,o.child=n.child,o=zS.bind(null,n),p._reactRetry=o,null):(n=x.treeContext,$t=rr(p.nextSibling),jt=o,Be=!0,Qt=null,n!==null&&(Bt[Ht++]=Nn,Bt[Ht++]=bn,Bt[Ht++]=$r,Nn=n.id,bn=n.overflow,$r=o),o=Sf(o,c.children),o.flags|=4096,o)}function zg(n,o,l){n.lanes|=o;var c=n.alternate;c!==null&&(c.lanes|=o),Qc(n.return,o,l)}function Ef(n,o,l,c,p){var x=n.memoizedState;x===null?n.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:p}:(x.isBackwards=o,x.rendering=null,x.renderingStartTime=0,x.last=c,x.tail=l,x.tailMode=p)}function Fg(n,o,l){var c=o.pendingProps,p=c.revealOrder,x=c.tail;if(xt(n,o,c.children,l),c=Ue.current,(c&2)!==0)c=c&1|2,o.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=o.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&zg(n,l,o);else if(n.tag===19)zg(n,l,o);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===o)break e;for(;n.sibling===null;){if(n.return===null||n.return===o)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}c&=1}if(De(Ue,c),(o.mode&1)===0)o.memoizedState=null;else switch(p){case"forwards":for(l=o.child,p=null;l!==null;)n=l.alternate,n!==null&&Ml(n)===null&&(p=l),l=l.sibling;l=p,l===null?(p=o.child,o.child=null):(p=l.sibling,l.sibling=null),Ef(o,!1,p,l,x);break;case"backwards":for(l=null,p=o.child,o.child=null;p!==null;){if(n=p.alternate,n!==null&&Ml(n)===null){o.child=p;break}n=p.sibling,p.sibling=l,l=p,p=n}Ef(o,!0,l,null,x);break;case"together":Ef(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Vl(n,o){(o.mode&1)===0&&n!==null&&(n.alternate=null,o.alternate=null,o.flags|=2)}function Tn(n,o,l){if(n!==null&&(o.dependencies=n.dependencies),Or|=o.lanes,(l&o.childLanes)===0)return null;if(n!==null&&o.child!==n.child)throw Error(r(153));if(o.child!==null){for(n=o.child,l=pr(n,n.pendingProps),o.child=l,l.return=o;n.sibling!==null;)n=n.sibling,l=l.sibling=pr(n,n.pendingProps),l.return=o;l.sibling=null}return o.child}function bS(n,o,l){switch(o.tag){case 3:Lg(o),Io();break;case 5:eg(o);break;case 1:Et(o.type)&&_l(o);break;case 4:ef(o,o.stateNode.containerInfo);break;case 10:var c=o.type._context,p=o.memoizedProps.value;De(Il,c._currentValue),c._currentValue=p;break;case 13:if(c=o.memoizedState,c!==null)return c.dehydrated!==null?(De(Ue,Ue.current&1),o.flags|=128,null):(l&o.child.childLanes)!==0?Og(n,o,l):(De(Ue,Ue.current&1),n=Tn(n,o,l),n!==null?n.sibling:null);De(Ue,Ue.current&1);break;case 19:if(c=(l&o.childLanes)!==0,(n.flags&128)!==0){if(c)return Fg(n,o,l);o.flags|=128}if(p=o.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),De(Ue,Ue.current),c)break;return null;case 22:case 23:return o.lanes=0,$g(n,o,l)}return Tn(n,o,l)}var Bg,kf,Hg,Vg;Bg=function(n,o){for(var l=o.child;l!==null;){if(l.tag===5||l.tag===6)n.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},kf=function(){},Hg=function(n,o,l,c){var p=n.memoizedProps;if(p!==c){n=o.stateNode,Lr(pn.current);var x=null;switch(l){case"input":p=$e(n,p),c=$e(n,c),x=[];break;case"select":p=z({},p,{value:void 0}),c=z({},c,{value:void 0}),x=[];break;case"textarea":p=En(n,p),c=En(n,c),x=[];break;default:typeof p.onClick!="function"&&typeof c.onClick=="function"&&(n.onclick=El)}hi(l,c);var _;l=null;for(K in p)if(!c.hasOwnProperty(K)&&p.hasOwnProperty(K)&&p[K]!=null)if(K==="style"){var $=p[K];for(_ in $)$.hasOwnProperty(_)&&(l||(l={}),l[_]="")}else K!=="dangerouslySetInnerHTML"&&K!=="children"&&K!=="suppressContentEditableWarning"&&K!=="suppressHydrationWarning"&&K!=="autoFocus"&&(s.hasOwnProperty(K)?x||(x=[]):(x=x||[]).push(K,null));for(K in c){var D=c[K];if($=p!=null?p[K]:void 0,c.hasOwnProperty(K)&&D!==$&&(D!=null||$!=null))if(K==="style")if($){for(_ in $)!$.hasOwnProperty(_)||D&&D.hasOwnProperty(_)||(l||(l={}),l[_]="");for(_ in D)D.hasOwnProperty(_)&&$[_]!==D[_]&&(l||(l={}),l[_]=D[_])}else l||(x||(x=[]),x.push(K,l)),l=D;else K==="dangerouslySetInnerHTML"?(D=D?D.__html:void 0,$=$?$.__html:void 0,D!=null&&$!==D&&(x=x||[]).push(K,D)):K==="children"?typeof D!="string"&&typeof D!="number"||(x=x||[]).push(K,""+D):K!=="suppressContentEditableWarning"&&K!=="suppressHydrationWarning"&&(s.hasOwnProperty(K)?(D!=null&&K==="onScroll"&&Oe("scroll",n),x||$===D||(x=[])):(x=x||[]).push(K,D))}l&&(x=x||[]).push("style",l);var K=x;(o.updateQueue=K)&&(o.flags|=4)}},Vg=function(n,o,l,c){l!==c&&(o.flags|=4)};function Ki(n,o){if(!Be)switch(n.tailMode){case"hidden":o=n.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?o||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function pt(n){var o=n.alternate!==null&&n.alternate.child===n.child,l=0,c=0;if(o)for(var p=n.child;p!==null;)l|=p.lanes|p.childLanes,c|=p.subtreeFlags&14680064,c|=p.flags&14680064,p.return=n,p=p.sibling;else for(p=n.child;p!==null;)l|=p.lanes|p.childLanes,c|=p.subtreeFlags,c|=p.flags,p.return=n,p=p.sibling;return n.subtreeFlags|=c,n.childLanes=l,o}function PS(n,o,l){var c=o.pendingProps;switch(Uc(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(o),null;case 1:return Et(o.type)&&Cl(),pt(o),null;case 3:return c=o.stateNode,Mo(),ze(St),ze(dt),rf(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(n===null||n.child===null)&&(Rl(o)?o.flags|=4:n===null||n.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Qt!==null&&(Af(Qt),Qt=null))),kf(n,o),pt(o),null;case 5:tf(o);var p=Lr(Wi.current);if(l=o.type,n!==null&&o.stateNode!=null)Hg(n,o,l,c,p),n.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!c){if(o.stateNode===null)throw Error(r(166));return pt(o),null}if(n=Lr(pn.current),Rl(o)){c=o.stateNode,l=o.type;var x=o.memoizedProps;switch(c[hn]=o,c[Fi]=x,n=(o.mode&1)!==0,l){case"dialog":Oe("cancel",c),Oe("close",c);break;case"iframe":case"object":case"embed":Oe("load",c);break;case"video":case"audio":for(p=0;p<Di.length;p++)Oe(Di[p],c);break;case"source":Oe("error",c);break;case"img":case"image":case"link":Oe("error",c),Oe("load",c);break;case"details":Oe("toggle",c);break;case"input":Ke(c,x),Oe("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!x.multiple},Oe("invalid",c);break;case"textarea":Wn(c,x),Oe("invalid",c)}hi(l,x),p=null;for(var _ in x)if(x.hasOwnProperty(_)){var $=x[_];_==="children"?typeof $=="string"?c.textContent!==$&&(x.suppressHydrationWarning!==!0&&Sl(c.textContent,$,n),p=["children",$]):typeof $=="number"&&c.textContent!==""+$&&(x.suppressHydrationWarning!==!0&&Sl(c.textContent,$,n),p=["children",""+$]):s.hasOwnProperty(_)&&$!=null&&_==="onScroll"&&Oe("scroll",c)}switch(l){case"input":we(c),lo(c,x,!0);break;case"textarea":we(c),qn(c);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(c.onclick=El)}c=p,o.updateQueue=c,c!==null&&(o.flags|=4)}else{_=p.nodeType===9?p:p.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=Yn(l)),n==="http://www.w3.org/1999/xhtml"?l==="script"?(n=_.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof c.is=="string"?n=_.createElement(l,{is:c.is}):(n=_.createElement(l),l==="select"&&(_=n,c.multiple?_.multiple=!0:c.size&&(_.size=c.size))):n=_.createElementNS(n,l),n[hn]=o,n[Fi]=c,Bg(n,o,!1,!1),o.stateNode=n;e:{switch(_=pi(l,c),l){case"dialog":Oe("cancel",n),Oe("close",n),p=c;break;case"iframe":case"object":case"embed":Oe("load",n),p=c;break;case"video":case"audio":for(p=0;p<Di.length;p++)Oe(Di[p],n);p=c;break;case"source":Oe("error",n),p=c;break;case"img":case"image":case"link":Oe("error",n),Oe("load",n),p=c;break;case"details":Oe("toggle",n),p=c;break;case"input":Ke(n,c),p=$e(n,c),Oe("invalid",n);break;case"option":p=c;break;case"select":n._wrapperState={wasMultiple:!!c.multiple},p=z({},c,{value:void 0}),Oe("invalid",n);break;case"textarea":Wn(n,c),p=En(n,c),Oe("invalid",n);break;default:p=c}hi(l,p),$=p;for(x in $)if($.hasOwnProperty(x)){var D=$[x];x==="style"?Ys(n,D):x==="dangerouslySetInnerHTML"?(D=D?D.__html:void 0,D!=null&&co(n,D)):x==="children"?typeof D=="string"?(l!=="textarea"||D!=="")&&Nr(n,D):typeof D=="number"&&Nr(n,""+D):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(s.hasOwnProperty(x)?D!=null&&x==="onScroll"&&Oe("scroll",n):D!=null&&N(n,x,D,_))}switch(l){case"input":we(n),lo(n,c,!1);break;case"textarea":we(n),qn(n);break;case"option":c.value!=null&&n.setAttribute("value",""+re(c.value));break;case"select":n.multiple=!!c.multiple,x=c.value,x!=null?fn(n,!!c.multiple,x,!1):c.defaultValue!=null&&fn(n,!!c.multiple,c.defaultValue,!0);break;default:typeof p.onClick=="function"&&(n.onclick=El)}switch(l){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return pt(o),null;case 6:if(n&&o.stateNode!=null)Vg(n,o,n.memoizedProps,c);else{if(typeof c!="string"&&o.stateNode===null)throw Error(r(166));if(l=Lr(Wi.current),Lr(pn.current),Rl(o)){if(c=o.stateNode,l=o.memoizedProps,c[hn]=o,(x=c.nodeValue!==l)&&(n=jt,n!==null))switch(n.tag){case 3:Sl(c.nodeValue,l,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&Sl(c.nodeValue,l,(n.mode&1)!==0)}x&&(o.flags|=4)}else c=(l.nodeType===9?l:l.ownerDocument).createTextNode(c),c[hn]=o,o.stateNode=c}return pt(o),null;case 13:if(ze(Ue),c=o.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Be&&$t!==null&&(o.mode&1)!==0&&(o.flags&128)===0)qp(),Io(),o.flags|=98560,x=!1;else if(x=Rl(o),c!==null&&c.dehydrated!==null){if(n===null){if(!x)throw Error(r(318));if(x=o.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(r(317));x[hn]=o}else Io(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;pt(o),x=!1}else Qt!==null&&(Af(Qt),Qt=null),x=!0;if(!x)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=l,o):(c=c!==null,c!==(n!==null&&n.memoizedState!==null)&&c&&(o.child.flags|=8192,(o.mode&1)!==0&&(n===null||(Ue.current&1)!==0?nt===0&&(nt=3):Df())),o.updateQueue!==null&&(o.flags|=4),pt(o),null);case 4:return Mo(),kf(n,o),n===null&&Oi(o.stateNode.containerInfo),pt(o),null;case 10:return Kc(o.type._context),pt(o),null;case 17:return Et(o.type)&&Cl(),pt(o),null;case 19:if(ze(Ue),x=o.memoizedState,x===null)return pt(o),null;if(c=(o.flags&128)!==0,_=x.rendering,_===null)if(c)Ki(x,!1);else{if(nt!==0||n!==null&&(n.flags&128)!==0)for(n=o.child;n!==null;){if(_=Ml(n),_!==null){for(o.flags|=128,Ki(x,!1),c=_.updateQueue,c!==null&&(o.updateQueue=c,o.flags|=4),o.subtreeFlags=0,c=l,l=o.child;l!==null;)x=l,n=c,x.flags&=14680066,_=x.alternate,_===null?(x.childLanes=0,x.lanes=n,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=_.childLanes,x.lanes=_.lanes,x.child=_.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=_.memoizedProps,x.memoizedState=_.memoizedState,x.updateQueue=_.updateQueue,x.type=_.type,n=_.dependencies,x.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),l=l.sibling;return De(Ue,Ue.current&1|2),o.child}n=n.sibling}x.tail!==null&&Ve()>zo&&(o.flags|=128,c=!0,Ki(x,!1),o.lanes=4194304)}else{if(!c)if(n=Ml(_),n!==null){if(o.flags|=128,c=!0,l=n.updateQueue,l!==null&&(o.updateQueue=l,o.flags|=4),Ki(x,!0),x.tail===null&&x.tailMode==="hidden"&&!_.alternate&&!Be)return pt(o),null}else 2*Ve()-x.renderingStartTime>zo&&l!==1073741824&&(o.flags|=128,c=!0,Ki(x,!1),o.lanes=4194304);x.isBackwards?(_.sibling=o.child,o.child=_):(l=x.last,l!==null?l.sibling=_:o.child=_,x.last=_)}return x.tail!==null?(o=x.tail,x.rendering=o,x.tail=o.sibling,x.renderingStartTime=Ve(),o.sibling=null,l=Ue.current,De(Ue,c?l&1|2:l&1),o):(pt(o),null);case 22:case 23:return Lf(),c=o.memoizedState!==null,n!==null&&n.memoizedState!==null!==c&&(o.flags|=8192),c&&(o.mode&1)!==0?(At&1073741824)!==0&&(pt(o),o.subtreeFlags&6&&(o.flags|=8192)):pt(o),null;case 24:return null;case 25:return null}throw Error(r(156,o.tag))}function RS(n,o){switch(Uc(o),o.tag){case 1:return Et(o.type)&&Cl(),n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 3:return Mo(),ze(St),ze(dt),rf(),n=o.flags,(n&65536)!==0&&(n&128)===0?(o.flags=n&-65537|128,o):null;case 5:return tf(o),null;case 13:if(ze(Ue),n=o.memoizedState,n!==null&&n.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Io()}return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 19:return ze(Ue),null;case 4:return Mo(),null;case 10:return Kc(o.type._context),null;case 22:case 23:return Lf(),null;case 24:return null;default:return null}}var Ul=!1,gt=!1,TS=typeof WeakSet=="function"?WeakSet:Set,me=null;function Do(n,o){var l=n.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(c){Ye(n,o,c)}else l.current=null}function Cf(n,o,l){try{l()}catch(c){Ye(n,o,c)}}var Ug=!1;function IS(n,o){if(Mc=cl,n=Ep(),bc(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var p=c.anchorOffset,x=c.focusNode;c=c.focusOffset;try{l.nodeType,x.nodeType}catch{l=null;break e}var _=0,$=-1,D=-1,K=0,ae=0,ue=n,se=null;t:for(;;){for(var pe;ue!==l||p!==0&&ue.nodeType!==3||($=_+p),ue!==x||c!==0&&ue.nodeType!==3||(D=_+c),ue.nodeType===3&&(_+=ue.nodeValue.length),(pe=ue.firstChild)!==null;)se=ue,ue=pe;for(;;){if(ue===n)break t;if(se===l&&++K===p&&($=_),se===x&&++ae===c&&(D=_),(pe=ue.nextSibling)!==null)break;ue=se,se=ue.parentNode}ue=pe}l=$===-1||D===-1?null:{start:$,end:D}}else l=null}l=l||{start:0,end:0}}else l=null;for(Lc={focusedElem:n,selectionRange:l},cl=!1,me=o;me!==null;)if(o=me,n=o.child,(o.subtreeFlags&1028)!==0&&n!==null)n.return=o,me=n;else for(;me!==null;){o=me;try{var ye=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(ye!==null){var xe=ye.memoizedProps,Qe=ye.memoizedState,W=o.stateNode,B=W.getSnapshotBeforeUpdate(o.elementType===o.type?xe:Jt(o.type,xe),Qe);W.__reactInternalSnapshotBeforeUpdate=B}break;case 3:var X=o.stateNode.containerInfo;X.nodeType===1?X.textContent="":X.nodeType===9&&X.documentElement&&X.removeChild(X.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(fe){Ye(o,o.return,fe)}if(n=o.sibling,n!==null){n.return=o.return,me=n;break}me=o.return}return ye=Ug,Ug=!1,ye}function Qi(n,o,l){var c=o.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var p=c=c.next;do{if((p.tag&n)===n){var x=p.destroy;p.destroy=void 0,x!==void 0&&Cf(o,l,x)}p=p.next}while(p!==c)}}function Wl(n,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&n)===n){var c=l.create;l.destroy=c()}l=l.next}while(l!==o)}}function _f(n){var o=n.ref;if(o!==null){var l=n.stateNode;switch(n.tag){case 5:n=l;break;default:n=l}typeof o=="function"?o(n):o.current=n}}function Wg(n){var o=n.alternate;o!==null&&(n.alternate=null,Wg(o)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(o=n.stateNode,o!==null&&(delete o[hn],delete o[Fi],delete o[Fc],delete o[hS],delete o[pS])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function qg(n){return n.tag===5||n.tag===3||n.tag===4}function Yg(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||qg(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Nf(n,o,l){var c=n.tag;if(c===5||c===6)n=n.stateNode,o?l.nodeType===8?l.parentNode.insertBefore(n,o):l.insertBefore(n,o):(l.nodeType===8?(o=l.parentNode,o.insertBefore(n,l)):(o=l,o.appendChild(n)),l=l._reactRootContainer,l!=null||o.onclick!==null||(o.onclick=El));else if(c!==4&&(n=n.child,n!==null))for(Nf(n,o,l),n=n.sibling;n!==null;)Nf(n,o,l),n=n.sibling}function bf(n,o,l){var c=n.tag;if(c===5||c===6)n=n.stateNode,o?l.insertBefore(n,o):l.appendChild(n);else if(c!==4&&(n=n.child,n!==null))for(bf(n,o,l),n=n.sibling;n!==null;)bf(n,o,l),n=n.sibling}var ct=null,Zt=!1;function ur(n,o,l){for(l=l.child;l!==null;)Xg(n,o,l),l=l.sibling}function Xg(n,o,l){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(go,l)}catch{}switch(l.tag){case 5:gt||Do(l,o);case 6:var c=ct,p=Zt;ct=null,ur(n,o,l),ct=c,Zt=p,ct!==null&&(Zt?(n=ct,l=l.stateNode,n.nodeType===8?n.parentNode.removeChild(l):n.removeChild(l)):ct.removeChild(l.stateNode));break;case 18:ct!==null&&(Zt?(n=ct,l=l.stateNode,n.nodeType===8?zc(n.parentNode,l):n.nodeType===1&&zc(n,l),Ri(n)):zc(ct,l.stateNode));break;case 4:c=ct,p=Zt,ct=l.stateNode.containerInfo,Zt=!0,ur(n,o,l),ct=c,Zt=p;break;case 0:case 11:case 14:case 15:if(!gt&&(c=l.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){p=c=c.next;do{var x=p,_=x.destroy;x=x.tag,_!==void 0&&((x&2)!==0||(x&4)!==0)&&Cf(l,o,_),p=p.next}while(p!==c)}ur(n,o,l);break;case 1:if(!gt&&(Do(l,o),c=l.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=l.memoizedProps,c.state=l.memoizedState,c.componentWillUnmount()}catch($){Ye(l,o,$)}ur(n,o,l);break;case 21:ur(n,o,l);break;case 22:l.mode&1?(gt=(c=gt)||l.memoizedState!==null,ur(n,o,l),gt=c):ur(n,o,l);break;default:ur(n,o,l)}}function Gg(n){var o=n.updateQueue;if(o!==null){n.updateQueue=null;var l=n.stateNode;l===null&&(l=n.stateNode=new TS),o.forEach(function(c){var p=FS.bind(null,n,c);l.has(c)||(l.add(c),c.then(p,p))})}}function en(n,o){var l=o.deletions;if(l!==null)for(var c=0;c<l.length;c++){var p=l[c];try{var x=n,_=o,$=_;e:for(;$!==null;){switch($.tag){case 5:ct=$.stateNode,Zt=!1;break e;case 3:ct=$.stateNode.containerInfo,Zt=!0;break e;case 4:ct=$.stateNode.containerInfo,Zt=!0;break e}$=$.return}if(ct===null)throw Error(r(160));Xg(x,_,p),ct=null,Zt=!1;var D=p.alternate;D!==null&&(D.return=null),p.return=null}catch(K){Ye(p,o,K)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Kg(o,n),o=o.sibling}function Kg(n,o){var l=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(en(o,n),mn(n),c&4){try{Qi(3,n,n.return),Wl(3,n)}catch(xe){Ye(n,n.return,xe)}try{Qi(5,n,n.return)}catch(xe){Ye(n,n.return,xe)}}break;case 1:en(o,n),mn(n),c&512&&l!==null&&Do(l,l.return);break;case 5:if(en(o,n),mn(n),c&512&&l!==null&&Do(l,l.return),n.flags&32){var p=n.stateNode;try{Nr(p,"")}catch(xe){Ye(n,n.return,xe)}}if(c&4&&(p=n.stateNode,p!=null)){var x=n.memoizedProps,_=l!==null?l.memoizedProps:x,$=n.type,D=n.updateQueue;if(n.updateQueue=null,D!==null)try{$==="input"&&x.type==="radio"&&x.name!=null&&Xt(p,x),pi($,_);var K=pi($,x);for(_=0;_<D.length;_+=2){var ae=D[_],ue=D[_+1];ae==="style"?Ys(p,ue):ae==="dangerouslySetInnerHTML"?co(p,ue):ae==="children"?Nr(p,ue):N(p,ae,ue,K)}switch($){case"input":Cr(p,x);break;case"textarea":ao(p,x);break;case"select":var se=p._wrapperState.wasMultiple;p._wrapperState.wasMultiple=!!x.multiple;var pe=x.value;pe!=null?fn(p,!!x.multiple,pe,!1):se!==!!x.multiple&&(x.defaultValue!=null?fn(p,!!x.multiple,x.defaultValue,!0):fn(p,!!x.multiple,x.multiple?[]:"",!1))}p[Fi]=x}catch(xe){Ye(n,n.return,xe)}}break;case 6:if(en(o,n),mn(n),c&4){if(n.stateNode===null)throw Error(r(162));p=n.stateNode,x=n.memoizedProps;try{p.nodeValue=x}catch(xe){Ye(n,n.return,xe)}}break;case 3:if(en(o,n),mn(n),c&4&&l!==null&&l.memoizedState.isDehydrated)try{Ri(o.containerInfo)}catch(xe){Ye(n,n.return,xe)}break;case 4:en(o,n),mn(n);break;case 13:en(o,n),mn(n),p=n.child,p.flags&8192&&(x=p.memoizedState!==null,p.stateNode.isHidden=x,!x||p.alternate!==null&&p.alternate.memoizedState!==null||(Tf=Ve())),c&4&&Gg(n);break;case 22:if(ae=l!==null&&l.memoizedState!==null,n.mode&1?(gt=(K=gt)||ae,en(o,n),gt=K):en(o,n),mn(n),c&8192){if(K=n.memoizedState!==null,(n.stateNode.isHidden=K)&&!ae&&(n.mode&1)!==0)for(me=n,ae=n.child;ae!==null;){for(ue=me=ae;me!==null;){switch(se=me,pe=se.child,se.tag){case 0:case 11:case 14:case 15:Qi(4,se,se.return);break;case 1:Do(se,se.return);var ye=se.stateNode;if(typeof ye.componentWillUnmount=="function"){c=se,l=se.return;try{o=c,ye.props=o.memoizedProps,ye.state=o.memoizedState,ye.componentWillUnmount()}catch(xe){Ye(c,l,xe)}}break;case 5:Do(se,se.return);break;case 22:if(se.memoizedState!==null){Zg(ue);continue}}pe!==null?(pe.return=se,me=pe):Zg(ue)}ae=ae.sibling}e:for(ae=null,ue=n;;){if(ue.tag===5){if(ae===null){ae=ue;try{p=ue.stateNode,K?(x=p.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):($=ue.stateNode,D=ue.memoizedProps.style,_=D!=null&&D.hasOwnProperty("display")?D.display:null,$.style.display=qs("display",_))}catch(xe){Ye(n,n.return,xe)}}}else if(ue.tag===6){if(ae===null)try{ue.stateNode.nodeValue=K?"":ue.memoizedProps}catch(xe){Ye(n,n.return,xe)}}else if((ue.tag!==22&&ue.tag!==23||ue.memoizedState===null||ue===n)&&ue.child!==null){ue.child.return=ue,ue=ue.child;continue}if(ue===n)break e;for(;ue.sibling===null;){if(ue.return===null||ue.return===n)break e;ae===ue&&(ae=null),ue=ue.return}ae===ue&&(ae=null),ue.sibling.return=ue.return,ue=ue.sibling}}break;case 19:en(o,n),mn(n),c&4&&Gg(n);break;case 21:break;default:en(o,n),mn(n)}}function mn(n){var o=n.flags;if(o&2){try{e:{for(var l=n.return;l!==null;){if(qg(l)){var c=l;break e}l=l.return}throw Error(r(160))}switch(c.tag){case 5:var p=c.stateNode;c.flags&32&&(Nr(p,""),c.flags&=-33);var x=Yg(n);bf(n,x,p);break;case 3:case 4:var _=c.stateNode.containerInfo,$=Yg(n);Nf(n,$,_);break;default:throw Error(r(161))}}catch(D){Ye(n,n.return,D)}n.flags&=-3}o&4096&&(n.flags&=-4097)}function jS(n,o,l){me=n,Qg(n)}function Qg(n,o,l){for(var c=(n.mode&1)!==0;me!==null;){var p=me,x=p.child;if(p.tag===22&&c){var _=p.memoizedState!==null||Ul;if(!_){var $=p.alternate,D=$!==null&&$.memoizedState!==null||gt;$=Ul;var K=gt;if(Ul=_,(gt=D)&&!K)for(me=p;me!==null;)_=me,D=_.child,_.tag===22&&_.memoizedState!==null?em(p):D!==null?(D.return=_,me=D):em(p);for(;x!==null;)me=x,Qg(x),x=x.sibling;me=p,Ul=$,gt=K}Jg(n)}else(p.subtreeFlags&8772)!==0&&x!==null?(x.return=p,me=x):Jg(n)}}function Jg(n){for(;me!==null;){var o=me;if((o.flags&8772)!==0){var l=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:gt||Wl(5,o);break;case 1:var c=o.stateNode;if(o.flags&4&&!gt)if(l===null)c.componentDidMount();else{var p=o.elementType===o.type?l.memoizedProps:Jt(o.type,l.memoizedProps);c.componentDidUpdate(p,l.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var x=o.updateQueue;x!==null&&Zp(o,x,c);break;case 3:var _=o.updateQueue;if(_!==null){if(l=null,o.child!==null)switch(o.child.tag){case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode}Zp(o,_,l)}break;case 5:var $=o.stateNode;if(l===null&&o.flags&4){l=$;var D=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":D.autoFocus&&l.focus();break;case"img":D.src&&(l.src=D.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var K=o.alternate;if(K!==null){var ae=K.memoizedState;if(ae!==null){var ue=ae.dehydrated;ue!==null&&Ri(ue)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}gt||o.flags&512&&_f(o)}catch(se){Ye(o,o.return,se)}}if(o===n){me=null;break}if(l=o.sibling,l!==null){l.return=o.return,me=l;break}me=o.return}}function Zg(n){for(;me!==null;){var o=me;if(o===n){me=null;break}var l=o.sibling;if(l!==null){l.return=o.return,me=l;break}me=o.return}}function em(n){for(;me!==null;){var o=me;try{switch(o.tag){case 0:case 11:case 15:var l=o.return;try{Wl(4,o)}catch(D){Ye(o,l,D)}break;case 1:var c=o.stateNode;if(typeof c.componentDidMount=="function"){var p=o.return;try{c.componentDidMount()}catch(D){Ye(o,p,D)}}var x=o.return;try{_f(o)}catch(D){Ye(o,x,D)}break;case 5:var _=o.return;try{_f(o)}catch(D){Ye(o,_,D)}}}catch(D){Ye(o,o.return,D)}if(o===n){me=null;break}var $=o.sibling;if($!==null){$.return=o.return,me=$;break}me=o.return}}var $S=Math.ceil,ql=b.ReactCurrentDispatcher,Pf=b.ReactCurrentOwner,Wt=b.ReactCurrentBatchConfig,Te=0,it=null,Je=null,ft=0,At=0,Oo=or(0),nt=0,Ji=null,Or=0,Yl=0,Rf=0,Zi=null,Ct=null,Tf=0,zo=1/0,In=null,Xl=!1,If=null,cr=null,Gl=!1,fr=null,Kl=0,es=0,jf=null,Ql=-1,Jl=0;function vt(){return(Te&6)!==0?Ve():Ql!==-1?Ql:Ql=Ve()}function dr(n){return(n.mode&1)===0?1:(Te&2)!==0&&ft!==0?ft&-ft:mS.transition!==null?(Jl===0&&(Jl=Yh()),Jl):(n=Me,n!==0||(n=window.event,n=n===void 0?16:np(n.type)),n)}function tn(n,o,l,c){if(50<es)throw es=0,jf=null,Error(r(185));Ci(n,l,c),((Te&2)===0||n!==it)&&(n===it&&((Te&2)===0&&(Yl|=l),nt===4&&hr(n,ft)),_t(n,c),l===1&&Te===0&&(o.mode&1)===0&&(zo=Ve()+500,Nl&&sr()))}function _t(n,o){var l=n.callbackNode;mw(n,o);var c=xo(n,n===it?ft:0);if(c===0)l!==null&&il(l),n.callbackNode=null,n.callbackPriority=0;else if(o=c&-c,n.callbackPriority!==o){if(l!=null&&il(l),o===1)n.tag===0?gS(nm.bind(null,n)):Bp(nm.bind(null,n)),fS(function(){(Te&6)===0&&sr()}),l=null;else{switch(Xh(c)){case 1:l=Ei;break;case 4:l=ll;break;case 16:l=po;break;case 536870912:l=ki;break;default:l=po}l=cm(l,tm.bind(null,n))}n.callbackPriority=o,n.callbackNode=l}}function tm(n,o){if(Ql=-1,Jl=0,(Te&6)!==0)throw Error(r(327));var l=n.callbackNode;if(Fo()&&n.callbackNode!==l)return null;var c=xo(n,n===it?ft:0);if(c===0)return null;if((c&30)!==0||(c&n.expiredLanes)!==0||o)o=Zl(n,c);else{o=c;var p=Te;Te|=2;var x=om();(it!==n||ft!==o)&&(In=null,zo=Ve()+500,Fr(n,o));do try{LS();break}catch($){rm(n,$)}while(!0);Gc(),ql.current=x,Te=p,Je!==null?o=0:(it=null,ft=0,o=nt)}if(o!==0){if(o===2&&(p=fc(n),p!==0&&(c=p,o=$f(n,p))),o===1)throw l=Ji,Fr(n,0),hr(n,c),_t(n,Ve()),l;if(o===6)hr(n,c);else{if(p=n.current.alternate,(c&30)===0&&!AS(p)&&(o=Zl(n,c),o===2&&(x=fc(n),x!==0&&(c=x,o=$f(n,x))),o===1))throw l=Ji,Fr(n,0),hr(n,c),_t(n,Ve()),l;switch(n.finishedWork=p,n.finishedLanes=c,o){case 0:case 1:throw Error(r(345));case 2:Br(n,Ct,In);break;case 3:if(hr(n,c),(c&130023424)===c&&(o=Tf+500-Ve(),10<o)){if(xo(n,0)!==0)break;if(p=n.suspendedLanes,(p&c)!==c){vt(),n.pingedLanes|=n.suspendedLanes&p;break}n.timeoutHandle=Oc(Br.bind(null,n,Ct,In),o);break}Br(n,Ct,In);break;case 4:if(hr(n,c),(c&4194240)===c)break;for(o=n.eventTimes,p=-1;0<c;){var _=31-Tt(c);x=1<<_,_=o[_],_>p&&(p=_),c&=~x}if(c=p,c=Ve()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*$S(c/1960))-c,10<c){n.timeoutHandle=Oc(Br.bind(null,n,Ct,In),c);break}Br(n,Ct,In);break;case 5:Br(n,Ct,In);break;default:throw Error(r(329))}}}return _t(n,Ve()),n.callbackNode===l?tm.bind(null,n):null}function $f(n,o){var l=Zi;return n.current.memoizedState.isDehydrated&&(Fr(n,o).flags|=256),n=Zl(n,o),n!==2&&(o=Ct,Ct=l,o!==null&&Af(o)),n}function Af(n){Ct===null?Ct=n:Ct.push.apply(Ct,n)}function AS(n){for(var o=n;;){if(o.flags&16384){var l=o.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var c=0;c<l.length;c++){var p=l[c],x=p.getSnapshot;p=p.value;try{if(!Kt(x(),p))return!1}catch{return!1}}}if(l=o.child,o.subtreeFlags&16384&&l!==null)l.return=o,o=l;else{if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function hr(n,o){for(o&=~Rf,o&=~Yl,n.suspendedLanes|=o,n.pingedLanes&=~o,n=n.expirationTimes;0<o;){var l=31-Tt(o),c=1<<l;n[l]=-1,o&=~c}}function nm(n){if((Te&6)!==0)throw Error(r(327));Fo();var o=xo(n,0);if((o&1)===0)return _t(n,Ve()),null;var l=Zl(n,o);if(n.tag!==0&&l===2){var c=fc(n);c!==0&&(o=c,l=$f(n,c))}if(l===1)throw l=Ji,Fr(n,0),hr(n,o),_t(n,Ve()),l;if(l===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=o,Br(n,Ct,In),_t(n,Ve()),null}function Mf(n,o){var l=Te;Te|=1;try{return n(o)}finally{Te=l,Te===0&&(zo=Ve()+500,Nl&&sr())}}function zr(n){fr!==null&&fr.tag===0&&(Te&6)===0&&Fo();var o=Te;Te|=1;var l=Wt.transition,c=Me;try{if(Wt.transition=null,Me=1,n)return n()}finally{Me=c,Wt.transition=l,Te=o,(Te&6)===0&&sr()}}function Lf(){At=Oo.current,ze(Oo)}function Fr(n,o){n.finishedWork=null,n.finishedLanes=0;var l=n.timeoutHandle;if(l!==-1&&(n.timeoutHandle=-1,cS(l)),Je!==null)for(l=Je.return;l!==null;){var c=l;switch(Uc(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Cl();break;case 3:Mo(),ze(St),ze(dt),rf();break;case 5:tf(c);break;case 4:Mo();break;case 13:ze(Ue);break;case 19:ze(Ue);break;case 10:Kc(c.type._context);break;case 22:case 23:Lf()}l=l.return}if(it=n,Je=n=pr(n.current,null),ft=At=o,nt=0,Ji=null,Rf=Yl=Or=0,Ct=Zi=null,Mr!==null){for(o=0;o<Mr.length;o++)if(l=Mr[o],c=l.interleaved,c!==null){l.interleaved=null;var p=c.next,x=l.pending;if(x!==null){var _=x.next;x.next=p,c.next=_}l.pending=c}Mr=null}return n}function rm(n,o){do{var l=Je;try{if(Gc(),Ll.current=Fl,Dl){for(var c=We.memoizedState;c!==null;){var p=c.queue;p!==null&&(p.pending=null),c=c.next}Dl=!1}if(Dr=0,ot=tt=We=null,qi=!1,Yi=0,Pf.current=null,l===null||l.return===null){nt=1,Ji=o,Je=null;break}e:{var x=n,_=l.return,$=l,D=o;if(o=ft,$.flags|=32768,D!==null&&typeof D=="object"&&typeof D.then=="function"){var K=D,ae=$,ue=ae.tag;if((ae.mode&1)===0&&(ue===0||ue===11||ue===15)){var se=ae.alternate;se?(ae.updateQueue=se.updateQueue,ae.memoizedState=se.memoizedState,ae.lanes=se.lanes):(ae.updateQueue=null,ae.memoizedState=null)}var pe=Pg(_);if(pe!==null){pe.flags&=-257,Rg(pe,_,$,x,o),pe.mode&1&&bg(x,K,o),o=pe,D=K;var ye=o.updateQueue;if(ye===null){var xe=new Set;xe.add(D),o.updateQueue=xe}else ye.add(D);break e}else{if((o&1)===0){bg(x,K,o),Df();break e}D=Error(r(426))}}else if(Be&&$.mode&1){var Qe=Pg(_);if(Qe!==null){(Qe.flags&65536)===0&&(Qe.flags|=256),Rg(Qe,_,$,x,o),Yc(Lo(D,$));break e}}x=D=Lo(D,$),nt!==4&&(nt=2),Zi===null?Zi=[x]:Zi.push(x),x=_;do{switch(x.tag){case 3:x.flags|=65536,o&=-o,x.lanes|=o;var W=_g(x,D,o);Jp(x,W);break e;case 1:$=D;var B=x.type,X=x.stateNode;if((x.flags&128)===0&&(typeof B.getDerivedStateFromError=="function"||X!==null&&typeof X.componentDidCatch=="function"&&(cr===null||!cr.has(X)))){x.flags|=65536,o&=-o,x.lanes|=o;var fe=Ng(x,$,o);Jp(x,fe);break e}}x=x.return}while(x!==null)}sm(l)}catch(ve){o=ve,Je===l&&l!==null&&(Je=l=l.return);continue}break}while(!0)}function om(){var n=ql.current;return ql.current=Fl,n===null?Fl:n}function Df(){(nt===0||nt===3||nt===2)&&(nt=4),it===null||(Or&268435455)===0&&(Yl&268435455)===0||hr(it,ft)}function Zl(n,o){var l=Te;Te|=2;var c=om();(it!==n||ft!==o)&&(In=null,Fr(n,o));do try{MS();break}catch(p){rm(n,p)}while(!0);if(Gc(),Te=l,ql.current=c,Je!==null)throw Error(r(261));return it=null,ft=0,nt}function MS(){for(;Je!==null;)im(Je)}function LS(){for(;Je!==null&&!sl();)im(Je)}function im(n){var o=um(n.alternate,n,At);n.memoizedProps=n.pendingProps,o===null?sm(n):Je=o,Pf.current=null}function sm(n){var o=n;do{var l=o.alternate;if(n=o.return,(o.flags&32768)===0){if(l=PS(l,o,At),l!==null){Je=l;return}}else{if(l=RS(l,o),l!==null){l.flags&=32767,Je=l;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{nt=6,Je=null;return}}if(o=o.sibling,o!==null){Je=o;return}Je=o=n}while(o!==null);nt===0&&(nt=5)}function Br(n,o,l){var c=Me,p=Wt.transition;try{Wt.transition=null,Me=1,DS(n,o,l,c)}finally{Wt.transition=p,Me=c}return null}function DS(n,o,l,c){do Fo();while(fr!==null);if((Te&6)!==0)throw Error(r(327));l=n.finishedWork;var p=n.finishedLanes;if(l===null)return null;if(n.finishedWork=null,n.finishedLanes=0,l===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var x=l.lanes|l.childLanes;if(yw(n,x),n===it&&(Je=it=null,ft=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Gl||(Gl=!0,cm(po,function(){return Fo(),null})),x=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||x){x=Wt.transition,Wt.transition=null;var _=Me;Me=1;var $=Te;Te|=4,Pf.current=null,IS(n,l),Kg(l,n),rS(Lc),cl=!!Mc,Lc=Mc=null,n.current=l,jS(l),oc(),Te=$,Me=_,Wt.transition=x}else n.current=l;if(Gl&&(Gl=!1,fr=n,Kl=p),x=n.pendingLanes,x===0&&(cr=null),lc(l.stateNode),_t(n,Ve()),o!==null)for(c=n.onRecoverableError,l=0;l<o.length;l++)p=o[l],c(p.value,{componentStack:p.stack,digest:p.digest});if(Xl)throw Xl=!1,n=If,If=null,n;return(Kl&1)!==0&&n.tag!==0&&Fo(),x=n.pendingLanes,(x&1)!==0?n===jf?es++:(es=0,jf=n):es=0,sr(),null}function Fo(){if(fr!==null){var n=Xh(Kl),o=Wt.transition,l=Me;try{if(Wt.transition=null,Me=16>n?16:n,fr===null)var c=!1;else{if(n=fr,fr=null,Kl=0,(Te&6)!==0)throw Error(r(331));var p=Te;for(Te|=4,me=n.current;me!==null;){var x=me,_=x.child;if((me.flags&16)!==0){var $=x.deletions;if($!==null){for(var D=0;D<$.length;D++){var K=$[D];for(me=K;me!==null;){var ae=me;switch(ae.tag){case 0:case 11:case 15:Qi(8,ae,x)}var ue=ae.child;if(ue!==null)ue.return=ae,me=ue;else for(;me!==null;){ae=me;var se=ae.sibling,pe=ae.return;if(Wg(ae),ae===K){me=null;break}if(se!==null){se.return=pe,me=se;break}me=pe}}}var ye=x.alternate;if(ye!==null){var xe=ye.child;if(xe!==null){ye.child=null;do{var Qe=xe.sibling;xe.sibling=null,xe=Qe}while(xe!==null)}}me=x}}if((x.subtreeFlags&2064)!==0&&_!==null)_.return=x,me=_;else e:for(;me!==null;){if(x=me,(x.flags&2048)!==0)switch(x.tag){case 0:case 11:case 15:Qi(9,x,x.return)}var W=x.sibling;if(W!==null){W.return=x.return,me=W;break e}me=x.return}}var B=n.current;for(me=B;me!==null;){_=me;var X=_.child;if((_.subtreeFlags&2064)!==0&&X!==null)X.return=_,me=X;else e:for(_=B;me!==null;){if($=me,($.flags&2048)!==0)try{switch($.tag){case 0:case 11:case 15:Wl(9,$)}}catch(ve){Ye($,$.return,ve)}if($===_){me=null;break e}var fe=$.sibling;if(fe!==null){fe.return=$.return,me=fe;break e}me=$.return}}if(Te=p,sr(),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(go,n)}catch{}c=!0}return c}finally{Me=l,Wt.transition=o}}return!1}function lm(n,o,l){o=Lo(l,o),o=_g(n,o,1),n=ar(n,o,1),o=vt(),n!==null&&(Ci(n,1,o),_t(n,o))}function Ye(n,o,l){if(n.tag===3)lm(n,n,l);else for(;o!==null;){if(o.tag===3){lm(o,n,l);break}else if(o.tag===1){var c=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(cr===null||!cr.has(c))){n=Lo(l,n),n=Ng(o,n,1),o=ar(o,n,1),n=vt(),o!==null&&(Ci(o,1,n),_t(o,n));break}}o=o.return}}function OS(n,o,l){var c=n.pingCache;c!==null&&c.delete(o),o=vt(),n.pingedLanes|=n.suspendedLanes&l,it===n&&(ft&l)===l&&(nt===4||nt===3&&(ft&130023424)===ft&&500>Ve()-Tf?Fr(n,0):Rf|=l),_t(n,o)}function am(n,o){o===0&&((n.mode&1)===0?o=1:(o=yo,yo<<=1,(yo&130023424)===0&&(yo=4194304)));var l=vt();n=Pn(n,o),n!==null&&(Ci(n,o,l),_t(n,l))}function zS(n){var o=n.memoizedState,l=0;o!==null&&(l=o.retryLane),am(n,l)}function FS(n,o){var l=0;switch(n.tag){case 13:var c=n.stateNode,p=n.memoizedState;p!==null&&(l=p.retryLane);break;case 19:c=n.stateNode;break;default:throw Error(r(314))}c!==null&&c.delete(o),am(n,l)}var um;um=function(n,o,l){if(n!==null)if(n.memoizedProps!==o.pendingProps||St.current)kt=!0;else{if((n.lanes&l)===0&&(o.flags&128)===0)return kt=!1,bS(n,o,l);kt=(n.flags&131072)!==0}else kt=!1,Be&&(o.flags&1048576)!==0&&Hp(o,Pl,o.index);switch(o.lanes=0,o.tag){case 2:var c=o.type;Vl(n,o),n=o.pendingProps;var p=Po(o,dt.current);Ao(o,l),p=lf(null,o,c,n,p,l);var x=af();return o.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Et(c)?(x=!0,_l(o)):x=!1,o.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,Zc(o),p.updater=Bl,o.stateNode=p,p._reactInternals=o,pf(o,c,n,l),o=xf(null,o,c,!0,x,l)):(o.tag=0,Be&&x&&Vc(o),xt(null,o,p,l),o=o.child),o;case 16:c=o.elementType;e:{switch(Vl(n,o),n=o.pendingProps,p=c._init,c=p(c._payload),o.type=c,p=o.tag=HS(c),n=Jt(c,n),p){case 0:o=yf(null,o,c,n,l);break e;case 1:o=Mg(null,o,c,n,l);break e;case 11:o=Tg(null,o,c,n,l);break e;case 14:o=Ig(null,o,c,Jt(c.type,n),l);break e}throw Error(r(306,c,""))}return o;case 0:return c=o.type,p=o.pendingProps,p=o.elementType===c?p:Jt(c,p),yf(n,o,c,p,l);case 1:return c=o.type,p=o.pendingProps,p=o.elementType===c?p:Jt(c,p),Mg(n,o,c,p,l);case 3:e:{if(Lg(o),n===null)throw Error(r(387));c=o.pendingProps,x=o.memoizedState,p=x.element,Qp(n,o),Al(o,c,null,l);var _=o.memoizedState;if(c=_.element,x.isDehydrated)if(x={element:c,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},o.updateQueue.baseState=x,o.memoizedState=x,o.flags&256){p=Lo(Error(r(423)),o),o=Dg(n,o,c,l,p);break e}else if(c!==p){p=Lo(Error(r(424)),o),o=Dg(n,o,c,l,p);break e}else for($t=rr(o.stateNode.containerInfo.firstChild),jt=o,Be=!0,Qt=null,l=Gp(o,null,c,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Io(),c===p){o=Tn(n,o,l);break e}xt(n,o,c,l)}o=o.child}return o;case 5:return eg(o),n===null&&qc(o),c=o.type,p=o.pendingProps,x=n!==null?n.memoizedProps:null,_=p.children,Dc(c,p)?_=null:x!==null&&Dc(c,x)&&(o.flags|=32),Ag(n,o),xt(n,o,_,l),o.child;case 6:return n===null&&qc(o),null;case 13:return Og(n,o,l);case 4:return ef(o,o.stateNode.containerInfo),c=o.pendingProps,n===null?o.child=jo(o,null,c,l):xt(n,o,c,l),o.child;case 11:return c=o.type,p=o.pendingProps,p=o.elementType===c?p:Jt(c,p),Tg(n,o,c,p,l);case 7:return xt(n,o,o.pendingProps,l),o.child;case 8:return xt(n,o,o.pendingProps.children,l),o.child;case 12:return xt(n,o,o.pendingProps.children,l),o.child;case 10:e:{if(c=o.type._context,p=o.pendingProps,x=o.memoizedProps,_=p.value,De(Il,c._currentValue),c._currentValue=_,x!==null)if(Kt(x.value,_)){if(x.children===p.children&&!St.current){o=Tn(n,o,l);break e}}else for(x=o.child,x!==null&&(x.return=o);x!==null;){var $=x.dependencies;if($!==null){_=x.child;for(var D=$.firstContext;D!==null;){if(D.context===c){if(x.tag===1){D=Rn(-1,l&-l),D.tag=2;var K=x.updateQueue;if(K!==null){K=K.shared;var ae=K.pending;ae===null?D.next=D:(D.next=ae.next,ae.next=D),K.pending=D}}x.lanes|=l,D=x.alternate,D!==null&&(D.lanes|=l),Qc(x.return,l,o),$.lanes|=l;break}D=D.next}}else if(x.tag===10)_=x.type===o.type?null:x.child;else if(x.tag===18){if(_=x.return,_===null)throw Error(r(341));_.lanes|=l,$=_.alternate,$!==null&&($.lanes|=l),Qc(_,l,o),_=x.sibling}else _=x.child;if(_!==null)_.return=x;else for(_=x;_!==null;){if(_===o){_=null;break}if(x=_.sibling,x!==null){x.return=_.return,_=x;break}_=_.return}x=_}xt(n,o,p.children,l),o=o.child}return o;case 9:return p=o.type,c=o.pendingProps.children,Ao(o,l),p=Vt(p),c=c(p),o.flags|=1,xt(n,o,c,l),o.child;case 14:return c=o.type,p=Jt(c,o.pendingProps),p=Jt(c.type,p),Ig(n,o,c,p,l);case 15:return jg(n,o,o.type,o.pendingProps,l);case 17:return c=o.type,p=o.pendingProps,p=o.elementType===c?p:Jt(c,p),Vl(n,o),o.tag=1,Et(c)?(n=!0,_l(o)):n=!1,Ao(o,l),kg(o,c,p),pf(o,c,p,l),xf(null,o,c,!0,n,l);case 19:return Fg(n,o,l);case 22:return $g(n,o,l)}throw Error(r(156,o.tag))};function cm(n,o){return ol(n,o)}function BS(n,o,l,c){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qt(n,o,l,c){return new BS(n,o,l,c)}function Of(n){return n=n.prototype,!(!n||!n.isReactComponent)}function HS(n){if(typeof n=="function")return Of(n)?1:0;if(n!=null){if(n=n.$$typeof,n===ne)return 11;if(n===U)return 14}return 2}function pr(n,o){var l=n.alternate;return l===null?(l=qt(n.tag,o,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=o,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&14680064,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,o=n.dependencies,l.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l}function ea(n,o,l,c,p,x){var _=2;if(c=n,typeof n=="function")Of(n)&&(_=1);else if(typeof n=="string")_=5;else e:switch(n){case j:return Hr(l.children,p,x,o);case G:_=8,p|=8;break;case V:return n=qt(12,l,o,p|2),n.elementType=V,n.lanes=x,n;case J:return n=qt(13,l,o,p),n.elementType=J,n.lanes=x,n;case I:return n=qt(19,l,o,p),n.elementType=I,n.lanes=x,n;case q:return ta(l,p,x,o);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case Y:_=10;break e;case ee:_=9;break e;case ne:_=11;break e;case U:_=14;break e;case F:_=16,c=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return o=qt(_,l,o,p),o.elementType=n,o.type=c,o.lanes=x,o}function Hr(n,o,l,c){return n=qt(7,n,c,o),n.lanes=l,n}function ta(n,o,l,c){return n=qt(22,n,c,o),n.elementType=q,n.lanes=l,n.stateNode={isHidden:!1},n}function zf(n,o,l){return n=qt(6,n,null,o),n.lanes=l,n}function Ff(n,o,l){return o=qt(4,n.children!==null?n.children:[],n.key,o),o.lanes=l,o.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},o}function VS(n,o,l,c,p){this.tag=o,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=dc(0),this.expirationTimes=dc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dc(0),this.identifierPrefix=c,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function Bf(n,o,l,c,p,x,_,$,D){return n=new VS(n,o,l,$,D),o===1?(o=1,x===!0&&(o|=8)):o=0,x=qt(3,null,null,o),n.current=x,x.stateNode=n,x.memoizedState={element:c,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zc(x),n}function US(n,o,l){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:c==null?null:""+c,children:n,containerInfo:o,implementation:l}}function fm(n){if(!n)return ir;n=n._reactInternals;e:{if(dn(n)!==n||n.tag!==1)throw Error(r(170));var o=n;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Et(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(r(171))}if(n.tag===1){var l=n.type;if(Et(l))return zp(n,l,o)}return o}function dm(n,o,l,c,p,x,_,$,D){return n=Bf(l,c,!0,n,p,x,_,$,D),n.context=fm(null),l=n.current,c=vt(),p=dr(l),x=Rn(c,p),x.callback=o??null,ar(l,x,p),n.current.lanes=p,Ci(n,p,c),_t(n,c),n}function na(n,o,l,c){var p=o.current,x=vt(),_=dr(p);return l=fm(l),o.context===null?o.context=l:o.pendingContext=l,o=Rn(x,_),o.payload={element:n},c=c===void 0?null:c,c!==null&&(o.callback=c),n=ar(p,o,_),n!==null&&(tn(n,p,_,x),$l(n,p,_)),_}function ra(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function hm(n,o){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<o?l:o}}function Hf(n,o){hm(n,o),(n=n.alternate)&&hm(n,o)}function WS(){return null}var pm=typeof reportError=="function"?reportError:function(n){console.error(n)};function Vf(n){this._internalRoot=n}oa.prototype.render=Vf.prototype.render=function(n){var o=this._internalRoot;if(o===null)throw Error(r(409));na(n,o,null,null)},oa.prototype.unmount=Vf.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var o=n.containerInfo;zr(function(){na(null,n,null,null)}),o[Cn]=null}};function oa(n){this._internalRoot=n}oa.prototype.unstable_scheduleHydration=function(n){if(n){var o=Qh();n={blockedOn:null,target:n,priority:o};for(var l=0;l<er.length&&o!==0&&o<er[l].priority;l++);er.splice(l,0,n),l===0&&ep(n)}};function Uf(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function ia(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function gm(){}function qS(n,o,l,c,p){if(p){if(typeof c=="function"){var x=c;c=function(){var K=ra(_);x.call(K)}}var _=dm(o,c,n,0,null,!1,!1,"",gm);return n._reactRootContainer=_,n[Cn]=_.current,Oi(n.nodeType===8?n.parentNode:n),zr(),_}for(;p=n.lastChild;)n.removeChild(p);if(typeof c=="function"){var $=c;c=function(){var K=ra(D);$.call(K)}}var D=Bf(n,0,!1,null,null,!1,!1,"",gm);return n._reactRootContainer=D,n[Cn]=D.current,Oi(n.nodeType===8?n.parentNode:n),zr(function(){na(o,D,l,c)}),D}function sa(n,o,l,c,p){var x=l._reactRootContainer;if(x){var _=x;if(typeof p=="function"){var $=p;p=function(){var D=ra(_);$.call(D)}}na(o,_,n,p)}else _=qS(l,o,n,p,c);return ra(_)}Gh=function(n){switch(n.tag){case 3:var o=n.stateNode;if(o.current.memoizedState.isDehydrated){var l=kn(o.pendingLanes);l!==0&&(hc(o,l|1),_t(o,Ve()),(Te&6)===0&&(zo=Ve()+500,sr()))}break;case 13:zr(function(){var c=Pn(n,1);if(c!==null){var p=vt();tn(c,n,1,p)}}),Hf(n,1)}},pc=function(n){if(n.tag===13){var o=Pn(n,134217728);if(o!==null){var l=vt();tn(o,n,134217728,l)}Hf(n,134217728)}},Kh=function(n){if(n.tag===13){var o=dr(n),l=Pn(n,o);if(l!==null){var c=vt();tn(l,n,o,c)}Hf(n,o)}},Qh=function(){return Me},Jh=function(n,o){var l=Me;try{return Me=n,o()}finally{Me=l}},yi=function(n,o,l){switch(o){case"input":if(Cr(n,l),o=l.name,l.type==="radio"&&o!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<l.length;o++){var c=l[o];if(c!==n&&c.form===n.form){var p=kl(c);if(!p)throw Error(r(90));ge(c),Cr(c,p)}}}break;case"textarea":ao(n,l);break;case"select":o=l.value,o!=null&&fn(n,!!l.multiple,o,!1)}},Ks=Mf,Qs=zr;var YS={usingClientEntryPoint:!1,Events:[Bi,No,kl,xi,Gs,Mf]},ts={findFiberByHostInstance:Ir,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},XS={bundleType:ts.bundleType,version:ts.version,rendererPackageName:ts.rendererPackageName,rendererConfig:ts.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=nl(n),n===null?null:n.stateNode},findFiberByHostInstance:ts.findFiberByHostInstance||WS,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 la=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!la.isDisabled&&la.supportsFiber)try{go=la.inject(XS),Ft=la}catch{}}return Nt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=YS,Nt.createPortal=function(n,o){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Uf(o))throw Error(r(200));return US(n,o,null,l)},Nt.createRoot=function(n,o){if(!Uf(n))throw Error(r(299));var l=!1,c="",p=pm;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onRecoverableError!==void 0&&(p=o.onRecoverableError)),o=Bf(n,1,!1,null,null,l,!1,c,p),n[Cn]=o.current,Oi(n.nodeType===8?n.parentNode:n),new Vf(o)},Nt.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var o=n._reactInternals;if(o===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=nl(o),n=n===null?null:n.stateNode,n},Nt.flushSync=function(n){return zr(n)},Nt.hydrate=function(n,o,l){if(!ia(o))throw Error(r(200));return sa(null,n,o,!0,l)},Nt.hydrateRoot=function(n,o,l){if(!Uf(n))throw Error(r(405));var c=l!=null&&l.hydratedSources||null,p=!1,x="",_=pm;if(l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(x=l.identifierPrefix),l.onRecoverableError!==void 0&&(_=l.onRecoverableError)),o=dm(o,null,n,1,l??null,p,!1,x,_),n[Cn]=o.current,Oi(n),c)for(n=0;n<c.length;n++)l=c[n],p=l._getVersion,p=p(l._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[l,p]:o.mutableSourceEagerHydrationData.push(l,p);return new oa(o)},Nt.render=function(n,o,l){if(!ia(o))throw Error(r(200));return sa(null,n,o,!1,l)},Nt.unmountComponentAtNode=function(n){if(!ia(n))throw Error(r(40));return n._reactRootContainer?(zr(function(){sa(null,null,n,!1,function(){n._reactRootContainer=null,n[Cn]=null})}),!0):!1},Nt.unstable_batchedUpdates=Mf,Nt.unstable_renderSubtreeIntoContainer=function(n,o,l,c){if(!ia(l))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return sa(n,o,l,!1,c)},Nt.version="18.3.1-next-f1338f8080-20240426",Nt}var km;function Uy(){if(km)return Yf.exports;km=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Yf.exports=tE(),Yf.exports}var Cm;function nE(){if(Cm)return aa;Cm=1;var e=Uy();return aa.createRoot=e.createRoot,aa.hydrateRoot=e.hydrateRoot,aa}var rE=nE(),P=As();const yt=rt(P);var rs={},_m;function oE(){if(_m)return rs;_m=1,Object.defineProperty(rs,"__esModule",{value:!0}),rs.parse=u,rs.serialize=h;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,a=(()=>{const y=function(){};return y.prototype=Object.create(null),y})();function u(y,v){const S=new a,E=y.length;if(E<2)return S;const k=(v==null?void 0:v.decode)||g;let C=0;do{const R=y.indexOf("=",C);if(R===-1)break;const N=y.indexOf(";",C),b=N===-1?E:N;if(R>b){C=y.lastIndexOf(";",R-1)+1;continue}const M=f(y,C,R),L=d(y,R,M),j=y.slice(M,L);if(S[j]===void 0){let G=f(y,R+1,b),V=d(y,b,G);const Y=k(y.slice(G,V));S[j]=Y}C=b+1}while(C<E);return S}function f(y,v,S){do{const E=y.charCodeAt(v);if(E!==32&&E!==9)return v}while(++v<S);return S}function d(y,v,S){for(;v>S;){const E=y.charCodeAt(--v);if(E!==32&&E!==9)return v+1}return S}function h(y,v,S){const E=(S==null?void 0:S.encode)||encodeURIComponent;if(!e.test(y))throw new TypeError(`argument name is invalid: ${y}`);const k=E(v);if(!t.test(k))throw new TypeError(`argument val is invalid: ${v}`);let C=y+"="+k;if(!S)return C;if(S.maxAge!==void 0){if(!Number.isInteger(S.maxAge))throw new TypeError(`option maxAge is invalid: ${S.maxAge}`);C+="; Max-Age="+S.maxAge}if(S.domain){if(!r.test(S.domain))throw new TypeError(`option domain is invalid: ${S.domain}`);C+="; Domain="+S.domain}if(S.path){if(!i.test(S.path))throw new TypeError(`option path is invalid: ${S.path}`);C+="; Path="+S.path}if(S.expires){if(!m(S.expires)||!Number.isFinite(S.expires.valueOf()))throw new TypeError(`option expires is invalid: ${S.expires}`);C+="; Expires="+S.expires.toUTCString()}if(S.httpOnly&&(C+="; HttpOnly"),S.secure&&(C+="; Secure"),S.partitioned&&(C+="; Partitioned"),S.priority)switch(typeof S.priority=="string"?S.priority.toLowerCase():void 0){case"low":C+="; Priority=Low";break;case"medium":C+="; Priority=Medium";break;case"high":C+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${S.priority}`)}if(S.sameSite)switch(typeof S.sameSite=="string"?S.sameSite.toLowerCase():S.sameSite){case!0:case"strict":C+="; SameSite=Strict";break;case"lax":C+="; SameSite=Lax";break;case"none":C+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${S.sameSite}`)}return C}function g(y){if(y.indexOf("%")===-1)return y;try{return decodeURIComponent(y)}catch{return y}}function m(y){return s.call(y)==="[object Date]"}return rs}oE();var Nm="popstate";function iE(e={}){function t(s,a){let{pathname:u="/",search:f="",hash:d=""}=ro(s.location.hash.substring(1));return!u.startsWith("/")&&!u.startsWith(".")&&(u="/"+u),Ed("",{pathname:u,search:f,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(s,a){let u=s.document.querySelector("base"),f="";if(u&&u.getAttribute("href")){let d=s.location.href,h=d.indexOf("#");f=h===-1?d:d.slice(0,h)}return f+"#"+(typeof a=="string"?a:xs(a))}function i(s,a){an(s.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(a)})`)}return lE(t,r,i,e)}function qe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function an(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sE(){return Math.random().toString(36).substring(2,10)}function bm(e,t){return{usr:e.state,key:e.key,idx:t}}function Ed(e,t,r=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ro(t):t,state:r,key:t&&t.key||i||sE()}}function xs({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function ro(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function lE(e,t,r,i={}){let{window:s=document.defaultView,v5Compat:a=!1}=i,u=s.history,f="POP",d=null,h=g();h==null&&(h=0,u.replaceState({...u.state,idx:h},""));function g(){return(u.state||{idx:null}).idx}function m(){f="POP";let k=g(),C=k==null?null:k-h;h=k,d&&d({action:f,location:E.location,delta:C})}function y(k,C){f="PUSH";let R=Ed(E.location,k,C);r&&r(R,k),h=g()+1;let N=bm(R,h),b=E.createHref(R);try{u.pushState(N,"",b)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;s.location.assign(b)}a&&d&&d({action:f,location:E.location,delta:1})}function v(k,C){f="REPLACE";let R=Ed(E.location,k,C);r&&r(R,k),h=g();let N=bm(R,h),b=E.createHref(R);u.replaceState(N,"",b),a&&d&&d({action:f,location:E.location,delta:0})}function S(k){let C=s.location.origin!=="null"?s.location.origin:s.location.href,R=typeof k=="string"?k:xs(k);return R=R.replace(/ $/,"%20"),qe(C,`No window.location.(origin|href) available to create URL for href: ${R}`),new URL(R,C)}let E={get action(){return f},get location(){return e(s,u)},listen(k){if(d)throw new Error("A history only accepts one active listener");return s.addEventListener(Nm,m),d=k,()=>{s.removeEventListener(Nm,m),d=null}},createHref(k){return t(s,k)},createURL:S,encodeLocation(k){let C=S(k);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:y,replace:v,go(k){return u.go(k)}};return E}function Wy(e,t,r="/"){return aE(e,t,r,!1)}function aE(e,t,r,i){let s=typeof t=="string"?ro(t):t,a=On(s.pathname||"/",r);if(a==null)return null;let u=qy(e);uE(u);let f=null;for(let d=0;f==null&&d<u.length;++d){let h=wE(a);f=xE(u[d],h,i)}return f}function qy(e,t=[],r=[],i=""){let s=(a,u,f)=>{let d={relativePath:f===void 0?a.path||"":f,caseSensitive:a.caseSensitive===!0,childrenIndex:u,route:a};d.relativePath.startsWith("/")&&(qe(d.relativePath.startsWith(i),`Absolute route path "${d.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(i.length));let h=Mn([i,d.relativePath]),g=r.concat(d);a.children&&a.children.length>0&&(qe(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),qy(a.children,t,g,h)),!(a.path==null&&!a.index)&&t.push({path:h,score:mE(h,a.index),routesMeta:g})};return e.forEach((a,u)=>{var f;if(a.path===""||!((f=a.path)!=null&&f.includes("?")))s(a,u);else for(let d of Yy(a.path))s(a,u,d)}),t}function Yy(e){let t=e.split("/");if(t.length===0)return[];let[r,...i]=t,s=r.endsWith("?"),a=r.replace(/\?$/,"");if(i.length===0)return s?[a,""]:[a];let u=Yy(i.join("/")),f=[];return f.push(...u.map(d=>d===""?a:[a,d].join("/"))),s&&f.push(...u),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function uE(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:yE(t.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var cE=/^:[\w-]+$/,fE=3,dE=2,hE=1,pE=10,gE=-2,Pm=e=>e==="*";function mE(e,t){let r=e.split("/"),i=r.length;return r.some(Pm)&&(i+=gE),t&&(i+=dE),r.filter(s=>!Pm(s)).reduce((s,a)=>s+(cE.test(a)?fE:a===""?hE:pE),i)}function yE(e,t){return e.length===t.length&&e.slice(0,-1).every((i,s)=>i===t[s])?e[e.length-1]-t[t.length-1]:0}function xE(e,t,r=!1){let{routesMeta:i}=e,s={},a="/",u=[];for(let f=0;f<i.length;++f){let d=i[f],h=f===i.length-1,g=a==="/"?t:t.slice(a.length)||"/",m=nu({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},g),y=d.route;if(!m&&h&&r&&!i[i.length-1].route.index&&(m=nu({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},g)),!m)return null;Object.assign(s,m.params),u.push({params:s,pathname:Mn([a,m.pathname]),pathnameBase:CE(Mn([a,m.pathnameBase])),route:y}),m.pathnameBase!=="/"&&(a=Mn([a,m.pathnameBase]))}return u}function nu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=vE(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let a=s[0],u=a.replace(/(.)\/+$/,"$1"),f=s.slice(1);return{params:i.reduce((h,{paramName:g,isOptional:m},y)=>{if(g==="*"){let S=f[y]||"";u=a.slice(0,a.length-S.length).replace(/(.)\/+$/,"$1")}const v=f[y];return m&&!v?h[g]=void 0:h[g]=(v||"").replace(/%2F/g,"/"),h},{}),pathname:a,pathnameBase:u,pattern:e}}function vE(e,t=!1,r=!0){an(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,d)=>(i.push({paramName:f,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),i]}function wE(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return an(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function On(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}function SE(e,t="/"){let{pathname:r,search:i="",hash:s=""}=typeof e=="string"?ro(e):e;return{pathname:r?r.startsWith("/")?r:EE(r,t):t,search:_E(i),hash:NE(s)}}function EE(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Kf(e,t,r,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function kE(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Xy(e){let t=kE(e);return t.map((r,i)=>i===t.length-1?r.pathname:r.pathnameBase)}function Gy(e,t,r,i=!1){let s;typeof e=="string"?s=ro(e):(s={...e},qe(!s.pathname||!s.pathname.includes("?"),Kf("?","pathname","search",s)),qe(!s.pathname||!s.pathname.includes("#"),Kf("#","pathname","hash",s)),qe(!s.search||!s.search.includes("#"),Kf("#","search","hash",s)));let a=e===""||s.pathname==="",u=a?"/":s.pathname,f;if(u==null)f=r;else{let m=t.length-1;if(!i&&u.startsWith("..")){let y=u.split("/");for(;y[0]==="..";)y.shift(),m-=1;s.pathname=y.join("/")}f=m>=0?t[m]:"/"}let d=SE(s,f),h=u&&u!=="/"&&u.endsWith("/"),g=(a||u===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(h||g)&&(d.pathname+="/"),d}var Mn=e=>e.join("/").replace(/\/\/+/g,"/"),CE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_E=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,NE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function bE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Ky=["POST","PUT","PATCH","DELETE"];new Set(Ky);var PE=["GET",...Ky];new Set(PE);var ai=P.createContext(null);ai.displayName="DataRouter";var Eu=P.createContext(null);Eu.displayName="DataRouterState";var Qy=P.createContext({isTransitioning:!1});Qy.displayName="ViewTransition";var RE=P.createContext(new Map);RE.displayName="Fetchers";var TE=P.createContext(null);TE.displayName="Await";var wn=P.createContext(null);wn.displayName="Navigation";var Ms=P.createContext(null);Ms.displayName="Location";var Fn=P.createContext({outlet:null,matches:[],isDataRoute:!1});Fn.displayName="Route";var ah=P.createContext(null);ah.displayName="RouteError";function IE(e,{relative:t}={}){qe(Ls(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=P.useContext(wn),{hash:s,pathname:a,search:u}=Ds(e,{relative:t}),f=a;return r!=="/"&&(f=a==="/"?r:Mn([r,a])),i.createHref({pathname:f,search:u,hash:s})}function Ls(){return P.useContext(Ms)!=null}function oo(){return qe(Ls(),"useLocation() may be used only in the context of a <Router> component."),P.useContext(Ms).location}var Jy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Zy(e){P.useContext(wn).static||P.useLayoutEffect(e)}function jE(){let{isDataRoute:e}=P.useContext(Fn);return e?WE():$E()}function $E(){qe(Ls(),"useNavigate() may be used only in the context of a <Router> component.");let e=P.useContext(ai),{basename:t,navigator:r}=P.useContext(wn),{matches:i}=P.useContext(Fn),{pathname:s}=oo(),a=JSON.stringify(Xy(i)),u=P.useRef(!1);return Zy(()=>{u.current=!0}),P.useCallback((d,h={})=>{if(an(u.current,Jy),!u.current)return;if(typeof d=="number"){r.go(d);return}let g=Gy(d,JSON.parse(a),s,h.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Mn([t,g.pathname])),(h.replace?r.replace:r.push)(g,h.state,h)},[t,r,a,s,e])}P.createContext(null);function Ds(e,{relative:t}={}){let{matches:r}=P.useContext(Fn),{pathname:i}=oo(),s=JSON.stringify(Xy(r));return P.useMemo(()=>Gy(e,JSON.parse(s),i,t==="path"),[e,s,i,t])}function AE(e,t){return ex(e,t)}function ex(e,t,r,i){var R;qe(Ls(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s,static:a}=P.useContext(wn),{matches:u}=P.useContext(Fn),f=u[u.length-1],d=f?f.params:{},h=f?f.pathname:"/",g=f?f.pathnameBase:"/",m=f&&f.route;{let N=m&&m.path||"";tx(h,!m||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
||
|
||
Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let y=oo(),v;if(t){let N=typeof t=="string"?ro(t):t;qe(g==="/"||((R=N.pathname)==null?void 0:R.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${N.pathname}" was given in the \`location\` prop.`),v=N}else v=y;let S=v.pathname||"/",E=S;if(g!=="/"){let N=g.replace(/^\//,"").split("/");E="/"+S.replace(/^\//,"").split("/").slice(N.length).join("/")}let k=!a&&r&&r.matches&&r.matches.length>0?r.matches:Wy(e,{pathname:E});an(m||k!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),an(k==null||k[k.length-1].route.element!==void 0||k[k.length-1].route.Component!==void 0||k[k.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=zE(k&&k.map(N=>Object.assign({},N,{params:Object.assign({},d,N.params),pathname:Mn([g,s.encodeLocation?s.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?g:Mn([g,s.encodeLocation?s.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),u,r,i);return t&&C?P.createElement(Ms.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},C):C}function ME(){let e=UE(),t=bE(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},a={padding:"2px 4px",backgroundColor:i},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=P.createElement(P.Fragment,null,P.createElement("p",null,"💿 Hey developer 👋"),P.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",P.createElement("code",{style:a},"ErrorBoundary")," or"," ",P.createElement("code",{style:a},"errorElement")," prop on your route.")),P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),r?P.createElement("pre",{style:s},r):null,u)}var LE=P.createElement(ME,null),DE=class extends P.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?P.createElement(Fn.Provider,{value:this.props.routeContext},P.createElement(ah.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function OE({routeContext:e,match:t,children:r}){let i=P.useContext(ai);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),P.createElement(Fn.Provider,{value:e},r)}function zE(e,t=[],r=null,i=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,a=r==null?void 0:r.errors;if(a!=null){let d=s.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);qe(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),s=s.slice(0,Math.min(s.length,d+1))}let u=!1,f=-1;if(r)for(let d=0;d<s.length;d++){let h=s[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(f=d),h.route.id){let{loaderData:g,errors:m}=r,y=h.route.loader&&!g.hasOwnProperty(h.route.id)&&(!m||m[h.route.id]===void 0);if(h.route.lazy||y){u=!0,f>=0?s=s.slice(0,f+1):s=[s[0]];break}}}return s.reduceRight((d,h,g)=>{let m,y=!1,v=null,S=null;r&&(m=a&&h.route.id?a[h.route.id]:void 0,v=h.route.errorElement||LE,u&&(f<0&&g===0?(tx("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,S=null):f===g&&(y=!0,S=h.route.hydrateFallbackElement||null)));let E=t.concat(s.slice(0,g+1)),k=()=>{let C;return m?C=v:y?C=S:h.route.Component?C=P.createElement(h.route.Component,null):h.route.element?C=h.route.element:C=d,P.createElement(OE,{match:h,routeContext:{outlet:d,matches:E,isDataRoute:r!=null},children:C})};return r&&(h.route.ErrorBoundary||h.route.errorElement||g===0)?P.createElement(DE,{location:r.location,revalidation:r.revalidation,component:v,error:m,children:k(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):k()},null)}function uh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function FE(e){let t=P.useContext(ai);return qe(t,uh(e)),t}function BE(e){let t=P.useContext(Eu);return qe(t,uh(e)),t}function HE(e){let t=P.useContext(Fn);return qe(t,uh(e)),t}function ch(e){let t=HE(e),r=t.matches[t.matches.length-1];return qe(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function VE(){return ch("useRouteId")}function UE(){var i;let e=P.useContext(ah),t=BE("useRouteError"),r=ch("useRouteError");return e!==void 0?e:(i=t.errors)==null?void 0:i[r]}function WE(){let{router:e}=FE("useNavigate"),t=ch("useNavigate"),r=P.useRef(!1);return Zy(()=>{r.current=!0}),P.useCallback(async(s,a={})=>{an(r.current,Jy),r.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:t,...a}))},[e,t])}var Rm={};function tx(e,t,r){!t&&!Rm[e]&&(Rm[e]=!0,an(!1,r))}P.memo(qE);function qE({routes:e,future:t,state:r}){return ex(e,void 0,r,t)}function nx(e){qe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function YE({basename:e="/",children:t=null,location:r,navigationType:i="POP",navigator:s,static:a=!1}){qe(!Ls(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),f=P.useMemo(()=>({basename:u,navigator:s,static:a,future:{}}),[u,s,a]);typeof r=="string"&&(r=ro(r));let{pathname:d="/",search:h="",hash:g="",state:m=null,key:y="default"}=r,v=P.useMemo(()=>{let S=On(d,u);return S==null?null:{location:{pathname:S,search:h,hash:g,state:m,key:y},navigationType:i}},[u,d,h,g,m,y,i]);return an(v!=null,`<Router basename="${u}"> is not able to match the URL "${d}${h}${g}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:P.createElement(wn.Provider,{value:f},P.createElement(Ms.Provider,{children:t,value:v}))}function XE({children:e,location:t}){return AE(kd(e),t)}function kd(e,t=[]){let r=[];return P.Children.forEach(e,(i,s)=>{if(!P.isValidElement(i))return;let a=[...t,s];if(i.type===P.Fragment){r.push.apply(r,kd(i.props.children,a));return}qe(i.type===nx,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),qe(!i.props.index||!i.props.children,"An index route cannot have child routes.");let u={id:i.props.id||a.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(u.children=kd(i.props.children,a)),r.push(u)}),r}var za="get",Fa="application/x-www-form-urlencoded";function ku(e){return e!=null&&typeof e.tagName=="string"}function GE(e){return ku(e)&&e.tagName.toLowerCase()==="button"}function KE(e){return ku(e)&&e.tagName.toLowerCase()==="form"}function QE(e){return ku(e)&&e.tagName.toLowerCase()==="input"}function JE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ZE(e,t){return e.button===0&&(!t||t==="_self")&&!JE(e)}var ua=null;function ek(){if(ua===null)try{new FormData(document.createElement("form"),0),ua=!1}catch{ua=!0}return ua}var tk=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Qf(e){return e!=null&&!tk.has(e)?(an(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Fa}"`),null):e}function nk(e,t){let r,i,s,a,u;if(KE(e)){let f=e.getAttribute("action");i=f?On(f,t):null,r=e.getAttribute("method")||za,s=Qf(e.getAttribute("enctype"))||Fa,a=new FormData(e)}else if(GE(e)||QE(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(i=d?On(d,t):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||za,s=Qf(e.getAttribute("formenctype"))||Qf(f.getAttribute("enctype"))||Fa,a=new FormData(f,e),!ek()){let{name:h,type:g,value:m}=e;if(g==="image"){let y=h?`${h}.`:"";a.append(`${y}x`,"0"),a.append(`${y}y`,"0")}else h&&a.append(h,m)}}else{if(ku(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=za,i=null,s=Fa,u=e}return a&&s==="text/plain"&&(u=a,a=void 0),{action:i,method:r.toLowerCase(),encType:s,formData:a,body:u}}function fh(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function rk(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ok(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function ik(e,t,r){let i=await Promise.all(e.map(async s=>{let a=t.routes[s.route.id];if(a){let u=await rk(a,r);return u.links?u.links():[]}return[]}));return uk(i.flat(1).filter(ok).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Tm(e,t,r,i,s,a){let u=(d,h)=>r[h]?d.route.id!==r[h].route.id:!0,f=(d,h)=>{var g;return r[h].pathname!==d.pathname||((g=r[h].route.path)==null?void 0:g.endsWith("*"))&&r[h].params["*"]!==d.params["*"]};return a==="assets"?t.filter((d,h)=>u(d,h)||f(d,h)):a==="data"?t.filter((d,h)=>{var m;let g=i.routes[d.route.id];if(!g||!g.hasLoader)return!1;if(u(d,h)||f(d,h))return!0;if(d.route.shouldRevalidate){let y=d.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((m=r[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function sk(e,t,{includeHydrateFallback:r}={}){return lk(e.map(i=>{let s=t.routes[i.route.id];if(!s)return[];let a=[s.module];return s.clientActionModule&&(a=a.concat(s.clientActionModule)),s.clientLoaderModule&&(a=a.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(a=a.concat(s.hydrateFallbackModule)),s.imports&&(a=a.concat(s.imports)),a}).flat(1))}function lk(e){return[...new Set(e)]}function ak(e){let t={},r=Object.keys(e).sort();for(let i of r)t[i]=e[i];return t}function uk(e,t){let r=new Set;return new Set(t),e.reduce((i,s)=>{let a=JSON.stringify(ak(s));return r.has(a)||(r.add(a),i.push({key:a,link:s})),i},[])}var ck=new Set([100,101,204,205]);function fk(e,t){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname="_root.data":t&&On(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function rx(){let e=P.useContext(ai);return fh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function dk(){let e=P.useContext(Eu);return fh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var dh=P.createContext(void 0);dh.displayName="FrameworkContext";function ox(){let e=P.useContext(dh);return fh(e,"You must render this element inside a <HydratedRouter> element"),e}function hk(e,t){let r=P.useContext(dh),[i,s]=P.useState(!1),[a,u]=P.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:h,onMouseLeave:g,onTouchStart:m}=t,y=P.useRef(null);P.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let E=C=>{C.forEach(R=>{u(R.isIntersecting)})},k=new IntersectionObserver(E,{threshold:.5});return y.current&&k.observe(y.current),()=>{k.disconnect()}}},[e]),P.useEffect(()=>{if(i){let E=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(E)}}},[i]);let v=()=>{s(!0)},S=()=>{s(!1),u(!1)};return r?e!=="intent"?[a,y,{}]:[a,y,{onFocus:os(f,v),onBlur:os(d,S),onMouseEnter:os(h,v),onMouseLeave:os(g,S),onTouchStart:os(m,v)}]:[!1,y,{}]}function os(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function pk({page:e,...t}){let{router:r}=rx(),i=P.useMemo(()=>Wy(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?P.createElement(mk,{page:e,matches:i,...t}):null}function gk(e){let{manifest:t,routeModules:r}=ox(),[i,s]=P.useState([]);return P.useEffect(()=>{let a=!1;return ik(e,t,r).then(u=>{a||s(u)}),()=>{a=!0}},[e,t,r]),i}function mk({page:e,matches:t,...r}){let i=oo(),{manifest:s,routeModules:a}=ox(),{basename:u}=rx(),{loaderData:f,matches:d}=dk(),h=P.useMemo(()=>Tm(e,t,d,s,i,"data"),[e,t,d,s,i]),g=P.useMemo(()=>Tm(e,t,d,s,i,"assets"),[e,t,d,s,i]),m=P.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let S=new Set,E=!1;if(t.forEach(C=>{var N;let R=s.routes[C.route.id];!R||!R.hasLoader||(!h.some(b=>b.route.id===C.route.id)&&C.route.id in f&&((N=a[C.route.id])!=null&&N.shouldRevalidate)||R.hasClientLoader?E=!0:S.add(C.route.id))}),S.size===0)return[];let k=fk(e,u);return E&&S.size>0&&k.searchParams.set("_routes",t.filter(C=>S.has(C.route.id)).map(C=>C.route.id).join(",")),[k.pathname+k.search]},[u,f,i,s,h,t,e,a]),y=P.useMemo(()=>sk(g,s),[g,s]),v=gk(g);return P.createElement(P.Fragment,null,m.map(S=>P.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...r})),y.map(S=>P.createElement("link",{key:S,rel:"modulepreload",href:S,...r})),v.map(({key:S,link:E})=>P.createElement("link",{key:S,...E})))}function yk(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var ix=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ix&&(window.__reactRouterVersion="7.5.2")}catch{}function xk({basename:e,children:t,window:r}){let i=P.useRef();i.current==null&&(i.current=iE({window:r,v5Compat:!0}));let s=i.current,[a,u]=P.useState({action:s.action,location:s.location}),f=P.useCallback(d=>{P.startTransition(()=>u(d))},[u]);return P.useLayoutEffect(()=>s.listen(f),[s,f]),P.createElement(YE,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:s})}var sx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lx=P.forwardRef(function({onClick:t,discover:r="render",prefetch:i="none",relative:s,reloadDocument:a,replace:u,state:f,target:d,to:h,preventScrollReset:g,viewTransition:m,...y},v){let{basename:S}=P.useContext(wn),E=typeof h=="string"&&sx.test(h),k,C=!1;if(typeof h=="string"&&E&&(k=h,ix))try{let V=new URL(window.location.href),Y=h.startsWith("//")?new URL(V.protocol+h):new URL(h),ee=On(Y.pathname,S);Y.origin===V.origin&&ee!=null?h=ee+Y.search+Y.hash:C=!0}catch{an(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=IE(h,{relative:s}),[N,b,M]=hk(i,y),L=Ek(h,{replace:u,state:f,target:d,preventScrollReset:g,relative:s,viewTransition:m});function j(V){t&&t(V),V.defaultPrevented||L(V)}let G=P.createElement("a",{...y,...M,href:k||R,onClick:C||a?t:j,ref:yk(v,b),target:d,"data-discover":!E&&r==="render"?"true":void 0});return N&&!E?P.createElement(P.Fragment,null,G,P.createElement(pk,{page:R})):G});lx.displayName="Link";var vk=P.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:i="",end:s=!1,style:a,to:u,viewTransition:f,children:d,...h},g){let m=Ds(u,{relative:h.relative}),y=oo(),v=P.useContext(Eu),{navigator:S,basename:E}=P.useContext(wn),k=v!=null&&bk(m)&&f===!0,C=S.encodeLocation?S.encodeLocation(m).pathname:m.pathname,R=y.pathname,N=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;r||(R=R.toLowerCase(),N=N?N.toLowerCase():null,C=C.toLowerCase()),N&&E&&(N=On(N,E)||N);const b=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let M=R===C||!s&&R.startsWith(C)&&R.charAt(b)==="/",L=N!=null&&(N===C||!s&&N.startsWith(C)&&N.charAt(C.length)==="/"),j={isActive:M,isPending:L,isTransitioning:k},G=M?t:void 0,V;typeof i=="function"?V=i(j):V=[i,M?"active":null,L?"pending":null,k?"transitioning":null].filter(Boolean).join(" ");let Y=typeof a=="function"?a(j):a;return P.createElement(lx,{...h,"aria-current":G,className:V,ref:g,style:Y,to:u,viewTransition:f},typeof d=="function"?d(j):d)});vk.displayName="NavLink";var wk=P.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:i,replace:s,state:a,method:u=za,action:f,onSubmit:d,relative:h,preventScrollReset:g,viewTransition:m,...y},v)=>{let S=_k(),E=Nk(f,{relative:h}),k=u.toLowerCase()==="get"?"get":"post",C=typeof f=="string"&&sx.test(f),R=N=>{if(d&&d(N),N.defaultPrevented)return;N.preventDefault();let b=N.nativeEvent.submitter,M=(b==null?void 0:b.getAttribute("formmethod"))||u;S(b||N.currentTarget,{fetcherKey:t,method:M,navigate:r,replace:s,state:a,relative:h,preventScrollReset:g,viewTransition:m})};return P.createElement("form",{ref:v,method:k,action:E,onSubmit:i?d:R,...y,"data-discover":!C&&e==="render"?"true":void 0})});wk.displayName="Form";function Sk(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ax(e){let t=P.useContext(ai);return qe(t,Sk(e)),t}function Ek(e,{target:t,replace:r,state:i,preventScrollReset:s,relative:a,viewTransition:u}={}){let f=jE(),d=oo(),h=Ds(e,{relative:a});return P.useCallback(g=>{if(ZE(g,t)){g.preventDefault();let m=r!==void 0?r:xs(d)===xs(h);f(e,{replace:m,state:i,preventScrollReset:s,relative:a,viewTransition:u})}},[d,f,h,r,i,t,e,s,a,u])}var kk=0,Ck=()=>`__${String(++kk)}__`;function _k(){let{router:e}=ax("useSubmit"),{basename:t}=P.useContext(wn),r=VE();return P.useCallback(async(i,s={})=>{let{action:a,method:u,encType:f,formData:d,body:h}=nk(i,t);if(s.navigate===!1){let g=s.fetcherKey||Ck();await e.fetch(g,r,s.action||a,{preventScrollReset:s.preventScrollReset,formData:d,body:h,formMethod:s.method||u,formEncType:s.encType||f,flushSync:s.flushSync})}else await e.navigate(s.action||a,{preventScrollReset:s.preventScrollReset,formData:d,body:h,formMethod:s.method||u,formEncType:s.encType||f,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,t,r])}function Nk(e,{relative:t}={}){let{basename:r}=P.useContext(wn),i=P.useContext(Fn);qe(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),a={...Ds(e||".",{relative:t})},u=oo();if(e==null){a.search=u.search;let f=new URLSearchParams(a.search),d=f.getAll("index");if(d.some(g=>g==="")){f.delete("index"),d.filter(m=>m).forEach(m=>f.append("index",m));let g=f.toString();a.search=g?`?${g}`:""}}return(!e||e===".")&&s.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Mn([r,a.pathname])),xs(a)}function bk(e,t={}){let r=P.useContext(Qy);qe(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=ax("useViewTransitionState"),s=Ds(e,{relative:t.relative});if(!r.isTransitioning)return!1;let a=On(r.currentLocation.pathname,i)||r.currentLocation.pathname,u=On(r.nextLocation.pathname,i)||r.nextLocation.pathname;return nu(s.pathname,u)!=null||nu(s.pathname,a)!=null}new TextEncoder;[...ck];Uy();const ux=P.createContext({isOpen:!1,modalType:"",modalData:null,openModal:()=>{},closeModal:()=>{},closeLoader:()=>{}}),io=()=>P.useContext(ux);function Pk({children:e}){const[t,r]=P.useState(!1),[i,s]=P.useState(""),[a,u]=P.useState(null),f=(g,m)=>{r(!0),s(g),u(m)},d=P.useCallback(()=>{r(!1),s(""),u(null),window.location.reload()},[]),h=P.useCallback(()=>{r(!1),s(""),u(null)},[]);return P.useEffect(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]),w.jsx(ux.Provider,{value:{isOpen:t,modalType:i,modalData:a,openModal:f,closeModal:d,closeLoader:h},children:e})}var ut=function(){return ut=Object.assign||function(t){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},ut.apply(this,arguments)};function Yo(e,t,r){if(r||arguments.length===2)for(var i=0,s=t.length,a;i<s;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}var Fe="-ms-",ps="-moz-",Ae="-webkit-",cx="comm",Cu="rule",hh="decl",Rk="@import",fx="@keyframes",Tk="@layer",dx=Math.abs,ph=String.fromCharCode,Cd=Object.assign;function Ik(e,t){return lt(e,0)^45?(((t<<2^lt(e,0))<<2^lt(e,1))<<2^lt(e,2))<<2^lt(e,3):0}function hx(e){return e.trim()}function $n(e,t){return(e=t.exec(e))?e[0]:e}function be(e,t,r){return e.replace(t,r)}function Ba(e,t,r){return e.indexOf(t,r)}function lt(e,t){return e.charCodeAt(t)|0}function Xo(e,t,r){return e.slice(t,r)}function xn(e){return e.length}function px(e){return e.length}function fs(e,t){return t.push(e),e}function jk(e,t){return e.map(t).join("")}function Im(e,t){return e.filter(function(r){return!$n(r,t)})}var _u=1,Go=1,gx=0,Yt=0,Ze=0,ui="";function Nu(e,t,r,i,s,a,u,f){return{value:e,root:t,parent:r,type:i,props:s,children:a,line:_u,column:Go,length:u,return:"",siblings:f}}function xr(e,t){return Cd(Nu("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Bo(e){for(;e.root;)e=xr(e.root,{children:[e]});fs(e,e.siblings)}function $k(){return Ze}function Ak(){return Ze=Yt>0?lt(ui,--Yt):0,Go--,Ze===10&&(Go=1,_u--),Ze}function ln(){return Ze=Yt<gx?lt(ui,Yt++):0,Go++,Ze===10&&(Go=1,_u++),Ze}function Yr(){return lt(ui,Yt)}function Ha(){return Yt}function bu(e,t){return Xo(ui,e,t)}function _d(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Mk(e){return _u=Go=1,gx=xn(ui=e),Yt=0,[]}function Lk(e){return ui="",e}function Jf(e){return hx(bu(Yt-1,Nd(e===91?e+2:e===40?e+1:e)))}function Dk(e){for(;(Ze=Yr())&&Ze<33;)ln();return _d(e)>2||_d(Ze)>3?"":" "}function Ok(e,t){for(;--t&&ln()&&!(Ze<48||Ze>102||Ze>57&&Ze<65||Ze>70&&Ze<97););return bu(e,Ha()+(t<6&&Yr()==32&&ln()==32))}function Nd(e){for(;ln();)switch(Ze){case e:return Yt;case 34:case 39:e!==34&&e!==39&&Nd(Ze);break;case 40:e===41&&Nd(e);break;case 92:ln();break}return Yt}function zk(e,t){for(;ln()&&e+Ze!==57;)if(e+Ze===84&&Yr()===47)break;return"/*"+bu(t,Yt-1)+"*"+ph(e===47?e:ln())}function Fk(e){for(;!_d(Yr());)ln();return bu(e,Yt)}function Bk(e){return Lk(Va("",null,null,null,[""],e=Mk(e),0,[0],e))}function Va(e,t,r,i,s,a,u,f,d){for(var h=0,g=0,m=u,y=0,v=0,S=0,E=1,k=1,C=1,R=0,N="",b=s,M=a,L=i,j=N;k;)switch(S=R,R=ln()){case 40:if(S!=108&<(j,m-1)==58){Ba(j+=be(Jf(R),"&","&\f"),"&\f",dx(h?f[h-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:j+=Jf(R);break;case 9:case 10:case 13:case 32:j+=Dk(S);break;case 92:j+=Ok(Ha()-1,7);continue;case 47:switch(Yr()){case 42:case 47:fs(Hk(zk(ln(),Ha()),t,r,d),d);break;default:j+="/"}break;case 123*E:f[h++]=xn(j)*C;case 125*E:case 59:case 0:switch(R){case 0:case 125:k=0;case 59+g:C==-1&&(j=be(j,/\f/g,"")),v>0&&xn(j)-m&&fs(v>32?$m(j+";",i,r,m-1,d):$m(be(j," ","")+";",i,r,m-2,d),d);break;case 59:j+=";";default:if(fs(L=jm(j,t,r,h,g,s,f,N,b=[],M=[],m,a),a),R===123)if(g===0)Va(j,t,L,L,b,a,m,f,M);else switch(y===99&<(j,3)===110?100:y){case 100:case 108:case 109:case 115:Va(e,L,L,i&&fs(jm(e,L,L,0,0,s,f,N,s,b=[],m,M),M),s,M,m,f,i?b:M);break;default:Va(j,L,L,L,[""],M,0,f,M)}}h=g=v=0,E=C=1,N=j="",m=u;break;case 58:m=1+xn(j),v=S;default:if(E<1){if(R==123)--E;else if(R==125&&E++==0&&Ak()==125)continue}switch(j+=ph(R),R*E){case 38:C=g>0?1:(j+="\f",-1);break;case 44:f[h++]=(xn(j)-1)*C,C=1;break;case 64:Yr()===45&&(j+=Jf(ln())),y=Yr(),g=m=xn(N=j+=Fk(Ha())),R++;break;case 45:S===45&&xn(j)==2&&(E=0)}}return a}function jm(e,t,r,i,s,a,u,f,d,h,g,m){for(var y=s-1,v=s===0?a:[""],S=px(v),E=0,k=0,C=0;E<i;++E)for(var R=0,N=Xo(e,y+1,y=dx(k=u[E])),b=e;R<S;++R)(b=hx(k>0?v[R]+" "+N:be(N,/&\f/g,v[R])))&&(d[C++]=b);return Nu(e,t,r,s===0?Cu:f,d,h,g,m)}function Hk(e,t,r,i){return Nu(e,t,r,cx,ph($k()),Xo(e,2,-2),0,i)}function $m(e,t,r,i,s){return Nu(e,t,r,hh,Xo(e,0,i),Xo(e,i+1,-1),i,s)}function mx(e,t,r){switch(Ik(e,t)){case 5103:return Ae+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ae+e+e;case 4789:return ps+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ae+e+ps+e+Fe+e+e;case 5936:switch(lt(e,t+11)){case 114:return Ae+e+Fe+be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ae+e+Fe+be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ae+e+Fe+be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ae+e+Fe+e+e;case 6165:return Ae+e+Fe+"flex-"+e+e;case 5187:return Ae+e+be(e,/(\w+).+(:[^]+)/,Ae+"box-$1$2"+Fe+"flex-$1$2")+e;case 5443:return Ae+e+Fe+"flex-item-"+be(e,/flex-|-self/g,"")+($n(e,/flex-|baseline/)?"":Fe+"grid-row-"+be(e,/flex-|-self/g,""))+e;case 4675:return Ae+e+Fe+"flex-line-pack"+be(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ae+e+Fe+be(e,"shrink","negative")+e;case 5292:return Ae+e+Fe+be(e,"basis","preferred-size")+e;case 6060:return Ae+"box-"+be(e,"-grow","")+Ae+e+Fe+be(e,"grow","positive")+e;case 4554:return Ae+be(e,/([^-])(transform)/g,"$1"+Ae+"$2")+e;case 6187:return be(be(be(e,/(zoom-|grab)/,Ae+"$1"),/(image-set)/,Ae+"$1"),e,"")+e;case 5495:case 3959:return be(e,/(image-set\([^]*)/,Ae+"$1$`$1");case 4968:return be(be(e,/(.+:)(flex-)?(.*)/,Ae+"box-pack:$3"+Fe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ae+e+e;case 4200:if(!$n(e,/flex-|baseline/))return Fe+"grid-column-align"+Xo(e,t)+e;break;case 2592:case 3360:return Fe+be(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(i,s){return t=s,$n(i.props,/grid-\w+-end/)})?~Ba(e+(r=r[t].value),"span",0)?e:Fe+be(e,"-start","")+e+Fe+"grid-row-span:"+(~Ba(r,"span",0)?$n(r,/\d+/):+$n(r,/\d+/)-+$n(e,/\d+/))+";":Fe+be(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(i){return $n(i.props,/grid-\w+-start/)})?e:Fe+be(be(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return be(e,/(.+)-inline(.+)/,Ae+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(xn(e)-1-t>6)switch(lt(e,t+1)){case 109:if(lt(e,t+4)!==45)break;case 102:return be(e,/(.+:)(.+)-([^]+)/,"$1"+Ae+"$2-$3$1"+ps+(lt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ba(e,"stretch",0)?mx(be(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return be(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,s,a,u,f,d,h){return Fe+s+":"+a+h+(u?Fe+s+"-span:"+(f?d:+d-+a)+h:"")+e});case 4949:if(lt(e,t+6)===121)return be(e,":",":"+Ae)+e;break;case 6444:switch(lt(e,lt(e,14)===45?18:11)){case 120:return be(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ae+(lt(e,14)===45?"inline-":"")+"box$3$1"+Ae+"$2$3$1"+Fe+"$2box$3")+e;case 100:return be(e,":",":"+Fe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return be(e,"scroll-","scroll-snap-")+e}return e}function ru(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function Vk(e,t,r,i){switch(e.type){case Tk:if(e.children.length)break;case Rk:case hh:return e.return=e.return||e.value;case cx:return"";case fx:return e.return=e.value+"{"+ru(e.children,i)+"}";case Cu:if(!xn(e.value=e.props.join(",")))return""}return xn(r=ru(e.children,i))?e.return=e.value+"{"+r+"}":""}function Uk(e){var t=px(e);return function(r,i,s,a){for(var u="",f=0;f<t;f++)u+=e[f](r,i,s,a)||"";return u}}function Wk(e){return function(t){t.root||(t=t.return)&&e(t)}}function qk(e,t,r,i){if(e.length>-1&&!e.return)switch(e.type){case hh:e.return=mx(e.value,e.length,r);return;case fx:return ru([xr(e,{value:be(e.value,"@","@"+Ae)})],i);case Cu:if(e.length)return jk(r=e.props,function(s){switch($n(s,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Bo(xr(e,{props:[be(s,/:(read-\w+)/,":"+ps+"$1")]})),Bo(xr(e,{props:[s]})),Cd(e,{props:Im(r,i)});break;case"::placeholder":Bo(xr(e,{props:[be(s,/:(plac\w+)/,":"+Ae+"input-$1")]})),Bo(xr(e,{props:[be(s,/:(plac\w+)/,":"+ps+"$1")]})),Bo(xr(e,{props:[be(s,/:(plac\w+)/,Fe+"input-$1")]})),Bo(xr(e,{props:[s]})),Cd(e,{props:Im(r,i)});break}return""})}}var Yk={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Mt={},Ko=typeof process<"u"&&Mt!==void 0&&(Mt.REACT_APP_SC_ATTR||Mt.SC_ATTR)||"data-styled",yx="active",xx="data-styled-version",Pu="6.1.13",gh=`/*!sc*/
|
||
`,ou=typeof window<"u"&&"HTMLElement"in window,Xk=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Mt!==void 0&&Mt.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Mt.REACT_APP_SC_DISABLE_SPEEDY!==""?Mt.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Mt.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Mt!==void 0&&Mt.SC_DISABLE_SPEEDY!==void 0&&Mt.SC_DISABLE_SPEEDY!==""&&Mt.SC_DISABLE_SPEEDY!=="false"&&Mt.SC_DISABLE_SPEEDY),Gk={},Ru=Object.freeze([]),Qo=Object.freeze({});function vx(e,t,r){return r===void 0&&(r=Qo),e.theme!==r.theme&&e.theme||t||r.theme}var wx=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Kk=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Qk=/(^-|-$)/g;function Am(e){return e.replace(Kk,"-").replace(Qk,"")}var Jk=/(a)(d)/gi,ca=52,Mm=function(e){return String.fromCharCode(e+(e>25?39:97))};function bd(e){var t,r="";for(t=Math.abs(e);t>ca;t=t/ca|0)r=Mm(t%ca)+r;return(Mm(t%ca)+r).replace(Jk,"$1-$2")}var Zf,Sx=5381,Ho=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Ex=function(e){return Ho(Sx,e)};function mh(e){return bd(Ex(e)>>>0)}function Zk(e){return e.displayName||e.name||"Component"}function ed(e){return typeof e=="string"&&!0}var kx=typeof Symbol=="function"&&Symbol.for,Cx=kx?Symbol.for("react.memo"):60115,eC=kx?Symbol.for("react.forward_ref"):60112,tC={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},nC={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_x={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rC=((Zf={})[eC]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zf[Cx]=_x,Zf);function Lm(e){return("type"in(t=e)&&t.type.$$typeof)===Cx?_x:"$$typeof"in e?rC[e.$$typeof]:tC;var t}var oC=Object.defineProperty,iC=Object.getOwnPropertyNames,Dm=Object.getOwnPropertySymbols,sC=Object.getOwnPropertyDescriptor,lC=Object.getPrototypeOf,Om=Object.prototype;function Nx(e,t,r){if(typeof t!="string"){if(Om){var i=lC(t);i&&i!==Om&&Nx(e,i,r)}var s=iC(t);Dm&&(s=s.concat(Dm(t)));for(var a=Lm(e),u=Lm(t),f=0;f<s.length;++f){var d=s[f];if(!(d in nC||r&&r[d]||u&&d in u||a&&d in a)){var h=sC(t,d);try{oC(e,d,h)}catch{}}}}return e}function Jr(e){return typeof e=="function"}function yh(e){return typeof e=="object"&&"styledComponentId"in e}function Ur(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function iu(e,t){if(e.length===0)return"";for(var r=e[0],i=1;i<e.length;i++)r+=e[i];return r}function vs(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Pd(e,t,r){if(r===void 0&&(r=!1),!r&&!vs(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)e[i]=Pd(e[i],t[i]);else if(vs(t))for(var i in t)e[i]=Pd(e[i],t[i]);return e}function xh(e,t){Object.defineProperty(e,"toString",{value:t})}function kr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var aC=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,i=0;i<t;i++)r+=this.groupSizes[i];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var i=this.groupSizes,s=i.length,a=s;t>=a;)if((a<<=1)<0)throw kr(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var u=s;u<a;u++)this.groupSizes[u]=0}for(var f=this.indexOfGroup(t+1),d=(u=0,r.length);u<d;u++)this.tag.insertRule(f,r[u])&&(this.groupSizes[t]++,f++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],i=this.indexOfGroup(t),s=i+r;this.groupSizes[t]=0;for(var a=i;a<s;a++)this.tag.deleteRule(i)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var i=this.groupSizes[t],s=this.indexOfGroup(t),a=s+i,u=s;u<a;u++)r+="".concat(this.tag.getRule(u)).concat(gh);return r},e}(),Ua=new Map,su=new Map,Wa=1,fa=function(e){if(Ua.has(e))return Ua.get(e);for(;su.has(Wa);)Wa++;var t=Wa++;return Ua.set(e,t),su.set(t,e),t},uC=function(e,t){Wa=t+1,Ua.set(e,t),su.set(t,e)},cC="style[".concat(Ko,"][").concat(xx,'="').concat(Pu,'"]'),fC=new RegExp("^".concat(Ko,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),dC=function(e,t,r){for(var i,s=r.split(","),a=0,u=s.length;a<u;a++)(i=s[a])&&e.registerName(t,i)},hC=function(e,t){for(var r,i=((r=t.textContent)!==null&&r!==void 0?r:"").split(gh),s=[],a=0,u=i.length;a<u;a++){var f=i[a].trim();if(f){var d=f.match(fC);if(d){var h=0|parseInt(d[1],10),g=d[2];h!==0&&(uC(g,h),dC(e,g,d[3]),e.getTag().insertRules(h,s)),s.length=0}else s.push(f)}}},zm=function(e){for(var t=document.querySelectorAll(cC),r=0,i=t.length;r<i;r++){var s=t[r];s&&s.getAttribute(Ko)!==yx&&(hC(e,s),s.parentNode&&s.parentNode.removeChild(s))}};function pC(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var bx=function(e){var t=document.head,r=e||t,i=document.createElement("style"),s=function(f){var d=Array.from(f.querySelectorAll("style[".concat(Ko,"]")));return d[d.length-1]}(r),a=s!==void 0?s.nextSibling:null;i.setAttribute(Ko,yx),i.setAttribute(xx,Pu);var u=pC();return u&&i.setAttribute("nonce",u),r.insertBefore(i,a),i},gC=function(){function e(t){this.element=bx(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var i=document.styleSheets,s=0,a=i.length;s<a;s++){var u=i[s];if(u.ownerNode===r)return u}throw kr(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),mC=function(){function e(t){this.element=bx(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var i=document.createTextNode(r);return this.element.insertBefore(i,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),yC=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Fm=ou,xC={isServer:!ou,useCSSOMInjection:!Xk},lu=function(){function e(t,r,i){t===void 0&&(t=Qo),r===void 0&&(r={});var s=this;this.options=ut(ut({},xC),t),this.gs=r,this.names=new Map(i),this.server=!!t.isServer,!this.server&&ou&&Fm&&(Fm=!1,zm(this)),xh(this,function(){return function(a){for(var u=a.getTag(),f=u.length,d="",h=function(m){var y=function(C){return su.get(C)}(m);if(y===void 0)return"continue";var v=a.names.get(y),S=u.getGroup(m);if(v===void 0||!v.size||S.length===0)return"continue";var E="".concat(Ko,".g").concat(m,'[id="').concat(y,'"]'),k="";v!==void 0&&v.forEach(function(C){C.length>0&&(k+="".concat(C,","))}),d+="".concat(S).concat(E,'{content:"').concat(k,'"}').concat(gh)},g=0;g<f;g++)h(g);return d}(s)})}return e.registerId=function(t){return fa(t)},e.prototype.rehydrate=function(){!this.server&&ou&&zm(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(ut(ut({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var i=r.useCSSOMInjection,s=r.target;return r.isServer?new yC(s):i?new gC(s):new mC(s)}(this.options),new aC(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(fa(t),this.names.has(t))this.names.get(t).add(r);else{var i=new Set;i.add(r),this.names.set(t,i)}},e.prototype.insertRules=function(t,r,i){this.registerName(t,r),this.getTag().insertRules(fa(t),i)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(fa(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),vC=/&/g,wC=/^\s*\/\/.*$/gm;function Px(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(i){return"".concat(t," ").concat(i)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=Px(r.children,t)),r})}function SC(e){var t,r,i,s=Qo,a=s.options,u=a===void 0?Qo:a,f=s.plugins,d=f===void 0?Ru:f,h=function(y,v,S){return S.startsWith(r)&&S.endsWith(r)&&S.replaceAll(r,"").length>0?".".concat(t):y},g=d.slice();g.push(function(y){y.type===Cu&&y.value.includes("&")&&(y.props[0]=y.props[0].replace(vC,r).replace(i,h))}),u.prefix&&g.push(qk),g.push(Vk);var m=function(y,v,S,E){v===void 0&&(v=""),S===void 0&&(S=""),E===void 0&&(E="&"),t=E,r=v,i=new RegExp("\\".concat(r,"\\b"),"g");var k=y.replace(wC,""),C=Bk(S||v?"".concat(S," ").concat(v," { ").concat(k," }"):k);u.namespace&&(C=Px(C,u.namespace));var R=[];return ru(C,Uk(g.concat(Wk(function(N){return R.push(N)})))),R};return m.hash=d.length?d.reduce(function(y,v){return v.name||kr(15),Ho(y,v.name)},Sx).toString():"",m}var EC=new lu,Rd=SC(),Rx=yt.createContext({shouldForwardProp:void 0,styleSheet:EC,stylis:Rd});Rx.Consumer;yt.createContext(void 0);function Td(){return P.useContext(Rx)}var Tx=function(){function e(t,r){var i=this;this.inject=function(s,a){a===void 0&&(a=Rd);var u=i.name+a.hash;s.hasNameForId(i.id,u)||s.insertRules(i.id,u,a(i.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,xh(this,function(){throw kr(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Rd),this.name+t.hash},e}(),kC=function(e){return e>="A"&&e<="Z"};function Bm(e){for(var t="",r=0;r<e.length;r++){var i=e[r];if(r===1&&i==="-"&&e[0]==="-")return e;kC(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var Ix=function(e){return e==null||e===!1||e===""},jx=function(e){var t,r,i=[];for(var s in e){var a=e[s];e.hasOwnProperty(s)&&!Ix(a)&&(Array.isArray(a)&&a.isCss||Jr(a)?i.push("".concat(Bm(s),":"),a,";"):vs(a)?i.push.apply(i,Yo(Yo(["".concat(s," {")],jx(a),!1),["}"],!1)):i.push("".concat(Bm(s),": ").concat((t=s,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Yk||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return i};function Sr(e,t,r,i){if(Ix(e))return[];if(yh(e))return[".".concat(e.styledComponentId)];if(Jr(e)){if(!Jr(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var s=e(t);return Sr(s,t,r,i)}var a;return e instanceof Tx?r?(e.inject(r,i),[e.getName(i)]):[e]:vs(e)?jx(e):Array.isArray(e)?Array.prototype.concat.apply(Ru,e.map(function(u){return Sr(u,t,r,i)})):[e.toString()]}function $x(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Jr(r)&&!yh(r))return!1}return!0}var CC=Ex(Pu),_C=function(){function e(t,r,i){this.rules=t,this.staticRulesId="",this.isStatic=(i===void 0||i.isStatic)&&$x(t),this.componentId=r,this.baseHash=Ho(CC,r),this.baseStyle=i,lu.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,i){var s=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,i):"";if(this.isStatic&&!i.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))s=Ur(s,this.staticRulesId);else{var a=iu(Sr(this.rules,t,r,i)),u=bd(Ho(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,u)){var f=i(a,".".concat(u),void 0,this.componentId);r.insertRules(this.componentId,u,f)}s=Ur(s,u),this.staticRulesId=u}else{for(var d=Ho(this.baseHash,i.hash),h="",g=0;g<this.rules.length;g++){var m=this.rules[g];if(typeof m=="string")h+=m;else if(m){var y=iu(Sr(m,t,r,i));d=Ho(d,y+g),h+=y}}if(h){var v=bd(d>>>0);r.hasNameForId(this.componentId,v)||r.insertRules(this.componentId,v,i(h,".".concat(v),void 0,this.componentId)),s=Ur(s,v)}}return s},e}(),Jo=yt.createContext(void 0);Jo.Consumer;function so(){var e=P.useContext(Jo);if(!e)throw kr(18);return e}function NC(e){var t=yt.useContext(Jo),r=P.useMemo(function(){return function(i,s){if(!i)throw kr(14);if(Jr(i)){var a=i(s);return a}if(Array.isArray(i)||typeof i!="object")throw kr(8);return s?ut(ut({},s),i):i}(e.theme,t)},[e.theme,t]);return e.children?yt.createElement(Jo.Provider,{value:r},e.children):null}var td={};function bC(e,t,r){var i=yh(e),s=e,a=!ed(e),u=t.attrs,f=u===void 0?Ru:u,d=t.componentId,h=d===void 0?function(b,M){var L=typeof b!="string"?"sc":Am(b);td[L]=(td[L]||0)+1;var j="".concat(L,"-").concat(mh(Pu+L+td[L]));return M?"".concat(M,"-").concat(j):j}(t.displayName,t.parentComponentId):d,g=t.displayName,m=g===void 0?function(b){return ed(b)?"styled.".concat(b):"Styled(".concat(Zk(b),")")}(e):g,y=t.displayName&&t.componentId?"".concat(Am(t.displayName),"-").concat(t.componentId):t.componentId||h,v=i&&s.attrs?s.attrs.concat(f).filter(Boolean):f,S=t.shouldForwardProp;if(i&&s.shouldForwardProp){var E=s.shouldForwardProp;if(t.shouldForwardProp){var k=t.shouldForwardProp;S=function(b,M){return E(b,M)&&k(b,M)}}else S=E}var C=new _C(r,y,i?s.componentStyle:void 0);function R(b,M){return function(L,j,G){var V=L.attrs,Y=L.componentStyle,ee=L.defaultProps,ne=L.foldedComponentIds,J=L.styledComponentId,I=L.target,U=yt.useContext(Jo),F=Td(),q=L.shouldForwardProp||F.shouldForwardProp,A=vx(j,U,ee)||Qo,O=function(ie,le,de){for(var re,he=ut(ut({},le),{className:void 0,theme:de}),Se=0;Se<ie.length;Se+=1){var we=Jr(re=ie[Se])?re(he):re;for(var ge in we)he[ge]=ge==="className"?Ur(he[ge],we[ge]):ge==="style"?ut(ut({},he[ge]),we[ge]):we[ge]}return le.className&&(he.className=Ur(he.className,le.className)),he}(V,j,A),z=O.as||I,T={};for(var H in O)O[H]===void 0||H[0]==="$"||H==="as"||H==="theme"&&O.theme===A||(H==="forwardedAs"?T.as=O.forwardedAs:q&&!q(H,z)||(T[H]=O[H]));var Z=function(ie,le){var de=Td(),re=ie.generateAndInjectStyles(le,de.styleSheet,de.stylis);return re}(Y,O),te=Ur(ne,J);return Z&&(te+=" "+Z),O.className&&(te+=" "+O.className),T[ed(z)&&!wx.has(z)?"class":"className"]=te,T.ref=G,P.createElement(z,T)}(N,b,M)}R.displayName=m;var N=yt.forwardRef(R);return N.attrs=v,N.componentStyle=C,N.displayName=m,N.shouldForwardProp=S,N.foldedComponentIds=i?Ur(s.foldedComponentIds,s.styledComponentId):"",N.styledComponentId=y,N.target=i?s.target:e,Object.defineProperty(N,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=i?function(M){for(var L=[],j=1;j<arguments.length;j++)L[j-1]=arguments[j];for(var G=0,V=L;G<V.length;G++)Pd(M,V[G],!0);return M}({},s.defaultProps,b):b}}),xh(N,function(){return".".concat(N.styledComponentId)}),a&&Nx(N,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),N}function Hm(e,t){for(var r=[e[0]],i=0,s=t.length;i<s;i+=1)r.push(t[i],e[i+1]);return r}var Vm=function(e){return Object.assign(e,{isCss:!0})};function vh(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Jr(e)||vs(e))return Vm(Sr(Hm(Ru,Yo([e],t,!0))));var i=e;return t.length===0&&i.length===1&&typeof i[0]=="string"?Sr(i):Vm(Sr(Hm(i,t)))}function Id(e,t,r){if(r===void 0&&(r=Qo),!t)throw kr(1,t);var i=function(s){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,r,vh.apply(void 0,Yo([s],a,!1)))};return i.attrs=function(s){return Id(e,t,ut(ut({},r),{attrs:Array.prototype.concat(r.attrs,s).filter(Boolean)}))},i.withConfig=function(s){return Id(e,t,ut(ut({},r),s))},i}var Ax=function(e){return Id(bC,e)},oe=Ax;wx.forEach(function(e){oe[e]=Ax(e)});var PC=function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=$x(t),lu.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,r,i,s){var a=s(iu(Sr(this.rules,r,i,s)),""),u=this.componentId+t;i.insertRules(u,u,a)},e.prototype.removeStyles=function(t,r){r.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,r,i,s){t>2&&lu.registerId(this.componentId+t),this.removeStyles(t,i),this.createStyles(t,r,i,s)},e}();function RC(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=vh.apply(void 0,Yo([e],t,!1)),s="sc-global-".concat(mh(JSON.stringify(i))),a=new PC(i,s),u=function(d){var h=Td(),g=yt.useContext(Jo),m=yt.useRef(h.styleSheet.allocateGSInstance(s)).current;return h.styleSheet.server&&f(m,d,h.styleSheet,g,h.stylis),yt.useLayoutEffect(function(){if(!h.styleSheet.server)return f(m,d,h.styleSheet,g,h.stylis),function(){return a.removeStyles(m,h.styleSheet)}},[m,d,h.styleSheet,g,h.stylis]),null};function f(d,h,g,m,y){if(a.isStatic)a.renderStyles(d,Gk,g,y);else{var v=ut(ut({},h),{theme:vx(h,m,u.defaultProps)});a.renderStyles(d,v,g,y)}}return yt.memo(u)}function wh(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=iu(vh.apply(void 0,Yo([e],t,!1))),s=mh(i);return new Tx(s,i)}const Mx={accent:"#007ACC",accentHover:"#4A90E2"},TC={...Mx,primary:"#F3F3F3",secondary:"#EDEDED",background:"#E8E8E8",textColor:"#000000"},IC={...Mx,primary:"#1E1E1E",secondary:"#252525",background:"#3A3A3A",textColor:"#FFFFFF"},jC=RC`
|
||
body {
|
||
background-color: ${e=>e.theme.backgroundColor};
|
||
color: ${e=>e.theme.textColor};
|
||
box-sizing: border-box;
|
||
font-family: sans-serif;
|
||
box-sizing: border-box;
|
||
min-height: 100%;
|
||
height: 100%;
|
||
margin: 0;
|
||
|
||
h1, h2, h3, h4, P{
|
||
margin: 0;
|
||
display: unset;
|
||
}
|
||
}
|
||
|
||
#root{
|
||
width: 100%;
|
||
height: 100%;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
.react-flow__controls{
|
||
border-radius: 12px;
|
||
background-color: ${e=>e.theme.secondary};
|
||
button{
|
||
background-color: ${e=>e.theme.secondary};
|
||
border: none;
|
||
border-radius: 12px;
|
||
|
||
&:hover{
|
||
background-color: ${e=>e.theme.primary};
|
||
}
|
||
}
|
||
|
||
.react-flow__controls-button{
|
||
border-radius: 12px;
|
||
}
|
||
}
|
||
|
||
.react-flow__handle{
|
||
background-color: ${e=>e.theme.nodeColor};
|
||
}
|
||
|
||
.unselectable {
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
-moz-user-select: none;
|
||
-ms-user-select: none;
|
||
}
|
||
`,wt={1:"light",2:"dark",3:"system"},$C=P.createContext(void 0),AC=({children:e})=>{const t=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?wt[2]:wt[1],r=()=>{let f=localStorage.getItem("theme");return f||(f=wt[3],localStorage.setItem("theme",f)),f},[i,s]=P.useState(r),a=()=>{s(f=>{let d;return f===wt[3]?d=wt[1]:f===wt[1]?d=wt[2]:d=wt[3],localStorage.setItem("theme",d),d})};P.useEffect(()=>{const f=window.matchMedia("(prefers-color-scheme: dark)");let d=localStorage.getItem("theme");const h=()=>{if(d===wt[3]){const g=t();s(g),localStorage.setItem("theme",wt[3])}};return f.addEventListener("change",h),()=>f.removeEventListener("change",h)},[i]);const u=i===wt[3]?t():i;return w.jsx($C.Provider,{value:{theme:i,toggleTheme:a},children:w.jsxs(NC,{theme:{...u===wt[1]?TC:IC,toggleTheme:a},children:[w.jsx(jC,{}),e]})})},Um=e=>{let t;const r=new Set,i=(h,g)=>{const m=typeof h=="function"?h(t):h;if(!Object.is(m,t)){const y=t;t=g??(typeof m!="object"||m===null)?m:Object.assign({},t,m),r.forEach(v=>v(t,y))}},s=()=>t,f={setState:i,getState:s,getInitialState:()=>d,subscribe:h=>(r.add(h),()=>r.delete(h))},d=t=e(i,s,f);return f},MC=e=>e?Um(e):Um,LC=e=>e;function DC(e,t=LC){const r=yt.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return yt.useDebugValue(r),r}const Wm=e=>{const t=MC(e),r=i=>DC(t,i);return Object.assign(r,t),r},Bn=e=>e?Wm(e):Wm,Lx=Bn(e=>({isPanDisabled:!1,toggleEditingMode:()=>e(t=>({isPanDisabled:!t.isPanDisabled}))})),Dx=Bn(e=>({groups:[],setGroups:t=>e({groups:t})}));function ci(e,t){let r;try{r=e()}catch{return}return{getItem:s=>{var a;const u=d=>d===null?null:JSON.parse(d,void 0),f=(a=r.getItem(s))!=null?a:null;return f instanceof Promise?f.then(u):u(f)},setItem:(s,a)=>r.setItem(s,JSON.stringify(a,void 0)),removeItem:s=>r.removeItem(s)}}const jd=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(i){return jd(i)(r)},catch(i){return this}}}catch(r){return{then(i){return this},catch(i){return jd(i)(r)}}}},OC=(e,t)=>(r,i,s)=>{let a={storage:ci(()=>localStorage),partialize:E=>E,version:0,merge:(E,k)=>({...k,...E}),...t},u=!1;const f=new Set,d=new Set;let h=a.storage;if(!h)return e((...E)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...E)},i,s);const g=()=>{const E=a.partialize({...i()});return h.setItem(a.name,{state:E,version:a.version})},m=s.setState;s.setState=(E,k)=>{m(E,k),g()};const y=e((...E)=>{r(...E),g()},i,s);s.getInitialState=()=>y;let v;const S=()=>{var E,k;if(!h)return;u=!1,f.forEach(R=>{var N;return R((N=i())!=null?N:y)});const C=((k=a.onRehydrateStorage)==null?void 0:k.call(a,(E=i())!=null?E:y))||void 0;return jd(h.getItem.bind(h))(a.name).then(R=>{if(R)if(typeof R.version=="number"&&R.version!==a.version){if(a.migrate){const N=a.migrate(R.state,R.version);return N instanceof Promise?N.then(b=>[!0,b]):[!0,N]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,R.state];return[!1,void 0]}).then(R=>{var N;const[b,M]=R;if(v=a.merge(M,(N=i())!=null?N:y),r(v,!0),b)return g()}).then(()=>{C==null||C(v,void 0),v=i(),u=!0,d.forEach(R=>R(v))}).catch(R=>{C==null||C(void 0,R)})};return s.persist={setOptions:E=>{a={...a,...E},E.storage&&(h=E.storage)},clearStorage:()=>{h==null||h.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>S(),hasHydrated:()=>u,onHydrate:E=>(f.add(E),()=>{f.delete(E)}),onFinishHydration:E=>(d.add(E),()=>{d.delete(E)})},a.skipHydration||S(),v||y},Os=OC,Hn=Bn()(Os(e=>({ipAddress:"localhost",setIpAddress:t=>e({ipAddress:t})}),{name:"currentIp-storage",storage:ci(()=>localStorage)})),au={1:"toolSpace-devices"},qm={current:au[1],toolSpace:[{id:au[1],isOpen:!0,isActive:!0}]},Tu=Bn()(Os((e,t)=>({toolBar:qm,toggleMenu:r=>e(i=>{const s=i.toolBar.toolSpace.map(a=>a.id===r?{...a,isOpen:!a.isOpen,isActive:!0}:{...a,isActive:!1,isOpen:!1});return{toolBar:{...i.toolBar,current:r,toolSpace:s}}}),initialize:()=>{e({toolBar:qm})}}),{name:"toolBar-storage",storage:ci(()=>localStorage)})),$d=Bn()(Os(e=>({devices:[],addDevice:t=>e(r=>{const i={number:r.devices.length+1,address:t};return{devices:[...r.devices,i]}}),deleteDevice:t=>e(r=>({devices:r.devices.filter(i=>i.number!==t).map((i,s)=>({...i,number:s+1}))}))}),{name:"connectedDevices-storage",storage:ci(()=>localStorage)})),Ox={1:"collapse-devices"},zC=[{id:Ox[1],isOpen:!1}],FC=Bn()(Os(e=>({menus:zC,toggleMenu:t=>e(r=>({menus:r.menus.map(i=>i.id===t?{...i,isOpen:!i.isOpen}:i)}))}),{name:"menus-storage",storage:ci(()=>localStorage)})),bt={1:"helloWindow",2:"aboutFromWork",3:"networkInterfaces",4:"aboutFromHello"},Zr=Bn()(Os(e=>({workModule:bt[1],setWorkModule:t=>e({workModule:t}),initialize:()=>{e({workModule:bt[1]})}}),{name:"workSpace-storage",storage:ci(()=>localStorage)})),Iu=Bn()(e=>({isAdmin:!1,setAdmin:t=>e({isAdmin:t})}));function zx(e,t){return function(){return e.apply(t,arguments)}}const{toString:BC}=Object.prototype,{getPrototypeOf:Sh}=Object,ju=(e=>t=>{const r=BC.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),un=e=>(e=e.toLowerCase(),t=>ju(t)===e),$u=e=>t=>typeof t===e,{isArray:fi}=Array,ws=$u("undefined");function HC(e){return e!==null&&!ws(e)&&e.constructor!==null&&!ws(e.constructor)&&Dt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Fx=un("ArrayBuffer");function VC(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Fx(e.buffer),t}const UC=$u("string"),Dt=$u("function"),Bx=$u("number"),Au=e=>e!==null&&typeof e=="object",WC=e=>e===!0||e===!1,qa=e=>{if(ju(e)!=="object")return!1;const t=Sh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},qC=un("Date"),YC=un("File"),XC=un("Blob"),GC=un("FileList"),KC=e=>Au(e)&&Dt(e.pipe),QC=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Dt(e.append)&&((t=ju(e))==="formdata"||t==="object"&&Dt(e.toString)&&e.toString()==="[object FormData]"))},JC=un("URLSearchParams"),[ZC,e2,t2,n2]=["ReadableStream","Request","Response","Headers"].map(un),r2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zs(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let i,s;if(typeof e!="object"&&(e=[e]),fi(e))for(i=0,s=e.length;i<s;i++)t.call(null,e[i],i,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let f;for(i=0;i<u;i++)f=a[i],t.call(null,e[f],f,e)}}function Hx(e,t){t=t.toLowerCase();const r=Object.keys(e);let i=r.length,s;for(;i-- >0;)if(s=r[i],t===s.toLowerCase())return s;return null}const Wr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vx=e=>!ws(e)&&e!==Wr;function Ad(){const{caseless:e}=Vx(this)&&this||{},t={},r=(i,s)=>{const a=e&&Hx(t,s)||s;qa(t[a])&&qa(i)?t[a]=Ad(t[a],i):qa(i)?t[a]=Ad({},i):fi(i)?t[a]=i.slice():t[a]=i};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&zs(arguments[i],r);return t}const o2=(e,t,r,{allOwnKeys:i}={})=>(zs(t,(s,a)=>{r&&Dt(s)?e[a]=zx(s,r):e[a]=s},{allOwnKeys:i}),e),i2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),s2=(e,t,r,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},l2=(e,t,r,i)=>{let s,a,u;const f={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)u=s[a],(!i||i(u,e,t))&&!f[u]&&(t[u]=e[u],f[u]=!0);e=r!==!1&&Sh(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},a2=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const i=e.indexOf(t,r);return i!==-1&&i===r},u2=e=>{if(!e)return null;if(fi(e))return e;let t=e.length;if(!Bx(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},c2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Sh(Uint8Array)),f2=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=i.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},d2=(e,t)=>{let r;const i=[];for(;(r=e.exec(t))!==null;)i.push(r);return i},h2=un("HTMLFormElement"),p2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,s){return i.toUpperCase()+s}),Ym=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),g2=un("RegExp"),Ux=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),i={};zs(r,(s,a)=>{let u;(u=t(s,a,e))!==!1&&(i[a]=u||s)}),Object.defineProperties(e,i)},m2=e=>{Ux(e,(t,r)=>{if(Dt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=e[r];if(Dt(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},y2=(e,t)=>{const r={},i=s=>{s.forEach(a=>{r[a]=!0})};return fi(e)?i(e):i(String(e).split(t)),r},x2=()=>{},v2=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function w2(e){return!!(e&&Dt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const S2=e=>{const t=new Array(10),r=(i,s)=>{if(Au(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[s]=i;const a=fi(i)?[]:{};return zs(i,(u,f)=>{const d=r(u,s+1);!ws(d)&&(a[f]=d)}),t[s]=void 0,a}}return i};return r(e,0)},E2=un("AsyncFunction"),k2=e=>e&&(Au(e)||Dt(e))&&Dt(e.then)&&Dt(e.catch),Wx=((e,t)=>e?setImmediate:t?((r,i)=>(Wr.addEventListener("message",({source:s,data:a})=>{s===Wr&&a===r&&i.length&&i.shift()()},!1),s=>{i.push(s),Wr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Dt(Wr.postMessage)),C2=typeof queueMicrotask<"u"?queueMicrotask.bind(Wr):typeof process<"u"&&process.nextTick||Wx,Q={isArray:fi,isArrayBuffer:Fx,isBuffer:HC,isFormData:QC,isArrayBufferView:VC,isString:UC,isNumber:Bx,isBoolean:WC,isObject:Au,isPlainObject:qa,isReadableStream:ZC,isRequest:e2,isResponse:t2,isHeaders:n2,isUndefined:ws,isDate:qC,isFile:YC,isBlob:XC,isRegExp:g2,isFunction:Dt,isStream:KC,isURLSearchParams:JC,isTypedArray:c2,isFileList:GC,forEach:zs,merge:Ad,extend:o2,trim:r2,stripBOM:i2,inherits:s2,toFlatObject:l2,kindOf:ju,kindOfTest:un,endsWith:a2,toArray:u2,forEachEntry:f2,matchAll:d2,isHTMLForm:h2,hasOwnProperty:Ym,hasOwnProp:Ym,reduceDescriptors:Ux,freezeMethods:m2,toObjectSet:y2,toCamelCase:p2,noop:x2,toFiniteNumber:v2,findKey:Hx,global:Wr,isContextDefined:Vx,isSpecCompliantForm:w2,toJSONObject:S2,isAsyncFn:E2,isThenable:k2,setImmediate:Wx,asap:C2};function Ne(e,t,r,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s,this.status=s.status?s.status:null)}Q.inherits(Ne,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.status}}});const qx=Ne.prototype,Yx={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Yx[e]={value:e}});Object.defineProperties(Ne,Yx);Object.defineProperty(qx,"isAxiosError",{value:!0});Ne.from=(e,t,r,i,s,a)=>{const u=Object.create(qx);return Q.toFlatObject(e,u,function(d){return d!==Error.prototype},f=>f!=="isAxiosError"),Ne.call(u,e.message,t,r,i,s),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const _2=null;function Md(e){return Q.isPlainObject(e)||Q.isArray(e)}function Xx(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function Xm(e,t,r){return e?e.concat(t).map(function(s,a){return s=Xx(s),!r&&a?"["+s+"]":s}).join(r?".":""):t}function N2(e){return Q.isArray(e)&&!e.some(Md)}const b2=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});function Mu(e,t,r){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Q.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,k){return!Q.isUndefined(k[E])});const i=r.metaTokens,s=r.visitor||g,a=r.dots,u=r.indexes,d=(r.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(s))throw new TypeError("visitor must be a function");function h(S){if(S===null)return"";if(Q.isDate(S))return S.toISOString();if(!d&&Q.isBlob(S))throw new Ne("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(S)||Q.isTypedArray(S)?d&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function g(S,E,k){let C=S;if(S&&!k&&typeof S=="object"){if(Q.endsWith(E,"{}"))E=i?E:E.slice(0,-2),S=JSON.stringify(S);else if(Q.isArray(S)&&N2(S)||(Q.isFileList(S)||Q.endsWith(E,"[]"))&&(C=Q.toArray(S)))return E=Xx(E),C.forEach(function(N,b){!(Q.isUndefined(N)||N===null)&&t.append(u===!0?Xm([E],b,a):u===null?E:E+"[]",h(N))}),!1}return Md(S)?!0:(t.append(Xm(k,E,a),h(S)),!1)}const m=[],y=Object.assign(b2,{defaultVisitor:g,convertValue:h,isVisitable:Md});function v(S,E){if(!Q.isUndefined(S)){if(m.indexOf(S)!==-1)throw Error("Circular reference detected in "+E.join("."));m.push(S),Q.forEach(S,function(C,R){(!(Q.isUndefined(C)||C===null)&&s.call(t,C,Q.isString(R)?R.trim():R,E,y))===!0&&v(C,E?E.concat(R):[R])}),m.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Gm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Eh(e,t){this._pairs=[],e&&Mu(e,this,t)}const Gx=Eh.prototype;Gx.append=function(t,r){this._pairs.push([t,r])};Gx.toString=function(t){const r=t?function(i){return t.call(this,i,Gm)}:Gm;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function P2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Kx(e,t,r){if(!t)return e;const i=r&&r.encode||P2;Q.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let a;if(s?a=s(t,r):a=Q.isURLSearchParams(t)?t.toString():new Eh(t,r).toString(i),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Km{constructor(){this.handlers=[]}use(t,r,i){return this.handlers.push({fulfilled:t,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(i){i!==null&&t(i)})}}const Qx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},R2=typeof URLSearchParams<"u"?URLSearchParams:Eh,T2=typeof FormData<"u"?FormData:null,I2=typeof Blob<"u"?Blob:null,j2={isBrowser:!0,classes:{URLSearchParams:R2,FormData:T2,Blob:I2},protocols:["http","https","file","blob","url","data"]},kh=typeof window<"u"&&typeof document<"u",Ld=typeof navigator=="object"&&navigator||void 0,$2=kh&&(!Ld||["ReactNative","NativeScript","NS"].indexOf(Ld.product)<0),A2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",M2=kh&&window.location.href||"http://localhost",L2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:kh,hasStandardBrowserEnv:$2,hasStandardBrowserWebWorkerEnv:A2,navigator:Ld,origin:M2},Symbol.toStringTag,{value:"Module"})),mt={...L2,...j2};function D2(e,t){return Mu(e,new mt.classes.URLSearchParams,Object.assign({visitor:function(r,i,s,a){return mt.isNode&&Q.isBuffer(r)?(this.append(i,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function O2(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function z2(e){const t={},r=Object.keys(e);let i;const s=r.length;let a;for(i=0;i<s;i++)a=r[i],t[a]=e[a];return t}function Jx(e){function t(r,i,s,a){let u=r[a++];if(u==="__proto__")return!0;const f=Number.isFinite(+u),d=a>=r.length;return u=!u&&Q.isArray(s)?s.length:u,d?(Q.hasOwnProp(s,u)?s[u]=[s[u],i]:s[u]=i,!f):((!s[u]||!Q.isObject(s[u]))&&(s[u]=[]),t(r,i,s[u],a)&&Q.isArray(s[u])&&(s[u]=z2(s[u])),!f)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const r={};return Q.forEachEntry(e,(i,s)=>{t(O2(i),s,r,0)}),r}return null}function F2(e,t,r){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(e)}const Fs={transitional:Qx,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const i=r.getContentType()||"",s=i.indexOf("application/json")>-1,a=Q.isObject(t);if(a&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return s?JSON.stringify(Jx(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t)||Q.isReadableStream(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return D2(t,this.formSerializer).toString();if((f=Q.isFileList(t))||i.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Mu(f?{"files[]":t}:t,d&&new d,this.formSerializer)}}return a||s?(r.setContentType("application/json",!1),F2(t)):t}],transformResponse:[function(t){const r=this.transitional||Fs.transitional,i=r&&r.forcedJSONParsing,s=this.responseType==="json";if(Q.isResponse(t)||Q.isReadableStream(t))return t;if(t&&Q.isString(t)&&(i&&!this.responseType||s)){const u=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(f){if(u)throw f.name==="SyntaxError"?Ne.from(f,Ne.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mt.classes.FormData,Blob:mt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{Fs.headers[e]={}});const B2=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),H2=e=>{const t={};let r,i,s;return e&&e.split(`
|
||
`).forEach(function(u){s=u.indexOf(":"),r=u.substring(0,s).trim().toLowerCase(),i=u.substring(s+1).trim(),!(!r||t[r]&&B2[r])&&(r==="set-cookie"?t[r]?t[r].push(i):t[r]=[i]:t[r]=t[r]?t[r]+", "+i:i)}),t},Qm=Symbol("internals");function is(e){return e&&String(e).trim().toLowerCase()}function Ya(e){return e===!1||e==null?e:Q.isArray(e)?e.map(Ya):String(e)}function V2(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(e);)t[i[1]]=i[2];return t}const U2=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nd(e,t,r,i,s){if(Q.isFunction(i))return i.call(this,t,r);if(s&&(t=r),!!Q.isString(t)){if(Q.isString(i))return t.indexOf(i)!==-1;if(Q.isRegExp(i))return i.test(t)}}function W2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,i)=>r.toUpperCase()+i)}function q2(e,t){const r=Q.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+r,{value:function(s,a,u){return this[i].call(this,t,s,a,u)},configurable:!0})})}let Rt=class{constructor(t){t&&this.set(t)}set(t,r,i){const s=this;function a(f,d,h){const g=is(d);if(!g)throw new Error("header name must be a non-empty string");const m=Q.findKey(s,g);(!m||s[m]===void 0||h===!0||h===void 0&&s[m]!==!1)&&(s[m||d]=Ya(f))}const u=(f,d)=>Q.forEach(f,(h,g)=>a(h,g,d));if(Q.isPlainObject(t)||t instanceof this.constructor)u(t,r);else if(Q.isString(t)&&(t=t.trim())&&!U2(t))u(H2(t),r);else if(Q.isHeaders(t))for(const[f,d]of t.entries())a(d,f,i);else t!=null&&a(r,t,i);return this}get(t,r){if(t=is(t),t){const i=Q.findKey(this,t);if(i){const s=this[i];if(!r)return s;if(r===!0)return V2(s);if(Q.isFunction(r))return r.call(this,s,i);if(Q.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=is(t),t){const i=Q.findKey(this,t);return!!(i&&this[i]!==void 0&&(!r||nd(this,this[i],i,r)))}return!1}delete(t,r){const i=this;let s=!1;function a(u){if(u=is(u),u){const f=Q.findKey(i,u);f&&(!r||nd(i,i[f],f,r))&&(delete i[f],s=!0)}}return Q.isArray(t)?t.forEach(a):a(t),s}clear(t){const r=Object.keys(this);let i=r.length,s=!1;for(;i--;){const a=r[i];(!t||nd(this,this[a],a,t,!0))&&(delete this[a],s=!0)}return s}normalize(t){const r=this,i={};return Q.forEach(this,(s,a)=>{const u=Q.findKey(i,a);if(u){r[u]=Ya(s),delete r[a];return}const f=t?W2(a):String(a).trim();f!==a&&delete r[a],r[f]=Ya(s),i[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Q.forEach(this,(i,s)=>{i!=null&&i!==!1&&(r[s]=t&&Q.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const i=new this(t);return r.forEach(s=>i.set(s)),i}static accessor(t){const i=(this[Qm]=this[Qm]={accessors:{}}).accessors,s=this.prototype;function a(u){const f=is(u);i[f]||(q2(s,u),i[f]=!0)}return Q.isArray(t)?t.forEach(a):a(t),this}};Rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Q.reduceDescriptors(Rt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[r]=i}}});Q.freezeMethods(Rt);function rd(e,t){const r=this||Fs,i=t||r,s=Rt.from(i.headers);let a=i.data;return Q.forEach(e,function(f){a=f.call(r,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function Zx(e){return!!(e&&e.__CANCEL__)}function di(e,t,r){Ne.call(this,e??"canceled",Ne.ERR_CANCELED,t,r),this.name="CanceledError"}Q.inherits(di,Ne,{__CANCEL__:!0});function ev(e,t,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new Ne("Request failed with status code "+r.status,[Ne.ERR_BAD_REQUEST,Ne.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Y2(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function X2(e,t){e=e||10;const r=new Array(e),i=new Array(e);let s=0,a=0,u;return t=t!==void 0?t:1e3,function(d){const h=Date.now(),g=i[a];u||(u=h),r[s]=d,i[s]=h;let m=a,y=0;for(;m!==s;)y+=r[m++],m=m%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),h-u<t)return;const v=g&&h-g;return v?Math.round(y*1e3/v):void 0}}function G2(e,t){let r=0,i=1e3/t,s,a;const u=(h,g=Date.now())=>{r=g,s=null,a&&(clearTimeout(a),a=null),e.apply(null,h)};return[(...h)=>{const g=Date.now(),m=g-r;m>=i?u(h,g):(s=h,a||(a=setTimeout(()=>{a=null,u(s)},i-m)))},()=>s&&u(s)]}const uu=(e,t,r=3)=>{let i=0;const s=X2(50,250);return G2(a=>{const u=a.loaded,f=a.lengthComputable?a.total:void 0,d=u-i,h=s(d),g=u<=f;i=u;const m={loaded:u,total:f,progress:f?u/f:void 0,bytes:d,rate:h||void 0,estimated:h&&f&&g?(f-u)/h:void 0,event:a,lengthComputable:f!=null,[t?"download":"upload"]:!0};e(m)},r)},Jm=(e,t)=>{const r=e!=null;return[i=>t[0]({lengthComputable:r,total:e,loaded:i}),t[1]]},Zm=e=>(...t)=>Q.asap(()=>e(...t)),K2=mt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,mt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(mt.origin),mt.navigator&&/(msie|trident)/i.test(mt.navigator.userAgent)):()=>!0,Q2=mt.hasStandardBrowserEnv?{write(e,t,r,i,s,a){const u=[e+"="+encodeURIComponent(t)];Q.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),Q.isString(i)&&u.push("path="+i),Q.isString(s)&&u.push("domain="+s),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function J2(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Z2(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function tv(e,t,r){let i=!J2(t);return e&&(i||r==!1)?Z2(e,t):t}const e0=e=>e instanceof Rt?{...e}:e;function eo(e,t){t=t||{};const r={};function i(h,g,m,y){return Q.isPlainObject(h)&&Q.isPlainObject(g)?Q.merge.call({caseless:y},h,g):Q.isPlainObject(g)?Q.merge({},g):Q.isArray(g)?g.slice():g}function s(h,g,m,y){if(Q.isUndefined(g)){if(!Q.isUndefined(h))return i(void 0,h,m,y)}else return i(h,g,m,y)}function a(h,g){if(!Q.isUndefined(g))return i(void 0,g)}function u(h,g){if(Q.isUndefined(g)){if(!Q.isUndefined(h))return i(void 0,h)}else return i(void 0,g)}function f(h,g,m){if(m in t)return i(h,g);if(m in e)return i(void 0,h)}const d={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f,headers:(h,g,m)=>s(e0(h),e0(g),m,!0)};return Q.forEach(Object.keys(Object.assign({},e,t)),function(g){const m=d[g]||s,y=m(e[g],t[g],g);Q.isUndefined(y)&&m!==f||(r[g]=y)}),r}const nv=e=>{const t=eo({},e);let{data:r,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:a,headers:u,auth:f}=t;t.headers=u=Rt.from(u),t.url=Kx(tv(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&u.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let d;if(Q.isFormData(r)){if(mt.hasStandardBrowserEnv||mt.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((d=u.getContentType())!==!1){const[h,...g]=d?d.split(";").map(m=>m.trim()).filter(Boolean):[];u.setContentType([h||"multipart/form-data",...g].join("; "))}}if(mt.hasStandardBrowserEnv&&(i&&Q.isFunction(i)&&(i=i(t)),i||i!==!1&&K2(t.url))){const h=s&&a&&Q2.read(a);h&&u.set(s,h)}return t},e_=typeof XMLHttpRequest<"u",t_=e_&&function(e){return new Promise(function(r,i){const s=nv(e);let a=s.data;const u=Rt.from(s.headers).normalize();let{responseType:f,onUploadProgress:d,onDownloadProgress:h}=s,g,m,y,v,S;function E(){v&&v(),S&&S(),s.cancelToken&&s.cancelToken.unsubscribe(g),s.signal&&s.signal.removeEventListener("abort",g)}let k=new XMLHttpRequest;k.open(s.method.toUpperCase(),s.url,!0),k.timeout=s.timeout;function C(){if(!k)return;const N=Rt.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),M={data:!f||f==="text"||f==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:N,config:e,request:k};ev(function(j){r(j),E()},function(j){i(j),E()},M),k=null}"onloadend"in k?k.onloadend=C:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(C)},k.onabort=function(){k&&(i(new Ne("Request aborted",Ne.ECONNABORTED,e,k)),k=null)},k.onerror=function(){i(new Ne("Network Error",Ne.ERR_NETWORK,e,k)),k=null},k.ontimeout=function(){let b=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const M=s.transitional||Qx;s.timeoutErrorMessage&&(b=s.timeoutErrorMessage),i(new Ne(b,M.clarifyTimeoutError?Ne.ETIMEDOUT:Ne.ECONNABORTED,e,k)),k=null},a===void 0&&u.setContentType(null),"setRequestHeader"in k&&Q.forEach(u.toJSON(),function(b,M){k.setRequestHeader(M,b)}),Q.isUndefined(s.withCredentials)||(k.withCredentials=!!s.withCredentials),f&&f!=="json"&&(k.responseType=s.responseType),h&&([y,S]=uu(h,!0),k.addEventListener("progress",y)),d&&k.upload&&([m,v]=uu(d),k.upload.addEventListener("progress",m),k.upload.addEventListener("loadend",v)),(s.cancelToken||s.signal)&&(g=N=>{k&&(i(!N||N.type?new di(null,e,k):N),k.abort(),k=null)},s.cancelToken&&s.cancelToken.subscribe(g),s.signal&&(s.signal.aborted?g():s.signal.addEventListener("abort",g)));const R=Y2(s.url);if(R&&mt.protocols.indexOf(R)===-1){i(new Ne("Unsupported protocol "+R+":",Ne.ERR_BAD_REQUEST,e));return}k.send(a||null)})},n_=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let i=new AbortController,s;const a=function(h){if(!s){s=!0,f();const g=h instanceof Error?h:this.reason;i.abort(g instanceof Ne?g:new di(g instanceof Error?g.message:g))}};let u=t&&setTimeout(()=>{u=null,a(new Ne(`timeout ${t} of ms exceeded`,Ne.ETIMEDOUT))},t);const f=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(a):h.removeEventListener("abort",a)}),e=null)};e.forEach(h=>h.addEventListener("abort",a));const{signal:d}=i;return d.unsubscribe=()=>Q.asap(f),d}},r_=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let i=0,s;for(;i<r;)s=i+t,yield e.slice(i,s),i=s},o_=async function*(e,t){for await(const r of i_(e))yield*r_(r,t)},i_=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:i}=await t.read();if(r)break;yield i}}finally{await t.cancel()}},t0=(e,t,r,i)=>{const s=o_(e,t);let a=0,u,f=d=>{u||(u=!0,i&&i(d))};return new ReadableStream({async pull(d){try{const{done:h,value:g}=await s.next();if(h){f(),d.close();return}let m=g.byteLength;if(r){let y=a+=m;r(y)}d.enqueue(new Uint8Array(g))}catch(h){throw f(h),h}},cancel(d){return f(d),s.return()}},{highWaterMark:2})},Lu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",rv=Lu&&typeof ReadableStream=="function",s_=Lu&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ov=(e,...t)=>{try{return!!e(...t)}catch{return!1}},l_=rv&&ov(()=>{let e=!1;const t=new Request(mt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),n0=64*1024,Dd=rv&&ov(()=>Q.isReadableStream(new Response("").body)),cu={stream:Dd&&(e=>e.body)};Lu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!cu[t]&&(cu[t]=Q.isFunction(e[t])?r=>r[t]():(r,i)=>{throw new Ne(`Response type '${t}' is not supported`,Ne.ERR_NOT_SUPPORT,i)})})})(new Response);const a_=async e=>{if(e==null)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e))return(await new Request(mt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Q.isArrayBufferView(e)||Q.isArrayBuffer(e))return e.byteLength;if(Q.isURLSearchParams(e)&&(e=e+""),Q.isString(e))return(await s_(e)).byteLength},u_=async(e,t)=>{const r=Q.toFiniteNumber(e.getContentLength());return r??a_(t)},c_=Lu&&(async e=>{let{url:t,method:r,data:i,signal:s,cancelToken:a,timeout:u,onDownloadProgress:f,onUploadProgress:d,responseType:h,headers:g,withCredentials:m="same-origin",fetchOptions:y}=nv(e);h=h?(h+"").toLowerCase():"text";let v=n_([s,a&&a.toAbortSignal()],u),S;const E=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let k;try{if(d&&l_&&r!=="get"&&r!=="head"&&(k=await u_(g,i))!==0){let M=new Request(t,{method:"POST",body:i,duplex:"half"}),L;if(Q.isFormData(i)&&(L=M.headers.get("content-type"))&&g.setContentType(L),M.body){const[j,G]=Jm(k,uu(Zm(d)));i=t0(M.body,n0,j,G)}}Q.isString(m)||(m=m?"include":"omit");const C="credentials"in Request.prototype;S=new Request(t,{...y,signal:v,method:r.toUpperCase(),headers:g.normalize().toJSON(),body:i,duplex:"half",credentials:C?m:void 0});let R=await fetch(S);const N=Dd&&(h==="stream"||h==="response");if(Dd&&(f||N&&E)){const M={};["status","statusText","headers"].forEach(V=>{M[V]=R[V]});const L=Q.toFiniteNumber(R.headers.get("content-length")),[j,G]=f&&Jm(L,uu(Zm(f),!0))||[];R=new Response(t0(R.body,n0,j,()=>{G&&G(),E&&E()}),M)}h=h||"text";let b=await cu[Q.findKey(cu,h)||"text"](R,e);return!N&&E&&E(),await new Promise((M,L)=>{ev(M,L,{data:b,headers:Rt.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:S})})}catch(C){throw E&&E(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new Ne("Network Error",Ne.ERR_NETWORK,e,S),{cause:C.cause||C}):Ne.from(C,C&&C.code,e,S)}}),Od={http:_2,xhr:t_,fetch:c_};Q.forEach(Od,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const r0=e=>`- ${e}`,f_=e=>Q.isFunction(e)||e===null||e===!1,iv={getAdapter:e=>{e=Q.isArray(e)?e:[e];const{length:t}=e;let r,i;const s={};for(let a=0;a<t;a++){r=e[a];let u;if(i=r,!f_(r)&&(i=Od[(u=String(r)).toLowerCase()],i===void 0))throw new Ne(`Unknown adapter '${u}'`);if(i)break;s[u||"#"+a]=i}if(!i){const a=Object.entries(s).map(([f,d])=>`adapter ${f} `+(d===!1?"is not supported by the environment":"is not available in the build"));let u=t?a.length>1?`since :
|
||
`+a.map(r0).join(`
|
||
`):" "+r0(a[0]):"as no adapter specified";throw new Ne("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i},adapters:Od};function od(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new di(null,e)}function o0(e){return od(e),e.headers=Rt.from(e.headers),e.data=rd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),iv.getAdapter(e.adapter||Fs.adapter)(e).then(function(i){return od(e),i.data=rd.call(e,e.transformResponse,i),i.headers=Rt.from(i.headers),i},function(i){return Zx(i)||(od(e),i&&i.response&&(i.response.data=rd.call(e,e.transformResponse,i.response),i.response.headers=Rt.from(i.response.headers))),Promise.reject(i)})}const sv="1.8.4",Du={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Du[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const i0={};Du.transitional=function(t,r,i){function s(a,u){return"[Axios v"+sv+"] Transitional option '"+a+"'"+u+(i?". "+i:"")}return(a,u,f)=>{if(t===!1)throw new Ne(s(u," has been removed"+(r?" in "+r:"")),Ne.ERR_DEPRECATED);return r&&!i0[u]&&(i0[u]=!0,console.warn(s(u," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,u,f):!0}};Du.spelling=function(t){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function d_(e,t,r){if(typeof e!="object")throw new Ne("options must be an object",Ne.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let s=i.length;for(;s-- >0;){const a=i[s],u=t[a];if(u){const f=e[a],d=f===void 0||u(f,a,e);if(d!==!0)throw new Ne("option "+a+" must be "+d,Ne.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ne("Unknown option "+a,Ne.ERR_BAD_OPTION)}}const Xa={assertOptions:d_,validators:Du},yn=Xa.validators;let Xr=class{constructor(t){this.defaults=t,this.interceptors={request:new Km,response:new Km}}async request(t,r){try{return await this._request(t,r)}catch(i){if(i instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
||
`+a):i.stack=a}catch{}}throw i}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=eo(this.defaults,r);const{transitional:i,paramsSerializer:s,headers:a}=r;i!==void 0&&Xa.assertOptions(i,{silentJSONParsing:yn.transitional(yn.boolean),forcedJSONParsing:yn.transitional(yn.boolean),clarifyTimeoutError:yn.transitional(yn.boolean)},!1),s!=null&&(Q.isFunction(s)?r.paramsSerializer={serialize:s}:Xa.assertOptions(s,{encode:yn.function,serialize:yn.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Xa.assertOptions(r,{baseUrl:yn.spelling("baseURL"),withXsrfToken:yn.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=a&&Q.merge(a.common,a[r.method]);a&&Q.forEach(["delete","get","head","post","put","patch","common"],S=>{delete a[S]}),r.headers=Rt.concat(u,a);const f=[];let d=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(r)===!1||(d=d&&E.synchronous,f.unshift(E.fulfilled,E.rejected))});const h=[];this.interceptors.response.forEach(function(E){h.push(E.fulfilled,E.rejected)});let g,m=0,y;if(!d){const S=[o0.bind(this),void 0];for(S.unshift.apply(S,f),S.push.apply(S,h),y=S.length,g=Promise.resolve(r);m<y;)g=g.then(S[m++],S[m++]);return g}y=f.length;let v=r;for(m=0;m<y;){const S=f[m++],E=f[m++];try{v=S(v)}catch(k){E.call(this,k);break}}try{g=o0.call(this,v)}catch(S){return Promise.reject(S)}for(m=0,y=h.length;m<y;)g=g.then(h[m++],h[m++]);return g}getUri(t){t=eo(this.defaults,t);const r=tv(t.baseURL,t.url,t.allowAbsoluteUrls);return Kx(r,t.params,t.paramsSerializer)}};Q.forEach(["delete","get","head","options"],function(t){Xr.prototype[t]=function(r,i){return this.request(eo(i||{},{method:t,url:r,data:(i||{}).data}))}});Q.forEach(["post","put","patch"],function(t){function r(i){return function(a,u,f){return this.request(eo(f||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}Xr.prototype[t]=r(),Xr.prototype[t+"Form"]=r(!0)});let h_=class lv{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const i=this;this.promise.then(s=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](s);i._listeners=null}),this.promise.then=s=>{let a;const u=new Promise(f=>{i.subscribe(f),a=f}).then(s);return u.cancel=function(){i.unsubscribe(a)},u},t(function(a,u,f){i.reason||(i.reason=new di(a,u,f),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=i=>{t.abort(i)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new lv(function(s){t=s}),cancel:t}}};function p_(e){return function(r){return e.apply(null,r)}}function g_(e){return Q.isObject(e)&&e.isAxiosError===!0}const zd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(zd).forEach(([e,t])=>{zd[t]=e});function av(e){const t=new Xr(e),r=zx(Xr.prototype.request,t);return Q.extend(r,Xr.prototype,t,{allOwnKeys:!0}),Q.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return av(eo(e,s))},r}const Xe=av(Fs);Xe.Axios=Xr;Xe.CanceledError=di;Xe.CancelToken=h_;Xe.isCancel=Zx;Xe.VERSION=sv;Xe.toFormData=Mu;Xe.AxiosError=Ne;Xe.Cancel=Xe.CanceledError;Xe.all=function(t){return Promise.all(t)};Xe.spread=p_;Xe.isAxiosError=g_;Xe.mergeConfig=eo;Xe.AxiosHeaders=Rt;Xe.formToJSON=e=>Jx(Q.isHTMLForm(e)?new FormData(e):e);Xe.getAdapter=iv.getAdapter;Xe.HttpStatusCode=zd;Xe.default=Xe;const{Axios:G$,AxiosError:K$,CanceledError:Q$,isCancel:J$,CancelToken:Z$,VERSION:eA,all:tA,Cancel:nA,isAxiosError:rA,spread:oA,toFormData:iA,AxiosHeaders:sA,HttpStatusCode:lA,formToJSON:aA,getAdapter:uA,mergeConfig:cA}=Xe,m_=Xe.create({baseURL:"https://localhost:8001"});class Ln{static createAxiosInstance(t){return Xe.create({baseURL:`https://${t}:8001`})}static async checkIp(t,r){try{return await this.createAxiosInstance(t).post("/ip/check_ip",r)}catch(i){return i.response}}static async saveIp(t,r){try{return await this.createAxiosInstance(t).post("/ip/apply_ip",r)}catch(i){return i.response}}static async getHostname(){try{return await m_.get("/network/get_hostname")}catch(t){return t.response}}static async createUser(t,r){try{return await this.createAxiosInstance(t).post("/auth/register",r)}catch(i){return i.response}}static async login(t,r){try{return await this.createAxiosInstance(t).post("/auth/login",r)}catch(i){return i.response}}static async logout(t){try{return await this.createAxiosInstance(t).get("/auth/logout")}catch(r){return r.response}}static async checkServerConf(t){try{return await this.createAxiosInstance(t).get("/auth/check_json")}catch(r){return r.response}}static async whoami(t){try{return await this.createAxiosInstance(t).get("/auth/me")}catch(r){return r.response}}}const uv=()=>{const{ipAddress:e}=Hn(),{setAdmin:t}=Iu();return async()=>{const r=await Ln.whoami(e);console.log(r.data),r.status==401?t(!1):t(r.data.user.is_admin)}},y_=wh`
|
||
0%, 100% { opacity: 0.3; }
|
||
50% { opacity: 1; }
|
||
`,id=oe.span`
|
||
animation: ${y_} 1s infinite;
|
||
animation-delay: ${({$delay:e})=>e}s;
|
||
margin: 0;
|
||
`,x_=oe.div`
|
||
display: flex;
|
||
gap: 4px;
|
||
`,Ch=()=>w.jsxs(x_,{children:[w.jsx(id,{$delay:0,children:"."}),w.jsx(id,{$delay:.2,children:"."}),w.jsx(id,{$delay:.4,children:"."})]}),v_=wh`
|
||
from {
|
||
transform: rotate(0deg);
|
||
}
|
||
to {
|
||
transform: rotate(360deg);
|
||
}
|
||
`;oe.div`
|
||
top: 0px;
|
||
z-index:998;
|
||
background-color: rgba(0,0,0, 0.7);
|
||
position: fixed;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 100%;
|
||
height: 100%;
|
||
overflow-y: hidden;
|
||
`;const w_=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 15px;
|
||
|
||
p{
|
||
font-size: 24px;
|
||
color: white;
|
||
}
|
||
`,S_=oe.div`
|
||
position: relative;
|
||
width: 65px;
|
||
height: 65px;
|
||
`,E_=oe.div`
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
width: 65px;
|
||
height: 65px;
|
||
border-radius: 50%;
|
||
border: 12px solid white;
|
||
`,k_=oe.div`
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
width: 65px;
|
||
height: 65px;
|
||
border-radius: 50%;
|
||
border: 12px solid transparent;
|
||
border-top: 12px solid ${e=>e.theme.accent};
|
||
|
||
// Добавление аниманции и использование кейфремов
|
||
animation: ${v_} 1s linear infinite;
|
||
`,C_=oe.div`
|
||
display: flex;
|
||
gap: 3px;
|
||
font-size: 24px;
|
||
color: white;
|
||
margin-top: 30px;
|
||
margin-left: 25px;
|
||
`;function cv({loaderText:e}){return w.jsxs(w_,{children:[w.jsxs(S_,{children:[w.jsx(E_,{}),w.jsx(k_,{})]}),w.jsxs(C_,{children:[e,w.jsx(Ch,{})]})]})}const fv=oe.div`
|
||
width: 100%;
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
z-index: 9999;
|
||
background-color: rgba(0, 0, 0, 0.8);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
height: 100%;
|
||
`,Ss=oe.div`
|
||
border-radius: 12px;
|
||
background: ${e=>e.theme.secondary};
|
||
color: ${e=>e.theme.textColor};
|
||
position: relative;
|
||
max-height: 100%;
|
||
overflow: auto;
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: space-between;
|
||
gap: 15px;
|
||
height: ${e=>e.height?e.height:"200px"};
|
||
width: 520px;
|
||
`,Es=oe.div`
|
||
padding: 20px;
|
||
border-bottom: 1px solid #9D9D9D;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
|
||
h3{
|
||
font-size: 18px;
|
||
}
|
||
`,Zo=oe.div`
|
||
padding: 0 20px;
|
||
|
||
h3{
|
||
font-size: 14px;
|
||
}
|
||
|
||
p{
|
||
font-size: 12px;
|
||
}
|
||
`,dv=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
gap: 10px;
|
||
`,__=oe.p`
|
||
color: #d95454;
|
||
`,ei=oe.div`
|
||
justify-content: flex-end;
|
||
display: flex;
|
||
gap: 10px;
|
||
padding: 20px;
|
||
`,Le={1:"powerOff",2:"delete",3:"settings",4:"information",5:"arrow-down",6:"arrow-right",7:"edit",8:"accept",9:"cancel",10:"admin",11:"reset",12:"close",13:"noAdmin"},hv=Object.freeze({left:0,top:0,width:16,height:16}),fu=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_h=Object.freeze({...hv,...fu}),Fd=Object.freeze({..._h,body:"",hidden:!1});function N_(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(r.rotate=i),r}function s0(e,t){const r=N_(e,t);for(const i in Fd)i in fu?i in e&&!(i in r)&&(r[i]=fu[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function b_(e,t){const r=e.icons,i=e.aliases||Object.create(null),s=Object.create(null);function a(u){if(r[u])return s[u]=[];if(!(u in s)){s[u]=null;const f=i[u]&&i[u].parent,d=f&&a(f);d&&(s[u]=[f].concat(d))}return s[u]}return Object.keys(r).concat(Object.keys(i)).forEach(a),s}function P_(e,t,r){const i=e.icons,s=e.aliases||Object.create(null);let a={};function u(f){a=s0(i[f]||s[f],a)}return u(t),r.forEach(u),s0(e,a)}function pv(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),r.push(s)});const i=b_(e);for(const s in i){const a=i[s];a&&(t(s,P_(e,s,a)),r.push(s))}return r}const R_={provider:"",aliases:{},not_found:{},...hv};function sd(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function gv(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!sd(e,R_))return null;const r=t.icons;for(const s in r){const a=r[s];if(!s||typeof a.body!="string"||!sd(a,Fd))return null}const i=t.aliases||Object.create(null);for(const s in i){const a=i[s],u=a.parent;if(!s||typeof u!="string"||!r[u]&&!i[u]||!sd(a,Fd))return null}return t}const mv=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ou=(e,t,r,i="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;i=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const f=s.pop(),d=s.pop(),h={provider:s.length>0?s[0]:i,prefix:d,name:f};return t&&!Ga(h)?null:h}const a=s[0],u=a.split("-");if(u.length>1){const f={provider:i,prefix:u.shift(),name:u.join("-")};return t&&!Ga(f)?null:f}if(r&&i===""){const f={provider:i,prefix:"",name:a};return t&&!Ga(f,r)?null:f}return null},Ga=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,l0=Object.create(null);function T_(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ti(e,t){const r=l0[e]||(l0[e]=Object.create(null));return r[t]||(r[t]=T_(e,t))}function yv(e,t){return gv(t)?pv(t,(r,i)=>{i?e.icons[r]=i:e.missing.add(r)}):[]}function I_(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let ks=!1;function xv(e){return typeof e=="boolean"&&(ks=e),ks}function a0(e){const t=typeof e=="string"?Ou(e,!0,ks):e;if(t){const r=ti(t.provider,t.prefix),i=t.name;return r.icons[i]||(r.missing.has(i)?null:void 0)}}function j_(e,t){const r=Ou(e,!0,ks);if(!r)return!1;const i=ti(r.provider,r.prefix);return t?I_(i,r.name,t):(i.missing.add(r.name),!0)}function $_(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),ks&&!t&&!e.prefix){let s=!1;return gv(e)&&(e.prefix="",pv(e,(a,u)=>{j_(a,u)&&(s=!0)})),s}const r=e.prefix;if(!Ga({prefix:r,name:"a"}))return!1;const i=ti(t,r);return!!yv(i,e)}const vv=Object.freeze({width:null,height:null}),wv=Object.freeze({...vv,...fu}),A_=/(-?[0-9.]*[0-9]+[0-9.]*)/g,M_=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function u0(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const i=e.split(A_);if(i===null||!i.length)return e;const s=[];let a=i.shift(),u=M_.test(a);for(;;){if(u){const f=parseFloat(a);isNaN(f)?s.push(a):s.push(Math.ceil(f*t*r)/r)}else s.push(a);if(a=i.shift(),a===void 0)return s.join("");u=!u}}function L_(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const s=e.indexOf(">",i),a=e.indexOf("</"+t);if(s===-1||a===-1)break;const u=e.indexOf(">",a);if(u===-1)break;r+=e.slice(s+1,a).trim(),e=e.slice(0,i).trim()+e.slice(u+1)}return{defs:r,content:e}}function D_(e,t){return e?"<defs>"+e+"</defs>"+t:t}function O_(e,t,r){const i=L_(e);return D_(i.defs,t+i.content+r)}const z_=e=>e==="unset"||e==="undefined"||e==="none";function F_(e,t){const r={..._h,...e},i={...wv,...t},s={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,i].forEach(E=>{const k=[],C=E.hFlip,R=E.vFlip;let N=E.rotate;C?R?N+=2:(k.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),k.push("scale(-1 1)"),s.top=s.left=0):R&&(k.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),k.push("scale(1 -1)"),s.top=s.left=0);let b;switch(N<0&&(N-=Math.floor(N/4)*4),N=N%4,N){case 1:b=s.height/2+s.top,k.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:k.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:b=s.width/2+s.left,k.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}N%2===1&&(s.left!==s.top&&(b=s.left,s.left=s.top,s.top=b),s.width!==s.height&&(b=s.width,s.width=s.height,s.height=b)),k.length&&(a=O_(a,'<g transform="'+k.join(" ")+'">',"</g>"))});const u=i.width,f=i.height,d=s.width,h=s.height;let g,m;u===null?(m=f===null?"1em":f==="auto"?h:f,g=u0(m,d/h)):(g=u==="auto"?d:u,m=f===null?u0(g,h/d):f==="auto"?h:f);const y={},v=(E,k)=>{z_(k)||(y[E]=k.toString())};v("width",g),v("height",m);const S=[s.left,s.top,d,h];return y.viewBox=S.join(" "),{attributes:y,viewBox:S,body:a}}const B_=/\sid="(\S+)"/g,H_="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let V_=0;function U_(e,t=H_){const r=[];let i;for(;i=B_.exec(e);)r.push(i[1]);if(!r.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(a=>{const u=typeof t=="function"?t(a):t+(V_++).toString(),f=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+f+')([")]|\\.[a-z])',"g"),"$1"+u+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const Bd=Object.create(null);function W_(e,t){Bd[e]=t}function Hd(e){return Bd[e]||Bd[""]}function Nh(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const bh=Object.create(null),ss=["https://api.simplesvg.com","https://api.unisvg.com"],Ka=[];for(;ss.length>0;)ss.length===1||Math.random()>.5?Ka.push(ss.shift()):Ka.push(ss.pop());bh[""]=Nh({resources:["https://api.iconify.design"].concat(Ka)});function q_(e,t){const r=Nh(t);return r===null?!1:(bh[e]=r,!0)}function Ph(e){return bh[e]}const Y_=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let c0=Y_();function X_(e,t){const r=Ph(e);if(!r)return 0;let i;if(!r.maxURL)i=0;else{let s=0;r.resources.forEach(u=>{s=Math.max(s,u.length)});const a=t+".json?icons=";i=r.maxURL-s-r.path.length-a.length}return i}function G_(e){return e===404}const K_=(e,t,r)=>{const i=[],s=X_(e,t),a="icons";let u={type:a,provider:e,prefix:t,icons:[]},f=0;return r.forEach((d,h)=>{f+=d.length+1,f>=s&&h>0&&(i.push(u),u={type:a,provider:e,prefix:t,icons:[]},f=d.length),u.icons.push(d)}),i.push(u),i};function Q_(e){if(typeof e=="string"){const t=Ph(e);if(t)return t.path}return"/"}const J_=(e,t,r)=>{if(!c0){r("abort",424);return}let i=Q_(t.provider);switch(t.type){case"icons":{const a=t.prefix,f=t.icons.join(","),d=new URLSearchParams({icons:f});i+=a+".json?"+d.toString();break}case"custom":{const a=t.uri;i+=a.slice(0,1)==="/"?a.slice(1):a;break}default:r("abort",400);return}let s=503;c0(e+i).then(a=>{const u=a.status;if(u!==200){setTimeout(()=>{r(G_(u)?"abort":"next",u)});return}return s=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?r("abort",a):r("next",s)});return}setTimeout(()=>{r("success",a)})}).catch(()=>{r("next",s)})},Z_={prepare:K_,send:J_};function eN(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((s,a)=>s.provider!==a.provider?s.provider.localeCompare(a.provider):s.prefix!==a.prefix?s.prefix.localeCompare(a.prefix):s.name.localeCompare(a.name));let i={provider:"",prefix:"",name:""};return e.forEach(s=>{if(i.name===s.name&&i.prefix===s.prefix&&i.provider===s.provider)return;i=s;const a=s.provider,u=s.prefix,f=s.name,d=r[a]||(r[a]=Object.create(null)),h=d[u]||(d[u]=ti(a,u));let g;f in h.icons?g=t.loaded:u===""||h.missing.has(f)?g=t.missing:g=t.pending;const m={provider:a,prefix:u,name:f};g.push(m)}),t}function Sv(e,t){e.forEach(r=>{const i=r.loaderCallbacks;i&&(r.loaderCallbacks=i.filter(s=>s.id!==t))})}function tN(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const i=e.provider,s=e.prefix;t.forEach(a=>{const u=a.icons,f=u.pending.length;u.pending=u.pending.filter(d=>{if(d.prefix!==s)return!0;const h=d.name;if(e.icons[h])u.loaded.push({provider:i,prefix:s,name:h});else if(e.missing.has(h))u.missing.push({provider:i,prefix:s,name:h});else return r=!0,!0;return!1}),u.pending.length!==f&&(r||Sv([e],a.id),a.callback(u.loaded.slice(0),u.missing.slice(0),u.pending.slice(0),a.abort))})}))}let nN=0;function rN(e,t,r){const i=nN++,s=Sv.bind(null,r,i);if(!t.pending.length)return s;const a={id:i,icons:t,callback:e,abort:s};return r.forEach(u=>{(u.loaderCallbacks||(u.loaderCallbacks=[])).push(a)}),s}function oN(e,t=!0,r=!1){const i=[];return e.forEach(s=>{const a=typeof s=="string"?Ou(s,t,r):s;a&&i.push(a)}),i}var iN={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sN(e,t,r,i){const s=e.resources.length,a=e.random?Math.floor(Math.random()*s):e.index;let u;if(e.random){let L=e.resources.slice(0);for(u=[];L.length>1;){const j=Math.floor(Math.random()*L.length);u.push(L[j]),L=L.slice(0,j).concat(L.slice(j+1))}u=u.concat(L)}else u=e.resources.slice(a).concat(e.resources.slice(0,a));const f=Date.now();let d="pending",h=0,g,m=null,y=[],v=[];typeof i=="function"&&v.push(i);function S(){m&&(clearTimeout(m),m=null)}function E(){d==="pending"&&(d="aborted"),S(),y.forEach(L=>{L.status==="pending"&&(L.status="aborted")}),y=[]}function k(L,j){j&&(v=[]),typeof L=="function"&&v.push(L)}function C(){return{startTime:f,payload:t,status:d,queriesSent:h,queriesPending:y.length,subscribe:k,abort:E}}function R(){d="failed",v.forEach(L=>{L(void 0,g)})}function N(){y.forEach(L=>{L.status==="pending"&&(L.status="aborted")}),y=[]}function b(L,j,G){const V=j!=="success";switch(y=y.filter(Y=>Y!==L),d){case"pending":break;case"failed":if(V||!e.dataAfterTimeout)return;break;default:return}if(j==="abort"){g=G,R();return}if(V){g=G,y.length||(u.length?M():R());return}if(S(),N(),!e.random){const Y=e.resources.indexOf(L.resource);Y!==-1&&Y!==e.index&&(e.index=Y)}d="completed",v.forEach(Y=>{Y(G)})}function M(){if(d!=="pending")return;S();const L=u.shift();if(L===void 0){if(y.length){m=setTimeout(()=>{S(),d==="pending"&&(N(),R())},e.timeout);return}R();return}const j={status:"pending",resource:L,callback:(G,V)=>{b(j,G,V)}};y.push(j),h++,m=setTimeout(M,e.rotate),r(L,t,j.callback)}return setTimeout(M),C}function Ev(e){const t={...iN,...e};let r=[];function i(){r=r.filter(f=>f().status==="pending")}function s(f,d,h){const g=sN(t,f,d,(m,y)=>{i(),h&&h(m,y)});return r.push(g),g}function a(f){return r.find(d=>f(d))||null}return{query:s,find:a,setIndex:f=>{t.index=f},getIndex:()=>t.index,cleanup:i}}function f0(){}const ld=Object.create(null);function lN(e){if(!ld[e]){const t=Ph(e);if(!t)return;const r=Ev(t),i={config:t,redundancy:r};ld[e]=i}return ld[e]}function aN(e,t,r){let i,s;if(typeof e=="string"){const a=Hd(e);if(!a)return r(void 0,424),f0;s=a.send;const u=lN(e);u&&(i=u.redundancy)}else{const a=Nh(e);if(a){i=Ev(a);const u=e.resources?e.resources[0]:"",f=Hd(u);f&&(s=f.send)}}return!i||!s?(r(void 0,424),f0):i.query(t,s,r)().abort}function d0(){}function uN(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,tN(e)}))}function cN(e){const t=[],r=[];return e.forEach(i=>{(i.match(mv)?t:r).push(i)}),{valid:t,invalid:r}}function ls(e,t,r){function i(){const s=e.pendingIcons;t.forEach(a=>{s&&s.delete(a),e.icons[a]||e.missing.add(a)})}if(r&&typeof r=="object")try{if(!yv(e,r).length){i();return}}catch(s){console.error(s)}i(),uN(e)}function h0(e,t){e instanceof Promise?e.then(r=>{t(r)}).catch(()=>{t(null)}):t(e)}function fN(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:i}=e,s=e.iconsToLoad;if(delete e.iconsToLoad,!s||!s.length)return;const a=e.loadIcon;if(e.loadIcons&&(s.length>1||!a)){h0(e.loadIcons(s,i,r),g=>{ls(e,s,g)});return}if(a){s.forEach(g=>{const m=a(g,i,r);h0(m,y=>{const v=y?{prefix:i,icons:{[g]:y}}:null;ls(e,[g],v)})});return}const{valid:u,invalid:f}=cN(s);if(f.length&&ls(e,f,null),!u.length)return;const d=i.match(mv)?Hd(r):null;if(!d){ls(e,u,null);return}d.prepare(r,i,u).forEach(g=>{aN(r,g,m=>{ls(e,g.icons,m)})})}))}const dN=(e,t)=>{const r=oN(e,!0,xv()),i=eN(r);if(!i.pending.length){let d=!0;return t&&setTimeout(()=>{d&&t(i.loaded,i.missing,i.pending,d0)}),()=>{d=!1}}const s=Object.create(null),a=[];let u,f;return i.pending.forEach(d=>{const{provider:h,prefix:g}=d;if(g===f&&h===u)return;u=h,f=g,a.push(ti(h,g));const m=s[h]||(s[h]=Object.create(null));m[g]||(m[g]=[])}),i.pending.forEach(d=>{const{provider:h,prefix:g,name:m}=d,y=ti(h,g),v=y.pendingIcons||(y.pendingIcons=new Set);v.has(m)||(v.add(m),s[h][g].push(m))}),a.forEach(d=>{const h=s[d.provider][d.prefix];h.length&&fN(d,h)}),t?rN(t,i,a):d0};function hN(e,t){const r={...e};for(const i in t){const s=t[i],a=typeof s;i in vv?(s===null||s&&(a==="string"||a==="number"))&&(r[i]=s):a===typeof r[i]&&(r[i]=i==="rotate"?s%4:s)}return r}const pN=/[\s,]+/;function gN(e,t){t.split(pN).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function mN(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function i(s){for(;s<0;)s+=4;return s%4}if(r===""){const s=parseInt(e);return isNaN(s)?0:i(s)}else if(r!==e){let s=0;switch(r){case"%":s=25;break;case"deg":s=90}if(s){let a=parseFloat(e.slice(0,e.length-r.length));return isNaN(a)?0:(a=a/s,a%1===0?i(a):0)}}return t}function yN(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)r+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function xN(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function vN(e){return"data:image/svg+xml,"+xN(e)}function wN(e){return'url("'+vN(e)+'")'}let gs;function SN(){try{gs=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{gs=null}}function EN(e){return gs===void 0&&SN(),gs?gs.createHTML(e):e}const kv={...wv,inline:!1},kN={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},CN={display:"inline-block"},Vd={backgroundColor:"currentColor"},Cv={backgroundColor:"transparent"},p0={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},g0={WebkitMask:Vd,mask:Vd,background:Cv};for(const e in g0){const t=g0[e];for(const r in p0)t[e+r]=p0[r]}const _N={...kv,inline:!0};function m0(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const NN=(e,t,r)=>{const i=t.inline?_N:kv,s=hN(i,t),a=t.mode||"svg",u={},f=t.style||{},d={...a==="svg"?kN:{}};if(r){const k=Ou(r,!1,!0);if(k){const C=["iconify"],R=["provider","prefix"];for(const N of R)k[N]&&C.push("iconify--"+k[N]);d.className=C.join(" ")}}for(let k in t){const C=t[k];if(C!==void 0)switch(k){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":break;case"_ref":d.ref=C;break;case"className":d[k]=(d[k]?d[k]+" ":"")+C;break;case"inline":case"hFlip":case"vFlip":s[k]=C===!0||C==="true"||C===1;break;case"flip":typeof C=="string"&&gN(s,C);break;case"color":u.color=C;break;case"rotate":typeof C=="string"?s[k]=mN(C):typeof C=="number"&&(s[k]=C);break;case"ariaHidden":case"aria-hidden":C!==!0&&C!=="true"&&delete d["aria-hidden"];break;default:i[k]===void 0&&(d[k]=C)}}const h=F_(e,s),g=h.attributes;if(s.inline&&(u.verticalAlign="-0.125em"),a==="svg"){d.style={...u,...f},Object.assign(d,g);let k=0,C=t.id;return typeof C=="string"&&(C=C.replace(/-/g,"_")),d.dangerouslySetInnerHTML={__html:EN(U_(h.body,C?()=>C+"ID"+k++:"iconifyReact"))},P.createElement("svg",d)}const{body:m,width:y,height:v}=e,S=a==="mask"||(a==="bg"?!1:m.indexOf("currentColor")!==-1),E=yN(m,{...g,width:y+"",height:v+""});return d.style={...u,"--svg":wN(E),width:m0(g.width),height:m0(g.height),...CN,...S?Vd:Cv,...f},P.createElement("span",d)};xv(!0);W_("",Z_);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!$_(i))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const i="IconifyProviders["+r+"] is invalid.";try{const s=t[r];if(typeof s!="object"||!s||s.resources===void 0)continue;q_(r,s)||console.error(i)}catch{console.error(i)}}}}function _v(e){const[t,r]=P.useState(!!e.ssr),[i,s]=P.useState({});function a(v){if(v){const S=e.icon;if(typeof S=="object")return{name:"",data:S};const E=a0(S);if(E)return{name:S,data:E}}return{name:""}}const[u,f]=P.useState(a(!!e.ssr));function d(){const v=i.callback;v&&(v(),s({}))}function h(v){if(JSON.stringify(u)!==JSON.stringify(v))return d(),f(v),!0}function g(){var v;const S=e.icon;if(typeof S=="object"){h({name:"",data:S});return}const E=a0(S);if(h({name:S,data:E}))if(E===void 0){const k=dN([S],g);s({callback:k})}else E&&((v=e.onLoad)===null||v===void 0||v.call(e,S))}P.useEffect(()=>(r(!0),d),[]),P.useEffect(()=>{t&&g()},[e.icon,t]);const{name:m,data:y}=u;return y?NN({..._h,...y},e,m):e.children?e.children:P.createElement("span",{})}const Rh=P.forwardRef((e,t)=>_v({...e,_ref:t}));P.forwardRef((e,t)=>_v({inline:!0,...e,_ref:t}));var da={},y0;function bN(){if(y0)return da;y0=1;const e={width:24,height:24,body:'<path fill="currentColor" d="M10.09 15.59L11.5 17l5-5l-5-5l-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5a2 2 0 0 0-2 2v4h2V5h14v14H5v-4H3v4a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/>'};return da.__esModule=!0,da.default=e,da}var PN=bN();const RN=rt(PN);var ha={},x0;function TN(){if(x0)return ha;x0=1;const e={width:24,height:24,body:'<path fill="currentColor" d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/>'};return ha.__esModule=!0,ha.default=e,ha}var IN=TN();const jN=rt(IN);var pa={},v0;function $N(){if(v0)return pa;v0=1;const e={width:24,height:24,body:'<path fill="currentColor" d="M19.14 12.94c.04-.3.06-.61.06-.94c0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6s3.6 1.62 3.6 3.6s-1.62 3.6-3.6 3.6z"/>'};return pa.__esModule=!0,pa.default=e,pa}var AN=$N();const MN=rt(AN);var ga={},w0;function LN(){if(w0)return ga;w0=1;const e={width:24,height:24,body:'<path fill="currentColor" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/>'};return ga.__esModule=!0,ga.default=e,ga}var DN=LN();const ON=rt(DN);var ma={},S0;function zN(){if(S0)return ma;S0=1;const e={width:24,height:24,body:'<path fill="currentColor" d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6l-6-6l1.41-1.41z"/>'};return ma.__esModule=!0,ma.default=e,ma}var FN=zN();const BN=rt(FN);var ya={},E0;function HN(){if(E0)return ya;E0=1;const e={width:24,height:24,body:'<path fill="currentColor" d="M8.59 16.59L13.17 12L8.59 7.41L10 6l6 6l-6 6l-1.41-1.41z"/>'};return ya.__esModule=!0,ya.default=e,ya}var VN=HN();const UN=rt(VN);var xa={},k0;function WN(){if(k0)return xa;k0=1;const e={width:24,height:24,body:'<path fill="currentColor" d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83l3.75 3.75l1.83-1.83z"/>'};return xa.__esModule=!0,xa.default=e,xa}var qN=WN();const YN=rt(qN);var va={},C0;function XN(){if(C0)return va;C0=1;const e={width:24,height:24,body:'<path fill="currentColor" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zM9.29 16.29L5.7 12.7a.996.996 0 1 1 1.41-1.41L10 14.17l6.88-6.88a.996.996 0 1 1 1.41 1.41l-7.59 7.59a.996.996 0 0 1-1.41 0z"/>'};return va.__esModule=!0,va.default=e,va}var GN=XN();const KN=rt(GN);var wa={},_0;function QN(){if(_0)return wa;_0=1;const e={width:24,height:24,body:'<path fill="currentColor" d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10s10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17L12 13.41L8.41 17L7 15.59L10.59 12L7 8.41L8.41 7L12 10.59L15.59 7L17 8.41L13.41 12L17 15.59z"/>'};return wa.__esModule=!0,wa.default=e,wa}var JN=QN();const ZN=rt(JN);var Sa={},N0;function e4(){if(N0)return Sa;N0=1;const e={width:24,height:24,body:'<path fill="currentColor" d="M17 11c.34 0 .67.04 1 .09V6.27L10.5 3L3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82c.55-.13 1.08-.32 1.6-.55c-.69-.98-1.1-2.17-1.1-3.45c0-3.31 2.69-6 6-6z"/><path fill="currentColor" d="M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4s4-1.79 4-4s-1.79-4-4-4zm0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12s-1.12-.51-1.12-1.12s.5-1.12 1.12-1.12zm0 5.37c-.93 0-1.74-.46-2.24-1.17c.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17z"/>'};return Sa.__esModule=!0,Sa.default=e,Sa}var t4=e4();const n4=rt(t4);var Ea={},b0;function r4(){if(b0)return Ea;b0=1;const e={width:24,height:24,body:'<path fill="currentColor" d="m22.27 21.73l-3.54-3.55L5.78 5.23L2.27 1.72L1 2.99L3.01 5H3v6c0 5.55 3.84 10.74 9 12c2.16-.53 4.08-1.76 5.6-3.41L21 23l1.27-1.27zM13 9.92l6.67 6.67C20.51 14.87 21 12.96 21 11V5l-9-4l-5.48 2.44L11 7.92l2 2z"/>'};return Ea.__esModule=!0,Ea.default=e,Ea}var o4=r4();const i4=rt(o4);var ka={},P0;function s4(){if(P0)return ka;P0=1;const e={width:24,height:24,body:'<path fill="currentColor" d="M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"/>'};return ka.__esModule=!0,ka.default=e,ka}var l4=s4();const a4=rt(l4);var Ca={},R0;function u4(){if(R0)return Ca;R0=1;const e={width:24,height:24,body:'<path fill="currentColor" d="M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59L7.11 5.7A.996.996 0 1 0 5.7 7.11L10.59 12L5.7 16.89a.996.996 0 1 0 1.41 1.41L12 13.41l4.89 4.89a.996.996 0 1 0 1.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"/>'};return Ca.__esModule=!0,Ca.default=e,Ca}var c4=u4();const f4=rt(c4),d4={[Le[1]]:RN,[Le[2]]:jN,[Le[3]]:MN,[Le[4]]:ON,[Le[5]]:BN,[Le[6]]:UN,[Le[7]]:YN,[Le[8]]:KN,[Le[9]]:ZN,[Le[10]]:n4,[Le[11]]:a4,[Le[12]]:f4,[Le[13]]:i4},Ot=({name:e,width:t="24",height:r="24",setColor:i,onClick:s})=>{const a=so();return w.jsx(Rh,{icon:d4[e],width:t,height:r,color:i||a.textColor,onClick:s})},h4=oe.button.withConfig({shouldForwardProp:e=>!["color","$hoverсolor","size","$iconpos"].includes(e)})`
|
||
background-color: ${e=>e.color};
|
||
border: none;
|
||
padding: ${e=>e.size==="small"?"4px 8px":e.size==="big"?"10px 20px":"6px 10px"}; // По умолчанию
|
||
border-radius: 8px;
|
||
color: white;
|
||
font-size: ${e=>e.size==="small"?"12px":e.size==="big"?"16px":"14px"}; // По умолчанию
|
||
cursor: pointer;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
flex-direction: ${e=>e.$iconpos==="right"?"row-reverse":"row"};
|
||
gap: 10px;
|
||
|
||
&:hover{
|
||
background-color: ${e=>e.$hoverсolor};
|
||
}
|
||
`,at=({color:e,size:t,title:r,hoverColor:i,type:s,icon:a,iconPosition:u,iconSize:f,onClick:d,style:h})=>{const g=so(),m=g.accent,y=g.accentHover;return w.jsxs(h4,{className:"unselectable",color:e||m,size:t,$hoverсolor:i||y,onClick:d,type:s,$iconpos:u||"left",style:h,children:[a&&w.jsx(Ot,{name:a,width:f==null?void 0:f.width,height:f==null?void 0:f.height,setColor:"white"}),r]})},p4=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 15px;
|
||
`,g4=oe.div`
|
||
display: flex;
|
||
gap: 10px;
|
||
`,m4=oe.div`
|
||
display: flex;
|
||
gap: 35px;
|
||
`,y4=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
`,x4=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
`,v4=({ipData:e,onClose:t,smoothClose:r})=>{const[i,s]=P.useState(!0),[a,u]=P.useState(null),[f,d]=P.useState({}),[h,g]=P.useState(!1),[m,y]=P.useState(""),{ipAddress:v,setIpAddress:S}=Hn(),{isAdmin:E}=Iu(),{devices:k,addDevice:C,deleteDevice:R}=$d();P.useEffect(()=>{if(e&&E){const L={connection_id:e.connection,ipv4_updates:{"ipv4.method":"manual","ipv4.address-data":[{address:e.newIp,prefix:e.prefix}],"ipv4.gateway":e.newGate,"ipv4.dns-data":e.newDns}},j={connection_id:e.connection,ipv4_updates:{"ipv4.method":"manual","ipv4.address-data":[{address:e.currentIp,prefix:e.prefix}],"ipv4.gateway":e.currentGate,"ipv4.dns-data":e.currentDns}};d(j),N(L)}},[e,E]);const N=async L=>{try{const j=await Ln.checkIp(v,L);g(j.data.available),y(j.data.message),j.data.available&&u(L)}catch(j){console.error("Error:",j)}finally{s(!1)}},b=async L=>{try{if((await Ln.saveIp(v,L)).status===200){if(v!=="localhost"){S(e.newIp);const G=k.map(V=>V.address===e.currentIp?{...V,address:e.newIp}:V);$d.setState({devices:G})}t()}}catch(j){console.error("Error:",j)}finally{s(!1)}},M=async L=>{try{(await Ln.saveIp(v,L)).status===200&&t()}catch(j){console.error("Error:",j)}finally{s(!1)}};return w.jsx(w.Fragment,{children:i&&E?w.jsx(cv,{loaderText:"Идет проверка корректности IP адреса"}):w.jsxs(Ss,{...h?{height:"unset"}:{},children:[w.jsx(Es,{children:w.jsx("h3",{children:"Изменение IP-Адреса"})}),h?w.jsxs(Zo,{children:[w.jsxs(p4,{children:[w.jsx("h3",{children:"Общие сведения"}),w.jsxs(g4,{children:[w.jsxs("p",{children:["Интерфейс: ",e.device]}),w.jsxs("p",{children:["--",">"]}),w.jsx("p",{children:e.connection})]}),w.jsx("h3",{children:"Сведения об IP"}),w.jsxs(m4,{children:[w.jsxs(y4,{children:[w.jsxs("p",{children:["Текущий ip: ",e.currentIp]}),w.jsxs("p",{children:["Текущий шлюз: ",e.currentGate]}),w.jsxs("p",{children:["Текущий DNS: ",e.currentDns]})]}),w.jsxs(x4,{children:[w.jsxs("p",{children:["Новый ip: ",e.newIp]}),w.jsxs("p",{children:["Новый шлюз: ",e.newGate]}),w.jsxs("p",{children:["Новый DNS: ",e.newDns]})]})]})]}),w.jsxs(ei,{children:[w.jsx(at,{title:"Отмена",size:"small",onClick:()=>M(f)}),w.jsx(at,{title:"Сохранить",size:"small",onClick:()=>b(a)})]})]}):w.jsxs(w.Fragment,{children:[w.jsx(Zo,{children:w.jsx(dv,{children:E?w.jsxs(w.Fragment,{children:[w.jsx("h3",{children:"Произошла ошибка проверки корректности"}),w.jsx(__,{children:m})]}):w.jsx("h3",{children:"Для изменения сетевых настроек необходимо авторизироваться под администратором"})})}),w.jsx(ei,{children:w.jsx(at,{title:"Закрыть",size:"small",onClick:r})})]})]})})},w4=({message:e})=>{const{closeModal:t}=io(),{setIpAddress:r}=Hn(),i=()=>{r("localhost"),t()};return w.jsxs(Ss,{children:[w.jsx(Es,{children:w.jsx("h3",{children:"Соединение прервано"})}),w.jsx(Zo,{children:w.jsxs(dv,{children:[w.jsx("h3",{children:"Произошёл разрыв с сервером"}),w.jsx("p",{children:"Пожалуйста, проверьте доступ к адресу и попробуйте снова."})]})}),w.jsxs(ei,{children:[w.jsx(at,{title:"Закрыть",onClick:i,size:"small"}),w.jsx(at,{title:"Повторить",onClick:t,size:"small"})]})]})},S4=oe.div`
|
||
width: 100%;
|
||
display: flex;
|
||
flex: 3;
|
||
|
||
`,E4=oe.input`
|
||
padding: 8px 10px;
|
||
color: black;
|
||
border-radius: 8px;
|
||
border: 1px solid #A1A1A1;
|
||
background-color: transparent;
|
||
&:focus{
|
||
border: 1px solid #adadad;
|
||
}
|
||
width: 100%;
|
||
font-size: 14px;
|
||
color: ${e=>e.theme.textColor}
|
||
`,Gr=yt.forwardRef(({placeholderText:e,id:t,value:r,onChange:i,onFileChange:s,type:a="text",multiple:u,style:f,onFocus:d,onBlur:h},g)=>{const m=y=>{const{value:v}=y.target;i&&i(t,v)};return w.jsx(S4,{children:w.jsx(E4,{type:a,placeholder:e,value:r,multiple:u,onChange:a==="file"&&s?s:m,ref:g,style:f,onFocus:d,onBlur:h})})}),Qa=e=>{const t=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,r=/^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$/;return t.test(e)||r.test(e)},k4=(e,t,r)=>{const i=a=>{if(typeof a!="string")throw new TypeError(`Некорректный формат IP-адреса: ${a}`);return a.split(".").slice(0,3).join(".")},s=(a,u)=>i(a)===u;try{const a=i(e),u=i(t);return a!==u?!1:(Array.isArray(r)?r:[r]).some(d=>s(d,a))}catch(a){return console.error(a),!1}},C4=({onSave:e,onClose:t})=>{const[r,i]=P.useState(""),[s,a]=P.useState(!1),u=()=>{if(!Qa(r)){a(!0);return}e&&r&&(a(!1),e(r),t())};return w.jsxs(Ss,{style:{height:"230px"},children:[w.jsx(Es,{children:w.jsx("h3",{children:"Добавление узла"})}),w.jsxs(Zo,{style:{display:"flex",flexDirection:"column",gap:"5px"},children:[w.jsx(Gr,{type:"text",placeholderText:"Введите адрес узла...",id:"newIp",value:r,onChange:(f,d)=>i(d)}),s&&w.jsx("p",{style:{color:"red",marginTop:"5px"},children:"Некорректный адрес узла"})]}),w.jsxs(ei,{children:[w.jsx(at,{type:"button",size:"small",title:"Отмена",onClick:t}),w.jsx(at,{type:"submit",size:"small",title:"Сохранить",onClick:u})]})]})},_4=({onClose:e})=>{const{ipAddress:t}=Hn(),{isAdmin:r,setAdmin:i}=Iu(),s=uv(),[a,u]=P.useState(!1),[f,d]=P.useState({message:"",status:!1}),[h,g]=P.useState({username:"operator",password:""}),m=(S,E)=>{g(k=>({...k,[S]:E}))},y=async S=>{try{(await Ln.login(t,S)).status===200?(await s(),u(!1),d(k=>({...k,message:"Успешный вход",status:!0})),await new Promise(k=>setTimeout(k,3e3)),e()):u(!0)}catch(E){console.error("Error:",E)}},v=async()=>{await Ln.logout(t),await s(),d(S=>({...S,message:"Успешный выход",status:!0})),await new Promise(S=>setTimeout(S,3e3)),e()};return w.jsx(Ss,{style:r?{height:"unset"}:{height:"250px"},children:f.status?w.jsxs(Ss,{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",marginTop:"15px"},children:[w.jsx(Ot,{name:Le[8],width:"50",height:"50"}),w.jsx("h3",{children:f.message}),w.jsx("p",{style:{fontSize:"12px"},children:"Это окно можно закрыть, либо оно пропадёт само"}),w.jsx(at,{size:"small",title:"Закрыть",onClick:e,style:{width:"30%"}})]}):r?w.jsxs(w.Fragment,{children:[w.jsx(Es,{children:w.jsx("h3",{children:"Переключиться на ограниченный доступ"})}),w.jsx(Zo,{children:w.jsx("p",{children:"В данном режиме доступа ограничиваются полномочия администратора."})}),w.jsxs(ei,{children:[w.jsx(at,{size:"small",title:"Отмена",onClick:e}),w.jsx(at,{size:"small",title:"Ограничить доступ",onClick:v})]})]}):w.jsxs(w.Fragment,{children:[w.jsx(Es,{children:w.jsx("h3",{children:"Получение прав доступа"})}),w.jsxs(Zo,{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[w.jsx("h3",{style:{marginLeft:"5px",fontSize:"14px"},children:"Включить административный доступ"}),w.jsx(Gr,{type:"password",placeholderText:"Введите пароль администратора...",id:"password",value:h.password,onChange:(S,E)=>m(S,E)}),a&&w.jsx("p",{style:{color:"red",marginLeft:"10px",fontSize:"14px",textAlign:"right"},children:"Неверный пароль оператора"})]}),w.jsxs(ei,{children:[w.jsx(at,{size:"small",title:"Отмена",onClick:e}),w.jsx(at,{size:"small",title:"Отправить",onClick:()=>y(h)})]})]})})},rn={1:"ipConfirm",2:"loader",3:"connectionError",4:"addDevice",5:"sudo"};function N4({isOpen:e,type:t,data:r}){const{closeModal:i,closeLoader:s}=io();return w.jsx(w.Fragment,{children:e&&w.jsxs(fv,{children:[t==rn[1]&&r&&w.jsx(v4,{ipData:r,onClose:i,smoothClose:s}),t==rn[2]&&w.jsx(cv,{loaderText:r}),t===rn[3]&&w.jsx(w4,{message:r.message}),t===rn[4]&&w.jsx(C4,{onSave:r==null?void 0:r.onSave,onClose:s}),t===rn[5]&&w.jsx(_4,{onClose:s})]})})}const b4=oe.div`
|
||
width: 100%;
|
||
height: 100%;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
background-color: ${e=>e.theme.background};
|
||
background-image: url('./assets/images/back1.svg');
|
||
background-size: 100%;
|
||
background-repeat: no-repeat;
|
||
background-position: bottom;
|
||
`,P4=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: center;
|
||
align-items: center;
|
||
gap: 52px;
|
||
margin-bottom: 100px;
|
||
`,R4=oe.div`
|
||
display: flex;
|
||
gap: 75px;
|
||
flex-direction: column;
|
||
`,T4=oe.div`
|
||
display: flex;
|
||
gap: 15px;
|
||
flex-direction: column;
|
||
`,I4=oe.div`
|
||
display: flex;
|
||
align-items: flex-end;
|
||
gap: 10px;
|
||
|
||
h1{
|
||
font-size: 52px;
|
||
}
|
||
`,j4=()=>{const{setWorkModule:e}=Zr();return w.jsx(b4,{children:w.jsxs(P4,{className:"unselectable",children:[w.jsx(I4,{children:w.jsx("img",{src:"./assets/images/logo.svg",alt:"",style:{width:"152px"}})}),w.jsx(R4,{children:w.jsxs(T4,{children:[w.jsx(at,{title:"Настройки сети",icon:Le[3],iconSize:{width:"32",height:"32"},onClick:()=>e(bt[3])}),w.jsx(at,{title:"О программе",icon:Le[4],iconSize:{width:"32",height:"32"},onClick:()=>e(bt[4])})]})})]})})},Nv=Bn()(e=>({isNullPos:!1,setNullPos:t=>e({isNullPos:t})}));function et(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let r=0,i;r<e.length;r++)(i=et(e[r]))!==""&&(t+=(t&&" ")+i);else for(let r in e)e[r]&&(t+=(t&&" ")+r);return t}var $4={value:()=>{}};function zu(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new Ja(r)}function Ja(e){this._=e}function A4(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",s=r.indexOf(".");if(s>=0&&(i=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}Ja.prototype=zu.prototype={constructor:Ja,on:function(e,t){var r=this._,i=A4(e+"",r),s,a=-1,u=i.length;if(arguments.length<2){for(;++a<u;)if((s=(e=i[a]).type)&&(s=M4(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<u;)if(s=(e=i[a]).type)r[s]=T0(r[s],e.name,t);else if(t==null)for(s in r)r[s]=T0(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Ja(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),i=0,s,a;i<s;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,s=a.length;i<s;++i)a[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],s=0,a=i.length;s<a;++s)i[s].value.apply(t,r)}};function M4(e,t){for(var r=0,i=e.length,s;r<i;++r)if((s=e[r]).name===t)return s.value}function T0(e,t,r){for(var i=0,s=e.length;i<s;++i)if(e[i].name===t){e[i]=$4,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var Ud="http://www.w3.org/1999/xhtml";const I0={svg:"http://www.w3.org/2000/svg",xhtml:Ud,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Fu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),I0.hasOwnProperty(t)?{space:I0[t],local:e}:e}function L4(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Ud&&t.documentElement.namespaceURI===Ud?t.createElement(e):t.createElementNS(r,e)}}function D4(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function bv(e){var t=Fu(e);return(t.local?D4:L4)(t)}function O4(){}function Th(e){return e==null?O4:function(){return this.querySelector(e)}}function z4(e){typeof e!="function"&&(e=Th(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var a=t[s],u=a.length,f=i[s]=new Array(u),d,h,g=0;g<u;++g)(d=a[g])&&(h=e.call(d,d.__data__,g,a))&&("__data__"in d&&(h.__data__=d.__data__),f[g]=h);return new zt(i,this._parents)}function F4(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function B4(){return[]}function Pv(e){return e==null?B4:function(){return this.querySelectorAll(e)}}function H4(e){return function(){return F4(e.apply(this,arguments))}}function V4(e){typeof e=="function"?e=H4(e):e=Pv(e);for(var t=this._groups,r=t.length,i=[],s=[],a=0;a<r;++a)for(var u=t[a],f=u.length,d,h=0;h<f;++h)(d=u[h])&&(i.push(e.call(d,d.__data__,h,u)),s.push(d));return new zt(i,s)}function Rv(e){return function(){return this.matches(e)}}function Tv(e){return function(t){return t.matches(e)}}var U4=Array.prototype.find;function W4(e){return function(){return U4.call(this.children,e)}}function q4(){return this.firstElementChild}function Y4(e){return this.select(e==null?q4:W4(typeof e=="function"?e:Tv(e)))}var X4=Array.prototype.filter;function G4(){return Array.from(this.children)}function K4(e){return function(){return X4.call(this.children,e)}}function Q4(e){return this.selectAll(e==null?G4:K4(typeof e=="function"?e:Tv(e)))}function J4(e){typeof e!="function"&&(e=Rv(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var a=t[s],u=a.length,f=i[s]=[],d,h=0;h<u;++h)(d=a[h])&&e.call(d,d.__data__,h,a)&&f.push(d);return new zt(i,this._parents)}function Iv(e){return new Array(e.length)}function Z4(){return new zt(this._enter||this._groups.map(Iv),this._parents)}function du(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}du.prototype={constructor:du,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function eb(e){return function(){return e}}function tb(e,t,r,i,s,a){for(var u=0,f,d=t.length,h=a.length;u<h;++u)(f=t[u])?(f.__data__=a[u],i[u]=f):r[u]=new du(e,a[u]);for(;u<d;++u)(f=t[u])&&(s[u]=f)}function nb(e,t,r,i,s,a,u){var f,d,h=new Map,g=t.length,m=a.length,y=new Array(g),v;for(f=0;f<g;++f)(d=t[f])&&(y[f]=v=u.call(d,d.__data__,f,t)+"",h.has(v)?s[f]=d:h.set(v,d));for(f=0;f<m;++f)v=u.call(e,a[f],f,a)+"",(d=h.get(v))?(i[f]=d,d.__data__=a[f],h.delete(v)):r[f]=new du(e,a[f]);for(f=0;f<g;++f)(d=t[f])&&h.get(y[f])===d&&(s[f]=d)}function rb(e){return e.__data__}function ob(e,t){if(!arguments.length)return Array.from(this,rb);var r=t?nb:tb,i=this._parents,s=this._groups;typeof e!="function"&&(e=eb(e));for(var a=s.length,u=new Array(a),f=new Array(a),d=new Array(a),h=0;h<a;++h){var g=i[h],m=s[h],y=m.length,v=ib(e.call(g,g&&g.__data__,h,i)),S=v.length,E=f[h]=new Array(S),k=u[h]=new Array(S),C=d[h]=new Array(y);r(g,m,E,k,C,v,t);for(var R=0,N=0,b,M;R<S;++R)if(b=E[R]){for(R>=N&&(N=R+1);!(M=k[N])&&++N<S;);b._next=M||null}}return u=new zt(u,i),u._enter=f,u._exit=d,u}function ib(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function sb(){return new zt(this._exit||this._groups.map(Iv),this._parents)}function lb(e,t,r){var i=this.enter(),s=this,a=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?a.remove():r(a),i&&s?i.merge(s).order():s}function ab(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,s=r.length,a=i.length,u=Math.min(s,a),f=new Array(s),d=0;d<u;++d)for(var h=r[d],g=i[d],m=h.length,y=f[d]=new Array(m),v,S=0;S<m;++S)(v=h[S]||g[S])&&(y[S]=v);for(;d<s;++d)f[d]=r[d];return new zt(f,this._parents)}function ub(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],s=i.length-1,a=i[s],u;--s>=0;)(u=i[s])&&(a&&u.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(u,a),a=u);return this}function cb(e){e||(e=fb);function t(m,y){return m&&y?e(m.__data__,y.__data__):!m-!y}for(var r=this._groups,i=r.length,s=new Array(i),a=0;a<i;++a){for(var u=r[a],f=u.length,d=s[a]=new Array(f),h,g=0;g<f;++g)(h=u[g])&&(d[g]=h);d.sort(t)}return new zt(s,this._parents).order()}function fb(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function db(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function hb(){return Array.from(this)}function pb(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],s=0,a=i.length;s<a;++s){var u=i[s];if(u)return u}return null}function gb(){let e=0;for(const t of this)++e;return e}function mb(){return!this.node()}function yb(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var s=t[r],a=0,u=s.length,f;a<u;++a)(f=s[a])&&e.call(f,f.__data__,a,s);return this}function xb(e){return function(){this.removeAttribute(e)}}function vb(e){return function(){this.removeAttributeNS(e.space,e.local)}}function wb(e,t){return function(){this.setAttribute(e,t)}}function Sb(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Eb(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function kb(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Cb(e,t){var r=Fu(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((t==null?r.local?vb:xb:typeof t=="function"?r.local?kb:Eb:r.local?Sb:wb)(r,t))}function jv(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function _b(e){return function(){this.style.removeProperty(e)}}function Nb(e,t,r){return function(){this.style.setProperty(e,t,r)}}function bb(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function Pb(e,t,r){return arguments.length>1?this.each((t==null?_b:typeof t=="function"?bb:Nb)(e,t,r??"")):ni(this.node(),e)}function ni(e,t){return e.style.getPropertyValue(t)||jv(e).getComputedStyle(e,null).getPropertyValue(t)}function Rb(e){return function(){delete this[e]}}function Tb(e,t){return function(){this[e]=t}}function Ib(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function jb(e,t){return arguments.length>1?this.each((t==null?Rb:typeof t=="function"?Ib:Tb)(e,t)):this.node()[e]}function $v(e){return e.trim().split(/^|\s+/)}function Ih(e){return e.classList||new Av(e)}function Av(e){this._node=e,this._names=$v(e.getAttribute("class")||"")}Av.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Mv(e,t){for(var r=Ih(e),i=-1,s=t.length;++i<s;)r.add(t[i])}function Lv(e,t){for(var r=Ih(e),i=-1,s=t.length;++i<s;)r.remove(t[i])}function $b(e){return function(){Mv(this,e)}}function Ab(e){return function(){Lv(this,e)}}function Mb(e,t){return function(){(t.apply(this,arguments)?Mv:Lv)(this,e)}}function Lb(e,t){var r=$v(e+"");if(arguments.length<2){for(var i=Ih(this.node()),s=-1,a=r.length;++s<a;)if(!i.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?Mb:t?$b:Ab)(r,t))}function Db(){this.textContent=""}function Ob(e){return function(){this.textContent=e}}function zb(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Fb(e){return arguments.length?this.each(e==null?Db:(typeof e=="function"?zb:Ob)(e)):this.node().textContent}function Bb(){this.innerHTML=""}function Hb(e){return function(){this.innerHTML=e}}function Vb(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Ub(e){return arguments.length?this.each(e==null?Bb:(typeof e=="function"?Vb:Hb)(e)):this.node().innerHTML}function Wb(){this.nextSibling&&this.parentNode.appendChild(this)}function qb(){return this.each(Wb)}function Yb(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Xb(){return this.each(Yb)}function Gb(e){var t=typeof e=="function"?e:bv(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Kb(){return null}function Qb(e,t){var r=typeof e=="function"?e:bv(e),i=t==null?Kb:typeof t=="function"?t:Th(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function Jb(){var e=this.parentNode;e&&e.removeChild(this)}function Zb(){return this.each(Jb)}function e3(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function t3(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function n3(e){return this.select(e?t3:e3)}function r3(e){return arguments.length?this.property("__data__",e):this.node().__data__}function o3(e){return function(t){e.call(this,t,this.__data__)}}function i3(e){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}function s3(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,s=t.length,a;r<s;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++i]=a;++i?t.length=i:delete this.__on}}}function l3(e,t,r){return function(){var i=this.__on,s,a=o3(t);if(i){for(var u=0,f=i.length;u<f;++u)if((s=i[u]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=a,s.options=r),s.value=t;return}}this.addEventListener(e.type,a,r),s={type:e.type,name:e.name,value:t,listener:a,options:r},i?i.push(s):this.__on=[s]}}function a3(e,t,r){var i=i3(e+""),s,a=i.length,u;if(arguments.length<2){var f=this.node().__on;if(f){for(var d=0,h=f.length,g;d<h;++d)for(s=0,g=f[d];s<a;++s)if((u=i[s]).type===g.type&&u.name===g.name)return g.value}return}for(f=t?l3:s3,s=0;s<a;++s)this.each(f(i[s],t,r));return this}function Dv(e,t,r){var i=jv(e),s=i.CustomEvent;typeof s=="function"?s=new s(t,r):(s=i.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function u3(e,t){return function(){return Dv(this,e,t)}}function c3(e,t){return function(){return Dv(this,e,t.apply(this,arguments))}}function f3(e,t){return this.each((typeof t=="function"?c3:u3)(e,t))}function*d3(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],s=0,a=i.length,u;s<a;++s)(u=i[s])&&(yield u)}var Ov=[null];function zt(e,t){this._groups=e,this._parents=t}function Bs(){return new zt([[document.documentElement]],Ov)}function h3(){return this}zt.prototype=Bs.prototype={constructor:zt,select:z4,selectAll:V4,selectChild:Y4,selectChildren:Q4,filter:J4,data:ob,enter:Z4,exit:sb,join:lb,merge:ab,selection:h3,order:ub,sort:cb,call:db,nodes:hb,node:pb,size:gb,empty:mb,each:yb,attr:Cb,style:Pb,property:jb,classed:Lb,text:Fb,html:Ub,raise:qb,lower:Xb,append:Gb,insert:Qb,remove:Zb,clone:n3,datum:r3,on:a3,dispatch:f3,[Symbol.iterator]:d3};function Lt(e){return typeof e=="string"?new zt([[document.querySelector(e)]],[document.documentElement]):new zt([[e]],Ov)}function p3(e){let t;for(;t=e.sourceEvent;)e=t;return e}function nn(e,t){if(e=p3(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var i=r.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}const g3={passive:!1},Cs={capture:!0,passive:!1};function ad(e){e.stopImmediatePropagation()}function Wo(e){e.preventDefault(),e.stopImmediatePropagation()}function zv(e){var t=e.document.documentElement,r=Lt(e).on("dragstart.drag",Wo,Cs);"onselectstart"in t?r.on("selectstart.drag",Wo,Cs):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Fv(e,t){var r=e.document.documentElement,i=Lt(e).on("dragstart.drag",null);t&&(i.on("click.drag",Wo,Cs),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in r?i.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const _a=e=>()=>e;function Wd(e,{sourceEvent:t,subject:r,target:i,identifier:s,active:a,x:u,y:f,dx:d,dy:h,dispatch:g}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:f,enumerable:!0,configurable:!0},dx:{value:d,enumerable:!0,configurable:!0},dy:{value:h,enumerable:!0,configurable:!0},_:{value:g}})}Wd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function m3(e){return!e.ctrlKey&&!e.button}function y3(){return this.parentNode}function x3(e,t){return t??{x:e.x,y:e.y}}function v3(){return navigator.maxTouchPoints||"ontouchstart"in this}function Bv(){var e=m3,t=y3,r=x3,i=v3,s={},a=zu("start","drag","end"),u=0,f,d,h,g,m=0;function y(b){b.on("mousedown.drag",v).filter(i).on("touchstart.drag",k).on("touchmove.drag",C,g3).on("touchend.drag touchcancel.drag",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(b,M){if(!(g||!e.call(this,b,M))){var L=N(this,t.call(this,b,M),b,M,"mouse");L&&(Lt(b.view).on("mousemove.drag",S,Cs).on("mouseup.drag",E,Cs),zv(b.view),ad(b),h=!1,f=b.clientX,d=b.clientY,L("start",b))}}function S(b){if(Wo(b),!h){var M=b.clientX-f,L=b.clientY-d;h=M*M+L*L>m}s.mouse("drag",b)}function E(b){Lt(b.view).on("mousemove.drag mouseup.drag",null),Fv(b.view,h),Wo(b),s.mouse("end",b)}function k(b,M){if(e.call(this,b,M)){var L=b.changedTouches,j=t.call(this,b,M),G=L.length,V,Y;for(V=0;V<G;++V)(Y=N(this,j,b,M,L[V].identifier,L[V]))&&(ad(b),Y("start",b,L[V]))}}function C(b){var M=b.changedTouches,L=M.length,j,G;for(j=0;j<L;++j)(G=s[M[j].identifier])&&(Wo(b),G("drag",b,M[j]))}function R(b){var M=b.changedTouches,L=M.length,j,G;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),j=0;j<L;++j)(G=s[M[j].identifier])&&(ad(b),G("end",b,M[j]))}function N(b,M,L,j,G,V){var Y=a.copy(),ee=nn(V||L,M),ne,J,I;if((I=r.call(b,new Wd("beforestart",{sourceEvent:L,target:y,identifier:G,active:u,x:ee[0],y:ee[1],dx:0,dy:0,dispatch:Y}),j))!=null)return ne=I.x-ee[0]||0,J=I.y-ee[1]||0,function U(F,q,A){var O=ee,z;switch(F){case"start":s[G]=U,z=u++;break;case"end":delete s[G],--u;case"drag":ee=nn(A||q,M),z=u;break}Y.call(F,b,new Wd(F,{sourceEvent:q,subject:I,target:y,identifier:G,active:z,x:ee[0]+ne,y:ee[1]+J,dx:ee[0]-O[0],dy:ee[1]-O[1],dispatch:Y}),j)}}return y.filter=function(b){return arguments.length?(e=typeof b=="function"?b:_a(!!b),y):e},y.container=function(b){return arguments.length?(t=typeof b=="function"?b:_a(b),y):t},y.subject=function(b){return arguments.length?(r=typeof b=="function"?b:_a(b),y):r},y.touchable=function(b){return arguments.length?(i=typeof b=="function"?b:_a(!!b),y):i},y.on=function(){var b=a.on.apply(a,arguments);return b===a?y:b},y.clickDistance=function(b){return arguments.length?(m=(b=+b)*b,y):Math.sqrt(m)},y}function jh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Hv(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function Hs(){}var _s=.7,hu=1/_s,qo="\\s*([+-]?\\d+)\\s*",Ns="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",w3=/^#([0-9a-f]{3,8})$/,S3=new RegExp(`^rgb\\(${qo},${qo},${qo}\\)$`),E3=new RegExp(`^rgb\\(${vn},${vn},${vn}\\)$`),k3=new RegExp(`^rgba\\(${qo},${qo},${qo},${Ns}\\)$`),C3=new RegExp(`^rgba\\(${vn},${vn},${vn},${Ns}\\)$`),_3=new RegExp(`^hsl\\(${Ns},${vn},${vn}\\)$`),N3=new RegExp(`^hsla\\(${Ns},${vn},${vn},${Ns}\\)$`),j0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};jh(Hs,bs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:$0,formatHex:$0,formatHex8:b3,formatHsl:P3,formatRgb:A0,toString:A0});function $0(){return this.rgb().formatHex()}function b3(){return this.rgb().formatHex8()}function P3(){return Vv(this).formatHsl()}function A0(){return this.rgb().formatRgb()}function bs(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=w3.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?M0(t):r===3?new Pt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Na(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Na(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=S3.exec(e))?new Pt(t[1],t[2],t[3],1):(t=E3.exec(e))?new Pt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=k3.exec(e))?Na(t[1],t[2],t[3],t[4]):(t=C3.exec(e))?Na(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=_3.exec(e))?O0(t[1],t[2]/100,t[3]/100,1):(t=N3.exec(e))?O0(t[1],t[2]/100,t[3]/100,t[4]):j0.hasOwnProperty(e)?M0(j0[e]):e==="transparent"?new Pt(NaN,NaN,NaN,0):null}function M0(e){return new Pt(e>>16&255,e>>8&255,e&255,1)}function Na(e,t,r,i){return i<=0&&(e=t=r=NaN),new Pt(e,t,r,i)}function R3(e){return e instanceof Hs||(e=bs(e)),e?(e=e.rgb(),new Pt(e.r,e.g,e.b,e.opacity)):new Pt}function qd(e,t,r,i){return arguments.length===1?R3(e):new Pt(e,t,r,i??1)}function Pt(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}jh(Pt,qd,Hv(Hs,{brighter(e){return e=e==null?hu:Math.pow(hu,e),new Pt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_s:Math.pow(_s,e),new Pt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pt(Kr(this.r),Kr(this.g),Kr(this.b),pu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:L0,formatHex:L0,formatHex8:T3,formatRgb:D0,toString:D0}));function L0(){return`#${qr(this.r)}${qr(this.g)}${qr(this.b)}`}function T3(){return`#${qr(this.r)}${qr(this.g)}${qr(this.b)}${qr((isNaN(this.opacity)?1:this.opacity)*255)}`}function D0(){const e=pu(this.opacity);return`${e===1?"rgb(":"rgba("}${Kr(this.r)}, ${Kr(this.g)}, ${Kr(this.b)}${e===1?")":`, ${e})`}`}function pu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Kr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function qr(e){return e=Kr(e),(e<16?"0":"")+e.toString(16)}function O0(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new on(e,t,r,i)}function Vv(e){if(e instanceof on)return new on(e.h,e.s,e.l,e.opacity);if(e instanceof Hs||(e=bs(e)),!e)return new on;if(e instanceof on)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,s=Math.min(t,r,i),a=Math.max(t,r,i),u=NaN,f=a-s,d=(a+s)/2;return f?(t===a?u=(r-i)/f+(r<i)*6:r===a?u=(i-t)/f+2:u=(t-r)/f+4,f/=d<.5?a+s:2-a-s,u*=60):f=d>0&&d<1?0:u,new on(u,f,d,e.opacity)}function I3(e,t,r,i){return arguments.length===1?Vv(e):new on(e,t,r,i??1)}function on(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}jh(on,I3,Hv(Hs,{brighter(e){return e=e==null?hu:Math.pow(hu,e),new on(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_s:Math.pow(_s,e),new on(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,s=2*r-i;return new Pt(ud(e>=240?e-240:e+120,s,i),ud(e,s,i),ud(e<120?e+240:e-120,s,i),this.opacity)},clamp(){return new on(z0(this.h),ba(this.s),ba(this.l),pu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=pu(this.opacity);return`${e===1?"hsl(":"hsla("}${z0(this.h)}, ${ba(this.s)*100}%, ${ba(this.l)*100}%${e===1?")":`, ${e})`}`}}));function z0(e){return e=(e||0)%360,e<0?e+360:e}function ba(e){return Math.max(0,Math.min(1,e||0))}function ud(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Uv=e=>()=>e;function j3(e,t){return function(r){return e+r*t}}function $3(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function A3(e){return(e=+e)==1?Wv:function(t,r){return r-t?$3(t,r,e):Uv(isNaN(t)?r:t)}}function Wv(e,t){var r=t-e;return r?j3(e,r):Uv(isNaN(e)?t:e)}const F0=function e(t){var r=A3(t);function i(s,a){var u=r((s=qd(s)).r,(a=qd(a)).r),f=r(s.g,a.g),d=r(s.b,a.b),h=Wv(s.opacity,a.opacity);return function(g){return s.r=u(g),s.g=f(g),s.b=d(g),s.opacity=h(g),s+""}}return i.gamma=e,i}(1);function vr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Yd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,cd=new RegExp(Yd.source,"g");function M3(e){return function(){return e}}function L3(e){return function(t){return e(t)+""}}function D3(e,t){var r=Yd.lastIndex=cd.lastIndex=0,i,s,a,u=-1,f=[],d=[];for(e=e+"",t=t+"";(i=Yd.exec(e))&&(s=cd.exec(t));)(a=s.index)>r&&(a=t.slice(r,a),f[u]?f[u]+=a:f[++u]=a),(i=i[0])===(s=s[0])?f[u]?f[u]+=s:f[++u]=s:(f[++u]=null,d.push({i:u,x:vr(i,s)})),r=cd.lastIndex;return r<t.length&&(a=t.slice(r),f[u]?f[u]+=a:f[++u]=a),f.length<2?d[0]?L3(d[0].x):M3(t):(t=d.length,function(h){for(var g=0,m;g<t;++g)f[(m=d[g]).i]=m.x(h);return f.join("")})}var B0=180/Math.PI,Xd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function qv(e,t,r,i,s,a){var u,f,d;return(u=Math.sqrt(e*e+t*t))&&(e/=u,t/=u),(d=e*r+t*i)&&(r-=e*d,i-=t*d),(f=Math.sqrt(r*r+i*i))&&(r/=f,i/=f,d/=f),e*i<t*r&&(e=-e,t=-t,d=-d,u=-u),{translateX:s,translateY:a,rotate:Math.atan2(t,e)*B0,skewX:Math.atan(d)*B0,scaleX:u,scaleY:f}}var Pa;function O3(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Xd:qv(t.a,t.b,t.c,t.d,t.e,t.f)}function z3(e){return e==null||(Pa||(Pa=document.createElementNS("http://www.w3.org/2000/svg","g")),Pa.setAttribute("transform",e),!(e=Pa.transform.baseVal.consolidate()))?Xd:(e=e.matrix,qv(e.a,e.b,e.c,e.d,e.e,e.f))}function Yv(e,t,r,i){function s(h){return h.length?h.pop()+" ":""}function a(h,g,m,y,v,S){if(h!==m||g!==y){var E=v.push("translate(",null,t,null,r);S.push({i:E-4,x:vr(h,m)},{i:E-2,x:vr(g,y)})}else(m||y)&&v.push("translate("+m+t+y+r)}function u(h,g,m,y){h!==g?(h-g>180?g+=360:g-h>180&&(h+=360),y.push({i:m.push(s(m)+"rotate(",null,i)-2,x:vr(h,g)})):g&&m.push(s(m)+"rotate("+g+i)}function f(h,g,m,y){h!==g?y.push({i:m.push(s(m)+"skewX(",null,i)-2,x:vr(h,g)}):g&&m.push(s(m)+"skewX("+g+i)}function d(h,g,m,y,v,S){if(h!==m||g!==y){var E=v.push(s(v)+"scale(",null,",",null,")");S.push({i:E-4,x:vr(h,m)},{i:E-2,x:vr(g,y)})}else(m!==1||y!==1)&&v.push(s(v)+"scale("+m+","+y+")")}return function(h,g){var m=[],y=[];return h=e(h),g=e(g),a(h.translateX,h.translateY,g.translateX,g.translateY,m,y),u(h.rotate,g.rotate,m,y),f(h.skewX,g.skewX,m,y),d(h.scaleX,h.scaleY,g.scaleX,g.scaleY,m,y),h=g=null,function(v){for(var S=-1,E=y.length,k;++S<E;)m[(k=y[S]).i]=k.x(v);return m.join("")}}}var F3=Yv(O3,"px, ","px)","deg)"),B3=Yv(z3,", ",")",")"),H3=1e-12;function H0(e){return((e=Math.exp(e))+1/e)/2}function V3(e){return((e=Math.exp(e))-1/e)/2}function U3(e){return((e=Math.exp(2*e))-1)/(e+1)}const W3=function e(t,r,i){function s(a,u){var f=a[0],d=a[1],h=a[2],g=u[0],m=u[1],y=u[2],v=g-f,S=m-d,E=v*v+S*S,k,C;if(E<H3)C=Math.log(y/h)/t,k=function(j){return[f+j*v,d+j*S,h*Math.exp(t*j*C)]};else{var R=Math.sqrt(E),N=(y*y-h*h+i*E)/(2*h*r*R),b=(y*y-h*h-i*E)/(2*y*r*R),M=Math.log(Math.sqrt(N*N+1)-N),L=Math.log(Math.sqrt(b*b+1)-b);C=(L-M)/t,k=function(j){var G=j*C,V=H0(M),Y=h/(r*R)*(V*U3(t*G+M)-V3(M));return[f+Y*v,d+Y*S,h*V/H0(t*G+M)]}}return k.duration=C*1e3*t/Math.SQRT2,k}return s.rho=function(a){var u=Math.max(.001,+a),f=u*u,d=f*f;return e(u,f,d)},s}(Math.SQRT2,2,4);var ri=0,ds=0,as=0,Xv=1e3,gu,hs,mu=0,to=0,Bu=0,Ps=typeof performance=="object"&&performance.now?performance:Date,Gv=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function $h(){return to||(Gv(q3),to=Ps.now()+Bu)}function q3(){to=0}function yu(){this._call=this._time=this._next=null}yu.prototype=Kv.prototype={constructor:yu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?$h():+r)+(t==null?0:+t),!this._next&&hs!==this&&(hs?hs._next=this:gu=this,hs=this),this._call=e,this._time=r,Gd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Gd())}};function Kv(e,t,r){var i=new yu;return i.restart(e,t,r),i}function Y3(){$h(),++ri;for(var e=gu,t;e;)(t=to-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ri}function V0(){to=(mu=Ps.now())+Bu,ri=ds=0;try{Y3()}finally{ri=0,G3(),to=0}}function X3(){var e=Ps.now(),t=e-mu;t>Xv&&(Bu-=t,mu=e)}function G3(){for(var e,t=gu,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:gu=r);hs=e,Gd(i)}function Gd(e){if(!ri){ds&&(ds=clearTimeout(ds));var t=e-to;t>24?(e<1/0&&(ds=setTimeout(V0,e-Ps.now()-Bu)),as&&(as=clearInterval(as))):(as||(mu=Ps.now(),as=setInterval(X3,Xv)),ri=1,Gv(V0))}}function U0(e,t,r){var i=new yu;return t=t==null?0:+t,i.restart(s=>{i.stop(),e(s+t)},t,r),i}var K3=zu("start","end","cancel","interrupt"),Q3=[],Qv=0,W0=1,Kd=2,Za=3,q0=4,Qd=5,eu=6;function Hu(e,t,r,i,s,a){var u=e.__transition;if(!u)e.__transition={};else if(r in u)return;J3(e,r,{name:t,index:i,group:s,on:K3,tween:Q3,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Qv})}function Ah(e,t){var r=cn(e,t);if(r.state>Qv)throw new Error("too late; already scheduled");return r}function Sn(e,t){var r=cn(e,t);if(r.state>Za)throw new Error("too late; already running");return r}function cn(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function J3(e,t,r){var i=e.__transition,s;i[t]=r,r.timer=Kv(a,0,r.time);function a(h){r.state=W0,r.timer.restart(u,r.delay,r.time),r.delay<=h&&u(h-r.delay)}function u(h){var g,m,y,v;if(r.state!==W0)return d();for(g in i)if(v=i[g],v.name===r.name){if(v.state===Za)return U0(u);v.state===q0?(v.state=eu,v.timer.stop(),v.on.call("interrupt",e,e.__data__,v.index,v.group),delete i[g]):+g<t&&(v.state=eu,v.timer.stop(),v.on.call("cancel",e,e.__data__,v.index,v.group),delete i[g])}if(U0(function(){r.state===Za&&(r.state=q0,r.timer.restart(f,r.delay,r.time),f(h))}),r.state=Kd,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Kd){for(r.state=Za,s=new Array(y=r.tween.length),g=0,m=-1;g<y;++g)(v=r.tween[g].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=v);s.length=m+1}}function f(h){for(var g=h<r.duration?r.ease.call(null,h/r.duration):(r.timer.restart(d),r.state=Qd,1),m=-1,y=s.length;++m<y;)s[m].call(e,g);r.state===Qd&&(r.on.call("end",e,e.__data__,r.index,r.group),d())}function d(){r.state=eu,r.timer.stop(),delete i[t];for(var h in i)return;delete e.__transition}}function tu(e,t){var r=e.__transition,i,s,a=!0,u;if(r){t=t==null?null:t+"";for(u in r){if((i=r[u]).name!==t){a=!1;continue}s=i.state>Kd&&i.state<Qd,i.state=eu,i.timer.stop(),i.on.call(s?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[u]}a&&delete e.__transition}}function Z3(e){return this.each(function(){tu(this,e)})}function eP(e,t){var r,i;return function(){var s=Sn(this,e),a=s.tween;if(a!==r){i=r=a;for(var u=0,f=i.length;u<f;++u)if(i[u].name===t){i=i.slice(),i.splice(u,1);break}}s.tween=i}}function tP(e,t,r){var i,s;if(typeof r!="function")throw new Error;return function(){var a=Sn(this,e),u=a.tween;if(u!==i){s=(i=u).slice();for(var f={name:t,value:r},d=0,h=s.length;d<h;++d)if(s[d].name===t){s[d]=f;break}d===h&&s.push(f)}a.tween=s}}function nP(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=cn(this.node(),r).tween,s=0,a=i.length,u;s<a;++s)if((u=i[s]).name===e)return u.value;return null}return this.each((t==null?eP:tP)(r,e,t))}function Mh(e,t,r){var i=e._id;return e.each(function(){var s=Sn(this,i);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return cn(s,i).value[t]}}function Jv(e,t){var r;return(typeof t=="number"?vr:t instanceof bs?F0:(r=bs(t))?(t=r,F0):D3)(e,t)}function rP(e){return function(){this.removeAttribute(e)}}function oP(e){return function(){this.removeAttributeNS(e.space,e.local)}}function iP(e,t,r){var i,s=r+"",a;return function(){var u=this.getAttribute(e);return u===s?null:u===i?a:a=t(i=u,r)}}function sP(e,t,r){var i,s=r+"",a;return function(){var u=this.getAttributeNS(e.space,e.local);return u===s?null:u===i?a:a=t(i=u,r)}}function lP(e,t,r){var i,s,a;return function(){var u,f=r(this),d;return f==null?void this.removeAttribute(e):(u=this.getAttribute(e),d=f+"",u===d?null:u===i&&d===s?a:(s=d,a=t(i=u,f)))}}function aP(e,t,r){var i,s,a;return function(){var u,f=r(this),d;return f==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),d=f+"",u===d?null:u===i&&d===s?a:(s=d,a=t(i=u,f)))}}function uP(e,t){var r=Fu(e),i=r==="transform"?B3:Jv;return this.attrTween(e,typeof t=="function"?(r.local?aP:lP)(r,i,Mh(this,"attr."+e,t)):t==null?(r.local?oP:rP)(r):(r.local?sP:iP)(r,i,t))}function cP(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function fP(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function dP(e,t){var r,i;function s(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&fP(e,a)),r}return s._value=t,s}function hP(e,t){var r,i;function s(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&cP(e,a)),r}return s._value=t,s}function pP(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var i=Fu(e);return this.tween(r,(i.local?dP:hP)(i,t))}function gP(e,t){return function(){Ah(this,e).delay=+t.apply(this,arguments)}}function mP(e,t){return t=+t,function(){Ah(this,e).delay=t}}function yP(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?gP:mP)(t,e)):cn(this.node(),t).delay}function xP(e,t){return function(){Sn(this,e).duration=+t.apply(this,arguments)}}function vP(e,t){return t=+t,function(){Sn(this,e).duration=t}}function wP(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?xP:vP)(t,e)):cn(this.node(),t).duration}function SP(e,t){if(typeof t!="function")throw new Error;return function(){Sn(this,e).ease=t}}function EP(e){var t=this._id;return arguments.length?this.each(SP(t,e)):cn(this.node(),t).ease}function kP(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Sn(this,e).ease=r}}function CP(e){if(typeof e!="function")throw new Error;return this.each(kP(this._id,e))}function _P(e){typeof e!="function"&&(e=Rv(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var a=t[s],u=a.length,f=i[s]=[],d,h=0;h<u;++h)(d=a[h])&&e.call(d,d.__data__,h,a)&&f.push(d);return new zn(i,this._parents,this._name,this._id)}function NP(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,s=r.length,a=Math.min(i,s),u=new Array(i),f=0;f<a;++f)for(var d=t[f],h=r[f],g=d.length,m=u[f]=new Array(g),y,v=0;v<g;++v)(y=d[v]||h[v])&&(m[v]=y);for(;f<i;++f)u[f]=t[f];return new zn(u,this._parents,this._name,this._id)}function bP(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function PP(e,t,r){var i,s,a=bP(t)?Ah:Sn;return function(){var u=a(this,e),f=u.on;f!==i&&(s=(i=f).copy()).on(t,r),u.on=s}}function RP(e,t){var r=this._id;return arguments.length<2?cn(this.node(),r).on.on(e):this.each(PP(r,e,t))}function TP(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function IP(){return this.on("end.remove",TP(this._id))}function jP(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Th(e));for(var i=this._groups,s=i.length,a=new Array(s),u=0;u<s;++u)for(var f=i[u],d=f.length,h=a[u]=new Array(d),g,m,y=0;y<d;++y)(g=f[y])&&(m=e.call(g,g.__data__,y,f))&&("__data__"in g&&(m.__data__=g.__data__),h[y]=m,Hu(h[y],t,r,y,h,cn(g,r)));return new zn(a,this._parents,t,r)}function $P(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Pv(e));for(var i=this._groups,s=i.length,a=[],u=[],f=0;f<s;++f)for(var d=i[f],h=d.length,g,m=0;m<h;++m)if(g=d[m]){for(var y=e.call(g,g.__data__,m,d),v,S=cn(g,r),E=0,k=y.length;E<k;++E)(v=y[E])&&Hu(v,t,r,E,y,S);a.push(y),u.push(g)}return new zn(a,u,t,r)}var AP=Bs.prototype.constructor;function MP(){return new AP(this._groups,this._parents)}function LP(e,t){var r,i,s;return function(){var a=ni(this,e),u=(this.style.removeProperty(e),ni(this,e));return a===u?null:a===r&&u===i?s:s=t(r=a,i=u)}}function Zv(e){return function(){this.style.removeProperty(e)}}function DP(e,t,r){var i,s=r+"",a;return function(){var u=ni(this,e);return u===s?null:u===i?a:a=t(i=u,r)}}function OP(e,t,r){var i,s,a;return function(){var u=ni(this,e),f=r(this),d=f+"";return f==null&&(d=f=(this.style.removeProperty(e),ni(this,e))),u===d?null:u===i&&d===s?a:(s=d,a=t(i=u,f))}}function zP(e,t){var r,i,s,a="style."+t,u="end."+a,f;return function(){var d=Sn(this,e),h=d.on,g=d.value[a]==null?f||(f=Zv(t)):void 0;(h!==r||s!==g)&&(i=(r=h).copy()).on(u,s=g),d.on=i}}function FP(e,t,r){var i=(e+="")=="transform"?F3:Jv;return t==null?this.styleTween(e,LP(e,i)).on("end.style."+e,Zv(e)):typeof t=="function"?this.styleTween(e,OP(e,i,Mh(this,"style."+e,t))).each(zP(this._id,e)):this.styleTween(e,DP(e,i,t),r).on("end.style."+e,null)}function BP(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function HP(e,t,r){var i,s;function a(){var u=t.apply(this,arguments);return u!==s&&(i=(s=u)&&BP(e,u,r)),i}return a._value=t,a}function VP(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,HP(e,t,r??""))}function UP(e){return function(){this.textContent=e}}function WP(e){return function(){var t=e(this);this.textContent=t??""}}function qP(e){return this.tween("text",typeof e=="function"?WP(Mh(this,"text",e)):UP(e==null?"":e+""))}function YP(e){return function(t){this.textContent=e.call(this,t)}}function XP(e){var t,r;function i(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&YP(s)),t}return i._value=e,i}function GP(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,XP(e))}function KP(){for(var e=this._name,t=this._id,r=e1(),i=this._groups,s=i.length,a=0;a<s;++a)for(var u=i[a],f=u.length,d,h=0;h<f;++h)if(d=u[h]){var g=cn(d,t);Hu(d,e,r,h,u,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new zn(i,this._parents,e,r)}function QP(){var e,t,r=this,i=r._id,s=r.size();return new Promise(function(a,u){var f={value:u},d={value:function(){--s===0&&a()}};r.each(function(){var h=Sn(this,i),g=h.on;g!==e&&(t=(e=g).copy(),t._.cancel.push(f),t._.interrupt.push(f),t._.end.push(d)),h.on=t}),s===0&&a()})}var JP=0;function zn(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function e1(){return++JP}var jn=Bs.prototype;zn.prototype={constructor:zn,select:jP,selectAll:$P,selectChild:jn.selectChild,selectChildren:jn.selectChildren,filter:_P,merge:NP,selection:MP,transition:KP,call:jn.call,nodes:jn.nodes,node:jn.node,size:jn.size,empty:jn.empty,each:jn.each,on:RP,attr:uP,attrTween:pP,style:FP,styleTween:VP,text:qP,textTween:GP,remove:IP,tween:nP,delay:yP,duration:wP,ease:EP,easeVarying:CP,end:QP,[Symbol.iterator]:jn[Symbol.iterator]};function ZP(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var e5={time:null,delay:0,duration:250,ease:ZP};function t5(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function n5(e){var t,r;e instanceof zn?(t=e._id,e=e._name):(t=e1(),(r=e5).time=$h(),e=e==null?null:e+"");for(var i=this._groups,s=i.length,a=0;a<s;++a)for(var u=i[a],f=u.length,d,h=0;h<f;++h)(d=u[h])&&Hu(d,e,t,h,u,r||t5(d,t));return new zn(i,this._parents,e,t)}Bs.prototype.interrupt=Z3;Bs.prototype.transition=n5;const Ra=e=>()=>e;function r5(e,{sourceEvent:t,target:r,transform:i,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function An(e,t,r){this.k=e,this.x=t,this.y=r}An.prototype={constructor:An,scale:function(e){return e===1?this:new An(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new An(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Vu=new An(1,0,0);t1.prototype=An.prototype;function t1(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Vu;return e.__zoom}function fd(e){e.stopImmediatePropagation()}function us(e){e.preventDefault(),e.stopImmediatePropagation()}function o5(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function i5(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Y0(){return this.__zoom||Vu}function s5(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function l5(){return navigator.maxTouchPoints||"ontouchstart"in this}function a5(e,t,r){var i=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],a=e.invertY(t[0][1])-r[0][1],u=e.invertY(t[1][1])-r[1][1];return e.translate(s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s),u>a?(a+u)/2:Math.min(0,a)||Math.max(0,u))}function n1(){var e=o5,t=i5,r=a5,i=s5,s=l5,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],f=250,d=W3,h=zu("start","zoom","end"),g,m,y,v=500,S=150,E=0,k=10;function C(I){I.property("__zoom",Y0).on("wheel.zoom",G,{passive:!1}).on("mousedown.zoom",V).on("dblclick.zoom",Y).filter(s).on("touchstart.zoom",ee).on("touchmove.zoom",ne).on("touchend.zoom touchcancel.zoom",J).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}C.transform=function(I,U,F,q){var A=I.selection?I.selection():I;A.property("__zoom",Y0),I!==A?M(I,U,F,q):A.interrupt().each(function(){L(this,arguments).event(q).start().zoom(null,typeof U=="function"?U.apply(this,arguments):U).end()})},C.scaleBy=function(I,U,F,q){C.scaleTo(I,function(){var A=this.__zoom.k,O=typeof U=="function"?U.apply(this,arguments):U;return A*O},F,q)},C.scaleTo=function(I,U,F,q){C.transform(I,function(){var A=t.apply(this,arguments),O=this.__zoom,z=F==null?b(A):typeof F=="function"?F.apply(this,arguments):F,T=O.invert(z),H=typeof U=="function"?U.apply(this,arguments):U;return r(N(R(O,H),z,T),A,u)},F,q)},C.translateBy=function(I,U,F,q){C.transform(I,function(){return r(this.__zoom.translate(typeof U=="function"?U.apply(this,arguments):U,typeof F=="function"?F.apply(this,arguments):F),t.apply(this,arguments),u)},null,q)},C.translateTo=function(I,U,F,q,A){C.transform(I,function(){var O=t.apply(this,arguments),z=this.__zoom,T=q==null?b(O):typeof q=="function"?q.apply(this,arguments):q;return r(Vu.translate(T[0],T[1]).scale(z.k).translate(typeof U=="function"?-U.apply(this,arguments):-U,typeof F=="function"?-F.apply(this,arguments):-F),O,u)},q,A)};function R(I,U){return U=Math.max(a[0],Math.min(a[1],U)),U===I.k?I:new An(U,I.x,I.y)}function N(I,U,F){var q=U[0]-F[0]*I.k,A=U[1]-F[1]*I.k;return q===I.x&&A===I.y?I:new An(I.k,q,A)}function b(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function M(I,U,F,q){I.on("start.zoom",function(){L(this,arguments).event(q).start()}).on("interrupt.zoom end.zoom",function(){L(this,arguments).event(q).end()}).tween("zoom",function(){var A=this,O=arguments,z=L(A,O).event(q),T=t.apply(A,O),H=F==null?b(T):typeof F=="function"?F.apply(A,O):F,Z=Math.max(T[1][0]-T[0][0],T[1][1]-T[0][1]),te=A.__zoom,ie=typeof U=="function"?U.apply(A,O):U,le=d(te.invert(H).concat(Z/te.k),ie.invert(H).concat(Z/ie.k));return function(de){if(de===1)de=ie;else{var re=le(de),he=Z/re[2];de=new An(he,H[0]-re[0]*he,H[1]-re[1]*he)}z.zoom(null,de)}})}function L(I,U,F){return!F&&I.__zooming||new j(I,U)}function j(I,U){this.that=I,this.args=U,this.active=0,this.sourceEvent=null,this.extent=t.apply(I,U),this.taps=0}j.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,U){return this.mouse&&I!=="mouse"&&(this.mouse[1]=U.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=U.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=U.invert(this.touch1[0])),this.that.__zoom=U,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var U=Lt(this.that).datum();h.call(I,this.that,new r5(I,{sourceEvent:this.sourceEvent,target:C,transform:this.that.__zoom,dispatch:h}),U)}};function G(I,...U){if(!e.apply(this,arguments))return;var F=L(this,U).event(I),q=this.__zoom,A=Math.max(a[0],Math.min(a[1],q.k*Math.pow(2,i.apply(this,arguments)))),O=nn(I);if(F.wheel)(F.mouse[0][0]!==O[0]||F.mouse[0][1]!==O[1])&&(F.mouse[1]=q.invert(F.mouse[0]=O)),clearTimeout(F.wheel);else{if(q.k===A)return;F.mouse=[O,q.invert(O)],tu(this),F.start()}us(I),F.wheel=setTimeout(z,S),F.zoom("mouse",r(N(R(q,A),F.mouse[0],F.mouse[1]),F.extent,u));function z(){F.wheel=null,F.end()}}function V(I,...U){if(y||!e.apply(this,arguments))return;var F=I.currentTarget,q=L(this,U,!0).event(I),A=Lt(I.view).on("mousemove.zoom",H,!0).on("mouseup.zoom",Z,!0),O=nn(I,F),z=I.clientX,T=I.clientY;zv(I.view),fd(I),q.mouse=[O,this.__zoom.invert(O)],tu(this),q.start();function H(te){if(us(te),!q.moved){var ie=te.clientX-z,le=te.clientY-T;q.moved=ie*ie+le*le>E}q.event(te).zoom("mouse",r(N(q.that.__zoom,q.mouse[0]=nn(te,F),q.mouse[1]),q.extent,u))}function Z(te){A.on("mousemove.zoom mouseup.zoom",null),Fv(te.view,q.moved),us(te),q.event(te).end()}}function Y(I,...U){if(e.apply(this,arguments)){var F=this.__zoom,q=nn(I.changedTouches?I.changedTouches[0]:I,this),A=F.invert(q),O=F.k*(I.shiftKey?.5:2),z=r(N(R(F,O),q,A),t.apply(this,U),u);us(I),f>0?Lt(this).transition().duration(f).call(M,z,q,I):Lt(this).call(C.transform,z,q,I)}}function ee(I,...U){if(e.apply(this,arguments)){var F=I.touches,q=F.length,A=L(this,U,I.changedTouches.length===q).event(I),O,z,T,H;for(fd(I),z=0;z<q;++z)T=F[z],H=nn(T,this),H=[H,this.__zoom.invert(H),T.identifier],A.touch0?!A.touch1&&A.touch0[2]!==H[2]&&(A.touch1=H,A.taps=0):(A.touch0=H,O=!0,A.taps=1+!!g);g&&(g=clearTimeout(g)),O&&(A.taps<2&&(m=H[0],g=setTimeout(function(){g=null},v)),tu(this),A.start())}}function ne(I,...U){if(this.__zooming){var F=L(this,U).event(I),q=I.changedTouches,A=q.length,O,z,T,H;for(us(I),O=0;O<A;++O)z=q[O],T=nn(z,this),F.touch0&&F.touch0[2]===z.identifier?F.touch0[0]=T:F.touch1&&F.touch1[2]===z.identifier&&(F.touch1[0]=T);if(z=F.that.__zoom,F.touch1){var Z=F.touch0[0],te=F.touch0[1],ie=F.touch1[0],le=F.touch1[1],de=(de=ie[0]-Z[0])*de+(de=ie[1]-Z[1])*de,re=(re=le[0]-te[0])*re+(re=le[1]-te[1])*re;z=R(z,Math.sqrt(de/re)),T=[(Z[0]+ie[0])/2,(Z[1]+ie[1])/2],H=[(te[0]+le[0])/2,(te[1]+le[1])/2]}else if(F.touch0)T=F.touch0[0],H=F.touch0[1];else return;F.zoom("touch",r(N(z,T,H),F.extent,u))}}function J(I,...U){if(this.__zooming){var F=L(this,U).event(I),q=I.changedTouches,A=q.length,O,z;for(fd(I),y&&clearTimeout(y),y=setTimeout(function(){y=null},v),O=0;O<A;++O)z=q[O],F.touch0&&F.touch0[2]===z.identifier?delete F.touch0:F.touch1&&F.touch1[2]===z.identifier&&delete F.touch1;if(F.touch1&&!F.touch0&&(F.touch0=F.touch1,delete F.touch1),F.touch0)F.touch0[1]=this.__zoom.invert(F.touch0[0]);else if(F.end(),F.taps===2&&(z=nn(z,this),Math.hypot(m[0]-z[0],m[1]-z[1])<k)){var T=Lt(this).on("dblclick.zoom");T&&T.apply(this,arguments)}}}return C.wheelDelta=function(I){return arguments.length?(i=typeof I=="function"?I:Ra(+I),C):i},C.filter=function(I){return arguments.length?(e=typeof I=="function"?I:Ra(!!I),C):e},C.touchable=function(I){return arguments.length?(s=typeof I=="function"?I:Ra(!!I),C):s},C.extent=function(I){return arguments.length?(t=typeof I=="function"?I:Ra([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),C):t},C.scaleExtent=function(I){return arguments.length?(a[0]=+I[0],a[1]=+I[1],C):[a[0],a[1]]},C.translateExtent=function(I){return arguments.length?(u[0][0]=+I[0][0],u[1][0]=+I[1][0],u[0][1]=+I[0][1],u[1][1]=+I[1][1],C):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},C.constrain=function(I){return arguments.length?(r=I,C):r},C.duration=function(I){return arguments.length?(f=+I,C):f},C.interpolate=function(I){return arguments.length?(d=I,C):d},C.on=function(){var I=h.on.apply(h,arguments);return I===h?C:I},C.clickDistance=function(I){return arguments.length?(E=(I=+I)*I,C):Math.sqrt(E)},C.tapDistance=function(I){return arguments.length?(k=+I,C):k},C}const Vn={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:r,targetHandle:i})=>`Couldn't create edge for ${e} handle id: "${e==="source"?r:i}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`},Rs=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],r1=["Enter"," ","Escape"];var oi;(function(e){e.Strict="strict",e.Loose="loose"})(oi||(oi={}));var Qr;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Qr||(Qr={}));var Ts;(function(e){e.Partial="partial",e.Full="full"})(Ts||(Ts={}));const o1={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var wr;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(wr||(wr={}));var xu;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(xu||(xu={}));var ce;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(ce||(ce={}));const X0={[ce.Left]:ce.Right,[ce.Right]:ce.Left,[ce.Top]:ce.Bottom,[ce.Bottom]:ce.Top};function i1(e){return e===null?null:e?"valid":"invalid"}const s1=e=>"id"in e&&"source"in e&&"target"in e,u5=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),Lh=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Vs=(e,t=[0,0])=>{const{width:r,height:i}=Un(e),s=e.origin??t,a=r*s[0],u=i*s[1];return{x:e.position.x-a,y:e.position.y-u}},c5=(e,t={nodeOrigin:[0,0],nodeLookup:void 0})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const r=e.reduce((i,s)=>{const a=typeof s=="string";let u=!t.nodeLookup&&!a?s:void 0;t.nodeLookup&&(u=a?t.nodeLookup.get(s):Lh(s)?s:t.nodeLookup.get(s.id));const f=u?vu(u,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Uu(i,f)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Wu(r)},Us=(e,t={})=>{if(e.size===0)return{x:0,y:0,width:0,height:0};let r={x:1/0,y:1/0,x2:-1/0,y2:-1/0};return e.forEach(i=>{if(t.filter===void 0||t.filter(i)){const s=vu(i);r=Uu(r,s)}}),Wu(r)},l1=(e,t,[r,i,s]=[0,0,1],a=!1,u=!1)=>{const f={...Ws(t,[r,i,s]),width:t.width/s,height:t.height/s},d=[];for(const h of e.values()){const{measured:g,selectable:m=!0,hidden:y=!1}=h;if(u&&!m||y)continue;const v=g.width??h.width??h.initialWidth??null,S=g.height??h.height??h.initialHeight??null,E=Is(f,si(h)),k=(v??0)*(S??0),C=a&&E>0;(!h.internals.handleBounds||C||E>=k||h.dragging)&&d.push(h)}return d},f5=(e,t)=>{const r=new Set;return e.forEach(i=>{r.add(i.id)}),t.filter(i=>r.has(i.source)||r.has(i.target))};function Jd(e,t){const r=new Map,i=t!=null&&t.nodes?new Set(t.nodes.map(s=>s.id)):null;return e.forEach(s=>{s.measured.width&&s.measured.height&&((t==null?void 0:t.includeHiddenNodes)||!s.hidden)&&(!i||i.has(s.id))&&r.set(s.id,s)}),r}async function Zd({nodes:e,width:t,height:r,panZoom:i,minZoom:s,maxZoom:a},u){if(e.size===0)return Promise.resolve(!1);const f=Us(e),d=Dh(f,t,r,(u==null?void 0:u.minZoom)??s,(u==null?void 0:u.maxZoom)??a,(u==null?void 0:u.padding)??.1);return await i.setViewport(d,{duration:u==null?void 0:u.duration}),Promise.resolve(!0)}function a1({nodeId:e,nextPosition:t,nodeLookup:r,nodeOrigin:i=[0,0],nodeExtent:s,onError:a}){const u=r.get(e),f=u.parentId?r.get(u.parentId):void 0,{x:d,y:h}=f?f.internals.positionAbsolute:{x:0,y:0},g=u.origin??i;let m=s;if(u.extent==="parent"&&!u.expandParent)if(!f)a==null||a("005",Vn.error005());else{const v=f.measured.width,S=f.measured.height;v&&S&&(m=[[d,h],[d+v,h+S]])}else f&&li(u.extent)&&(m=[[u.extent[0][0]+d,u.extent[0][1]+h],[u.extent[1][0]+d,u.extent[1][1]+h]]);const y=li(m)?no(t,m,u.measured):t;return{position:{x:y.x-d+u.measured.width*g[0],y:y.y-h+u.measured.height*g[1]},positionAbsolute:y}}async function d5({nodesToRemove:e=[],edgesToRemove:t=[],nodes:r,edges:i,onBeforeDelete:s}){const a=new Set(e.map(y=>y.id)),u=[];for(const y of r){if(y.deletable===!1)continue;const v=a.has(y.id),S=!v&&y.parentId&&u.find(E=>E.id===y.parentId);(v||S)&&u.push(y)}const f=new Set(t.map(y=>y.id)),d=i.filter(y=>y.deletable!==!1),g=f5(u,d);for(const y of d)f.has(y.id)&&!g.find(S=>S.id===y.id)&&g.push(y);if(!s)return{edges:g,nodes:u};const m=await s({nodes:u,edges:g});return typeof m=="boolean"?m?{edges:g,nodes:u}:{edges:[],nodes:[]}:m}const ii=(e,t=0,r=1)=>Math.min(Math.max(e,t),r),no=(e={x:0,y:0},t,r)=>({x:ii(e.x,t[0][0],t[1][0]-((r==null?void 0:r.width)??0)),y:ii(e.y,t[0][1],t[1][1]-((r==null?void 0:r.height)??0))});function u1(e,t,r){const{width:i,height:s}=Un(r),{x:a,y:u}=r.internals.positionAbsolute;return no(e,[[a,u],[a+i,u+s]],t)}const G0=(e,t,r)=>e<t?ii(Math.abs(e-t),1,t)/t:e>r?-ii(Math.abs(e-r),1,t)/t:0,c1=(e,t,r=15,i=40)=>{const s=G0(e.x,i,t.width-i)*r,a=G0(e.y,i,t.height-i)*r;return[s,a]},Uu=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),eh=({x:e,y:t,width:r,height:i})=>({x:e,y:t,x2:e+r,y2:t+i}),Wu=({x:e,y:t,x2:r,y2:i})=>({x:e,y:t,width:r-e,height:i-t}),si=(e,t=[0,0])=>{var s,a;const{x:r,y:i}=Lh(e)?e.internals.positionAbsolute:Vs(e,t);return{x:r,y:i,width:((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0,height:((a=e.measured)==null?void 0:a.height)??e.height??e.initialHeight??0}},vu=(e,t=[0,0])=>{var s,a;const{x:r,y:i}=Lh(e)?e.internals.positionAbsolute:Vs(e,t);return{x:r,y:i,x2:r+(((s=e.measured)==null?void 0:s.width)??e.width??e.initialWidth??0),y2:i+(((a=e.measured)==null?void 0:a.height)??e.height??e.initialHeight??0)}},f1=(e,t)=>Wu(Uu(eh(e),eh(t))),Is=(e,t)=>{const r=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),i=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(r*i)},K0=e=>sn(e.width)&&sn(e.height)&&sn(e.x)&&sn(e.y),sn=e=>!isNaN(e)&&isFinite(e),h5=(e,t)=>{},qu=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),Ws=({x:e,y:t},[r,i,s],a=!1,u=[1,1])=>{const f={x:(e-r)/s,y:(t-i)/s};return a?qu(f,u):f},d1=({x:e,y:t},[r,i,s])=>({x:e*s+r,y:t*s+i}),Dh=(e,t,r,i,s,a)=>{const u=t/(e.width*(1+a)),f=r/(e.height*(1+a)),d=Math.min(u,f),h=ii(d,i,s),g=e.x+e.width/2,m=e.y+e.height/2,y=t/2-g*h,v=r/2-m*h;return{x:y,y:v,zoom:h}},wu=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function li(e){return e!==void 0&&e!=="parent"}function Un(e){var t,r;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((r=e.measured)==null?void 0:r.height)??e.height??e.initialHeight??0}}function h1(e){var t,r;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((r=e.measured)==null?void 0:r.height)??e.height??e.initialHeight)!==void 0}function p1(e,t={width:0,height:0},r,i,s){const a={...e},u=i.get(r);if(u){const f=u.origin||s;a.x+=u.internals.positionAbsolute.x-(t.width??0)*f[0],a.y+=u.internals.positionAbsolute.y-(t.height??0)*f[1]}return a}function ms(e,{snapGrid:t=[0,0],snapToGrid:r=!1,transform:i,containerBounds:s}){const{x:a,y:u}=Dn(e),f=Ws({x:a-((s==null?void 0:s.left)??0),y:u-((s==null?void 0:s.top)??0)},i),{x:d,y:h}=r?qu(f,t):f;return{xSnapped:d,ySnapped:h,...f}}const Yu=e=>({width:e.offsetWidth,height:e.offsetHeight}),g1=e=>{var t;return((t=e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},p5=["INPUT","SELECT","TEXTAREA"];function th(e){var i,s;const t=((s=(i=e.composedPath)==null?void 0:i.call(e))==null?void 0:s[0])||e.target;return p5.includes(t==null?void 0:t.nodeName)||(t==null?void 0:t.hasAttribute("contenteditable"))||!!(t!=null&&t.closest(".nokey"))}const m1=e=>"clientX"in e,Dn=(e,t)=>{var a,u;const r=m1(e),i=r?e.clientX:(a=e.touches)==null?void 0:a[0].clientX,s=r?e.clientY:(u=e.touches)==null?void 0:u[0].clientY;return{x:i-((t==null?void 0:t.left)??0),y:s-((t==null?void 0:t.top)??0)}},Q0=(e,t,r,i,s)=>{const a=t.querySelectorAll(`.${e}`);return!a||!a.length?null:Array.from(a).map(u=>{const f=u.getBoundingClientRect();return{id:u.getAttribute("data-handleid"),type:e,nodeId:s,position:u.getAttribute("data-handlepos"),x:(f.left-r.left)/i,y:(f.top-r.top)/i,...Yu(u)}})};function y1({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:s,sourceControlY:a,targetControlX:u,targetControlY:f}){const d=e*.125+s*.375+u*.375+r*.125,h=t*.125+a*.375+f*.375+i*.125,g=Math.abs(d-e),m=Math.abs(h-t);return[d,h,g,m]}function Ta(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function J0({pos:e,x1:t,y1:r,x2:i,y2:s,c:a}){switch(e){case ce.Left:return[t-Ta(t-i,a),r];case ce.Right:return[t+Ta(i-t,a),r];case ce.Top:return[t,r-Ta(r-s,a)];case ce.Bottom:return[t,r+Ta(s-r,a)]}}function x1({sourceX:e,sourceY:t,sourcePosition:r=ce.Bottom,targetX:i,targetY:s,targetPosition:a=ce.Top,curvature:u=.25}){const[f,d]=J0({pos:r,x1:e,y1:t,x2:i,y2:s,c:u}),[h,g]=J0({pos:a,x1:i,y1:s,x2:e,y2:t,c:u}),[m,y,v,S]=y1({sourceX:e,sourceY:t,targetX:i,targetY:s,sourceControlX:f,sourceControlY:d,targetControlX:h,targetControlY:g});return[`M${e},${t} C${f},${d} ${h},${g} ${i},${s}`,m,y,v,S]}function v1({sourceX:e,sourceY:t,targetX:r,targetY:i}){const s=Math.abs(r-e)/2,a=r<e?r+s:r-s,u=Math.abs(i-t)/2,f=i<t?i+u:i-u;return[a,f,s,u]}function g5({sourceNode:e,targetNode:t,selected:r=!1,zIndex:i=0,elevateOnSelect:s=!1}){if(!s)return i;const a=r||t.selected||e.selected,u=Math.max(e.internals.z||0,t.internals.z||0,1e3);return i+(a?u:0)}function m5({sourceNode:e,targetNode:t,width:r,height:i,transform:s}){const a=Uu(vu(e),vu(t));a.x===a.x2&&(a.x2+=1),a.y===a.y2&&(a.y2+=1);const u={x:-s[0]/s[2],y:-s[1]/s[2],width:r/s[2],height:i/s[2]};return Is(u,Wu(a))>0}const y5=({source:e,sourceHandle:t,target:r,targetHandle:i})=>`xy-edge__${e}${t||""}-${r}${i||""}`,x5=(e,t)=>t.some(r=>r.source===e.source&&r.target===e.target&&(r.sourceHandle===e.sourceHandle||!r.sourceHandle&&!e.sourceHandle)&&(r.targetHandle===e.targetHandle||!r.targetHandle&&!e.targetHandle)),w1=(e,t)=>{if(!e.source||!e.target)return t;let r;return s1(e)?r={...e}:r={...e,id:y5(e)},x5(r,t)?t:(r.sourceHandle===null&&delete r.sourceHandle,r.targetHandle===null&&delete r.targetHandle,t.concat(r))};function S1({sourceX:e,sourceY:t,targetX:r,targetY:i}){const[s,a,u,f]=v1({sourceX:e,sourceY:t,targetX:r,targetY:i});return[`M ${e},${t}L ${r},${i}`,s,a,u,f]}const Z0={[ce.Left]:{x:-1,y:0},[ce.Right]:{x:1,y:0},[ce.Top]:{x:0,y:-1},[ce.Bottom]:{x:0,y:1}},v5=({source:e,sourcePosition:t=ce.Bottom,target:r})=>t===ce.Left||t===ce.Right?e.x<r.x?{x:1,y:0}:{x:-1,y:0}:e.y<r.y?{x:0,y:1}:{x:0,y:-1},ey=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function w5({source:e,sourcePosition:t=ce.Bottom,target:r,targetPosition:i=ce.Top,center:s,offset:a}){const u=Z0[t],f=Z0[i],d={x:e.x+u.x*a,y:e.y+u.y*a},h={x:r.x+f.x*a,y:r.y+f.y*a},g=v5({source:d,sourcePosition:t,target:h}),m=g.x!==0?"x":"y",y=g[m];let v=[],S,E;const k={x:0,y:0},C={x:0,y:0},[R,N,b,M]=v1({sourceX:e.x,sourceY:e.y,targetX:r.x,targetY:r.y});if(u[m]*f[m]===-1){S=s.x??R,E=s.y??N;const j=[{x:S,y:d.y},{x:S,y:h.y}],G=[{x:d.x,y:E},{x:h.x,y:E}];u[m]===y?v=m==="x"?j:G:v=m==="x"?G:j}else{const j=[{x:d.x,y:h.y}],G=[{x:h.x,y:d.y}];if(m==="x"?v=u.x===y?G:j:v=u.y===y?j:G,t===i){const J=Math.abs(e[m]-r[m]);if(J<=a){const I=Math.min(a-1,a-J);u[m]===y?k[m]=(d[m]>e[m]?-1:1)*I:C[m]=(h[m]>r[m]?-1:1)*I}}if(t!==i){const J=m==="x"?"y":"x",I=u[m]===f[J],U=d[J]>h[J],F=d[J]<h[J];(u[m]===1&&(!I&&U||I&&F)||u[m]!==1&&(!I&&F||I&&U))&&(v=m==="x"?j:G)}const V={x:d.x+k.x,y:d.y+k.y},Y={x:h.x+C.x,y:h.y+C.y},ee=Math.max(Math.abs(V.x-v[0].x),Math.abs(Y.x-v[0].x)),ne=Math.max(Math.abs(V.y-v[0].y),Math.abs(Y.y-v[0].y));ee>=ne?(S=(V.x+Y.x)/2,E=v[0].y):(S=v[0].x,E=(V.y+Y.y)/2)}return[[e,{x:d.x+k.x,y:d.y+k.y},...v,{x:h.x+C.x,y:h.y+C.y},r],S,E,b,M]}function S5(e,t,r,i){const s=Math.min(ey(e,t)/2,ey(t,r)/2,i),{x:a,y:u}=t;if(e.x===a&&a===r.x||e.y===u&&u===r.y)return`L${a} ${u}`;if(e.y===u){const h=e.x<r.x?-1:1,g=e.y<r.y?1:-1;return`L ${a+s*h},${u}Q ${a},${u} ${a},${u+s*g}`}const f=e.x<r.x?1:-1,d=e.y<r.y?-1:1;return`L ${a},${u+s*d}Q ${a},${u} ${a+s*f},${u}`}function nh({sourceX:e,sourceY:t,sourcePosition:r=ce.Bottom,targetX:i,targetY:s,targetPosition:a=ce.Top,borderRadius:u=5,centerX:f,centerY:d,offset:h=20}){const[g,m,y,v,S]=w5({source:{x:e,y:t},sourcePosition:r,target:{x:i,y:s},targetPosition:a,center:{x:f,y:d},offset:h});return[g.reduce((k,C,R)=>{let N="";return R>0&&R<g.length-1?N=S5(g[R-1],C,g[R+1],u):N=`${R===0?"M":"L"}${C.x} ${C.y}`,k+=N,k},""),m,y,v,S]}function ty(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function E5(e){var m;const{sourceNode:t,targetNode:r}=e;if(!ty(t)||!ty(r))return null;const i=t.internals.handleBounds||ny(t.handles),s=r.internals.handleBounds||ny(r.handles),a=ry((i==null?void 0:i.source)??[],e.sourceHandle),u=ry(e.connectionMode===oi.Strict?(s==null?void 0:s.target)??[]:((s==null?void 0:s.target)??[]).concat((s==null?void 0:s.source)??[]),e.targetHandle);if(!a||!u)return(m=e.onError)==null||m.call(e,"008",Vn.error008(a?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const f=(a==null?void 0:a.position)||ce.Bottom,d=(u==null?void 0:u.position)||ce.Top,h=js(t,a,f),g=js(r,u,d);return{sourceX:h.x,sourceY:h.y,targetX:g.x,targetY:g.y,sourcePosition:f,targetPosition:d}}function ny(e){if(!e)return null;const t=[],r=[];for(const i of e)i.width=i.width??1,i.height=i.height??1,i.type==="source"?t.push(i):i.type==="target"&&r.push(i);return{source:t,target:r}}function js(e,t,r=ce.Left,i=!1){const s=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,a=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:u,height:f}=t??Un(e);if(i)return{x:s+u/2,y:a+f/2};switch((t==null?void 0:t.position)??r){case ce.Top:return{x:s+u/2,y:a};case ce.Right:return{x:s+u,y:a+f/2};case ce.Bottom:return{x:s+u/2,y:a+f};case ce.Left:return{x:s,y:a+f/2}}}function ry(e,t){return e&&(t?e.find(r=>r.id===t):e[0])||null}function rh(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(i=>`${i}=${e[i]}`).join("&")}`:""}function k5(e,{id:t,defaultColor:r,defaultMarkerStart:i,defaultMarkerEnd:s}){const a=new Set;return e.reduce((u,f)=>([f.markerStart||i,f.markerEnd||s].forEach(d=>{if(d&&typeof d=="object"){const h=rh(d,t);a.has(h)||(u.push({id:h,color:d.color||r,...d}),a.add(h))}}),u),[]).sort((u,f)=>u.id.localeCompare(f.id))}const Oh={nodeOrigin:[0,0],nodeExtent:Rs,elevateNodesOnSelect:!0,defaults:{}},C5={...Oh,checkEquality:!0};function zh(e,t){const r={...e};for(const i in t)t[i]!==void 0&&(r[i]=t[i]);return r}function _5(e,t,r){const i=zh(Oh,r);for(const s of e.values())if(s.parentId)Fh(s,e,t,i);else{const a=Vs(s,i.nodeOrigin),u=li(s.extent)?s.extent:i.nodeExtent,f=no(a,u,Un(s));s.internals.positionAbsolute=f}}function oh(e,t,r,i){var f,d;const s=zh(C5,i),a=new Map(t),u=s!=null&&s.elevateNodesOnSelect?1e3:0;t.clear(),r.clear();for(const h of e){let g=a.get(h.id);if(s.checkEquality&&h===(g==null?void 0:g.internals.userNode))t.set(h.id,g);else{const m=Vs(h,s.nodeOrigin),y=li(h.extent)?h.extent:s.nodeExtent,v=no(m,y,Un(h));g={...s.defaults,...h,measured:{width:(f=h.measured)==null?void 0:f.width,height:(d=h.measured)==null?void 0:d.height},internals:{positionAbsolute:v,handleBounds:h.measured?g==null?void 0:g.internals.handleBounds:void 0,z:E1(h,u),userNode:h}},t.set(h.id,g)}h.parentId&&Fh(g,t,r,i)}}function N5(e,t){if(!e.parentId)return;const r=t.get(e.parentId);r?r.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function Fh(e,t,r,i){const{elevateNodesOnSelect:s,nodeOrigin:a,nodeExtent:u}=zh(Oh,i),f=e.parentId,d=t.get(f);if(!d){console.warn(`Parent node ${f} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}N5(e,r);const h=s?1e3:0,{x:g,y:m,z:y}=b5(e,d,a,u,h),{positionAbsolute:v}=e.internals,S=g!==v.x||m!==v.y;(S||y!==e.internals.z)&&(e.internals={...e.internals,positionAbsolute:S?{x:g,y:m}:v,z:y})}function E1(e,t){return(sn(e.zIndex)?e.zIndex:0)+(e.selected?t:0)}function b5(e,t,r,i,s){const{x:a,y:u}=t.internals.positionAbsolute,f=Un(e),d=Vs(e,r),h=li(e.extent)?no(d,e.extent,f):d;let g=no({x:a+h.x,y:u+h.y},i,f);e.extent==="parent"&&(g=u1(g,f,t));const m=E1(e,s),y=t.internals.z??0;return{x:g.x,y:g.y,z:y>m?y:m}}function Bh(e,t,r,i=[0,0]){var u;const s=[],a=new Map;for(const f of e){const d=t.get(f.parentId);if(!d)continue;const h=((u=a.get(f.parentId))==null?void 0:u.expandedRect)??si(d),g=f1(h,f.rect);a.set(f.parentId,{expandedRect:g,parent:d})}return a.size>0&&a.forEach(({expandedRect:f,parent:d},h)=>{var N;const g=d.internals.positionAbsolute,m=Un(d),y=d.origin??i,v=f.x<g.x?Math.round(Math.abs(g.x-f.x)):0,S=f.y<g.y?Math.round(Math.abs(g.y-f.y)):0,E=Math.max(m.width,Math.round(f.width)),k=Math.max(m.height,Math.round(f.height)),C=(E-m.width)*y[0],R=(k-m.height)*y[1];(v>0||S>0||C||R)&&(s.push({id:h,type:"position",position:{x:d.position.x-v+C,y:d.position.y-S+R}}),(N=r.get(h))==null||N.forEach(b=>{e.some(M=>M.id===b.id)||s.push({id:b.id,type:"position",position:{x:b.position.x+v,y:b.position.y+S}})})),(m.width<f.width||m.height<f.height||v||S)&&s.push({id:h,type:"dimensions",setAttributes:!0,dimensions:{width:E+(v?y[0]*v-C:0),height:k+(S?y[1]*S-R:0)}})}),s}function P5(e,t,r,i,s,a){const u=i==null?void 0:i.querySelector(".xyflow__viewport");let f=!1;if(!u)return{changes:[],updatedInternals:f};const d=[],h=window.getComputedStyle(u),{m22:g}=new window.DOMMatrixReadOnly(h.transform),m=[];for(const y of e.values()){const v=t.get(y.id);if(v)if(v.hidden)v.internals={...v.internals,handleBounds:void 0},f=!0;else{const S=Yu(y.nodeElement),E=v.measured.width!==S.width||v.measured.height!==S.height;if(!!(S.width&&S.height&&(E||!v.internals.handleBounds||y.force))){const C=y.nodeElement.getBoundingClientRect(),R=li(v.extent)?v.extent:a;let{positionAbsolute:N}=v.internals;v.parentId&&v.extent==="parent"?N=u1(N,S,t.get(v.parentId)):R&&(N=no(N,R,S)),v.measured=S,v.internals={...v.internals,positionAbsolute:N,handleBounds:{source:Q0("source",y.nodeElement,C,g,v.id),target:Q0("target",y.nodeElement,C,g,v.id)}},v.parentId&&Fh(v,t,r,{nodeOrigin:s}),f=!0,E&&(d.push({id:v.id,type:"dimensions",dimensions:S}),v.expandParent&&v.parentId&&m.push({id:v.id,parentId:v.parentId,rect:si(v,s)}))}}}if(m.length>0){const y=Bh(m,t,r,s);d.push(...y)}return{changes:d,updatedInternals:f}}async function R5({delta:e,panZoom:t,transform:r,translateExtent:i,width:s,height:a}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const u=await t.setViewportConstrained({x:r[0]+e.x,y:r[1]+e.y,zoom:r[2]},[[0,0],[s,a]],i),f=!!u&&(u.x!==r[0]||u.y!==r[1]||u.k!==r[2]);return Promise.resolve(f)}function k1(e,t,r){e.clear(),t.clear();for(const i of r){const{source:s,target:a,sourceHandle:u=null,targetHandle:f=null}=i,d=`${s}-source-${u}`,h=`${a}-target-${f}`,g=e.get(d)||new Map,m=e.get(h)||new Map,y={edgeId:i.id,source:s,target:a,sourceHandle:u,targetHandle:f};t.set(i.id,i),e.set(d,g.set(`${a}-${f}`,y)),e.set(h,m.set(`${s}-${u}`,y))}}function C1(e,t){if(!e.parentId)return!1;const r=t.get(e.parentId);return r?r.selected?!0:C1(r,t):!1}function oy(e,t,r){let i=e;do{if(i!=null&&i.matches(t))return!0;if(i===r)return!1;i=i.parentElement}while(i);return!1}function T5(e,t,r,i){const s=new Map;for(const[a,u]of e)if((u.selected||u.id===i)&&(!u.parentId||!C1(u,e))&&(u.draggable||t&&typeof u.draggable>"u")){const f=e.get(a);f&&s.set(a,{id:a,position:f.position||{x:0,y:0},distance:{x:r.x-f.internals.positionAbsolute.x,y:r.y-f.internals.positionAbsolute.y},extent:f.extent,parentId:f.parentId,origin:f.origin,expandParent:f.expandParent,internals:{positionAbsolute:f.internals.positionAbsolute||{x:0,y:0}},measured:{width:f.measured.width??0,height:f.measured.height??0}})}return s}function dd({nodeId:e,dragItems:t,nodeLookup:r,dragging:i=!0}){var u,f,d;const s=[];for(const[h,g]of t){const m=(u=r.get(h))==null?void 0:u.internals.userNode;m&&s.push({...m,position:g.position,dragging:i})}if(!e)return[s[0],s];const a=(f=r.get(e))==null?void 0:f.internals.userNode;return[a?{...a,position:((d=t.get(e))==null?void 0:d.position)||a.position,dragging:i}:s[0],s]}function I5({onNodeMouseDown:e,getStoreItems:t,onDragStart:r,onDrag:i,onDragStop:s}){let a={x:null,y:null},u=0,f=new Map,d=!1,h={x:0,y:0},g=null,m=!1,y=null,v=!1;function S({noDragClassName:k,handleSelector:C,domNode:R,isSelectable:N,nodeId:b,nodeClickDistance:M=0}){y=Lt(R);function L({x:Y,y:ee},ne){const{nodeLookup:J,nodeExtent:I,snapGrid:U,snapToGrid:F,nodeOrigin:q,onNodeDrag:A,onSelectionDrag:O,onError:z,updateNodePositions:T}=t();a={x:Y,y:ee};let H=!1,Z={x:0,y:0,x2:0,y2:0};if(f.size>1&&I){const te=Us(f);Z=eh(te)}for(const[te,ie]of f){if(!J.has(te))continue;let le={x:Y-ie.distance.x,y:ee-ie.distance.y};F&&(le=qu(le,U));let de=[[I[0][0],I[0][1]],[I[1][0],I[1][1]]];if(f.size>1&&I&&!ie.extent){const{positionAbsolute:Se}=ie.internals,we=Se.x-Z.x+I[0][0],ge=Se.x+ie.measured.width-Z.x2+I[1][0],Pe=Se.y-Z.y+I[0][1],$e=Se.y+ie.measured.height-Z.y2+I[1][1];de=[[we,Pe],[ge,$e]]}const{position:re,positionAbsolute:he}=a1({nodeId:te,nextPosition:le,nodeLookup:J,nodeExtent:de,nodeOrigin:q,onError:z});H=H||ie.position.x!==re.x||ie.position.y!==re.y,ie.position=re,ie.internals.positionAbsolute=he}if(H&&(T(f,!0),ne&&(i||A||!b&&O))){const[te,ie]=dd({nodeId:b,dragItems:f,nodeLookup:J});i==null||i(ne,f,te,ie),A==null||A(ne,te,ie),b||O==null||O(ne,ie)}}async function j(){if(!g)return;const{transform:Y,panBy:ee,autoPanSpeed:ne}=t(),[J,I]=c1(h,g,ne);(J!==0||I!==0)&&(a.x=(a.x??0)-J/Y[2],a.y=(a.y??0)-I/Y[2],await ee({x:J,y:I})&&L(a,null)),u=requestAnimationFrame(j)}function G(Y){var H;const{nodeLookup:ee,multiSelectionActive:ne,nodesDraggable:J,transform:I,snapGrid:U,snapToGrid:F,selectNodesOnDrag:q,onNodeDragStart:A,onSelectionDragStart:O,unselectNodesAndEdges:z}=t();m=!0,(!q||!N)&&!ne&&b&&((H=ee.get(b))!=null&&H.selected||z()),N&&q&&b&&(e==null||e(b));const T=ms(Y.sourceEvent,{transform:I,snapGrid:U,snapToGrid:F,containerBounds:g});if(a=T,f=T5(ee,J,T,b),f.size>0&&(r||A||!b&&O)){const[Z,te]=dd({nodeId:b,dragItems:f,nodeLookup:ee});r==null||r(Y.sourceEvent,f,Z,te),A==null||A(Y.sourceEvent,Z,te),b||O==null||O(Y.sourceEvent,te)}}const V=Bv().clickDistance(M).on("start",Y=>{const{domNode:ee,nodeDragThreshold:ne,transform:J,snapGrid:I,snapToGrid:U}=t();g=(ee==null?void 0:ee.getBoundingClientRect())||null,v=!1,ne===0&&G(Y),a=ms(Y.sourceEvent,{transform:J,snapGrid:I,snapToGrid:U,containerBounds:g}),h=Dn(Y.sourceEvent,g)}).on("drag",Y=>{const{autoPanOnNodeDrag:ee,transform:ne,snapGrid:J,snapToGrid:I,nodeDragThreshold:U,nodeLookup:F}=t(),q=ms(Y.sourceEvent,{transform:ne,snapGrid:J,snapToGrid:I,containerBounds:g});if((Y.sourceEvent.type==="touchmove"&&Y.sourceEvent.touches.length>1||b&&!F.has(b))&&(v=!0),!v){if(!d&&ee&&m&&(d=!0,j()),!m){const A=q.xSnapped-(a.x??0),O=q.ySnapped-(a.y??0);Math.sqrt(A*A+O*O)>U&&G(Y)}(a.x!==q.xSnapped||a.y!==q.ySnapped)&&f&&m&&(h=Dn(Y.sourceEvent,g),L(q,Y.sourceEvent))}}).on("end",Y=>{if(!(!m||v)&&(d=!1,m=!1,cancelAnimationFrame(u),f.size>0)){const{nodeLookup:ee,updateNodePositions:ne,onNodeDragStop:J,onSelectionDragStop:I}=t();if(ne(f,!1),s||J||!b&&I){const[U,F]=dd({nodeId:b,dragItems:f,nodeLookup:ee,dragging:!1});s==null||s(Y.sourceEvent,f,U,F),J==null||J(Y.sourceEvent,U,F),b||I==null||I(Y.sourceEvent,F)}}}).filter(Y=>{const ee=Y.target;return!Y.button&&(!k||!oy(ee,`.${k}`,R))&&(!C||oy(ee,C,R))});y.call(V)}function E(){y==null||y.on(".drag",null)}return{update:S,destroy:E}}function j5(e,t,r){const i=[],s={x:e.x-r,y:e.y-r,width:r*2,height:r*2};for(const a of t.values())Is(s,si(a))>0&&i.push(a);return i}const $5=250;function A5(e,t,r,i){var f,d;let s=[],a=1/0;const u=j5(e,r,t+$5);for(const h of u){const g=[...((f=h.internals.handleBounds)==null?void 0:f.source)??[],...((d=h.internals.handleBounds)==null?void 0:d.target)??[]];for(const m of g){if(i.nodeId===m.nodeId&&i.type===m.type&&i.id===m.id)continue;const{x:y,y:v}=js(h,m,m.position,!0),S=Math.sqrt(Math.pow(y-e.x,2)+Math.pow(v-e.y,2));S>t||(S<a?(s=[{...m,x:y,y:v}],a=S):S===a&&s.push({...m,x:y,y:v}))}}if(!s.length)return null;if(s.length>1){const h=i.type==="source"?"target":"source";return s.find(g=>g.type===h)??s[0]}return s[0]}function _1(e,t,r,i,s,a=!1){var h,g,m;const u=i.get(e);if(!u)return null;const f=s==="strict"?(h=u.internals.handleBounds)==null?void 0:h[t]:[...((g=u.internals.handleBounds)==null?void 0:g.source)??[],...((m=u.internals.handleBounds)==null?void 0:m.target)??[]],d=(r?f==null?void 0:f.find(y=>y.id===r):f==null?void 0:f[0])??null;return d&&a?{...d,...js(u,d,d.position,!0)}:d}function N1(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function M5(e,t){let r=null;return t?r=!0:e&&!t&&(r=!1),r}const b1=()=>!0;function L5(e,{connectionMode:t,connectionRadius:r,handleId:i,nodeId:s,edgeUpdaterType:a,isTarget:u,domNode:f,nodeLookup:d,lib:h,autoPanOnConnect:g,flowId:m,panBy:y,cancelConnection:v,onConnectStart:S,onConnect:E,onConnectEnd:k,isValidConnection:C=b1,onReconnectEnd:R,updateConnection:N,getTransform:b,getFromHandle:M,autoPanSpeed:L}){const j=g1(e.target);let G=0,V;const{x:Y,y:ee}=Dn(e),ne=j==null?void 0:j.elementFromPoint(Y,ee),J=N1(a,ne),I=f==null?void 0:f.getBoundingClientRect();if(!I||!J)return;const U=_1(s,J,i,d,t);if(!U)return;let F=Dn(e,I),q=!1,A=null,O=!1,z=null;function T(){if(!g||!I)return;const[he,Se]=c1(F,I,L);y({x:he,y:Se}),G=requestAnimationFrame(T)}const H={...U,nodeId:s,type:J,position:U.position},Z=d.get(s),ie={inProgress:!0,isValid:null,from:js(Z,H,ce.Left,!0),fromHandle:H,fromPosition:H.position,fromNode:Z,to:F,toHandle:null,toPosition:X0[H.position],toNode:null};N(ie);let le=ie;S==null||S(e,{nodeId:s,handleId:i,handleType:J});function de(he){if(!M()||!H){re(he);return}const Se=b();F=Dn(he,I),V=A5(Ws(F,Se,!1,[1,1]),r,d,H),q||(T(),q=!0);const we=P1(he,{handle:V,connectionMode:t,fromNodeId:s,fromHandleId:i,fromType:u?"target":"source",isValidConnection:C,doc:j,lib:h,flowId:m,nodeLookup:d});z=we.handleDomNode,A=we.connection,O=M5(!!V,we.isValid);const ge={...le,isValid:O,to:V&&O?d1({x:V.x,y:V.y},Se):F,toHandle:we.toHandle,toPosition:O&&we.toHandle?we.toHandle.position:X0[H.position],toNode:we.toHandle?d.get(we.toHandle.nodeId):null};O&&V&&le.toHandle&&ge.toHandle&&le.toHandle.type===ge.toHandle.type&&le.toHandle.nodeId===ge.toHandle.nodeId&&le.toHandle.id===ge.toHandle.id&&le.to.x===ge.to.x&&le.to.y===ge.to.y||(N(ge),le=ge)}function re(he){(V||z)&&A&&O&&(E==null||E(A));const{inProgress:Se,...we}=le,ge={...we,toPosition:le.toHandle?le.toPosition:null};k==null||k(he,ge),a&&(R==null||R(he,ge)),v(),cancelAnimationFrame(G),q=!1,O=!1,A=null,z=null,j.removeEventListener("mousemove",de),j.removeEventListener("mouseup",re),j.removeEventListener("touchmove",de),j.removeEventListener("touchend",re)}j.addEventListener("mousemove",de),j.addEventListener("mouseup",re),j.addEventListener("touchmove",de),j.addEventListener("touchend",re)}function P1(e,{handle:t,connectionMode:r,fromNodeId:i,fromHandleId:s,fromType:a,doc:u,lib:f,flowId:d,isValidConnection:h=b1,nodeLookup:g}){const m=a==="target",y=t?u.querySelector(`.${f}-flow__handle[data-id="${d}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:v,y:S}=Dn(e),E=u.elementFromPoint(v,S),k=E!=null&&E.classList.contains(`${f}-flow__handle`)?E:y,C={handleDomNode:k,isValid:!1,connection:null,toHandle:null};if(k){const R=N1(void 0,k),N=k.getAttribute("data-nodeid"),b=k.getAttribute("data-handleid"),M=k.classList.contains("connectable"),L=k.classList.contains("connectableend");if(!N||!R)return C;const j={source:m?N:i,sourceHandle:m?b:s,target:m?i:N,targetHandle:m?s:b};C.connection=j;const V=M&&L&&(r===oi.Strict?m&&R==="source"||!m&&R==="target":N!==i||b!==s);C.isValid=V&&h(j),C.toHandle=_1(N,R,b,g,r,!1)}return C}const ih={onPointerDown:L5,isValid:P1};function D5({domNode:e,panZoom:t,getTransform:r,getViewScale:i}){const s=Lt(e);function a({translateExtent:f,width:d,height:h,zoomStep:g=10,pannable:m=!0,zoomable:y=!0,inversePan:v=!1}){const S=N=>{const b=r();if(N.sourceEvent.type!=="wheel"||!t)return;const M=-N.sourceEvent.deltaY*(N.sourceEvent.deltaMode===1?.05:N.sourceEvent.deltaMode?1:.002)*g,L=b[2]*Math.pow(2,M);t.scaleTo(L)};let E=[0,0];const k=N=>{(N.sourceEvent.type==="mousedown"||N.sourceEvent.type==="touchstart")&&(E=[N.sourceEvent.clientX??N.sourceEvent.touches[0].clientX,N.sourceEvent.clientY??N.sourceEvent.touches[0].clientY])},C=N=>{const b=r();if(N.sourceEvent.type!=="mousemove"&&N.sourceEvent.type!=="touchmove"||!t)return;const M=[N.sourceEvent.clientX??N.sourceEvent.touches[0].clientX,N.sourceEvent.clientY??N.sourceEvent.touches[0].clientY],L=[M[0]-E[0],M[1]-E[1]];E=M;const j=i()*Math.max(b[2],Math.log(b[2]))*(v?-1:1),G={x:b[0]-L[0]*j,y:b[1]-L[1]*j},V=[[0,0],[d,h]];t.setViewportConstrained({x:G.x,y:G.y,zoom:b[2]},V,f)},R=n1().on("start",k).on("zoom",m?C:null).on("zoom.wheel",y?S:null);s.call(R,{})}function u(){s.on("zoom",null)}return{update:a,destroy:u,pointer:nn}}const O5=(e,t)=>e.x!==t.x||e.y!==t.y||e.zoom!==t.k,Xu=e=>({x:e.x,y:e.y,zoom:e.k}),hd=({x:e,y:t,zoom:r})=>Vu.translate(e,t).scale(r),Vo=(e,t)=>e.target.closest(`.${t}`),R1=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),pd=(e,t=0,r=()=>{})=>{const i=typeof t=="number"&&t>0;return i||r(),i?e.transition().duration(t).on("end",r):e},T1=e=>{const t=e.ctrlKey&&wu()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function z5({zoomPanValues:e,noWheelClassName:t,d3Selection:r,d3Zoom:i,panOnScrollMode:s,panOnScrollSpeed:a,zoomOnPinch:u,onPanZoomStart:f,onPanZoom:d,onPanZoomEnd:h}){return g=>{if(Vo(g,t))return!1;g.preventDefault(),g.stopImmediatePropagation();const m=r.property("__zoom").k||1;if(g.ctrlKey&&u){const k=nn(g),C=T1(g),R=m*Math.pow(2,C);i.scaleTo(r,R,k,g);return}const y=g.deltaMode===1?20:1;let v=s===Qr.Vertical?0:g.deltaX*y,S=s===Qr.Horizontal?0:g.deltaY*y;!wu()&&g.shiftKey&&s!==Qr.Vertical&&(v=g.deltaY*y,S=0),i.translateBy(r,-(v/m)*a,-(S/m)*a,{internal:!0});const E=Xu(r.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling||(e.isPanScrolling=!0,f==null||f(g,E)),e.isPanScrolling&&(d==null||d(g,E),e.panScrollTimeout=setTimeout(()=>{h==null||h(g,E),e.isPanScrolling=!1},150))}}function F5({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:r}){return function(i,s){if(!t&&i.type==="wheel"&&!i.ctrlKey||Vo(i,e))return null;i.preventDefault(),r.call(this,i,s)}}function B5({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:r}){return i=>{var a,u,f;if((a=i.sourceEvent)!=null&&a.internal)return;const s=Xu(i.transform);e.mouseButton=((u=i.sourceEvent)==null?void 0:u.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=s,((f=i.sourceEvent)==null?void 0:f.type)==="mousedown"&&t(!0),r&&(r==null||r(i.sourceEvent,s))}}function H5({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:r,onTransformChange:i,onPanZoom:s}){return a=>{var u,f;e.usedRightMouseButton=!!(r&&R1(t,e.mouseButton??0)),(u=a.sourceEvent)!=null&&u.sync||i([a.transform.x,a.transform.y,a.transform.k]),s&&!((f=a.sourceEvent)!=null&&f.internal)&&(s==null||s(a.sourceEvent,Xu(a.transform)))}}function V5({zoomPanValues:e,panOnDrag:t,panOnScroll:r,onDraggingChange:i,onPanZoomEnd:s,onPaneContextMenu:a}){return u=>{var f;if(!((f=u.sourceEvent)!=null&&f.internal)&&(e.isZoomingOrPanning=!1,a&&R1(t,e.mouseButton??0)&&!e.usedRightMouseButton&&u.sourceEvent&&a(u.sourceEvent),e.usedRightMouseButton=!1,i(!1),s&&O5(e.prevViewport,u.transform))){const d=Xu(u.transform);e.prevViewport=d,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{s==null||s(u.sourceEvent,d)},r?150:0)}}}function U5({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:r,panOnDrag:i,panOnScroll:s,zoomOnDoubleClick:a,userSelectionActive:u,noWheelClassName:f,noPanClassName:d,lib:h}){return g=>{var S;const m=e||t,y=r&&g.ctrlKey;if(g.button===1&&g.type==="mousedown"&&(Vo(g,`${h}-flow__node`)||Vo(g,`${h}-flow__edge`)))return!0;if(!i&&!m&&!s&&!a&&!r||u||Vo(g,f)&&g.type==="wheel"||Vo(g,d)&&(g.type!=="wheel"||s&&g.type==="wheel"&&!e)||!r&&g.ctrlKey&&g.type==="wheel")return!1;if(!r&&g.type==="touchstart"&&((S=g.touches)==null?void 0:S.length)>1)return g.preventDefault(),!1;if(!m&&!s&&!y&&g.type==="wheel"||!i&&(g.type==="mousedown"||g.type==="touchstart")||Array.isArray(i)&&!i.includes(g.button)&&g.type==="mousedown")return!1;const v=Array.isArray(i)&&i.includes(g.button)||!g.button||g.button<=1;return(!g.ctrlKey||g.type==="wheel")&&v}}function W5({domNode:e,minZoom:t,maxZoom:r,paneClickDistance:i,translateExtent:s,viewport:a,onPanZoom:u,onPanZoomStart:f,onPanZoomEnd:d,onDraggingChange:h}){const g={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},m=e.getBoundingClientRect(),y=n1().clickDistance(!sn(i)||i<0?0:i).scaleExtent([t,r]).translateExtent(s),v=Lt(e).call(y);N({x:a.x,y:a.y,zoom:ii(a.zoom,t,r)},[[0,0],[m.width,m.height]],s);const S=v.on("wheel.zoom"),E=v.on("dblclick.zoom");y.wheelDelta(T1);function k(ne,J){return v?new Promise(I=>{y==null||y.transform(pd(v,J==null?void 0:J.duration,()=>I(!0)),ne)}):Promise.resolve(!1)}function C({noWheelClassName:ne,noPanClassName:J,onPaneContextMenu:I,userSelectionActive:U,panOnScroll:F,panOnDrag:q,panOnScrollMode:A,panOnScrollSpeed:O,preventScrolling:z,zoomOnPinch:T,zoomOnScroll:H,zoomOnDoubleClick:Z,zoomActivationKeyPressed:te,lib:ie,onTransformChange:le}){U&&!g.isZoomingOrPanning&&R();const re=F&&!te&&!U?z5({zoomPanValues:g,noWheelClassName:ne,d3Selection:v,d3Zoom:y,panOnScrollMode:A,panOnScrollSpeed:O,zoomOnPinch:T,onPanZoomStart:f,onPanZoom:u,onPanZoomEnd:d}):F5({noWheelClassName:ne,preventScrolling:z,d3ZoomHandler:S});if(v.on("wheel.zoom",re,{passive:!1}),!U){const Se=B5({zoomPanValues:g,onDraggingChange:h,onPanZoomStart:f});y.on("start",Se);const we=H5({zoomPanValues:g,panOnDrag:q,onPaneContextMenu:!!I,onPanZoom:u,onTransformChange:le});y.on("zoom",we);const ge=V5({zoomPanValues:g,panOnDrag:q,panOnScroll:F,onPaneContextMenu:I,onPanZoomEnd:d,onDraggingChange:h});y.on("end",ge)}const he=U5({zoomActivationKeyPressed:te,panOnDrag:q,zoomOnScroll:H,panOnScroll:F,zoomOnDoubleClick:Z,zoomOnPinch:T,userSelectionActive:U,noPanClassName:J,noWheelClassName:ne,lib:ie});y.filter(he),Z?v.on("dblclick.zoom",E):v.on("dblclick.zoom",null)}function R(){y.on("zoom",null)}async function N(ne,J,I){const U=hd(ne),F=y==null?void 0:y.constrain()(U,J,I);return F&&await k(F),new Promise(q=>q(F))}async function b(ne,J){const I=hd(ne);return await k(I,J),new Promise(U=>U(I))}function M(ne){if(v){const J=hd(ne),I=v.property("__zoom");(I.k!==ne.zoom||I.x!==ne.x||I.y!==ne.y)&&(y==null||y.transform(v,J,null,{sync:!0}))}}function L(){const ne=v?t1(v.node()):{x:0,y:0,k:1};return{x:ne.x,y:ne.y,zoom:ne.k}}function j(ne,J){return v?new Promise(I=>{y==null||y.scaleTo(pd(v,J==null?void 0:J.duration,()=>I(!0)),ne)}):Promise.resolve(!1)}function G(ne,J){return v?new Promise(I=>{y==null||y.scaleBy(pd(v,J==null?void 0:J.duration,()=>I(!0)),ne)}):Promise.resolve(!1)}function V(ne){y==null||y.scaleExtent(ne)}function Y(ne){y==null||y.translateExtent(ne)}function ee(ne){const J=!sn(ne)||ne<0?0:ne;y==null||y.clickDistance(J)}return{update:C,destroy:R,setViewport:b,setViewportConstrained:N,getViewport:L,scaleTo:j,scaleBy:G,setScaleExtent:V,setTranslateExtent:Y,syncViewport:M,setClickDistance:ee}}var ys;(function(e){e.Line="line",e.Handle="handle"})(ys||(ys={}));function q5({width:e,prevWidth:t,height:r,prevHeight:i,affectsX:s,affectsY:a}){const u=e-t,f=r-i,d=[u>0?1:u<0?-1:0,f>0?1:f<0?-1:0];return u&&s&&(d[0]=d[0]*-1),f&&a&&(d[1]=d[1]*-1),d}function Y5(e){const t=e.includes("right")||e.includes("left"),r=e.includes("bottom")||e.includes("top"),i=e.includes("left"),s=e.includes("top");return{isHorizontal:t,isVertical:r,affectsX:i,affectsY:s}}function mr(e,t){return Math.max(0,t-e)}function yr(e,t){return Math.max(0,e-t)}function Ia(e,t,r){return Math.max(0,t-e,e-r)}function iy(e,t){return e?!t:t}function X5(e,t,r,i,s,a,u,f){let{affectsX:d,affectsY:h}=t;const{isHorizontal:g,isVertical:m}=t,y=g&&m,{xSnapped:v,ySnapped:S}=r,{minWidth:E,maxWidth:k,minHeight:C,maxHeight:R}=i,{x:N,y:b,width:M,height:L,aspectRatio:j}=e;let G=Math.floor(g?v-e.pointerX:0),V=Math.floor(m?S-e.pointerY:0);const Y=M+(d?-G:G),ee=L+(h?-V:V),ne=-a[0]*M,J=-a[1]*L;let I=Ia(Y,E,k),U=Ia(ee,C,R);if(u){let A=0,O=0;d&&G<0?A=mr(N+G+ne,u[0][0]):!d&&G>0&&(A=yr(N+Y+ne,u[1][0])),h&&V<0?O=mr(b+V+J,u[0][1]):!h&&V>0&&(O=yr(b+ee+J,u[1][1])),I=Math.max(I,A),U=Math.max(U,O)}if(f){let A=0,O=0;d&&G>0?A=yr(N+G,f[0][0]):!d&&G<0&&(A=mr(N+Y,f[1][0])),h&&V>0?O=yr(b+V,f[0][1]):!h&&V<0&&(O=mr(b+ee,f[1][1])),I=Math.max(I,A),U=Math.max(U,O)}if(s){if(g){const A=Ia(Y/j,C,R)*j;if(I=Math.max(I,A),u){let O=0;!d&&!h||d&&!h&&y?O=yr(b+J+Y/j,u[1][1])*j:O=mr(b+J+(d?G:-G)/j,u[0][1])*j,I=Math.max(I,O)}if(f){let O=0;!d&&!h||d&&!h&&y?O=mr(b+Y/j,f[1][1])*j:O=yr(b+(d?G:-G)/j,f[0][1])*j,I=Math.max(I,O)}}if(m){const A=Ia(ee*j,E,k)/j;if(U=Math.max(U,A),u){let O=0;!d&&!h||h&&!d&&y?O=yr(N+ee*j+ne,u[1][0])/j:O=mr(N+(h?V:-V)*j+ne,u[0][0])/j,U=Math.max(U,O)}if(f){let O=0;!d&&!h||h&&!d&&y?O=mr(N+ee*j,f[1][0])/j:O=yr(N+(h?V:-V)*j,f[0][0])/j,U=Math.max(U,O)}}}V=V+(V<0?U:-U),G=G+(G<0?I:-I),s&&(y?Y>ee*j?V=(iy(d,h)?-G:G)/j:G=(iy(d,h)?-V:V)*j:g?(V=G/j,h=d):(G=V*j,d=h));const F=d?N+G:N,q=h?b+V:b;return{width:M+(d?-G:G),height:L+(h?-V:V),x:a[0]*G*(d?-1:1)+F,y:a[1]*V*(h?-1:1)+q}}const I1={width:0,height:0,x:0,y:0},G5={...I1,pointerX:0,pointerY:0,aspectRatio:1};function K5(e){return[[0,0],[e.measured.width,e.measured.height]]}function Q5(e,t,r){const i=t.position.x+e.position.x,s=t.position.y+e.position.y,a=e.measured.width??0,u=e.measured.height??0,f=r[0]*a,d=r[1]*u;return[[i-f,s-d],[i+a-f,s+u-d]]}function J5({domNode:e,nodeId:t,getStoreItems:r,onChange:i,onEnd:s}){const a=Lt(e);function u({controlPosition:d,boundaries:h,keepAspectRatio:g,onResizeStart:m,onResize:y,onResizeEnd:v,shouldResize:S}){let E={...I1},k={...G5};const C=Y5(d);let R,N=null,b=[],M,L,j;const G=Bv().on("start",V=>{const{nodeLookup:Y,transform:ee,snapGrid:ne,snapToGrid:J,nodeOrigin:I,paneDomNode:U}=r();if(R=Y.get(t),!R)return;N=(U==null?void 0:U.getBoundingClientRect())??null;const{xSnapped:F,ySnapped:q}=ms(V.sourceEvent,{transform:ee,snapGrid:ne,snapToGrid:J,containerBounds:N});E={width:R.measured.width??0,height:R.measured.height??0,x:R.position.x??0,y:R.position.y??0},k={...E,pointerX:F,pointerY:q,aspectRatio:E.width/E.height},M=void 0,R.parentId&&(R.extent==="parent"||R.expandParent)&&(M=Y.get(R.parentId),L=M&&R.extent==="parent"?K5(M):void 0),b=[],j=void 0;for(const[A,O]of Y)if(O.parentId===t&&(b.push({id:A,position:{...O.position},extent:O.extent}),O.extent==="parent"||O.expandParent)){const z=Q5(O,R,O.origin??I);j?j=[[Math.min(z[0][0],j[0][0]),Math.min(z[0][1],j[0][1])],[Math.max(z[1][0],j[1][0]),Math.max(z[1][1],j[1][1])]]:j=z}m==null||m(V,{...E})}).on("drag",V=>{const{transform:Y,snapGrid:ee,snapToGrid:ne,nodeOrigin:J}=r(),I=ms(V.sourceEvent,{transform:Y,snapGrid:ee,snapToGrid:ne,containerBounds:N}),U=[];if(!R)return;const{x:F,y:q,width:A,height:O}=E,z={},T=R.origin??J,{width:H,height:Z,x:te,y:ie}=X5(k,C,I,h,g,T,L,j),le=H!==A,de=Z!==O,re=te!==F&&le,he=ie!==q&&de;if(!re&&!he&&!le&&!de)return;if((re||he||T[0]===1||T[1]===1)&&(z.x=re?te:E.x,z.y=he?ie:E.y,E.x=z.x,E.y=z.y,b.length>0)){const Pe=te-F,$e=ie-q;for(const Ke of b)Ke.position={x:Ke.position.x-Pe+T[0]*(H-A),y:Ke.position.y-$e+T[1]*(Z-O)},U.push(Ke)}if((le||de)&&(z.width=le?H:E.width,z.height=de?Z:E.height,E.width=z.width,E.height=z.height),M&&R.expandParent){const Pe=T[0]*(z.width??0);z.x&&z.x<Pe&&(E.x=Pe,k.x=k.x-(z.x-Pe));const $e=T[1]*(z.height??0);z.y&&z.y<$e&&(E.y=$e,k.y=k.y-(z.y-$e))}const Se=q5({width:E.width,prevWidth:A,height:E.height,prevHeight:O,affectsX:C.affectsX,affectsY:C.affectsY}),we={...E,direction:Se};(S==null?void 0:S(V,we))!==!1&&(y==null||y(V,we),i(z,U))}).on("end",V=>{v==null||v(V,{...E}),s==null||s()});a.call(G)}function f(){a.on(".drag",null)}return{update:u,destroy:f}}var gd={exports:{}},md={},yd={exports:{}},xd={};/**
|
||
* @license React
|
||
* use-sync-external-store-shim.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var sy;function Z5(){if(sy)return xd;sy=1;var e=As();function t(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}var r=typeof Object.is=="function"?Object.is:t,i=e.useState,s=e.useEffect,a=e.useLayoutEffect,u=e.useDebugValue;function f(m,y){var v=y(),S=i({inst:{value:v,getSnapshot:y}}),E=S[0].inst,k=S[1];return a(function(){E.value=v,E.getSnapshot=y,d(E)&&k({inst:E})},[m,v,y]),s(function(){return d(E)&&k({inst:E}),m(function(){d(E)&&k({inst:E})})},[m]),u(v),v}function d(m){var y=m.getSnapshot;m=m.value;try{var v=y();return!r(m,v)}catch{return!0}}function h(m,y){return y()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return xd.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,xd}var ly;function eR(){return ly||(ly=1,yd.exports=Z5()),yd.exports}/**
|
||
* @license React
|
||
* use-sync-external-store-shim/with-selector.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var ay;function tR(){if(ay)return md;ay=1;var e=As(),t=eR();function r(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}var i=typeof Object.is=="function"?Object.is:r,s=t.useSyncExternalStore,a=e.useRef,u=e.useEffect,f=e.useMemo,d=e.useDebugValue;return md.useSyncExternalStoreWithSelector=function(h,g,m,y,v){var S=a(null);if(S.current===null){var E={hasValue:!1,value:null};S.current=E}else E=S.current;S=f(function(){function C(L){if(!R){if(R=!0,N=L,L=y(L),v!==void 0&&E.hasValue){var j=E.value;if(v(j,L))return b=j}return b=L}if(j=b,i(N,L))return j;var G=y(L);return v!==void 0&&v(j,G)?j:(N=L,b=G)}var R=!1,N,b,M=m===void 0?null:m;return[function(){return C(g())},M===null?void 0:function(){return C(M())}]},[g,m,y,v]);var k=s(h,S[0],S[1]);return u(function(){E.hasValue=!0,E.value=k},[k]),d(k),k},md}var uy;function nR(){return uy||(uy=1,gd.exports=tR()),gd.exports}var rR=nR();const oR=rt(rR),iR={},cy=e=>{let t;const r=new Set,i=(g,m)=>{const y=typeof g=="function"?g(t):g;if(!Object.is(y,t)){const v=t;t=m??(typeof y!="object"||y===null)?y:Object.assign({},t,y),r.forEach(S=>S(t,v))}},s=()=>t,d={setState:i,getState:s,getInitialState:()=>h,subscribe:g=>(r.add(g),()=>r.delete(g)),destroy:()=>{(iR?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},h=t=e(i,s,d);return d},sR=e=>e?cy(e):cy,{useDebugValue:lR}=yt,{useSyncExternalStoreWithSelector:aR}=oR,uR=e=>e;function j1(e,t=uR,r){const i=aR(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return lR(i),i}const fy=(e,t)=>{const r=sR(e),i=(s,a=t)=>j1(r,s,a);return Object.assign(i,r),i},cR=(e,t)=>e?fy(e,t):fy;function Ge(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,s]of e)if(!Object.is(s,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(const i of r)if(!Object.prototype.hasOwnProperty.call(t,i)||!Object.is(e[i],t[i]))return!1;return!0}const Gu=P.createContext(null),fR=Gu.Provider,$1=Vn.error001();function Ie(e,t){const r=P.useContext(Gu);if(r===null)throw new Error($1);return j1(r,e,t)}function He(){const e=P.useContext(Gu);if(e===null)throw new Error($1);return P.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const dy={display:"none"},dR={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},A1="react-flow__node-desc",M1="react-flow__edge-desc",hR="react-flow__aria-live",pR=e=>e.ariaLiveMessage;function gR({rfId:e}){const t=Ie(pR);return w.jsx("div",{id:`${hR}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:dR,children:t})}function mR({rfId:e,disableKeyboardA11y:t}){return w.jsxs(w.Fragment,{children:[w.jsxs("div",{id:`${A1}-${e}`,style:dy,children:["Press enter or space to select a node.",!t&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "]}),w.jsx("div",{id:`${M1}-${e}`,style:dy,children:"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."}),!t&&w.jsx(gR,{rfId:e})]})}const yR=e=>e.userSelectionActive?"none":"all";function Hh({position:e="top-left",children:t,className:r,style:i,...s}){const a=Ie(yR),u=`${e}`.split("-");return w.jsx("div",{className:et(["react-flow__panel",r,...u]),style:{...i,pointerEvents:a},...s,children:t})}function xR({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:w.jsx(Hh,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:w.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const vR=e=>{const t=[],r=[];for(const[,i]of e.nodeLookup)i.selected&&t.push(i.internals.userNode);for(const[,i]of e.edgeLookup)i.selected&&r.push(i);return{selectedNodes:t,selectedEdges:r}},ja=e=>e.id;function wR(e,t){return Ge(e.selectedNodes.map(ja),t.selectedNodes.map(ja))&&Ge(e.selectedEdges.map(ja),t.selectedEdges.map(ja))}function SR({onSelectionChange:e}){const t=He(),{selectedNodes:r,selectedEdges:i}=Ie(vR,wR);return P.useEffect(()=>{const s={nodes:r,edges:i};e==null||e(s),t.getState().onSelectionChangeHandlers.forEach(a=>a(s))},[r,i,e]),null}const ER=e=>!!e.onSelectionChangeHandlers;function kR({onSelectionChange:e}){const t=Ie(ER);return e||t?w.jsx(SR,{onSelectionChange:e}):null}const L1=[0,0],CR={x:0,y:0,zoom:1},_R=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","onBeforeDelete","debug","autoPanSpeed","paneClickDistance"],hy=[..._R,"rfId"],NR=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setPaneClickDistance:e.setPaneClickDistance}),py={translateExtent:Rs,nodeOrigin:L1,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1",paneClickDistance:0};function bR(e){const{setNodes:t,setEdges:r,setMinZoom:i,setMaxZoom:s,setTranslateExtent:a,setNodeExtent:u,reset:f,setDefaultNodesAndEdges:d,setPaneClickDistance:h}=Ie(NR,Ge),g=He();P.useEffect(()=>(d(e.defaultNodes,e.defaultEdges),()=>{m.current=py,f()}),[]);const m=P.useRef(py);return P.useEffect(()=>{for(const y of hy){const v=e[y],S=m.current[y];v!==S&&(typeof e[y]>"u"||(y==="nodes"?t(v):y==="edges"?r(v):y==="minZoom"?i(v):y==="maxZoom"?s(v):y==="translateExtent"?a(v):y==="nodeExtent"?u(v):y==="paneClickDistance"?h(v):y==="fitView"?g.setState({fitViewOnInit:v}):y==="fitViewOptions"?g.setState({fitViewOnInitOptions:v}):g.setState({[y]:v})))}m.current=e},hy.map(y=>e[y])),null}function gy(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function PR(e){var i;const[t,r]=P.useState(e==="system"?null:e);return P.useEffect(()=>{if(e!=="system"){r(e);return}const s=gy(),a=()=>r(s!=null&&s.matches?"dark":"light");return a(),s==null||s.addEventListener("change",a),()=>{s==null||s.removeEventListener("change",a)}},[e]),t!==null?t:(i=gy())!=null&&i.matches?"dark":"light"}const my=typeof document<"u"?document:null;function $s(e=null,t={target:my,actInsideInputWithModifier:!0}){const[r,i]=P.useState(!1),s=P.useRef(!1),a=P.useRef(new Set([])),[u,f]=P.useMemo(()=>{if(e!==null){const h=(Array.isArray(e)?e:[e]).filter(m=>typeof m=="string").map(m=>m.replace("+",`
|
||
`).replace(`
|
||
|
||
`,`
|
||
+`).split(`
|
||
`)),g=h.reduce((m,y)=>m.concat(...y),[]);return[h,g]}return[[],[]]},[e]);return P.useEffect(()=>{const d=(t==null?void 0:t.target)||my;if(e!==null){const h=y=>{if(s.current=y.ctrlKey||y.metaKey||y.shiftKey,(!s.current||s.current&&!t.actInsideInputWithModifier)&&th(y))return!1;const S=xy(y.code,f);a.current.add(y[S]),yy(u,a.current,!1)&&(y.preventDefault(),i(!0))},g=y=>{if((!s.current||s.current&&!t.actInsideInputWithModifier)&&th(y))return!1;const S=xy(y.code,f);yy(u,a.current,!0)?(i(!1),a.current.clear()):a.current.delete(y[S]),y.key==="Meta"&&a.current.clear(),s.current=!1},m=()=>{a.current.clear(),i(!1)};return d==null||d.addEventListener("keydown",h),d==null||d.addEventListener("keyup",g),window.addEventListener("blur",m),window.addEventListener("contextmenu",m),()=>{d==null||d.removeEventListener("keydown",h),d==null||d.removeEventListener("keyup",g),window.removeEventListener("blur",m),window.removeEventListener("contextmenu",m)}}},[e,i]),r}function yy(e,t,r){return e.filter(i=>r||i.length===t.size).some(i=>i.every(s=>t.has(s)))}function xy(e,t){return t.includes(e)?"code":"key"}const RR=()=>{const e=He();return P.useMemo(()=>({zoomIn:t=>{const{panZoom:r}=e.getState();return r?r.scaleBy(1.2,{duration:t==null?void 0:t.duration}):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:r}=e.getState();return r?r.scaleBy(1/1.2,{duration:t==null?void 0:t.duration}):Promise.resolve(!1)},zoomTo:(t,r)=>{const{panZoom:i}=e.getState();return i?i.scaleTo(t,{duration:r==null?void 0:r.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,r)=>{const{transform:[i,s,a],panZoom:u}=e.getState();return u?(await u.setViewport({x:t.x??i,y:t.y??s,zoom:t.zoom??a},{duration:r==null?void 0:r.duration}),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,r,i]=e.getState().transform;return{x:t,y:r,zoom:i}},fitView:t=>{const{nodeLookup:r,minZoom:i,maxZoom:s,panZoom:a,domNode:u}=e.getState();if(!a||!u)return Promise.resolve(!1);const f=Jd(r,t),{width:d,height:h}=Yu(u);return Zd({nodes:f,width:d,height:h,minZoom:i,maxZoom:s,panZoom:a},t)},setCenter:async(t,r,i)=>{const{width:s,height:a,maxZoom:u,panZoom:f}=e.getState(),d=typeof(i==null?void 0:i.zoom)<"u"?i.zoom:u,h=s/2-t*d,g=a/2-r*d;return f?(await f.setViewport({x:h,y:g,zoom:d},{duration:i==null?void 0:i.duration}),Promise.resolve(!0)):Promise.resolve(!1)},fitBounds:async(t,r)=>{const{width:i,height:s,minZoom:a,maxZoom:u,panZoom:f}=e.getState(),d=Dh(t,i,s,a,u,(r==null?void 0:r.padding)??.1);return f?(await f.setViewport(d,{duration:r==null?void 0:r.duration}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,r={snapToGrid:!0})=>{const{transform:i,snapGrid:s,domNode:a}=e.getState();if(!a)return t;const{x:u,y:f}=a.getBoundingClientRect(),d={x:t.x-u,y:t.y-f};return Ws(d,i,r.snapToGrid,s)},flowToScreenPosition:t=>{const{transform:r,domNode:i}=e.getState();if(!i)return t;const{x:s,y:a}=i.getBoundingClientRect(),u=d1(t,r);return{x:u.x+s,y:u.y+a}}}),[])};function D1(e,t){const r=[],i=new Map,s=[];for(const a of e)if(a.type==="add"){s.push(a);continue}else if(a.type==="remove"||a.type==="replace")i.set(a.id,[a]);else{const u=i.get(a.id);u?u.push(a):i.set(a.id,[a])}for(const a of t){const u=i.get(a.id);if(!u){r.push(a);continue}if(u[0].type==="remove")continue;if(u[0].type==="replace"){r.push({...u[0].item});continue}const f={...a};for(const d of u)TR(d,f);r.push(f)}return s.length&&s.forEach(a=>{a.index!==void 0?r.splice(a.index,0,{...a.item}):r.push({...a.item})}),r}function TR(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured??(t.measured={}),t.measured.width=e.dimensions.width,t.measured.height=e.dimensions.height,e.setAttributes&&(t.width=e.dimensions.width,t.height=e.dimensions.height)),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function O1(e,t){return D1(e,t)}function Vh(e,t){return D1(e,t)}function Vr(e,t){return{id:e,type:"select",selected:t}}function Uo(e,t=new Set,r=!1){const i=[];for(const[s,a]of e){const u=t.has(s);!(a.selected===void 0&&!u)&&a.selected!==u&&(r&&(a.selected=u),i.push(Vr(a.id,u)))}return i}function vy({items:e=[],lookup:t}){var s;const r=[],i=new Map(e.map(a=>[a.id,a]));for(const[a,u]of e.entries()){const f=t.get(u.id),d=((s=f==null?void 0:f.internals)==null?void 0:s.userNode)??f;d!==void 0&&d!==u&&r.push({id:u.id,item:u,type:"replace"}),d===void 0&&r.push({item:u,type:"add",index:a})}for(const[a]of t)i.get(a)===void 0&&r.push({id:a,type:"remove"});return r}function wy(e){return{id:e.id,type:"remove"}}const Sy=e=>u5(e),IR=e=>s1(e);function z1(e){return P.forwardRef(e)}const jR=typeof window<"u"?P.useLayoutEffect:P.useEffect;function Ey(e){const[t,r]=P.useState(BigInt(0)),[i]=P.useState(()=>$R(()=>r(s=>s+BigInt(1))));return jR(()=>{const s=i.get();s.length&&(e(s),i.reset())},[t]),i}function $R(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:r=>{t.push(r),e()}}}const F1=P.createContext(null);function AR({children:e}){const t=He(),r=P.useCallback(f=>{const{nodes:d=[],setNodes:h,hasDefaultNodes:g,onNodesChange:m,nodeLookup:y}=t.getState();let v=d;for(const S of f)v=typeof S=="function"?S(v):S;g?h(v):m&&m(vy({items:v,lookup:y}))},[]),i=Ey(r),s=P.useCallback(f=>{const{edges:d=[],setEdges:h,hasDefaultEdges:g,onEdgesChange:m,edgeLookup:y}=t.getState();let v=d;for(const S of f)v=typeof S=="function"?S(v):S;g?h(v):m&&m(vy({items:v,lookup:y}))},[]),a=Ey(s),u=P.useMemo(()=>({nodeQueue:i,edgeQueue:a}),[]);return w.jsx(F1.Provider,{value:u,children:e})}function MR(){const e=P.useContext(F1);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const LR=e=>!!e.panZoom;function Uh(){const e=RR(),t=He(),r=MR(),i=Ie(LR),s=P.useMemo(()=>{const a=m=>t.getState().nodeLookup.get(m),u=m=>{r.nodeQueue.push(m)},f=m=>{r.edgeQueue.push(m)},d=m=>{var C,R;const{nodeLookup:y,nodeOrigin:v}=t.getState(),S=Sy(m)?m:y.get(m.id),E=S.parentId?p1(S.position,S.measured,S.parentId,y,v):S.position,k={id:S.id,position:E,width:((C=S.measured)==null?void 0:C.width)??S.width,height:((R=S.measured)==null?void 0:R.height)??S.height,data:S.data};return si(k)},h=(m,y,v={replace:!1})=>{u(S=>S.map(E=>{if(E.id===m){const k=typeof y=="function"?y(E):y;return v.replace&&Sy(k)?k:{...E,...k}}return E}))},g=(m,y,v={replace:!1})=>{f(S=>S.map(E=>{if(E.id===m){const k=typeof y=="function"?y(E):y;return v.replace&&IR(k)?k:{...E,...k}}return E}))};return{getNodes:()=>t.getState().nodes.map(m=>({...m})),getNode:m=>{var y;return(y=a(m))==null?void 0:y.internals.userNode},getInternalNode:a,getEdges:()=>{const{edges:m=[]}=t.getState();return m.map(y=>({...y}))},getEdge:m=>t.getState().edgeLookup.get(m),setNodes:u,setEdges:f,addNodes:m=>{const y=Array.isArray(m)?m:[m];r.nodeQueue.push(v=>[...v,...y])},addEdges:m=>{const y=Array.isArray(m)?m:[m];r.edgeQueue.push(v=>[...v,...y])},toObject:()=>{const{nodes:m=[],edges:y=[],transform:v}=t.getState(),[S,E,k]=v;return{nodes:m.map(C=>({...C})),edges:y.map(C=>({...C})),viewport:{x:S,y:E,zoom:k}}},deleteElements:async({nodes:m=[],edges:y=[]})=>{const{nodes:v,edges:S,onNodesDelete:E,onEdgesDelete:k,triggerNodeChanges:C,triggerEdgeChanges:R,onDelete:N,onBeforeDelete:b}=t.getState(),{nodes:M,edges:L}=await d5({nodesToRemove:m,edgesToRemove:y,nodes:v,edges:S,onBeforeDelete:b}),j=L.length>0,G=M.length>0;if(j){const V=L.map(wy);k==null||k(L),R(V)}if(G){const V=M.map(wy);E==null||E(M),C(V)}return(G||j)&&(N==null||N({nodes:M,edges:L})),{deletedNodes:M,deletedEdges:L}},getIntersectingNodes:(m,y=!0,v)=>{const S=K0(m),E=S?m:d(m),k=v!==void 0;return E?(v||t.getState().nodes).filter(C=>{const R=t.getState().nodeLookup.get(C.id);if(R&&!S&&(C.id===m.id||!R.internals.positionAbsolute))return!1;const N=si(k?C:R),b=Is(N,E);return y&&b>0||b>=E.width*E.height}):[]},isNodeIntersecting:(m,y,v=!0)=>{const E=K0(m)?m:d(m);if(!E)return!1;const k=Is(E,y);return v&&k>0||k>=E.width*E.height},updateNode:h,updateNodeData:(m,y,v={replace:!1})=>{h(m,S=>{const E=typeof y=="function"?y(S):y;return v.replace?{...S,data:E}:{...S,data:{...S.data,...E}}},v)},updateEdge:g,updateEdgeData:(m,y,v={replace:!1})=>{g(m,S=>{const E=typeof y=="function"?y(S):y;return v.replace?{...S,data:E}:{...S,data:{...S.data,...E}}},v)},getNodesBounds:m=>{const{nodeLookup:y,nodeOrigin:v}=t.getState();return c5(m,{nodeLookup:y,nodeOrigin:v})},getHandleConnections:({type:m,id:y,nodeId:v})=>{var S;return Array.from(((S=t.getState().connectionLookup.get(`${v}-${m}-${y??null}`))==null?void 0:S.values())??[])}}},[]);return P.useMemo(()=>({...s,...e,viewportInitialized:i}),[i])}const ky=e=>e.selected,DR={actInsideInputWithModifier:!1},OR=typeof window<"u"?window:void 0;function zR({deleteKeyCode:e,multiSelectionKeyCode:t}){const r=He(),{deleteElements:i}=Uh(),s=$s(e,DR),a=$s(t,{target:OR});P.useEffect(()=>{if(s){const{edges:u,nodes:f}=r.getState();i({nodes:f.filter(ky),edges:u.filter(ky)}),r.setState({nodesSelectionActive:!1})}},[s]),P.useEffect(()=>{r.setState({multiSelectionActive:a})},[a])}function FR(e){const t=He();P.useEffect(()=>{const r=()=>{var s,a;if(!e.current)return!1;const i=Yu(e.current);(i.height===0||i.width===0)&&((a=(s=t.getState()).onError)==null||a.call(s,"004",Vn.error004())),t.setState({width:i.width||500,height:i.height||500})};if(e.current){r(),window.addEventListener("resize",r);const i=new ResizeObserver(()=>r());return i.observe(e.current),()=>{window.removeEventListener("resize",r),i&&e.current&&i.unobserve(e.current)}}},[])}const Ku={position:"absolute",width:"100%",height:"100%",top:0,left:0},BR=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib});function HR({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:r=!0,panOnScroll:i=!1,panOnScrollSpeed:s=.5,panOnScrollMode:a=Qr.Free,zoomOnDoubleClick:u=!0,panOnDrag:f=!0,defaultViewport:d,translateExtent:h,minZoom:g,maxZoom:m,zoomActivationKeyCode:y,preventScrolling:v=!0,children:S,noWheelClassName:E,noPanClassName:k,onViewportChange:C,isControlledViewport:R,paneClickDistance:N}){const b=He(),M=P.useRef(null),{userSelectionActive:L,lib:j}=Ie(BR,Ge),G=$s(y),V=P.useRef();FR(M);const Y=P.useCallback(ee=>{C==null||C({x:ee[0],y:ee[1],zoom:ee[2]}),R||b.setState({transform:ee})},[C,R]);return P.useEffect(()=>{if(M.current){V.current=W5({domNode:M.current,minZoom:g,maxZoom:m,translateExtent:h,viewport:d,paneClickDistance:N,onDraggingChange:I=>b.setState({paneDragging:I}),onPanZoomStart:(I,U)=>{const{onViewportChangeStart:F,onMoveStart:q}=b.getState();q==null||q(I,U),F==null||F(U)},onPanZoom:(I,U)=>{const{onViewportChange:F,onMove:q}=b.getState();q==null||q(I,U),F==null||F(U)},onPanZoomEnd:(I,U)=>{const{onViewportChangeEnd:F,onMoveEnd:q}=b.getState();q==null||q(I,U),F==null||F(U)}});const{x:ee,y:ne,zoom:J}=V.current.getViewport();return b.setState({panZoom:V.current,transform:[ee,ne,J],domNode:M.current.closest(".react-flow")}),()=>{var I;(I=V.current)==null||I.destroy()}}},[]),P.useEffect(()=>{var ee;(ee=V.current)==null||ee.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:r,panOnScroll:i,panOnScrollSpeed:s,panOnScrollMode:a,zoomOnDoubleClick:u,panOnDrag:f,zoomActivationKeyPressed:G,preventScrolling:v,noPanClassName:k,userSelectionActive:L,noWheelClassName:E,lib:j,onTransformChange:Y})},[e,t,r,i,s,a,u,f,G,v,k,L,E,j,Y]),w.jsx("div",{className:"react-flow__renderer",ref:M,style:Ku,children:S})}const VR=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function UR(){const{userSelectionActive:e,userSelectionRect:t}=Ie(VR,Ge);return e&&t?w.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const vd=(e,t)=>r=>{r.target===t.current&&(e==null||e(r))},WR=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging});function qR({isSelecting:e,selectionKeyPressed:t,selectionMode:r=Ts.Full,panOnDrag:i,selectionOnDrag:s,onSelectionStart:a,onSelectionEnd:u,onPaneClick:f,onPaneContextMenu:d,onPaneScroll:h,onPaneMouseEnter:g,onPaneMouseMove:m,onPaneMouseLeave:y,children:v}){const S=P.useRef(null),E=He(),k=P.useRef(0),C=P.useRef(0),R=P.useRef(),N=P.useRef(new Map),{userSelectionActive:b,elementsSelectable:M,dragging:L}=Ie(WR,Ge),j=M&&(e||b),G=P.useRef(!1),V=P.useRef(!1),Y=()=>{E.setState({userSelectionActive:!1,userSelectionRect:null}),k.current=0,C.current=0},ee=A=>{if(G.current){G.current=!1;return}f==null||f(A),E.getState().resetSelectedElements(),E.setState({nodesSelectionActive:!1})},ne=A=>{if(Array.isArray(i)&&(i!=null&&i.includes(2))){A.preventDefault();return}d==null||d(A)},J=h?A=>h(A):void 0,I=A=>{var te,ie,le,de;const{resetSelectedElements:O,domNode:z,edgeLookup:T}=E.getState();if(R.current=z==null?void 0:z.getBoundingClientRect(),!M||!e||A.button!==0||A.target!==S.current||!R.current)return;(ie=(te=A.target)==null?void 0:te.setPointerCapture)==null||ie.call(te,A.pointerId),V.current=!0,G.current=!1,N.current=new Map;for(const[re,he]of T)N.current.set(he.source,((le=N.current.get(he.source))==null?void 0:le.add(re))||new Set([re])),N.current.set(he.target,((de=N.current.get(he.target))==null?void 0:de.add(re))||new Set([re]));const{x:H,y:Z}=Dn(A.nativeEvent,R.current);O(),E.setState({userSelectionRect:{width:0,height:0,startX:H,startY:Z,x:H,y:Z}}),a==null||a(A)},U=A=>{const{userSelectionRect:O,edgeLookup:z,transform:T,nodeLookup:H,triggerNodeChanges:Z,triggerEdgeChanges:te}=E.getState();if(!R.current||!O)return;G.current=!0;const{x:ie,y:le}=Dn(A.nativeEvent,R.current),{startX:de,startY:re}=O,he={startX:de,startY:re,x:ie<de?ie:de,y:le<re?le:re,width:Math.abs(ie-de),height:Math.abs(le-re)},Se=l1(H,he,T,r===Ts.Partial,!0),we=new Set,ge=new Set;for(const Pe of Se){ge.add(Pe.id);const $e=N.current.get(Pe.id);if($e)for(const Ke of $e)we.add(Ke)}if(k.current!==ge.size){k.current=ge.size;const Pe=Uo(H,ge,!0);Z(Pe)}if(C.current!==we.size){C.current=we.size;const Pe=Uo(z,we);te(Pe)}E.setState({userSelectionRect:he,userSelectionActive:!0,nodesSelectionActive:!1})},F=A=>{var z,T;if(A.button!==0||!V.current)return;(T=(z=A.target)==null?void 0:z.releasePointerCapture)==null||T.call(z,A.pointerId);const{userSelectionRect:O}=E.getState();!b&&O&&A.target===S.current&&(ee==null||ee(A)),k.current>0&&E.setState({nodesSelectionActive:!0}),Y(),u==null||u(A),(t||s)&&(G.current=!1),V.current=!1},q=i===!0||Array.isArray(i)&&i.includes(0);return w.jsxs("div",{className:et(["react-flow__pane",{draggable:q,dragging:L,selection:e}]),onClick:j?void 0:vd(ee,S),onContextMenu:vd(ne,S),onWheel:vd(J,S),onPointerEnter:j?void 0:g,onPointerDown:j?I:m,onPointerMove:j?U:m,onPointerUp:j?F:void 0,onPointerLeave:y,ref:S,style:Ku,children:[v,w.jsx(UR,{})]})}function sh({id:e,store:t,unselect:r=!1,nodeRef:i}){const{addSelectedNodes:s,unselectNodesAndEdges:a,multiSelectionActive:u,nodeLookup:f,onError:d}=t.getState(),h=f.get(e);if(!h){d==null||d("012",Vn.error012(e));return}t.setState({nodesSelectionActive:!1}),h.selected?(r||h.selected&&u)&&(a({nodes:[h],edges:[]}),requestAnimationFrame(()=>{var g;return(g=i==null?void 0:i.current)==null?void 0:g.blur()})):s([e])}function B1({nodeRef:e,disabled:t=!1,noDragClassName:r,handleSelector:i,nodeId:s,isSelectable:a,nodeClickDistance:u}){const f=He(),[d,h]=P.useState(!1),g=P.useRef();return P.useEffect(()=>{g.current=I5({getStoreItems:()=>f.getState(),onNodeMouseDown:m=>{sh({id:m,store:f,nodeRef:e})},onDragStart:()=>{h(!0)},onDragStop:()=>{h(!1)}})},[]),P.useEffect(()=>{var m,y;if(t)(m=g.current)==null||m.destroy();else if(e.current)return(y=g.current)==null||y.update({noDragClassName:r,handleSelector:i,domNode:e.current,isSelectable:a,nodeId:s,nodeClickDistance:u}),()=>{var v;(v=g.current)==null||v.destroy()}},[r,i,t,a,e,s]),d}const YR=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function H1(){const e=He();return P.useCallback(r=>{const{nodeExtent:i,snapToGrid:s,snapGrid:a,nodesDraggable:u,onError:f,updateNodePositions:d,nodeLookup:h,nodeOrigin:g}=e.getState(),m=new Map,y=YR(u),v=s?a[0]:5,S=s?a[1]:5,E=r.direction.x*v*r.factor,k=r.direction.y*S*r.factor;for(const[,C]of h){if(!y(C))continue;let R={x:C.internals.positionAbsolute.x+E,y:C.internals.positionAbsolute.y+k};s&&(R=qu(R,a));const{position:N,positionAbsolute:b}=a1({nodeId:C.id,nextPosition:R,nodeLookup:h,nodeExtent:i,nodeOrigin:g,onError:f});C.position=N,C.internals.positionAbsolute=b,m.set(C.id,C)}d(m)},[])}const Wh=P.createContext(null),XR=Wh.Provider;Wh.Consumer;const V1=()=>P.useContext(Wh),GR=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),KR=(e,t,r)=>i=>{const{connectionClickStartHandle:s,connectionMode:a,connection:u}=i,{fromHandle:f,toHandle:d,isValid:h}=u,g=(d==null?void 0:d.nodeId)===e&&(d==null?void 0:d.id)===t&&(d==null?void 0:d.type)===r;return{connectingFrom:(f==null?void 0:f.nodeId)===e&&(f==null?void 0:f.id)===t&&(f==null?void 0:f.type)===r,connectingTo:g,clickConnecting:(s==null?void 0:s.nodeId)===e&&(s==null?void 0:s.id)===t&&(s==null?void 0:s.type)===r,isPossibleEndHandle:a===oi.Strict?(f==null?void 0:f.type)!==r:e!==(f==null?void 0:f.nodeId)||t!==(f==null?void 0:f.id),connectionInProcess:!!f,valid:g&&h}};function QR({type:e="source",position:t=ce.Top,isValidConnection:r,isConnectable:i=!0,isConnectableStart:s=!0,isConnectableEnd:a=!0,id:u,onConnect:f,children:d,className:h,onMouseDown:g,onTouchStart:m,...y},v){var I,U;const S=u||null,E=e==="target",k=He(),C=V1(),{connectOnClick:R,noPanClassName:N,rfId:b}=Ie(GR,Ge),{connectingFrom:M,connectingTo:L,clickConnecting:j,isPossibleEndHandle:G,connectionInProcess:V,valid:Y}=Ie(KR(C,S,e),Ge);C||(U=(I=k.getState()).onError)==null||U.call(I,"010",Vn.error010());const ee=F=>{const{defaultEdgeOptions:q,onConnect:A,hasDefaultEdges:O}=k.getState(),z={...q,...F};if(O){const{edges:T,setEdges:H}=k.getState();H(w1(z,T))}A==null||A(z),f==null||f(z)},ne=F=>{if(!C)return;const q=m1(F.nativeEvent);if(s&&(q&&F.button===0||!q)){const A=k.getState();ih.onPointerDown(F.nativeEvent,{autoPanOnConnect:A.autoPanOnConnect,connectionMode:A.connectionMode,connectionRadius:A.connectionRadius,domNode:A.domNode,nodeLookup:A.nodeLookup,lib:A.lib,isTarget:E,handleId:S,nodeId:C,flowId:A.rfId,panBy:A.panBy,cancelConnection:A.cancelConnection,onConnectStart:A.onConnectStart,onConnectEnd:A.onConnectEnd,updateConnection:A.updateConnection,onConnect:ee,isValidConnection:r||A.isValidConnection,getTransform:()=>k.getState().transform,getFromHandle:()=>k.getState().connection.fromHandle,autoPanSpeed:A.autoPanSpeed})}q?g==null||g(F):m==null||m(F)},J=F=>{const{onClickConnectStart:q,onClickConnectEnd:A,connectionClickStartHandle:O,connectionMode:z,isValidConnection:T,lib:H,rfId:Z,nodeLookup:te,connection:ie}=k.getState();if(!C||!O&&!s)return;if(!O){q==null||q(F.nativeEvent,{nodeId:C,handleId:S,handleType:e}),k.setState({connectionClickStartHandle:{nodeId:C,type:e,id:S}});return}const le=g1(F.target),de=r||T,{connection:re,isValid:he}=ih.isValid(F.nativeEvent,{handle:{nodeId:C,id:S,type:e},connectionMode:z,fromNodeId:O.nodeId,fromHandleId:O.id||null,fromType:O.type,isValidConnection:de,flowId:Z,doc:le,lib:H,nodeLookup:te});he&&re&&ee(re);const Se=structuredClone(ie);delete Se.inProgress,Se.toPosition=Se.toHandle?Se.toHandle.position:null,A==null||A(F,Se),k.setState({connectionClickStartHandle:null})};return w.jsx("div",{"data-handleid":S,"data-nodeid":C,"data-handlepos":t,"data-id":`${b}-${C}-${S}-${e}`,className:et(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",N,h,{source:!E,target:E,connectable:i,connectablestart:s,connectableend:a,clickconnecting:j,connectingfrom:M,connectingto:L,valid:Y,connectionindicator:i&&(!V||G)&&(V?a:s)}]),onMouseDown:ne,onTouchStart:ne,onClick:R?J:void 0,ref:v,...y,children:d})}const _e=P.memo(z1(QR));function JR({data:e,isConnectable:t,sourcePosition:r=ce.Bottom}){return w.jsxs(w.Fragment,{children:[e==null?void 0:e.label,w.jsx(_e,{type:"source",position:r,isConnectable:t})]})}function ZR({data:e,isConnectable:t,targetPosition:r=ce.Top,sourcePosition:i=ce.Bottom}){return w.jsxs(w.Fragment,{children:[w.jsx(_e,{type:"target",position:r,isConnectable:t}),e==null?void 0:e.label,w.jsx(_e,{type:"source",position:i,isConnectable:t})]})}function eT(){return null}function tT({data:e,isConnectable:t,targetPosition:r=ce.Top}){return w.jsxs(w.Fragment,{children:[w.jsx(_e,{type:"target",position:r,isConnectable:t}),e==null?void 0:e.label]})}const Su={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},Cy={input:JR,default:ZR,output:tT,group:eT};function nT(e){var t,r,i,s;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((r=e.style)==null?void 0:r.height)}:{width:e.width??((i=e.style)==null?void 0:i.width),height:e.height??((s=e.style)==null?void 0:s.height)}}const rT=e=>{const{width:t,height:r,x:i,y:s}=Us(e.nodeLookup,{filter:a=>!!a.selected});return{width:sn(t)?t:null,height:sn(r)?r:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${i}px,${s}px)`}};function oT({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:r}){const i=He(),{width:s,height:a,transformString:u,userSelectionActive:f}=Ie(rT,Ge),d=H1(),h=P.useRef(null);if(P.useEffect(()=>{var y;r||(y=h.current)==null||y.focus({preventScroll:!0})},[r]),B1({nodeRef:h}),f||!s||!a)return null;const g=e?y=>{const v=i.getState().nodes.filter(S=>S.selected);e(y,v)}:void 0,m=y=>{Object.prototype.hasOwnProperty.call(Su,y.key)&&d({direction:Su[y.key],factor:y.shiftKey?4:1})};return w.jsx("div",{className:et(["react-flow__nodesselection","react-flow__container",t]),style:{transform:u},children:w.jsx("div",{ref:h,className:"react-flow__nodesselection-rect",onContextMenu:g,tabIndex:r?void 0:-1,onKeyDown:r?void 0:m,style:{width:s,height:a}})})}const _y=typeof window<"u"?window:void 0,iT=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function U1({children:e,onPaneClick:t,onPaneMouseEnter:r,onPaneMouseMove:i,onPaneMouseLeave:s,onPaneContextMenu:a,onPaneScroll:u,paneClickDistance:f,deleteKeyCode:d,selectionKeyCode:h,selectionOnDrag:g,selectionMode:m,onSelectionStart:y,onSelectionEnd:v,multiSelectionKeyCode:S,panActivationKeyCode:E,zoomActivationKeyCode:k,elementsSelectable:C,zoomOnScroll:R,zoomOnPinch:N,panOnScroll:b,panOnScrollSpeed:M,panOnScrollMode:L,zoomOnDoubleClick:j,panOnDrag:G,defaultViewport:V,translateExtent:Y,minZoom:ee,maxZoom:ne,preventScrolling:J,onSelectionContextMenu:I,noWheelClassName:U,noPanClassName:F,disableKeyboardA11y:q,onViewportChange:A,isControlledViewport:O}){const{nodesSelectionActive:z,userSelectionActive:T}=Ie(iT),H=$s(h,{target:_y}),Z=$s(E,{target:_y}),te=Z||G,ie=Z||b,le=g&&te!==!0,de=H||T||le;return zR({deleteKeyCode:d,multiSelectionKeyCode:S}),w.jsx(HR,{onPaneContextMenu:a,elementsSelectable:C,zoomOnScroll:R,zoomOnPinch:N,panOnScroll:ie,panOnScrollSpeed:M,panOnScrollMode:L,zoomOnDoubleClick:j,panOnDrag:!H&&te,defaultViewport:V,translateExtent:Y,minZoom:ee,maxZoom:ne,zoomActivationKeyCode:k,preventScrolling:J,noWheelClassName:U,noPanClassName:F,onViewportChange:A,isControlledViewport:O,paneClickDistance:f,children:w.jsxs(qR,{onSelectionStart:y,onSelectionEnd:v,onPaneClick:t,onPaneMouseEnter:r,onPaneMouseMove:i,onPaneMouseLeave:s,onPaneContextMenu:a,onPaneScroll:u,panOnDrag:te,isSelecting:!!de,selectionMode:m,selectionKeyPressed:H,selectionOnDrag:le,children:[e,z&&w.jsx(oT,{onSelectionContextMenu:I,noPanClassName:F,disableKeyboardA11y:q})]})})}U1.displayName="FlowRenderer";const sT=P.memo(U1),lT=e=>t=>e?l1(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(r=>r.id):Array.from(t.nodeLookup.keys());function aT(e){return Ie(P.useCallback(lT(e),[e]),Ge)}const uT=e=>e.updateNodeInternals;function cT(){const e=Ie(uT),[t]=P.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(r=>{const i=new Map;r.forEach(s=>{const a=s.target.getAttribute("data-id");i.set(a,{id:a,nodeElement:s.target,force:!0})}),e(i)}));return P.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function fT({node:e,nodeType:t,hasDimensions:r,resizeObserver:i}){const s=He(),a=P.useRef(null),u=P.useRef(null),f=P.useRef(e.sourcePosition),d=P.useRef(e.targetPosition),h=P.useRef(t),g=r&&!!e.internals.handleBounds;return P.useEffect(()=>{a.current&&!e.hidden&&(!g||u.current!==a.current)&&(u.current&&(i==null||i.unobserve(u.current)),i==null||i.observe(a.current),u.current=a.current)},[g,e.hidden]),P.useEffect(()=>()=>{u.current&&(i==null||i.unobserve(u.current),u.current=null)},[]),P.useEffect(()=>{if(a.current){const m=h.current!==t,y=f.current!==e.sourcePosition,v=d.current!==e.targetPosition;(m||y||v)&&(h.current=t,f.current=e.sourcePosition,d.current=e.targetPosition,s.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:a.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),a}function dT({id:e,onClick:t,onMouseEnter:r,onMouseMove:i,onMouseLeave:s,onContextMenu:a,onDoubleClick:u,nodesDraggable:f,elementsSelectable:d,nodesConnectable:h,nodesFocusable:g,resizeObserver:m,noDragClassName:y,noPanClassName:v,disableKeyboardA11y:S,rfId:E,nodeTypes:k,nodeExtent:C,nodeClickDistance:R,onError:N}){const{node:b,internals:M,isParent:L}=Ie(re=>{const he=re.nodeLookup.get(e),Se=re.parentLookup.has(e);return{node:he,internals:he.internals,isParent:Se}},Ge);let j=b.type||"default",G=(k==null?void 0:k[j])||Cy[j];G===void 0&&(N==null||N("003",Vn.error003(j)),j="default",G=Cy.default);const V=!!(b.draggable||f&&typeof b.draggable>"u"),Y=!!(b.selectable||d&&typeof b.selectable>"u"),ee=!!(b.connectable||h&&typeof b.connectable>"u"),ne=!!(b.focusable||g&&typeof b.focusable>"u"),J=He(),I=h1(b),U=fT({node:b,nodeType:j,hasDimensions:I,resizeObserver:m}),F=B1({nodeRef:U,disabled:b.hidden||!V,noDragClassName:y,handleSelector:b.dragHandle,nodeId:e,isSelectable:Y,nodeClickDistance:R}),q=H1();if(b.hidden)return null;const A=Un(b),O=nT(b),z=Y||V||t||r||i||s,T=r?re=>r(re,{...M.userNode}):void 0,H=i?re=>i(re,{...M.userNode}):void 0,Z=s?re=>s(re,{...M.userNode}):void 0,te=a?re=>a(re,{...M.userNode}):void 0,ie=u?re=>u(re,{...M.userNode}):void 0,le=re=>{const{selectNodesOnDrag:he,nodeDragThreshold:Se}=J.getState();Y&&(!he||!V||Se>0)&&sh({id:e,store:J,nodeRef:U}),t&&t(re,{...M.userNode})},de=re=>{if(!(th(re.nativeEvent)||S))if(r1.includes(re.key)&&Y){const he=re.key==="Escape";sh({id:e,store:J,unselect:he,nodeRef:U})}else V&&b.selected&&Object.prototype.hasOwnProperty.call(Su,re.key)&&(J.setState({ariaLiveMessage:`Moved selected node ${re.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~M.positionAbsolute.x}, y: ${~~M.positionAbsolute.y}`}),q({direction:Su[re.key],factor:re.shiftKey?4:1}))};return w.jsx("div",{className:et(["react-flow__node",`react-flow__node-${j}`,{[v]:V},b.className,{selected:b.selected,selectable:Y,parent:L,draggable:V,dragging:F}]),ref:U,style:{zIndex:M.z,transform:`translate(${M.positionAbsolute.x}px,${M.positionAbsolute.y}px)`,pointerEvents:z?"all":"none",visibility:I?"visible":"hidden",...b.style,...O},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:T,onMouseMove:H,onMouseLeave:Z,onContextMenu:te,onClick:le,onDoubleClick:ie,onKeyDown:ne?de:void 0,tabIndex:ne?0:void 0,role:ne?"button":void 0,"aria-describedby":S?void 0:`${A1}-${E}`,"aria-label":b.ariaLabel,children:w.jsx(XR,{value:e,children:w.jsx(G,{id:e,data:b.data,type:j,positionAbsoluteX:M.positionAbsolute.x,positionAbsoluteY:M.positionAbsolute.y,selected:b.selected,selectable:Y,draggable:V,deletable:b.deletable??!0,isConnectable:ee,sourcePosition:b.sourcePosition,targetPosition:b.targetPosition,dragging:F,dragHandle:b.dragHandle,zIndex:M.z,parentId:b.parentId,...A})})})}const hT=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function W1(e){const{nodesDraggable:t,nodesConnectable:r,nodesFocusable:i,elementsSelectable:s,onError:a}=Ie(hT,Ge),u=aT(e.onlyRenderVisibleElements),f=cT();return w.jsx("div",{className:"react-flow__nodes",style:Ku,children:u.map(d=>w.jsx(dT,{id:d,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:f,nodesDraggable:t,nodesConnectable:r,nodesFocusable:i,elementsSelectable:s,nodeClickDistance:e.nodeClickDistance,onError:a},d))})}W1.displayName="NodeRenderer";const pT=P.memo(W1);function gT(e){return Ie(P.useCallback(r=>{if(!e)return r.edges.map(s=>s.id);const i=[];if(r.width&&r.height)for(const s of r.edges){const a=r.nodeLookup.get(s.source),u=r.nodeLookup.get(s.target);a&&u&&m5({sourceNode:a,targetNode:u,width:r.width,height:r.height,transform:r.transform})&&i.push(s.id)}return i},[e]),Ge)}const mT=({color:e="none",strokeWidth:t=1})=>w.jsx("polyline",{style:{stroke:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),yT=({color:e="none",strokeWidth:t=1})=>w.jsx("polyline",{style:{stroke:e,fill:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"}),Ny={[xu.Arrow]:mT,[xu.ArrowClosed]:yT};function xT(e){const t=He();return P.useMemo(()=>{var s,a;return Object.prototype.hasOwnProperty.call(Ny,e)?Ny[e]:((a=(s=t.getState()).onError)==null||a.call(s,"009",Vn.error009(e)),null)},[e])}const vT=({id:e,type:t,color:r,width:i=12.5,height:s=12.5,markerUnits:a="strokeWidth",strokeWidth:u,orient:f="auto-start-reverse"})=>{const d=xT(t);return d?w.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${i}`,markerHeight:`${s}`,viewBox:"-10 -10 20 20",markerUnits:a,orient:f,refX:"0",refY:"0",children:w.jsx(d,{color:r,strokeWidth:u})}):null},q1=({defaultColor:e,rfId:t})=>{const r=Ie(a=>a.edges),i=Ie(a=>a.defaultEdgeOptions),s=P.useMemo(()=>k5(r,{id:t,defaultColor:e,defaultMarkerStart:i==null?void 0:i.markerStart,defaultMarkerEnd:i==null?void 0:i.markerEnd}),[r,i,t,e]);return s.length?w.jsx("svg",{className:"react-flow__marker",children:w.jsx("defs",{children:s.map(a=>w.jsx(vT,{id:a.id,type:a.type,color:a.color,width:a.width,height:a.height,markerUnits:a.markerUnits,strokeWidth:a.strokeWidth,orient:a.orient},a.id))})}):null};q1.displayName="MarkerDefinitions";var wT=P.memo(q1);function Y1({x:e,y:t,label:r,labelStyle:i={},labelShowBg:s=!0,labelBgStyle:a={},labelBgPadding:u=[2,4],labelBgBorderRadius:f=2,children:d,className:h,...g}){const[m,y]=P.useState({x:1,y:0,width:0,height:0}),v=et(["react-flow__edge-textwrapper",h]),S=P.useRef(null);return P.useEffect(()=>{if(S.current){const E=S.current.getBBox();y({x:E.x,y:E.y,width:E.width,height:E.height})}},[r]),typeof r>"u"||!r?null:w.jsxs("g",{transform:`translate(${e-m.width/2} ${t-m.height/2})`,className:v,visibility:m.width?"visible":"hidden",...g,children:[s&&w.jsx("rect",{width:m.width+2*u[0],x:-u[0],y:-u[1],height:m.height+2*u[1],className:"react-flow__edge-textbg",style:a,rx:f,ry:f}),w.jsx("text",{className:"react-flow__edge-text",y:m.height/2,dy:"0.3em",ref:S,style:i,children:r}),d]})}Y1.displayName="EdgeText";const ST=P.memo(Y1);function Qu({id:e,path:t,labelX:r,labelY:i,label:s,labelStyle:a,labelShowBg:u,labelBgStyle:f,labelBgPadding:d,labelBgBorderRadius:h,style:g,markerEnd:m,markerStart:y,className:v,interactionWidth:S=20}){return w.jsxs(w.Fragment,{children:[w.jsx("path",{id:e,style:g,d:t,fill:"none",className:et(["react-flow__edge-path",v]),markerEnd:m,markerStart:y}),S&&w.jsx("path",{d:t,fill:"none",strokeOpacity:0,strokeWidth:S,className:"react-flow__edge-interaction"}),s&&sn(r)&&sn(i)?w.jsx(ST,{x:r,y:i,label:s,labelStyle:a,labelShowBg:u,labelBgStyle:f,labelBgPadding:d,labelBgBorderRadius:h}):null]})}function by({pos:e,x1:t,y1:r,x2:i,y2:s}){return e===ce.Left||e===ce.Right?[.5*(t+i),r]:[t,.5*(r+s)]}function X1({sourceX:e,sourceY:t,sourcePosition:r=ce.Bottom,targetX:i,targetY:s,targetPosition:a=ce.Top}){const[u,f]=by({pos:r,x1:e,y1:t,x2:i,y2:s}),[d,h]=by({pos:a,x1:i,y1:s,x2:e,y2:t}),[g,m,y,v]=y1({sourceX:e,sourceY:t,targetX:i,targetY:s,sourceControlX:u,sourceControlY:f,targetControlX:d,targetControlY:h});return[`M${e},${t} C${u},${f} ${d},${h} ${i},${s}`,g,m,y,v]}function G1(e){return P.memo(({id:t,sourceX:r,sourceY:i,targetX:s,targetY:a,sourcePosition:u=ce.Bottom,targetPosition:f=ce.Top,label:d,labelStyle:h,labelShowBg:g,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:v,style:S,markerEnd:E,markerStart:k,interactionWidth:C})=>{const[R,N,b]=X1({sourceX:r,sourceY:i,sourcePosition:u,targetX:s,targetY:a,targetPosition:f}),M=e.isInternal?void 0:t;return w.jsx(Qu,{id:M,path:R,labelX:N,labelY:b,label:d,labelStyle:h,labelShowBg:g,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:v,style:S,markerEnd:E,markerStart:k,interactionWidth:C})})}const ET=G1({isInternal:!1}),K1=G1({isInternal:!0});ET.displayName="SimpleBezierEdge";K1.displayName="SimpleBezierEdgeInternal";function Q1(e){return P.memo(({id:t,sourceX:r,sourceY:i,targetX:s,targetY:a,label:u,labelStyle:f,labelShowBg:d,labelBgStyle:h,labelBgPadding:g,labelBgBorderRadius:m,style:y,sourcePosition:v=ce.Bottom,targetPosition:S=ce.Top,markerEnd:E,markerStart:k,pathOptions:C,interactionWidth:R})=>{const[N,b,M]=nh({sourceX:r,sourceY:i,sourcePosition:v,targetX:s,targetY:a,targetPosition:S,borderRadius:C==null?void 0:C.borderRadius,offset:C==null?void 0:C.offset}),L=e.isInternal?void 0:t;return w.jsx(Qu,{id:L,path:N,labelX:b,labelY:M,label:u,labelStyle:f,labelShowBg:d,labelBgStyle:h,labelBgPadding:g,labelBgBorderRadius:m,style:y,markerEnd:E,markerStart:k,interactionWidth:R})})}const J1=Q1({isInternal:!1}),Z1=Q1({isInternal:!0});J1.displayName="SmoothStepEdge";Z1.displayName="SmoothStepEdgeInternal";function ew(e){return P.memo(({id:t,...r})=>{var s;const i=e.isInternal?void 0:t;return w.jsx(J1,{...r,id:i,pathOptions:P.useMemo(()=>{var a;return{borderRadius:0,offset:(a=r.pathOptions)==null?void 0:a.offset}},[(s=r.pathOptions)==null?void 0:s.offset])})})}const kT=ew({isInternal:!1}),tw=ew({isInternal:!0});kT.displayName="StepEdge";tw.displayName="StepEdgeInternal";function nw(e){return P.memo(({id:t,sourceX:r,sourceY:i,targetX:s,targetY:a,label:u,labelStyle:f,labelShowBg:d,labelBgStyle:h,labelBgPadding:g,labelBgBorderRadius:m,style:y,markerEnd:v,markerStart:S,interactionWidth:E})=>{const[k,C,R]=S1({sourceX:r,sourceY:i,targetX:s,targetY:a}),N=e.isInternal?void 0:t;return w.jsx(Qu,{id:N,path:k,labelX:C,labelY:R,label:u,labelStyle:f,labelShowBg:d,labelBgStyle:h,labelBgPadding:g,labelBgBorderRadius:m,style:y,markerEnd:v,markerStart:S,interactionWidth:E})})}const CT=nw({isInternal:!1}),rw=nw({isInternal:!0});CT.displayName="StraightEdge";rw.displayName="StraightEdgeInternal";function ow(e){return P.memo(({id:t,sourceX:r,sourceY:i,targetX:s,targetY:a,sourcePosition:u=ce.Bottom,targetPosition:f=ce.Top,label:d,labelStyle:h,labelShowBg:g,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:v,style:S,markerEnd:E,markerStart:k,pathOptions:C,interactionWidth:R})=>{const[N,b,M]=x1({sourceX:r,sourceY:i,sourcePosition:u,targetX:s,targetY:a,targetPosition:f,curvature:C==null?void 0:C.curvature}),L=e.isInternal?void 0:t;return w.jsx(Qu,{id:L,path:N,labelX:b,labelY:M,label:d,labelStyle:h,labelShowBg:g,labelBgStyle:m,labelBgPadding:y,labelBgBorderRadius:v,style:S,markerEnd:E,markerStart:k,interactionWidth:R})})}const _T=ow({isInternal:!1}),iw=ow({isInternal:!0});_T.displayName="BezierEdge";iw.displayName="BezierEdgeInternal";const Py={default:iw,straight:rw,step:tw,smoothstep:Z1,simplebezier:K1},Ry={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},NT=(e,t,r)=>r===ce.Left?e-t:r===ce.Right?e+t:e,bT=(e,t,r)=>r===ce.Top?e-t:r===ce.Bottom?e+t:e,Ty="react-flow__edgeupdater";function Iy({position:e,centerX:t,centerY:r,radius:i=10,onMouseDown:s,onMouseEnter:a,onMouseOut:u,type:f}){return w.jsx("circle",{onMouseDown:s,onMouseEnter:a,onMouseOut:u,className:et([Ty,`${Ty}-${f}`]),cx:NT(t,i,e),cy:bT(r,i,e),r:i,stroke:"transparent",fill:"transparent"})}function PT({isReconnectable:e,reconnectRadius:t,edge:r,sourceX:i,sourceY:s,targetX:a,targetY:u,sourcePosition:f,targetPosition:d,onReconnect:h,onReconnectStart:g,onReconnectEnd:m,setReconnecting:y,setUpdateHover:v}){const S=He(),E=(b,M)=>{if(b.button!==0)return;const{autoPanOnConnect:L,domNode:j,isValidConnection:G,connectionMode:V,connectionRadius:Y,lib:ee,onConnectStart:ne,onConnectEnd:J,cancelConnection:I,nodeLookup:U,rfId:F,panBy:q,updateConnection:A}=S.getState(),O=M.type==="target";y(!0),g==null||g(b,r,M.type);const z=(H,Z)=>{y(!1),m==null||m(H,r,M.type,Z)},T=H=>h==null?void 0:h(r,H);ih.onPointerDown(b.nativeEvent,{autoPanOnConnect:L,connectionMode:V,connectionRadius:Y,domNode:j,handleId:M.id,nodeId:M.nodeId,nodeLookup:U,isTarget:O,edgeUpdaterType:M.type,lib:ee,flowId:F,cancelConnection:I,panBy:q,isValidConnection:G,onConnect:T,onConnectStart:ne,onConnectEnd:J,onReconnectEnd:z,updateConnection:A,getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle})},k=b=>E(b,{nodeId:r.target,id:r.targetHandle??null,type:"target"}),C=b=>E(b,{nodeId:r.source,id:r.sourceHandle??null,type:"source"}),R=()=>v(!0),N=()=>v(!1);return w.jsxs(w.Fragment,{children:[(e===!0||e==="source")&&w.jsx(Iy,{position:f,centerX:i,centerY:s,radius:t,onMouseDown:k,onMouseEnter:R,onMouseOut:N,type:"source"}),(e===!0||e==="target")&&w.jsx(Iy,{position:d,centerX:a,centerY:u,radius:t,onMouseDown:C,onMouseEnter:R,onMouseOut:N,type:"target"})]})}function RT({id:e,edgesFocusable:t,edgesReconnectable:r,elementsSelectable:i,onClick:s,onDoubleClick:a,onContextMenu:u,onMouseEnter:f,onMouseMove:d,onMouseLeave:h,reconnectRadius:g,onReconnect:m,onReconnectStart:y,onReconnectEnd:v,rfId:S,edgeTypes:E,noPanClassName:k,onError:C,disableKeyboardA11y:R}){let N=Ie(ge=>ge.edgeLookup.get(e));const b=Ie(ge=>ge.defaultEdgeOptions);N=b?{...b,...N}:N;let M=N.type||"default",L=(E==null?void 0:E[M])||Py[M];L===void 0&&(C==null||C("011",Vn.error011(M)),M="default",L=Py.default);const j=!!(N.focusable||t&&typeof N.focusable>"u"),G=typeof m<"u"&&(N.reconnectable||r&&typeof N.reconnectable>"u"),V=!!(N.selectable||i&&typeof N.selectable>"u"),Y=P.useRef(null),[ee,ne]=P.useState(!1),[J,I]=P.useState(!1),U=He(),{zIndex:F,sourceX:q,sourceY:A,targetX:O,targetY:z,sourcePosition:T,targetPosition:H}=Ie(P.useCallback(ge=>{const Pe=ge.nodeLookup.get(N.source),$e=ge.nodeLookup.get(N.target);if(!Pe||!$e)return{zIndex:N.zIndex,...Ry};const Ke=E5({id:e,sourceNode:Pe,targetNode:$e,sourceHandle:N.sourceHandle||null,targetHandle:N.targetHandle||null,connectionMode:ge.connectionMode,onError:C});return{zIndex:g5({selected:N.selected,zIndex:N.zIndex,sourceNode:Pe,targetNode:$e,elevateOnSelect:ge.elevateEdgesOnSelect}),...Ke||Ry}},[N.source,N.target,N.sourceHandle,N.targetHandle,N.selected,N.zIndex]),Ge),Z=P.useMemo(()=>N.markerStart?`url('#${rh(N.markerStart,S)}')`:void 0,[N.markerStart,S]),te=P.useMemo(()=>N.markerEnd?`url('#${rh(N.markerEnd,S)}')`:void 0,[N.markerEnd,S]);if(N.hidden||q===null||A===null||O===null||z===null)return null;const ie=ge=>{var Xt;const{addSelectedEdges:Pe,unselectNodesAndEdges:$e,multiSelectionActive:Ke}=U.getState();V&&(U.setState({nodesSelectionActive:!1}),N.selected&&Ke?($e({nodes:[],edges:[N]}),(Xt=Y.current)==null||Xt.blur()):Pe([e])),s&&s(ge,N)},le=a?ge=>{a(ge,{...N})}:void 0,de=u?ge=>{u(ge,{...N})}:void 0,re=f?ge=>{f(ge,{...N})}:void 0,he=d?ge=>{d(ge,{...N})}:void 0,Se=h?ge=>{h(ge,{...N})}:void 0,we=ge=>{var Pe;if(!R&&r1.includes(ge.key)&&V){const{unselectNodesAndEdges:$e,addSelectedEdges:Ke}=U.getState();ge.key==="Escape"?((Pe=Y.current)==null||Pe.blur(),$e({edges:[N]})):Ke([e])}};return w.jsx("svg",{style:{zIndex:F},children:w.jsxs("g",{className:et(["react-flow__edge",`react-flow__edge-${M}`,N.className,k,{selected:N.selected,animated:N.animated,inactive:!V&&!s,updating:ee,selectable:V}]),onClick:ie,onDoubleClick:le,onContextMenu:de,onMouseEnter:re,onMouseMove:he,onMouseLeave:Se,onKeyDown:j?we:void 0,tabIndex:j?0:void 0,role:j?"button":"img","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":N.ariaLabel===null?void 0:N.ariaLabel||`Edge from ${N.source} to ${N.target}`,"aria-describedby":j?`${M1}-${S}`:void 0,ref:Y,children:[!J&&w.jsx(L,{id:e,source:N.source,target:N.target,type:N.type,selected:N.selected,animated:N.animated,selectable:V,deletable:N.deletable??!0,label:N.label,labelStyle:N.labelStyle,labelShowBg:N.labelShowBg,labelBgStyle:N.labelBgStyle,labelBgPadding:N.labelBgPadding,labelBgBorderRadius:N.labelBgBorderRadius,sourceX:q,sourceY:A,targetX:O,targetY:z,sourcePosition:T,targetPosition:H,data:N.data,style:N.style,sourceHandleId:N.sourceHandle,targetHandleId:N.targetHandle,markerStart:Z,markerEnd:te,pathOptions:"pathOptions"in N?N.pathOptions:void 0,interactionWidth:N.interactionWidth}),G&&w.jsx(PT,{edge:N,isReconnectable:G,reconnectRadius:g,onReconnect:m,onReconnectStart:y,onReconnectEnd:v,sourceX:q,sourceY:A,targetX:O,targetY:z,sourcePosition:T,targetPosition:H,setUpdateHover:ne,setReconnecting:I})]})})}const TT=e=>({width:e.width,height:e.height,edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function sw({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:r,edgeTypes:i,noPanClassName:s,onReconnect:a,onEdgeContextMenu:u,onEdgeMouseEnter:f,onEdgeMouseMove:d,onEdgeMouseLeave:h,onEdgeClick:g,reconnectRadius:m,onEdgeDoubleClick:y,onReconnectStart:v,onReconnectEnd:S,disableKeyboardA11y:E}){const{edgesFocusable:k,edgesReconnectable:C,elementsSelectable:R,onError:N}=Ie(TT,Ge),b=gT(t);return w.jsxs("div",{className:"react-flow__edges",children:[w.jsx(wT,{defaultColor:e,rfId:r}),b.map(M=>w.jsx(RT,{id:M,edgesFocusable:k,edgesReconnectable:C,elementsSelectable:R,noPanClassName:s,onReconnect:a,onContextMenu:u,onMouseEnter:f,onMouseMove:d,onMouseLeave:h,onClick:g,reconnectRadius:m,onDoubleClick:y,onReconnectStart:v,onReconnectEnd:S,rfId:r,onError:N,edgeTypes:i,disableKeyboardA11y:E},M))]})}sw.displayName="EdgeRenderer";const IT=P.memo(sw),jT=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function $T({children:e}){const t=Ie(jT);return w.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function AT(e){const t=Uh(),r=P.useRef(!1);P.useEffect(()=>{!r.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),r.current=!0)},[e,t.viewportInitialized])}const MT=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function LT(e){const t=Ie(MT),r=He();return P.useEffect(()=>{e&&(t==null||t(e),r.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function DT(e){return e.connection.inProgress?{...e.connection,to:Ws(e.connection.to,e.transform)}:{...e.connection}}function OT(e){return DT}function zT(e){const t=OT();return Ie(t,Ge)}const FT=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function BT({containerStyle:e,style:t,type:r,component:i}){const{nodesConnectable:s,width:a,height:u,isValid:f,inProgress:d}=Ie(FT,Ge);return!(a&&s&&d)?null:w.jsx("svg",{style:e,width:a,height:u,className:"react-flow__connectionline react-flow__container",children:w.jsx("g",{className:et(["react-flow__connection",i1(f)]),children:w.jsx(lw,{style:t,type:r,CustomComponent:i,isValid:f})})})}const lw=({style:e,type:t=wr.Bezier,CustomComponent:r,isValid:i})=>{const{inProgress:s,from:a,fromNode:u,fromHandle:f,fromPosition:d,to:h,toNode:g,toHandle:m,toPosition:y}=zT();if(!s)return;if(r)return w.jsx(r,{connectionLineType:t,connectionLineStyle:e,fromNode:u,fromHandle:f,fromX:a.x,fromY:a.y,toX:h.x,toY:h.y,fromPosition:d,toPosition:y,connectionStatus:i1(i),toNode:g,toHandle:m});let v="";const S={sourceX:a.x,sourceY:a.y,sourcePosition:d,targetX:h.x,targetY:h.y,targetPosition:y};switch(t){case wr.Bezier:[v]=x1(S);break;case wr.SimpleBezier:[v]=X1(S);break;case wr.Step:[v]=nh({...S,borderRadius:0});break;case wr.SmoothStep:[v]=nh(S);break;default:[v]=S1(S)}return w.jsx("path",{d:v,fill:"none",className:"react-flow__connection-path",style:e})};lw.displayName="ConnectionLine";const HT={};function jy(e=HT){P.useRef(e),He(),P.useEffect(()=>{},[e])}function VT(){He(),P.useRef(!1),P.useEffect(()=>{},[])}function aw({nodeTypes:e,edgeTypes:t,onInit:r,onNodeClick:i,onEdgeClick:s,onNodeDoubleClick:a,onEdgeDoubleClick:u,onNodeMouseEnter:f,onNodeMouseMove:d,onNodeMouseLeave:h,onNodeContextMenu:g,onSelectionContextMenu:m,onSelectionStart:y,onSelectionEnd:v,connectionLineType:S,connectionLineStyle:E,connectionLineComponent:k,connectionLineContainerStyle:C,selectionKeyCode:R,selectionOnDrag:N,selectionMode:b,multiSelectionKeyCode:M,panActivationKeyCode:L,zoomActivationKeyCode:j,deleteKeyCode:G,onlyRenderVisibleElements:V,elementsSelectable:Y,defaultViewport:ee,translateExtent:ne,minZoom:J,maxZoom:I,preventScrolling:U,defaultMarkerColor:F,zoomOnScroll:q,zoomOnPinch:A,panOnScroll:O,panOnScrollSpeed:z,panOnScrollMode:T,zoomOnDoubleClick:H,panOnDrag:Z,onPaneClick:te,onPaneMouseEnter:ie,onPaneMouseMove:le,onPaneMouseLeave:de,onPaneScroll:re,onPaneContextMenu:he,paneClickDistance:Se,nodeClickDistance:we,onEdgeContextMenu:ge,onEdgeMouseEnter:Pe,onEdgeMouseMove:$e,onEdgeMouseLeave:Ke,reconnectRadius:Xt,onReconnect:Cr,onReconnectStart:lo,onReconnectEnd:_r,noDragClassName:Gt,noWheelClassName:fn,noPanClassName:En,disableKeyboardA11y:Wn,nodeExtent:ao,rfId:qn,viewport:Yn,onViewportChange:Xn}){return jy(e),jy(t),VT(),AT(r),LT(Yn),w.jsx(sT,{onPaneClick:te,onPaneMouseEnter:ie,onPaneMouseMove:le,onPaneMouseLeave:de,onPaneContextMenu:he,onPaneScroll:re,paneClickDistance:Se,deleteKeyCode:G,selectionKeyCode:R,selectionOnDrag:N,selectionMode:b,onSelectionStart:y,onSelectionEnd:v,multiSelectionKeyCode:M,panActivationKeyCode:L,zoomActivationKeyCode:j,elementsSelectable:Y,zoomOnScroll:q,zoomOnPinch:A,zoomOnDoubleClick:H,panOnScroll:O,panOnScrollSpeed:z,panOnScrollMode:T,panOnDrag:Z,defaultViewport:ee,translateExtent:ne,minZoom:J,maxZoom:I,onSelectionContextMenu:m,preventScrolling:U,noDragClassName:Gt,noWheelClassName:fn,noPanClassName:En,disableKeyboardA11y:Wn,onViewportChange:Xn,isControlledViewport:!!Yn,children:w.jsxs($T,{children:[w.jsx(IT,{edgeTypes:t,onEdgeClick:s,onEdgeDoubleClick:u,onReconnect:Cr,onReconnectStart:lo,onReconnectEnd:_r,onlyRenderVisibleElements:V,onEdgeContextMenu:ge,onEdgeMouseEnter:Pe,onEdgeMouseMove:$e,onEdgeMouseLeave:Ke,reconnectRadius:Xt,defaultMarkerColor:F,noPanClassName:En,disableKeyboardA11y:Wn,rfId:qn}),w.jsx(BT,{style:E,type:S,component:k,containerStyle:C}),w.jsx("div",{className:"react-flow__edgelabel-renderer"}),w.jsx(pT,{nodeTypes:e,onNodeClick:i,onNodeDoubleClick:a,onNodeMouseEnter:f,onNodeMouseMove:d,onNodeMouseLeave:h,onNodeContextMenu:g,nodeClickDistance:we,onlyRenderVisibleElements:V,noPanClassName:En,noDragClassName:Gt,disableKeyboardA11y:Wn,nodeExtent:ao,rfId:qn}),w.jsx("div",{className:"react-flow__viewport-portal"})]})})}aw.displayName="GraphView";const UT=P.memo(aw),$y=({nodes:e,edges:t,defaultNodes:r,defaultEdges:i,width:s,height:a,fitView:u,nodeOrigin:f,nodeExtent:d}={})=>{const h=new Map,g=new Map,m=new Map,y=new Map,v=i??t??[],S=r??e??[],E=f??[0,0],k=d??Rs;k1(m,y,v),oh(S,h,g,{nodeOrigin:E,nodeExtent:k,elevateNodesOnSelect:!1});let C=[0,0,1];if(u&&s&&a){const R=Us(h,{filter:L=>!!((L.width||L.initialWidth)&&(L.height||L.initialHeight))}),{x:N,y:b,zoom:M}=Dh(R,s,a,.5,2,.1);C=[N,b,M]}return{rfId:"1",width:0,height:0,transform:C,nodes:S,nodeLookup:h,parentLookup:g,edges:v,edgeLookup:y,connectionLookup:m,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:r!==void 0,hasDefaultEdges:i!==void 0,panZoom:null,minZoom:.5,maxZoom:2,translateExtent:Rs,nodeExtent:k,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:oi.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:E,nodeDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!1,fitViewOnInit:!1,fitViewDone:!1,fitViewOnInitOptions:void 0,selectNodesOnDrag:!0,multiSelectionActive:!1,connection:{...o1},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanSpeed:15,connectionRadius:20,onError:h5,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1}},WT=({nodes:e,edges:t,defaultNodes:r,defaultEdges:i,width:s,height:a,fitView:u,nodeOrigin:f,nodeExtent:d})=>cR((h,g)=>({...$y({nodes:e,edges:t,width:s,height:a,fitView:u,nodeOrigin:f,nodeExtent:d,defaultNodes:r,defaultEdges:i}),setNodes:m=>{const{nodeLookup:y,parentLookup:v,nodeOrigin:S,elevateNodesOnSelect:E}=g();oh(m,y,v,{nodeOrigin:S,nodeExtent:d,elevateNodesOnSelect:E,checkEquality:!0}),h({nodes:m})},setEdges:m=>{const{connectionLookup:y,edgeLookup:v}=g();k1(y,v,m),h({edges:m})},setDefaultNodesAndEdges:(m,y)=>{if(m){const{setNodes:v}=g();v(m),h({hasDefaultNodes:!0})}if(y){const{setEdges:v}=g();v(y),h({hasDefaultEdges:!0})}},updateNodeInternals:(m,y={triggerFitView:!0})=>{const{triggerNodeChanges:v,nodeLookup:S,parentLookup:E,fitViewOnInit:k,fitViewDone:C,fitViewOnInitOptions:R,domNode:N,nodeOrigin:b,nodeExtent:M,debug:L,fitViewSync:j}=g(),{changes:G,updatedInternals:V}=P5(m,S,E,N,b,M);if(V){if(_5(S,E,{nodeOrigin:b,nodeExtent:M}),y.triggerFitView){let Y=C;!C&&k&&(Y=j({...R,nodes:R==null?void 0:R.nodes})),h({fitViewDone:Y})}else h({});(G==null?void 0:G.length)>0&&(L&&console.log("React Flow: trigger node changes",G),v==null||v(G))}},updateNodePositions:(m,y=!1)=>{const v=[],S=[];for(const[E,k]of m){const C={id:E,type:"position",position:k.position,dragging:y};k!=null&&k.expandParent&&(k!=null&&k.parentId)&&C.position&&(v.push({id:E,parentId:k.parentId,rect:{...k.internals.positionAbsolute,width:k.measured.width,height:k.measured.height}}),C.position.x=Math.max(0,C.position.x),C.position.y=Math.max(0,C.position.y)),S.push(C)}if(v.length>0){const{nodeLookup:E,parentLookup:k,nodeOrigin:C}=g(),R=Bh(v,E,k,C);S.push(...R)}g().triggerNodeChanges(S)},triggerNodeChanges:m=>{const{onNodesChange:y,setNodes:v,nodes:S,hasDefaultNodes:E,debug:k}=g();if(m!=null&&m.length){if(E){const C=O1(m,S);v(C)}k&&console.log("React Flow: trigger node changes",m),y==null||y(m)}},triggerEdgeChanges:m=>{const{onEdgesChange:y,setEdges:v,edges:S,hasDefaultEdges:E,debug:k}=g();if(m!=null&&m.length){if(E){const C=Vh(m,S);v(C)}k&&console.log("React Flow: trigger edge changes",m),y==null||y(m)}},addSelectedNodes:m=>{const{multiSelectionActive:y,edgeLookup:v,nodeLookup:S,triggerNodeChanges:E,triggerEdgeChanges:k}=g();if(y){const C=m.map(R=>Vr(R,!0));E(C);return}E(Uo(S,new Set([...m]),!0)),k(Uo(v))},addSelectedEdges:m=>{const{multiSelectionActive:y,edgeLookup:v,nodeLookup:S,triggerNodeChanges:E,triggerEdgeChanges:k}=g();if(y){const C=m.map(R=>Vr(R,!0));k(C);return}k(Uo(v,new Set([...m]))),E(Uo(S,new Set,!0))},unselectNodesAndEdges:({nodes:m,edges:y}={})=>{const{edges:v,nodes:S,nodeLookup:E,triggerNodeChanges:k,triggerEdgeChanges:C}=g(),R=m||S,N=y||v,b=R.map(L=>{const j=E.get(L.id);return j&&(j.selected=!1),Vr(L.id,!1)}),M=N.map(L=>Vr(L.id,!1));k(b),C(M)},setMinZoom:m=>{const{panZoom:y,maxZoom:v}=g();y==null||y.setScaleExtent([m,v]),h({minZoom:m})},setMaxZoom:m=>{const{panZoom:y,minZoom:v}=g();y==null||y.setScaleExtent([v,m]),h({maxZoom:m})},setTranslateExtent:m=>{var y;(y=g().panZoom)==null||y.setTranslateExtent(m),h({translateExtent:m})},setPaneClickDistance:m=>{var y;(y=g().panZoom)==null||y.setClickDistance(m)},resetSelectedElements:()=>{const{edges:m,nodes:y,triggerNodeChanges:v,triggerEdgeChanges:S}=g(),E=y.reduce((C,R)=>R.selected?[...C,Vr(R.id,!1)]:C,[]),k=m.reduce((C,R)=>R.selected?[...C,Vr(R.id,!1)]:C,[]);v(E),S(k)},setNodeExtent:m=>{const{nodes:y,nodeLookup:v,parentLookup:S,nodeOrigin:E,elevateNodesOnSelect:k,nodeExtent:C}=g();m[0][0]===C[0][0]&&m[0][1]===C[0][1]&&m[1][0]===C[1][0]&&m[1][1]===C[1][1]||(oh(y,v,S,{nodeOrigin:E,nodeExtent:m,elevateNodesOnSelect:k,checkEquality:!1}),h({nodeExtent:m}))},panBy:m=>{const{transform:y,width:v,height:S,panZoom:E,translateExtent:k}=g();return R5({delta:m,panZoom:E,transform:y,translateExtent:k,width:v,height:S})},fitView:m=>{const{panZoom:y,width:v,height:S,minZoom:E,maxZoom:k,nodeLookup:C}=g();if(!y)return Promise.resolve(!1);const R=Jd(C,m);return Zd({nodes:R,width:v,height:S,panZoom:y,minZoom:E,maxZoom:k},m)},fitViewSync:m=>{const{panZoom:y,width:v,height:S,minZoom:E,maxZoom:k,nodeLookup:C}=g();if(!y)return!1;const R=Jd(C,m);return Zd({nodes:R,width:v,height:S,panZoom:y,minZoom:E,maxZoom:k},m),R.size>0},cancelConnection:()=>{h({connection:{...o1}})},updateConnection:m=>{h({connection:m})},reset:()=>h({...$y()})}),Object.is);function uw({initialNodes:e,initialEdges:t,defaultNodes:r,defaultEdges:i,initialWidth:s,initialHeight:a,fitView:u,nodeOrigin:f,nodeExtent:d,children:h}){const[g]=P.useState(()=>WT({nodes:e,edges:t,defaultNodes:r,defaultEdges:i,width:s,height:a,fitView:u,nodeOrigin:f,nodeExtent:d}));return w.jsx(fR,{value:g,children:w.jsx(AR,{children:h})})}function qT({children:e,nodes:t,edges:r,defaultNodes:i,defaultEdges:s,width:a,height:u,fitView:f,nodeOrigin:d,nodeExtent:h}){return P.useContext(Gu)?w.jsx(w.Fragment,{children:e}):w.jsx(uw,{initialNodes:t,initialEdges:r,defaultNodes:i,defaultEdges:s,initialWidth:a,initialHeight:u,fitView:f,nodeOrigin:d,nodeExtent:h,children:e})}const YT={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function XT({nodes:e,edges:t,defaultNodes:r,defaultEdges:i,className:s,nodeTypes:a,edgeTypes:u,onNodeClick:f,onEdgeClick:d,onInit:h,onMove:g,onMoveStart:m,onMoveEnd:y,onConnect:v,onConnectStart:S,onConnectEnd:E,onClickConnectStart:k,onClickConnectEnd:C,onNodeMouseEnter:R,onNodeMouseMove:N,onNodeMouseLeave:b,onNodeContextMenu:M,onNodeDoubleClick:L,onNodeDragStart:j,onNodeDrag:G,onNodeDragStop:V,onNodesDelete:Y,onEdgesDelete:ee,onDelete:ne,onSelectionChange:J,onSelectionDragStart:I,onSelectionDrag:U,onSelectionDragStop:F,onSelectionContextMenu:q,onSelectionStart:A,onSelectionEnd:O,onBeforeDelete:z,connectionMode:T,connectionLineType:H=wr.Bezier,connectionLineStyle:Z,connectionLineComponent:te,connectionLineContainerStyle:ie,deleteKeyCode:le="Backspace",selectionKeyCode:de="Shift",selectionOnDrag:re=!1,selectionMode:he=Ts.Full,panActivationKeyCode:Se="Space",multiSelectionKeyCode:we=wu()?"Meta":"Control",zoomActivationKeyCode:ge=wu()?"Meta":"Control",snapToGrid:Pe,snapGrid:$e,onlyRenderVisibleElements:Ke=!1,selectNodesOnDrag:Xt,nodesDraggable:Cr,nodesConnectable:lo,nodesFocusable:_r,nodeOrigin:Gt=L1,edgesFocusable:fn,edgesReconnectable:En,elementsSelectable:Wn=!0,defaultViewport:ao=CR,minZoom:qn=.5,maxZoom:Yn=2,translateExtent:Xn=Rs,preventScrolling:uo=!0,nodeExtent:co,defaultMarkerColor:Nr="#b1b1b7",zoomOnScroll:br=!0,zoomOnPinch:Ju=!0,panOnScroll:qs=!1,panOnScrollSpeed:Ys=.5,panOnScrollMode:Zu=Qr.Free,zoomOnDoubleClick:hi=!0,panOnDrag:pi=!0,onPaneClick:gi,onPaneMouseEnter:mi,onPaneMouseMove:yi,onPaneMouseLeave:Gn,onPaneScroll:Kn,onPaneContextMenu:Xs,paneClickDistance:xi=0,nodeClickDistance:Gs=0,children:Ks,onReconnect:Qs,onReconnectStart:vi,onReconnectEnd:Js,onEdgeContextMenu:Pr,onEdgeDoubleClick:wi,onEdgeMouseEnter:Rr,onEdgeMouseMove:ec,onEdgeMouseLeave:Tr,reconnectRadius:fo=10,onNodesChange:ho,onEdgesChange:Si,noDragClassName:tc="nodrag",noWheelClassName:nc="nowheel",noPanClassName:Zs="nopan",fitView:dn,fitViewOptions:el,connectOnClick:tl,attributionPosition:rc,proOptions:nl,defaultEdgeOptions:rl,elevateNodesOnSelect:ol,elevateEdgesOnSelect:il,disableKeyboardA11y:sl=!1,autoPanOnConnect:oc,autoPanOnNodeDrag:Ve,autoPanSpeed:ic,connectionRadius:Ei,isValidConnection:ll,onError:po,style:sc,id:ki,nodeDragThreshold:go,viewport:Ft,onViewportChange:lc,width:Tt,height:ac,colorMode:uc="light",debug:cc,...mo},yo){const kn=ki||"1",xo=PR(uc);return w.jsx("div",{...mo,style:{...sc,...YT},ref:yo,className:et(["react-flow",s,xo]),"data-testid":"rf__wrapper",id:ki,children:w.jsxs(qT,{nodes:e,edges:t,width:Tt,height:ac,fitView:dn,nodeOrigin:Gt,nodeExtent:co,children:[w.jsx(UT,{onInit:h,onNodeClick:f,onEdgeClick:d,onNodeMouseEnter:R,onNodeMouseMove:N,onNodeMouseLeave:b,onNodeContextMenu:M,onNodeDoubleClick:L,nodeTypes:a,edgeTypes:u,connectionLineType:H,connectionLineStyle:Z,connectionLineComponent:te,connectionLineContainerStyle:ie,selectionKeyCode:de,selectionOnDrag:re,selectionMode:he,deleteKeyCode:le,multiSelectionKeyCode:we,panActivationKeyCode:Se,zoomActivationKeyCode:ge,onlyRenderVisibleElements:Ke,defaultViewport:ao,translateExtent:Xn,minZoom:qn,maxZoom:Yn,preventScrolling:uo,zoomOnScroll:br,zoomOnPinch:Ju,zoomOnDoubleClick:hi,panOnScroll:qs,panOnScrollSpeed:Ys,panOnScrollMode:Zu,panOnDrag:pi,onPaneClick:gi,onPaneMouseEnter:mi,onPaneMouseMove:yi,onPaneMouseLeave:Gn,onPaneScroll:Kn,onPaneContextMenu:Xs,paneClickDistance:xi,nodeClickDistance:Gs,onSelectionContextMenu:q,onSelectionStart:A,onSelectionEnd:O,onReconnect:Qs,onReconnectStart:vi,onReconnectEnd:Js,onEdgeContextMenu:Pr,onEdgeDoubleClick:wi,onEdgeMouseEnter:Rr,onEdgeMouseMove:ec,onEdgeMouseLeave:Tr,reconnectRadius:fo,defaultMarkerColor:Nr,noDragClassName:tc,noWheelClassName:nc,noPanClassName:Zs,rfId:kn,disableKeyboardA11y:sl,nodeExtent:co,viewport:Ft,onViewportChange:lc}),w.jsx(bR,{nodes:e,edges:t,defaultNodes:r,defaultEdges:i,onConnect:v,onConnectStart:S,onConnectEnd:E,onClickConnectStart:k,onClickConnectEnd:C,nodesDraggable:Cr,nodesConnectable:lo,nodesFocusable:_r,edgesFocusable:fn,edgesReconnectable:En,elementsSelectable:Wn,elevateNodesOnSelect:ol,elevateEdgesOnSelect:il,minZoom:qn,maxZoom:Yn,nodeExtent:co,onNodesChange:ho,onEdgesChange:Si,snapToGrid:Pe,snapGrid:$e,connectionMode:T,translateExtent:Xn,connectOnClick:tl,defaultEdgeOptions:rl,fitView:dn,fitViewOptions:el,onNodesDelete:Y,onEdgesDelete:ee,onDelete:ne,onNodeDragStart:j,onNodeDrag:G,onNodeDragStop:V,onSelectionDrag:U,onSelectionDragStart:I,onSelectionDragStop:F,onMove:g,onMoveStart:m,onMoveEnd:y,noPanClassName:Zs,nodeOrigin:Gt,rfId:kn,autoPanOnConnect:oc,autoPanOnNodeDrag:Ve,autoPanSpeed:ic,onError:po,connectionRadius:Ei,isValidConnection:ll,selectNodesOnDrag:Xt,nodeDragThreshold:go,onBeforeDelete:z,paneClickDistance:xi,debug:cc}),w.jsx(kR,{onSelectionChange:J}),Ks,w.jsx(xR,{proOptions:nl,position:rc}),w.jsx(mR,{rfId:kn,disableKeyboardA11y:sl})]})})}var GT=z1(XT);function KT(e){const[t,r]=P.useState(e),i=P.useCallback(s=>r(a=>O1(s,a)),[]);return[t,r,i]}function QT(e){const[t,r]=P.useState(e),i=P.useCallback(s=>r(a=>Vh(s,a)),[]);return[t,r,i]}function JT({dimensions:e,lineWidth:t,variant:r,className:i}){return w.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:et(["react-flow__background-pattern",r,i])})}function ZT({radius:e,className:t}){return w.jsx("circle",{cx:e,cy:e,r:e,className:et(["react-flow__background-pattern","dots",t])})}var Er;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Er||(Er={}));const eI={[Er.Dots]:1,[Er.Lines]:1,[Er.Cross]:6},tI=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function cw({id:e,variant:t=Er.Dots,gap:r=20,size:i,lineWidth:s=1,offset:a=0,color:u,bgColor:f,style:d,className:h,patternClassName:g}){const m=P.useRef(null),{transform:y,patternId:v}=Ie(tI,Ge),S=i||eI[t],E=t===Er.Dots,k=t===Er.Cross,C=Array.isArray(r)?r:[r,r],R=[C[0]*y[2]||1,C[1]*y[2]||1],N=S*y[2],b=Array.isArray(a)?a:[a,a],M=k?[N,N]:R,L=[b[0]*y[2]||1+M[0]/2,b[1]*y[2]||1+M[1]/2],j=`${v}${e||""}`;return w.jsxs("svg",{className:et(["react-flow__background",h]),style:{...d,...Ku,"--xy-background-color-props":f,"--xy-background-pattern-color-props":u},ref:m,"data-testid":"rf__background",children:[w.jsx("pattern",{id:j,x:y[0]%R[0],y:y[1]%R[1],width:R[0],height:R[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${L[0]},-${L[1]})`,children:E?w.jsx(ZT,{radius:N/2,className:g}):w.jsx(JT,{dimensions:M,lineWidth:s,variant:t,className:g})}),w.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${j})`})]})}cw.displayName="Background";const nI=P.memo(cw);function rI(){return w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:w.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function oI(){return w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:w.jsx("path",{d:"M0 0h32v4.2H0z"})})}function iI(){return w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:w.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function sI(){return w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:w.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function lI(){return w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:w.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function $a({children:e,className:t,...r}){return w.jsx("button",{type:"button",className:et(["react-flow__controls-button",t]),...r,children:e})}const aI=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom});function fw({style:e,showZoom:t=!0,showFitView:r=!0,showInteractive:i=!0,fitViewOptions:s,onZoomIn:a,onZoomOut:u,onFitView:f,onInteractiveChange:d,className:h,children:g,position:m="bottom-left",orientation:y="vertical","aria-label":v="React Flow controls"}){const S=He(),{isInteractive:E,minZoomReached:k,maxZoomReached:C}=Ie(aI,Ge),{zoomIn:R,zoomOut:N,fitView:b}=Uh(),M=()=>{R(),a==null||a()},L=()=>{N(),u==null||u()},j=()=>{b(s),f==null||f()},G=()=>{S.setState({nodesDraggable:!E,nodesConnectable:!E,elementsSelectable:!E}),d==null||d(!E)},V=y==="horizontal"?"horizontal":"vertical";return w.jsxs(Hh,{className:et(["react-flow__controls",V,h]),position:m,style:e,"data-testid":"rf__controls","aria-label":v,children:[t&&w.jsxs(w.Fragment,{children:[w.jsx($a,{onClick:M,className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in",disabled:C,children:w.jsx(rI,{})}),w.jsx($a,{onClick:L,className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out",disabled:k,children:w.jsx(oI,{})})]}),r&&w.jsx($a,{className:"react-flow__controls-fitview",onClick:j,title:"fit view","aria-label":"fit view",children:w.jsx(iI,{})}),i&&w.jsx($a,{className:"react-flow__controls-interactive",onClick:G,title:"toggle interactivity","aria-label":"toggle interactivity",children:E?w.jsx(lI,{}):w.jsx(sI,{})}),g]})}fw.displayName="Controls";const uI=P.memo(fw);function cI({id:e,x:t,y:r,width:i,height:s,style:a,color:u,strokeColor:f,strokeWidth:d,className:h,borderRadius:g,shapeRendering:m,selected:y,onClick:v}){const{background:S,backgroundColor:E}=a||{},k=u||S||E;return w.jsx("rect",{className:et(["react-flow__minimap-node",{selected:y},h]),x:t,y:r,rx:g,ry:g,width:i,height:s,style:{fill:k,stroke:f,strokeWidth:d},shapeRendering:m,onClick:v?C=>v(C,e):void 0})}const fI=P.memo(cI),dI=e=>e.nodes.map(t=>t.id),wd=e=>e instanceof Function?e:()=>e;function hI({nodeStrokeColor:e,nodeColor:t,nodeClassName:r="",nodeBorderRadius:i=5,nodeStrokeWidth:s,nodeComponent:a=fI,onClick:u}){const f=Ie(dI,Ge),d=wd(t),h=wd(e),g=wd(r),m=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return w.jsx(w.Fragment,{children:f.map(y=>w.jsx(gI,{id:y,nodeColorFunc:d,nodeStrokeColorFunc:h,nodeClassNameFunc:g,nodeBorderRadius:i,nodeStrokeWidth:s,NodeComponent:a,onClick:u,shapeRendering:m},y))})}function pI({id:e,nodeColorFunc:t,nodeStrokeColorFunc:r,nodeClassNameFunc:i,nodeBorderRadius:s,nodeStrokeWidth:a,shapeRendering:u,NodeComponent:f,onClick:d}){const{node:h,x:g,y:m,width:y,height:v}=Ie(S=>{const E=S.nodeLookup.get(e),{x:k,y:C}=E.internals.positionAbsolute,{width:R,height:N}=Un(E);return{node:E,x:k,y:C,width:R,height:N}},Ge);return!h||h.hidden||!h1(h)?null:w.jsx(f,{x:g,y:m,width:y,height:v,style:h.style,selected:!!h.selected,className:i(h),color:t(h),borderRadius:s,strokeColor:r(h),strokeWidth:a,shapeRendering:u,onClick:d,id:h.id})}const gI=P.memo(pI);var mI=P.memo(hI);const yI=200,xI=150,vI=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?f1(Us(e.nodeLookup),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height}},wI="react-flow__minimap-desc";function dw({style:e,className:t,nodeStrokeColor:r,nodeColor:i,nodeClassName:s="",nodeBorderRadius:a=5,nodeStrokeWidth:u,nodeComponent:f,bgColor:d,maskColor:h,maskStrokeColor:g,maskStrokeWidth:m,position:y="bottom-right",onClick:v,onNodeClick:S,pannable:E=!1,zoomable:k=!1,ariaLabel:C="React Flow mini map",inversePan:R,zoomStep:N=10,offsetScale:b=5}){const M=He(),L=P.useRef(null),{boundingRect:j,viewBB:G,rfId:V,panZoom:Y,translateExtent:ee,flowWidth:ne,flowHeight:J}=Ie(vI,Ge),I=(e==null?void 0:e.width)??yI,U=(e==null?void 0:e.height)??xI,F=j.width/I,q=j.height/U,A=Math.max(F,q),O=A*I,z=A*U,T=b*A,H=j.x-(O-j.width)/2-T,Z=j.y-(z-j.height)/2-T,te=O+T*2,ie=z+T*2,le=`${wI}-${V}`,de=P.useRef(0),re=P.useRef();de.current=A,P.useEffect(()=>{if(L.current&&Y)return re.current=D5({domNode:L.current,panZoom:Y,getTransform:()=>M.getState().transform,getViewScale:()=>de.current}),()=>{var we;(we=re.current)==null||we.destroy()}},[Y]),P.useEffect(()=>{var we;(we=re.current)==null||we.update({translateExtent:ee,width:ne,height:J,inversePan:R,pannable:E,zoomStep:N,zoomable:k})},[E,k,R,N,ee,ne,J]);const he=v?we=>{var $e;const[ge,Pe]=(($e=re.current)==null?void 0:$e.pointer(we))||[0,0];v(we,{x:ge,y:Pe})}:void 0,Se=S?P.useCallback((we,ge)=>{const Pe=M.getState().nodeLookup.get(ge);S(we,Pe)},[]):void 0;return w.jsx(Hh,{position:y,style:{...e,"--xy-minimap-background-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-background-color-props":typeof h=="string"?h:void 0,"--xy-minimap-mask-stroke-color-props":typeof g=="string"?g:void 0,"--xy-minimap-mask-stroke-width-props":typeof m=="number"?m*A:void 0,"--xy-minimap-node-background-color-props":typeof i=="string"?i:void 0,"--xy-minimap-node-stroke-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-width-props":typeof u=="string"?u:void 0},className:et(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:w.jsxs("svg",{width:I,height:U,viewBox:`${H} ${Z} ${te} ${ie}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":le,ref:L,onClick:he,children:[C&&w.jsx("title",{id:le,children:C}),w.jsx(mI,{onClick:Se,nodeColor:i,nodeStrokeColor:r,nodeBorderRadius:a,nodeClassName:s,nodeStrokeWidth:u,nodeComponent:f}),w.jsx("path",{className:"react-flow__minimap-mask",d:`M${H-T},${Z-T}h${te+T*2}v${ie+T*2}h${-te-T*2}z
|
||
M${G.x},${G.y}h${G.width}v${G.height}h${-G.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}dw.displayName="MiniMap";P.memo(dw);function SI({nodeId:e,position:t,variant:r=ys.Handle,className:i,style:s={},children:a,color:u,minWidth:f=10,minHeight:d=10,maxWidth:h=Number.MAX_VALUE,maxHeight:g=Number.MAX_VALUE,keepAspectRatio:m=!1,shouldResize:y,onResizeStart:v,onResize:S,onResizeEnd:E}){const k=V1(),C=typeof e=="string"?e:k,R=He(),N=P.useRef(null),b=r===ys.Line?"right":"bottom-right",M=t??b,L=P.useRef(null);P.useEffect(()=>{if(!(!N.current||!C))return L.current||(L.current=J5({domNode:N.current,nodeId:C,getStoreItems:()=>{const{nodeLookup:Y,transform:ee,snapGrid:ne,snapToGrid:J,nodeOrigin:I,domNode:U}=R.getState();return{nodeLookup:Y,transform:ee,snapGrid:ne,snapToGrid:J,nodeOrigin:I,paneDomNode:U}},onChange:(Y,ee)=>{const{triggerNodeChanges:ne,nodeLookup:J,parentLookup:I,nodeOrigin:U}=R.getState(),F=[],q={x:Y.x,y:Y.y},A=J.get(C);if(A&&A.expandParent&&A.parentId){const O=A.origin??U,z=Y.width??A.measured.width,T=Y.height??A.measured.height,H={id:A.id,parentId:A.parentId,rect:{width:z,height:T,...p1({x:Y.x??A.position.x,y:Y.y??A.position.y},{width:z,height:T},A.parentId,J,O)}},Z=Bh([H],J,I,U);F.push(...Z),q.x=Y.x?Math.max(O[0]*z,Y.x):void 0,q.y=Y.y?Math.max(O[1]*T,Y.y):void 0}if(q.x!==void 0&&q.y!==void 0){const O={id:C,type:"position",position:{...q}};F.push(O)}if(Y.width!==void 0&&Y.height!==void 0){const O={id:C,type:"dimensions",resizing:!0,setAttributes:!0,dimensions:{width:Y.width,height:Y.height}};F.push(O)}for(const O of ee){const z={...O,type:"position"};F.push(z)}ne(F)},onEnd:()=>{const Y={id:C,type:"dimensions",resizing:!1};R.getState().triggerNodeChanges([Y])}})),L.current.update({controlPosition:M,boundaries:{minWidth:f,minHeight:d,maxWidth:h,maxHeight:g},keepAspectRatio:m,onResizeStart:v,onResize:S,onResizeEnd:E,shouldResize:y}),()=>{var Y;(Y=L.current)==null||Y.destroy()}},[M,f,d,h,g,m,v,S,E,y]);const j=M.split("-"),G=r===ys.Line?"borderColor":"backgroundColor",V=u?{...s,[G]:u}:s;return w.jsx("div",{className:et(["react-flow__resize-control","nodrag",...j,r,i]),ref:N,style:V,children:a})}P.memo(SI);const EI=oe.div`
|
||
background-color: white;
|
||
border: 2px ${e=>e.bordertype} ${e=>e.bordercolor};
|
||
width: ${e=>e.width}px;
|
||
height: ${e=>e.height}px;
|
||
border-radius: 8px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
visibility: visible;
|
||
`,kI=({data:e})=>w.jsxs(EI,{width:e.style.width,height:e.style.height,bordertype:e.style.borderType,bordercolor:e.style.borderColor,children:[e.label,w.jsx(_e,{type:"target",position:ce.Right,id:"target-right",style:{right:0}})]}),CI=oe.div`
|
||
background-color: white;
|
||
border-radius: 50px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border: 2px ${e=>e.bordertype} ${e=>e.bordercolor};
|
||
width: ${e=>e.width}px;
|
||
height: ${e=>e.height}px;
|
||
`,_I=({data:e})=>w.jsxs(CI,{width:e.style.width,height:e.style.height,bordertype:e.style.borderType,bordercolor:e.style.borderColor,children:[e.label,w.jsx(_e,{type:"source",position:ce.Top,id:"source-top",style:{top:0}}),w.jsx(_e,{type:"source",position:ce.Right,id:"source-right",style:{right:0}}),w.jsx(_e,{type:"source",position:ce.Bottom,id:"source-bottom",style:{bottom:0}}),w.jsx(_e,{type:"source",position:ce.Left,id:"source-left",style:{left:0}}),w.jsx(_e,{type:"target",position:ce.Top,id:"target-top",style:{top:0}}),w.jsx(_e,{type:"target",position:ce.Right,id:"target-right",style:{right:0}}),w.jsx(_e,{type:"target",position:ce.Bottom,id:"target-bottom",style:{bottom:0}}),w.jsx(_e,{type:"target",position:ce.Left,id:"target-left",style:{left:0}})]}),NI=oe.div`
|
||
transform: skewX(-20deg);
|
||
background-color: white;
|
||
border-radius: 8px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border: 2px ${e=>e.bordertype} ${e=>e.bordercolor};
|
||
width: ${e=>e.width}px;
|
||
height: ${e=>e.height}px;
|
||
|
||
.react-flow__handle-top{
|
||
transform: skewX(20deg);
|
||
top: -5px;
|
||
}
|
||
|
||
.react-flow__handle-bottom{
|
||
transform: skewX(20deg);
|
||
bottom: -5px;
|
||
}
|
||
|
||
.react-flow__handle-right{
|
||
transform: skewX(20deg);
|
||
right: -5px;
|
||
top: 25px;
|
||
}
|
||
|
||
.react-flow__handle-left{
|
||
transform: skewX(20deg);
|
||
left: -5px;
|
||
top: 25px;
|
||
}
|
||
`,bI=({data:e})=>w.jsxs(NI,{width:e.style.width,height:e.style.height,bordertype:e.style.borderType,bordercolor:e.style.borderColor,children:[e.label,w.jsx(_e,{type:"source",position:ce.Top,id:"source-top"}),w.jsx(_e,{type:"source",position:ce.Right,id:"source-right"}),w.jsx(_e,{type:"source",position:ce.Bottom,id:"source-bottom"}),w.jsx(_e,{type:"source",position:ce.Left,id:"source-left"}),w.jsx(_e,{type:"target",position:ce.Top,id:"target-top"}),w.jsx(_e,{type:"target",position:ce.Right,id:"target-right"}),w.jsx(_e,{type:"target",position:ce.Bottom,id:"target-bottom"}),w.jsx(_e,{type:"target",position:ce.Left,id:"target-left"})]}),PI=oe.div`
|
||
background-color: white;
|
||
border-radius: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border: 2px ${e=>e.bordertype} ${e=>e.bordercolor};
|
||
width: ${e=>e.width}px;
|
||
height: ${e=>e.height}px;
|
||
`,RI=({data:e})=>w.jsxs(PI,{width:e.style.width,height:e.style.height,bordertype:e.style.borderType,bordercolor:e.style.borderColor,children:[e.label,w.jsx(_e,{type:"source",position:ce.Top,id:"source-top",style:{top:0}}),w.jsx(_e,{type:"source",position:ce.Right,id:"source-right",style:{right:0}}),w.jsx(_e,{type:"source",position:ce.Bottom,id:"source-bottom",style:{bottom:0}}),w.jsx(_e,{type:"source",position:ce.Left,id:"source-left",style:{left:0}}),w.jsx(_e,{type:"target",position:ce.Top,id:"target-top",style:{top:0}}),w.jsx(_e,{type:"target",position:ce.Right,id:"target-right",style:{right:0}}),w.jsx(_e,{type:"target",position:ce.Bottom,id:"target-bottom",style:{bottom:0}}),w.jsx(_e,{type:"target",position:ce.Left,id:"target-left",style:{left:0}})]}),TI=oe.div`
|
||
position: relative;
|
||
width: ${e=>e.width}px;
|
||
height: ${e=>e.height}px;
|
||
`,II=oe.div`
|
||
clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
|
||
width: ${e=>e.width-6}px;
|
||
height: ${e=>e.height-4}px;
|
||
background-color: white;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
`,jI=oe.div`
|
||
clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
|
||
width: ${e=>e.width}px;
|
||
height: ${e=>e.height}px;
|
||
background-color: ${e=>e.bordercolor};
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
`,$I=({data:e})=>(Math.max(e.style.width,e.style.height),w.jsxs(TI,{width:e.style.width,height:e.style.height,children:[w.jsx(jI,{width:e.style.width,height:e.style.height,bordercolor:e.style.borderColor,children:w.jsx(II,{width:e.style.width,height:e.style.height,children:e.label})}),w.jsxs("div",{style:{width:"100%",height:"100%"},children:[w.jsx(_e,{type:"source",position:ce.Top,id:"source-top"}),w.jsx(_e,{type:"source",position:ce.Right,id:"source-right"}),w.jsx(_e,{type:"source",position:ce.Bottom,id:"source-bottom"}),w.jsx(_e,{type:"source",position:ce.Left,id:"source-left"}),w.jsx(_e,{type:"target",position:ce.Top,id:"target-top"}),w.jsx(_e,{type:"target",position:ce.Right,id:"target-right"}),w.jsx(_e,{type:"target",position:ce.Bottom,id:"target-bottom"}),w.jsx(_e,{type:"target",position:ce.Left,id:"target-left"})]})]})),AI=oe.div`
|
||
border: 2px ${e=>e.$bordertype} ${e=>e.$bordercolor};
|
||
width: ${e=>e.$width}px;
|
||
height: ${e=>typeof e.$height=="number"?`${e.$height}px`:e.$height};
|
||
border-radius: 12px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
visibility: visible;
|
||
`,MI=oe.div`
|
||
position: absolute;
|
||
top: -25px;
|
||
left: 10px;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
width: ${e=>e.$width}px;
|
||
gap: 5px;
|
||
padding-right: 10px;
|
||
|
||
p{
|
||
margin: 0;
|
||
}
|
||
`,LI=oe.p`
|
||
padding: unset;
|
||
background: none;
|
||
color: ${e=>e.theme.textColor};
|
||
margin-right: 15px !important;
|
||
&:hover{
|
||
background: none;
|
||
}
|
||
`,DI=({data:e})=>{const[t,r]=P.useState(!1),{groups:i,setGroups:s}=Dx(),a=()=>{const u=!t;r(u);const f=i.map(d=>d.id===e.id?{...d,click:u}:d);i.some(d=>d.id===e.id)||f.push({id:e.id,click:u}),s(f)};return w.jsx(AI,{$width:e.style.width,$height:Number(e.style.height),$bordertype:e.style.borderType,$bordercolor:e.style.borderColor,children:w.jsxs(MI,{$bordertype:e.style.borderType,$bordercolor:e.style.borderColor,$width:e.style.width,children:[w.jsx("p",{children:e.label}),w.jsx(LI,{onClick:a,children:t?"Развернуть":"Свернуть"})]})})},OI=oe.div`
|
||
background-color: ${e=>e.theme.primary};
|
||
border: 2px ${e=>e.$bordertype} ${e=>e.$bordercolor};
|
||
min-width: ${e=>e.$width}px;
|
||
height: ${e=>typeof e.$height=="number"?`${e.$height}px`:e.$height};
|
||
border-radius: 8px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
visibility: visible;
|
||
|
||
p{
|
||
margin: 0;
|
||
}
|
||
`,zI=oe.div`
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
background: ${e=>e.$backgroundcolor};
|
||
border-top-left-radius: 8px;
|
||
border-top-right-radius: 8px;
|
||
color: white;
|
||
padding: 15px;
|
||
height: ${e=>e.$height?e.$height:"unset"};
|
||
|
||
img{
|
||
width: 20px
|
||
}
|
||
`,FI=oe.p`
|
||
font-size: 18px;
|
||
`,BI=oe.p`
|
||
font-size: 14px;
|
||
|
||
|
||
img{
|
||
width: 20px;
|
||
height: 20px;
|
||
}
|
||
`,HI=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 15px;
|
||
padding: 15px;
|
||
`,Ay=oe.div`
|
||
display: flex;
|
||
gap: 5px;
|
||
`,VI=oe.div`
|
||
display: flex;
|
||
justify-content: space-between;
|
||
background: ${e=>e.theme.secondary};
|
||
border-radius: 8px;
|
||
// box-shadow: 0px 0px 15px 2px rgba(0, 0, 0, 0.1);
|
||
width: 100%;
|
||
|
||
.networkNode-row{
|
||
padding: 10px;
|
||
}
|
||
`,UI=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 5px;
|
||
width: 100%;
|
||
|
||
.networkNode-label{
|
||
font-size: 10px;
|
||
width: 100%;
|
||
text-align: left;
|
||
margin-left: 15px;
|
||
}
|
||
`,WI=({signal:e})=>{const t=P.useRef(null);return P.useEffect(()=>{const r={"--st1-color":e>=1?"white":"black","--st2-color":e>=2?"white":"black","--st3-color":e>=3?"white":"black","--st4-color":e>=4?"white":"black","--st5-color":e===5?"white":"black"};t.current&&Object.entries(r).forEach(([i,s])=>{var a;(a=t.current)==null||a.style.setProperty(i,s)})},[e]),w.jsxs("svg",{ref:t,version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 296 235",xmlSpace:"preserve",width:"20px",height:"20px",children:[w.jsx("style",{type:"text/css",children:`
|
||
.st1 { fill-rule: evenodd; clip-rule: evenodd; fill: var(--st1-color, white); }
|
||
.st2 { fill-rule: evenodd; clip-rule: evenodd; fill: var(--st2-color, white); }
|
||
.st3 { fill-rule: evenodd; clip-rule: evenodd; fill: var(--st3-color, white); }
|
||
.st4 { fill-rule: evenodd; clip-rule: evenodd; fill: var(--st4-color, white); }
|
||
.st5 { fill-rule: evenodd; clip-rule: evenodd; fill: var(--st5-color, white); }
|
||
`}),w.jsxs("g",{children:[w.jsx("polygon",{className:"st1",points:"47,138 47,188 0,188 0,164"}),w.jsx("polygon",{className:"st2",points:"109,104 109,188 62,188 62,130"}),w.jsx("polygon",{className:"st3",points:"171,69 171,188 124,188 124,95"}),w.jsx("polygon",{className:"st4",points:"234,35 234,188 187,188 187,61"}),w.jsx("polygon",{className:"st5",points:"296,0 296,188 249,188 249,26"})]})]})},qI=({data:e})=>{const[t,r]=P.useState(1);return P.useEffect(()=>{const i=Number(e.networkData.strength);switch(!0){case i<20:r(1);break;case i<40:r(2);break;case i<60:r(3);break;case i<80:r(4);break;default:r(5);break}},[e.networkData.strength]),w.jsxs(OI,{$width:e.style.width,$height:Number(e.style.height),$bordertype:e.style.borderType,$bordercolor:e.style.borderColor,children:[w.jsxs(zI,{$backgroundcolor:e.style.backgroundColor,...e.visible?{}:{$height:"100%"},children:[e.networkData.type=="WIFI"&&w.jsx("img",{src:"./assets/images/wifi.svg",alt:""}),e.networkData.type=="ETHERNET"&&w.jsx("img",{src:"./assets/images/ethernet.svg",alt:""}),e.networkData.type=="TUN"&&w.jsx("img",{src:"./assets/images/vpn.svg",alt:""}),w.jsx(FI,{children:e.networkData.device}),e.networkData.type=="WIFI"&&e.networkData.state==="Подключено"?w.jsx(BI,{children:w.jsx(WI,{signal:t})}):w.jsx("div",{})]}),e.visible&&w.jsx(HI,{children:w.jsxs(UI,{children:[w.jsx("p",{className:"networkNode-label",children:"Конфигурация"}),w.jsxs(VI,{children:[w.jsxs(Ay,{className:"networkNode-row",children:[w.jsx("p",{children:"MAC:"}),w.jsx("p",{children:e.networkData.mac})]}),w.jsxs(Ay,{className:"networkNode-row",children:[w.jsx("p",{children:"MTU:"}),w.jsx("p",{children:e.networkData.mtu})]})]})]})}),e.networkData.connection!=="unknown"&&w.jsx(_e,{type:"source",position:ce.Left,id:`g0_${e.networkData.id}-source-left`,style:{left:0}})]})},YI=oe.div`
|
||
width: ${e=>e.$width}px;
|
||
height: ${e=>typeof e.$height=="number"?`${e.$height}px`:e.$height};
|
||
`,XI=({data:e})=>w.jsx(YI,{$width:e.style.width,$height:Number(e.style.height)}),GI=oe.div`
|
||
background-color: ${e=>e.theme.secondary};
|
||
display: flex;
|
||
flex-direction: column;
|
||
width: ${e=>e.$width}px;
|
||
height: ${e=>typeof e.$height=="number"?`${e.$height}px`:e.$height};
|
||
// box-shadow: 0px 0px 15px 2px rgba(0, 0, 0, 0.1);
|
||
border-radius: 8px;
|
||
|
||
p{
|
||
margin: 0;
|
||
}
|
||
|
||
img{
|
||
width: 15px;
|
||
height: 15px;
|
||
}
|
||
`,KI=oe.div`
|
||
background: ${e=>e.theme.accent};
|
||
border-top-left-radius: 6px;
|
||
border-top-right-radius: 6px;
|
||
color: white;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
padding: 10px;
|
||
|
||
`,QI=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: space-between;
|
||
height: 100%;
|
||
padding: 10px;
|
||
|
||
.row{
|
||
height: 24px;
|
||
|
||
.row-label{
|
||
flex: 1;
|
||
}
|
||
|
||
.row-text{
|
||
flex: 3;
|
||
}
|
||
|
||
p{
|
||
|
||
text-wrap: nowrap;
|
||
text-align: left;
|
||
}
|
||
}
|
||
`,cs=oe.div`
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
|
||
p{
|
||
margin: 0;
|
||
}
|
||
`,JI={auto:"DHCP",manual:"Static"},ZI=({data:e})=>{const{toggleEditingMode:t}=Lx(),[r,i]=P.useState(!1),{openModal:s}=io(),[a,u]=P.useState({currentIp:e.ipData.ipAdress,newIp:e.ipData.ipAdress,currentGate:e.ipData.ipGate,newGate:e.ipData.ipGate,currentDns:e.ipData.ipDns,newDns:e.ipData.ipDns,device:e.interfaceData.device,connection:e.interfaceData.connection,version:e.ipData.ipVersion,prefix:0}),f=()=>{t()},d=()=>{t()},h=()=>{r?(i(!1),u(v=>({...v,newIp:e.ipData.ipAdress,newGate:e.ipData.ipGate,newDns:e.ipData.ipDns}))):i(!0)},g=(v,S)=>{if(v==="newDns"){const E=S.split(",").map(k=>k.trim());u(k=>({...k,[v]:E}))}else u(E=>({...E,[v]:S}))};function m(v,S){if(S==="6")return 64;const E=parseInt(v.split(".")[0],10);return E>=0&&E<=127?8:E>=128&&E<=191?16:(E>=192&&E<=223,24)}const y=()=>{if(!Qa(a.newIp)||!Qa(a.newGate)||!a.newDns.every(S=>Qa(S))){alert("Один или несколько IP-адресов некорректны.");return}if(!k4(a.newIp,a.newGate,a.newDns)){alert("Адрес, шлюз и хотя бы один DNS должны находиться в одной подсети.");return}const v=m(a.newIp,e.ipData.ipVersion);u(S=>({...S,prefix:v})),s(rn[1],{...a,prefix:v}),i(!1)};return w.jsx(w.Fragment,{children:w.jsxs(GI,{$width:e.style.width,$height:Number(e.style.height),$bordertype:e.style.borderType,$bordercolor:e.style.borderColor,children:[w.jsxs(KI,{children:[w.jsxs(cs,{children:[w.jsx("p",{children:"Метод:"}),w.jsx("p",{children:JI[e.ipData.ipType]})]}),r?w.jsxs(cs,{children:[w.jsx(Ot,{name:Le[8],onClick:y,width:"18",height:"18",setColor:"white"}),w.jsx(Ot,{name:Le[9],onClick:h,width:"18",height:"18",setColor:"white"})]}):w.jsx(Ot,{name:Le[7],onClick:h,width:"18",height:"18",setColor:"white"})]}),w.jsxs(QI,{children:[w.jsxs(cs,{className:"row",children:[w.jsxs("p",{className:"row-label",children:["IPv",e.ipData.ipVersion,"-Addr:"]}),r?w.jsx(Gr,{type:"text",placeholderText:e.ipData.ipAdress,id:"newIp",value:a.newIp,onChange:(v,S)=>g(v,S),onBlur:d,onFocus:f,style:{fontSize:"12px",padding:"4px 10px"}}):w.jsx("p",{className:"row-text",children:e.ipData.ipAdress})]}),w.jsxs(cs,{className:"row",children:[w.jsxs("p",{className:"row-label",children:["IPv",e.ipData.ipVersion,"-GW:"]}),r?w.jsx(Gr,{type:"text",placeholderText:e.ipData.ipGate,id:"newGate",value:a.newGate,onChange:(v,S)=>g(v,S),onBlur:d,onFocus:f,style:{fontSize:"12px",padding:"4px 10px"}}):w.jsx("p",{className:"row-text",children:e.ipData.ipGate})]}),w.jsxs(cs,{className:"row",children:[w.jsxs("p",{className:"row-label",children:["IPv",e.ipData.ipVersion,"-DNS:"]}),r?w.jsx(Gr,{type:"text",placeholderText:e.ipData.ipDns.join(", "),id:"newDns",value:a.newDns.join(", "),onChange:(v,S)=>g(v,S),onBlur:d,onFocus:f,style:{fontSize:"12px",padding:"4px 10px"}}):w.jsx("p",{className:"row-text",children:e.ipData.ipDns.join(", ")})]}),e.route&&w.jsxs(w.Fragment,{children:[w.jsx(_e,{type:"source",position:ce.Right,id:"source-right",style:{right:0,top:80}}),w.jsx(_e,{type:"target",position:ce.Right,id:"target-right",style:{right:0,top:80}})]})]})]})})},ej=oe.div`
|
||
background-color: ${e=>e.theme.primary};
|
||
border: 2px ${e=>e.$bordertype} ${e=>e.$bordercolor};
|
||
width: ${e=>e.$width}px;
|
||
height: ${e=>typeof e.$height=="number"?`${e.$height}px`:e.$height};
|
||
border-radius: 8px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
visibility: visible;
|
||
`,tj=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 15px;
|
||
|
||
p{
|
||
margin: 0;
|
||
}
|
||
`,nj=({data:e})=>w.jsxs(ej,{$width:e.style.width,$height:Number(e.style.height),$bordertype:e.style.borderType,$bordercolor:e.style.borderColor,children:[w.jsxs(tj,{children:[w.jsx("p",{children:e.label}),e.port&&w.jsx("p",{children:e.port})]}),e.port?w.jsxs(w.Fragment,{children:[w.jsx(_e,{type:"target",position:ce.Left,id:`${e.id}_target-left`,style:{left:0}}),w.jsx(_e,{type:"source",position:ce.Left,id:`${e.id}_target-left`,style:{left:0}})]}):w.jsxs(w.Fragment,{children:[w.jsx(_e,{type:"target",position:ce.Right,id:`${e.id}_target-right`,style:{right:0}}),w.jsx(_e,{type:"source",position:ce.Right,id:`${e.id}source-right`,style:{right:0}})]})]}),rj={custom:kI,pill:_I,parallelogram:bI,diamond:$I,circle:RI,nodegroup:DI,portNode:nj,network:qI,ipgroup:XI,ip:ZI},oj=(e,t)=>{let r;return e.forEach(i=>{if(i.type==="position"&&i.position){const s=i.id;s==="g0"?r={container_id:t[0].id,container_x:i.position.x,container_y:i.position.y,isOpen:!0}:s==="g1"&&(r={container_id:t[1].id,container_x:i.position.x,container_y:i.position.y,isOpen:!0})}}),r},ij=e=>{const t={};return e.forEach(r=>{t[r.container_id]=r}),Object.values(t)},sj=(e,t)=>{e.length>0&&ij(e).forEach(i=>{t&&t.readyState===WebSocket.OPEN&&i?(t.send(JSON.stringify(i)),console.log("JSON отправлен:",JSON.stringify(i)),console.log("Отправленные данные:",i)):console.log("WebSocket не открыт или нет данных для отправки")})},lj=(e,t,r,i)=>{[{container_id:1,container_x:0,container_y:0,isOpen:!0},{container_id:2,container_x:500,container_y:0,isOpen:!0}].forEach(u=>{e&&e.readyState===WebSocket.OPEN?(e.send(JSON.stringify(u)),console.log("JSON отправлен:",JSON.stringify(u)),console.log("Отправленные данные:",u)):console.log("WebSocket не открыт или нет данных для отправки")});const a=r.map(u=>u.id=="g0"?{...u,position:{x:0,y:0},positionAbsolute:{x:0,y:0}}:u.id=="g1"?{...u,position:{x:500,y:0},positionAbsolute:{x:500,y:0}}:u);i(a),t(!1)},aj=e=>{const t=[{route:!0,ipData:[]},{route:!1,ipData:[]}],r=(s,a)=>{const u=s.routes.length>0,f={ipType:s.method,ipAdress:s.address,ipGate:s.gateway,ipDns:s.dns,ipRoutese:s.routes,ipVersion:a};u?t[0].ipData.push(f):t[1].ipData.push(f)};return e.ipv4.configurations.forEach(s=>{r(s,"4")}),e.ipv6.configurations.forEach(s=>{r(s,"6")}),t.filter(s=>s.ipData.length>0)},uj=e=>{const t=[],r=[];return e&&e.map((i,s)=>{let a=[];i.interfaces.map((f,d)=>{let h=`g${s}_nw${d}`,g=`p-nw${d}`,m=`${g}_target-right`,y=`${h}-source-left`;if(s===0){const k={id:`${h}-${g}`,source:h,target:g,sourceHandle:y,targetHandle:m,type:"default"};t.push(k)}const v={device:f.name,type:f.type,mac:f.mac_address,connection:f.active_connection,mtu:f.device_mtu,state:f.device_state,strength:f.strength},S=aj(f);let E={networkData:v,ipArrays:S};a.push(E)});let u={container_x:i.container_x,container_y:i.container_y,mainData:a};r.push(u)}),{interfaces:r,edgeData:t}},cj=(e,t)=>{const r=new Map(t.map(i=>[i.id,structuredClone(i)]));return Object.entries(e).forEach(([i,s])=>{const a=r.get(i);if(!a)return;const u=s.clicked,f=20,d=s.higherOrder.map(m=>{const y=r.get(m);if(!y)return null;const v=u?60:y.data.height,S={...y,data:{...y.data,visible:!u,style:{...y.data.style,height:v}},measured:{...y.measured,height:v+4,width:y.data.style.width+4}};return r.set(m,S),S}).filter(Boolean);s.lowerOrder.forEach(m=>{const y=r.get(m);y&&(y.hidden=u)});let h=f;d.forEach(m=>{r.set(m.id,{...m,position:{...m.position,y:h}}),h+=m.measured.height+f});const g=u?h:a.data.height;r.set(i,{...a,data:{...a.data,style:{...a.data.style,height:g}},measured:{...a.measured,height:g+4}})}),Array.from(r.values())},fj=(e,t)=>{const r={};return e.forEach(i=>{const s=i.id;r[s]={higherOrder:[],lowerOrder:[],clicked:i.click},t.filter(u=>u.id.startsWith(`${s}_`)).forEach(u=>{const f=u.id;if(f.split("_").length===2){const h=f;r[s].higherOrder.push(h)}else{const h=f;r[s].lowerOrder.push(h)}})}),r},dj=(e,t)=>{const r=e.name;return t.map(s=>s.data.networkData&&s.data.networkData.device===r?{...s,data:{...s.data,networkData:{...s.data.networkData,strength:e.strength}}}:s)},Aa={0:"#c0c0c0",1:"#ef6e7d"},hj={0:"Неизвестно",10:"Не обслуживается",20:"Недоступно",30:"Отключено",40:"Подготовка",50:"Конфигурация",60:"Требуется аутентификация",70:"Настройка IP",80:"Проверка IP",90:"Дополнительные настройки",100:"Подключено",110:"Отключается",120:"Ошибка"},pj={0:"#7e7e7e",10:"#d95454",20:"#d95454",30:"#d95454",40:"",50:"",60:"",70:"",80:"",90:"",100:"#66BB6A",110:"",120:""},gj=()=>{const[e,t]=P.useState([]),r=20,i=a=>{const u=a.filter(d=>d.x===0||d.x===1);return u.length===0?140:u.reduce((d,h)=>Math.max(d,h.height),0)};return{initedNodes:e,setInitNodes:a=>{t(()=>{const u=[],f=[],d=[],h=[],g=[];let m,y=[],v=[],S=[];return a.map((E,k)=>{let N=20;E.mainData.map((ee,ne)=>{ee.ipArrays.map(z=>{if(z.route===!0){const T={x:1};y.push(T)}else if(z.route===!1){const T={x:0};y.push(T)}}),y.length==2?m=260*2+45:m=295;let J=[];ee.ipArrays.forEach((z,T)=>{if(!z||!z.ipData||z.ipData.length===0)return;let H=[],Z=z.ipData.length,te=20,ie=150,le,de=155*Z;if(z.route){le=m-260-15;const we={x:1,height:de};J.push(we)}else{le=te;const we={x:0,height:de};J.push(we)}const re={id:`g${k}_nw${ne}_rx${T}`,position:{x:le,y:ie},data:{style:{width:260,height:de}},hidden:!1,type:"ipgroup",parentId:`g${k}_nw${ne}`,extent:"parent",draggable:!1};let he=0;const Se=15;z.ipData.map((we,ge)=>{let Pe=[];const $e=he;he+=140+Se;const Ke={id:`g${k}_nw${ne}_rx${T}_ip${ge}`,position:{x:0,y:$e},type:"ip",data:{ipData:{ipType:we.ipType,ipAdress:we.ipAdress,ipGate:we.ipGate,ipDns:we.ipDns,ipRoutese:[],ipVersion:we.ipVersion},interfaceData:{device:ee.networkData.device,connection:ee.networkData.connection},route:z.route,style:{width:260,height:140,borderType:"solid",borderColor:Aa[1]}},hidden:!1,parentId:`g${k}_nw${ne}_rx${T}`,extent:"parent",draggable:!1};Pe.push(Ke),h.push(Pe)}),H.push(re),d.push(H)});const U=i(J)+150;ee.networkData.connection;const F=N;N+=U+r;const q={id:`g${k}_nw${ne}`,position:{x:20,y:F},type:"network",data:{networkData:{device:ee.networkData.device,type:ee.networkData.type,mac:ee.networkData.mac,mtu:ee.networkData.mtu,state:hj[ee.networkData.state],connection:ee.networkData.connection,id:`nw${ne}`,strength:ee.networkData.strength},style:{width:m,height:U,borderType:"solid",borderColor:Aa[0],backgroundColor:pj[ee.networkData.state]},height:U,visible:!0},parentId:`g${k}`,extent:"parent"};v.push(m),S.push(U),u.push(q),y=[];let A=60,O=N-A+10-U/2;if(ee.networkData.connection!=="unknown"){const z={id:`p-nw${ne}`,position:{x:-350,y:O},type:"portNode",data:{label:`${ee.networkData.connection}`,id:`p-nw${ne}`,style:{width:260,height:A,borderType:"solid",borderColor:Aa[0]}}};f.push(z)}});const b=S.reduce((ee,ne)=>ee+ne,0),M=Math.max(...v);let L=E.mainData.length,j=b+L*30,G=M+40,V;k==0?V="Активные интерфейсы":V="Неактивные интерфейсы";let Y=E.container_x;if(k>0&&Y===0&&(Y=Y+500),E.mainData.length>0){const ee={id:`g${k}`,position:{x:Y,y:E.container_y},type:"nodegroup",data:{label:V,id:`g${k}`,height:j,style:{width:G,height:j,borderType:"solid",borderColor:Aa[0]}}};g.push(ee)}S=[]}),[...g,...u,...d.flat(),...f,...h.flat()]})}}},mj=()=>{const[e,t]=P.useState([]);return{initedEdges:e,setInitEdges:i=>{t(s=>{const a=[];return i.map(u=>{a.push(u)}),[...s,...a]})}}},yj=()=>{const{initedNodes:e,setInitNodes:t}=gj(),{initedEdges:r,setInitEdges:i}=mj();return{initedNodes:e,initedEdges:r,handleInit:(a,u)=>{t(u),i(a)}}},xj={hideAttribution:!0},vj=({startConnection:e,ws:t})=>{const r=P.useRef(0),[i,s]=P.useState({status:!1,message:""}),{openModal:a,closeLoader:u}=io(),[f,d]=P.useState(!0),h=so(),[g,m]=P.useState(null),[y,v]=P.useState([]),[S,E]=P.useState(),[k,C]=P.useState(!1),{initedNodes:R,initedEdges:N,handleInit:b}=yj(),[M,L]=P.useState([]),[j,G]=P.useState([]),[V,Y,ee]=KT([]),[ne,J]=QT([]),{isPanDisabled:I}=Lx(),[U,F]=P.useState([]),{groups:q}=Dx(),{isNullPos:A,setNullPos:O}=Nv();P.useEffect(()=>{if(e){a(rn[2],"Идет загрузка данных"),Y([]),J([]),C(!1),r.current=0;const Z=new WebSocket(`wss://${t}:8001/api/v1`);return m(Z),setTimeout(()=>{Z.readyState!==WebSocket.OPEN&&Z.close()},5e3),Z.onopen=()=>{console.log("WebSocket connection established")},Z.onmessage=te=>{const ie=JSON.parse(te.data);v(()=>[ie.activation,ie.deactivation])},Z.onerror=te=>{console.error("WebSocket error:",te)},Z.onclose=()=>{console.log("WebSocket connection closed"),s({status:!0,message:"Соединение с сервером разорвано"})},()=>{Z.close(),u()}}},[e,t]),P.useEffect(()=>{if(y.length>0){const{interfaces:Z,edgeData:te}=uj(y),le=y[0].interfaces.find(de=>de.type==="WIFI");L(Z),G(te),le&&E(le)}},[y]),P.useEffect(()=>{M.length>0&&!k&&(b(j,M),C(!0))},[M,j,k]),P.useEffect(()=>{if(r.current===0&&!i.status){const Z=setInterval(()=>{setTimeout(()=>{R.some(ie=>ie.id==="g0_nw0_rx0_ip0")||window.location.reload()},500),R.length>0&&N.length>0?(Y(R),J(N),console.log("Ноды и эджи успешно инициализированы"),r.current=1,clearInterval(Z),clearTimeout(te)):console.log("Попытка инициализации нод и эджей...")},1e3),te=setTimeout(()=>{console.error("Ошибка: слишком долгая загрузка данных"),clearInterval(Z),s({status:!0,message:"Превышено время ожидания"})},3e4);return()=>{clearInterval(Z),clearTimeout(te)}}},[R,N,i]),P.useEffect(()=>{V.length===0?r.current=0:r.current=1},[V]),P.useEffect(()=>{V.length>0&&f==!0&&(d(!1),u())},[V,f]);const z=P.useCallback(Z=>J(te=>Vh(Z,te)),[J]),T=P.useCallback(Z=>J(te=>w1(Z,te)),[J]),H=Z=>{ee(Z);const te=oj(Z,y);te&&F(ie=>[...ie,te])};return P.useEffect(()=>{const Z=setInterval(()=>{g&&g.readyState===WebSocket.OPEN&&sj(U,g),F([])},1e3);return()=>{clearInterval(Z)}},[U,g]),P.useEffect(()=>{const Z=fj(q,V);Y(cj(Z,V))},[q]),P.useEffect(()=>{S&&Y(dj(S,V))},[S]),P.useEffect(()=>{i.status&&setTimeout(()=>{a(rn[3],{message:i.message})},1e3)},[i]),P.useEffect(()=>{A&&g&&g.readyState===WebSocket.OPEN&&lj(g,O,V,Y)},[A]),w.jsx(w.Fragment,{children:w.jsxs(GT,{nodes:V,edges:ne,onNodesChange:H,onEdgesChange:z,onConnect:T,style:{background:"#F7F9FB"},minZoom:0,maxZoom:4,fitView:!0,fitViewOptions:{padding:.1},attributionPosition:"bottom-left",snapToGrid:!0,snapGrid:[20,20],panOnDrag:!I,nodeTypes:rj,proOptions:xj,children:[w.jsx(nI,{gap:20,size:1,bgColor:h.background}),w.jsx(uI,{fitViewOptions:{padding:.1}})]})})};var Ma={},My;function wj(){if(My)return Ma;My=1;const e={width:24,height:24,body:'<path fill="currentColor" d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H9c-.55 0-1 .45-1 1s.45 1 1 1h6c.55 0 1-.45 1-1s-.45-1-1-1h-1v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 14H4c-.55 0-1-.45-1-1V5c0-.55.45-1 1-1h16c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1z"/>'};return Ma.__esModule=!0,Ma.default=e,Ma}var Sj=wj();const Ej=rt(Sj),kj={[au[1]]:Ej},Cj=({name:e,width:t="24",height:r="24",setColor:i})=>{const s=so();return w.jsx(Rh,{icon:kj[e],width:t,height:r,color:i||s.textColor})},hw=e=>{const{toolBar:t,toggleMenu:r}=Tu(),i=t.toolSpace.find(f=>f.id===e),s=i?i.isOpen:!1,a=i?i.isActive:!1;return{isOpen:s,isActive:a,collapseMenu:()=>{r(e)}}},_j=oe.div`
|
||
width: 100%;
|
||
cursor: pointer;
|
||
`,Nj=oe.div`
|
||
padding: 10px;
|
||
`,bj=({menuId:e})=>{const{isActive:t,collapseMenu:r}=hw(e),i=so(),s=t?i.textColor:i.active;return w.jsx(_j,{onClick:r,children:w.jsx(Nj,{children:w.jsx(Cj,{name:e,width:"30",height:"30",setColor:s})})})};var La={},Ly;function Pj(){if(Ly)return La;Ly=1;const e={width:24,height:24,body:'<path fill="currentColor" d="M20 8.69V4h-4.69L12 .69L8.69 4H4v4.69L.69 12L4 15.31V20h4.69L12 23.31L15.31 20H20v-4.69L23.31 12L20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6s6 2.69 6 6s-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4s4-1.79 4-4s-1.79-4-4-4z"/>'};return La.__esModule=!0,La.default=e,La}var Rj=Pj();const Tj=rt(Rj);var Da={},Dy;function Ij(){if(Dy)return Da;Dy=1;const e={width:24,height:24,body:'<path fill="currentColor" d="M20 15.31L23.31 12L20 8.69V4h-4.69L12 .69L8.69 4H4v4.69L.69 12L4 15.31V20h4.69L12 23.31L15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6s6 2.69 6 6s-2.69 6-6 6z"/>'};return Da.__esModule=!0,Da.default=e,Da}var jj=Ij();const $j=rt(jj);var Oa={},Oy;function Aj(){if(Oy)return Oa;Oy=1;const e={width:24,height:24,body:'<path fill="currentColor" d="M20 15.31L23.31 12L20 8.69V4h-4.69L12 .69L8.69 4H4v4.69L.69 12L4 15.31V20h4.69L12 23.31L15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"/>'};return Oa.__esModule=!0,Oa.default=e,Oa}var Mj=Aj();const Lj=rt(Mj),Dj={[wt[1]]:Tj,[wt[2]]:$j,[wt[3]]:Lj},Oj=({name:e,width:t="24",height:r="24",setColor:i})=>{const s=so();return w.jsx(Rh,{icon:Dj[e],width:t,height:r,color:i||s.textColor})},zj=oe.div`
|
||
width: 100%;
|
||
cursor: pointer;
|
||
`,Fj=oe.div`
|
||
padding: 10px;
|
||
color: ${e=>e.theme.text};
|
||
`;function qh(){const e=so(),t=localStorage.getItem("theme");return w.jsx(zj,{onClick:e.toggleTheme,children:w.jsx(Fj,{children:w.jsx(Oj,{name:t,width:"30",height:"30"})})})}const Bj=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
background-color: ${e=>e.theme.primary};
|
||
padding: 5px 0;
|
||
`,zy=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
`,Fy=oe.div`
|
||
width: 100%;
|
||
cursor: pointer;
|
||
`,By=oe.div`
|
||
padding: 10px;
|
||
color: ${e=>e.theme.text};
|
||
`,Hj=()=>{const{toolBar:e}=Tu(),t=e==null?void 0:e.toolSpace,{openModal:r}=io(),{isAdmin:i}=Iu(),{setWorkModule:s,workModule:a}=Zr();return w.jsxs(Bj,{children:[w.jsx(zy,{children:t&&t.map(u=>w.jsx(bj,{menuId:u.id},u.id))}),w.jsxs(zy,{children:[w.jsx(Fy,{children:w.jsx(By,{children:w.jsx(Ot,{name:i?Le[10]:Le[13],width:"30",height:"30",onClick:()=>r(rn[5])})})}),w.jsx(qh,{}),w.jsx(Fy,{children:w.jsx(By,{children:w.jsx(Ot,{name:Le[4],width:"30",height:"30",onClick:()=>a===bt[3]?s(bt[2]):s(bt[4])})})})]})]})},Vj=e=>{const{menus:t,toggleMenu:r}=FC(),i=t.find(u=>u.id===e);return{isOpen:i?i.isOpen:!1,collapseMenu:()=>{i&&r(e)}}},Uj=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 15px;
|
||
padding: 20px;
|
||
|
||
p{
|
||
margin: 0;
|
||
}
|
||
`,Wj=oe.div`
|
||
padding: 5px 0;
|
||
width: 100%;
|
||
text-align: center;
|
||
border-bottom: 1px solid ${e=>e.theme.text};
|
||
`,Hy=oe.div`
|
||
border-radius: 8px;
|
||
border: 2px solid ${e=>e.theme.accent};
|
||
display: flex;
|
||
flex-direction: column;
|
||
width: 100%;
|
||
|
||
.paddingP{
|
||
padding: 7px 5px;
|
||
}
|
||
`,Vy=oe.div`
|
||
padding: 5px 8px;
|
||
background: ${e=>e.theme.accent};
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
color: white;
|
||
cursor: pointer;
|
||
`,qj=oe.div`
|
||
font-size: 24px;
|
||
cursor: pointer;
|
||
border-radius: 8px;
|
||
border: 2px dotted ${e=>e.theme.accent};
|
||
width: 100%;
|
||
text-align: center;
|
||
padding: 5px 0;
|
||
`,Yj=oe.div`
|
||
display: flex;
|
||
gap: 3px;
|
||
align-items: center;
|
||
`,Xj=oe.div`
|
||
width: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 15px;
|
||
`,Gj=oe.div`
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
cursor: pointer;
|
||
|
||
.hControl{
|
||
font-size: 20px;
|
||
cursor: pointer;
|
||
}
|
||
`,Kj=oe.div`
|
||
${e=>e.$isactive==="true"&&"display: flex;"}
|
||
${e=>e.$isactive==="false"&&"display: none;"}
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 15px;
|
||
`,Qj=()=>{const{openModal:e}=io(),{setIpAddress:t,ipAddress:r}=Hn(),{devices:i,addDevice:s,deleteDevice:a}=$d(),{isOpen:u,collapseMenu:f}=Vj(Ox[1]),{setWorkModule:d}=Zr(),[h,g]=P.useState({address:"localhost",hostname:""}),m=async k=>new Promise(C=>{const R=new WebSocket(`wss://${k}:8001/api/v1`),N=setTimeout(()=>{R.close(),C(!1)},500);R.onopen=()=>{clearTimeout(N),R.close(),C(!0)},R.onerror=()=>{clearTimeout(N),R.close(),C(!1)}});P.useEffect(()=>{(async()=>{let C=await Ln.getHostname();C.status===200&&g(R=>({...R,hostname:C.data.hostname}))})()},[]);const y=()=>{e(rn[4],{onSave:v})},v=k=>{s(k),E(k)},S=(k,C)=>{a(k),C==r&&t("localhost")},E=async k=>{if(!await m(k)){e(rn[3],{message:`Не удалось подключиться к серверу по адресу ${k}`});return}t(k),d(bt[3])};return P.useEffect(()=>{i.length===0&&t("localhost")},[i]),w.jsxs(Uj,{children:[w.jsx(Wj,{children:w.jsx("p",{className:"unselectable",children:"Доступные узлы"})}),w.jsxs(Hy,{children:[w.jsx(Vy,{className:"unselectable",onClick:()=>E(h.address),children:w.jsx("p",{children:"Корневой адрес"})}),h.hostname==""?w.jsxs(Yj,{className:"paddingP",children:["Название: Загрузка",w.jsx(Ch,{})]}):w.jsxs("p",{className:"paddingP",children:["Название: ",h.hostname]})]}),w.jsxs(Xj,{children:[w.jsxs(Gj,{className:"unselectable",onClick:f,children:[w.jsx("p",{children:"Дополнительные узлы"}),w.jsx(Ot,{name:u?Le[5]:Le[6]})]}),w.jsxs(Kj,{$isactive:u.toString(),children:[i.length>0&&i.map((k,C)=>w.jsxs(Hy,{children:[w.jsxs(Vy,{className:"unselectable",onClick:()=>E(k.address),children:[w.jsxs("p",{children:["Узел ",k.number]}),w.jsx(Ot,{width:"20",height:"20",name:Le[2],setColor:"white",onClick:R=>{R.stopPropagation(),S(k.number,k.address)}})]}),w.jsxs("p",{className:"paddingP",children:["Адрес: ",k.address]})]},C)),w.jsx(qj,{className:"unselectable",onClick:y,children:"+"})]})]})]})},Jj={[au[1]]:w.jsx(Qj,{})},Zj=({name:e})=>{const t=Jj[e];return yt.cloneElement(t)},e$=oe.div`
|
||
background-color: ${e=>e.theme.secondary};
|
||
width: 250px;
|
||
font-size: 14px;
|
||
flex: 3;
|
||
`,t$=()=>{const{toolBar:e}=Tu(),t=(e==null?void 0:e.current)||"",{isActive:r,isOpen:i}=hw(t);return!r||!i?null:w.jsx(e$,{children:w.jsx(Zj,{name:t})})},n$=oe.div`
|
||
height: 100%;
|
||
display: flex;
|
||
`,r$=()=>w.jsxs(n$,{children:[w.jsx(Hj,{}),w.jsx(t$,{})]}),o$=oe.div`
|
||
${e=>e.size==="small"&&"width: 100%;"}
|
||
`,i$=oe.div`
|
||
width: 100%;
|
||
cursor: pointer;
|
||
color: ${e=>e.theme.textColor};
|
||
`,s$=oe.div`
|
||
padding: 10px;
|
||
`,l$=({size:e})=>{const{setWorkModule:t}=Zr();return w.jsx(o$,{size:e,onClick:()=>t("helloWindow"),children:e==="big"?w.jsx(at,{title:"Выйти",size:"big"}):w.jsx(i$,{children:w.jsx(s$,{children:w.jsx(Ot,{name:Le[12],width:"30",height:"30"})})})})},a$=oe.div`
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: flex-end;
|
||
background-color: ${e=>e.theme.primary};
|
||
padding: 0 5px;
|
||
`,u$=oe.div`
|
||
display: flex;
|
||
align-items: center;
|
||
`,c$=oe.div`
|
||
padding: 10px;
|
||
|
||
svg{
|
||
cursor: pointer;
|
||
}
|
||
`,f$=()=>{const{setNullPos:e}=Nv();return w.jsx(a$,{children:w.jsxs(u$,{children:[w.jsx(c$,{children:w.jsx(Ot,{name:Le[11],width:"30",height:"30",onClick:()=>e(!0)})}),w.jsx(l$,{size:"small"})]})})},d$=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
height: 100%;
|
||
width: 100%;
|
||
background: ${e=>e.theme.background};
|
||
padding: 50px;
|
||
box-sizing: border-box;
|
||
`,h$=oe.div`
|
||
max-width: 1200px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: space-between;
|
||
height: 100%;
|
||
box-sizing: border-box;
|
||
padding: 25px 50px;
|
||
background: ${e=>e.theme.secondary};
|
||
border-radius: 18px;
|
||
`,p$=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 15px;
|
||
|
||
`,g$=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 15px;
|
||
margin-left: 10px;
|
||
`,m$=oe.div`
|
||
font-size: 20px;
|
||
`,y$=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
|
||
p{
|
||
font-size: 18px;
|
||
}
|
||
|
||
`,x$=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 20px;
|
||
`,v$=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
`,Sd=oe.div`
|
||
display: flex;
|
||
gap: 5px;
|
||
`,w$=oe.div`
|
||
width: 100%;
|
||
text-align: center;
|
||
margin-top: 50px;
|
||
`,S$=oe.div`
|
||
width: 100%;
|
||
display: flex;
|
||
justifi-content: flex-start;
|
||
align-items: center;
|
||
`,E$=oe.div`
|
||
width: 100%;
|
||
display: flex;
|
||
gap: 15px;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding-top: 50px;
|
||
box-sizing: border-box;
|
||
|
||
img{
|
||
width: 40px;
|
||
height: 40px;
|
||
}
|
||
`,k$=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 30px;
|
||
`;function lh({from:e,onBack:t}){const{setWorkModule:r}=Zr(),s=(()=>{switch(e){case"reg":return t;case"helloWindow":return()=>r(bt[1]);case"workSpace":return()=>r(bt[3]);default:return}})(),a=e!=="reg"||e==="reg"&&t;return w.jsx(d$,{children:w.jsxs(h$,{children:[w.jsxs(E$,{children:[w.jsx("img",{src:"./assets/images/gossys.png",alt:""}),w.jsx("div",{style:{width:"100%",display:"flex",justifyContent:"center"},children:w.jsx("h1",{children:"О приложении"})})]}),w.jsxs(k$,{children:[w.jsx(m$,{children:w.jsx("p",{children:"Приложение ГоNets является минимально работоспособным кроссплатформенным продуктом (MVP) для демонстрации нашего подхода к управлению настройками ПК в корпоративной среде."})}),w.jsxs(p$,{children:[w.jsx("p",{children:"Данное приложение умеет:"}),w.jsxs(g$,{children:[w.jsx("p",{children:"- Отображать в графическом виде активные сетевые ресурсы"}),w.jsx("p",{children:"- Настраивать сетевые параметры локального и удаленных сетевых ресурсов"}),w.jsx("p",{children:"- Отображать и изменять взаимодействие сетевых ресурсов с установленным Клиентом ГоNets"})]})]}),w.jsxs(y$,{children:[w.jsx("p",{children:"Программное обеспечение исключительно для ознакомления и домашнего использования."}),w.jsx("p",{children:"Для коммерческого использования приобретите версию ГоNets-PRO (Подробная информация на странице продукта)"})]}),w.jsxs(x$,{children:[w.jsxs(Sd,{children:[w.jsx("p",{children:"Ссылка на домашнюю страницу:"}),w.jsx("a",{href:"https://gossys.dev/pages/projects/gonets",children:"https://gossys.dev/pages/projects/gonets"})]}),w.jsxs(Sd,{children:[w.jsx("p",{children:"Инструкции и информация:"}),w.jsx("a",{href:"https://wiki.gossys.dev/ru/gonets",children:"https://wiki.gossys.dev/ru/gonets"})]}),w.jsxs(v$,{children:[w.jsx("p",{children:"Распространяется под лицензией GosysPUB текущей версии."}),w.jsxs(Sd,{children:[w.jsx("p",{children:"Полный текст актуальной лицензии:"}),w.jsx("a",{href:"https://wiki.gossys.dev/ru/lic/GosysPUB",children:"https://wiki.gossys.dev/ru/lic/GosysPUB"})]})]})]}),w.jsx(w$,{children:w.jsx("p",{children:"Разработано и поддерживается ООО «Гибридные Офисные Системы» 2024-2025 г. Все права защищены."})})]}),w.jsxs(S$,{children:[a&&s&&w.jsx(at,{title:"Назад",onClick:s,style:{marginRight:"10px"}}),e=="reg"&&w.jsx(qh,{})]})]})})}const C$=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
height: 100%;
|
||
`,_$=oe.div`
|
||
display: flex;
|
||
height: 100%;
|
||
`,N$=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
width: 100%;
|
||
position: relative;
|
||
`;function b$(){const{ipAddress:e,setIpAddress:t}=Hn(),{workModule:r}=Zr(),[i,s]=P.useState(e),a=Tu(f=>f.initialize),u=Zr(f=>f.initialize);return P.useEffect(()=>{localStorage.getItem("toolBar-storage")||a()},[a]),P.useEffect(()=>{localStorage.getItem("workSpace-storage")||u()},[u]),P.useEffect(()=>{s(e)},[e]),P.useEffect(()=>{t(i)},[i]),localStorage.getItem("workSpace-storage"),w.jsx(C$,{children:w.jsxs(_$,{children:[w.jsx(r$,{}),r===bt[1]&&w.jsx(j4,{}),r===bt[2]&&w.jsx(lh,{from:"workSpace"}),r===bt[4]&&w.jsx(lh,{from:"helloWindow"}),r===bt[3]&&w.jsxs(N$,{children:[w.jsx(f$,{}),w.jsx(uw,{children:w.jsx(vj,{startConnection:!0,ws:i},i)})]})]})})}const P$=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
height: 100%;
|
||
background: ${e=>e.theme.background};
|
||
`,R$=oe.form`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 25px;
|
||
align-items: center;
|
||
background: ${e=>e.theme.primary};
|
||
padding: 25px;
|
||
border-radius: 18px;
|
||
width: 350px;
|
||
`,T$=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 15px;
|
||
align-items: center;
|
||
text-align: center;
|
||
font-size: 20px;
|
||
`,I$=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 25px;
|
||
text-align: center;
|
||
`,j$=oe.div`
|
||
width: 100%;
|
||
display: flex;
|
||
justify-content: center;
|
||
`,$$=oe.div`
|
||
display: flex;
|
||
align-items: center;
|
||
`,A$=oe.div`
|
||
width: 100%;
|
||
cursor: pointer;
|
||
`,M$=oe.div`
|
||
padding: 10px;
|
||
color: ${e=>e.theme.text};
|
||
`,L$=()=>{const{ipAddress:e,setIpAddress:t}=Hn(),[r,i]=P.useState(""),[s,a]=P.useState(!0),[u,f]=P.useState(!1),[d,h]=P.useState({username:"operator",password:"",is_admin:!0}),g=(E,k)=>{E==="repeatPassword"?(i(k),a(d.password===k)):(h(C=>({...C,[E]:k})),E==="password"&&a(k===r))},m=async E=>{try{(await Ln.createUser(e,E)).status===200&&window.location.reload()}catch(k){console.error("Error:",k)}finally{}},y=()=>{s&&m(d)},v=()=>{t("localhost")},S=()=>{f(!0)};return w.jsx(w.Fragment,{children:u?w.jsx(lh,{from:"reg",onBack:()=>f(!1)}):w.jsxs(P$,{children:[w.jsxs(R$,{onSubmit:y,children:[w.jsxs(T$,{children:[w.jsx(Ot,{name:Le[3],width:"52",height:"52"}),w.jsx("h3",{children:"Настройка оператора узла"}),e!="localhost"&&w.jsx("p",{children:e})]}),w.jsxs(I$,{children:[w.jsx("div",{children:w.jsx("p",{children:"Перед началом работы необходимо создать пароль оператора приложения"})}),w.jsxs("div",{children:[w.jsx(Gr,{type:"password",placeholderText:"Введите пароль...",id:"password",value:d.password,onChange:(E,k)=>g(E,k)}),w.jsx(Gr,{type:"password",placeholderText:"Повторите пароль...",id:"repeatPassword",value:r,onChange:(E,k)=>g(E,k),style:{marginTop:"10px"}}),!s&&w.jsx("p",{style:{color:"red",marginTop:"5px"},children:"Пароли не совпадают!"})]})]}),w.jsx(j$,{children:w.jsx(at,{style:{width:"100%"},title:"Отправить",type:"submit"})})]}),w.jsxs($$,{children:[e!="localhost"&&w.jsx(at,{title:"Назад",onClick:v,style:{marginRight:"10px"}}),w.jsx(qh,{}),w.jsx(A$,{children:w.jsx(M$,{children:w.jsx(Ot,{name:Le[4],width:"30",height:"30",onClick:S})})})]})]})})},D$=wh`
|
||
from {
|
||
transform: rotate(0deg);
|
||
}
|
||
to {
|
||
transform: rotate(360deg);
|
||
}
|
||
`;oe.div`
|
||
top: 0px;
|
||
z-index:998;
|
||
background-color: rgba(0,0,0, 0.7);
|
||
position: fixed;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 100%;
|
||
height: 100%;
|
||
overflow-y: hidden;
|
||
`;const O$=oe.div`
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 15px;
|
||
|
||
p{
|
||
font-size: 24px;
|
||
color: white;
|
||
}
|
||
`,z$=oe.div`
|
||
position: relative;
|
||
width: 65px;
|
||
height: 65px;
|
||
`,F$=oe.div`
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
width: 65px;
|
||
height: 65px;
|
||
border-radius: 50%;
|
||
border: 12px solid white;
|
||
`,B$=oe.div`
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
width: 65px;
|
||
height: 65px;
|
||
border-radius: 50%;
|
||
border: 12px solid transparent;
|
||
border-top: 12px solid ${e=>e.theme.accent};
|
||
|
||
// Добавление аниманции и использование кейфремов
|
||
animation: ${D$} 1s linear infinite;
|
||
`,H$=oe.div`
|
||
display: flex;
|
||
gap: 3px;
|
||
font-size: 24px;
|
||
color: white;
|
||
margin-top: 30px;
|
||
margin-left: 25px;
|
||
`;function V$({loaderText:e}){return w.jsx(fv,{children:w.jsxs(O$,{children:[w.jsxs(z$,{children:[w.jsx(F$,{}),w.jsx(B$,{})]}),w.jsxs(H$,{children:[e,w.jsx(Ch,{})]})]})})}function U$(){const{ipAddress:e}=Hn(),[t,r]=P.useState(null);return P.useEffect(()=>{(async()=>{try{let s=await Ln.checkServerConf(e);s.status===200&&r(s.data.has_users)}catch(s){console.error("Error checking server config:",s),r(!1)}})()},[e]),t===null?w.jsx(V$,{loaderText:"Идёт загрузка данных"}):t===!1?w.jsx(L$,{}):w.jsx(XE,{children:w.jsx(nx,{path:"/",element:w.jsx(b$,{})})})}const W$=()=>{const e=uv(),{ipAddress:t}=Hn();P.useEffect(()=>{(async()=>{await e()})()},[t]);const{isOpen:r,modalType:i,modalData:s}=io();return w.jsxs(w.Fragment,{children:[w.jsx(N4,{isOpen:r,type:i,data:s}),w.jsx(U$,{})]})},pw=document.getElementById("root");if(!pw)throw new Error('Root element with id "root" not found');const q$=rE.createRoot(pw);q$.render(w.jsx(AC,{children:w.jsx(xk,{children:w.jsx(Pk,{children:w.jsx(W$,{})})})}));
|