diff --git a/app/srv/core/main.js b/app/srv/core/main.js index 07e0eb72..dea159c3 100644 --- a/app/srv/core/main.js +++ b/app/srv/core/main.js @@ -5,7 +5,7 @@ import{a as Te,b as xx,c as Z,d as y,e as _,f as R,g as w}from"./chunk-MAXH2HJU. `+i[s].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{Ju=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ao(e):""}function $x(e){switch(e.tag){case 5:return Ao(e.type);case 16:return Ao("Lazy");case 13:return Ao("Suspense");case 19:return Ao("SuspenseList");case 0:case 2:case 15:return e=Yu(e.type,!1),e;case 11:return e=Yu(e.type.render,!1),e;case 1:return e=Yu(e.type,!0),e;default:return""}}function kc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yi:return"Fragment";case gi:return"Portal";case vc:return"Profiler";case hf:return"StrictMode";case xc:return"Suspense";case Sc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Wh:return(e.displayName||"Context")+".Consumer";case Vh:return(e._context.displayName||"Context")+".Provider";case gf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yf:return t=e.displayName||null,t!==null?t:kc(e.type)||"Memo";case qn:t=e._payload,e=e._init;try{return kc(e(t))}catch{}}return null}function Hx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return kc(t);case 8:return t===hf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ur(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vx(e){var t=Zh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dl(e){e._valueTracker||(e._valueTracker=Vx(e))}function Kh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ul(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function bc(e,t){var n=t.checked;return Ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ur(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function qh(e,t){t=t.checked,t!=null&&mf(e,"checked",t,!1)}function Ec(e,t){qh(e,t);var n=ur(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Rc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Rc(e,t.type,ur(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Um(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Rc(e,t,n){(t!=="number"||Ul(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var No=Array.isArray;function Ii(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=pl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Do={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},Wx=["Webkit","ms","Moz","O"];Object.keys(Do).forEach(function(e){Wx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Do[t]=Do[e]})});function Yh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Do.hasOwnProperty(e)&&Do[e]?(""+t).trim():t+"px"}function e0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Yh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Gx=Ce({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 Oc(e,t){if(t){if(Gx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function Tc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ac=null;function _f(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Nc=null,Oi=null,Ti=null;function Hm(e){if(e=us(e)){if(typeof Nc!="function")throw Error(M(280));var t=e.stateNode;t&&(t=ma(t),Nc(e.stateNode,e.type,t))}}function t0(e){Oi?Ti?Ti.push(e):Ti=[e]:Oi=e}function n0(){if(Oi){var e=Oi,t=Ti;if(Ti=Oi=null,Hm(e),t)for(e=0;e>>=0,e===0?32:31-(rS(e)/iS|0)|0}var ml=64,hl=4194304;function Po(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Vl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Po(l):(o&=s,o!==0&&(r=Po(o)))}else s=n&~i,s!==0?r=Po(s):o!==0&&(r=Po(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ls(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Yt(t),e[t]=n}function aS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=jo),Jm=" ",Ym=!1;function S0(e,t){switch(e){case"keyup":return MS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function k0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _i=!1;function zS(e,t){switch(e){case"compositionend":return k0(t);case"keypress":return t.which!==32?null:(Ym=!0,Jm);case"textInput":return e=t.data,e===Jm&&Ym?null:e;default:return null}}function FS(e,t){if(_i)return e==="compositionend"||!Rf&&S0(e,t)?(e=v0(),Al=kf=Yn=null,_i=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=nh(n)}}function C0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?C0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function I0(){for(var e=window,t=Ul();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ul(e.document)}return t}function Cf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function KS(e){var t=I0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&C0(n.ownerDocument.documentElement,n)){if(r!==null&&Cf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=rh(n,o);var s=rh(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,wi=null,zc=null,Fo=null,Fc=!1;function ih(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fc||wi==null||wi!==Ul(r)||(r=wi,"selectionStart"in r&&Cf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fo&&Qo(Fo,r)||(Fo=r,r=Zl(zc,"onSelect"),0Si||(e.current=Wc[Si],Wc[Si]=null,Si--)}function _e(e,t){Si++,Wc[Si]=e.current,e.current=t}var cr={},ot=dr(cr),gt=dr(!1),jr=cr;function Di(e,t){var n=e.type.contextTypes;if(!n)return cr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function yt(e){return e=e.childContextTypes,e!=null}function ql(){Se(gt),Se(ot)}function ph(e,t,n){if(ot.current!==cr)throw Error(M(168));_e(ot,t),_e(gt,n)}function j0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(M(108,Hx(e)||"Unknown",i));return Ce({},n,r)}function Xl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cr,jr=ot.current,_e(ot,e),_e(gt,gt.current),!0}function mh(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=j0(e,t,jr),r.__reactInternalMemoizedMergedChildContext=e,Se(gt),Se(ot),_e(ot,e)):Se(gt),_e(gt,n)}var bn=null,ha=!1,cc=!1;function z0(e){bn===null?bn=[e]:bn.push(e)}function ik(e){ha=!0,z0(e)}function pr(){if(!cc&&bn!==null){cc=!0;var e=0,t=pe;try{var n=bn;for(pe=1;e>=s,i-=s,En=1<<32-Yt(t)+i|n<D?(V=P,P=null):V=P.sibling;var F=f(m,P,v[D],x);if(F===null){P===null&&(P=V);break}e&&P&&F.alternate===null&&t(m,P),g=o(F,g,D),L===null?N=F:L.sibling=F,L=F,P=V}if(D===v.length)return n(m,P),ke&&Tr(m,D),N;if(P===null){for(;DD?(V=P,P=null):V=P.sibling;var G=f(m,P,F.value,x);if(G===null){P===null&&(P=V);break}e&&P&&G.alternate===null&&t(m,P),g=o(G,g,D),L===null?N=G:L.sibling=G,L=G,P=V}if(F.done)return n(m,P),ke&&Tr(m,D),N;if(P===null){for(;!F.done;D++,F=v.next())F=p(m,F.value,x),F!==null&&(g=o(F,g,D),L===null?N=F:L.sibling=F,L=F);return ke&&Tr(m,D),N}for(P=r(m,P);!F.done;D++,F=v.next())F=d(P,m,D,F.value,x),F!==null&&(e&&F.alternate!==null&&P.delete(F.key===null?D:F.key),g=o(F,g,D),L===null?N=F:L.sibling=F,L=F);return e&&P.forEach(function(Ge){return t(m,Ge)}),ke&&Tr(m,D),N}function k(m,g,v,x){if(typeof v=="object"&&v!==null&&v.type===yi&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case fl:e:{for(var N=v.key,L=g;L!==null;){if(L.key===N){if(N=v.type,N===yi){if(L.tag===7){n(m,L.sibling),g=i(L,v.props.children),g.return=m,m=g;break e}}else if(L.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===qn&&xh(N)===L.type){n(m,L.sibling),g=i(L,v.props),g.ref=Co(m,L,v),g.return=m,m=g;break e}n(m,L);break}else t(m,L);L=L.sibling}v.type===yi?(g=Mr(v.props.children,m.mode,x,v.key),g.return=m,m=g):(x=Fl(v.type,v.key,v.props,null,m.mode,x),x.ref=Co(m,g,v),x.return=m,m=x)}return s(m);case gi:e:{for(L=v.key;g!==null;){if(g.key===L)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){n(m,g.sibling),g=i(g,v.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=_c(v,m.mode,x),g.return=m,m=g}return s(m);case qn:return L=v._init,k(m,g,L(v._payload),x)}if(No(v))return h(m,g,v,x);if(ko(v))return S(m,g,v,x);Rl(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(n(m,g.sibling),g=i(g,v),g.return=m,m=g):(n(m,g),g=yc(v,m.mode,x),g.return=m,m=g),s(m)):n(m,g)}return k}var ji=G0(!0),Z0=G0(!1),cs={},dn=dr(cs),ts=dr(cs),ns=dr(cs);function Lr(e){if(e===cs)throw Error(M(174));return e}function Mf(e,t){switch(_e(ns,t),_e(ts,e),_e(dn,cs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ic(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ic(t,e)}Se(dn),_e(dn,t)}function zi(){Se(dn),Se(ts),Se(ns)}function K0(e){Lr(ns.current);var t=Lr(dn.current),n=Ic(t,e.type);t!==n&&(_e(ts,e),_e(dn,n))}function jf(e){ts.current===e&&(Se(dn),Se(ts))}var Ee=dr(0);function na(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fc=[];function zf(){for(var e=0;en?n:4,e(!0);var r=dc.transition;dc.transition={};try{e(!1),t()}finally{pe=n,dc.transition=r}}function cg(){return Ft().memoizedState}function ak(e,t,n){var r=lr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},fg(e))dg(t,n);else if(n=$0(e,t,n,r),n!==null){var i=ut();en(n,e,r,i),pg(n,t,r)}}function uk(e,t,n){var r=lr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(fg(e))dg(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,tn(l,s)){var u=t.interleaved;u===null?(i.next=i,Lf(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=$0(e,t,i,r),n!==null&&(i=ut(),en(n,e,r,i),pg(n,t,r))}}function fg(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function dg(e,t){Uo=ra=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vf(e,n)}}var ia={readContext:zt,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useInsertionEffect:nt,useLayoutEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useMutableSource:nt,useSyncExternalStore:nt,useId:nt,unstable_isNewReconciler:!1},ck={readContext:zt,useCallback:function(e,t){return un().memoizedState=[e,t===void 0?null:t],e},useContext:zt,useEffect:kh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Dl(4194308,4,og.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Dl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Dl(4,2,e,t)},useMemo:function(e,t){var n=un();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=un();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ak.bind(null,Re,e),[r.memoizedState,e]},useRef:function(e){var t=un();return e={current:e},t.memoizedState=e},useState:Sh,useDebugValue:Hf,useDeferredValue:function(e){return un().memoizedState=e},useTransition:function(){var e=Sh(!1),t=e[0];return e=lk.bind(null,e[1]),un().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Re,i=un();if(ke){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Be===null)throw Error(M(349));Fr&30||Q0(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,kh(Y0.bind(null,r,o,e),[e]),r.flags|=2048,os(9,J0.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=un(),t=Be.identifierPrefix;if(ke){var n=Rn,r=En;n=(r&~(1<<32-Yt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=rs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[cn]=t,e[es]=r,Sg(e,t,!1,!1),t.stateNode=e;e:{switch(s=Tc(n,r),n){case"dialog":xe("cancel",e),xe("close",e),i=r;break;case"iframe":case"object":case"embed":xe("load",e),i=r;break;case"video":case"audio":for(i=0;iUi&&(t.flags|=128,r=!0,Io(o,!1),t.lanes=4194304)}else{if(!r)if(e=na(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Io(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ke)return rt(t),null}else 2*Ne()-o.renderingStartTime>Ui&&n!==1073741824&&(t.flags|=128,r=!0,Io(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ne(),t.sibling=null,n=Ee.current,_e(Ee,r?n&1|2:n&1),t):(rt(t),null);case 22:case 23:return qf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?kt&1073741824&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function _k(e,t){switch(Of(t),t.tag){case 1:return yt(t.type)&&ql(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zi(),Se(gt),Se(ot),zf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jf(t),null;case 13:if(Se(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));Mi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(Ee),null;case 4:return zi(),null;case 10:return Pf(t.type._context),null;case 22:case 23:return qf(),null;case 24:return null;default:return null}}var Il=!1,it=!1,wk=typeof WeakSet=="function"?WeakSet:Set,W=null;function Ri(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ae(e,t,r)}else n.current=null}function rf(e,t,n){try{n()}catch(r){Ae(e,t,r)}}var Nh=!1;function vk(e,t){if(Uc=Wl,e=I0(),Cf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,c=0,a=0,p=e,f=null;t:for(;;){for(var d;p!==n||i!==0&&p.nodeType!==3||(l=s+i),p!==o||r!==0&&p.nodeType!==3||(u=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(d=p.firstChild)!==null;)f=p,p=d;for(;;){if(p===e)break t;if(f===n&&++c===i&&(l=s),f===o&&++a===r&&(u=s),(d=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=d}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bc={focusedElem:e,selectionRange:n},Wl=!1,W=t;W!==null;)if(t=W,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,W=e;else for(;W!==null;){t=W;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var S=h.memoizedProps,k=h.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?S:Xt(t.type,S),k);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(x){Ae(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,W=e;break}W=t.return}return h=Nh,Nh=!1,h}function Bo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&rf(t,n,o)}i=i.next}while(i!==r)}}function _a(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function of(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Eg(e){var t=e.alternate;t!==null&&(e.alternate=null,Eg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[cn],delete t[es],delete t[Vc],delete t[nk],delete t[rk])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rg(e){return e.tag===5||e.tag===3||e.tag===4}function Ph(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kl));else if(r!==4&&(e=e.child,e!==null))for(sf(e,t,n),e=e.sibling;e!==null;)sf(e,t,n),e=e.sibling}function lf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(lf(e,t,n),e=e.sibling;e!==null;)lf(e,t,n),e=e.sibling}var Ke=null,Qt=!1;function Kn(e,t,n){for(n=n.child;n!==null;)Cg(e,t,n),n=n.sibling}function Cg(e,t,n){if(fn&&typeof fn.onCommitFiberUnmount=="function")try{fn.onCommitFiberUnmount(ca,n)}catch{}switch(n.tag){case 5:it||Ri(n,t);case 6:var r=Ke,i=Qt;Ke=null,Kn(e,t,n),Ke=r,Qt=i,Ke!==null&&(Qt?(e=Ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ke.removeChild(n.stateNode));break;case 18:Ke!==null&&(Qt?(e=Ke,n=n.stateNode,e.nodeType===8?uc(e.parentNode,n):e.nodeType===1&&uc(e,n),qo(e)):uc(Ke,n.stateNode));break;case 4:r=Ke,i=Qt,Ke=n.stateNode.containerInfo,Qt=!0,Kn(e,t,n),Ke=r,Qt=i;break;case 0:case 11:case 14:case 15:if(!it&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&rf(n,t,s),i=i.next}while(i!==r)}Kn(e,t,n);break;case 1:if(!it&&(Ri(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ae(n,t,l)}Kn(e,t,n);break;case 21:Kn(e,t,n);break;case 22:n.mode&1?(it=(r=it)||n.memoizedState!==null,Kn(e,t,n),it=r):Kn(e,t,n);break;default:Kn(e,t,n)}}function Lh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wk),t.forEach(function(r){var i=Ok.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sk(r/1960))-r,10e?16:e,er===null)var r=!1;else{if(e=er,er=null,la=0,ae&6)throw Error(M(331));var i=ae;for(ae|=4,W=e.current;W!==null;){var o=W,s=o.child;if(W.flags&16){var l=o.deletions;if(l!==null){for(var u=0;uNe()-Zf?Dr(e,0):Gf|=n),_t(e,t)}function Dg(e,t){t===0&&(e.mode&1?(t=hl,hl<<=1,!(hl&130023424)&&(hl=4194304)):t=1);var n=ut();e=Tn(e,t),e!==null&&(ls(e,t,n),_t(e,n))}function Ik(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dg(e,n)}function Ok(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),Dg(e,n)}var Mg;Mg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gt.current)ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ht=!1,gk(e,t,n);ht=!!(e.flags&131072)}else ht=!1,ke&&t.flags&1048576&&F0(t,Jl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ml(e,t),e=t.pendingProps;var i=Di(t,ot.current);Ni(t,n),i=Uf(null,t,r,e,i,n);var o=Bf();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,yt(r)?(o=!0,Xl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Df(t),i.updater=ga,t.stateNode=i,i._reactInternals=t,Xc(t,r,e,n),t=Yc(null,t,r,!0,o,n)):(t.tag=0,ke&&o&&If(t),at(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ml(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ak(r),e=Xt(r,e),i){case 0:t=Jc(null,t,r,e,n);break e;case 1:t=Oh(null,t,r,e,n);break e;case 11:t=Ch(null,t,r,e,n);break e;case 14:t=Ih(null,t,r,Xt(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xt(r,i),Jc(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xt(r,i),Oh(e,t,r,i,n);case 3:e:{if(wg(t),e===null)throw Error(M(387));r=t.pendingProps,o=t.memoizedState,i=o.element,H0(e,t),ta(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Fi(Error(M(423)),t),t=Th(e,t,r,n,i);break e}else if(r!==i){i=Fi(Error(M(424)),t),t=Th(e,t,r,n,i);break e}else for(bt=ir(t.stateNode.containerInfo.firstChild),Et=t,ke=!0,Jt=null,n=Z0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mi(),r===i){t=An(e,t,n);break e}at(e,t,r,n)}t=t.child}return t;case 5:return K0(t),e===null&&Zc(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,$c(r,i)?s=null:o!==null&&$c(r,o)&&(t.flags|=32),_g(e,t),at(e,t,s,n),t.child;case 6:return e===null&&Zc(t),null;case 13:return vg(e,t,n);case 4:return Mf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ji(t,null,r,n):at(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xt(r,i),Ch(e,t,r,i,n);case 7:return at(e,t,t.pendingProps,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,_e(Yl,r._currentValue),r._currentValue=s,o!==null)if(tn(o.value,s)){if(o.children===i.children&&!gt.current){t=An(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=Cn(-1,n&-n),u.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var a=c.pending;a===null?u.next=u:(u.next=a.next,a.next=u),c.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Kc(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(M(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Kc(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}at(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ni(t,n),i=zt(i),r=r(i),t.flags|=1,at(e,t,r,n),t.child;case 14:return r=t.type,i=Xt(r,t.pendingProps),i=Xt(r.type,i),Ih(e,t,r,i,n);case 15:return gg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xt(r,i),Ml(e,t),t.tag=1,yt(r)?(e=!0,Xl(t)):e=!1,Ni(t,n),W0(t,r,i),Xc(t,r,i,n),Yc(null,t,r,!0,e,n);case 19:return xg(e,t,n);case 22:return yg(e,t,n)}throw Error(M(156,t.tag))};function jg(e,t){return u0(e,t)}function Tk(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,n,r){return new Tk(e,t,n,r)}function Qf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ak(e){if(typeof e=="function")return Qf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gf)return 11;if(e===yf)return 14}return 2}function ar(e,t){var n=e.alternate;return n===null?(n=Mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fl(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Qf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case yi:return Mr(n.children,i,o,t);case hf:s=8,i|=8;break;case vc:return e=Mt(12,n,t,i|2),e.elementType=vc,e.lanes=o,e;case xc:return e=Mt(13,n,t,i),e.elementType=xc,e.lanes=o,e;case Sc:return e=Mt(19,n,t,i),e.elementType=Sc,e.lanes=o,e;case Gh:return va(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vh:s=10;break e;case Wh:s=9;break e;case gf:s=11;break e;case yf:s=14;break e;case qn:s=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=Mt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Mr(e,t,n,r){return e=Mt(7,e,r,t),e.lanes=n,e}function va(e,t,n,r){return e=Mt(22,e,r,t),e.elementType=Gh,e.lanes=n,e.stateNode={isHidden:!1},e}function yc(e,t,n){return e=Mt(6,e,null,t),e.lanes=n,e}function _c(e,t,n){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nk(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tc(0),this.expirationTimes=tc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tc(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Jf(e,t,n,r,i,o,s,l,u){return e=new Nk(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Mt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Df(o),e}function Pk(e,t,n){var r=3{"use strict";y();w();_();function $g(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($g)}catch(e){console.error(e)}}$g(),Hg.exports=Bg()});var Wg=Te(rd=>{"use strict";y();w();_();var Vg=nd();rd.createRoot=Vg.createRoot,rd.hydrateRoot=Vg.hydrateRoot;var AO});var Zg=Te(sd=>{"use strict";y();w();_();var Fk=Symbol.for("react.fragment");sd.Fragment=Fk;sd.jsxDEV=void 0});var qg=Te((hT,Kg)=>{"use strict";y();w();_();Kg.exports=Zg()});var Qg=Te(Ea=>{"use strict";y();w();_();var Uk=Ze(),Bk=Symbol.for("react.element"),$k=Symbol.for("react.fragment"),Hk=Object.prototype.hasOwnProperty,Vk=Uk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Wk={key:!0,ref:!0,__self:!0,__source:!0};function Xg(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Hk.call(t,r)&&!Wk.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Bk,type:e,key:o,ref:s,props:i,_owner:Vk.current}}Ea.Fragment=$k;Ea.jsx=Xg;Ea.jsxs=Xg});var me=Te((kT,Jg)=>{"use strict";y();w();_();Jg.exports=Qg()});var xd=Te((mN,Ny)=>{y();w();_();var Yk="Expected a function",by="__lodash_hash_undefined__",Ey=1/0,e2="[object Function]",t2="[object GeneratorFunction]",n2="[object Symbol]",r2=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i2=/^\w*$/,o2=/^\./,s2=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l2=/[\\^$.*+?()[\]{}|]/g,a2=/\\(\\)?/g,u2=/^\[object .+?Constructor\]$/,c2=typeof global=="object"&&global&&global.Object===Object&&global,f2=typeof self=="object"&&self&&self.Object===Object&&self,yd=c2||f2||Function("return this")();function d2(e,t){return e?.[t]}function p2(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var m2=Array.prototype,h2=Function.prototype,Ry=Object.prototype,gd=yd["__core-js_shared__"],vy=function(){var e=/[^.]+$/.exec(gd&&gd.keys&&gd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Cy=h2.toString,_d=Ry.hasOwnProperty,Iy=Ry.toString,g2=RegExp("^"+Cy.call(_d).replace(l2,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xy=yd.Symbol,y2=m2.splice,_2=Oy(yd,"Map"),ps=Oy(Object,"create"),Sy=xy?xy.prototype:void 0,ky=Sy?Sy.toString:void 0;function Gr(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1}function I2(e,t){var n=this.__data__,r=Ca(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Wi.prototype.clear=b2;Wi.prototype.delete=E2;Wi.prototype.get=R2;Wi.prototype.has=C2;Wi.prototype.set=I2;function Zr(e){var t=-1,n=e?e.length:0;for(this.clear();++t{"use strict";y();w();_();Object.defineProperty(Je,"__esModule",{value:!0});Je.output=Je.exists=Je.hash=Je.bytes=Je.bool=Je.number=Je.isBytes=void 0;function Oa(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}Je.number=Oa;function By(e){if(typeof e!="boolean")throw new Error(`boolean expected, not ${e}`)}Je.bool=By;function $y(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}Je.isBytes=$y;function kd(e,...t){if(!$y(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}Je.bytes=kd;function Hy(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Oa(e.outputLen),Oa(e.blockLen)}Je.hash=Hy;function Vy(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}Je.exists=Vy;function Wy(e,t){kd(e);let n=t.outputLen;if(e.length{"use strict";y();w();_();Object.defineProperty(X,"__esModule",{value:!0});X.add5L=X.add5H=X.add4H=X.add4L=X.add3H=X.add3L=X.add=X.rotlBL=X.rotlBH=X.rotlSL=X.rotlSH=X.rotr32L=X.rotr32H=X.rotrBL=X.rotrBH=X.rotrSL=X.rotrSH=X.shrSL=X.shrSH=X.toBig=X.split=X.fromBig=void 0;var Ta=BigInt(2**32-1),Ed=BigInt(32);function Rd(e,t=!1){return t?{h:Number(e&Ta),l:Number(e>>Ed&Ta)}:{h:Number(e>>Ed&Ta)|0,l:Number(e&Ta)|0}}X.fromBig=Rd;function Gy(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let i=0;iBigInt(e>>>0)<>>0);X.toBig=Zy;var Ky=(e,t,n)=>e>>>n;X.shrSH=Ky;var qy=(e,t,n)=>e<<32-n|t>>>n;X.shrSL=qy;var Xy=(e,t,n)=>e>>>n|t<<32-n;X.rotrSH=Xy;var Qy=(e,t,n)=>e<<32-n|t>>>n;X.rotrSL=Qy;var Jy=(e,t,n)=>e<<64-n|t>>>n-32;X.rotrBH=Jy;var Yy=(e,t,n)=>e>>>n-32|t<<64-n;X.rotrBL=Yy;var e_=(e,t)=>t;X.rotr32H=e_;var t_=(e,t)=>e;X.rotr32L=t_;var n_=(e,t,n)=>e<>>32-n;X.rotlSH=n_;var r_=(e,t,n)=>t<>>32-n;X.rotlSL=r_;var i_=(e,t,n)=>t<>>64-n;X.rotlBH=i_;var o_=(e,t,n)=>e<>>64-n;X.rotlBL=o_;function s_(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:i|0}}X.add=s_;var l_=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);X.add3L=l_;var a_=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;X.add3H=a_;var u_=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);X.add4L=u_;var c_=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0;X.add4H=c_;var f_=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);X.add5L=f_;var d_=(e,t,n,r,i,o)=>t+n+r+i+o+(e/2**32|0)|0;X.add5H=d_;var X2={fromBig:Rd,split:Gy,toBig:Zy,shrSH:Ky,shrSL:qy,rotrSH:Xy,rotrSL:Qy,rotrBH:Jy,rotrBL:Yy,rotr32H:e_,rotr32L:t_,rotlSH:n_,rotlSL:r_,rotlBH:i_,rotlBL:o_,add:s_,add3L:l_,add3H:a_,add4L:u_,add4H:c_,add5H:d_,add5L:f_};X.default=X2});var m_=Te(Aa=>{"use strict";y();w();_();Object.defineProperty(Aa,"__esModule",{value:!0});Aa.crypto=void 0;Aa.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0});var y_=Te(K=>{"use strict";y();w();_();Object.defineProperty(K,"__esModule",{value:!0});K.randomBytes=K.wrapXOFConstructorWithOpts=K.wrapConstructorWithOpts=K.wrapConstructor=K.checkOpts=K.Hash=K.concatBytes=K.toBytes=K.utf8ToBytes=K.asyncLoop=K.nextTick=K.hexToBytes=K.bytesToHex=K.byteSwap32=K.byteSwapIfBE=K.byteSwap=K.isLE=K.rotl=K.rotr=K.createView=K.u32=K.u8=K.isBytes=void 0;var Cd=m_(),Od=bd();function Q2(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}K.isBytes=Q2;var J2=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);K.u8=J2;var Y2=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));K.u32=Y2;var eb=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);K.createView=eb;var tb=(e,t)=>e<<32-t|e>>>t;K.rotr=tb;var nb=(e,t)=>e<>>32-t>>>0;K.rotl=nb;K.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;var rb=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;K.byteSwap=rb;K.byteSwapIfBE=K.isLE?e=>e:e=>(0,K.byteSwap)(e);function ib(e){for(let t=0;tt.toString(16).padStart(2,"0"));function sb(e){(0,Od.bytes)(e);let t="";for(let n=0;n=Mn._0&&e<=Mn._9)return e-Mn._0;if(e>=Mn._A&&e<=Mn._F)return e-(Mn._A-10);if(e>=Mn._a&&e<=Mn._f)return e-(Mn._a-10)}function lb(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);let t=e.length,n=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(n);for(let i=0,o=0;i{};K.nextTick=ab;async function ub(e,t,n){let r=Date.now();for(let i=0;i=0&&oe().update(Na(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}K.wrapConstructor=pb;function mb(e){let t=(r,i)=>e(i).update(Na(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}K.wrapConstructorWithOpts=mb;function hb(e){let t=(r,i)=>e(i).update(Na(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}K.wrapXOFConstructorWithOpts=hb;function gb(e=32){if(Cd.crypto&&typeof Cd.crypto.getRandomValues=="function")return Cd.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}K.randomBytes=gb});var E_=Te(we=>{"use strict";y();w();_();Object.defineProperty(we,"__esModule",{value:!0});we.shake256=we.shake128=we.keccak_512=we.keccak_384=we.keccak_256=we.keccak_224=we.sha3_512=we.sha3_384=we.sha3_256=we.sha3_224=we.Keccak=we.keccakP=void 0;var Zi=bd(),gs=p_(),jn=y_(),v_=[],x_=[],S_=[],yb=BigInt(0),hs=BigInt(1),_b=BigInt(2),wb=BigInt(7),vb=BigInt(256),xb=BigInt(113);for(let e=0,t=hs,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],v_.push(2*(5*r+n)),x_.push((e+1)*(e+2)/2%64);let i=yb;for(let o=0;o<7;o++)t=(t<>wb)*xb)%vb,t&_b&&(i^=hs<<(hs<n>32?(0,gs.rotlBH)(e,t,n):(0,gs.rotlSH)(e,t,n),w_=(e,t,n)=>n>32?(0,gs.rotlBL)(e,t,n):(0,gs.rotlSL)(e,t,n);function k_(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let s=0;s<10;s++)n[s]=e[s]^e[s+10]^e[s+20]^e[s+30]^e[s+40];for(let s=0;s<10;s+=2){let l=(s+8)%10,u=(s+2)%10,c=n[u],a=n[u+1],p=__(c,a,1)^n[l],f=w_(c,a,1)^n[l+1];for(let d=0;d<50;d+=10)e[s+d]^=p,e[s+d+1]^=f}let i=e[2],o=e[3];for(let s=0;s<24;s++){let l=x_[s],u=__(i,o,l),c=w_(i,o,l),a=v_[s];i=e[a],o=e[a+1],e[a]=u,e[a+1]=c}for(let s=0;s<50;s+=10){for(let l=0;l<10;l++)n[l]=e[s+l];for(let l=0;l<10;l++)e[s+l]^=~n[(l+2)%10]&n[(l+4)%10]}e[0]^=Sb[r],e[1]^=kb[r]}n.fill(0)}we.keccakP=k_;var ys=class e extends jn.Hash{constructor(t,n,r,i=!1,o=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,Zi.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,jn.u32)(this.state)}keccak(){jn.isLE||(0,jn.byteSwap32)(this.state32),k_(this.state32,this.rounds),jn.isLE||(0,jn.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(t){(0,Zi.exists)(this);let{blockLen:n,state:r}=this;t=(0,jn.toBytes)(t);let i=t.length;for(let o=0;o=r&&this.keccak();let s=Math.min(r-this.posOut,o-i);t.set(n.subarray(this.posOut,this.posOut+s),i),this.posOut+=s,i+=s}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return(0,Zi.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,Zi.output)(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:n,suffix:r,outputLen:i,rounds:o,enableXOF:s}=this;return t||(t=new e(n,r,i,s,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=r,t.outputLen=i,t.enableXOF=s,t.destroyed=this.destroyed,t}};we.Keccak=ys;var _r=(e,t,n)=>(0,jn.wrapConstructor)(()=>new ys(t,e,n));we.sha3_224=_r(6,144,224/8);we.sha3_256=_r(6,136,256/8);we.sha3_384=_r(6,104,384/8);we.sha3_512=_r(6,72,512/8);we.keccak_224=_r(1,144,224/8);we.keccak_256=_r(1,136,256/8);we.keccak_384=_r(1,104,384/8);we.keccak_512=_r(1,72,512/8);var b_=(e,t,n)=>(0,jn.wrapXOFConstructorWithOpts)((r={})=>new ys(t,e,r.dkLen===void 0?n:r.dkLen,!0));we.shake128=b_(31,168,128/8);we.shake256=b_(31,136,256/8)});var P_=Te((A4,wr)=>{y();w();_();var{sha3_512:bb}=E_(),C_=24,_s=32,Td=(e=4,t=Math.random)=>{let n="";for(;n.lengthI_(bb(e)).toString(36).slice(1),R_=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),Eb=e=>R_[Math.floor(e()*R_.length)],T_=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{},random:t=Math.random}={})=>{let n=Object.keys(e).toString(),r=n.length?n+Td(_s,t):Td(_s,t);return O_(r).substring(0,_s)},A_=e=>()=>e++,Rb=476782367,N_=({random:e=Math.random,counter:t=A_(Math.floor(e()*Rb)),length:n=C_,fingerprint:r=T_({random:e})}={})=>function(){let o=Eb(e),s=Date.now().toString(36),l=t().toString(36),u=Td(n,e),c=`${s+u+l+r}`;return`${o+O_(c).substring(1,n)}`},Cb=N_(),Ib=(e,{minLength:t=2,maxLength:n=_s}={})=>{let r=e.length,i=/^[0-9a-z]+$/;try{if(typeof e=="string"&&r>=t&&r<=n&&i.test(e))return!0}finally{}return!1};wr.exports.getConstants=()=>({defaultLength:C_,bigLength:_s});wr.exports.init=N_;wr.exports.createId=Cb;wr.exports.bufToBigInt=I_;wr.exports.createCounter=A_;wr.exports.createFingerprint=T_;wr.exports.isCuid=Ib});var Pa=Te((D4,ws)=>{y();w();_();var{createId:Ob,init:Tb,getConstants:Ab,isCuid:Nb}=P_();ws.exports.createId=Ob;ws.exports.init=Tb;ws.exports.getConstants=Ab;ws.exports.isCuid=Nb});var ep=Te((QL,U1)=>{y();w();_();var hE=1/0,gE="[object Symbol]",yE=/^\s+|\s+$/g,Yd="\\ud800-\\udfff",O1="\\u0300-\\u036f\\ufe20-\\ufe23",T1="\\u20d0-\\u20f0",A1="\\ufe0e\\ufe0f",_E="["+Yd+"]",Qd="["+O1+T1+"]",Jd="\\ud83c[\\udffb-\\udfff]",wE="(?:"+Qd+"|"+Jd+")",N1="[^"+Yd+"]",P1="(?:\\ud83c[\\udde6-\\uddff]){2}",L1="[\\ud800-\\udbff][\\udc00-\\udfff]",D1="\\u200d",M1=wE+"?",j1="["+A1+"]?",vE="(?:"+D1+"(?:"+[N1,P1,L1].join("|")+")"+j1+M1+")*",xE=j1+M1+vE,SE="(?:"+[N1+Qd+"?",Qd,P1,L1,_E].join("|")+")",kE=RegExp(Jd+"(?="+Jd+")|"+SE+xE,"g"),bE=RegExp("["+D1+Yd+O1+T1+A1+"]"),EE=typeof global=="object"&&global&&global.Object===Object&&global,RE=typeof self=="object"&&self&&self.Object===Object&&self,CE=EE||RE||Function("return this")();function IE(e){return e.split("")}function OE(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o-1;);return n}function NE(e,t){for(var n=e.length;n--&&z1(t,e[n],0)>-1;);return n}function PE(e){return bE.test(e)}function E1(e){return PE(e)?LE(e):IE(e)}function LE(e){return e.match(kE)||[]}var DE=Object.prototype,ME=DE.toString,R1=CE.Symbol,C1=R1?R1.prototype:void 0,I1=C1?C1.toString:void 0;function jE(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=r?e:jE(e,t,n)}function FE(e){return!!e&&typeof e=="object"}function UE(e){return typeof e=="symbol"||FE(e)&&ME.call(e)==gE}function BE(e){return e==null?"":F1(e)}function $E(e,t,n){if(e=BE(e),e&&(n||t===void 0))return e.replace(yE,"");if(!e||!(t=F1(t)))return e;var r=E1(e),i=E1(t),o=AE(r,i),s=NE(r,i)+1;return zE(r,o,s).join("")}U1.exports=$E});var Pw=Te((SF,Nw)=>{"use strict";y();w();_();function tC(e,t){for(;e.length{y();w();_();(function(e,t){"use strict";var n="1.0.38",r="",i="?",o="function",s="undefined",l="object",u="string",c="major",a="model",p="name",f="type",d="vendor",h="version",S="architecture",k="console",m="mobile",g="tablet",v="smarttv",x="wearable",N="embedded",L=500,P="Amazon",D="Apple",V="ASUS",F="BlackBerry",G="Browser",Ge="Chrome",fi="Edge",O="Firefox",B="Google",U="Huawei",j="LG",H="Microsoft",q="Motorola",te="Opera",J="Samsung",ue="Sharp",le="Sony",pt="Xiaomi",Nt="Zebra",Gn="Facebook",sm="Chromium OS",lm="Mac OS",_x=function(ie,de){var ee={};for(var ge in ie)de[ge]&&de[ge].length%2===0?ee[ge]=de[ge].concat(ie[ge]):ee[ge]=ie[ge];return ee},tl=function(ie){for(var de={},ee=0;ee0?fe.length===2?typeof fe[1]==o?this[fe[0]]=fe[1].call(this,sn):this[fe[0]]=fe[1]:fe.length===3?typeof fe[1]===o&&!(fe[1].exec&&fe[1].test)?this[fe[0]]=sn?fe[1].call(this,sn,fe[2]):t:this[fe[0]]=sn?sn.replace(fe[1],fe[2]):t:fe.length===4&&(this[fe[0]]=sn?fe[3].call(this,sn.replace(fe[1],fe[2])):t):this[fe]=sn||t;ee+=2}},Du=function(ie,de){for(var ee in de)if(typeof de[ee]===l&&de[ee].length>0){for(var ge=0;ge2&&(Y[a]="iPad",Y[f]=g),Y},this.getEngine=function(){var Y={};return Y[p]=t,Y[h]=t,_o.call(Y,ge,on.engine),Y},this.getOS=function(){var Y={};return Y[p]=t,Y[h]=t,_o.call(Y,ge,on.os),fe&&!Y[p]&&Sn&&Sn.platform&&Sn.platform!="Unknown"&&(Y[p]=Sn.platform.replace(/chrome os/i,sm).replace(/macos/i,lm)),Y},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ge},this.setUA=function(Y){return ge=typeof Y===u&&Y.length>L?Lu(Y,L):Y,this},this.setUA(ge),this};St.VERSION=n,St.BROWSER=tl([p,h,c]),St.CPU=tl([S]),St.DEVICE=tl([a,d,f,k,m,v,g,x,N]),St.ENGINE=St.OS=tl([p,h]),typeof el!==s?(typeof Pu!==s&&Pu.exports&&(el=Pu.exports=St),el.UAParser=St):typeof define===o&&define.amd?define(function(){return St}):typeof e!==s&&(e.UAParser=St);var di=typeof e!==s&&(e.jQuery||e.Zepto);if(di&&!di.ua){var nl=new St;di.ua=nl.getResult(),di.ua.get=function(){return nl.getUA()},di.ua.set=function(ie){nl.setUA(ie);var de=nl.getResult();for(var ee in de)di.ua[ee]=de[ee]}}})(typeof window=="object"?window:el)});y();w();_();var gx=Z(Wg());y();w();_();y();w();_();var Hi=Z(Ze()),mr=(e,t,n)=>{let[,r]=(0,Hi.useState)({}),o=(0,Hi.useRef)({data:e,deps:n||[],ready:!1,_loading:{},lastRender:0,lastRenderCount:0,delayedRender:!1,delayedRenderTimeout:null,overRenderTimeout:null}).current;if((0,Hi.useEffect)(()=>{o.ready=!0,t&&t({init:!0,setDelayedRender(s){o.delayedRender=s}})},[]),o.ready===!1)o._loading={},o.data.render=()=>{if(o.ready){if(o.delayedRender){Date.now()-o.lastRender>100?(o.lastRender=Date.now(),r({})):(clearTimeout(o.delayedRenderTimeout),o.delayedRenderTimeout=setTimeout(o.data.render,50));return}if(Date.now()-o.lastRender<300?o.lastRenderCount++:o.lastRenderCount=0,o.lastRender=Date.now(),o.lastRenderCount>300){clearTimeout(o.overRenderTimeout),o.overRenderTimeout=setTimeout(()=>{o.lastRender=Date.now(),r({})},1e3),console.error("local.render more than 300 times in less than 300ms");return}r({})}};else if(o.deps.length>0&&n){for(let[s,l]of Object.entries(n))if(o.deps[s]!==l){o.deps[s]=l,t&&setTimeout(()=>{t({init:!1,setDelayedRender(u){o.delayedRender=u}})});break}}return o.data};y();w();_();var Gg=(e,t)=>new Promise(async n=>{if(typeof e=="function"){let r=null;if(t&&(r=setTimeout(n,t)),await e()){clearTimeout(r),n();return}let i=0,o=setInterval(async()=>{await e()&&(r&&clearTimeout(r),clearInterval(o),n()),i>100&&clearInterval(o)},10)}else typeof e=="number"&&setTimeout(()=>{n()},e)});y();w();_();var zk=Z(Ze());y();w();_();var Pn=Z(Ze());y();w();_();function id(e){let t=new WeakMap;function n(r,i=[]){if(!(r!==null&&typeof r=="object"))return r;let o=t.get(r);if(o)return`[Circular *${o.join(".")}]`;t.set(r,i);let s=Array.isArray(r)?[]:{};for(let[l,u]of Object.entries(r))s[l]=n(u,[...i,l]);return t.delete(r),s}return n(e)}var od=(0,Pn.createContext)({global:{},render:()=>{}});var hr=(e,t)=>{let n=(0,Pn.useContext)(od),{global:r,render:i}=n;r[t]||(r[t]=e),(0,Pn.useEffect)(()=>{let s=null;return()=>{typeof s=="function"?s():s instanceof Promise&&s.then(l=>{typeof l=="function"&&l()})}},[]);let o=r[t];return o&&(o.render=s=>{s&&(r[t]=void 0),(0,Pn.startTransition)(i)}),o},gr=id;var HT=Z(Ze());y();w();_();y();w();_();y();w();_();var ld=Z(Ze()),Yg=Z(nd()),ey=Z(qg()),ty=Z(me()),ny=()=>{let e=typeof window=="object"?window:globalThis;e.React=ld.default,e.ReactDOM=Yg.default,e.JSXRuntime=ty.default,e.JSXDevRuntime=ey.default,e.Fragment=ld.default.Fragment};y();w();_();y();w();_();var Gk={data:""},iy=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Gk,oy=e=>{let t=iy(e),n=t.data;return t.data="",n},Zk=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Kk=/\/\*[^]*?\*\/| +/g,ry=/\n+/g,Vr=(e,t)=>{let n="",r="",i="";for(let o in e){let s=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+s+";":r+=o[1]=="f"?Vr(s,o):o+"{"+Vr(s,o[1]=="k"?"":t)+"}":typeof s=="object"?r+=Vr(s,t?t.replace(/([^,])+/g,l=>o.replace(/(^:.*)|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,l):l?l+" "+u:u)):o):s!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Vr.p?Vr.p(o,s):o+":"+s+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Ln={},sy=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+sy(e[n]);return t}return e},qk=(e,t,n,r,i)=>{let o=sy(e),s=Ln[o]||(Ln[o]=(u=>{let c=0,a=11;for(;c>>0;return"go"+a})(o));if(!Ln[s]){let u=o!==e?e:(c=>{let a,p,f=[{}];for(;a=Zk.exec(c.replace(Kk,""));)a[4]?f.shift():a[3]?(p=a[3].replace(ry," ").trim(),f.unshift(f[0][p]=f[0][p]||{})):f[0][a[1]]=a[2].replace(ry," ").trim();return f[0]})(e);Ln[s]=Vr(i?{["@keyframes "+s]:u}:u,n?"":"."+s)}let l=n&&Ln.g?Ln.g:null;return n&&(Ln.g=Ln[s]),((u,c,a,p)=>{p?c.data=c.data.replace(p,u):c.data.indexOf(u)===-1&&(c.data=a?u+c.data:c.data+u)})(Ln[s],t,r,l),s},Xk=(e,t,n)=>e.reduce((r,i,o)=>{let s=t[o];if(s&&s.call){let l=s(n),u=l&&l.props&&l.props.className||/^go/.test(l)&&l;s=u?"."+u:l&&typeof l=="object"?l.props?"":Vr(l,""):l===!1?"":l}return r+i+(s??"")},"");function Ra(e){let t=this||{},n=e.call?e(t.p):e;return qk(n.unshift?n.raw?Xk(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,iy(t.target),t.g,t.o,t.k)}var AT=Ra.bind({g:1}),NT=Ra.bind({k:1});var ly=async(e=!0)=>{let t=typeof window=="object"?window:globalThis;e&&await Gg(()=>t.__SRV_URL__),t.prasiContext={global:{},render(){}};let n=window.location,r=n.protocol.indexOf("http")===0?n.hostname:"localhost",i=n.protocol!="https:"||/localhost|127.0.0.1|0.0.0.0/.test(r)?"http":"https";if(t.__SRV_URL__){t.serverurl=t.__SRV_URL__;let s=new URL(t.serverurl);(s.hostname==="localhost"||s.hostname==="127.0.0.1")&&(s.hostname=n.hostname,s.pathname=s.pathname==="/"?"":s.pathname,t.serverurl=s.toString(),t.serverurl.endsWith("/")&&(t.serverurl=t.serverurl.substring(0,t.serverurl.length-1)))}let o=n.port;t.baseurl=i+"://"+r+(o?":"+o:"")+"/",t.basepath||(t.basepath="/"),t.css=Ra,t.extractCss=oy,t.pathname=n.pathname,t.cx=(...s)=>{let l=[];return s.filter(u=>u?(typeof u=="string"&&u.trim(),!0):!1).forEach(u=>{if(Array.isArray(u))for(let c of u)typeof c=="string"&&c.trim()&&l.push(c.trim());else l.push(u.trim())}),l.join(" ")},t.navigate=s=>{let l=s;if(typeof t.navigateOverride=="function"&&(l=t.navigateOverride(s),!l))return null;history.pushState({prevUrl:window.location.href},"",l),t.pathname=s,t.prasiContext&&t.prasiContext.render&&t.prasiContext.render()},typeof window=="object"&&window.addEventListener("popstate",()=>{let s=navigator.serviceWorker.controller;if(s&&s.postMessage({type:"add-cache",url:n.href}),t.prasiContext.popState){t.prasiContext.popState();return}if(t.preventPopRender){t.preventPopRender=!1;return}t.prasiContext&&t.prasiContext.render&&(t.pathname=n.pathname,t.prasiContext.render())})};y();w();_();var ad=window,z={root:null,url(...e){let t=e.map(r=>Array.isArray(r)?r.join(""):r).join(""),n=this.root.toString();return n.endsWith("/")&&(n=n.substring(0,n.length-1)),t.startsWith("/")?n+t:n+"/"+t},get pathname(){let e=location.pathname.substring(z.root.pathname.length);return e.startsWith("/")?e:`/${e}`},site:{id:ad._prasi?.site_id},init_local_effect:{},mode:"",route:{status:"init",pages:[],router:null},comp:{list:{},pending:{}},layout:{id:"",root:null,meta:null},cache:{urls:new Set},page:{id:"",url:"",root:null,meta:null,cache:{}}},ay=()=>{if(!z.root){let e=new URL(location.href);ad._prasi.basepath&&(e.pathname=ad._prasi.basepath),z.root=new URL(`${e.protocol}//${e.host}${e.pathname}`),z.root.pathname.endsWith("/")&&(z.root.pathname=z.root.pathname.substring(0,z.root.length-1))}};y();w();_();y();w();_();function cd(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function fd(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=cd(n);return(i,o)=>r.then(s=>o(s.transaction(t,i).objectStore(t)))}var ud;function uy(){return ud||(ud=fd("keyval-store","keyval")),ud}function fs(e,t=uy()){return t("readonly",n=>cd(n.get(e)))}function Wr(e,t,n=uy()){return n("readwrite",r=>(r.put(t,e),cd(r.transaction)))}var mx=Z(Ze());y();w();_();y();w();_();y();w();_();var cy=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Qk(e){return typeof e=="string"&&cy.test(e)}var dd=Qk;y();w();_();var Vi=Z(me()),fy=window,pd=({children:e,back:t})=>fy.ContentNotFound?(0,Vi.jsx)(fy.ContentNotFound,{}):(0,Vi.jsxs)("div",{className:"flex items-center justify-center w-full h-full fixed inset-0 flex-col",children:[(0,Vi.jsx)("div",{children:e}),(0,Vi.jsxs)("div",{className:"border mt-2 rounded-md p-2 cursor-pointer",onClick:t||(()=>{history.back()}),children:[" ","Go Back"]})]});y();w();_();var dy=Z(Ze());var Qe=Z(me()),md=window,ds=({children:e,className:t,show:n,backdrop:r,note:i,alt:o,pointer:s})=>{let l=mr({icon:(0,Qe.jsx)("div",{className:"px-4 py-1",children:"Loading..."}),value:.111,ival:null},()=>{});(0,dy.useEffect)(()=>(l.ival=setInterval(()=>{l.value+=.1333,l.value>=1.3&&(l.value=0),l.render()},200),md.loadingIcon&&(l.icon=(0,Qe.jsx)("img",{alt:"loading",src:md.loadingIcon,className:css` +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function hc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Qc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var pk=typeof WeakMap=="function"?WeakMap:Map;function mg(e,t,n){n=Cn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){sa||(sa=!0,af=r),Qc(e,t)},n}function hg(e,t,n){n=Cn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Qc(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Qc(e,t),typeof r!="function"&&(sr===null?sr=new Set([this]):sr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function bh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new pk;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ck.bind(null,e,t,n),t.then(e,e))}function Eh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Rh(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Cn(-1,1),t.tag=2,or(n,t,1))),n.lanes|=1),e)}var mk=Nn.ReactCurrentOwner,ht=!1;function at(e,t,n,r){t.child=e===null?Z0(t,null,n,r):ji(t,e.child,n,r)}function Ch(e,t,n,r,i){n=n.render;var o=t.ref;return Ni(t,i),r=Uf(e,t,n,r,o,i),n=Bf(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,An(e,t,i)):(ke&&n&&If(t),t.flags|=1,at(e,t,r,i),t.child)}function Ih(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Qf(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,gg(e,t,o,r,i)):(e=Fl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Qo,n(s,r)&&e.ref===t.ref)return An(e,t,i)}return t.flags|=1,e=ar(o,r),e.ref=t.ref,e.return=t,t.child=e}function gg(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Qo(o,r)&&e.ref===t.ref)if(ht=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(ht=!0);else return t.lanes=e.lanes,An(e,t,i)}return Jc(e,t,n,r,i)}function yg(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e(Ci,kt),kt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_e(Ci,kt),kt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,_e(Ci,kt),kt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,_e(Ci,kt),kt|=r;return at(e,t,i,n),t.child}function _g(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Jc(e,t,n,r,i){var o=yt(n)?jr:ot.current;return o=Di(t,o),Ni(t,i),n=Uf(e,t,n,r,o,i),r=Bf(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,An(e,t,i)):(ke&&r&&If(t),t.flags|=1,at(e,t,n,i),t.child)}function Oh(e,t,n,r,i){if(yt(n)){var o=!0;Xl(t)}else o=!1;if(Ni(t,i),t.stateNode===null)Ml(e,t),W0(t,n,r),Xc(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=zt(c):(c=yt(n)?jr:ot.current,c=Di(t,c));var a=n.getDerivedStateFromProps,p=typeof a=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||u!==c)&&vh(t,s,r,c),Xn=!1;var f=t.memoizedState;s.state=f,ta(t,r,s,i),u=t.memoizedState,l!==r||f!==u||gt.current||Xn?(typeof a=="function"&&(qc(t,n,a,r),u=t.memoizedState),(l=Xn||wh(t,n,l,r,f,u,c))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=c,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,H0(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Xt(t.type,l),s.props=c,p=t.pendingProps,f=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=zt(u):(u=yt(n)?jr:ot.current,u=Di(t,u));var d=n.getDerivedStateFromProps;(a=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==p||f!==u)&&vh(t,s,r,u),Xn=!1,f=t.memoizedState,s.state=f,ta(t,r,s,i);var h=t.memoizedState;l!==p||f!==h||gt.current||Xn?(typeof d=="function"&&(qc(t,n,d,r),h=t.memoizedState),(c=Xn||wh(t,n,c,r,f,h,u)||!1)?(a||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,h,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,h,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),s.props=r,s.state=h,s.context=u,r=c):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Yc(e,t,n,r,o,i)}function Yc(e,t,n,r,i,o){_g(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&mh(t,n,!1),An(e,t,o);r=t.stateNode,mk.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ji(t,e.child,null,o),t.child=ji(t,null,l,o)):at(e,t,l,o),t.memoizedState=r.state,i&&mh(t,n,!0),t.child}function wg(e){var t=e.stateNode;t.pendingContext?ph(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ph(e,t.context,!1),Mf(e,t.containerInfo)}function Th(e,t,n,r,i){return Mi(),Tf(i),t.flags|=256,at(e,t,n,r),t.child}var ef={dehydrated:null,treeContext:null,retryLane:0};function tf(e){return{baseLanes:e,cachePool:null,transitions:null}}function vg(e,t,n){var r=t.pendingProps,i=Ee.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),_e(Ee,i&1),e===null)return Zc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=va(s,r,0,null),e=Mr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=tf(n),t.memoizedState=ef,e):Vf(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return hk(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=ar(i,u),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=ar(l,o):(o=Mr(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?tf(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=ef,r}return o=e.child,e=o.sibling,r=ar(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Vf(e,t){return t=va({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Cl(e,t,n,r){return r!==null&&Tf(r),ji(t,e.child,null,n),e=Vf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hk(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=hc(Error(M(422))),Cl(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=va({mode:"visible",children:r.children},i,0,null),o=Mr(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ji(t,e.child,null,s),t.child.memoizedState=tf(s),t.memoizedState=ef,o);if(!(t.mode&1))return Cl(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(M(419)),r=hc(o,r,void 0),Cl(e,t,s,r)}if(l=(s&e.childLanes)!==0,ht||l){if(r=Be,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Tn(e,i),en(r,e,i,-1))}return Xf(),r=hc(Error(M(421))),Cl(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Ik.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,bt=ir(i.nextSibling),Et=t,ke=!0,Jt=null,e!==null&&(Lt[Dt++]=En,Lt[Dt++]=Rn,Lt[Dt++]=zr,En=e.id,Rn=e.overflow,zr=t),t=Vf(t,r.children),t.flags|=4096,t)}function Ah(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Kc(e.return,t,n)}function gc(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function xg(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(at(e,t,r.children,n),r=Ee.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ah(e,n,t);else if(e.tag===19)Ah(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_e(Ee,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&na(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),gc(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&na(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}gc(t,!0,n,null,o);break;case"together":gc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ml(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function An(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ur|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,n=ar(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ar(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gk(e,t,n){switch(t.tag){case 3:wg(t),Mi();break;case 5:K0(t);break;case 1:yt(t.type)&&Xl(t);break;case 4:Mf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;_e(Yl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(_e(Ee,Ee.current&1),t.flags|=128,null):n&t.child.childLanes?vg(e,t,n):(_e(Ee,Ee.current&1),e=An(e,t,n),e!==null?e.sibling:null);_e(Ee,Ee.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return xg(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_e(Ee,Ee.current),r)break;return null;case 22:case 23:return t.lanes=0,yg(e,t,n)}return An(e,t,n)}var Sg,nf,kg,bg;Sg=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};nf=function(){};kg=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Lr(dn.current);var o=null;switch(n){case"input":i=bc(e,i),r=bc(e,r),o=[];break;case"select":i=Ce({},i,{value:void 0}),r=Ce({},r,{value:void 0}),o=[];break;case"textarea":i=Cc(e,i),r=Cc(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Kl)}Oc(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Vo.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var u=r[c];if(l=i?.[c],r.hasOwnProperty(c)&&u!==l&&(u!=null||l!=null))if(c==="style")if(l){for(s in l)!l.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&l[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(o||(o=[]),o.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(o=o||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Vo.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&xe("scroll",e),o||l===u||(o=[])):(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};bg=function(e,t,n,r){n!==r&&(t.flags|=4)};function Io(e,t){if(!ke)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function rt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function yk(e,t,n){var r=t.pendingProps;switch(Of(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(t),null;case 1:return yt(t.type)&&ql(),rt(t),null;case 3:return r=t.stateNode,zi(),Se(gt),Se(ot),zf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(El(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Jt!==null&&(ff(Jt),Jt=null))),nf(e,t),rt(t),null;case 5:jf(t);var i=Lr(ns.current);if(n=t.type,e!==null&&t.stateNode!=null)kg(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(M(166));return rt(t),null}if(e=Lr(dn.current),El(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[cn]=t,r[es]=o,e=(t.mode&1)!==0,n){case"dialog":xe("cancel",r),xe("close",r);break;case"iframe":case"object":case"embed":xe("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[cn]=t,e[es]=r,Sg(e,t,!1,!1),t.stateNode=e;e:{switch(s=Tc(n,r),n){case"dialog":xe("cancel",e),xe("close",e),i=r;break;case"iframe":case"object":case"embed":xe("load",e),i=r;break;case"video":case"audio":for(i=0;iUi&&(t.flags|=128,r=!0,Io(o,!1),t.lanes=4194304)}else{if(!r)if(e=na(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Io(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ke)return rt(t),null}else 2*Ne()-o.renderingStartTime>Ui&&n!==1073741824&&(t.flags|=128,r=!0,Io(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ne(),t.sibling=null,n=Ee.current,_e(Ee,r?n&1|2:n&1),t):(rt(t),null);case 22:case 23:return qf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?kt&1073741824&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function _k(e,t){switch(Of(t),t.tag){case 1:return yt(t.type)&&ql(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zi(),Se(gt),Se(ot),zf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jf(t),null;case 13:if(Se(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));Mi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(Ee),null;case 4:return zi(),null;case 10:return Pf(t.type._context),null;case 22:case 23:return qf(),null;case 24:return null;default:return null}}var Il=!1,it=!1,wk=typeof WeakSet=="function"?WeakSet:Set,W=null;function Ri(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ae(e,t,r)}else n.current=null}function rf(e,t,n){try{n()}catch(r){Ae(e,t,r)}}var Nh=!1;function vk(e,t){if(Uc=Wl,e=I0(),Cf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,c=0,a=0,p=e,f=null;t:for(;;){for(var d;p!==n||i!==0&&p.nodeType!==3||(l=s+i),p!==o||r!==0&&p.nodeType!==3||(u=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(d=p.firstChild)!==null;)f=p,p=d;for(;;){if(p===e)break t;if(f===n&&++c===i&&(l=s),f===o&&++a===r&&(u=s),(d=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=d}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bc={focusedElem:e,selectionRange:n},Wl=!1,W=t;W!==null;)if(t=W,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,W=e;else for(;W!==null;){t=W;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var S=h.memoizedProps,k=h.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?S:Xt(t.type,S),k);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(x){Ae(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,W=e;break}W=t.return}return h=Nh,Nh=!1,h}function Bo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&rf(t,n,o)}i=i.next}while(i!==r)}}function _a(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function of(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Eg(e){var t=e.alternate;t!==null&&(e.alternate=null,Eg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[cn],delete t[es],delete t[Vc],delete t[nk],delete t[rk])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rg(e){return e.tag===5||e.tag===3||e.tag===4}function Ph(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kl));else if(r!==4&&(e=e.child,e!==null))for(sf(e,t,n),e=e.sibling;e!==null;)sf(e,t,n),e=e.sibling}function lf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(lf(e,t,n),e=e.sibling;e!==null;)lf(e,t,n),e=e.sibling}var Ke=null,Qt=!1;function Kn(e,t,n){for(n=n.child;n!==null;)Cg(e,t,n),n=n.sibling}function Cg(e,t,n){if(fn&&typeof fn.onCommitFiberUnmount=="function")try{fn.onCommitFiberUnmount(ca,n)}catch{}switch(n.tag){case 5:it||Ri(n,t);case 6:var r=Ke,i=Qt;Ke=null,Kn(e,t,n),Ke=r,Qt=i,Ke!==null&&(Qt?(e=Ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ke.removeChild(n.stateNode));break;case 18:Ke!==null&&(Qt?(e=Ke,n=n.stateNode,e.nodeType===8?uc(e.parentNode,n):e.nodeType===1&&uc(e,n),qo(e)):uc(Ke,n.stateNode));break;case 4:r=Ke,i=Qt,Ke=n.stateNode.containerInfo,Qt=!0,Kn(e,t,n),Ke=r,Qt=i;break;case 0:case 11:case 14:case 15:if(!it&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&rf(n,t,s),i=i.next}while(i!==r)}Kn(e,t,n);break;case 1:if(!it&&(Ri(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ae(n,t,l)}Kn(e,t,n);break;case 21:Kn(e,t,n);break;case 22:n.mode&1?(it=(r=it)||n.memoizedState!==null,Kn(e,t,n),it=r):Kn(e,t,n);break;default:Kn(e,t,n)}}function Lh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wk),t.forEach(function(r){var i=Ok.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sk(r/1960))-r,10e?16:e,er===null)var r=!1;else{if(e=er,er=null,la=0,ae&6)throw Error(M(331));var i=ae;for(ae|=4,W=e.current;W!==null;){var o=W,s=o.child;if(W.flags&16){var l=o.deletions;if(l!==null){for(var u=0;uNe()-Zf?Dr(e,0):Gf|=n),_t(e,t)}function Dg(e,t){t===0&&(e.mode&1?(t=hl,hl<<=1,!(hl&130023424)&&(hl=4194304)):t=1);var n=ut();e=Tn(e,t),e!==null&&(ls(e,t,n),_t(e,n))}function Ik(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dg(e,n)}function Ok(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),Dg(e,n)}var Mg;Mg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gt.current)ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ht=!1,gk(e,t,n);ht=!!(e.flags&131072)}else ht=!1,ke&&t.flags&1048576&&F0(t,Jl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ml(e,t),e=t.pendingProps;var i=Di(t,ot.current);Ni(t,n),i=Uf(null,t,r,e,i,n);var o=Bf();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,yt(r)?(o=!0,Xl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Df(t),i.updater=ga,t.stateNode=i,i._reactInternals=t,Xc(t,r,e,n),t=Yc(null,t,r,!0,o,n)):(t.tag=0,ke&&o&&If(t),at(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ml(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ak(r),e=Xt(r,e),i){case 0:t=Jc(null,t,r,e,n);break e;case 1:t=Oh(null,t,r,e,n);break e;case 11:t=Ch(null,t,r,e,n);break e;case 14:t=Ih(null,t,r,Xt(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xt(r,i),Jc(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xt(r,i),Oh(e,t,r,i,n);case 3:e:{if(wg(t),e===null)throw Error(M(387));r=t.pendingProps,o=t.memoizedState,i=o.element,H0(e,t),ta(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Fi(Error(M(423)),t),t=Th(e,t,r,n,i);break e}else if(r!==i){i=Fi(Error(M(424)),t),t=Th(e,t,r,n,i);break e}else for(bt=ir(t.stateNode.containerInfo.firstChild),Et=t,ke=!0,Jt=null,n=Z0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mi(),r===i){t=An(e,t,n);break e}at(e,t,r,n)}t=t.child}return t;case 5:return K0(t),e===null&&Zc(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,$c(r,i)?s=null:o!==null&&$c(r,o)&&(t.flags|=32),_g(e,t),at(e,t,s,n),t.child;case 6:return e===null&&Zc(t),null;case 13:return vg(e,t,n);case 4:return Mf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ji(t,null,r,n):at(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xt(r,i),Ch(e,t,r,i,n);case 7:return at(e,t,t.pendingProps,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,_e(Yl,r._currentValue),r._currentValue=s,o!==null)if(tn(o.value,s)){if(o.children===i.children&&!gt.current){t=An(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=Cn(-1,n&-n),u.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var a=c.pending;a===null?u.next=u:(u.next=a.next,a.next=u),c.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Kc(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(M(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Kc(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}at(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ni(t,n),i=zt(i),r=r(i),t.flags|=1,at(e,t,r,n),t.child;case 14:return r=t.type,i=Xt(r,t.pendingProps),i=Xt(r.type,i),Ih(e,t,r,i,n);case 15:return gg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xt(r,i),Ml(e,t),t.tag=1,yt(r)?(e=!0,Xl(t)):e=!1,Ni(t,n),W0(t,r,i),Xc(t,r,i,n),Yc(null,t,r,!0,e,n);case 19:return xg(e,t,n);case 22:return yg(e,t,n)}throw Error(M(156,t.tag))};function jg(e,t){return u0(e,t)}function Tk(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,n,r){return new Tk(e,t,n,r)}function Qf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ak(e){if(typeof e=="function")return Qf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gf)return 11;if(e===yf)return 14}return 2}function ar(e,t){var n=e.alternate;return n===null?(n=Mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fl(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Qf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case yi:return Mr(n.children,i,o,t);case hf:s=8,i|=8;break;case vc:return e=Mt(12,n,t,i|2),e.elementType=vc,e.lanes=o,e;case xc:return e=Mt(13,n,t,i),e.elementType=xc,e.lanes=o,e;case Sc:return e=Mt(19,n,t,i),e.elementType=Sc,e.lanes=o,e;case Gh:return va(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vh:s=10;break e;case Wh:s=9;break e;case gf:s=11;break e;case yf:s=14;break e;case qn:s=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=Mt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Mr(e,t,n,r){return e=Mt(7,e,r,t),e.lanes=n,e}function va(e,t,n,r){return e=Mt(22,e,r,t),e.elementType=Gh,e.lanes=n,e.stateNode={isHidden:!1},e}function yc(e,t,n){return e=Mt(6,e,null,t),e.lanes=n,e}function _c(e,t,n){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nk(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tc(0),this.expirationTimes=tc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tc(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Jf(e,t,n,r,i,o,s,l,u){return e=new Nk(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Mt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Df(o),e}function Pk(e,t,n){var r=3{"use strict";y();w();_();function $g(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($g)}catch(e){console.error(e)}}$g(),Hg.exports=Bg()});var Wg=Te(rd=>{"use strict";y();w();_();var Vg=nd();rd.createRoot=Vg.createRoot,rd.hydrateRoot=Vg.hydrateRoot;var AO});var Zg=Te(sd=>{"use strict";y();w();_();var Fk=Symbol.for("react.fragment");sd.Fragment=Fk;sd.jsxDEV=void 0});var qg=Te((hT,Kg)=>{"use strict";y();w();_();Kg.exports=Zg()});var Qg=Te(Ea=>{"use strict";y();w();_();var Uk=Ze(),Bk=Symbol.for("react.element"),$k=Symbol.for("react.fragment"),Hk=Object.prototype.hasOwnProperty,Vk=Uk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Wk={key:!0,ref:!0,__self:!0,__source:!0};function Xg(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Hk.call(t,r)&&!Wk.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Bk,type:e,key:o,ref:s,props:i,_owner:Vk.current}}Ea.Fragment=$k;Ea.jsx=Xg;Ea.jsxs=Xg});var me=Te((kT,Jg)=>{"use strict";y();w();_();Jg.exports=Qg()});var xd=Te((mN,Ny)=>{y();w();_();var Yk="Expected a function",by="__lodash_hash_undefined__",Ey=1/0,e2="[object Function]",t2="[object GeneratorFunction]",n2="[object Symbol]",r2=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i2=/^\w*$/,o2=/^\./,s2=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l2=/[\\^$.*+?()[\]{}|]/g,a2=/\\(\\)?/g,u2=/^\[object .+?Constructor\]$/,c2=typeof global=="object"&&global&&global.Object===Object&&global,f2=typeof self=="object"&&self&&self.Object===Object&&self,yd=c2||f2||Function("return this")();function d2(e,t){return e?.[t]}function p2(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var m2=Array.prototype,h2=Function.prototype,Ry=Object.prototype,gd=yd["__core-js_shared__"],vy=function(){var e=/[^.]+$/.exec(gd&&gd.keys&&gd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Cy=h2.toString,_d=Ry.hasOwnProperty,Iy=Ry.toString,g2=RegExp("^"+Cy.call(_d).replace(l2,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xy=yd.Symbol,y2=m2.splice,_2=Oy(yd,"Map"),ps=Oy(Object,"create"),Sy=xy?xy.prototype:void 0,ky=Sy?Sy.toString:void 0;function Gr(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1}function I2(e,t){var n=this.__data__,r=Ca(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Wi.prototype.clear=b2;Wi.prototype.delete=E2;Wi.prototype.get=R2;Wi.prototype.has=C2;Wi.prototype.set=I2;function Zr(e){var t=-1,n=e?e.length:0;for(this.clear();++t{"use strict";y();w();_();Object.defineProperty(Je,"__esModule",{value:!0});Je.output=Je.exists=Je.hash=Je.bytes=Je.bool=Je.number=Je.isBytes=void 0;function Oa(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}Je.number=Oa;function By(e){if(typeof e!="boolean")throw new Error(`boolean expected, not ${e}`)}Je.bool=By;function $y(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}Je.isBytes=$y;function kd(e,...t){if(!$y(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}Je.bytes=kd;function Hy(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Oa(e.outputLen),Oa(e.blockLen)}Je.hash=Hy;function Vy(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}Je.exists=Vy;function Wy(e,t){kd(e);let n=t.outputLen;if(e.length{"use strict";y();w();_();Object.defineProperty(X,"__esModule",{value:!0});X.add5L=X.add5H=X.add4H=X.add4L=X.add3H=X.add3L=X.add=X.rotlBL=X.rotlBH=X.rotlSL=X.rotlSH=X.rotr32L=X.rotr32H=X.rotrBL=X.rotrBH=X.rotrSL=X.rotrSH=X.shrSL=X.shrSH=X.toBig=X.split=X.fromBig=void 0;var Ta=BigInt(2**32-1),Ed=BigInt(32);function Rd(e,t=!1){return t?{h:Number(e&Ta),l:Number(e>>Ed&Ta)}:{h:Number(e>>Ed&Ta)|0,l:Number(e&Ta)|0}}X.fromBig=Rd;function Gy(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let i=0;iBigInt(e>>>0)<>>0);X.toBig=Zy;var Ky=(e,t,n)=>e>>>n;X.shrSH=Ky;var qy=(e,t,n)=>e<<32-n|t>>>n;X.shrSL=qy;var Xy=(e,t,n)=>e>>>n|t<<32-n;X.rotrSH=Xy;var Qy=(e,t,n)=>e<<32-n|t>>>n;X.rotrSL=Qy;var Jy=(e,t,n)=>e<<64-n|t>>>n-32;X.rotrBH=Jy;var Yy=(e,t,n)=>e>>>n-32|t<<64-n;X.rotrBL=Yy;var e_=(e,t)=>t;X.rotr32H=e_;var t_=(e,t)=>e;X.rotr32L=t_;var n_=(e,t,n)=>e<>>32-n;X.rotlSH=n_;var r_=(e,t,n)=>t<>>32-n;X.rotlSL=r_;var i_=(e,t,n)=>t<>>64-n;X.rotlBH=i_;var o_=(e,t,n)=>e<>>64-n;X.rotlBL=o_;function s_(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:i|0}}X.add=s_;var l_=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);X.add3L=l_;var a_=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;X.add3H=a_;var u_=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);X.add4L=u_;var c_=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0;X.add4H=c_;var f_=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);X.add5L=f_;var d_=(e,t,n,r,i,o)=>t+n+r+i+o+(e/2**32|0)|0;X.add5H=d_;var X2={fromBig:Rd,split:Gy,toBig:Zy,shrSH:Ky,shrSL:qy,rotrSH:Xy,rotrSL:Qy,rotrBH:Jy,rotrBL:Yy,rotr32H:e_,rotr32L:t_,rotlSH:n_,rotlSL:r_,rotlBH:i_,rotlBL:o_,add:s_,add3L:l_,add3H:a_,add4L:u_,add4H:c_,add5H:d_,add5L:f_};X.default=X2});var m_=Te(Aa=>{"use strict";y();w();_();Object.defineProperty(Aa,"__esModule",{value:!0});Aa.crypto=void 0;Aa.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0});var y_=Te(K=>{"use strict";y();w();_();Object.defineProperty(K,"__esModule",{value:!0});K.randomBytes=K.wrapXOFConstructorWithOpts=K.wrapConstructorWithOpts=K.wrapConstructor=K.checkOpts=K.Hash=K.concatBytes=K.toBytes=K.utf8ToBytes=K.asyncLoop=K.nextTick=K.hexToBytes=K.bytesToHex=K.byteSwap32=K.byteSwapIfBE=K.byteSwap=K.isLE=K.rotl=K.rotr=K.createView=K.u32=K.u8=K.isBytes=void 0;var Cd=m_(),Od=bd();function Q2(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}K.isBytes=Q2;var J2=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);K.u8=J2;var Y2=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));K.u32=Y2;var eb=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);K.createView=eb;var tb=(e,t)=>e<<32-t|e>>>t;K.rotr=tb;var nb=(e,t)=>e<>>32-t>>>0;K.rotl=nb;K.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;var rb=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;K.byteSwap=rb;K.byteSwapIfBE=K.isLE?e=>e:e=>(0,K.byteSwap)(e);function ib(e){for(let t=0;tt.toString(16).padStart(2,"0"));function sb(e){(0,Od.bytes)(e);let t="";for(let n=0;n=Mn._0&&e<=Mn._9)return e-Mn._0;if(e>=Mn._A&&e<=Mn._F)return e-(Mn._A-10);if(e>=Mn._a&&e<=Mn._f)return e-(Mn._a-10)}function lb(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);let t=e.length,n=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(n);for(let i=0,o=0;i{};K.nextTick=ab;async function ub(e,t,n){let r=Date.now();for(let i=0;i=0&&oe().update(Na(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}K.wrapConstructor=pb;function mb(e){let t=(r,i)=>e(i).update(Na(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}K.wrapConstructorWithOpts=mb;function hb(e){let t=(r,i)=>e(i).update(Na(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}K.wrapXOFConstructorWithOpts=hb;function gb(e=32){if(Cd.crypto&&typeof Cd.crypto.getRandomValues=="function")return Cd.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}K.randomBytes=gb});var E_=Te(we=>{"use strict";y();w();_();Object.defineProperty(we,"__esModule",{value:!0});we.shake256=we.shake128=we.keccak_512=we.keccak_384=we.keccak_256=we.keccak_224=we.sha3_512=we.sha3_384=we.sha3_256=we.sha3_224=we.Keccak=we.keccakP=void 0;var Zi=bd(),gs=p_(),jn=y_(),v_=[],x_=[],S_=[],yb=BigInt(0),hs=BigInt(1),_b=BigInt(2),wb=BigInt(7),vb=BigInt(256),xb=BigInt(113);for(let e=0,t=hs,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],v_.push(2*(5*r+n)),x_.push((e+1)*(e+2)/2%64);let i=yb;for(let o=0;o<7;o++)t=(t<>wb)*xb)%vb,t&_b&&(i^=hs<<(hs<n>32?(0,gs.rotlBH)(e,t,n):(0,gs.rotlSH)(e,t,n),w_=(e,t,n)=>n>32?(0,gs.rotlBL)(e,t,n):(0,gs.rotlSL)(e,t,n);function k_(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let s=0;s<10;s++)n[s]=e[s]^e[s+10]^e[s+20]^e[s+30]^e[s+40];for(let s=0;s<10;s+=2){let l=(s+8)%10,u=(s+2)%10,c=n[u],a=n[u+1],p=__(c,a,1)^n[l],f=w_(c,a,1)^n[l+1];for(let d=0;d<50;d+=10)e[s+d]^=p,e[s+d+1]^=f}let i=e[2],o=e[3];for(let s=0;s<24;s++){let l=x_[s],u=__(i,o,l),c=w_(i,o,l),a=v_[s];i=e[a],o=e[a+1],e[a]=u,e[a+1]=c}for(let s=0;s<50;s+=10){for(let l=0;l<10;l++)n[l]=e[s+l];for(let l=0;l<10;l++)e[s+l]^=~n[(l+2)%10]&n[(l+4)%10]}e[0]^=Sb[r],e[1]^=kb[r]}n.fill(0)}we.keccakP=k_;var ys=class e extends jn.Hash{constructor(t,n,r,i=!1,o=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,Zi.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,jn.u32)(this.state)}keccak(){jn.isLE||(0,jn.byteSwap32)(this.state32),k_(this.state32,this.rounds),jn.isLE||(0,jn.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(t){(0,Zi.exists)(this);let{blockLen:n,state:r}=this;t=(0,jn.toBytes)(t);let i=t.length;for(let o=0;o=r&&this.keccak();let s=Math.min(r-this.posOut,o-i);t.set(n.subarray(this.posOut,this.posOut+s),i),this.posOut+=s,i+=s}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return(0,Zi.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,Zi.output)(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:n,suffix:r,outputLen:i,rounds:o,enableXOF:s}=this;return t||(t=new e(n,r,i,s,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=r,t.outputLen=i,t.enableXOF=s,t.destroyed=this.destroyed,t}};we.Keccak=ys;var _r=(e,t,n)=>(0,jn.wrapConstructor)(()=>new ys(t,e,n));we.sha3_224=_r(6,144,224/8);we.sha3_256=_r(6,136,256/8);we.sha3_384=_r(6,104,384/8);we.sha3_512=_r(6,72,512/8);we.keccak_224=_r(1,144,224/8);we.keccak_256=_r(1,136,256/8);we.keccak_384=_r(1,104,384/8);we.keccak_512=_r(1,72,512/8);var b_=(e,t,n)=>(0,jn.wrapXOFConstructorWithOpts)((r={})=>new ys(t,e,r.dkLen===void 0?n:r.dkLen,!0));we.shake128=b_(31,168,128/8);we.shake256=b_(31,136,256/8)});var P_=Te((A4,wr)=>{y();w();_();var{sha3_512:bb}=E_(),C_=24,_s=32,Td=(e=4,t=Math.random)=>{let n="";for(;n.lengthI_(bb(e)).toString(36).slice(1),R_=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),Eb=e=>R_[Math.floor(e()*R_.length)],T_=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{},random:t=Math.random}={})=>{let n=Object.keys(e).toString(),r=n.length?n+Td(_s,t):Td(_s,t);return O_(r).substring(0,_s)},A_=e=>()=>e++,Rb=476782367,N_=({random:e=Math.random,counter:t=A_(Math.floor(e()*Rb)),length:n=C_,fingerprint:r=T_({random:e})}={})=>function(){let o=Eb(e),s=Date.now().toString(36),l=t().toString(36),u=Td(n,e),c=`${s+u+l+r}`;return`${o+O_(c).substring(1,n)}`},Cb=N_(),Ib=(e,{minLength:t=2,maxLength:n=_s}={})=>{let r=e.length,i=/^[0-9a-z]+$/;try{if(typeof e=="string"&&r>=t&&r<=n&&i.test(e))return!0}finally{}return!1};wr.exports.getConstants=()=>({defaultLength:C_,bigLength:_s});wr.exports.init=N_;wr.exports.createId=Cb;wr.exports.bufToBigInt=I_;wr.exports.createCounter=A_;wr.exports.createFingerprint=T_;wr.exports.isCuid=Ib});var Pa=Te((D4,ws)=>{y();w();_();var{createId:Ob,init:Tb,getConstants:Ab,isCuid:Nb}=P_();ws.exports.createId=Ob;ws.exports.init=Tb;ws.exports.getConstants=Ab;ws.exports.isCuid=Nb});var ep=Te((QL,U1)=>{y();w();_();var hE=1/0,gE="[object Symbol]",yE=/^\s+|\s+$/g,Yd="\\ud800-\\udfff",O1="\\u0300-\\u036f\\ufe20-\\ufe23",T1="\\u20d0-\\u20f0",A1="\\ufe0e\\ufe0f",_E="["+Yd+"]",Qd="["+O1+T1+"]",Jd="\\ud83c[\\udffb-\\udfff]",wE="(?:"+Qd+"|"+Jd+")",N1="[^"+Yd+"]",P1="(?:\\ud83c[\\udde6-\\uddff]){2}",L1="[\\ud800-\\udbff][\\udc00-\\udfff]",D1="\\u200d",M1=wE+"?",j1="["+A1+"]?",vE="(?:"+D1+"(?:"+[N1,P1,L1].join("|")+")"+j1+M1+")*",xE=j1+M1+vE,SE="(?:"+[N1+Qd+"?",Qd,P1,L1,_E].join("|")+")",kE=RegExp(Jd+"(?="+Jd+")|"+SE+xE,"g"),bE=RegExp("["+D1+Yd+O1+T1+A1+"]"),EE=typeof global=="object"&&global&&global.Object===Object&&global,RE=typeof self=="object"&&self&&self.Object===Object&&self,CE=EE||RE||Function("return this")();function IE(e){return e.split("")}function OE(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o-1;);return n}function NE(e,t){for(var n=e.length;n--&&z1(t,e[n],0)>-1;);return n}function PE(e){return bE.test(e)}function E1(e){return PE(e)?LE(e):IE(e)}function LE(e){return e.match(kE)||[]}var DE=Object.prototype,ME=DE.toString,R1=CE.Symbol,C1=R1?R1.prototype:void 0,I1=C1?C1.toString:void 0;function jE(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=r?e:jE(e,t,n)}function FE(e){return!!e&&typeof e=="object"}function UE(e){return typeof e=="symbol"||FE(e)&&ME.call(e)==gE}function BE(e){return e==null?"":F1(e)}function $E(e,t,n){if(e=BE(e),e&&(n||t===void 0))return e.replace(yE,"");if(!e||!(t=F1(t)))return e;var r=E1(e),i=E1(t),o=AE(r,i),s=NE(r,i)+1;return zE(r,o,s).join("")}U1.exports=$E});var Pw=Te((SF,Nw)=>{"use strict";y();w();_();function tC(e,t){for(;e.length{y();w();_();(function(e,t){"use strict";var n="1.0.38",r="",i="?",o="function",s="undefined",l="object",u="string",c="major",a="model",p="name",f="type",d="vendor",h="version",S="architecture",k="console",m="mobile",g="tablet",v="smarttv",x="wearable",N="embedded",L=500,P="Amazon",D="Apple",V="ASUS",F="BlackBerry",G="Browser",Ge="Chrome",fi="Edge",O="Firefox",B="Google",U="Huawei",j="LG",H="Microsoft",q="Motorola",te="Opera",J="Samsung",ue="Sharp",le="Sony",pt="Xiaomi",Nt="Zebra",Gn="Facebook",sm="Chromium OS",lm="Mac OS",_x=function(ie,de){var ee={};for(var ge in ie)de[ge]&&de[ge].length%2===0?ee[ge]=de[ge].concat(ie[ge]):ee[ge]=ie[ge];return ee},tl=function(ie){for(var de={},ee=0;ee0?fe.length===2?typeof fe[1]==o?this[fe[0]]=fe[1].call(this,sn):this[fe[0]]=fe[1]:fe.length===3?typeof fe[1]===o&&!(fe[1].exec&&fe[1].test)?this[fe[0]]=sn?fe[1].call(this,sn,fe[2]):t:this[fe[0]]=sn?sn.replace(fe[1],fe[2]):t:fe.length===4&&(this[fe[0]]=sn?fe[3].call(this,sn.replace(fe[1],fe[2])):t):this[fe]=sn||t;ee+=2}},Du=function(ie,de){for(var ee in de)if(typeof de[ee]===l&&de[ee].length>0){for(var ge=0;ge2&&(Y[a]="iPad",Y[f]=g),Y},this.getEngine=function(){var Y={};return Y[p]=t,Y[h]=t,_o.call(Y,ge,on.engine),Y},this.getOS=function(){var Y={};return Y[p]=t,Y[h]=t,_o.call(Y,ge,on.os),fe&&!Y[p]&&Sn&&Sn.platform&&Sn.platform!="Unknown"&&(Y[p]=Sn.platform.replace(/chrome os/i,sm).replace(/macos/i,lm)),Y},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ge},this.setUA=function(Y){return ge=typeof Y===u&&Y.length>L?Lu(Y,L):Y,this},this.setUA(ge),this};St.VERSION=n,St.BROWSER=tl([p,h,c]),St.CPU=tl([S]),St.DEVICE=tl([a,d,f,k,m,v,g,x,N]),St.ENGINE=St.OS=tl([p,h]),typeof el!==s?(typeof Pu!==s&&Pu.exports&&(el=Pu.exports=St),el.UAParser=St):typeof define===o&&define.amd?define(function(){return St}):typeof e!==s&&(e.UAParser=St);var di=typeof e!==s&&(e.jQuery||e.Zepto);if(di&&!di.ua){var nl=new St;di.ua=nl.getResult(),di.ua.get=function(){return nl.getUA()},di.ua.set=function(ie){nl.setUA(ie);var de=nl.getResult();for(var ee in de)di.ua[ee]=de[ee]}}})(typeof window=="object"?window:el)});y();w();_();var gx=Z(Wg());y();w();_();y();w();_();var Hi=Z(Ze()),mr=(e,t,n)=>{let[,r]=(0,Hi.useState)({}),o=(0,Hi.useRef)({data:e,deps:n||[],ready:!1,_loading:{},lastRender:0,lastRenderCount:0,delayedRender:!1,delayedRenderTimeout:null,overRenderTimeout:null}).current;if((0,Hi.useEffect)(()=>{o.ready=!0,t&&t({init:!0,setDelayedRender(s){o.delayedRender=s}})},[]),o.ready===!1)o._loading={},o.data.render=()=>{if(o.ready){if(o.delayedRender){Date.now()-o.lastRender>100?(o.lastRender=Date.now(),r({})):(clearTimeout(o.delayedRenderTimeout),o.delayedRenderTimeout=setTimeout(o.data.render,50));return}if(Date.now()-o.lastRender<300?o.lastRenderCount++:o.lastRenderCount=0,o.lastRender=Date.now(),o.lastRenderCount>300){clearTimeout(o.overRenderTimeout),o.overRenderTimeout=setTimeout(()=>{o.lastRenderCount=0,o.lastRender=Date.now(),r({})},1e3),console.error(`local.render executed ${o.lastRenderCount} times in less than 300ms`);return}r({})}};else if(o.deps.length>0&&n){for(let[s,l]of Object.entries(n))if(o.deps[s]!==l){o.deps[s]=l,t&&setTimeout(()=>{t({init:!1,setDelayedRender(u){o.delayedRender=u}})});break}}return o.data};y();w();_();var Gg=(e,t)=>new Promise(async n=>{if(typeof e=="function"){let r=null;if(t&&(r=setTimeout(n,t)),await e()){clearTimeout(r),n();return}let i=0,o=setInterval(async()=>{await e()&&(r&&clearTimeout(r),clearInterval(o),n()),i>100&&clearInterval(o)},10)}else typeof e=="number"&&setTimeout(()=>{n()},e)});y();w();_();var zk=Z(Ze());y();w();_();var Pn=Z(Ze());y();w();_();function id(e){let t=new WeakMap;function n(r,i=[]){if(!(r!==null&&typeof r=="object"))return r;let o=t.get(r);if(o)return`[Circular *${o.join(".")}]`;t.set(r,i);let s=Array.isArray(r)?[]:{};for(let[l,u]of Object.entries(r))s[l]=n(u,[...i,l]);return t.delete(r),s}return n(e)}var od=(0,Pn.createContext)({global:{},render:()=>{}});var hr=(e,t)=>{let n=(0,Pn.useContext)(od),{global:r,render:i}=n;r[t]||(r[t]=e),(0,Pn.useEffect)(()=>{let s=null;return()=>{typeof s=="function"?s():s instanceof Promise&&s.then(l=>{typeof l=="function"&&l()})}},[]);let o=r[t];return o&&(o.render=s=>{s&&(r[t]=void 0),(0,Pn.startTransition)(i)}),o},gr=id;var HT=Z(Ze());y();w();_();y();w();_();y();w();_();var ld=Z(Ze()),Yg=Z(nd()),ey=Z(qg()),ty=Z(me()),ny=()=>{let e=typeof window=="object"?window:globalThis;e.React=ld.default,e.ReactDOM=Yg.default,e.JSXRuntime=ty.default,e.JSXDevRuntime=ey.default,e.Fragment=ld.default.Fragment};y();w();_();y();w();_();var Gk={data:""},iy=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Gk,oy=e=>{let t=iy(e),n=t.data;return t.data="",n},Zk=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Kk=/\/\*[^]*?\*\/| +/g,ry=/\n+/g,Vr=(e,t)=>{let n="",r="",i="";for(let o in e){let s=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+s+";":r+=o[1]=="f"?Vr(s,o):o+"{"+Vr(s,o[1]=="k"?"":t)+"}":typeof s=="object"?r+=Vr(s,t?t.replace(/([^,])+/g,l=>o.replace(/(^:.*)|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,l):l?l+" "+u:u)):o):s!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Vr.p?Vr.p(o,s):o+":"+s+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Ln={},sy=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+sy(e[n]);return t}return e},qk=(e,t,n,r,i)=>{let o=sy(e),s=Ln[o]||(Ln[o]=(u=>{let c=0,a=11;for(;c>>0;return"go"+a})(o));if(!Ln[s]){let u=o!==e?e:(c=>{let a,p,f=[{}];for(;a=Zk.exec(c.replace(Kk,""));)a[4]?f.shift():a[3]?(p=a[3].replace(ry," ").trim(),f.unshift(f[0][p]=f[0][p]||{})):f[0][a[1]]=a[2].replace(ry," ").trim();return f[0]})(e);Ln[s]=Vr(i?{["@keyframes "+s]:u}:u,n?"":"."+s)}let l=n&&Ln.g?Ln.g:null;return n&&(Ln.g=Ln[s]),((u,c,a,p)=>{p?c.data=c.data.replace(p,u):c.data.indexOf(u)===-1&&(c.data=a?u+c.data:c.data+u)})(Ln[s],t,r,l),s},Xk=(e,t,n)=>e.reduce((r,i,o)=>{let s=t[o];if(s&&s.call){let l=s(n),u=l&&l.props&&l.props.className||/^go/.test(l)&&l;s=u?"."+u:l&&typeof l=="object"?l.props?"":Vr(l,""):l===!1?"":l}return r+i+(s??"")},"");function Ra(e){let t=this||{},n=e.call?e(t.p):e;return qk(n.unshift?n.raw?Xk(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,iy(t.target),t.g,t.o,t.k)}var AT=Ra.bind({g:1}),NT=Ra.bind({k:1});var ly=async(e=!0)=>{let t=typeof window=="object"?window:globalThis;e&&await Gg(()=>t.__SRV_URL__),t.prasiContext={global:{},render(){}};let n=window.location,r=n.protocol.indexOf("http")===0?n.hostname:"localhost",i=n.protocol!="https:"||/localhost|127.0.0.1|0.0.0.0/.test(r)?"http":"https";if(t.__SRV_URL__){t.serverurl=t.__SRV_URL__;let s=new URL(t.serverurl);(s.hostname==="localhost"||s.hostname==="127.0.0.1")&&(s.hostname=n.hostname,s.pathname=s.pathname==="/"?"":s.pathname,t.serverurl=s.toString(),t.serverurl.endsWith("/")&&(t.serverurl=t.serverurl.substring(0,t.serverurl.length-1)))}let o=n.port;t.baseurl=i+"://"+r+(o?":"+o:"")+"/",t.basepath||(t.basepath="/"),t.css=Ra,t.extractCss=oy,t.pathname=n.pathname,t.cx=(...s)=>{let l=[];return s.filter(u=>u?(typeof u=="string"&&u.trim(),!0):!1).forEach(u=>{if(Array.isArray(u))for(let c of u)typeof c=="string"&&c.trim()&&l.push(c.trim());else l.push(u.trim())}),l.join(" ")},t.navigate=s=>{let l=s;if(typeof t.navigateOverride=="function"&&(l=t.navigateOverride(s),!l))return null;history.pushState({prevUrl:window.location.href},"",l),t.pathname=s,t.prasiContext&&t.prasiContext.render&&t.prasiContext.render()},typeof window=="object"&&window.addEventListener("popstate",()=>{let s=navigator.serviceWorker.controller;if(s&&s.postMessage({type:"add-cache",url:n.href}),t.prasiContext.popState){t.prasiContext.popState();return}if(t.preventPopRender){t.preventPopRender=!1;return}t.prasiContext&&t.prasiContext.render&&(t.pathname=n.pathname,t.prasiContext.render())})};y();w();_();var ad=window,z={root:null,url(...e){let t=e.map(r=>Array.isArray(r)?r.join(""):r).join(""),n=this.root.toString();return n.endsWith("/")&&(n=n.substring(0,n.length-1)),t.startsWith("/")?n+t:n+"/"+t},get pathname(){let e=location.pathname.substring(z.root.pathname.length);return e.startsWith("/")?e:`/${e}`},site:{id:ad._prasi?.site_id},init_local_effect:{},mode:"",route:{status:"init",pages:[],router:null},comp:{list:{},pending:{}},layout:{id:"",root:null,meta:null},cache:{urls:new Set},page:{id:"",url:"",root:null,meta:null,cache:{}}},ay=()=>{if(!z.root){let e=new URL(location.href);ad._prasi.basepath&&(e.pathname=ad._prasi.basepath),z.root=new URL(`${e.protocol}//${e.host}${e.pathname}`),z.root.pathname.endsWith("/")&&(z.root.pathname=z.root.pathname.substring(0,z.root.length-1))}};y();w();_();y();w();_();function cd(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function fd(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=cd(n);return(i,o)=>r.then(s=>o(s.transaction(t,i).objectStore(t)))}var ud;function uy(){return ud||(ud=fd("keyval-store","keyval")),ud}function fs(e,t=uy()){return t("readonly",n=>cd(n.get(e)))}function Wr(e,t,n=uy()){return n("readwrite",r=>(r.put(t,e),cd(r.transaction)))}var mx=Z(Ze());y();w();_();y();w();_();y();w();_();var cy=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Qk(e){return typeof e=="string"&&cy.test(e)}var dd=Qk;y();w();_();var Vi=Z(me()),fy=window,pd=({children:e,back:t})=>fy.ContentNotFound?(0,Vi.jsx)(fy.ContentNotFound,{}):(0,Vi.jsxs)("div",{className:"flex items-center justify-center w-full h-full fixed inset-0 flex-col",children:[(0,Vi.jsx)("div",{children:e}),(0,Vi.jsxs)("div",{className:"border mt-2 rounded-md p-2 cursor-pointer",onClick:t||(()=>{history.back()}),children:[" ","Go Back"]})]});y();w();_();var dy=Z(Ze());var Qe=Z(me()),md=window,ds=({children:e,className:t,show:n,backdrop:r,note:i,alt:o,pointer:s})=>{let l=mr({icon:(0,Qe.jsx)("div",{className:"px-4 py-1",children:"Loading..."}),value:.111,ival:null},()=>{});(0,dy.useEffect)(()=>(l.ival=setInterval(()=>{l.value+=.1333,l.value>=1.3&&(l.value=0),l.render()},200),md.loadingIcon&&(l.icon=(0,Qe.jsx)("img",{alt:"loading",src:md.loadingIcon,className:css` width: 42px; height: 42px; `}),l.render()),()=>{clearInterval(l.ival)}),[]);let u=md.ContentLoading;return console.log(),(0,Qe.jsxs)(Qe.Fragment,{children:[r!==!1&&(0,Qe.jsx)("div",{className:cx("flex items-center z-40 bg-white pointer-events-none","w-full h-full fixed transition-all duration-1000",typeof n<"u"?n?"opacity-50":"opacity-0":"opacity-50"),onContextMenuCapture:c=>{c.preventDefault()}}),e?(0,Qe.jsx)("div",{onContextMenuCapture:c=>{c.preventDefault()},className:cx("flex flex-1 items-center justify-center z-40 transition-all",t||(r!==!1?"w-full h-full fixed":""),typeof n<"u"?n?"":"hidden":""),children:(0,Qe.jsx)("div",{className:"flex items-center justify-center flex-col space-y-3 bg-white p-4 rounded-lg select-none",children:(0,Qe.jsx)("div",{className:"text-sm",children:e})})}):(0,Qe.jsx)("div",{className:cx("flex flex-1 items-center justify-center z-40 transition-all",s!==!0&&"pointer-events-none",t||(r!==!1?"w-full h-full fixed":""),typeof n<"u"?n?"":"hidden":""),children:u?(0,Qe.jsx)(u,{alt:o,note:i}):(0,Qe.jsxs)("div",{className:cx("w-1/6 flex flex-col items-center justify-center",css` diff --git a/app/web/src/nova/ed/logic/ed-site.ts b/app/web/src/nova/ed/logic/ed-site.ts index 485fb3fe..52b553ea 100644 --- a/app/web/src/nova/ed/logic/ed-site.ts +++ b/app/web/src/nova/ed/logic/ed-site.ts @@ -1,16 +1,15 @@ -import { waitUntil } from "web-utils"; +import { apiProxy } from "../../../base/load/api/api-proxy"; import { viLoadLegacy } from "../../vi/load/load-legacy"; import { viLoadSnapshot } from "../../vi/load/load-snapshot"; import { apiRef, apiUrl } from "../panel/popup/api/api-utils"; import { ESite, PG } from "./ed-global"; -import { apiProxy } from "../../../base/load/api/api-proxy"; export const loadSite = async (p: PG, site: ESite, note: string) => { p.site = site; const url = apiUrl(p); if (!apiRef[url]) apiRef[url] = apiProxy(url) as any; - const api = apiRef[apiUrl(p)]; + const api = apiRef[url]; try { const res = await api._deploy({ type: "db-ver", diff --git a/app/web/src/nova/ed/panel/popup/api/api-server.tsx b/app/web/src/nova/ed/panel/popup/api/api-server.tsx index 77e7358a..cce2bd1e 100644 --- a/app/web/src/nova/ed/panel/popup/api/api-server.tsx +++ b/app/web/src/nova/ed/panel/popup/api/api-server.tsx @@ -1,11 +1,8 @@ import { forwardRef } from "react"; -import { deepClone, useGlobal, useLocal } from "web-utils"; +import { useGlobal } from "web-utils"; import { Modal } from "../../../../../utils/ui/modal"; import { EDGlobal } from "../../../logic/ed-global"; -import { EdApiDB } from "./api-db"; -import { EdApiDeploy } from "./api-deploy"; -import { EdApiDomain } from "./api-domain"; -import { apiRef, apiUrl, checkAPI, dev, server } from "./api-utils"; +import { EdApiTab } from "./api-tab"; import trim from "lodash.trim"; export const EdPopApi = () => { @@ -38,228 +35,45 @@ export const EdApiServer = forwardRef< } >(({ popover }, ref) => { const p = useGlobal(EDGlobal, "EDITOR"); - const local = useLocal( - { - api_url: p.site.config.api_url, - status: "checking" as "online" | "error" | "offline" | "checking", - deployable: false, - db: { url: "" }, - oldDB: { url: "" }, - domains: [] as string[], - hasDB: false, - deploy: { - now: 0, - current: 0, - deploys: [] as number[], - }, - }, - () => { - try { - if (dev) { - const vdev = JSON.parse(localStorage.getItem("prasi-dev") || "{}"); - - if (vdev && Object.keys(vdev).length > 0) { - dev.url = vdev.url; - dev.enabled = vdev.enabled; - } - } - } catch (e) {} - check(); - } - ); - - const url = apiUrl(p); - - const check = async () => { - local.render(); - const res = await checkAPI(p); - if (typeof res === "object") { - local.db = res.db; - local.domains = res.domains; - local.oldDB = deepClone(res.db); - local.hasDB = res.hasDB; - local.status = "online"; - if (res.deploy) { - local.deploy = res.deploy; - } - local.deployable = res.deployable; - local.render(); - } else { - local.db = { url: "" }; - local.oldDB = { url: "" }; - local.domains = []; - local.hasDB = false; - local.status = res; - local.deployable = false; - local.deploy = { - now: 0, - current: 0, - deploys: [], - }; - local.render(); - } - }; - const update = async () => { - if (local.api_url !== p.site.config.api_url) { - server.status = "saving"; - p.render(); - p.site.config.api_url = trim(local.api_url, "/"); - await p.sync?.site.update(p.site.id, { - config: { api_url: local.api_url }, - }); - } - - if (local.hasDB && local.oldDB.url !== local.db.url) { - server.status = "saving"; - p.render(); - - await apiRef[apiUrl(p)]._deploy({ - type: "db-update", - id_site: p.site.id, - url: local.db.url, - }); - local.oldDB.url = local.db.url; - p.render(); - } - - if (server.status === "saving") { - await check(); - server.status = "ready"; - p.render(); - } - }; - popover.onClose = update; return (
-
-
Server URL:
- {url && ( -
- {local.status === "online" && ( -
ONLINE
- )} - {local.status === "offline" && ( -
OFFLINE
- )} - {local.status === "error" && ( -
SERVER ERROR
- )} - {local.status === "checking" && ( -
Checking...
- )} -
- )} - {!url && ( -
INVALID SERVER
- )} -
-
-
- { - local.api_url = e.currentTarget.value; - if ( - local.api_url.startsWith("http://") || - local.api_url.startsWith("https://") - ) { - if (local.api_url.length > 8) { - local.api_url = trim(local.api_url, "/"); - } - } - local.render(); - }} - onFocus={(e) => { - if (!e.currentTarget.value) { - local.api_url = `https://`; - local.render(); - } - }} - type="text" - className={cx( - "outline-none focus:border-blue-500 flex-1", - dev.enabled && "line-through opacity-30" - )} - onKeyDown={(e) => { - if (e.key === "Enter") { - e.currentTarget.blur(); - } - }} - onBlur={update} - placeholder="https://..." - /> -
-
-
-
{ - dev.enabled = !dev.enabled; - localStorage.setItem("prasi-dev", JSON.stringify(dev)); - local.render(); - check(); - }} - > - DEV{" "} - {dev.enabled && ON} - {!dev.enabled && OFF} -
+ { + popover.onClose = update; + }} + id_site={p.site.id} + api_url={p.site.config.api_url} + onUpdate={async ({ api_url }) => { + p.render(); + p.site.config.api_url = trim(api_url, "/"); + await p.sync?.site.update(p.site.id, { + config: { api_url: api_url }, + }); - { - dev.url = e.currentTarget.value; - localStorage.setItem("prasi-dev", JSON.stringify(dev)); - local.render(); - }} - onKeyDown={(e) => { - if (e.key === "Enter") { - e.currentTarget.blur(); - } - }} - onBlur={check} - /> -
- {local.status === "online" && ( - <> - {!local.deployable && !local.db && ( -
- This server is not deployable
- and do not have DB -
- )} - - )} - {local.hasDB && ( - - )} - {local.deployable && ( - <> - - - )} + // if (local.hasDB && local.oldDB.url !== local.db.url) { + // server.status = "saving"; + // p.render(); + + // await apiRef[apiUrl(p)]._deploy({ + // type: "db-update", + // id_site: p.site.id, + // url: local.db.url, + // }); + // local.oldDB.url = local.db.url; + // p.render(); + // } + + // if (server.status === "saving") { + // await check(); + // server.status = "ready"; + // p.render(); + // } + }} + />
); }); diff --git a/app/web/src/nova/ed/panel/popup/api/api-tab.tsx b/app/web/src/nova/ed/panel/popup/api/api-tab.tsx new file mode 100644 index 00000000..7f0a47dc --- /dev/null +++ b/app/web/src/nova/ed/panel/popup/api/api-tab.tsx @@ -0,0 +1,167 @@ +import trim from "lodash.trim"; +import { FC } from "react"; +import { deepClone, useLocal } from "web-utils"; +import { EdApiDB } from "./api-db"; +import { EdApiDeploy } from "./api-deploy"; +import { apiRef, checkAPI, dev, server } from "./api-utils"; + +export const EdApiTab: FC<{ + onRender: (fn: () => void) => void; + api_url: string; + id_site: string; + onUpdate: (arg: { api_url: string }) => {}; +}> = ({ onRender, api_url, id_site, onUpdate }) => { + const local = useLocal( + { + api_url, + status: "checking" as "online" | "error" | "offline" | "checking", + deployable: false, + db: { url: "" }, + oldDB: { url: "" }, + domains: [] as string[], + hasDB: false, + deploy: { + now: 0, + current: 0, + deploys: [] as number[], + }, + }, + () => { + try { + if (dev) { + const vdev = JSON.parse(localStorage.getItem("prasi-dev") || "{}"); + + if (vdev && Object.keys(vdev).length > 0) { + dev.url = vdev.url; + dev.enabled = vdev.enabled; + } + } + } catch (e) {} + check(); + } + ); + + const url = api_url; + + const check = async () => { + local.render(); + const res = await checkAPI(api_url, id_site); + if (typeof res === "object") { + local.db = res.db; + local.domains = res.domains; + local.oldDB = deepClone(res.db); + local.hasDB = res.hasDB; + local.status = "online"; + if (res.deploy) { + local.deploy = res.deploy; + } + local.deployable = res.deployable; + local.render(); + } else { + local.db = { url: "" }; + local.oldDB = { url: "" }; + local.domains = []; + local.hasDB = false; + local.status = res; + local.deployable = false; + local.deploy = { + now: 0, + current: 0, + deploys: [], + }; + local.render(); + } + }; + const update = async () => { + if (local.api_url !== api_url) { + server.status = "saving"; + onUpdate({ api_url: local.api_url }); + } + }; + + onRender(update); + + return ( + <> +
+
Server URL:
+ {url && ( +
+ {local.status === "online" && ( +
ONLINE
+ )} + {local.status === "offline" && ( +
OFFLINE
+ )} + {local.status === "error" && ( +
SERVER ERROR
+ )} + {local.status === "checking" && ( +
Checking...
+ )} +
+ )} + {!url && ( +
INVALID SERVER
+ )} +
+
+
+ { + local.api_url = e.currentTarget.value; + if ( + local.api_url.startsWith("http://") || + local.api_url.startsWith("https://") + ) { + if (local.api_url.length > 8) { + local.api_url = trim(local.api_url, "/"); + } + } + local.render(); + }} + onFocus={(e) => { + if (!e.currentTarget.value) { + local.api_url = `https://`; + local.render(); + } + }} + type="text" + className={cx( + "outline-none focus:border-blue-500 flex-1", + dev.enabled && "line-through opacity-30" + )} + onKeyDown={(e) => { + if (e.key === "Enter") { + e.currentTarget.blur(); + } + }} + onBlur={update} + placeholder="https://..." + /> +
+
+ + {local.status === "online" && ( + <> + {!local.deployable && !local.db && ( +
+ This server is not deployable
+ and do not have DB +
+ )} + + )} + {local.hasDB && ( + + )} + {local.deployable && ( + <> + + + )} + + ); +}; diff --git a/app/web/src/nova/ed/panel/popup/api/api-utils.ts b/app/web/src/nova/ed/panel/popup/api/api-utils.ts index 43e614a0..0682d3df 100644 --- a/app/web/src/nova/ed/panel/popup/api/api-utils.ts +++ b/app/web/src/nova/ed/panel/popup/api/api-utils.ts @@ -20,36 +20,11 @@ export const server = { | "restarting", }; -export const apiUrl = function (p: PG): string { - if (dev.enabled) { - return dev.url; - } - - if (!dev.lastURL) { - dev.lastURL = { valid: false, url: "" }; - } - - if (!dev.lastURL.valid || dev.lastURL.url !== p.site.config.api_url) { - try { - const url = new URL(p.site.config.api_url); - if (url && url.hostname && url.protocol.startsWith("http")) { - dev.lastURL.valid = true; - return p.site.config.api_url; - } - dev.lastURL.valid = false; - } catch (e) { - dev.lastURL.valid = false; - } - } - - if (dev.lastURL.valid) return p.site.config.api_url; - - return ""; +export const apiUrl = (p: PG) => { + return p.site?.config?.api_url || ""; }; -export const checkAPI = async (p: PG) => { - const url = apiUrl(p); - +export const checkAPI = async (url: string, id_site: string) => { if (!url) return "offline"; try { @@ -62,7 +37,7 @@ export const checkAPI = async (p: PG) => { } else { let res = await capi._deploy({ type: "check", - id_site: p.site.id, + id_site, }); if (!res) {