@getvision/core 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -14
- package/dist/server/websocket.d.ts +0 -6
- package/dist/server/websocket.d.ts.map +1 -1
- package/dist/server/websocket.js +3 -117
- package/package.json +20 -8
- package/dist/__tests__/core.test.d.ts +0 -2
- package/dist/__tests__/core.test.d.ts.map +0 -1
- package/dist/__tests__/core.test.js +0 -88
- package/dist/__tests__/tracing.test.d.ts +0 -2
- package/dist/__tests__/tracing.test.d.ts.map +0 -1
- package/dist/__tests__/tracing.test.js +0 -108
- package/dist/ui/assets/index-5t7c-m29.js +0 -243
- package/dist/ui/assets/index-9ueE5-_1.js +0 -228
- package/dist/ui/assets/index-B2zDhd4y.js +0 -228
- package/dist/ui/assets/index-B6PCTRWI.js +0 -228
- package/dist/ui/assets/index-BAqOyMpS.js +0 -228
- package/dist/ui/assets/index-BBPymjIY.css +0 -1
- package/dist/ui/assets/index-BFZ9LDLI.js +0 -228
- package/dist/ui/assets/index-BK3A49yO.js +0 -243
- package/dist/ui/assets/index-BVC9j-JL.css +0 -1
- package/dist/ui/assets/index-BWzGTXsJ.js +0 -228
- package/dist/ui/assets/index-BZaQlF2p.js +0 -228
- package/dist/ui/assets/index-BbYLBWtj.css +0 -1
- package/dist/ui/assets/index-Bgf_12ju.js +0 -243
- package/dist/ui/assets/index-Bhxve5KF.css +0 -1
- package/dist/ui/assets/index-Bj-CWu-L.js +0 -228
- package/dist/ui/assets/index-BlJwGFyg.js +0 -243
- package/dist/ui/assets/index-BnD39P39.js +0 -228
- package/dist/ui/assets/index-C9X3l8Qf.js +0 -228
- package/dist/ui/assets/index-C9wDB-pp.js +0 -228
- package/dist/ui/assets/index-CAONCZtM.js +0 -243
- package/dist/ui/assets/index-CCtH3nj-.js +0 -243
- package/dist/ui/assets/index-CKzeeZJS.js +0 -228
- package/dist/ui/assets/index-Cctg6X14.js +0 -243
- package/dist/ui/assets/index-Ch3Kvj5x.js +0 -228
- package/dist/ui/assets/index-CkV-qXIH.css +0 -1
- package/dist/ui/assets/index-Cl2VKig8.js +0 -228
- package/dist/ui/assets/index-CoKjAtkW.css +0 -1
- package/dist/ui/assets/index-D4C4VyHp.css +0 -1
- package/dist/ui/assets/index-DHQw82rB.js +0 -228
- package/dist/ui/assets/index-DIfw1ZVL.css +0 -1
- package/dist/ui/assets/index-DJJX2zqa.js +0 -228
- package/dist/ui/assets/index-D_D2XkaS.js +0 -228
- package/dist/ui/assets/index-De-GZ9-w.js +0 -228
- package/dist/ui/assets/index-DoWtvKFs.js +0 -228
- package/dist/ui/assets/index-Dyseuj-Z.js +0 -223
- package/dist/ui/assets/index-ErxJEkTC.js +0 -243
- package/dist/ui/assets/index-HIUv_thh.css +0 -1
- package/dist/ui/assets/index-HhqjfP8c.js +0 -228
- package/dist/ui/assets/index-eUFXMYOK.js +0 -221
- package/dist/ui/assets/index-jabSppNC.js +0 -228
- package/dist/ui/assets/index-t88G2D4Q.js +0 -228
- package/dist/ui/assets/index-tl7-KOr9.css +0 -1
- package/dist/ui/assets/index-uyOJY0cv.js +0 -228
- package/dist/ui/assets/index-wmKPAJzR.js +0 -243
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
var L1=Object.defineProperty;var gp=l=>{throw TypeError(l)};var j1=(l,r,i)=>r in l?L1(l,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):l[r]=i;var Xn=(l,r,i)=>j1(l,typeof r!="symbol"?r+"":r,i),af=(l,r,i)=>r.has(l)||gp("Cannot "+i);var C=(l,r,i)=>(af(l,r,"read from private field"),i?i.call(l):r.get(l)),se=(l,r,i)=>r.has(l)?gp("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(l):r.set(l,i),ee=(l,r,i,s)=>(af(l,r,"write to private field"),s?s.call(l,i):r.set(l,i),i),ve=(l,r,i)=>(af(l,r,"access private method"),i);var du=(l,r,i,s)=>({set _(c){ee(l,r,c,i)},get _(){return C(l,r,s)}});function q1(l,r){for(var i=0;i<r.length;i++){const s=r[i];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in l)){const f=Object.getOwnPropertyDescriptor(s,c);f&&Object.defineProperty(l,c,f.get?f:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(c){if(c.ep)return;c.ep=!0;const f=i(c);fetch(c.href,f)}})();function xv(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var rf={exports:{}},Ni={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var pp;function H1(){if(pp)return Ni;pp=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(s,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var p in c)p!=="key"&&(f[p]=c[p])}else f=c;return c=f.ref,{$$typeof:l,type:s,key:d,ref:c!==void 0?c:null,props:f}}return Ni.Fragment=r,Ni.jsx=i,Ni.jsxs=i,Ni}var vp;function B1(){return vp||(vp=1,rf.exports=H1()),rf.exports}var Gf=B1();const Zt=Gf.Fragment,m=Gf.jsx,E=Gf.jsxs;var sf={exports:{}},de={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var yp;function k1(){if(yp)return de;yp=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),N=Symbol.iterator;function O(w){return w===null||typeof w!="object"?null:(w=N&&w[N]||w["@@iterator"],typeof w=="function"?w:null)}var Y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,R={};function L(w,V,I){this.props=w,this.context=V,this.refs=R,this.updater=I||Y}L.prototype.isReactComponent={},L.prototype.setState=function(w,V){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,V,"setState")},L.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function H(){}H.prototype=L.prototype;function j(w,V,I){this.props=w,this.context=V,this.refs=R,this.updater=I||Y}var Q=j.prototype=new H;Q.constructor=j,M(Q,L.prototype),Q.isPureReactComponent=!0;var B=Array.isArray;function k(){}var K={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function P(w,V,I){var te=I.ref;return{$$typeof:l,type:w,key:V,ref:te!==void 0?te:null,props:I}}function F(w,V){return P(w.type,V,w.props)}function oe(w){return typeof w=="object"&&w!==null&&w.$$typeof===l}function ie(w){var V={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(I){return V[I]})}var qe=/\/+/g;function Ye(w,V){return typeof w=="object"&&w!==null&&w.key!=null?ie(""+w.key):V.toString(36)}function le(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(k,k):(w.status="pending",w.then(function(V){w.status==="pending"&&(w.status="fulfilled",w.value=V)},function(V){w.status==="pending"&&(w.status="rejected",w.reason=V)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function D(w,V,I,te,fe){var ye=typeof w;(ye==="undefined"||ye==="boolean")&&(w=null);var Oe=!1;if(w===null)Oe=!0;else switch(ye){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(w.$$typeof){case l:case r:Oe=!0;break;case x:return Oe=w._init,D(Oe(w._payload),V,I,te,fe)}}if(Oe)return fe=fe(w),Oe=te===""?"."+Ye(w,0):te,B(fe)?(I="",Oe!=null&&(I=Oe.replace(qe,"$&/")+"/"),D(fe,V,I,"",function(Or){return Or})):fe!=null&&(oe(fe)&&(fe=F(fe,I+(fe.key==null||w&&w.key===fe.key?"":(""+fe.key).replace(qe,"$&/")+"/")+Oe)),V.push(fe)),1;Oe=0;var vt=te===""?".":te+":";if(B(w))for(var Fe=0;Fe<w.length;Fe++)te=w[Fe],ye=vt+Ye(te,Fe),Oe+=D(te,V,I,ye,fe);else if(Fe=O(w),typeof Fe=="function")for(w=Fe.call(w),Fe=0;!(te=w.next()).done;)te=te.value,ye=vt+Ye(te,Fe++),Oe+=D(te,V,I,ye,fe);else if(ye==="object"){if(typeof w.then=="function")return D(le(w),V,I,te,fe);throw V=String(w),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function $(w,V,I){if(w==null)return w;var te=[],fe=0;return D(w,te,"","",function(ye){return V.call(I,ye,fe++)}),te}function re(w){if(w._status===-1){var V=w._result;V=V(),V.then(function(I){(w._status===0||w._status===-1)&&(w._status=1,w._result=I)},function(I){(w._status===0||w._status===-1)&&(w._status=2,w._result=I)}),w._status===-1&&(w._status=0,w._result=V)}if(w._status===1)return w._result.default;throw w._result}var pe=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},Te={map:$,forEach:function(w,V,I){$(w,function(){V.apply(this,arguments)},I)},count:function(w){var V=0;return $(w,function(){V++}),V},toArray:function(w){return $(w,function(V){return V})||[]},only:function(w){if(!oe(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return de.Activity=S,de.Children=Te,de.Component=L,de.Fragment=i,de.Profiler=c,de.PureComponent=j,de.StrictMode=s,de.Suspense=v,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,de.__COMPILER_RUNTIME={__proto__:null,c:function(w){return K.H.useMemoCache(w)}},de.cache=function(w){return function(){return w.apply(null,arguments)}},de.cacheSignal=function(){return null},de.cloneElement=function(w,V,I){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var te=M({},w.props),fe=w.key;if(V!=null)for(ye in V.key!==void 0&&(fe=""+V.key),V)!W.call(V,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&V.ref===void 0||(te[ye]=V[ye]);var ye=arguments.length-2;if(ye===1)te.children=I;else if(1<ye){for(var Oe=Array(ye),vt=0;vt<ye;vt++)Oe[vt]=arguments[vt+2];te.children=Oe}return P(w.type,fe,te)},de.createContext=function(w){return w={$$typeof:d,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:f,_context:w},w},de.createElement=function(w,V,I){var te,fe={},ye=null;if(V!=null)for(te in V.key!==void 0&&(ye=""+V.key),V)W.call(V,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(fe[te]=V[te]);var Oe=arguments.length-2;if(Oe===1)fe.children=I;else if(1<Oe){for(var vt=Array(Oe),Fe=0;Fe<Oe;Fe++)vt[Fe]=arguments[Fe+2];fe.children=vt}if(w&&w.defaultProps)for(te in Oe=w.defaultProps,Oe)fe[te]===void 0&&(fe[te]=Oe[te]);return P(w,ye,fe)},de.createRef=function(){return{current:null}},de.forwardRef=function(w){return{$$typeof:p,render:w}},de.isValidElement=oe,de.lazy=function(w){return{$$typeof:x,_payload:{_status:-1,_result:w},_init:re}},de.memo=function(w,V){return{$$typeof:g,type:w,compare:V===void 0?null:V}},de.startTransition=function(w){var V=K.T,I={};K.T=I;try{var te=w(),fe=K.S;fe!==null&&fe(I,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(k,pe)}catch(ye){pe(ye)}finally{V!==null&&I.types!==null&&(V.types=I.types),K.T=V}},de.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},de.use=function(w){return K.H.use(w)},de.useActionState=function(w,V,I){return K.H.useActionState(w,V,I)},de.useCallback=function(w,V){return K.H.useCallback(w,V)},de.useContext=function(w){return K.H.useContext(w)},de.useDebugValue=function(){},de.useDeferredValue=function(w,V){return K.H.useDeferredValue(w,V)},de.useEffect=function(w,V){return K.H.useEffect(w,V)},de.useEffectEvent=function(w){return K.H.useEffectEvent(w)},de.useId=function(){return K.H.useId()},de.useImperativeHandle=function(w,V,I){return K.H.useImperativeHandle(w,V,I)},de.useInsertionEffect=function(w,V){return K.H.useInsertionEffect(w,V)},de.useLayoutEffect=function(w,V){return K.H.useLayoutEffect(w,V)},de.useMemo=function(w,V){return K.H.useMemo(w,V)},de.useOptimistic=function(w,V){return K.H.useOptimistic(w,V)},de.useReducer=function(w,V,I){return K.H.useReducer(w,V,I)},de.useRef=function(w){return K.H.useRef(w)},de.useState=function(w){return K.H.useState(w)},de.useSyncExternalStore=function(w,V,I){return K.H.useSyncExternalStore(w,V,I)},de.useTransition=function(){return K.H.useTransition()},de.version="19.2.0",de}var bp;function Yf(){return bp||(bp=1,sf.exports=k1()),sf.exports}var y=Yf();const Nt=xv(y),Sv=q1({__proto__:null,default:Nt},[y]);var uf={exports:{}},wi={},of={exports:{}},cf={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var xp;function Q1(){return xp||(xp=1,(function(l){function r(D,$){var re=D.length;D.push($);e:for(;0<re;){var pe=re-1>>>1,Te=D[pe];if(0<c(Te,$))D[pe]=$,D[re]=Te,re=pe;else break e}}function i(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var $=D[0],re=D.pop();if(re!==$){D[0]=re;e:for(var pe=0,Te=D.length,w=Te>>>1;pe<w;){var V=2*(pe+1)-1,I=D[V],te=V+1,fe=D[te];if(0>c(I,re))te<Te&&0>c(fe,I)?(D[pe]=fe,D[te]=re,pe=te):(D[pe]=I,D[V]=re,pe=V);else if(te<Te&&0>c(fe,re))D[pe]=fe,D[te]=re,pe=te;else break e}}return $}function c(D,$){var re=D.sortIndex-$.sortIndex;return re!==0?re:D.id-$.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var d=Date,p=d.now();l.unstable_now=function(){return d.now()-p}}var v=[],g=[],x=1,S=null,N=3,O=!1,Y=!1,M=!1,R=!1,L=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function Q(D){for(var $=i(g);$!==null;){if($.callback===null)s(g);else if($.startTime<=D)s(g),$.sortIndex=$.expirationTime,r(v,$);else break;$=i(g)}}function B(D){if(M=!1,Q(D),!Y)if(i(v)!==null)Y=!0,k||(k=!0,ie());else{var $=i(g);$!==null&&le(B,$.startTime-D)}}var k=!1,K=-1,W=5,P=-1;function F(){return R?!0:!(l.unstable_now()-P<W)}function oe(){if(R=!1,k){var D=l.unstable_now();P=D;var $=!0;try{e:{Y=!1,M&&(M=!1,H(K),K=-1),O=!0;var re=N;try{t:{for(Q(D),S=i(v);S!==null&&!(S.expirationTime>D&&F());){var pe=S.callback;if(typeof pe=="function"){S.callback=null,N=S.priorityLevel;var Te=pe(S.expirationTime<=D);if(D=l.unstable_now(),typeof Te=="function"){S.callback=Te,Q(D),$=!0;break t}S===i(v)&&s(v),Q(D)}else s(v);S=i(v)}if(S!==null)$=!0;else{var w=i(g);w!==null&&le(B,w.startTime-D),$=!1}}break e}finally{S=null,N=re,O=!1}$=void 0}}finally{$?ie():k=!1}}}var ie;if(typeof j=="function")ie=function(){j(oe)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,Ye=qe.port2;qe.port1.onmessage=oe,ie=function(){Ye.postMessage(null)}}else ie=function(){L(oe,0)};function le(D,$){K=L(function(){D(l.unstable_now())},$)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(D){D.callback=null},l.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<D?Math.floor(1e3/D):5},l.unstable_getCurrentPriorityLevel=function(){return N},l.unstable_next=function(D){switch(N){case 1:case 2:case 3:var $=3;break;default:$=N}var re=N;N=$;try{return D()}finally{N=re}},l.unstable_requestPaint=function(){R=!0},l.unstable_runWithPriority=function(D,$){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var re=N;N=D;try{return $()}finally{N=re}},l.unstable_scheduleCallback=function(D,$,re){var pe=l.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?pe+re:pe):re=pe,D){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=re+Te,D={id:x++,callback:$,priorityLevel:D,startTime:re,expirationTime:Te,sortIndex:-1},re>pe?(D.sortIndex=re,r(g,D),i(v)===null&&D===i(g)&&(M?(H(K),K=-1):M=!0,le(B,re-pe))):(D.sortIndex=Te,r(v,D),Y||O||(Y=!0,k||(k=!0,ie()))),D},l.unstable_shouldYield=F,l.unstable_wrapCallback=function(D){var $=N;return function(){var re=N;N=$;try{return D.apply(this,arguments)}finally{N=re}}}})(cf)),cf}var Sp;function G1(){return Sp||(Sp=1,of.exports=Q1()),of.exports}var ff={exports:{}},gt={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Np;function Y1(){if(Np)return gt;Np=1;var l=Yf();function r(v){var g="https://react.dev/errors/"+v;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+v+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(v,g,x){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:v,containerInfo:g,implementation:x}}var d=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(v,g){if(v==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,gt.createPortal=function(v,g){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return f(v,g,null,x)},gt.flushSync=function(v){var g=d.T,x=s.p;try{if(d.T=null,s.p=2,v)return v()}finally{d.T=g,s.p=x,s.d.f()}},gt.preconnect=function(v,g){typeof v=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(v,g))},gt.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},gt.preinit=function(v,g){if(typeof v=="string"&&g&&typeof g.as=="string"){var x=g.as,S=p(x,g.crossOrigin),N=typeof g.integrity=="string"?g.integrity:void 0,O=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?s.d.S(v,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:N,fetchPriority:O}):x==="script"&&s.d.X(v,{crossOrigin:S,integrity:N,fetchPriority:O,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},gt.preinitModule=function(v,g){if(typeof v=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var x=p(g.as,g.crossOrigin);s.d.M(v,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(v)},gt.preload=function(v,g){if(typeof v=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var x=g.as,S=p(x,g.crossOrigin);s.d.L(v,x,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},gt.preloadModule=function(v,g){if(typeof v=="string")if(g){var x=p(g.as,g.crossOrigin);s.d.m(v,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(v)},gt.requestFormReset=function(v){s.d.r(v)},gt.unstable_batchedUpdates=function(v,g){return v(g)},gt.useFormState=function(v,g,x){return d.H.useFormState(v,g,x)},gt.useFormStatus=function(){return d.H.useHostTransitionStatus()},gt.version="19.2.0",gt}var wp;function Nv(){if(wp)return ff.exports;wp=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),ff.exports=Y1(),ff.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var Ep;function V1(){if(Ep)return wi;Ep=1;var l=G1(),r=Yf(),i=Nv();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(f(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,a=t;;){var u=n.return;if(u===null)break;var o=u.alternate;if(o===null){if(a=u.return,a!==null){n=a;continue}break}if(u.child===o.child){for(o=u.child;o;){if(o===n)return v(u),e;if(o===a)return v(u),t;o=o.sibling}throw Error(s(188))}if(n.return!==a.return)n=u,a=o;else{for(var h=!1,b=u.child;b;){if(b===n){h=!0,n=u,a=o;break}if(b===a){h=!0,a=u,n=o;break}b=b.sibling}if(!h){for(b=o.child;b;){if(b===n){h=!0,n=o,a=u;break}if(b===a){h=!0,a=o,n=u;break}b=b.sibling}if(!h)throw Error(s(189))}}if(n.alternate!==a)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,N=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),Y=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),j=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=oe&&e[oe]||e["@@iterator"],typeof e=="function"?e:null)}var qe=Symbol.for("react.client.reference");function Ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===qe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case L:return"Profiler";case R:return"StrictMode";case B:return"Suspense";case k:return"SuspenseList";case P:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Y:return"Portal";case j:return e.displayName||"Context";case H:return(e._context.displayName||"Context")+".Consumer";case Q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:Ye(e.type)||"Memo";case W:t=e._payload,e=e._init;try{return Ye(e(t))}catch{}}return null}var le=Array.isArray,D=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},pe=[],Te=-1;function w(e){return{current:e}}function V(e){0>Te||(e.current=pe[Te],pe[Te]=null,Te--)}function I(e,t){Te++,pe[Te]=e.current,e.current=t}var te=w(null),fe=w(null),ye=w(null),Oe=w(null);function vt(e,t){switch(I(ye,t),I(fe,e),I(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hg(t),e=Bg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(te),I(te,e)}function Fe(){V(te),V(fe),V(ye)}function Or(e){e.memoizedState!==null&&I(Oe,e);var t=te.current,n=Bg(t,e.type);t!==n&&(I(fe,e),I(te,n))}function Ji(e){fe.current===e&&(V(te),V(fe)),Oe.current===e&&(V(Oe),yi._currentValue=re)}var Bu,md;function Gl(e){if(Bu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Bu=t&&t[1]||"",md=-1<n.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Bu+e+md}var ku=!1;function Qu(e,t){if(!e||ku)return"";ku=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(G){var q=G}Reflect.construct(e,[],J)}else{try{J.call()}catch(G){q=G}e.call(J.prototype)}}else{try{throw Error()}catch(G){q=G}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(G){if(G&&q&&typeof G.stack=="string")return[G.stack,q.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),h=o[0],b=o[1];if(h&&b){var T=h.split(`
|
|
44
|
-
`),U=b.split(`
|
|
45
|
-
`);for(u=a=0;a<T.length&&!T[a].includes("DetermineComponentFrameRoot");)a++;for(;u<U.length&&!U[u].includes("DetermineComponentFrameRoot");)u++;if(a===T.length||u===U.length)for(a=T.length-1,u=U.length-1;1<=a&&0<=u&&T[a]!==U[u];)u--;for(;1<=a&&0<=u;a--,u--)if(T[a]!==U[u]){if(a!==1||u!==1)do if(a--,u--,0>u||T[a]!==U[u]){var X=`
|
|
46
|
-
`+T[a].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=a&&0<=u);break}}}finally{ku=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Gl(n):""}function d0(e,t){switch(e.tag){case 26:case 27:case 5:return Gl(e.type);case 16:return Gl("Lazy");case 13:return e.child!==t&&t!==null?Gl("Suspense Fallback"):Gl("Suspense");case 19:return Gl("SuspenseList");case 0:case 15:return Qu(e.type,!1);case 11:return Qu(e.type.render,!1);case 1:return Qu(e.type,!0);case 31:return Gl("Activity");default:return""}}function gd(e){try{var t="",n=null;do t+=d0(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
-
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var Gu=Object.prototype.hasOwnProperty,Yu=l.unstable_scheduleCallback,Vu=l.unstable_cancelCallback,h0=l.unstable_shouldYield,m0=l.unstable_requestPaint,jt=l.unstable_now,g0=l.unstable_getCurrentPriorityLevel,pd=l.unstable_ImmediatePriority,vd=l.unstable_UserBlockingPriority,Fi=l.unstable_NormalPriority,p0=l.unstable_LowPriority,yd=l.unstable_IdlePriority,v0=l.log,y0=l.unstable_setDisableYieldValue,Mr=null,qt=null;function tl(e){if(typeof v0=="function"&&y0(e),qt&&typeof qt.setStrictMode=="function")try{qt.setStrictMode(Mr,e)}catch{}}var Ht=Math.clz32?Math.clz32:S0,b0=Math.log,x0=Math.LN2;function S0(e){return e>>>=0,e===0?32:31-(b0(e)/x0|0)|0}var $i=256,Wi=262144,Pi=4194304;function Yl(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ii(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var u=0,o=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~o,a!==0?u=Yl(a):(h&=b,h!==0?u=Yl(h):n||(n=b&~e,n!==0&&(u=Yl(n))))):(b=a&~o,b!==0?u=Yl(b):h!==0?u=Yl(h):n||(n=a&~e,n!==0&&(u=Yl(n)))),u===0?0:t!==0&&t!==u&&(t&o)===0&&(o=u&-u,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:u}function zr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function N0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bd(){var e=Pi;return Pi<<=1,(Pi&62914560)===0&&(Pi=4194304),e}function Xu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Dr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function w0(e,t,n,a,u,o){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var b=e.entanglements,T=e.expirationTimes,U=e.hiddenUpdates;for(n=h&~n;0<n;){var X=31-Ht(n),J=1<<X;b[X]=0,T[X]=-1;var q=U[X];if(q!==null)for(U[X]=null,X=0;X<q.length;X++){var G=q[X];G!==null&&(G.lane&=-536870913)}n&=~J}a!==0&&xd(e,a,0),o!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=o&~(h&~t))}function xd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ht(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Sd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Ht(n),u=1<<a;u&t|e[a]&t&&(e[a]|=t),n&=~u}}function Nd(e,t){var n=t&-t;return n=(n&42)!==0?1:Ku(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ku(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Zu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function wd(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:up(e.type))}function Ed(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}var nl=Math.random().toString(36).slice(2),st="__reactFiber$"+nl,Ct="__reactProps$"+nl,xa="__reactContainer$"+nl,Ju="__reactEvents$"+nl,E0="__reactListeners$"+nl,T0="__reactHandles$"+nl,Td="__reactResources$"+nl,_r="__reactMarker$"+nl;function Fu(e){delete e[st],delete e[Ct],delete e[Ju],delete e[E0],delete e[T0]}function Sa(e){var t=e[st];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xa]||n[st]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Kg(e);e!==null;){if(n=e[st])return n;e=Kg(e)}return t}e=n,n=e.parentNode}return null}function Na(e){if(e=e[st]||e[xa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ur(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function wa(e){var t=e[Td];return t||(t=e[Td]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[_r]=!0}var Cd=new Set,Ad={};function Vl(e,t){Ea(e,t),Ea(e+"Capture",t)}function Ea(e,t){for(Ad[e]=t,e=0;e<t.length;e++)Cd.add(t[e])}var C0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Rd={},Od={};function A0(e){return Gu.call(Od,e)?!0:Gu.call(Rd,e)?!1:C0.test(e)?Od[e]=!0:(Rd[e]=!0,!1)}function es(e,t,n){if(A0(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ts(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function An(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Md(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function R0(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(h){n=""+h,o.call(this,h)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $u(e){if(!e._valueTracker){var t=Md(e)?"checked":"value";e._valueTracker=R0(e,t,""+e[t])}}function zd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Md(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function ns(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}}var O0=/[\n"\\]/g;function $t(e){return e.replace(O0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Wu(e,t,n,a,u,o,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ft(t)):e.value!==""+Ft(t)&&(e.value=""+Ft(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Pu(e,h,Ft(t)):n!=null?Pu(e,h,Ft(n)):a!=null&&e.removeAttribute("value"),u==null&&o!=null&&(e.defaultChecked=!!o),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Ft(b):e.removeAttribute("name")}function Dd(e,t,n,a,u,o,h,b){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){$u(e);return}n=n!=null?""+Ft(n):"",t=t!=null?""+Ft(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),$u(e)}function Pu(e,t,n){t==="number"&&ns(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ta(e,t,n,a){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Ft(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,a&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function _d(e,t,n){if(t!=null&&(t=""+Ft(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Ft(n):""}function Ud(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(s(92));if(le(a)){if(1<a.length)throw Error(s(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Ft(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),$u(e)}function Ca(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var M0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ld(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||M0.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function jd(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var u in t)a=t[u],t.hasOwnProperty(u)&&n[u]!==a&&Ld(e,u,a)}else for(var o in t)t.hasOwnProperty(o)&&Ld(e,o,t[o])}function Iu(e){if(e.indexOf("-")===-1)return!1;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 z0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),D0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ls(e){return D0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Rn(){}var eo=null;function to(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Aa=null,Ra=null;function qd(e){var t=Na(e);if(t&&(e=t.stateNode)){var n=e[Ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(Wu(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+$t(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var u=a[Ct]||null;if(!u)throw Error(s(90));Wu(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&zd(a)}break e;case"textarea":_d(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ta(e,!!n.multiple,t,!1)}}}var no=!1;function Hd(e,t,n){if(no)return e(t,n);no=!0;try{var a=e(t);return a}finally{if(no=!1,(Aa!==null||Ra!==null)&&(Vs(),Aa&&(t=Aa,e=Ra,Ra=Aa=null,qd(t),e)))for(t=0;t<e.length;t++)qd(e[t])}}function Lr(e,t){var n=e.stateNode;if(n===null)return null;var a=n[Ct]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var On=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lo=!1;if(On)try{var jr={};Object.defineProperty(jr,"passive",{get:function(){lo=!0}}),window.addEventListener("test",jr,jr),window.removeEventListener("test",jr,jr)}catch{lo=!1}var ll=null,ao=null,as=null;function Bd(){if(as)return as;var e,t=ao,n=t.length,a,u="value"in ll?ll.value:ll.textContent,o=u.length;for(e=0;e<n&&t[e]===u[e];e++);var h=n-e;for(a=1;a<=h&&t[n-a]===u[o-a];a++);return as=u.slice(e,1<a?1-a:void 0)}function rs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function is(){return!0}function kd(){return!1}function At(e){function t(n,a,u,o,h){this._reactName=n,this._targetInst=u,this.type=a,this.nativeEvent=o,this.target=h,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(n=e[b],this[b]=n?n(o):o[b]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?is:kd,this.isPropagationStopped=kd,this}return S(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=is)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=is)},persist:function(){},isPersistent:is}),t}var Xl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ss=At(Xl),qr=S({},Xl,{view:0,detail:0}),_0=At(qr),ro,io,Hr,us=S({},qr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Hr&&(Hr&&e.type==="mousemove"?(ro=e.screenX-Hr.screenX,io=e.screenY-Hr.screenY):io=ro=0,Hr=e),ro)},movementY:function(e){return"movementY"in e?e.movementY:io}}),Qd=At(us),U0=S({},us,{dataTransfer:0}),L0=At(U0),j0=S({},qr,{relatedTarget:0}),so=At(j0),q0=S({},Xl,{animationName:0,elapsedTime:0,pseudoElement:0}),H0=At(q0),B0=S({},Xl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),k0=At(B0),Q0=S({},Xl,{data:0}),Gd=At(Q0),G0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Y0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},V0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function X0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=V0[e])?!!t[e]:!1}function uo(){return X0}var K0=S({},qr,{key:function(e){if(e.key){var t=G0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=rs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Y0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uo,charCode:function(e){return e.type==="keypress"?rs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?rs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Z0=At(K0),J0=S({},us,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yd=At(J0),F0=S({},qr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uo}),$0=At(F0),W0=S({},Xl,{propertyName:0,elapsedTime:0,pseudoElement:0}),P0=At(W0),I0=S({},us,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),eb=At(I0),tb=S({},Xl,{newState:0,oldState:0}),nb=At(tb),lb=[9,13,27,32],oo=On&&"CompositionEvent"in window,Br=null;On&&"documentMode"in document&&(Br=document.documentMode);var ab=On&&"TextEvent"in window&&!Br,Vd=On&&(!oo||Br&&8<Br&&11>=Br),Xd=" ",Kd=!1;function Zd(e,t){switch(e){case"keyup":return lb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Oa=!1;function rb(e,t){switch(e){case"compositionend":return Jd(t);case"keypress":return t.which!==32?null:(Kd=!0,Xd);case"textInput":return e=t.data,e===Xd&&Kd?null:e;default:return null}}function ib(e,t){if(Oa)return e==="compositionend"||!oo&&Zd(e,t)?(e=Bd(),as=ao=ll=null,Oa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vd&&t.locale!=="ko"?null:t.data;default:return null}}var sb={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sb[e.type]:t==="textarea"}function $d(e,t,n,a){Aa?Ra?Ra.push(a):Ra=[a]:Aa=a,t=Ws(t,"onChange"),0<t.length&&(n=new ss("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var kr=null,Qr=null;function ub(e){Dg(e,0)}function os(e){var t=Ur(e);if(zd(t))return e}function Wd(e,t){if(e==="change")return t}var Pd=!1;if(On){var co;if(On){var fo="oninput"in document;if(!fo){var Id=document.createElement("div");Id.setAttribute("oninput","return;"),fo=typeof Id.oninput=="function"}co=fo}else co=!1;Pd=co&&(!document.documentMode||9<document.documentMode)}function eh(){kr&&(kr.detachEvent("onpropertychange",th),Qr=kr=null)}function th(e){if(e.propertyName==="value"&&os(Qr)){var t=[];$d(t,Qr,e,to(e)),Hd(ub,t)}}function ob(e,t,n){e==="focusin"?(eh(),kr=t,Qr=n,kr.attachEvent("onpropertychange",th)):e==="focusout"&&eh()}function cb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return os(Qr)}function fb(e,t){if(e==="click")return os(t)}function db(e,t){if(e==="input"||e==="change")return os(t)}function hb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:hb;function Gr(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var u=n[a];if(!Gu.call(t,u)||!Bt(e[u],t[u]))return!1}return!0}function nh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lh(e,t){var n=nh(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=nh(n)}}function ah(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ah(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ns(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ns(e.document)}return t}function ho(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")}var mb=On&&"documentMode"in document&&11>=document.documentMode,Ma=null,mo=null,Yr=null,go=!1;function ih(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;go||Ma==null||Ma!==ns(a)||(a=Ma,"selectionStart"in a&&ho(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Yr&&Gr(Yr,a)||(Yr=a,a=Ws(mo,"onSelect"),0<a.length&&(t=new ss("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Ma)))}function Kl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var za={animationend:Kl("Animation","AnimationEnd"),animationiteration:Kl("Animation","AnimationIteration"),animationstart:Kl("Animation","AnimationStart"),transitionrun:Kl("Transition","TransitionRun"),transitionstart:Kl("Transition","TransitionStart"),transitioncancel:Kl("Transition","TransitionCancel"),transitionend:Kl("Transition","TransitionEnd")},po={},sh={};On&&(sh=document.createElement("div").style,"AnimationEvent"in window||(delete za.animationend.animation,delete za.animationiteration.animation,delete za.animationstart.animation),"TransitionEvent"in window||delete za.transitionend.transition);function Zl(e){if(po[e])return po[e];if(!za[e])return e;var t=za[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in sh)return po[e]=t[n];return e}var uh=Zl("animationend"),oh=Zl("animationiteration"),ch=Zl("animationstart"),gb=Zl("transitionrun"),pb=Zl("transitionstart"),vb=Zl("transitioncancel"),fh=Zl("transitionend"),dh=new Map,vo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");vo.push("scrollEnd");function cn(e,t){dh.set(e,t),Vl(t,[e])}var cs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Wt=[],Da=0,yo=0;function fs(){for(var e=Da,t=yo=Da=0;t<e;){var n=Wt[t];Wt[t++]=null;var a=Wt[t];Wt[t++]=null;var u=Wt[t];Wt[t++]=null;var o=Wt[t];if(Wt[t++]=null,a!==null&&u!==null){var h=a.pending;h===null?u.next=u:(u.next=h.next,h.next=u),a.pending=u}o!==0&&hh(n,u,o)}}function ds(e,t,n,a){Wt[Da++]=e,Wt[Da++]=t,Wt[Da++]=n,Wt[Da++]=a,yo|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function bo(e,t,n,a){return ds(e,t,n,a),hs(e)}function Jl(e,t){return ds(e,null,null,t),hs(e)}function hh(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var u=!1,o=e.return;o!==null;)o.childLanes|=n,a=o.alternate,a!==null&&(a.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(u=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,u&&t!==null&&(u=31-Ht(n),e=o.hiddenUpdates,a=e[u],a===null?e[u]=[t]:a.push(t),t.lane=n|536870912),o):null}function hs(e){if(50<fi)throw fi=0,Rc=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var _a={};function yb(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,n,a){return new yb(e,t,n,a)}function xo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mn(e,t){var n=e.alternate;return n===null?(n=kt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,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.refCleanup=e.refCleanup,n}function mh(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ms(e,t,n,a,u,o){var h=0;if(a=e,typeof e=="function")xo(e)&&(h=1);else if(typeof e=="string")h=w1(e,n,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case P:return e=kt(31,n,t,u),e.elementType=P,e.lanes=o,e;case M:return Fl(n.children,u,o,t);case R:h=8,u|=24;break;case L:return e=kt(12,n,t,u|2),e.elementType=L,e.lanes=o,e;case B:return e=kt(13,n,t,u),e.elementType=B,e.lanes=o,e;case k:return e=kt(19,n,t,u),e.elementType=k,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j:h=10;break e;case H:h=9;break e;case Q:h=11;break e;case K:h=14;break e;case W:h=16,a=null;break e}h=29,n=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=kt(h,n,t,u),t.elementType=e,t.type=a,t.lanes=o,t}function Fl(e,t,n,a){return e=kt(7,e,a,t),e.lanes=n,e}function So(e,t,n){return e=kt(6,e,null,t),e.lanes=n,e}function gh(e){var t=kt(18,null,null,0);return t.stateNode=e,t}function No(e,t,n){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ph=new WeakMap;function Pt(e,t){if(typeof e=="object"&&e!==null){var n=ph.get(e);return n!==void 0?n:(t={value:e,source:t,stack:gd(t)},ph.set(e,t),t)}return{value:e,source:t,stack:gd(t)}}var Ua=[],La=0,gs=null,Vr=0,It=[],en=0,al=null,vn=1,yn="";function zn(e,t){Ua[La++]=Vr,Ua[La++]=gs,gs=e,Vr=t}function vh(e,t,n){It[en++]=vn,It[en++]=yn,It[en++]=al,al=e;var a=vn;e=yn;var u=32-Ht(a)-1;a&=~(1<<u),n+=1;var o=32-Ht(t)+u;if(30<o){var h=u-u%5;o=(a&(1<<h)-1).toString(32),a>>=h,u-=h,vn=1<<32-Ht(t)+u|n<<u|a,yn=o+e}else vn=1<<o|n<<u|a,yn=e}function wo(e){e.return!==null&&(zn(e,1),vh(e,1,0))}function Eo(e){for(;e===gs;)gs=Ua[--La],Ua[La]=null,Vr=Ua[--La],Ua[La]=null;for(;e===al;)al=It[--en],It[en]=null,yn=It[--en],It[en]=null,vn=It[--en],It[en]=null}function yh(e,t){It[en++]=vn,It[en++]=yn,It[en++]=al,vn=t.id,yn=t.overflow,al=e}var ut=null,ke=null,we=!1,rl=null,tn=!1,To=Error(s(519));function il(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xr(Pt(t,e)),To}function bh(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[st]=e,t[Ct]=a,n){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(n=0;n<hi.length;n++)xe(hi[n],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),Dd(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),Ud(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||jg(t.textContent,n)?(a.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),a.onScroll!=null&&xe("scroll",t),a.onScrollEnd!=null&&xe("scrollend",t),a.onClick!=null&&(t.onclick=Rn),t=!0):t=!1,t||il(e,!0)}function xh(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:tn=!1;return;case 27:case 3:tn=!0;return;default:ut=ut.return}}function ja(e){if(e!==ut)return!1;if(!we)return xh(e),we=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Yc(e.type,e.memoizedProps)),n=!n),n&&ke&&il(e),xh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));ke=Xg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));ke=Xg(e)}else t===27?(t=ke,xl(e.type)?(e=Jc,Jc=null,ke=e):ke=t):ke=ut?ln(e.stateNode.nextSibling):null;return!0}function $l(){ke=ut=null,we=!1}function Co(){var e=rl;return e!==null&&(zt===null?zt=e:zt.push.apply(zt,e),rl=null),e}function Xr(e){rl===null?rl=[e]:rl.push(e)}var Ao=w(null),Wl=null,Dn=null;function sl(e,t,n){I(Ao,t._currentValue),t._currentValue=n}function _n(e){e._currentValue=Ao.current,V(Ao)}function Ro(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Oo(e,t,n,a){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var o=u.dependencies;if(o!==null){var h=u.child;o=o.firstContext;e:for(;o!==null;){var b=o;o=u;for(var T=0;T<t.length;T++)if(b.context===t[T]){o.lanes|=n,b=o.alternate,b!==null&&(b.lanes|=n),Ro(o.return,n,e),a||(h=null);break e}o=b.next}}else if(u.tag===18){if(h=u.return,h===null)throw Error(s(341));h.lanes|=n,o=h.alternate,o!==null&&(o.lanes|=n),Ro(h,n,e),h=null}else h=u.child;if(h!==null)h.return=u;else for(h=u;h!==null;){if(h===e){h=null;break}if(u=h.sibling,u!==null){u.return=h.return,h=u;break}h=h.return}u=h}}function qa(e,t,n,a){e=null;for(var u=t,o=!1;u!==null;){if(!o){if((u.flags&524288)!==0)o=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var h=u.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var b=u.type;Bt(u.pendingProps.value,h.value)||(e!==null?e.push(b):e=[b])}}else if(u===Oe.current){if(h=u.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(yi):e=[yi])}u=u.return}e!==null&&Oo(t,e,n,a),t.flags|=262144}function ps(e){for(e=e.firstContext;e!==null;){if(!Bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Pl(e){Wl=e,Dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ot(e){return Sh(Wl,e)}function vs(e,t){return Wl===null&&Pl(e),Sh(e,t)}function Sh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Dn===null){if(e===null)throw Error(s(308));Dn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Dn=Dn.next=t;return n}var bb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},xb=l.unstable_scheduleCallback,Sb=l.unstable_NormalPriority,Pe={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mo(){return{controller:new bb,data:new Map,refCount:0}}function Kr(e){e.refCount--,e.refCount===0&&xb(Sb,function(){e.controller.abort()})}var Zr=null,zo=0,Ha=0,Ba=null;function Nb(e,t){if(Zr===null){var n=Zr=[];zo=0,Ha=Uc(),Ba={status:"pending",value:void 0,then:function(a){n.push(a)}}}return zo++,t.then(Nh,Nh),t}function Nh(){if(--zo===0&&Zr!==null){Ba!==null&&(Ba.status="fulfilled");var e=Zr;Zr=null,Ha=0,Ba=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function wb(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var u=0;u<n.length;u++)(0,n[u])(t)},function(u){for(a.status="rejected",a.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),a}var wh=D.S;D.S=function(e,t){ig=jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Nb(e,t),wh!==null&&wh(e,t)};var Il=w(null);function Do(){var e=Il.current;return e!==null?e:He.pooledCache}function ys(e,t){t===null?I(Il,Il.current):I(Il,t.pool)}function Eh(){var e=Do();return e===null?null:{parent:Pe._currentValue,pool:e}}var ka=Error(s(460)),_o=Error(s(474)),bs=Error(s(542)),xs={then:function(){}};function Th(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ch(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Rn,Rn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Rh(e),e;default:if(typeof t.status=="string")t.then(Rn,Rn);else{if(e=He,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=a}},function(a){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Rh(e),e}throw ta=t,ka}}function ea(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ta=n,ka):n}}var ta=null;function Ah(){if(ta===null)throw Error(s(459));var e=ta;return ta=null,e}function Rh(e){if(e===ka||e===bs)throw Error(s(483))}var Qa=null,Jr=0;function Ss(e){var t=Jr;return Jr+=1,Qa===null&&(Qa=[]),Ch(Qa,e,t)}function Fr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ns(e,t){throw t.$$typeof===N?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Oh(e){function t(z,A){if(e){var _=z.deletions;_===null?(z.deletions=[A],z.flags|=16):_.push(A)}}function n(z,A){if(!e)return null;for(;A!==null;)t(z,A),A=A.sibling;return null}function a(z){for(var A=new Map;z!==null;)z.key!==null?A.set(z.key,z):A.set(z.index,z),z=z.sibling;return A}function u(z,A){return z=Mn(z,A),z.index=0,z.sibling=null,z}function o(z,A,_){return z.index=_,e?(_=z.alternate,_!==null?(_=_.index,_<A?(z.flags|=67108866,A):_):(z.flags|=67108866,A)):(z.flags|=1048576,A)}function h(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function b(z,A,_,Z){return A===null||A.tag!==6?(A=So(_,z.mode,Z),A.return=z,A):(A=u(A,_),A.return=z,A)}function T(z,A,_,Z){var ue=_.type;return ue===M?X(z,A,_.props.children,Z,_.key):A!==null&&(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===W&&ea(ue)===A.type)?(A=u(A,_.props),Fr(A,_),A.return=z,A):(A=ms(_.type,_.key,_.props,null,z.mode,Z),Fr(A,_),A.return=z,A)}function U(z,A,_,Z){return A===null||A.tag!==4||A.stateNode.containerInfo!==_.containerInfo||A.stateNode.implementation!==_.implementation?(A=No(_,z.mode,Z),A.return=z,A):(A=u(A,_.children||[]),A.return=z,A)}function X(z,A,_,Z,ue){return A===null||A.tag!==7?(A=Fl(_,z.mode,Z,ue),A.return=z,A):(A=u(A,_),A.return=z,A)}function J(z,A,_){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=So(""+A,z.mode,_),A.return=z,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case O:return _=ms(A.type,A.key,A.props,null,z.mode,_),Fr(_,A),_.return=z,_;case Y:return A=No(A,z.mode,_),A.return=z,A;case W:return A=ea(A),J(z,A,_)}if(le(A)||ie(A))return A=Fl(A,z.mode,_,null),A.return=z,A;if(typeof A.then=="function")return J(z,Ss(A),_);if(A.$$typeof===j)return J(z,vs(z,A),_);Ns(z,A)}return null}function q(z,A,_,Z){var ue=A!==null?A.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return ue!==null?null:b(z,A,""+_,Z);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case O:return _.key===ue?T(z,A,_,Z):null;case Y:return _.key===ue?U(z,A,_,Z):null;case W:return _=ea(_),q(z,A,_,Z)}if(le(_)||ie(_))return ue!==null?null:X(z,A,_,Z,null);if(typeof _.then=="function")return q(z,A,Ss(_),Z);if(_.$$typeof===j)return q(z,A,vs(z,_),Z);Ns(z,_)}return null}function G(z,A,_,Z,ue){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return z=z.get(_)||null,b(A,z,""+Z,ue);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case O:return z=z.get(Z.key===null?_:Z.key)||null,T(A,z,Z,ue);case Y:return z=z.get(Z.key===null?_:Z.key)||null,U(A,z,Z,ue);case W:return Z=ea(Z),G(z,A,_,Z,ue)}if(le(Z)||ie(Z))return z=z.get(_)||null,X(A,z,Z,ue,null);if(typeof Z.then=="function")return G(z,A,_,Ss(Z),ue);if(Z.$$typeof===j)return G(z,A,_,vs(A,Z),ue);Ns(A,Z)}return null}function ne(z,A,_,Z){for(var ue=null,Ce=null,ae=A,me=A=0,Ne=null;ae!==null&&me<_.length;me++){ae.index>me?(Ne=ae,ae=null):Ne=ae.sibling;var Ae=q(z,ae,_[me],Z);if(Ae===null){ae===null&&(ae=Ne);break}e&&ae&&Ae.alternate===null&&t(z,ae),A=o(Ae,A,me),Ce===null?ue=Ae:Ce.sibling=Ae,Ce=Ae,ae=Ne}if(me===_.length)return n(z,ae),we&&zn(z,me),ue;if(ae===null){for(;me<_.length;me++)ae=J(z,_[me],Z),ae!==null&&(A=o(ae,A,me),Ce===null?ue=ae:Ce.sibling=ae,Ce=ae);return we&&zn(z,me),ue}for(ae=a(ae);me<_.length;me++)Ne=G(ae,z,me,_[me],Z),Ne!==null&&(e&&Ne.alternate!==null&&ae.delete(Ne.key===null?me:Ne.key),A=o(Ne,A,me),Ce===null?ue=Ne:Ce.sibling=Ne,Ce=Ne);return e&&ae.forEach(function(Tl){return t(z,Tl)}),we&&zn(z,me),ue}function ce(z,A,_,Z){if(_==null)throw Error(s(151));for(var ue=null,Ce=null,ae=A,me=A=0,Ne=null,Ae=_.next();ae!==null&&!Ae.done;me++,Ae=_.next()){ae.index>me?(Ne=ae,ae=null):Ne=ae.sibling;var Tl=q(z,ae,Ae.value,Z);if(Tl===null){ae===null&&(ae=Ne);break}e&&ae&&Tl.alternate===null&&t(z,ae),A=o(Tl,A,me),Ce===null?ue=Tl:Ce.sibling=Tl,Ce=Tl,ae=Ne}if(Ae.done)return n(z,ae),we&&zn(z,me),ue;if(ae===null){for(;!Ae.done;me++,Ae=_.next())Ae=J(z,Ae.value,Z),Ae!==null&&(A=o(Ae,A,me),Ce===null?ue=Ae:Ce.sibling=Ae,Ce=Ae);return we&&zn(z,me),ue}for(ae=a(ae);!Ae.done;me++,Ae=_.next())Ae=G(ae,z,me,Ae.value,Z),Ae!==null&&(e&&Ae.alternate!==null&&ae.delete(Ae.key===null?me:Ae.key),A=o(Ae,A,me),Ce===null?ue=Ae:Ce.sibling=Ae,Ce=Ae);return e&&ae.forEach(function(U1){return t(z,U1)}),we&&zn(z,me),ue}function je(z,A,_,Z){if(typeof _=="object"&&_!==null&&_.type===M&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case O:e:{for(var ue=_.key;A!==null;){if(A.key===ue){if(ue=_.type,ue===M){if(A.tag===7){n(z,A.sibling),Z=u(A,_.props.children),Z.return=z,z=Z;break e}}else if(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===W&&ea(ue)===A.type){n(z,A.sibling),Z=u(A,_.props),Fr(Z,_),Z.return=z,z=Z;break e}n(z,A);break}else t(z,A);A=A.sibling}_.type===M?(Z=Fl(_.props.children,z.mode,Z,_.key),Z.return=z,z=Z):(Z=ms(_.type,_.key,_.props,null,z.mode,Z),Fr(Z,_),Z.return=z,z=Z)}return h(z);case Y:e:{for(ue=_.key;A!==null;){if(A.key===ue)if(A.tag===4&&A.stateNode.containerInfo===_.containerInfo&&A.stateNode.implementation===_.implementation){n(z,A.sibling),Z=u(A,_.children||[]),Z.return=z,z=Z;break e}else{n(z,A);break}else t(z,A);A=A.sibling}Z=No(_,z.mode,Z),Z.return=z,z=Z}return h(z);case W:return _=ea(_),je(z,A,_,Z)}if(le(_))return ne(z,A,_,Z);if(ie(_)){if(ue=ie(_),typeof ue!="function")throw Error(s(150));return _=ue.call(_),ce(z,A,_,Z)}if(typeof _.then=="function")return je(z,A,Ss(_),Z);if(_.$$typeof===j)return je(z,A,vs(z,_),Z);Ns(z,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,A!==null&&A.tag===6?(n(z,A.sibling),Z=u(A,_),Z.return=z,z=Z):(n(z,A),Z=So(_,z.mode,Z),Z.return=z,z=Z),h(z)):n(z,A)}return function(z,A,_,Z){try{Jr=0;var ue=je(z,A,_,Z);return Qa=null,ue}catch(ae){if(ae===ka||ae===bs)throw ae;var Ce=kt(29,ae,null,z.mode);return Ce.lanes=Z,Ce.return=z,Ce}finally{}}}var na=Oh(!0),Mh=Oh(!1),ul=!1;function Uo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ol(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function cl(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Re&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=hs(e),hh(e,null,n),t}return ds(e,a,t,n),hs(e)}function $r(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Sd(e,n)}}function jo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var u=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?u=o=h:o=o.next=h,n=n.next}while(n!==null);o===null?u=o=t:o=o.next=t}else u=o=t;n={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:o,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var qo=!1;function Wr(){if(qo){var e=Ba;if(e!==null)throw e}}function Pr(e,t,n,a){qo=!1;var u=e.updateQueue;ul=!1;var o=u.firstBaseUpdate,h=u.lastBaseUpdate,b=u.shared.pending;if(b!==null){u.shared.pending=null;var T=b,U=T.next;T.next=null,h===null?o=U:h.next=U,h=T;var X=e.alternate;X!==null&&(X=X.updateQueue,b=X.lastBaseUpdate,b!==h&&(b===null?X.firstBaseUpdate=U:b.next=U,X.lastBaseUpdate=T))}if(o!==null){var J=u.baseState;h=0,X=U=T=null,b=o;do{var q=b.lane&-536870913,G=q!==b.lane;if(G?(Se&q)===q:(a&q)===q){q!==0&&q===Ha&&(qo=!0),X!==null&&(X=X.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ne=e,ce=b;q=t;var je=n;switch(ce.tag){case 1:if(ne=ce.payload,typeof ne=="function"){J=ne.call(je,J,q);break e}J=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=ce.payload,q=typeof ne=="function"?ne.call(je,J,q):ne,q==null)break e;J=S({},J,q);break e;case 2:ul=!0}}q=b.callback,q!==null&&(e.flags|=64,G&&(e.flags|=8192),G=u.callbacks,G===null?u.callbacks=[q]:G.push(q))}else G={lane:q,tag:b.tag,payload:b.payload,callback:b.callback,next:null},X===null?(U=X=G,T=J):X=X.next=G,h|=q;if(b=b.next,b===null){if(b=u.shared.pending,b===null)break;G=b,b=G.next,G.next=null,u.lastBaseUpdate=G,u.shared.pending=null}}while(!0);X===null&&(T=J),u.baseState=T,u.firstBaseUpdate=U,u.lastBaseUpdate=X,o===null&&(u.shared.lanes=0),gl|=h,e.lanes=h,e.memoizedState=J}}function zh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Dh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)zh(n[e],t)}var Ga=w(null),ws=w(0);function _h(e,t){e=Gn,I(ws,e),I(Ga,t),Gn=e|t.baseLanes}function Ho(){I(ws,Gn),I(Ga,Ga.current)}function Bo(){Gn=ws.current,V(Ga),V(ws)}var Qt=w(null),nn=null;function fl(e){var t=e.alternate;I($e,$e.current&1),I(Qt,e),nn===null&&(t===null||Ga.current!==null||t.memoizedState!==null)&&(nn=e)}function ko(e){I($e,$e.current),I(Qt,e),nn===null&&(nn=e)}function Uh(e){e.tag===22?(I($e,$e.current),I(Qt,e),nn===null&&(nn=e)):dl()}function dl(){I($e,$e.current),I(Qt,Qt.current)}function Gt(e){V(Qt),nn===e&&(nn=null),V($e)}var $e=w(0);function Es(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Kc(n)||Zc(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 Un=0,he=null,Ue=null,Ie=null,Ts=!1,Ya=!1,la=!1,Cs=0,Ir=0,Va=null,Eb=0;function Ke(){throw Error(s(321))}function Qo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Bt(e[n],t[n]))return!1;return!0}function Go(e,t,n,a,u,o){return Un=o,he=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?vm:lc,la=!1,o=n(a,u),la=!1,Ya&&(o=jh(t,n,a,u)),Lh(e),o}function Lh(e){D.H=ni;var t=Ue!==null&&Ue.next!==null;if(Un=0,Ie=Ue=he=null,Ts=!1,Ir=0,Va=null,t)throw Error(s(300));e===null||et||(e=e.dependencies,e!==null&&ps(e)&&(et=!0))}function jh(e,t,n,a){he=e;var u=0;do{if(Ya&&(Va=null),Ir=0,Ya=!1,25<=u)throw Error(s(301));if(u+=1,Ie=Ue=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}D.H=ym,o=t(n,a)}while(Ya);return o}function Tb(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?ei(t):t,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(he.flags|=1024),t}function Yo(){var e=Cs!==0;return Cs=0,e}function Vo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Xo(e){if(Ts){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ts=!1}Un=0,Ie=Ue=he=null,Ya=!1,Ir=Cs=0,Va=null}function yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?he.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function We(){if(Ue===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=Ie===null?he.memoizedState:Ie.next;if(t!==null)Ie=t,Ue=e;else{if(e===null)throw he.alternate===null?Error(s(467)):Error(s(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},Ie===null?he.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function As(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ei(e){var t=Ir;return Ir+=1,Va===null&&(Va=[]),e=Ch(Va,e,t),t=he,(Ie===null?t.memoizedState:Ie.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?vm:lc),e}function Rs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ei(e);if(e.$$typeof===j)return ot(e)}throw Error(s(438,String(e)))}function Ko(e){var t=null,n=he.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=he.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=As(),he.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=F;return t.index++,n}function Ln(e,t){return typeof t=="function"?t(e):t}function Os(e){var t=We();return Zo(t,Ue,e)}function Zo(e,t,n){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=n;var u=e.baseQueue,o=a.pending;if(o!==null){if(u!==null){var h=u.next;u.next=o.next,o.next=h}t.baseQueue=u=o,a.pending=null}if(o=e.baseState,u===null)e.memoizedState=o;else{t=u.next;var b=h=null,T=null,U=t,X=!1;do{var J=U.lane&-536870913;if(J!==U.lane?(Se&J)===J:(Un&J)===J){var q=U.revertLane;if(q===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),J===Ha&&(X=!0);else if((Un&q)===q){U=U.next,q===Ha&&(X=!0);continue}else J={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},T===null?(b=T=J,h=o):T=T.next=J,he.lanes|=q,gl|=q;J=U.action,la&&n(o,J),o=U.hasEagerState?U.eagerState:n(o,J)}else q={lane:J,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},T===null?(b=T=q,h=o):T=T.next=q,he.lanes|=J,gl|=J;U=U.next}while(U!==null&&U!==t);if(T===null?h=o:T.next=b,!Bt(o,e.memoizedState)&&(et=!0,X&&(n=Ba,n!==null)))throw n;e.memoizedState=o,e.baseState=h,e.baseQueue=T,a.lastRenderedState=o}return u===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Jo(e){var t=We(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var a=n.dispatch,u=n.pending,o=t.memoizedState;if(u!==null){n.pending=null;var h=u=u.next;do o=e(o,h.action),h=h.next;while(h!==u);Bt(o,t.memoizedState)||(et=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function qh(e,t,n){var a=he,u=We(),o=we;if(o){if(n===void 0)throw Error(s(407));n=n()}else n=t();var h=!Bt((Ue||u).memoizedState,n);if(h&&(u.memoizedState=n,et=!0),u=u.queue,Wo(kh.bind(null,a,u,e),[e]),u.getSnapshot!==t||h||Ie!==null&&Ie.memoizedState.tag&1){if(a.flags|=2048,Xa(9,{destroy:void 0},Bh.bind(null,a,u,n,t),null),He===null)throw Error(s(349));o||(Un&127)!==0||Hh(a,t,n)}return n}function Hh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=he.updateQueue,t===null?(t=As(),he.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bh(e,t,n,a){t.value=n,t.getSnapshot=a,Qh(t)&&Gh(e)}function kh(e,t,n){return n(function(){Qh(t)&&Gh(e)})}function Qh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bt(e,n)}catch{return!0}}function Gh(e){var t=Jl(e,2);t!==null&&Dt(t,e,2)}function Fo(e){var t=yt();if(typeof e=="function"){var n=e;if(e=n(),la){tl(!0);try{n()}finally{tl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:e},t}function Yh(e,t,n,a){return e.baseState=n,Zo(e,Ue,typeof a=="function"?a:Ln)}function Cb(e,t,n,a,u){if(Ds(e))throw Error(s(485));if(e=t.action,e!==null){var o={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){o.listeners.push(h)}};D.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,Vh(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Vh(e,t){var n=t.action,a=t.payload,u=e.state;if(t.isTransition){var o=D.T,h={};D.T=h;try{var b=n(u,a),T=D.S;T!==null&&T(h,b),Xh(e,t,b)}catch(U){$o(e,t,U)}finally{o!==null&&h.types!==null&&(o.types=h.types),D.T=o}}else try{o=n(u,a),Xh(e,t,o)}catch(U){$o(e,t,U)}}function Xh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Kh(e,t,a)},function(a){return $o(e,t,a)}):Kh(e,t,n)}function Kh(e,t,n){t.status="fulfilled",t.value=n,Zh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Vh(e,n)))}function $o(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Zh(t),t=t.next;while(t!==a)}e.action=null}function Zh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Jh(e,t){return t}function Fh(e,t){if(we){var n=He.formState;if(n!==null){e:{var a=he;if(we){if(ke){t:{for(var u=ke,o=tn;u.nodeType!==8;){if(!o){u=null;break t}if(u=ln(u.nextSibling),u===null){u=null;break t}}o=u.data,u=o==="F!"||o==="F"?u:null}if(u){ke=ln(u.nextSibling),a=u.data==="F!";break e}}il(a)}a=!1}a&&(t=n[0])}}return n=yt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jh,lastRenderedState:t},n.queue=a,n=mm.bind(null,he,a),a.dispatch=n,a=Fo(!1),o=nc.bind(null,he,!1,a.queue),a=yt(),u={state:t,dispatch:null,action:e,pending:null},a.queue=u,n=Cb.bind(null,he,u,o,n),u.dispatch=n,a.memoizedState=e,[t,n,!1]}function $h(e){var t=We();return Wh(t,Ue,e)}function Wh(e,t,n){if(t=Zo(e,t,Jh)[0],e=Os(Ln)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=ei(t)}catch(h){throw h===ka?bs:h}else a=t;t=We();var u=t.queue,o=u.dispatch;return n!==t.memoizedState&&(he.flags|=2048,Xa(9,{destroy:void 0},Ab.bind(null,u,n),null)),[a,o,e]}function Ab(e,t){e.action=t}function Ph(e){var t=We(),n=Ue;if(n!==null)return Wh(t,n,e);We(),t=t.memoizedState,n=We();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Xa(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=he.updateQueue,t===null&&(t=As(),he.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Ih(){return We().memoizedState}function Ms(e,t,n,a){var u=yt();he.flags|=e,u.memoizedState=Xa(1|t,{destroy:void 0},n,a===void 0?null:a)}function zs(e,t,n,a){var u=We();a=a===void 0?null:a;var o=u.memoizedState.inst;Ue!==null&&a!==null&&Qo(a,Ue.memoizedState.deps)?u.memoizedState=Xa(t,o,n,a):(he.flags|=e,u.memoizedState=Xa(1|t,o,n,a))}function em(e,t){Ms(8390656,8,e,t)}function Wo(e,t){zs(2048,8,e,t)}function Rb(e){he.flags|=4;var t=he.updateQueue;if(t===null)t=As(),he.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function tm(e){var t=We().memoizedState;return Rb({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function nm(e,t){return zs(4,2,e,t)}function lm(e,t){return zs(4,4,e,t)}function am(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function rm(e,t,n){n=n!=null?n.concat([e]):null,zs(4,4,am.bind(null,t,e),n)}function Po(){}function im(e,t){var n=We();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Qo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function sm(e,t){var n=We();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Qo(t,a[1]))return a[0];if(a=e(),la){tl(!0);try{e()}finally{tl(!1)}}return n.memoizedState=[a,t],a}function Io(e,t,n){return n===void 0||(Un&1073741824)!==0&&(Se&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ug(),he.lanes|=e,gl|=e,n)}function um(e,t,n,a){return Bt(n,t)?n:Ga.current!==null?(e=Io(e,n,a),Bt(e,t)||(et=!0),e):(Un&42)===0||(Un&1073741824)!==0&&(Se&261930)===0?(et=!0,e.memoizedState=n):(e=ug(),he.lanes|=e,gl|=e,t)}function om(e,t,n,a,u){var o=$.p;$.p=o!==0&&8>o?o:8;var h=D.T,b={};D.T=b,nc(e,!1,t,n);try{var T=u(),U=D.S;if(U!==null&&U(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var X=wb(T,a);ti(e,t,X,Xt(e))}else ti(e,t,a,Xt(e))}catch(J){ti(e,t,{then:function(){},status:"rejected",reason:J},Xt())}finally{$.p=o,h!==null&&b.types!==null&&(h.types=b.types),D.T=h}}function Ob(){}function ec(e,t,n,a){if(e.tag!==5)throw Error(s(476));var u=cm(e).queue;om(e,u,t,re,n===null?Ob:function(){return fm(e),n(a)})}function cm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:re},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function fm(e){var t=cm(e);t.next===null&&(t=e.alternate.memoizedState),ti(e,t.next.queue,{},Xt())}function tc(){return ot(yi)}function dm(){return We().memoizedState}function hm(){return We().memoizedState}function Mb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Xt();e=ol(n);var a=cl(t,e,n);a!==null&&(Dt(a,t,n),$r(a,t,n)),t={cache:Mo()},e.payload=t;return}t=t.return}}function zb(e,t,n){var a=Xt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ds(e)?gm(t,n):(n=bo(e,t,n,a),n!==null&&(Dt(n,e,a),pm(n,t,a)))}function mm(e,t,n){var a=Xt();ti(e,t,n,a)}function ti(e,t,n,a){var u={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ds(e))gm(t,u);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var h=t.lastRenderedState,b=o(h,n);if(u.hasEagerState=!0,u.eagerState=b,Bt(b,h))return ds(e,t,u,0),He===null&&fs(),!1}catch{}finally{}if(n=bo(e,t,u,a),n!==null)return Dt(n,e,a),pm(n,t,a),!0}return!1}function nc(e,t,n,a){if(a={lane:2,revertLane:Uc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ds(e)){if(t)throw Error(s(479))}else t=bo(e,n,a,2),t!==null&&Dt(t,e,2)}function Ds(e){var t=e.alternate;return e===he||t!==null&&t===he}function gm(e,t){Ya=Ts=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pm(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Sd(e,n)}}var ni={readContext:ot,use:Rs,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useLayoutEffect:Ke,useInsertionEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useSyncExternalStore:Ke,useId:Ke,useHostTransitionStatus:Ke,useFormState:Ke,useActionState:Ke,useOptimistic:Ke,useMemoCache:Ke,useCacheRefresh:Ke};ni.useEffectEvent=Ke;var vm={readContext:ot,use:Rs,useCallback:function(e,t){return yt().memoizedState=[e,t===void 0?null:t],e},useContext:ot,useEffect:em,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ms(4194308,4,am.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ms(4194308,4,e,t)},useInsertionEffect:function(e,t){Ms(4,2,e,t)},useMemo:function(e,t){var n=yt();t=t===void 0?null:t;var a=e();if(la){tl(!0);try{e()}finally{tl(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=yt();if(n!==void 0){var u=n(t);if(la){tl(!0);try{n(t)}finally{tl(!1)}}}else u=t;return a.memoizedState=a.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},a.queue=e,e=e.dispatch=zb.bind(null,he,e),[a.memoizedState,e]},useRef:function(e){var t=yt();return e={current:e},t.memoizedState=e},useState:function(e){e=Fo(e);var t=e.queue,n=mm.bind(null,he,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Po,useDeferredValue:function(e,t){var n=yt();return Io(n,e,t)},useTransition:function(){var e=Fo(!1);return e=om.bind(null,he,e.queue,!0,!1),yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=he,u=yt();if(we){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),He===null)throw Error(s(349));(Se&127)!==0||Hh(a,t,n)}u.memoizedState=n;var o={value:n,getSnapshot:t};return u.queue=o,em(kh.bind(null,a,o,e),[e]),a.flags|=2048,Xa(9,{destroy:void 0},Bh.bind(null,a,o,n,t),null),n},useId:function(){var e=yt(),t=He.identifierPrefix;if(we){var n=yn,a=vn;n=(a&~(1<<32-Ht(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Cs++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Eb++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:tc,useFormState:Fh,useActionState:Fh,useOptimistic:function(e){var t=yt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=nc.bind(null,he,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ko,useCacheRefresh:function(){return yt().memoizedState=Mb.bind(null,he)},useEffectEvent:function(e){var t=yt(),n={impl:e};return t.memoizedState=n,function(){if((Re&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},lc={readContext:ot,use:Rs,useCallback:im,useContext:ot,useEffect:Wo,useImperativeHandle:rm,useInsertionEffect:nm,useLayoutEffect:lm,useMemo:sm,useReducer:Os,useRef:Ih,useState:function(){return Os(Ln)},useDebugValue:Po,useDeferredValue:function(e,t){var n=We();return um(n,Ue.memoizedState,e,t)},useTransition:function(){var e=Os(Ln)[0],t=We().memoizedState;return[typeof e=="boolean"?e:ei(e),t]},useSyncExternalStore:qh,useId:dm,useHostTransitionStatus:tc,useFormState:$h,useActionState:$h,useOptimistic:function(e,t){var n=We();return Yh(n,Ue,e,t)},useMemoCache:Ko,useCacheRefresh:hm};lc.useEffectEvent=tm;var ym={readContext:ot,use:Rs,useCallback:im,useContext:ot,useEffect:Wo,useImperativeHandle:rm,useInsertionEffect:nm,useLayoutEffect:lm,useMemo:sm,useReducer:Jo,useRef:Ih,useState:function(){return Jo(Ln)},useDebugValue:Po,useDeferredValue:function(e,t){var n=We();return Ue===null?Io(n,e,t):um(n,Ue.memoizedState,e,t)},useTransition:function(){var e=Jo(Ln)[0],t=We().memoizedState;return[typeof e=="boolean"?e:ei(e),t]},useSyncExternalStore:qh,useId:dm,useHostTransitionStatus:tc,useFormState:Ph,useActionState:Ph,useOptimistic:function(e,t){var n=We();return Ue!==null?Yh(n,Ue,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Ko,useCacheRefresh:hm};ym.useEffectEvent=tm;function ac(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:S({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var rc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Xt(),u=ol(a);u.payload=t,n!=null&&(u.callback=n),t=cl(e,u,a),t!==null&&(Dt(t,e,a),$r(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Xt(),u=ol(a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=cl(e,u,a),t!==null&&(Dt(t,e,a),$r(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xt(),a=ol(n);a.tag=2,t!=null&&(a.callback=t),t=cl(e,a,n),t!==null&&(Dt(t,e,n),$r(t,e,n))}};function bm(e,t,n,a,u,o,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,h):t.prototype&&t.prototype.isPureReactComponent?!Gr(n,a)||!Gr(u,o):!0}function xm(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&rc.enqueueReplaceState(t,t.state,null)}function aa(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=S({},n));for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n}function Sm(e){cs(e)}function Nm(e){console.error(e)}function wm(e){cs(e)}function _s(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Em(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function ic(e,t,n){return n=ol(n),n.tag=3,n.payload={element:null},n.callback=function(){_s(e,t)},n}function Tm(e){return e=ol(e),e.tag=3,e}function Cm(e,t,n,a){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var o=a.value;e.payload=function(){return u(o)},e.callback=function(){Em(t,n,a)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Em(t,n,a),typeof u!="function"&&(pl===null?pl=new Set([this]):pl.add(this));var b=a.stack;this.componentDidCatch(a.value,{componentStack:b!==null?b:""})})}function Db(e,t,n,a,u){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&qa(t,n,u,!0),n=Qt.current,n!==null){switch(n.tag){case 31:case 13:return nn===null?Xs():n.alternate===null&&Ze===0&&(Ze=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===xs?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),zc(e,a,u)),!1;case 22:return n.flags|=65536,a===xs?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),zc(e,a,u)),!1}throw Error(s(435,n.tag))}return zc(e,a,u),Xs(),!1}if(we)return t=Qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==To&&(e=Error(s(422),{cause:a}),Xr(Pt(e,n)))):(a!==To&&(t=Error(s(423),{cause:a}),Xr(Pt(t,n))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=Pt(a,n),u=ic(e.stateNode,a,u),jo(e,u),Ze!==4&&(Ze=2)),!1;var o=Error(s(520),{cause:a});if(o=Pt(o,n),ci===null?ci=[o]:ci.push(o),Ze!==4&&(Ze=2),t===null)return!0;a=Pt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=u&-u,n.lanes|=e,e=ic(n.stateNode,a,e),jo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(pl===null||!pl.has(o))))return n.flags|=65536,u&=-u,n.lanes|=u,u=Tm(u),Cm(u,e,n,a),jo(n,u),!1}n=n.return}while(n!==null);return!1}var sc=Error(s(461)),et=!1;function ct(e,t,n,a){t.child=e===null?Mh(t,null,n,a):na(t,e.child,n,a)}function Am(e,t,n,a,u){n=n.render;var o=t.ref;if("ref"in a){var h={};for(var b in a)b!=="ref"&&(h[b]=a[b])}else h=a;return Pl(t),a=Go(e,t,n,h,o,u),b=Yo(),e!==null&&!et?(Vo(e,t,u),jn(e,t,u)):(we&&b&&wo(t),t.flags|=1,ct(e,t,a,u),t.child)}function Rm(e,t,n,a,u){if(e===null){var o=n.type;return typeof o=="function"&&!xo(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,Om(e,t,o,a,u)):(e=ms(n.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!gc(e,u)){var h=o.memoizedProps;if(n=n.compare,n=n!==null?n:Gr,n(h,a)&&e.ref===t.ref)return jn(e,t,u)}return t.flags|=1,e=Mn(o,a),e.ref=t.ref,e.return=t,t.child=e}function Om(e,t,n,a,u){if(e!==null){var o=e.memoizedProps;if(Gr(o,a)&&e.ref===t.ref)if(et=!1,t.pendingProps=a=o,gc(e,u))(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,jn(e,t,u)}return uc(e,t,n,a,u)}function Mm(e,t,n,a){var u=a.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(a=t.child=e.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;a=u&~o}else a=0,t.child=null;return zm(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ys(t,o!==null?o.cachePool:null),o!==null?_h(t,o):Ho(),Uh(t);else return a=t.lanes=536870912,zm(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(ys(t,o.cachePool),_h(t,o),dl(),t.memoizedState=null):(e!==null&&ys(t,null),Ho(),dl());return ct(e,t,u,n),t.child}function li(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zm(e,t,n,a,u){var o=Do();return o=o===null?null:{parent:Pe._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&ys(t,null),Ho(),Uh(t),e!==null&&qa(e,t,a,!0),t.childLanes=u,null}function Us(e,t){return t=js({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Dm(e,t,n){return na(t,e.child,null,n),e=Us(t,t.pendingProps),e.flags|=2,Gt(t),t.memoizedState=null,e}function _b(e,t,n){var a=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(we){if(a.mode==="hidden")return e=Us(t,a),t.lanes=536870912,li(null,e);if(ko(t),(e=ke)?(e=Vg(e,tn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:al!==null?{id:vn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},n=gh(e),n.return=t,t.child=n,ut=t,ke=null)):e=null,e===null)throw il(t);return t.lanes=536870912,null}return Us(t,a)}var o=e.memoizedState;if(o!==null){var h=o.dehydrated;if(ko(t),u)if(t.flags&256)t.flags&=-257,t=Dm(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(et||qa(e,t,n,!1),u=(n&e.childLanes)!==0,et||u){if(a=He,a!==null&&(h=Nd(a,n),h!==0&&h!==o.retryLane))throw o.retryLane=h,Jl(e,h),Dt(a,e,h),sc;Xs(),t=Dm(e,t,n)}else e=o.treeContext,ke=ln(h.nextSibling),ut=t,we=!0,rl=null,tn=!1,e!==null&&yh(t,e),t=Us(t,a),t.flags|=4096;return t}return e=Mn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ls(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function uc(e,t,n,a,u){return Pl(t),n=Go(e,t,n,a,void 0,u),a=Yo(),e!==null&&!et?(Vo(e,t,u),jn(e,t,u)):(we&&a&&wo(t),t.flags|=1,ct(e,t,n,u),t.child)}function _m(e,t,n,a,u,o){return Pl(t),t.updateQueue=null,n=jh(t,a,n,u),Lh(e),a=Yo(),e!==null&&!et?(Vo(e,t,o),jn(e,t,o)):(we&&a&&wo(t),t.flags|=1,ct(e,t,n,o),t.child)}function Um(e,t,n,a,u){if(Pl(t),t.stateNode===null){var o=_a,h=n.contextType;typeof h=="object"&&h!==null&&(o=ot(h)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=rc,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Uo(t),h=n.contextType,o.context=typeof h=="object"&&h!==null?ot(h):_a,o.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(ac(t,n,h,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(h=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),h!==o.state&&rc.enqueueReplaceState(o,o.state,null),Pr(t,a,o,u),Wr(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var b=t.memoizedProps,T=aa(n,b);o.props=T;var U=o.context,X=n.contextType;h=_a,typeof X=="object"&&X!==null&&(h=ot(X));var J=n.getDerivedStateFromProps;X=typeof J=="function"||typeof o.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,X||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(b||U!==h)&&xm(t,o,a,h),ul=!1;var q=t.memoizedState;o.state=q,Pr(t,a,o,u),Wr(),U=t.memoizedState,b||q!==U||ul?(typeof J=="function"&&(ac(t,n,J,a),U=t.memoizedState),(T=ul||bm(t,n,T,a,q,U,h))?(X||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=U),o.props=a,o.state=U,o.context=h,a=T):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,Lo(e,t),h=t.memoizedProps,X=aa(n,h),o.props=X,J=t.pendingProps,q=o.context,U=n.contextType,T=_a,typeof U=="object"&&U!==null&&(T=ot(U)),b=n.getDerivedStateFromProps,(U=typeof b=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(h!==J||q!==T)&&xm(t,o,a,T),ul=!1,q=t.memoizedState,o.state=q,Pr(t,a,o,u),Wr();var G=t.memoizedState;h!==J||q!==G||ul||e!==null&&e.dependencies!==null&&ps(e.dependencies)?(typeof b=="function"&&(ac(t,n,b,a),G=t.memoizedState),(X=ul||bm(t,n,X,a,q,G,T)||e!==null&&e.dependencies!==null&&ps(e.dependencies))?(U||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,G,T),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,G,T)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||h===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=G),o.props=a,o.state=G,o.context=T,a=X):(typeof o.componentDidUpdate!="function"||h===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,Ls(e,t),a=(t.flags&128)!==0,o||a?(o=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&a?(t.child=na(t,e.child,null,u),t.child=na(t,null,n,u)):ct(e,t,n,u),t.memoizedState=o.state,e=t.child):e=jn(e,t,u),e}function Lm(e,t,n,a){return $l(),t.flags|=256,ct(e,t,n,a),t.child}var oc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cc(e){return{baseLanes:e,cachePool:Eh()}}function fc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Vt),e}function jm(e,t,n){var a=t.pendingProps,u=!1,o=(t.flags&128)!==0,h;if((h=o)||(h=e!==null&&e.memoizedState===null?!1:($e.current&2)!==0),h&&(u=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(we){if(u?fl(t):dl(),(e=ke)?(e=Vg(e,tn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:al!==null?{id:vn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},n=gh(e),n.return=t,t.child=n,ut=t,ke=null)):e=null,e===null)throw il(t);return Zc(e)?t.lanes=32:t.lanes=536870912,null}var b=a.children;return a=a.fallback,u?(dl(),u=t.mode,b=js({mode:"hidden",children:b},u),a=Fl(a,u,n,null),b.return=t,a.return=t,b.sibling=a,t.child=b,a=t.child,a.memoizedState=cc(n),a.childLanes=fc(e,h,n),t.memoizedState=oc,li(null,a)):(fl(t),dc(t,b))}var T=e.memoizedState;if(T!==null&&(b=T.dehydrated,b!==null)){if(o)t.flags&256?(fl(t),t.flags&=-257,t=hc(e,t,n)):t.memoizedState!==null?(dl(),t.child=e.child,t.flags|=128,t=null):(dl(),b=a.fallback,u=t.mode,a=js({mode:"visible",children:a.children},u),b=Fl(b,u,n,null),b.flags|=2,a.return=t,b.return=t,a.sibling=b,t.child=a,na(t,e.child,null,n),a=t.child,a.memoizedState=cc(n),a.childLanes=fc(e,h,n),t.memoizedState=oc,t=li(null,a));else if(fl(t),Zc(b)){if(h=b.nextSibling&&b.nextSibling.dataset,h)var U=h.dgst;h=U,a=Error(s(419)),a.stack="",a.digest=h,Xr({value:a,source:null,stack:null}),t=hc(e,t,n)}else if(et||qa(e,t,n,!1),h=(n&e.childLanes)!==0,et||h){if(h=He,h!==null&&(a=Nd(h,n),a!==0&&a!==T.retryLane))throw T.retryLane=a,Jl(e,a),Dt(h,e,a),sc;Kc(b)||Xs(),t=hc(e,t,n)}else Kc(b)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,ke=ln(b.nextSibling),ut=t,we=!0,rl=null,tn=!1,e!==null&&yh(t,e),t=dc(t,a.children),t.flags|=4096);return t}return u?(dl(),b=a.fallback,u=t.mode,T=e.child,U=T.sibling,a=Mn(T,{mode:"hidden",children:a.children}),a.subtreeFlags=T.subtreeFlags&65011712,U!==null?b=Mn(U,b):(b=Fl(b,u,n,null),b.flags|=2),b.return=t,a.return=t,a.sibling=b,t.child=a,li(null,a),a=t.child,b=e.child.memoizedState,b===null?b=cc(n):(u=b.cachePool,u!==null?(T=Pe._currentValue,u=u.parent!==T?{parent:T,pool:T}:u):u=Eh(),b={baseLanes:b.baseLanes|n,cachePool:u}),a.memoizedState=b,a.childLanes=fc(e,h,n),t.memoizedState=oc,li(e.child,a)):(fl(t),n=e.child,e=n.sibling,n=Mn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function dc(e,t){return t=js({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function js(e,t){return e=kt(22,e,null,t),e.lanes=0,e}function hc(e,t,n){return na(t,e.child,null,n),e=dc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qm(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Ro(e.return,t,n)}function mc(e,t,n,a,u,o){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:u,treeForkCount:o}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=n,h.tailMode=u,h.treeForkCount=o)}function Hm(e,t,n){var a=t.pendingProps,u=a.revealOrder,o=a.tail;a=a.children;var h=$e.current,b=(h&2)!==0;if(b?(h=h&1|2,t.flags|=128):h&=1,I($e,h),ct(e,t,a,n),a=we?Vr:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qm(e,n,t);else if(e.tag===19)qm(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}switch(u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&Es(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),mc(t,!1,u,n,o,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Es(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}mc(t,!0,n,null,o,a);break;case"together":mc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function jn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),gl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(qa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=Mn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Mn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ps(e)))}function Ub(e,t,n){switch(t.tag){case 3:vt(t,t.stateNode.containerInfo),sl(t,Pe,e.memoizedState.cache),$l();break;case 27:case 5:Or(t);break;case 4:vt(t,t.stateNode.containerInfo);break;case 10:sl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ko(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(fl(t),t.flags|=128,null):(n&t.child.childLanes)!==0?jm(e,t,n):(fl(t),e=jn(e,t,n),e!==null?e.sibling:null);fl(t);break;case 19:var u=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(qa(e,t,n,!1),a=(n&t.childLanes)!==0),u){if(a)return Hm(e,t,n);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),I($e,$e.current),a)break;return null;case 22:return t.lanes=0,Mm(e,t,n,t.pendingProps);case 24:sl(t,Pe,e.memoizedState.cache)}return jn(e,t,n)}function Bm(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)et=!0;else{if(!gc(e,n)&&(t.flags&128)===0)return et=!1,Ub(e,t,n);et=(e.flags&131072)!==0}else et=!1,we&&(t.flags&1048576)!==0&&vh(t,Vr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ea(t.elementType),t.type=e,typeof e=="function")xo(e)?(a=aa(e,a),t.tag=1,t=Um(null,t,e,a,n)):(t.tag=0,t=uc(null,t,e,a,n));else{if(e!=null){var u=e.$$typeof;if(u===Q){t.tag=11,t=Am(null,t,e,a,n);break e}else if(u===K){t.tag=14,t=Rm(null,t,e,a,n);break e}}throw t=Ye(e)||e,Error(s(306,t,""))}}return t;case 0:return uc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,u=aa(a,t.pendingProps),Um(e,t,a,u,n);case 3:e:{if(vt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var o=t.memoizedState;u=o.element,Lo(e,t),Pr(t,a,null,n);var h=t.memoizedState;if(a=h.cache,sl(t,Pe,a),a!==o.cache&&Oo(t,[Pe],n,!0),Wr(),a=h.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Lm(e,t,a,n);break e}else if(a!==u){u=Pt(Error(s(424)),t),Xr(u),t=Lm(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ke=ln(e.firstChild),ut=t,we=!0,rl=null,tn=!0,n=Mh(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if($l(),a===u){t=jn(e,t,n);break e}ct(e,t,a,n)}t=t.child}return t;case 26:return Ls(e,t),e===null?(n=$g(t.type,null,t.pendingProps,null))?t.memoizedState=n:we||(n=t.type,e=t.pendingProps,a=Ps(ye.current).createElement(n),a[st]=t,a[Ct]=e,ft(a,n,e),at(a),t.stateNode=a):t.memoizedState=$g(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Or(t),e===null&&we&&(a=t.stateNode=Zg(t.type,t.pendingProps,ye.current),ut=t,tn=!0,u=ke,xl(t.type)?(Jc=u,ke=ln(a.firstChild)):ke=u),ct(e,t,t.pendingProps.children,n),Ls(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&we&&((u=a=ke)&&(a=c1(a,t.type,t.pendingProps,tn),a!==null?(t.stateNode=a,ut=t,ke=ln(a.firstChild),tn=!1,u=!0):u=!1),u||il(t)),Or(t),u=t.type,o=t.pendingProps,h=e!==null?e.memoizedProps:null,a=o.children,Yc(u,o)?a=null:h!==null&&Yc(u,h)&&(t.flags|=32),t.memoizedState!==null&&(u=Go(e,t,Tb,null,null,n),yi._currentValue=u),Ls(e,t),ct(e,t,a,n),t.child;case 6:return e===null&&we&&((e=n=ke)&&(n=f1(n,t.pendingProps,tn),n!==null?(t.stateNode=n,ut=t,ke=null,e=!0):e=!1),e||il(t)),null;case 13:return jm(e,t,n);case 4:return vt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=na(t,null,a,n):ct(e,t,a,n),t.child;case 11:return Am(e,t,t.type,t.pendingProps,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,sl(t,t.type,a.value),ct(e,t,a.children,n),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,Pl(t),u=ot(u),a=a(u),t.flags|=1,ct(e,t,a,n),t.child;case 14:return Rm(e,t,t.type,t.pendingProps,n);case 15:return Om(e,t,t.type,t.pendingProps,n);case 19:return Hm(e,t,n);case 31:return _b(e,t,n);case 22:return Mm(e,t,n,t.pendingProps);case 24:return Pl(t),a=ot(Pe),e===null?(u=Do(),u===null&&(u=He,o=Mo(),u.pooledCache=o,o.refCount++,o!==null&&(u.pooledCacheLanes|=n),u=o),t.memoizedState={parent:a,cache:u},Uo(t),sl(t,Pe,u)):((e.lanes&n)!==0&&(Lo(e,t),Pr(t,null,null,n),Wr()),u=e.memoizedState,o=t.memoizedState,u.parent!==a?(u={parent:a,cache:a},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),sl(t,Pe,a)):(a=o.cache,sl(t,Pe,a),a!==u.cache&&Oo(t,[Pe],n,!0))),ct(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function qn(e){e.flags|=4}function pc(e,t,n,a,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(dg())e.flags|=8192;else throw ta=xs,_o}else e.flags&=-16777217}function km(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!tp(t))if(dg())e.flags|=8192;else throw ta=xs,_o}function qs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?bd():536870912,e.lanes|=t,Fa|=t)}function ai(e,t){if(!we)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var u=e.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Lb(e,t,n){var a=t.pendingProps;switch(Eo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return Qe(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),_n(Pe),Fe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ja(t)?qn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Co())),Qe(t),null;case 26:var u=t.type,o=t.memoizedState;return e===null?(qn(t),o!==null?(Qe(t),km(t,o)):(Qe(t),pc(t,u,null,a,n))):o?o!==e.memoizedState?(qn(t),Qe(t),km(t,o)):(Qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&qn(t),Qe(t),pc(t,u,e,a,n)),null;case 27:if(Ji(t),n=ye.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&qn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Qe(t),null}e=te.current,ja(t)?bh(t):(e=Zg(u,a,n),t.stateNode=e,qn(t))}return Qe(t),null;case 5:if(Ji(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&qn(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Qe(t),null}if(o=te.current,ja(t))bh(t);else{var h=Ps(ye.current);switch(o){case 1:o=h.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:o=h.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":o=h.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":o=h.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":o=h.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?h.createElement(u,{is:a.is}):h.createElement(u)}}o[st]=t,o[Ct]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)o.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=o;e:switch(ft(o,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&qn(t)}}return Qe(t),pc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&qn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ye.current,ja(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,u=ut,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}e[st]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||jg(e.nodeValue,n)),e||il(t,!0)}else e=Ps(e).createTextNode(a),e[st]=t,t.stateNode=e}return Qe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=ja(t),n!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[st]=t}else $l(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),e=!1}else n=Co(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Gt(t),t):(Gt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=ja(t),a!==null&&a.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[st]=t}else $l(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),u=!1}else u=Co(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Gt(t),t):(Gt(t),null)}return Gt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==u&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),qs(t,t.updateQueue),Qe(t),null);case 4:return Fe(),e===null&&Hc(t.stateNode.containerInfo),Qe(t),null;case 10:return _n(t.type),Qe(t),null;case 19:if(V($e),a=t.memoizedState,a===null)return Qe(t),null;if(u=(t.flags&128)!==0,o=a.rendering,o===null)if(u)ai(a,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Es(e),o!==null){for(t.flags|=128,ai(a,!1),e=o.updateQueue,t.updateQueue=e,qs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)mh(n,e),n=n.sibling;return I($e,$e.current&1|2),we&&zn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&jt()>Gs&&(t.flags|=128,u=!0,ai(a,!1),t.lanes=4194304)}else{if(!u)if(e=Es(o),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,qs(t,e),ai(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!we)return Qe(t),null}else 2*jt()-a.renderingStartTime>Gs&&n!==536870912&&(t.flags|=128,u=!0,ai(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(e=a.last,e!==null?e.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=jt(),e.sibling=null,n=$e.current,I($e,u?n&1|2:n&1),we&&zn(t,a.treeForkCount),e):(Qe(t),null);case 22:case 23:return Gt(t),Bo(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),n=t.updateQueue,n!==null&&qs(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&V(Il),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_n(Pe),Qe(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function jb(e,t){switch(Eo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _n(Pe),Fe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ji(t),null;case 31:if(t.memoizedState!==null){if(Gt(t),t.alternate===null)throw Error(s(340));$l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));$l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V($e),null;case 4:return Fe(),null;case 10:return _n(t.type),null;case 22:case 23:return Gt(t),Bo(),e!==null&&V(Il),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _n(Pe),null;case 25:return null;default:return null}}function Qm(e,t){switch(Eo(t),t.tag){case 3:_n(Pe),Fe();break;case 26:case 27:case 5:Ji(t);break;case 4:Fe();break;case 31:t.memoizedState!==null&&Gt(t);break;case 13:Gt(t);break;case 19:V($e);break;case 10:_n(t.type);break;case 22:case 23:Gt(t),Bo(),e!==null&&V(Il);break;case 24:_n(Pe)}}function ri(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&e)===e){a=void 0;var o=n.create,h=n.inst;a=o(),h.destroy=a}n=n.next}while(n!==u)}}catch(b){_e(t,t.return,b)}}function hl(e,t,n){try{var a=t.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var o=u.next;a=o;do{if((a.tag&e)===e){var h=a.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,u=t;var T=n,U=b;try{U()}catch(X){_e(u,T,X)}}}a=a.next}while(a!==o)}}catch(X){_e(t,t.return,X)}}function Gm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Dh(t,n)}catch(a){_e(e,e.return,a)}}}function Ym(e,t,n){n.props=aa(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){_e(e,t,a)}}function ii(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(u){_e(e,t,u)}}function bn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){_e(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){_e(e,t,u)}else n.current=null}function Vm(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(u){_e(e,e.return,u)}}function vc(e,t,n){try{var a=e.stateNode;a1(a,e.type,n,t),a[Ct]=t}catch(u){_e(e,e.return,u)}}function Xm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&xl(e.type)||e.tag===4}function yc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xm(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.tag===27&&xl(e.type)||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 bc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Rn));else if(a!==4&&(a===27&&xl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(bc(e,t,n),e=e.sibling;e!==null;)bc(e,t,n),e=e.sibling}function Hs(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&xl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Hs(e,t,n),e=e.sibling;e!==null;)Hs(e,t,n),e=e.sibling}function Km(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);ft(t,a,n),t[st]=e,t[Ct]=n}catch(o){_e(e,e.return,o)}}var Hn=!1,tt=!1,xc=!1,Zm=typeof WeakSet=="function"?WeakSet:Set,rt=null;function qb(e,t){if(e=e.containerInfo,Qc=ru,e=rh(e),ho(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var u=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var h=0,b=-1,T=-1,U=0,X=0,J=e,q=null;t:for(;;){for(var G;J!==n||u!==0&&J.nodeType!==3||(b=h+u),J!==o||a!==0&&J.nodeType!==3||(T=h+a),J.nodeType===3&&(h+=J.nodeValue.length),(G=J.firstChild)!==null;)q=J,J=G;for(;;){if(J===e)break t;if(q===n&&++U===u&&(b=h),q===o&&++X===a&&(T=h),(G=J.nextSibling)!==null)break;J=q,q=J.parentNode}J=G}n=b===-1||T===-1?null:{start:b,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(Gc={focusedElem:e,selectionRange:n},ru=!1,rt=t;rt!==null;)if(t=rt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,rt=e;else for(;rt!==null;){switch(t=rt,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)u=e[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,u=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var ne=aa(n.type,u);e=a.getSnapshotBeforeUpdate(ne,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(ce){_e(n,n.return,ce)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Xc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Xc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,rt=e;break}rt=t.return}}function Jm(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:kn(e,n),a&4&&ri(5,n);break;case 1:if(kn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){_e(n,n.return,h)}else{var u=aa(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){_e(n,n.return,h)}}a&64&&Gm(n),a&512&&ii(n,n.return);break;case 3:if(kn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Dh(e,t)}catch(h){_e(n,n.return,h)}}break;case 27:t===null&&a&4&&Km(n);case 26:case 5:kn(e,n),t===null&&a&4&&Vm(n),a&512&&ii(n,n.return);break;case 12:kn(e,n);break;case 31:kn(e,n),a&4&&Wm(e,n);break;case 13:kn(e,n),a&4&&Pm(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Kb.bind(null,n),d1(e,n))));break;case 22:if(a=n.memoizedState!==null||Hn,!a){t=t!==null&&t.memoizedState!==null||tt,u=Hn;var o=tt;Hn=a,(tt=t)&&!o?Qn(e,n,(n.subtreeFlags&8772)!==0):kn(e,n),Hn=u,tt=o}break;case 30:break;default:kn(e,n)}}function Fm(e){var t=e.alternate;t!==null&&(e.alternate=null,Fm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Fu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ve=null,Rt=!1;function Bn(e,t,n){for(n=n.child;n!==null;)$m(e,t,n),n=n.sibling}function $m(e,t,n){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(Mr,n)}catch{}switch(n.tag){case 26:tt||bn(n,t),Bn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:tt||bn(n,t);var a=Ve,u=Rt;xl(n.type)&&(Ve=n.stateNode,Rt=!1),Bn(e,t,n),gi(n.stateNode),Ve=a,Rt=u;break;case 5:tt||bn(n,t);case 6:if(a=Ve,u=Rt,Ve=null,Bn(e,t,n),Ve=a,Rt=u,Ve!==null)if(Rt)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(n.stateNode)}catch(o){_e(n,t,o)}else try{Ve.removeChild(n.stateNode)}catch(o){_e(n,t,o)}break;case 18:Ve!==null&&(Rt?(e=Ve,Gg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),lr(e)):Gg(Ve,n.stateNode));break;case 4:a=Ve,u=Rt,Ve=n.stateNode.containerInfo,Rt=!0,Bn(e,t,n),Ve=a,Rt=u;break;case 0:case 11:case 14:case 15:hl(2,n,t),tt||hl(4,n,t),Bn(e,t,n);break;case 1:tt||(bn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Ym(n,t,a)),Bn(e,t,n);break;case 21:Bn(e,t,n);break;case 22:tt=(a=tt)||n.memoizedState!==null,Bn(e,t,n),tt=a;break;default:Bn(e,t,n)}}function Wm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{lr(e)}catch(n){_e(t,t.return,n)}}}function Pm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{lr(e)}catch(n){_e(t,t.return,n)}}function Hb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Zm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Zm),t;default:throw Error(s(435,e.tag))}}function Bs(e,t){var n=Hb(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var u=Zb.bind(null,e,a);a.then(u,u)}})}function Ot(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],o=e,h=t,b=h;e:for(;b!==null;){switch(b.tag){case 27:if(xl(b.type)){Ve=b.stateNode,Rt=!1;break e}break;case 5:Ve=b.stateNode,Rt=!1;break e;case 3:case 4:Ve=b.stateNode.containerInfo,Rt=!0;break e}b=b.return}if(Ve===null)throw Error(s(160));$m(o,h,u),Ve=null,Rt=!1,o=u.alternate,o!==null&&(o.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Im(t,e),t=t.sibling}var fn=null;function Im(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ot(t,e),Mt(e),a&4&&(hl(3,e,e.return),ri(3,e),hl(5,e,e.return));break;case 1:Ot(t,e),Mt(e),a&512&&(tt||n===null||bn(n,n.return)),a&64&&Hn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var u=fn;if(Ot(t,e),Mt(e),a&512&&(tt||n===null||bn(n,n.return)),a&4){var o=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,u=u.ownerDocument||u;t:switch(a){case"title":o=u.getElementsByTagName("title")[0],(!o||o[_r]||o[st]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=u.createElement(a),u.head.insertBefore(o,u.querySelector("head > title"))),ft(o,a,n),o[st]=e,at(o),a=o;break e;case"link":var h=Ig("link","href",u).get(a+(n.href||""));if(h){for(var b=0;b<h.length;b++)if(o=h[b],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(b,1);break t}}o=u.createElement(a),ft(o,a,n),u.head.appendChild(o);break;case"meta":if(h=Ig("meta","content",u).get(a+(n.content||""))){for(b=0;b<h.length;b++)if(o=h[b],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(b,1);break t}}o=u.createElement(a),ft(o,a,n),u.head.appendChild(o);break;default:throw Error(s(468,a))}o[st]=e,at(o),a=o}e.stateNode=a}else ep(u,e.type,e.stateNode);else e.stateNode=Pg(u,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?ep(u,e.type,e.stateNode):Pg(u,a,e.memoizedProps)):a===null&&e.stateNode!==null&&vc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Ot(t,e),Mt(e),a&512&&(tt||n===null||bn(n,n.return)),n!==null&&a&4&&vc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ot(t,e),Mt(e),a&512&&(tt||n===null||bn(n,n.return)),e.flags&32){u=e.stateNode;try{Ca(u,"")}catch(ne){_e(e,e.return,ne)}}a&4&&e.stateNode!=null&&(u=e.memoizedProps,vc(e,u,n!==null?n.memoizedProps:u)),a&1024&&(xc=!0);break;case 6:if(Ot(t,e),Mt(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(ne){_e(e,e.return,ne)}}break;case 3:if(tu=null,u=fn,fn=Is(t.containerInfo),Ot(t,e),fn=u,Mt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{lr(t.containerInfo)}catch(ne){_e(e,e.return,ne)}xc&&(xc=!1,eg(e));break;case 4:a=fn,fn=Is(e.stateNode.containerInfo),Ot(t,e),Mt(e),fn=a;break;case 12:Ot(t,e),Mt(e);break;case 31:Ot(t,e),Mt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bs(e,a)));break;case 13:Ot(t,e),Mt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Qs=jt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bs(e,a)));break;case 22:u=e.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,U=Hn,X=tt;if(Hn=U||u,tt=X||T,Ot(t,e),tt=X,Hn=U,Mt(e),a&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(n===null||T||Hn||tt||ra(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){T=n=t;try{if(o=T.stateNode,u)h=o.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{b=T.stateNode;var J=T.memoizedProps.style,q=J!=null&&J.hasOwnProperty("display")?J.display:null;b.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(ne){_e(T,T.return,ne)}}}else if(t.tag===6){if(n===null){T=t;try{T.stateNode.nodeValue=u?"":T.memoizedProps}catch(ne){_e(T,T.return,ne)}}}else if(t.tag===18){if(n===null){T=t;try{var G=T.stateNode;u?Yg(G,!0):Yg(T.stateNode,!1)}catch(ne){_e(T,T.return,ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Bs(e,n))));break;case 19:Ot(t,e),Mt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bs(e,a)));break;case 30:break;case 21:break;default:Ot(t,e),Mt(e)}}function Mt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Xm(a)){n=a;break}a=a.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var u=n.stateNode,o=yc(e);Hs(e,o,u);break;case 5:var h=n.stateNode;n.flags&32&&(Ca(h,""),n.flags&=-33);var b=yc(e);Hs(e,b,h);break;case 3:case 4:var T=n.stateNode.containerInfo,U=yc(e);bc(e,U,T);break;default:throw Error(s(161))}}catch(X){_e(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function eg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;eg(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function kn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Jm(e,t.alternate,t),t=t.sibling}function ra(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:hl(4,t,t.return),ra(t);break;case 1:bn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Ym(t,t.return,n),ra(t);break;case 27:gi(t.stateNode);case 26:case 5:bn(t,t.return),ra(t);break;case 22:t.memoizedState===null&&ra(t);break;case 30:ra(t);break;default:ra(t)}e=e.sibling}}function Qn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,u=e,o=t,h=o.flags;switch(o.tag){case 0:case 11:case 15:Qn(u,o,n),ri(4,o);break;case 1:if(Qn(u,o,n),a=o,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(U){_e(a,a.return,U)}if(a=o,u=a.updateQueue,u!==null){var b=a.stateNode;try{var T=u.shared.hiddenCallbacks;if(T!==null)for(u.shared.hiddenCallbacks=null,u=0;u<T.length;u++)zh(T[u],b)}catch(U){_e(a,a.return,U)}}n&&h&64&&Gm(o),ii(o,o.return);break;case 27:Km(o);case 26:case 5:Qn(u,o,n),n&&a===null&&h&4&&Vm(o),ii(o,o.return);break;case 12:Qn(u,o,n);break;case 31:Qn(u,o,n),n&&h&4&&Wm(u,o);break;case 13:Qn(u,o,n),n&&h&4&&Pm(u,o);break;case 22:o.memoizedState===null&&Qn(u,o,n),ii(o,o.return);break;case 30:break;default:Qn(u,o,n)}t=t.sibling}}function Sc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Kr(n))}function Nc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Kr(e))}function dn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)tg(e,t,n,a),t=t.sibling}function tg(e,t,n,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:dn(e,t,n,a),u&2048&&ri(9,t);break;case 1:dn(e,t,n,a);break;case 3:dn(e,t,n,a),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Kr(e)));break;case 12:if(u&2048){dn(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,h=o.id,b=o.onPostCommit;typeof b=="function"&&b(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){_e(t,t.return,T)}}else dn(e,t,n,a);break;case 31:dn(e,t,n,a);break;case 13:dn(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,h=t.alternate,t.memoizedState!==null?o._visibility&2?dn(e,t,n,a):si(e,t):o._visibility&2?dn(e,t,n,a):(o._visibility|=2,Ka(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Sc(h,t);break;case 24:dn(e,t,n,a),u&2048&&Nc(t.alternate,t);break;default:dn(e,t,n,a)}}function Ka(e,t,n,a,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,h=t,b=n,T=a,U=h.flags;switch(h.tag){case 0:case 11:case 15:Ka(o,h,b,T,u),ri(8,h);break;case 23:break;case 22:var X=h.stateNode;h.memoizedState!==null?X._visibility&2?Ka(o,h,b,T,u):si(o,h):(X._visibility|=2,Ka(o,h,b,T,u)),u&&U&2048&&Sc(h.alternate,h);break;case 24:Ka(o,h,b,T,u),u&&U&2048&&Nc(h.alternate,h);break;default:Ka(o,h,b,T,u)}t=t.sibling}}function si(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,u=a.flags;switch(a.tag){case 22:si(n,a),u&2048&&Sc(a.alternate,a);break;case 24:si(n,a),u&2048&&Nc(a.alternate,a);break;default:si(n,a)}t=t.sibling}}var ui=8192;function Za(e,t,n){if(e.subtreeFlags&ui)for(e=e.child;e!==null;)ng(e,t,n),e=e.sibling}function ng(e,t,n){switch(e.tag){case 26:Za(e,t,n),e.flags&ui&&e.memoizedState!==null&&E1(n,fn,e.memoizedState,e.memoizedProps);break;case 5:Za(e,t,n);break;case 3:case 4:var a=fn;fn=Is(e.stateNode.containerInfo),Za(e,t,n),fn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ui,ui=16777216,Za(e,t,n),ui=a):Za(e,t,n));break;default:Za(e,t,n)}}function lg(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function oi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];rt=a,rg(a,e)}lg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ag(e),e=e.sibling}function ag(e){switch(e.tag){case 0:case 11:case 15:oi(e),e.flags&2048&&hl(9,e,e.return);break;case 3:oi(e);break;case 12:oi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ks(e)):oi(e);break;default:oi(e)}}function ks(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];rt=a,rg(a,e)}lg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:hl(8,t,t.return),ks(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ks(t));break;default:ks(t)}e=e.sibling}}function rg(e,t){for(;rt!==null;){var n=rt;switch(n.tag){case 0:case 11:case 15:hl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Kr(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,rt=a;else e:for(n=e;rt!==null;){a=rt;var u=a.sibling,o=a.return;if(Fm(a),a===n){rt=null;break e}if(u!==null){u.return=o,rt=u;break e}rt=o}}}var Bb={getCacheForType:function(e){var t=ot(Pe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ot(Pe).controller.signal}},kb=typeof WeakMap=="function"?WeakMap:Map,Re=0,He=null,be=null,Se=0,De=0,Yt=null,ml=!1,Ja=!1,wc=!1,Gn=0,Ze=0,gl=0,ia=0,Ec=0,Vt=0,Fa=0,ci=null,zt=null,Tc=!1,Qs=0,ig=0,Gs=1/0,Ys=null,pl=null,nt=0,vl=null,$a=null,Yn=0,Cc=0,Ac=null,sg=null,fi=0,Rc=null;function Xt(){return(Re&2)!==0&&Se!==0?Se&-Se:D.T!==null?Uc():wd()}function ug(){if(Vt===0)if((Se&536870912)===0||we){var e=Wi;Wi<<=1,(Wi&3932160)===0&&(Wi=262144),Vt=e}else Vt=536870912;return e=Qt.current,e!==null&&(e.flags|=32),Vt}function Dt(e,t,n){(e===He&&(De===2||De===9)||e.cancelPendingCommit!==null)&&(Wa(e,0),yl(e,Se,Vt,!1)),Dr(e,n),((Re&2)===0||e!==He)&&(e===He&&((Re&2)===0&&(ia|=n),Ze===4&&yl(e,Se,Vt,!1)),xn(e))}function og(e,t,n){if((Re&6)!==0)throw Error(s(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||zr(e,t),u=a?Yb(e,t):Mc(e,t,!0),o=a;do{if(u===0){Ja&&!a&&yl(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Qb(n)){u=Mc(e,t,!1),o=!1;continue}if(u===2){if(o=t,e.errorRecoveryDisabledLanes&o)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var b=e;u=ci;var T=b.current.memoizedState.isDehydrated;if(T&&(Wa(b,h).flags|=256),h=Mc(b,h,!1),h!==2){if(wc&&!T){b.errorRecoveryDisabledLanes|=o,ia|=o,u=4;break e}o=zt,zt=u,o!==null&&(zt===null?zt=o:zt.push.apply(zt,o))}u=h}if(o=!1,u!==2)continue}}if(u===1){Wa(e,0),yl(e,t,0,!0);break}e:{switch(a=e,o=u,o){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:yl(a,t,Vt,!ml);break e;case 2:zt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=Qs+300-jt(),10<u)){if(yl(a,t,Vt,!ml),Ii(a,0,!0)!==0)break e;Yn=t,a.timeoutHandle=kg(cg.bind(null,a,n,zt,Ys,Tc,t,Vt,ia,Fa,ml,o,"Throttled",-0,0),u);break e}cg(a,n,zt,Ys,Tc,t,Vt,ia,Fa,ml,o,null,-0,0)}}break}while(!0);xn(e)}function cg(e,t,n,a,u,o,h,b,T,U,X,J,q,G){if(e.timeoutHandle=-1,J=t.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Rn},ng(t,o,J);var ne=(o&62914560)===o?Qs-jt():(o&4194048)===o?ig-jt():0;if(ne=T1(J,ne),ne!==null){Yn=o,e.cancelPendingCommit=ne(yg.bind(null,e,t,o,n,a,u,h,b,T,X,J,null,q,G)),yl(e,o,h,!U);return}}yg(e,t,o,n,a,u,h,b,T)}function Qb(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var u=n[a],o=u.getSnapshot;u=u.value;try{if(!Bt(o(),u))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yl(e,t,n,a){t&=~Ec,t&=~ia,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var u=t;0<u;){var o=31-Ht(u),h=1<<o;a[o]=-1,u&=~h}n!==0&&xd(e,n,t)}function Vs(){return(Re&6)===0?(di(0),!1):!0}function Oc(){if(be!==null){if(De===0)var e=be.return;else e=be,Dn=Wl=null,Xo(e),Qa=null,Jr=0,e=be;for(;e!==null;)Qm(e.alternate,e),e=e.return;be=null}}function Wa(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,s1(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Yn=0,Oc(),He=e,be=n=Mn(e.current,null),Se=t,De=0,Yt=null,ml=!1,Ja=zr(e,t),wc=!1,Fa=Vt=Ec=ia=gl=Ze=0,zt=ci=null,Tc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var u=31-Ht(a),o=1<<u;t|=e[u],a&=~o}return Gn=t,fs(),n}function fg(e,t){he=null,D.H=ni,t===ka||t===bs?(t=Ah(),De=3):t===_o?(t=Ah(),De=4):De=t===sc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Yt=t,be===null&&(Ze=1,_s(e,Pt(t,e.current)))}function dg(){var e=Qt.current;return e===null?!0:(Se&4194048)===Se?nn===null:(Se&62914560)===Se||(Se&536870912)!==0?e===nn:!1}function hg(){var e=D.H;return D.H=ni,e===null?ni:e}function mg(){var e=D.A;return D.A=Bb,e}function Xs(){Ze=4,ml||(Se&4194048)!==Se&&Qt.current!==null||(Ja=!0),(gl&134217727)===0&&(ia&134217727)===0||He===null||yl(He,Se,Vt,!1)}function Mc(e,t,n){var a=Re;Re|=2;var u=hg(),o=mg();(He!==e||Se!==t)&&(Ys=null,Wa(e,t)),t=!1;var h=Ze;e:do try{if(De!==0&&be!==null){var b=be,T=Yt;switch(De){case 8:Oc(),h=6;break e;case 3:case 2:case 9:case 6:Qt.current===null&&(t=!0);var U=De;if(De=0,Yt=null,Pa(e,b,T,U),n&&Ja){h=0;break e}break;default:U=De,De=0,Yt=null,Pa(e,b,T,U)}}Gb(),h=Ze;break}catch(X){fg(e,X)}while(!0);return t&&e.shellSuspendCounter++,Dn=Wl=null,Re=a,D.H=u,D.A=o,be===null&&(He=null,Se=0,fs()),h}function Gb(){for(;be!==null;)gg(be)}function Yb(e,t){var n=Re;Re|=2;var a=hg(),u=mg();He!==e||Se!==t?(Ys=null,Gs=jt()+500,Wa(e,t)):Ja=zr(e,t);e:do try{if(De!==0&&be!==null){t=be;var o=Yt;t:switch(De){case 1:De=0,Yt=null,Pa(e,t,o,1);break;case 2:case 9:if(Th(o)){De=0,Yt=null,pg(t);break}t=function(){De!==2&&De!==9||He!==e||(De=7),xn(e)},o.then(t,t);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:Th(o)?(De=0,Yt=null,pg(t)):(De=0,Yt=null,Pa(e,t,o,7));break;case 5:var h=null;switch(be.tag){case 26:h=be.memoizedState;case 5:case 27:var b=be;if(h?tp(h):b.stateNode.complete){De=0,Yt=null;var T=b.sibling;if(T!==null)be=T;else{var U=b.return;U!==null?(be=U,Ks(U)):be=null}break t}}De=0,Yt=null,Pa(e,t,o,5);break;case 6:De=0,Yt=null,Pa(e,t,o,6);break;case 8:Oc(),Ze=6;break e;default:throw Error(s(462))}}Vb();break}catch(X){fg(e,X)}while(!0);return Dn=Wl=null,D.H=a,D.A=u,Re=n,be!==null?0:(He=null,Se=0,fs(),Ze)}function Vb(){for(;be!==null&&!h0();)gg(be)}function gg(e){var t=Bm(e.alternate,e,Gn);e.memoizedProps=e.pendingProps,t===null?Ks(e):be=t}function pg(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=_m(n,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=_m(n,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:Xo(t);default:Qm(n,t),t=be=mh(t,Gn),t=Bm(n,t,Gn)}e.memoizedProps=e.pendingProps,t===null?Ks(e):be=t}function Pa(e,t,n,a){Dn=Wl=null,Xo(t),Qa=null,Jr=0;var u=t.return;try{if(Db(e,u,t,n,Se)){Ze=1,_s(e,Pt(n,e.current)),be=null;return}}catch(o){if(u!==null)throw be=u,o;Ze=1,_s(e,Pt(n,e.current)),be=null;return}t.flags&32768?(we||a===1?e=!0:Ja||(Se&536870912)!==0?e=!1:(ml=e=!0,(a===2||a===9||a===3||a===6)&&(a=Qt.current,a!==null&&a.tag===13&&(a.flags|=16384))),vg(t,e)):Ks(t)}function Ks(e){var t=e;do{if((t.flags&32768)!==0){vg(t,ml);return}e=t.return;var n=Lb(t.alternate,t,Gn);if(n!==null){be=n;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);Ze===0&&(Ze=5)}function vg(e,t){do{var n=jb(e.alternate,e);if(n!==null){n.flags&=32767,be=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){be=e;return}be=e=n}while(e!==null);Ze=6,be=null}function yg(e,t,n,a,u,o,h,b,T){e.cancelPendingCommit=null;do Zs();while(nt!==0);if((Re&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(o=t.lanes|t.childLanes,o|=yo,w0(e,n,o,h,b,T),e===He&&(be=He=null,Se=0),$a=t,vl=e,Yn=n,Cc=o,Ac=u,sg=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Jb(Fi,function(){return wg(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,u=$.p,$.p=2,h=Re,Re|=4;try{qb(e,t,n)}finally{Re=h,$.p=u,D.T=a}}nt=1,bg(),xg(),Sg()}}function bg(){if(nt===1){nt=0;var e=vl,t=$a,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null;var a=$.p;$.p=2;var u=Re;Re|=4;try{Im(t,e);var o=Gc,h=rh(e.containerInfo),b=o.focusedElem,T=o.selectionRange;if(h!==b&&b&&b.ownerDocument&&ah(b.ownerDocument.documentElement,b)){if(T!==null&&ho(b)){var U=T.start,X=T.end;if(X===void 0&&(X=U),"selectionStart"in b)b.selectionStart=U,b.selectionEnd=Math.min(X,b.value.length);else{var J=b.ownerDocument||document,q=J&&J.defaultView||window;if(q.getSelection){var G=q.getSelection(),ne=b.textContent.length,ce=Math.min(T.start,ne),je=T.end===void 0?ce:Math.min(T.end,ne);!G.extend&&ce>je&&(h=je,je=ce,ce=h);var z=lh(b,ce),A=lh(b,je);if(z&&A&&(G.rangeCount!==1||G.anchorNode!==z.node||G.anchorOffset!==z.offset||G.focusNode!==A.node||G.focusOffset!==A.offset)){var _=J.createRange();_.setStart(z.node,z.offset),G.removeAllRanges(),ce>je?(G.addRange(_),G.extend(A.node,A.offset)):(_.setEnd(A.node,A.offset),G.addRange(_))}}}}for(J=[],G=b;G=G.parentNode;)G.nodeType===1&&J.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<J.length;b++){var Z=J[b];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}ru=!!Qc,Gc=Qc=null}finally{Re=u,$.p=a,D.T=n}}e.current=t,nt=2}}function xg(){if(nt===2){nt=0;var e=vl,t=$a,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=D.T,D.T=null;var a=$.p;$.p=2;var u=Re;Re|=4;try{Jm(e,t.alternate,t)}finally{Re=u,$.p=a,D.T=n}}nt=3}}function Sg(){if(nt===4||nt===3){nt=0,m0();var e=vl,t=$a,n=Yn,a=sg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,$a=vl=null,Ng(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(pl=null),Zu(n),t=t.stateNode,qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(Mr,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,u=$.p,$.p=2,D.T=null;try{for(var o=e.onRecoverableError,h=0;h<a.length;h++){var b=a[h];o(b.value,{componentStack:b.stack})}}finally{D.T=t,$.p=u}}(Yn&3)!==0&&Zs(),xn(e),u=e.pendingLanes,(n&261930)!==0&&(u&42)!==0?e===Rc?fi++:(fi=0,Rc=e):fi=0,di(0)}}function Ng(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Kr(t)))}function Zs(){return bg(),xg(),Sg(),wg()}function wg(){if(nt!==5)return!1;var e=vl,t=Cc;Cc=0;var n=Zu(Yn),a=D.T,u=$.p;try{$.p=32>n?32:n,D.T=null,n=Ac,Ac=null;var o=vl,h=Yn;if(nt=0,$a=vl=null,Yn=0,(Re&6)!==0)throw Error(s(331));var b=Re;if(Re|=4,ag(o.current),tg(o,o.current,h,n),Re=b,di(0,!1),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(Mr,o)}catch{}return!0}finally{$.p=u,D.T=a,Ng(e,t)}}function Eg(e,t,n){t=Pt(n,t),t=ic(e.stateNode,t,2),e=cl(e,t,2),e!==null&&(Dr(e,2),xn(e))}function _e(e,t,n){if(e.tag===3)Eg(e,e,n);else for(;t!==null;){if(t.tag===3){Eg(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(pl===null||!pl.has(a))){e=Pt(n,e),n=Tm(2),a=cl(t,n,2),a!==null&&(Cm(n,a,t,e),Dr(a,2),xn(a));break}}t=t.return}}function zc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new kb;var u=new Set;a.set(t,u)}else u=a.get(t),u===void 0&&(u=new Set,a.set(t,u));u.has(n)||(wc=!0,u.add(n),e=Xb.bind(null,e,t,n),t.then(e,e))}function Xb(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,He===e&&(Se&n)===n&&(Ze===4||Ze===3&&(Se&62914560)===Se&&300>jt()-Qs?(Re&2)===0&&Wa(e,0):Ec|=n,Fa===Se&&(Fa=0)),xn(e)}function Tg(e,t){t===0&&(t=bd()),e=Jl(e,t),e!==null&&(Dr(e,t),xn(e))}function Kb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Tg(e,n)}function Zb(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,u=e.memoizedState;u!==null&&(n=u.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),Tg(e,n)}function Jb(e,t){return Yu(e,t)}var Js=null,Ia=null,Dc=!1,Fs=!1,_c=!1,bl=0;function xn(e){e!==Ia&&e.next===null&&(Ia===null?Js=Ia=e:Ia=Ia.next=e),Fs=!0,Dc||(Dc=!0,$b())}function di(e,t){if(!_c&&Fs){_c=!0;do for(var n=!1,a=Js;a!==null;){if(e!==0){var u=a.pendingLanes;if(u===0)var o=0;else{var h=a.suspendedLanes,b=a.pingedLanes;o=(1<<31-Ht(42|e)+1)-1,o&=u&~(h&~b),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,Og(a,o))}else o=Se,o=Ii(a,a===He?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||zr(a,o)||(n=!0,Og(a,o));a=a.next}while(n);_c=!1}}function Fb(){Cg()}function Cg(){Fs=Dc=!1;var e=0;bl!==0&&i1()&&(e=bl);for(var t=jt(),n=null,a=Js;a!==null;){var u=a.next,o=Ag(a,t);o===0?(a.next=null,n===null?Js=u:n.next=u,u===null&&(Ia=n)):(n=a,(e!==0||(o&3)!==0)&&(Fs=!0)),a=u}nt!==0&&nt!==5||di(e),bl!==0&&(bl=0)}function Ag(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var h=31-Ht(o),b=1<<h,T=u[h];T===-1?((b&n)===0||(b&a)!==0)&&(u[h]=N0(b,t)):T<=t&&(e.expiredLanes|=b),o&=~b}if(t=He,n=Se,n=Ii(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(De===2||De===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Vu(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||zr(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Vu(a),Zu(n)){case 2:case 8:n=vd;break;case 32:n=Fi;break;case 268435456:n=yd;break;default:n=Fi}return a=Rg.bind(null,e),n=Yu(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Vu(a),e.callbackPriority=2,e.callbackNode=null,2}function Rg(e,t){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Zs()&&e.callbackNode!==n)return null;var a=Se;return a=Ii(e,e===He?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(og(e,a,t),Ag(e,jt()),e.callbackNode!=null&&e.callbackNode===n?Rg.bind(null,e):null)}function Og(e,t){if(Zs())return null;og(e,t,!0)}function $b(){u1(function(){(Re&6)!==0?Yu(pd,Fb):Cg()})}function Uc(){if(bl===0){var e=Ha;e===0&&(e=$i,$i<<=1,($i&261888)===0&&($i=256)),bl=e}return bl}function Mg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ls(""+e)}function zg(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Wb(e,t,n,a,u){if(t==="submit"&&n&&n.stateNode===u){var o=Mg((u[Ct]||null).action),h=a.submitter;h&&(t=(t=h[Ct]||null)?Mg(t.formAction):h.getAttribute("formAction"),t!==null&&(o=t,h=null));var b=new ss("action","action",null,a,u);e.push({event:b,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(bl!==0){var T=h?zg(u,h):new FormData(u);ec(n,{pending:!0,data:T,method:u.method,action:o},null,T)}}else typeof o=="function"&&(b.preventDefault(),T=h?zg(u,h):new FormData(u),ec(n,{pending:!0,data:T,method:u.method,action:o},o,T))},currentTarget:u}]})}}for(var Lc=0;Lc<vo.length;Lc++){var jc=vo[Lc],Pb=jc.toLowerCase(),Ib=jc[0].toUpperCase()+jc.slice(1);cn(Pb,"on"+Ib)}cn(uh,"onAnimationEnd"),cn(oh,"onAnimationIteration"),cn(ch,"onAnimationStart"),cn("dblclick","onDoubleClick"),cn("focusin","onFocus"),cn("focusout","onBlur"),cn(gb,"onTransitionRun"),cn(pb,"onTransitionStart"),cn(vb,"onTransitionCancel"),cn(fh,"onTransitionEnd"),Ea("onMouseEnter",["mouseout","mouseover"]),Ea("onMouseLeave",["mouseout","mouseover"]),Ea("onPointerEnter",["pointerout","pointerover"]),Ea("onPointerLeave",["pointerout","pointerover"]),Vl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Vl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Vl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Vl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Vl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Vl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),e1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hi));function Dg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],u=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var h=a.length-1;0<=h;h--){var b=a[h],T=b.instance,U=b.currentTarget;if(b=b.listener,T!==o&&u.isPropagationStopped())break e;o=b,u.currentTarget=U;try{o(u)}catch(X){cs(X)}u.currentTarget=null,o=T}else for(h=0;h<a.length;h++){if(b=a[h],T=b.instance,U=b.currentTarget,b=b.listener,T!==o&&u.isPropagationStopped())break e;o=b,u.currentTarget=U;try{o(u)}catch(X){cs(X)}u.currentTarget=null,o=T}}}}function xe(e,t){var n=t[Ju];n===void 0&&(n=t[Ju]=new Set);var a=e+"__bubble";n.has(a)||(_g(t,e,2,!1),n.add(a))}function qc(e,t,n){var a=0;t&&(a|=4),_g(n,e,a,t)}var $s="_reactListening"+Math.random().toString(36).slice(2);function Hc(e){if(!e[$s]){e[$s]=!0,Cd.forEach(function(n){n!=="selectionchange"&&(e1.has(n)||qc(n,!1,e),qc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$s]||(t[$s]=!0,qc("selectionchange",!1,t))}}function _g(e,t,n,a){switch(up(t)){case 2:var u=R1;break;case 8:u=O1;break;default:u=Ic}n=u.bind(null,t,n,e),u=void 0,!lo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function Bc(e,t,n,a,u){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var h=a.tag;if(h===3||h===4){var b=a.stateNode.containerInfo;if(b===u)break;if(h===4)for(h=a.return;h!==null;){var T=h.tag;if((T===3||T===4)&&h.stateNode.containerInfo===u)return;h=h.return}for(;b!==null;){if(h=Sa(b),h===null)return;if(T=h.tag,T===5||T===6||T===26||T===27){a=o=h;continue e}b=b.parentNode}}a=a.return}Hd(function(){var U=o,X=to(n),J=[];e:{var q=dh.get(e);if(q!==void 0){var G=ss,ne=e;switch(e){case"keypress":if(rs(n)===0)break e;case"keydown":case"keyup":G=Z0;break;case"focusin":ne="focus",G=so;break;case"focusout":ne="blur",G=so;break;case"beforeblur":case"afterblur":G=so;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=Qd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=L0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=$0;break;case uh:case oh:case ch:G=H0;break;case fh:G=P0;break;case"scroll":case"scrollend":G=_0;break;case"wheel":G=eb;break;case"copy":case"cut":case"paste":G=k0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Yd;break;case"toggle":case"beforetoggle":G=nb}var ce=(t&4)!==0,je=!ce&&(e==="scroll"||e==="scrollend"),z=ce?q!==null?q+"Capture":null:q;ce=[];for(var A=U,_;A!==null;){var Z=A;if(_=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||_===null||z===null||(Z=Lr(A,z),Z!=null&&ce.push(mi(A,Z,_))),je)break;A=A.return}0<ce.length&&(q=new G(q,ne,null,n,X),J.push({event:q,listeners:ce}))}}if((t&7)===0){e:{if(q=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",q&&n!==eo&&(ne=n.relatedTarget||n.fromElement)&&(Sa(ne)||ne[xa]))break e;if((G||q)&&(q=X.window===X?X:(q=X.ownerDocument)?q.defaultView||q.parentWindow:window,G?(ne=n.relatedTarget||n.toElement,G=U,ne=ne?Sa(ne):null,ne!==null&&(je=f(ne),ce=ne.tag,ne!==je||ce!==5&&ce!==27&&ce!==6)&&(ne=null)):(G=null,ne=U),G!==ne)){if(ce=Qd,Z="onMouseLeave",z="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(ce=Yd,Z="onPointerLeave",z="onPointerEnter",A="pointer"),je=G==null?q:Ur(G),_=ne==null?q:Ur(ne),q=new ce(Z,A+"leave",G,n,X),q.target=je,q.relatedTarget=_,Z=null,Sa(X)===U&&(ce=new ce(z,A+"enter",ne,n,X),ce.target=_,ce.relatedTarget=je,Z=ce),je=Z,G&&ne)t:{for(ce=t1,z=G,A=ne,_=0,Z=z;Z;Z=ce(Z))_++;Z=0;for(var ue=A;ue;ue=ce(ue))Z++;for(;0<_-Z;)z=ce(z),_--;for(;0<Z-_;)A=ce(A),Z--;for(;_--;){if(z===A||A!==null&&z===A.alternate){ce=z;break t}z=ce(z),A=ce(A)}ce=null}else ce=null;G!==null&&Ug(J,q,G,ce,!1),ne!==null&&je!==null&&Ug(J,je,ne,ce,!0)}}e:{if(q=U?Ur(U):window,G=q.nodeName&&q.nodeName.toLowerCase(),G==="select"||G==="input"&&q.type==="file")var Ce=Wd;else if(Fd(q))if(Pd)Ce=db;else{Ce=cb;var ae=ob}else G=q.nodeName,!G||G.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?U&&Iu(U.elementType)&&(Ce=Wd):Ce=fb;if(Ce&&(Ce=Ce(e,U))){$d(J,Ce,n,X);break e}ae&&ae(e,q,U),e==="focusout"&&U&&q.type==="number"&&U.memoizedProps.value!=null&&Pu(q,"number",q.value)}switch(ae=U?Ur(U):window,e){case"focusin":(Fd(ae)||ae.contentEditable==="true")&&(Ma=ae,mo=U,Yr=null);break;case"focusout":Yr=mo=Ma=null;break;case"mousedown":go=!0;break;case"contextmenu":case"mouseup":case"dragend":go=!1,ih(J,n,X);break;case"selectionchange":if(mb)break;case"keydown":case"keyup":ih(J,n,X)}var me;if(oo)e:{switch(e){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else Oa?Zd(e,n)&&(Ne="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ne="onCompositionStart");Ne&&(Vd&&n.locale!=="ko"&&(Oa||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&Oa&&(me=Bd()):(ll=X,ao="value"in ll?ll.value:ll.textContent,Oa=!0)),ae=Ws(U,Ne),0<ae.length&&(Ne=new Gd(Ne,e,null,n,X),J.push({event:Ne,listeners:ae}),me?Ne.data=me:(me=Jd(n),me!==null&&(Ne.data=me)))),(me=ab?rb(e,n):ib(e,n))&&(Ne=Ws(U,"onBeforeInput"),0<Ne.length&&(ae=new Gd("onBeforeInput","beforeinput",null,n,X),J.push({event:ae,listeners:Ne}),ae.data=me)),Wb(J,e,U,n,X)}Dg(J,t)})}function mi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ws(e,t){for(var n=t+"Capture",a=[];e!==null;){var u=e,o=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||o===null||(u=Lr(e,n),u!=null&&a.unshift(mi(e,u,o)),u=Lr(e,t),u!=null&&a.push(mi(e,u,o))),e.tag===3)return a;e=e.return}return[]}function t1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ug(e,t,n,a,u){for(var o=t._reactName,h=[];n!==null&&n!==a;){var b=n,T=b.alternate,U=b.stateNode;if(b=b.tag,T!==null&&T===a)break;b!==5&&b!==26&&b!==27||U===null||(T=U,u?(U=Lr(n,o),U!=null&&h.unshift(mi(n,U,T))):u||(U=Lr(n,o),U!=null&&h.push(mi(n,U,T)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var n1=/\r\n?/g,l1=/\u0000|\uFFFD/g;function Lg(e){return(typeof e=="string"?e:""+e).replace(n1,`
|
|
49
|
-
`).replace(l1,"")}function jg(e,t){return t=Lg(t),Lg(e)===t}function Le(e,t,n,a,u,o){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ca(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ca(e,""+a);break;case"className":ts(e,"class",a);break;case"tabIndex":ts(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ts(e,n,a);break;case"style":jd(e,a,o);break;case"data":if(t!=="object"){ts(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=ls(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&Le(e,t,"name",u.name,u,null),Le(e,t,"formEncType",u.formEncType,u,null),Le(e,t,"formMethod",u.formMethod,u,null),Le(e,t,"formTarget",u.formTarget,u,null)):(Le(e,t,"encType",u.encType,u,null),Le(e,t,"method",u.method,u,null),Le(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=ls(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Rn);break;case"onScroll":a!=null&&xe("scroll",e);break;case"onScrollEnd":a!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=ls(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":xe("beforetoggle",e),xe("toggle",e),es(e,"popover",a);break;case"xlinkActuate":An(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":An(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":An(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":An(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":An(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":An(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":An(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":An(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":An(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":es(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=z0.get(n)||n,es(e,n,a))}}function kc(e,t,n,a,u,o){switch(n){case"style":jd(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Ca(e,a):(typeof a=="number"||typeof a=="bigint")&&Ca(e,""+a);break;case"onScroll":a!=null&&xe("scroll",e);break;case"onScrollEnd":a!=null&&xe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ad.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),t=n.slice(2,u?n.length-7:void 0),o=e[Ct]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,u),typeof a=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,u);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):es(e,n,a)}}}function ft(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var a=!1,u=!1,o;for(o in n)if(n.hasOwnProperty(o)){var h=n[o];if(h!=null)switch(o){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Le(e,t,o,h,n,null)}}u&&Le(e,t,"srcSet",n.srcSet,n,null),a&&Le(e,t,"src",n.src,n,null);return;case"input":xe("invalid",e);var b=o=h=u=null,T=null,U=null;for(a in n)if(n.hasOwnProperty(a)){var X=n[a];if(X!=null)switch(a){case"name":u=X;break;case"type":h=X;break;case"checked":T=X;break;case"defaultChecked":U=X;break;case"value":o=X;break;case"defaultValue":b=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(s(137,t));break;default:Le(e,t,a,X,n,null)}}Dd(e,o,b,T,U,h,u,!1);return;case"select":xe("invalid",e),a=h=o=null;for(u in n)if(n.hasOwnProperty(u)&&(b=n[u],b!=null))switch(u){case"value":o=b;break;case"defaultValue":h=b;break;case"multiple":a=b;default:Le(e,t,u,b,n,null)}t=o,n=h,e.multiple=!!a,t!=null?Ta(e,!!a,t,!1):n!=null&&Ta(e,!!a,n,!0);return;case"textarea":xe("invalid",e),o=u=a=null;for(h in n)if(n.hasOwnProperty(h)&&(b=n[h],b!=null))switch(h){case"value":a=b;break;case"defaultValue":u=b;break;case"children":o=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(s(91));break;default:Le(e,t,h,b,n,null)}Ud(e,a,u,o);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(a=n[T],a!=null))switch(T){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Le(e,t,T,a,n,null)}return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(a=0;a<hi.length;a++)xe(hi[a],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in n)if(n.hasOwnProperty(U)&&(a=n[U],a!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Le(e,t,U,a,n,null)}return;default:if(Iu(t)){for(X in n)n.hasOwnProperty(X)&&(a=n[X],a!==void 0&&kc(e,t,X,a,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(a=n[b],a!=null&&Le(e,t,b,a,n,null))}function a1(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,o=null,h=null,b=null,T=null,U=null,X=null;for(G in n){var J=n[G];if(n.hasOwnProperty(G)&&J!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":T=J;default:a.hasOwnProperty(G)||Le(e,t,G,null,a,J)}}for(var q in a){var G=a[q];if(J=n[q],a.hasOwnProperty(q)&&(G!=null||J!=null))switch(q){case"type":o=G;break;case"name":u=G;break;case"checked":U=G;break;case"defaultChecked":X=G;break;case"value":h=G;break;case"defaultValue":b=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,t));break;default:G!==J&&Le(e,t,q,G,a,J)}}Wu(e,h,b,T,U,X,o,u);return;case"select":G=h=b=q=null;for(o in n)if(T=n[o],n.hasOwnProperty(o)&&T!=null)switch(o){case"value":break;case"multiple":G=T;default:a.hasOwnProperty(o)||Le(e,t,o,null,a,T)}for(u in a)if(o=a[u],T=n[u],a.hasOwnProperty(u)&&(o!=null||T!=null))switch(u){case"value":q=o;break;case"defaultValue":b=o;break;case"multiple":h=o;default:o!==T&&Le(e,t,u,o,a,T)}t=b,n=h,a=G,q!=null?Ta(e,!!n,q,!1):!!a!=!!n&&(t!=null?Ta(e,!!n,t,!0):Ta(e,!!n,n?[]:"",!1));return;case"textarea":G=q=null;for(b in n)if(u=n[b],n.hasOwnProperty(b)&&u!=null&&!a.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Le(e,t,b,null,a,u)}for(h in a)if(u=a[h],o=n[h],a.hasOwnProperty(h)&&(u!=null||o!=null))switch(h){case"value":q=u;break;case"defaultValue":G=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==o&&Le(e,t,h,u,a,o)}_d(e,q,G);return;case"option":for(var ne in n)if(q=n[ne],n.hasOwnProperty(ne)&&q!=null&&!a.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:Le(e,t,ne,null,a,q)}for(T in a)if(q=a[T],G=n[T],a.hasOwnProperty(T)&&q!==G&&(q!=null||G!=null))switch(T){case"selected":e.selected=q&&typeof q!="function"&&typeof q!="symbol";break;default:Le(e,t,T,q,a,G)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ce in n)q=n[ce],n.hasOwnProperty(ce)&&q!=null&&!a.hasOwnProperty(ce)&&Le(e,t,ce,null,a,q);for(U in a)if(q=a[U],G=n[U],a.hasOwnProperty(U)&&q!==G&&(q!=null||G!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,t));break;default:Le(e,t,U,q,a,G)}return;default:if(Iu(t)){for(var je in n)q=n[je],n.hasOwnProperty(je)&&q!==void 0&&!a.hasOwnProperty(je)&&kc(e,t,je,void 0,a,q);for(X in a)q=a[X],G=n[X],!a.hasOwnProperty(X)||q===G||q===void 0&&G===void 0||kc(e,t,X,q,a,G);return}}for(var z in n)q=n[z],n.hasOwnProperty(z)&&q!=null&&!a.hasOwnProperty(z)&&Le(e,t,z,null,a,q);for(J in a)q=a[J],G=n[J],!a.hasOwnProperty(J)||q===G||q==null&&G==null||Le(e,t,J,q,a,G)}function qg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function r1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var u=n[a],o=u.transferSize,h=u.initiatorType,b=u.duration;if(o&&b&&qg(h)){for(h=0,b=u.responseEnd,a+=1;a<n.length;a++){var T=n[a],U=T.startTime;if(U>b)break;var X=T.transferSize,J=T.initiatorType;X&&qg(J)&&(T=T.responseEnd,h+=X*(T<b?1:(b-U)/(T-U)))}if(--a,t+=8*(o+h)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Qc=null,Gc=null;function Ps(e){return e.nodeType===9?e:e.ownerDocument}function Hg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Bg(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Yc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Vc=null;function i1(){var e=window.event;return e&&e.type==="popstate"?e===Vc?!1:(Vc=e,!0):(Vc=null,!1)}var kg=typeof setTimeout=="function"?setTimeout:void 0,s1=typeof clearTimeout=="function"?clearTimeout:void 0,Qg=typeof Promise=="function"?Promise:void 0,u1=typeof queueMicrotask=="function"?queueMicrotask:typeof Qg<"u"?function(e){return Qg.resolve(null).then(e).catch(o1)}:kg;function o1(e){setTimeout(function(){throw e})}function xl(e){return e==="head"}function Gg(e,t){var n=t,a=0;do{var u=n.nextSibling;if(e.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(u),lr(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")gi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,gi(n);for(var o=n.firstChild;o;){var h=o.nextSibling,b=o.nodeName;o[_r]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=h}}else n==="body"&&gi(e.ownerDocument.body);n=u}while(n);lr(t)}function Yg(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Xc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Xc(n),Fu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function c1(e,t,n,a){for(;e.nodeType===1;){var u=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[_r])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=ln(e.nextSibling),e===null)break}return null}function f1(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ln(e.nextSibling),e===null))return null;return e}function Vg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ln(e.nextSibling),e===null))return null;return e}function Kc(e){return e.data==="$?"||e.data==="$~"}function Zc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function d1(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function ln(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Jc=null;function Xg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ln(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Kg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Zg(e,t,n){switch(t=Ps(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function gi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Fu(e)}var an=new Map,Jg=new Set;function Is(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Vn=$.d;$.d={f:h1,r:m1,D:g1,C:p1,L:v1,m:y1,X:x1,S:b1,M:S1};function h1(){var e=Vn.f(),t=Vs();return e||t}function m1(e){var t=Na(e);t!==null&&t.tag===5&&t.type==="form"?fm(t):Vn.r(e)}var er=typeof document>"u"?null:document;function Fg(e,t,n){var a=er;if(a&&typeof t=="string"&&t){var u=$t(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),Jg.has(u)||(Jg.add(u),e={rel:e,crossOrigin:n,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),ft(t,"link",e),at(t),a.head.appendChild(t)))}}function g1(e){Vn.D(e),Fg("dns-prefetch",e,null)}function p1(e,t){Vn.C(e,t),Fg("preconnect",e,t)}function v1(e,t,n){Vn.L(e,t,n);var a=er;if(a&&e&&t){var u='link[rel="preload"][as="'+$t(t)+'"]';t==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+$t(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+$t(n.imageSizes)+'"]')):u+='[href="'+$t(e)+'"]';var o=u;switch(t){case"style":o=tr(e);break;case"script":o=nr(e)}an.has(o)||(e=S({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),an.set(o,e),a.querySelector(u)!==null||t==="style"&&a.querySelector(pi(o))||t==="script"&&a.querySelector(vi(o))||(t=a.createElement("link"),ft(t,"link",e),at(t),a.head.appendChild(t)))}}function y1(e,t){Vn.m(e,t);var n=er;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+$t(a)+'"][href="'+$t(e)+'"]',o=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=nr(e)}if(!an.has(o)&&(e=S({rel:"modulepreload",href:e},t),an.set(o,e),n.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(vi(o)))return}a=n.createElement("link"),ft(a,"link",e),at(a),n.head.appendChild(a)}}}function b1(e,t,n){Vn.S(e,t,n);var a=er;if(a&&e){var u=wa(a).hoistableStyles,o=tr(e);t=t||"default";var h=u.get(o);if(!h){var b={loading:0,preload:null};if(h=a.querySelector(pi(o)))b.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},n),(n=an.get(o))&&Fc(e,n);var T=h=a.createElement("link");at(T),ft(T,"link",e),T._p=new Promise(function(U,X){T.onload=U,T.onerror=X}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,eu(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:b},u.set(o,h)}}}function x1(e,t){Vn.X(e,t);var n=er;if(n&&e){var a=wa(n).hoistableScripts,u=nr(e),o=a.get(u);o||(o=n.querySelector(vi(u)),o||(e=S({src:e,async:!0},t),(t=an.get(u))&&$c(e,t),o=n.createElement("script"),at(o),ft(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(u,o))}}function S1(e,t){Vn.M(e,t);var n=er;if(n&&e){var a=wa(n).hoistableScripts,u=nr(e),o=a.get(u);o||(o=n.querySelector(vi(u)),o||(e=S({src:e,async:!0,type:"module"},t),(t=an.get(u))&&$c(e,t),o=n.createElement("script"),at(o),ft(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},a.set(u,o))}}function $g(e,t,n,a){var u=(u=ye.current)?Is(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=tr(n.href),n=wa(u).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=tr(n.href);var o=wa(u).hoistableStyles,h=o.get(e);if(h||(u=u.ownerDocument||u,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,h),(o=u.querySelector(pi(e)))&&!o._p&&(h.instance=o,h.state.loading=5),an.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},an.set(e,n),o||N1(u,e,n,h.state))),t&&a===null)throw Error(s(528,""));return h}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=nr(n),n=wa(u).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function tr(e){return'href="'+$t(e)+'"'}function pi(e){return'link[rel="stylesheet"]['+e+"]"}function Wg(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function N1(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ft(t,"link",n),at(t),e.head.appendChild(t))}function nr(e){return'[src="'+$t(e)+'"]'}function vi(e){return"script[async]"+e}function Pg(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+$t(n.href)+'"]');if(a)return t.instance=a,at(a),a;var u=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),at(a),ft(a,"style",u),eu(a,n.precedence,e),t.instance=a;case"stylesheet":u=tr(n.href);var o=e.querySelector(pi(u));if(o)return t.state.loading|=4,t.instance=o,at(o),o;a=Wg(n),(u=an.get(u))&&Fc(a,u),o=(e.ownerDocument||e).createElement("link"),at(o);var h=o;return h._p=new Promise(function(b,T){h.onload=b,h.onerror=T}),ft(o,"link",a),t.state.loading|=4,eu(o,n.precedence,e),t.instance=o;case"script":return o=nr(n.src),(u=e.querySelector(vi(o)))?(t.instance=u,at(u),u):(a=n,(u=an.get(o))&&(a=S({},n),$c(a,u)),e=e.ownerDocument||e,u=e.createElement("script"),at(u),ft(u,"link",a),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,eu(a,n.precedence,e));return t.instance}function eu(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,o=u,h=0;h<a.length;h++){var b=a[h];if(b.dataset.precedence===t)o=b;else if(o!==u)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Fc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $c(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var tu=null;function Ig(e,t,n){if(tu===null){var a=new Map,u=tu=new Map;u.set(n,a)}else u=tu,a=u.get(n),a||(a=new Map,u.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),u=0;u<n.length;u++){var o=n[u];if(!(o[_r]||o[st]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var h=o.getAttribute(t)||"";h=e+h;var b=a.get(h);b?b.push(o):a.set(h,[o])}}return a}function ep(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function w1(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function tp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function E1(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=tr(a.href),o=t.querySelector(pi(u));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=nu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,at(o);return}o=t.ownerDocument||t,a=Wg(a),(u=an.get(u))&&Fc(a,u),o=o.createElement("link"),at(o);var h=o;h._p=new Promise(function(b,T){h.onload=b,h.onerror=T}),ft(o,"link",a),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=nu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Wc=0;function T1(e,t){return e.stylesheets&&e.count===0&&au(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&au(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Wc===0&&(Wc=62500*r1());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&au(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Wc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function nu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)au(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var lu=null;function au(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lu=new Map,t.forEach(C1,e),lu=null,nu.call(e))}function C1(e,t){if(!(t.state.loading&4)){var n=lu.get(e);if(n)var a=n.get(null);else{n=new Map,lu.set(e,n);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<u.length;o++){var h=u[o];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),a=h)}a&&n.set(null,a)}u=t.instance,h=u.getAttribute("data-precedence"),o=n.get(h)||a,o===a&&n.set(null,u),n.set(h,u),this.count++,a=nu.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),o?o.parentNode.insertBefore(u,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var yi={$$typeof:j,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function A1(e,t,n,a,u,o,h,b,T){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xu(0),this.hiddenUpdates=Xu(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=o,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function np(e,t,n,a,u,o,h,b,T,U,X,J){return e=new A1(e,t,n,h,T,U,X,J,b),t=1,o===!0&&(t|=24),o=kt(3,null,null,t),e.current=o,o.stateNode=e,t=Mo(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},Uo(o),e}function lp(e){return e?(e=_a,e):_a}function ap(e,t,n,a,u,o){u=lp(u),a.context===null?a.context=u:a.pendingContext=u,a=ol(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=cl(e,a,t),n!==null&&(Dt(n,e,t),$r(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Pc(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ip(e){if(e.tag===13||e.tag===31){var t=Jl(e,67108864);t!==null&&Dt(t,e,67108864),Pc(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=Xt();t=Ku(t);var n=Jl(e,t);n!==null&&Dt(n,e,t),Pc(e,t)}}var ru=!0;function R1(e,t,n,a){var u=D.T;D.T=null;var o=$.p;try{$.p=2,Ic(e,t,n,a)}finally{$.p=o,D.T=u}}function O1(e,t,n,a){var u=D.T;D.T=null;var o=$.p;try{$.p=8,Ic(e,t,n,a)}finally{$.p=o,D.T=u}}function Ic(e,t,n,a){if(ru){var u=ef(a);if(u===null)Bc(e,t,a,iu,n),op(e,a);else if(z1(u,e,t,n,a))a.stopPropagation();else if(op(e,a),t&4&&-1<M1.indexOf(e)){for(;u!==null;){var o=Na(u);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var h=Yl(o.pendingLanes);if(h!==0){var b=o;for(b.pendingLanes|=2,b.entangledLanes|=2;h;){var T=1<<31-Ht(h);b.entanglements[1]|=T,h&=~T}xn(o),(Re&6)===0&&(Gs=jt()+500,di(0))}}break;case 31:case 13:b=Jl(o,2),b!==null&&Dt(b,o,2),Vs(),Pc(o,2)}if(o=ef(a),o===null&&Bc(e,t,a,iu,n),o===u)break;u=o}u!==null&&a.stopPropagation()}else Bc(e,t,a,null,n)}}function ef(e){return e=to(e),tf(e)}var iu=null;function tf(e){if(iu=null,e=Sa(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return iu=e,null}function up(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(g0()){case pd:return 2;case vd:return 8;case Fi:case p0:return 32;case yd:return 268435456;default:return 32}default:return 32}}var nf=!1,Sl=null,Nl=null,wl=null,bi=new Map,xi=new Map,El=[],M1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function op(e,t){switch(e){case"focusin":case"focusout":Sl=null;break;case"dragenter":case"dragleave":Nl=null;break;case"mouseover":case"mouseout":wl=null;break;case"pointerover":case"pointerout":bi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xi.delete(t.pointerId)}}function Si(e,t,n,a,u,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[u]},t!==null&&(t=Na(t),t!==null&&ip(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function z1(e,t,n,a,u){switch(t){case"focusin":return Sl=Si(Sl,e,t,n,a,u),!0;case"dragenter":return Nl=Si(Nl,e,t,n,a,u),!0;case"mouseover":return wl=Si(wl,e,t,n,a,u),!0;case"pointerover":var o=u.pointerId;return bi.set(o,Si(bi.get(o)||null,e,t,n,a,u)),!0;case"gotpointercapture":return o=u.pointerId,xi.set(o,Si(xi.get(o)||null,e,t,n,a,u)),!0}return!1}function cp(e){var t=Sa(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,Ed(e.priority,function(){sp(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,Ed(e.priority,function(){sp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function su(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ef(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);eo=a,n.target.dispatchEvent(a),eo=null}else return t=Na(n),t!==null&&ip(t),e.blockedOn=n,!1;t.shift()}return!0}function fp(e,t,n){su(e)&&n.delete(t)}function D1(){nf=!1,Sl!==null&&su(Sl)&&(Sl=null),Nl!==null&&su(Nl)&&(Nl=null),wl!==null&&su(wl)&&(wl=null),bi.forEach(fp),xi.forEach(fp)}function uu(e,t){e.blockedOn===t&&(e.blockedOn=null,nf||(nf=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,D1)))}var ou=null;function dp(e){ou!==e&&(ou=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){ou===e&&(ou=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],u=e[t+2];if(typeof a!="function"){if(tf(a||n)===null)continue;break}var o=Na(n);o!==null&&(e.splice(t,3),t-=3,ec(o,{pending:!0,data:u,method:n.method,action:a},a,u))}}))}function lr(e){function t(T){return uu(T,e)}Sl!==null&&uu(Sl,e),Nl!==null&&uu(Nl,e),wl!==null&&uu(wl,e),bi.forEach(t),xi.forEach(t);for(var n=0;n<El.length;n++){var a=El[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<El.length&&(n=El[0],n.blockedOn===null);)cp(n),n.blockedOn===null&&El.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var u=n[a],o=n[a+1],h=u[Ct]||null;if(typeof o=="function")h||dp(n);else if(h){var b=null;if(o&&o.hasAttribute("formAction")){if(u=o,h=o[Ct]||null)b=h.formAction;else if(tf(u)!==null)continue}else b=h.action;typeof b=="function"?n[a+1]=b:(n.splice(a,3),a-=3),dp(n)}}}function hp(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(h){return u=h})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function lf(e){this._internalRoot=e}cu.prototype.render=lf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,a=Xt();ap(n,a,e,t,null,null)},cu.prototype.unmount=lf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ap(e.current,2,null,e,null,null),Vs(),t[xa]=null}};function cu(e){this._internalRoot=e}cu.prototype.unstable_scheduleHydration=function(e){if(e){var t=wd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<El.length&&t!==0&&t<El[n].priority;n++);El.splice(n,0,e),n===0&&cp(e)}};var mp=r.version;if(mp!=="19.2.0")throw Error(s(527,mp,"19.2.0"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var _1={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fu.isDisabled&&fu.supportsFiber)try{Mr=fu.inject(_1),qt=fu}catch{}}return wi.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,a="",u=Sm,o=Nm,h=wm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=np(e,1,!1,null,null,n,a,null,u,o,h,hp),e[xa]=t.current,Hc(e),new lf(t)},wi.hydrateRoot=function(e,t,n){if(!c(e))throw Error(s(299));var a=!1,u="",o=Sm,h=Nm,b=wm,T=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),t=np(e,1,!0,t,n??null,a,u,T,o,h,b,hp),t.context=lp(null),n=t.current,a=Xt(),a=Ku(a),u=ol(a),u.callback=null,cl(n,u,a),n=a,t.current.lanes=n,Dr(t,n),xn(t),e[xa]=t.current,Hc(e),new cu(t)},wi.version="19.2.0",wi}var Tp;function X1(){if(Tp)return uf.exports;Tp=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),uf.exports=V1(),uf.exports}var K1=X1();const Z1=xv(K1);var xr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},J1={setTimeout:(l,r)=>setTimeout(l,r),clearTimeout:l=>clearTimeout(l),setInterval:(l,r)=>setInterval(l,r),clearInterval:l=>clearInterval(l)},Ml,Qf,ov,F1=(ov=class{constructor(){se(this,Ml,J1);se(this,Qf,!1)}setTimeoutProvider(l){ee(this,Ml,l)}setTimeout(l,r){return C(this,Ml).setTimeout(l,r)}clearTimeout(l){C(this,Ml).clearTimeout(l)}setInterval(l,r){return C(this,Ml).setInterval(l,r)}clearInterval(l){C(this,Ml).clearInterval(l)}},Ml=new WeakMap,Qf=new WeakMap,ov),ua=new F1;function $1(l){setTimeout(l,0)}var ya=typeof window>"u"||"Deno"in globalThis;function St(){}function W1(l,r){return typeof l=="function"?l(r):l}function xf(l){return typeof l=="number"&&l>=0&&l!==1/0}function wv(l,r){return Math.max(l+(r||0)-Date.now(),0)}function Bl(l,r){return typeof l=="function"?l(r):l}function sn(l,r){return typeof l=="function"?l(r):l}function Cp(l,r){const{type:i="all",exact:s,fetchStatus:c,predicate:f,queryKey:d,stale:p}=l;if(d){if(s){if(r.queryHash!==Vf(d,r.options))return!1}else if(!Di(r.queryKey,d))return!1}if(i!=="all"){const v=r.isActive();if(i==="active"&&!v||i==="inactive"&&v)return!1}return!(typeof p=="boolean"&&r.isStale()!==p||c&&c!==r.state.fetchStatus||f&&!f(r))}function Ap(l,r){const{exact:i,status:s,predicate:c,mutationKey:f}=l;if(f){if(!r.options.mutationKey)return!1;if(i){if(ba(r.options.mutationKey)!==ba(f))return!1}else if(!Di(r.options.mutationKey,f))return!1}return!(s&&r.state.status!==s||c&&!c(r))}function Vf(l,r){return((r==null?void 0:r.queryKeyHashFn)||ba)(l)}function ba(l){return JSON.stringify(l,(r,i)=>Sf(i)?Object.keys(i).sort().reduce((s,c)=>(s[c]=i[c],s),{}):i)}function Di(l,r){return l===r?!0:typeof l!=typeof r?!1:l&&r&&typeof l=="object"&&typeof r=="object"?Object.keys(r).every(i=>Di(l[i],r[i])):!1}var P1=Object.prototype.hasOwnProperty;function Ev(l,r){if(l===r)return l;const i=Rp(l)&&Rp(r);if(!i&&!(Sf(l)&&Sf(r)))return r;const c=(i?l:Object.keys(l)).length,f=i?r:Object.keys(r),d=f.length,p=i?new Array(d):{};let v=0;for(let g=0;g<d;g++){const x=i?g:f[g],S=l[x],N=r[x];if(S===N){p[x]=S,(i?g<c:P1.call(l,x))&&v++;continue}if(S===null||N===null||typeof S!="object"||typeof N!="object"){p[x]=N;continue}const O=Ev(S,N);p[x]=O,O===S&&v++}return c===d&&v===c?l:p}function Nu(l,r){if(!r||Object.keys(l).length!==Object.keys(r).length)return!1;for(const i in l)if(l[i]!==r[i])return!1;return!0}function Rp(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Sf(l){if(!Op(l))return!1;const r=l.constructor;if(r===void 0)return!0;const i=r.prototype;return!(!Op(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function Op(l){return Object.prototype.toString.call(l)==="[object Object]"}function I1(l){return new Promise(r=>{ua.setTimeout(r,l)})}function Nf(l,r,i){return typeof i.structuralSharing=="function"?i.structuralSharing(l,r):i.structuralSharing!==!1?Ev(l,r):r}function ex(l,r,i=0){const s=[...l,r];return i&&s.length>i?s.slice(1):s}function tx(l,r,i=0){const s=[r,...l];return i&&s.length>i?s.slice(0,-1):s}var Xf=Symbol();function Tv(l,r){return!l.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!l.queryFn||l.queryFn===Xf?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function Cv(l,r){return typeof l=="function"?l(...r):!!l}var oa,zl,sr,cv,nx=(cv=class extends xr{constructor(){super();se(this,oa);se(this,zl);se(this,sr);ee(this,sr,r=>{if(!ya&&window.addEventListener){const i=()=>r();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){C(this,zl)||this.setEventListener(C(this,sr))}onUnsubscribe(){var r;this.hasListeners()||((r=C(this,zl))==null||r.call(this),ee(this,zl,void 0))}setEventListener(r){var i;ee(this,sr,r),(i=C(this,zl))==null||i.call(this),ee(this,zl,r(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(r){C(this,oa)!==r&&(ee(this,oa,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(i=>{i(r)})}isFocused(){var r;return typeof C(this,oa)=="boolean"?C(this,oa):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},oa=new WeakMap,zl=new WeakMap,sr=new WeakMap,cv),Kf=new nx;function wf(){let l,r;const i=new Promise((c,f)=>{l=c,r=f});i.status="pending",i.catch(()=>{});function s(c){Object.assign(i,c),delete i.resolve,delete i.reject}return i.resolve=c=>{s({status:"fulfilled",value:c}),l(c)},i.reject=c=>{s({status:"rejected",reason:c}),r(c)},i}var lx=$1;function ax(){let l=[],r=0,i=p=>{p()},s=p=>{p()},c=lx;const f=p=>{r?l.push(p):c(()=>{i(p)})},d=()=>{const p=l;l=[],p.length&&c(()=>{s(()=>{p.forEach(v=>{i(v)})})})};return{batch:p=>{let v;r++;try{v=p()}finally{r--,r||d()}return v},batchCalls:p=>(...v)=>{f(()=>{p(...v)})},schedule:f,setNotifyFunction:p=>{i=p},setBatchNotifyFunction:p=>{s=p},setScheduler:p=>{c=p}}}var lt=ax(),ur,Dl,or,fv,rx=(fv=class extends xr{constructor(){super();se(this,ur,!0);se(this,Dl);se(this,or);ee(this,or,r=>{if(!ya&&window.addEventListener){const i=()=>r(!0),s=()=>r(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}})}onSubscribe(){C(this,Dl)||this.setEventListener(C(this,or))}onUnsubscribe(){var r;this.hasListeners()||((r=C(this,Dl))==null||r.call(this),ee(this,Dl,void 0))}setEventListener(r){var i;ee(this,or,r),(i=C(this,Dl))==null||i.call(this),ee(this,Dl,r(this.setOnline.bind(this)))}setOnline(r){C(this,ur)!==r&&(ee(this,ur,r),this.listeners.forEach(s=>{s(r)}))}isOnline(){return C(this,ur)}},ur=new WeakMap,Dl=new WeakMap,or=new WeakMap,fv),wu=new rx;function ix(l){return Math.min(1e3*2**l,3e4)}function Av(l){return(l??"online")==="online"?wu.isOnline():!0}var Ef=class extends Error{constructor(l){super("CancelledError"),this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent}};function Rv(l){let r=!1,i=0,s;const c=wf(),f=()=>c.status!=="pending",d=M=>{var R;if(!f()){const L=new Ef(M);N(L),(R=l.onCancel)==null||R.call(l,L)}},p=()=>{r=!0},v=()=>{r=!1},g=()=>Kf.isFocused()&&(l.networkMode==="always"||wu.isOnline())&&l.canRun(),x=()=>Av(l.networkMode)&&l.canRun(),S=M=>{f()||(s==null||s(),c.resolve(M))},N=M=>{f()||(s==null||s(),c.reject(M))},O=()=>new Promise(M=>{var R;s=L=>{(f()||g())&&M(L)},(R=l.onPause)==null||R.call(l)}).then(()=>{var M;s=void 0,f()||(M=l.onContinue)==null||M.call(l)}),Y=()=>{if(f())return;let M;const R=i===0?l.initialPromise:void 0;try{M=R??l.fn()}catch(L){M=Promise.reject(L)}Promise.resolve(M).then(S).catch(L=>{var k;if(f())return;const H=l.retry??(ya?0:3),j=l.retryDelay??ix,Q=typeof j=="function"?j(i,L):j,B=H===!0||typeof H=="number"&&i<H||typeof H=="function"&&H(i,L);if(r||!B){N(L);return}i++,(k=l.onFail)==null||k.call(l,i,L),I1(Q).then(()=>g()?void 0:O()).then(()=>{r?N(L):Y()})})};return{promise:c,status:()=>c.status,cancel:d,continue:()=>(s==null||s(),c),cancelRetry:p,continueRetry:v,canStart:x,start:()=>(x()?Y():O().then(Y),c)}}var ca,dv,Ov=(dv=class{constructor(){se(this,ca)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xf(this.gcTime)&&ee(this,ca,ua.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(ya?1/0:300*1e3))}clearGcTimeout(){C(this,ca)&&(ua.clearTimeout(C(this,ca)),ee(this,ca,void 0))}},ca=new WeakMap,dv),fa,cr,rn,da,it,Hi,ha,hn,Zn,hv,sx=(hv=class extends Ov{constructor(r){super();se(this,hn);se(this,fa);se(this,cr);se(this,rn);se(this,da);se(this,it);se(this,Hi);se(this,ha);ee(this,ha,!1),ee(this,Hi,r.defaultOptions),this.setOptions(r.options),this.observers=[],ee(this,da,r.client),ee(this,rn,C(this,da).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,ee(this,fa,Mp(this.options)),this.state=r.state??C(this,fa),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=C(this,it))==null?void 0:r.promise}setOptions(r){if(this.options={...C(this,Hi),...r},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Mp(this.options);i.data!==void 0&&(this.setData(i.data,{updatedAt:i.dataUpdatedAt,manual:!0}),ee(this,fa,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,rn).remove(this)}setData(r,i){const s=Nf(this.state.data,r,this.options);return ve(this,hn,Zn).call(this,{data:s,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),s}setState(r,i){ve(this,hn,Zn).call(this,{type:"setState",state:r,setStateOptions:i})}cancel(r){var s,c;const i=(s=C(this,it))==null?void 0:s.promise;return(c=C(this,it))==null||c.cancel(r),i?i.then(St).catch(St):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,fa))}isActive(){return this.observers.some(r=>sn(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(r=>Bl(r.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(r=0){return this.state.data===void 0?!0:r==="static"?!1:this.state.isInvalidated?!0:!wv(this.state.dataUpdatedAt,r)}onFocus(){var i;const r=this.observers.find(s=>s.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(i=C(this,it))==null||i.continue()}onOnline(){var i;const r=this.observers.find(s=>s.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(i=C(this,it))==null||i.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),C(this,rn).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(i=>i!==r),this.observers.length||(C(this,it)&&(C(this,ha)?C(this,it).cancel({revert:!0}):C(this,it).cancelRetry()),this.scheduleGc()),C(this,rn).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ve(this,hn,Zn).call(this,{type:"invalidate"})}async fetch(r,i){var v,g,x,S,N,O,Y,M,R,L,H,j;if(this.state.fetchStatus!=="idle"&&((v=C(this,it))==null?void 0:v.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(C(this,it))return C(this,it).continueRetry(),C(this,it).promise}if(r&&this.setOptions(r),!this.options.queryFn){const Q=this.observers.find(B=>B.options.queryFn);Q&&this.setOptions(Q.options)}const s=new AbortController,c=Q=>{Object.defineProperty(Q,"signal",{enumerable:!0,get:()=>(ee(this,ha,!0),s.signal)})},f=()=>{const Q=Tv(this.options,i),k=(()=>{const K={client:C(this,da),queryKey:this.queryKey,meta:this.meta};return c(K),K})();return ee(this,ha,!1),this.options.persister?this.options.persister(Q,k,this):Q(k)},p=(()=>{const Q={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:C(this,da),state:this.state,fetchFn:f};return c(Q),Q})();(g=this.options.behavior)==null||g.onFetch(p,this),ee(this,cr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((x=p.fetchOptions)==null?void 0:x.meta))&&ve(this,hn,Zn).call(this,{type:"fetch",meta:(S=p.fetchOptions)==null?void 0:S.meta}),ee(this,it,Rv({initialPromise:i==null?void 0:i.initialPromise,fn:p.fetchFn,onCancel:Q=>{Q instanceof Ef&&Q.revert&&this.setState({...C(this,cr),fetchStatus:"idle"}),s.abort()},onFail:(Q,B)=>{ve(this,hn,Zn).call(this,{type:"failed",failureCount:Q,error:B})},onPause:()=>{ve(this,hn,Zn).call(this,{type:"pause"})},onContinue:()=>{ve(this,hn,Zn).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const Q=await C(this,it).start();if(Q===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(Q),(O=(N=C(this,rn).config).onSuccess)==null||O.call(N,Q,this),(M=(Y=C(this,rn).config).onSettled)==null||M.call(Y,Q,this.state.error,this),Q}catch(Q){if(Q instanceof Ef){if(Q.silent)return C(this,it).promise;if(Q.revert){if(this.state.data===void 0)throw Q;return this.state.data}}throw ve(this,hn,Zn).call(this,{type:"error",error:Q}),(L=(R=C(this,rn).config).onError)==null||L.call(R,Q,this),(j=(H=C(this,rn).config).onSettled)==null||j.call(H,this.state.data,Q,this),Q}finally{this.scheduleGc()}}},fa=new WeakMap,cr=new WeakMap,rn=new WeakMap,da=new WeakMap,it=new WeakMap,Hi=new WeakMap,ha=new WeakMap,hn=new WeakSet,Zn=function(r){const i=s=>{switch(r.type){case"failed":return{...s,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Mv(s.data,this.options),fetchMeta:r.meta??null};case"success":const c={...s,data:r.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:r.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ee(this,cr,r.manual?c:void 0),c;case"error":const f=r.error;return{...s,error:f,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...r.state}}};this.state=i(this.state),lt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),C(this,rn).notify({query:this,type:"updated",action:r})})},hv);function Mv(l,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Av(r.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function Mp(l){const r=typeof l.initialData=="function"?l.initialData():l.initialData,i=r!==void 0,s=i?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var _t,Ee,Bi,bt,ma,fr,Jn,_l,ki,dr,hr,ga,pa,Ul,mr,ze,Ai,Tf,Cf,Af,Rf,Of,Mf,zf,zv,mv,ux=(mv=class extends xr{constructor(r,i){super();se(this,ze);se(this,_t);se(this,Ee);se(this,Bi);se(this,bt);se(this,ma);se(this,fr);se(this,Jn);se(this,_l);se(this,ki);se(this,dr);se(this,hr);se(this,ga);se(this,pa);se(this,Ul);se(this,mr,new Set);this.options=i,ee(this,_t,r),ee(this,_l,null),ee(this,Jn,wf()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,Ee).addObserver(this),zp(C(this,Ee),this.options)?ve(this,ze,Ai).call(this):this.updateResult(),ve(this,ze,Rf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Df(C(this,Ee),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Df(C(this,Ee),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ve(this,ze,Of).call(this),ve(this,ze,Mf).call(this),C(this,Ee).removeObserver(this)}setOptions(r){const i=this.options,s=C(this,Ee);if(this.options=C(this,_t).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof sn(this.options.enabled,C(this,Ee))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ve(this,ze,zf).call(this),C(this,Ee).setOptions(this.options),i._defaulted&&!Nu(this.options,i)&&C(this,_t).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,Ee),observer:this});const c=this.hasListeners();c&&Dp(C(this,Ee),s,this.options,i)&&ve(this,ze,Ai).call(this),this.updateResult(),c&&(C(this,Ee)!==s||sn(this.options.enabled,C(this,Ee))!==sn(i.enabled,C(this,Ee))||Bl(this.options.staleTime,C(this,Ee))!==Bl(i.staleTime,C(this,Ee)))&&ve(this,ze,Tf).call(this);const f=ve(this,ze,Cf).call(this);c&&(C(this,Ee)!==s||sn(this.options.enabled,C(this,Ee))!==sn(i.enabled,C(this,Ee))||f!==C(this,Ul))&&ve(this,ze,Af).call(this,f)}getOptimisticResult(r){const i=C(this,_t).getQueryCache().build(C(this,_t),r),s=this.createResult(i,r);return cx(this,s)&&(ee(this,bt,s),ee(this,fr,this.options),ee(this,ma,C(this,Ee).state)),s}getCurrentResult(){return C(this,bt)}trackResult(r,i){return new Proxy(r,{get:(s,c)=>(this.trackProp(c),i==null||i(c),c==="promise"&&!this.options.experimental_prefetchInRender&&C(this,Jn).status==="pending"&&C(this,Jn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,c))})}trackProp(r){C(this,mr).add(r)}getCurrentQuery(){return C(this,Ee)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const i=C(this,_t).defaultQueryOptions(r),s=C(this,_t).getQueryCache().build(C(this,_t),i);return s.fetch().then(()=>this.createResult(s,i))}fetch(r){return ve(this,ze,Ai).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,bt)))}createResult(r,i){var P;const s=C(this,Ee),c=this.options,f=C(this,bt),d=C(this,ma),p=C(this,fr),g=r!==s?r.state:C(this,Bi),{state:x}=r;let S={...x},N=!1,O;if(i._optimisticResults){const F=this.hasListeners(),oe=!F&&zp(r,i),ie=F&&Dp(r,s,i,c);(oe||ie)&&(S={...S,...Mv(x.data,r.options)}),i._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:Y,errorUpdatedAt:M,status:R}=S;O=S.data;let L=!1;if(i.placeholderData!==void 0&&O===void 0&&R==="pending"){let F;f!=null&&f.isPlaceholderData&&i.placeholderData===(p==null?void 0:p.placeholderData)?(F=f.data,L=!0):F=typeof i.placeholderData=="function"?i.placeholderData((P=C(this,hr))==null?void 0:P.state.data,C(this,hr)):i.placeholderData,F!==void 0&&(R="success",O=Nf(f==null?void 0:f.data,F,i),N=!0)}if(i.select&&O!==void 0&&!L)if(f&&O===(d==null?void 0:d.data)&&i.select===C(this,ki))O=C(this,dr);else try{ee(this,ki,i.select),O=i.select(O),O=Nf(f==null?void 0:f.data,O,i),ee(this,dr,O),ee(this,_l,null)}catch(F){ee(this,_l,F)}C(this,_l)&&(Y=C(this,_l),O=C(this,dr),M=Date.now(),R="error");const H=S.fetchStatus==="fetching",j=R==="pending",Q=R==="error",B=j&&H,k=O!==void 0,W={status:R,fetchStatus:S.fetchStatus,isPending:j,isSuccess:R==="success",isError:Q,isInitialLoading:B,isLoading:B,data:O,dataUpdatedAt:S.dataUpdatedAt,error:Y,errorUpdatedAt:M,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:S.dataUpdateCount>0||S.errorUpdateCount>0,isFetchedAfterMount:S.dataUpdateCount>g.dataUpdateCount||S.errorUpdateCount>g.errorUpdateCount,isFetching:H,isRefetching:H&&!j,isLoadingError:Q&&!k,isPaused:S.fetchStatus==="paused",isPlaceholderData:N,isRefetchError:Q&&k,isStale:Zf(r,i),refetch:this.refetch,promise:C(this,Jn),isEnabled:sn(i.enabled,r)!==!1};if(this.options.experimental_prefetchInRender){const F=qe=>{W.status==="error"?qe.reject(W.error):W.data!==void 0&&qe.resolve(W.data)},oe=()=>{const qe=ee(this,Jn,W.promise=wf());F(qe)},ie=C(this,Jn);switch(ie.status){case"pending":r.queryHash===s.queryHash&&F(ie);break;case"fulfilled":(W.status==="error"||W.data!==ie.value)&&oe();break;case"rejected":(W.status!=="error"||W.error!==ie.reason)&&oe();break}}return W}updateResult(){const r=C(this,bt),i=this.createResult(C(this,Ee),this.options);if(ee(this,ma,C(this,Ee).state),ee(this,fr,this.options),C(this,ma).data!==void 0&&ee(this,hr,C(this,Ee)),Nu(i,r))return;ee(this,bt,i);const s=()=>{if(!r)return!0;const{notifyOnChangeProps:c}=this.options,f=typeof c=="function"?c():c;if(f==="all"||!f&&!C(this,mr).size)return!0;const d=new Set(f??C(this,mr));return this.options.throwOnError&&d.add("error"),Object.keys(C(this,bt)).some(p=>{const v=p;return C(this,bt)[v]!==r[v]&&d.has(v)})};ve(this,ze,zv).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ve(this,ze,Rf).call(this)}},_t=new WeakMap,Ee=new WeakMap,Bi=new WeakMap,bt=new WeakMap,ma=new WeakMap,fr=new WeakMap,Jn=new WeakMap,_l=new WeakMap,ki=new WeakMap,dr=new WeakMap,hr=new WeakMap,ga=new WeakMap,pa=new WeakMap,Ul=new WeakMap,mr=new WeakMap,ze=new WeakSet,Ai=function(r){ve(this,ze,zf).call(this);let i=C(this,Ee).fetch(this.options,r);return r!=null&&r.throwOnError||(i=i.catch(St)),i},Tf=function(){ve(this,ze,Of).call(this);const r=Bl(this.options.staleTime,C(this,Ee));if(ya||C(this,bt).isStale||!xf(r))return;const s=wv(C(this,bt).dataUpdatedAt,r)+1;ee(this,ga,ua.setTimeout(()=>{C(this,bt).isStale||this.updateResult()},s))},Cf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,Ee)):this.options.refetchInterval)??!1},Af=function(r){ve(this,ze,Mf).call(this),ee(this,Ul,r),!(ya||sn(this.options.enabled,C(this,Ee))===!1||!xf(C(this,Ul))||C(this,Ul)===0)&&ee(this,pa,ua.setInterval(()=>{(this.options.refetchIntervalInBackground||Kf.isFocused())&&ve(this,ze,Ai).call(this)},C(this,Ul)))},Rf=function(){ve(this,ze,Tf).call(this),ve(this,ze,Af).call(this,ve(this,ze,Cf).call(this))},Of=function(){C(this,ga)&&(ua.clearTimeout(C(this,ga)),ee(this,ga,void 0))},Mf=function(){C(this,pa)&&(ua.clearInterval(C(this,pa)),ee(this,pa,void 0))},zf=function(){const r=C(this,_t).getQueryCache().build(C(this,_t),this.options);if(r===C(this,Ee))return;const i=C(this,Ee);ee(this,Ee,r),ee(this,Bi,r.state),this.hasListeners()&&(i==null||i.removeObserver(this),r.addObserver(this))},zv=function(r){lt.batch(()=>{r.listeners&&this.listeners.forEach(i=>{i(C(this,bt))}),C(this,_t).getQueryCache().notify({query:C(this,Ee),type:"observerResultsUpdated"})})},mv);function ox(l,r){return sn(r.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&r.retryOnMount===!1)}function zp(l,r){return ox(l,r)||l.state.data!==void 0&&Df(l,r,r.refetchOnMount)}function Df(l,r,i){if(sn(r.enabled,l)!==!1&&Bl(r.staleTime,l)!=="static"){const s=typeof i=="function"?i(l):i;return s==="always"||s!==!1&&Zf(l,r)}return!1}function Dp(l,r,i,s){return(l!==r||sn(s.enabled,l)===!1)&&(!i.suspense||l.state.status!=="error")&&Zf(l,i)}function Zf(l,r){return sn(r.enabled,l)!==!1&&l.isStaleByTime(Bl(r.staleTime,l))}function cx(l,r){return!Nu(l.getCurrentResult(),r)}function _p(l){return{onFetch:(r,i)=>{var x,S,N,O,Y;const s=r.options,c=(N=(S=(x=r.fetchOptions)==null?void 0:x.meta)==null?void 0:S.fetchMore)==null?void 0:N.direction,f=((O=r.state.data)==null?void 0:O.pages)||[],d=((Y=r.state.data)==null?void 0:Y.pageParams)||[];let p={pages:[],pageParams:[]},v=0;const g=async()=>{let M=!1;const R=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(r.signal.aborted?M=!0:r.signal.addEventListener("abort",()=>{M=!0}),r.signal)})},L=Tv(r.options,r.fetchOptions),H=async(j,Q,B)=>{if(M)return Promise.reject();if(Q==null&&j.pages.length)return Promise.resolve(j);const K=(()=>{const oe={client:r.client,queryKey:r.queryKey,pageParam:Q,direction:B?"backward":"forward",meta:r.options.meta};return R(oe),oe})(),W=await L(K),{maxPages:P}=r.options,F=B?tx:ex;return{pages:F(j.pages,W,P),pageParams:F(j.pageParams,Q,P)}};if(c&&f.length){const j=c==="backward",Q=j?fx:Up,B={pages:f,pageParams:d},k=Q(s,B);p=await H(B,k,j)}else{const j=l??f.length;do{const Q=v===0?d[0]??s.initialPageParam:Up(s,p);if(v>0&&Q==null)break;p=await H(p,Q),v++}while(v<j)}return p};r.options.persister?r.fetchFn=()=>{var M,R;return(R=(M=r.options).persister)==null?void 0:R.call(M,g,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},i)}:r.fetchFn=g}}}function Up(l,{pages:r,pageParams:i}){const s=r.length-1;return r.length>0?l.getNextPageParam(r[s],r,i[s],i):void 0}function fx(l,{pages:r,pageParams:i}){var s;return r.length>0?(s=l.getPreviousPageParam)==null?void 0:s.call(l,r[0],r,i[0],i):void 0}var Qi,Nn,xt,va,wn,Rl,gv,dx=(gv=class extends Ov{constructor(r){super();se(this,wn);se(this,Qi);se(this,Nn);se(this,xt);se(this,va);ee(this,Qi,r.client),this.mutationId=r.mutationId,ee(this,xt,r.mutationCache),ee(this,Nn,[]),this.state=r.state||Dv(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){C(this,Nn).includes(r)||(C(this,Nn).push(r),this.clearGcTimeout(),C(this,xt).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){ee(this,Nn,C(this,Nn).filter(i=>i!==r)),this.scheduleGc(),C(this,xt).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){C(this,Nn).length||(this.state.status==="pending"?this.scheduleGc():C(this,xt).remove(this))}continue(){var r;return((r=C(this,va))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var d,p,v,g,x,S,N,O,Y,M,R,L,H,j,Q,B,k,K,W,P;const i=()=>{ve(this,wn,Rl).call(this,{type:"continue"})},s={client:C(this,Qi),meta:this.options.meta,mutationKey:this.options.mutationKey};ee(this,va,Rv({fn:()=>this.options.mutationFn?this.options.mutationFn(r,s):Promise.reject(new Error("No mutationFn found")),onFail:(F,oe)=>{ve(this,wn,Rl).call(this,{type:"failed",failureCount:F,error:oe})},onPause:()=>{ve(this,wn,Rl).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,xt).canRun(this)}));const c=this.state.status==="pending",f=!C(this,va).canStart();try{if(c)i();else{ve(this,wn,Rl).call(this,{type:"pending",variables:r,isPaused:f}),await((p=(d=C(this,xt).config).onMutate)==null?void 0:p.call(d,r,this,s));const oe=await((g=(v=this.options).onMutate)==null?void 0:g.call(v,r,s));oe!==this.state.context&&ve(this,wn,Rl).call(this,{type:"pending",context:oe,variables:r,isPaused:f})}const F=await C(this,va).start();return await((S=(x=C(this,xt).config).onSuccess)==null?void 0:S.call(x,F,r,this.state.context,this,s)),await((O=(N=this.options).onSuccess)==null?void 0:O.call(N,F,r,this.state.context,s)),await((M=(Y=C(this,xt).config).onSettled)==null?void 0:M.call(Y,F,null,this.state.variables,this.state.context,this,s)),await((L=(R=this.options).onSettled)==null?void 0:L.call(R,F,null,r,this.state.context,s)),ve(this,wn,Rl).call(this,{type:"success",data:F}),F}catch(F){try{throw await((j=(H=C(this,xt).config).onError)==null?void 0:j.call(H,F,r,this.state.context,this,s)),await((B=(Q=this.options).onError)==null?void 0:B.call(Q,F,r,this.state.context,s)),await((K=(k=C(this,xt).config).onSettled)==null?void 0:K.call(k,void 0,F,this.state.variables,this.state.context,this,s)),await((P=(W=this.options).onSettled)==null?void 0:P.call(W,void 0,F,r,this.state.context,s)),F}finally{ve(this,wn,Rl).call(this,{type:"error",error:F})}}finally{C(this,xt).runNext(this)}}},Qi=new WeakMap,Nn=new WeakMap,xt=new WeakMap,va=new WeakMap,wn=new WeakSet,Rl=function(r){const i=s=>{switch(r.type){case"failed":return{...s,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...s,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:r.error,failureCount:s.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=i(this.state),lt.batch(()=>{C(this,Nn).forEach(s=>{s.onMutationUpdate(r)}),C(this,xt).notify({mutation:this,type:"updated",action:r})})},gv);function Dv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fn,mn,Gi,pv,hx=(pv=class extends xr{constructor(r={}){super();se(this,Fn);se(this,mn);se(this,Gi);this.config=r,ee(this,Fn,new Set),ee(this,mn,new Map),ee(this,Gi,0)}build(r,i,s){const c=new dx({client:r,mutationCache:this,mutationId:++du(this,Gi)._,options:r.defaultMutationOptions(i),state:s});return this.add(c),c}add(r){C(this,Fn).add(r);const i=hu(r);if(typeof i=="string"){const s=C(this,mn).get(i);s?s.push(r):C(this,mn).set(i,[r])}this.notify({type:"added",mutation:r})}remove(r){if(C(this,Fn).delete(r)){const i=hu(r);if(typeof i=="string"){const s=C(this,mn).get(i);if(s)if(s.length>1){const c=s.indexOf(r);c!==-1&&s.splice(c,1)}else s[0]===r&&C(this,mn).delete(i)}}this.notify({type:"removed",mutation:r})}canRun(r){const i=hu(r);if(typeof i=="string"){const s=C(this,mn).get(i),c=s==null?void 0:s.find(f=>f.state.status==="pending");return!c||c===r}else return!0}runNext(r){var s;const i=hu(r);if(typeof i=="string"){const c=(s=C(this,mn).get(i))==null?void 0:s.find(f=>f!==r&&f.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){lt.batch(()=>{C(this,Fn).forEach(r=>{this.notify({type:"removed",mutation:r})}),C(this,Fn).clear(),C(this,mn).clear()})}getAll(){return Array.from(C(this,Fn))}find(r){const i={exact:!0,...r};return this.getAll().find(s=>Ap(i,s))}findAll(r={}){return this.getAll().filter(i=>Ap(r,i))}notify(r){lt.batch(()=>{this.listeners.forEach(i=>{i(r)})})}resumePausedMutations(){const r=this.getAll().filter(i=>i.state.isPaused);return lt.batch(()=>Promise.all(r.map(i=>i.continue().catch(St))))}},Fn=new WeakMap,mn=new WeakMap,Gi=new WeakMap,pv);function hu(l){var r;return(r=l.options.scope)==null?void 0:r.id}var $n,Ll,Ut,Wn,In,bu,_f,vv,mx=(vv=class extends xr{constructor(i,s){super();se(this,In);se(this,$n);se(this,Ll);se(this,Ut);se(this,Wn);ee(this,$n,i),this.setOptions(s),this.bindMethods(),ve(this,In,bu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var c;const s=this.options;this.options=C(this,$n).defaultMutationOptions(i),Nu(this.options,s)||C(this,$n).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,Ut),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&ba(s.mutationKey)!==ba(this.options.mutationKey)?this.reset():((c=C(this,Ut))==null?void 0:c.state.status)==="pending"&&C(this,Ut).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=C(this,Ut))==null||i.removeObserver(this)}onMutationUpdate(i){ve(this,In,bu).call(this),ve(this,In,_f).call(this,i)}getCurrentResult(){return C(this,Ll)}reset(){var i;(i=C(this,Ut))==null||i.removeObserver(this),ee(this,Ut,void 0),ve(this,In,bu).call(this),ve(this,In,_f).call(this)}mutate(i,s){var c;return ee(this,Wn,s),(c=C(this,Ut))==null||c.removeObserver(this),ee(this,Ut,C(this,$n).getMutationCache().build(C(this,$n),this.options)),C(this,Ut).addObserver(this),C(this,Ut).execute(i)}},$n=new WeakMap,Ll=new WeakMap,Ut=new WeakMap,Wn=new WeakMap,In=new WeakSet,bu=function(){var s;const i=((s=C(this,Ut))==null?void 0:s.state)??Dv();ee(this,Ll,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},_f=function(i){lt.batch(()=>{var s,c,f,d,p,v,g,x;if(C(this,Wn)&&this.hasListeners()){const S=C(this,Ll).variables,N=C(this,Ll).context,O={client:C(this,$n),meta:this.options.meta,mutationKey:this.options.mutationKey};(i==null?void 0:i.type)==="success"?((c=(s=C(this,Wn)).onSuccess)==null||c.call(s,i.data,S,N,O),(d=(f=C(this,Wn)).onSettled)==null||d.call(f,i.data,null,S,N,O)):(i==null?void 0:i.type)==="error"&&((v=(p=C(this,Wn)).onError)==null||v.call(p,i.error,S,N,O),(x=(g=C(this,Wn)).onSettled)==null||x.call(g,void 0,i.error,S,N,O))}this.listeners.forEach(S=>{S(C(this,Ll))})})},vv),En,yv,gx=(yv=class extends xr{constructor(r={}){super();se(this,En);this.config=r,ee(this,En,new Map)}build(r,i,s){const c=i.queryKey,f=i.queryHash??Vf(c,i);let d=this.get(f);return d||(d=new sx({client:r,queryKey:c,queryHash:f,options:r.defaultQueryOptions(i),state:s,defaultOptions:r.getQueryDefaults(c)}),this.add(d)),d}add(r){C(this,En).has(r.queryHash)||(C(this,En).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const i=C(this,En).get(r.queryHash);i&&(r.destroy(),i===r&&C(this,En).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){lt.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return C(this,En).get(r)}getAll(){return[...C(this,En).values()]}find(r){const i={exact:!0,...r};return this.getAll().find(s=>Cp(i,s))}findAll(r={}){const i=this.getAll();return Object.keys(r).length>0?i.filter(s=>Cp(r,s)):i}notify(r){lt.batch(()=>{this.listeners.forEach(i=>{i(r)})})}onFocus(){lt.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){lt.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},En=new WeakMap,yv),Je,jl,ql,gr,pr,Hl,vr,yr,bv,px=(bv=class{constructor(l={}){se(this,Je);se(this,jl);se(this,ql);se(this,gr);se(this,pr);se(this,Hl);se(this,vr);se(this,yr);ee(this,Je,l.queryCache||new gx),ee(this,jl,l.mutationCache||new hx),ee(this,ql,l.defaultOptions||{}),ee(this,gr,new Map),ee(this,pr,new Map),ee(this,Hl,0)}mount(){du(this,Hl)._++,C(this,Hl)===1&&(ee(this,vr,Kf.subscribe(async l=>{l&&(await this.resumePausedMutations(),C(this,Je).onFocus())})),ee(this,yr,wu.subscribe(async l=>{l&&(await this.resumePausedMutations(),C(this,Je).onOnline())})))}unmount(){var l,r;du(this,Hl)._--,C(this,Hl)===0&&((l=C(this,vr))==null||l.call(this),ee(this,vr,void 0),(r=C(this,yr))==null||r.call(this),ee(this,yr,void 0))}isFetching(l){return C(this,Je).findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return C(this,jl).findAll({...l,status:"pending"}).length}getQueryData(l){var i;const r=this.defaultQueryOptions({queryKey:l});return(i=C(this,Je).get(r.queryHash))==null?void 0:i.state.data}ensureQueryData(l){const r=this.defaultQueryOptions(l),i=C(this,Je).build(this,r),s=i.state.data;return s===void 0?this.fetchQuery(l):(l.revalidateIfStale&&i.isStaleByTime(Bl(r.staleTime,i))&&this.prefetchQuery(r),Promise.resolve(s))}getQueriesData(l){return C(this,Je).findAll(l).map(({queryKey:r,state:i})=>{const s=i.data;return[r,s]})}setQueryData(l,r,i){const s=this.defaultQueryOptions({queryKey:l}),c=C(this,Je).get(s.queryHash),f=c==null?void 0:c.state.data,d=W1(r,f);if(d!==void 0)return C(this,Je).build(this,s).setData(d,{...i,manual:!0})}setQueriesData(l,r,i){return lt.batch(()=>C(this,Je).findAll(l).map(({queryKey:s})=>[s,this.setQueryData(s,r,i)]))}getQueryState(l){var i;const r=this.defaultQueryOptions({queryKey:l});return(i=C(this,Je).get(r.queryHash))==null?void 0:i.state}removeQueries(l){const r=C(this,Je);lt.batch(()=>{r.findAll(l).forEach(i=>{r.remove(i)})})}resetQueries(l,r){const i=C(this,Je);return lt.batch(()=>(i.findAll(l).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...l},r)))}cancelQueries(l,r={}){const i={revert:!0,...r},s=lt.batch(()=>C(this,Je).findAll(l).map(c=>c.cancel(i)));return Promise.all(s).then(St).catch(St)}invalidateQueries(l,r={}){return lt.batch(()=>(C(this,Je).findAll(l).forEach(i=>{i.invalidate()}),(l==null?void 0:l.refetchType)==="none"?Promise.resolve():this.refetchQueries({...l,type:(l==null?void 0:l.refetchType)??(l==null?void 0:l.type)??"active"},r)))}refetchQueries(l,r={}){const i={...r,cancelRefetch:r.cancelRefetch??!0},s=lt.batch(()=>C(this,Je).findAll(l).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,i);return i.throwOnError||(f=f.catch(St)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(St)}fetchQuery(l){const r=this.defaultQueryOptions(l);r.retry===void 0&&(r.retry=!1);const i=C(this,Je).build(this,r);return i.isStaleByTime(Bl(r.staleTime,i))?i.fetch(r):Promise.resolve(i.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(St).catch(St)}fetchInfiniteQuery(l){return l.behavior=_p(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(St).catch(St)}ensureInfiniteQueryData(l){return l.behavior=_p(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return wu.isOnline()?C(this,jl).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Je)}getMutationCache(){return C(this,jl)}getDefaultOptions(){return C(this,ql)}setDefaultOptions(l){ee(this,ql,l)}setQueryDefaults(l,r){C(this,gr).set(ba(l),{queryKey:l,defaultOptions:r})}getQueryDefaults(l){const r=[...C(this,gr).values()],i={};return r.forEach(s=>{Di(l,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(l,r){C(this,pr).set(ba(l),{mutationKey:l,defaultOptions:r})}getMutationDefaults(l){const r=[...C(this,pr).values()],i={};return r.forEach(s=>{Di(l,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(l){if(l._defaulted)return l;const r={...C(this,ql).queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return r.queryHash||(r.queryHash=Vf(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===Xf&&(r.enabled=!1),r}defaultMutationOptions(l){return l!=null&&l._defaulted?l:{...C(this,ql).mutations,...(l==null?void 0:l.mutationKey)&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){C(this,Je).clear(),C(this,jl).clear()}},Je=new WeakMap,jl=new WeakMap,ql=new WeakMap,gr=new WeakMap,pr=new WeakMap,Hl=new WeakMap,vr=new WeakMap,yr=new WeakMap,bv),_v=y.createContext(void 0),Sr=l=>{const r=y.useContext(_v);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},vx=({client:l,children:r})=>(y.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),m(_v.Provider,{value:l,children:r})),Uv=y.createContext(!1),yx=()=>y.useContext(Uv);Uv.Provider;function bx(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var xx=y.createContext(bx()),Sx=()=>y.useContext(xx),Nx=(l,r)=>{(l.suspense||l.throwOnError||l.experimental_prefetchInRender)&&(r.isReset()||(l.retryOnMount=!1))},wx=l=>{y.useEffect(()=>{l.clearReset()},[l])},Ex=({result:l,errorResetBoundary:r,throwOnError:i,query:s,suspense:c})=>l.isError&&!r.isReset()&&!l.isFetching&&s&&(c&&l.data===void 0||Cv(i,[l.error,s])),Tx=l=>{if(l.suspense){const i=c=>c==="static"?c:Math.max(c??1e3,1e3),s=l.staleTime;l.staleTime=typeof s=="function"?(...c)=>i(s(...c)):i(s),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},Cx=(l,r)=>l.isLoading&&l.isFetching&&!r,Ax=(l,r)=>(l==null?void 0:l.suspense)&&r.isPending,Lp=(l,r,i)=>r.fetchOptimistic(l).catch(()=>{i.clearReset()});function Rx(l,r,i){var S,N,O,Y,M;const s=yx(),c=Sx(),f=Sr(),d=f.defaultQueryOptions(l);(N=(S=f.getDefaultOptions().queries)==null?void 0:S._experimental_beforeQuery)==null||N.call(S,d),d._optimisticResults=s?"isRestoring":"optimistic",Tx(d),Nx(d,c),wx(c);const p=!f.getQueryCache().get(d.queryHash),[v]=y.useState(()=>new r(f,d)),g=v.getOptimisticResult(d),x=!s&&l.subscribed!==!1;if(y.useSyncExternalStore(y.useCallback(R=>{const L=x?v.subscribe(lt.batchCalls(R)):St;return v.updateResult(),L},[v,x]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),y.useEffect(()=>{v.setOptions(d)},[d,v]),Ax(d,g))throw Lp(d,v,c);if(Ex({result:g,errorResetBoundary:c,throwOnError:d.throwOnError,query:f.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw g.error;if((Y=(O=f.getDefaultOptions().queries)==null?void 0:O._experimental_afterQuery)==null||Y.call(O,d,g),d.experimental_prefetchInRender&&!ya&&Cx(g,s)){const R=p?Lp(d,v,c):(M=f.getQueryCache().get(d.queryHash))==null?void 0:M.promise;R==null||R.catch(St).finally(()=>{v.updateResult()})}return d.notifyOnChangeProps?g:v.trackResult(g)}function Nr(l,r){return Rx(l,ux)}function Ru(l,r){const i=Sr(),[s]=y.useState(()=>new mx(i,l));y.useEffect(()=>{s.setOptions(l)},[s,l]);const c=y.useSyncExternalStore(y.useCallback(d=>s.subscribe(lt.batchCalls(d)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),f=y.useCallback((d,p)=>{s.mutate(d,p).catch(St)},[s]);if(c.error&&Cv(s.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}/**
|
|
50
|
-
* react-router v7.9.4
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/var jp="popstate";function Ox(l={}){function r(s,c){let{pathname:f,search:d,hash:p}=s.location;return Uf("",{pathname:f,search:d,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function i(s,c){return typeof c=="string"?c:_i(c)}return zx(r,i,null,l)}function Xe(l,r){if(l===!1||l===null||typeof l>"u")throw new Error(r)}function gn(l,r){if(!l){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function Mx(){return Math.random().toString(36).substring(2,10)}function qp(l,r){return{usr:l.state,key:l.key,idx:r}}function Uf(l,r,i=null,s){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof r=="string"?wr(r):r,state:i,key:r&&r.key||s||Mx()}}function _i({pathname:l="/",search:r="",hash:i=""}){return r&&r!=="?"&&(l+=r.charAt(0)==="?"?r:"?"+r),i&&i!=="#"&&(l+=i.charAt(0)==="#"?i:"#"+i),l}function wr(l){let r={};if(l){let i=l.indexOf("#");i>=0&&(r.hash=l.substring(i),l=l.substring(0,i));let s=l.indexOf("?");s>=0&&(r.search=l.substring(s),l=l.substring(0,s)),l&&(r.pathname=l)}return r}function zx(l,r,i,s={}){let{window:c=document.defaultView,v5Compat:f=!1}=s,d=c.history,p="POP",v=null,g=x();g==null&&(g=0,d.replaceState({...d.state,idx:g},""));function x(){return(d.state||{idx:null}).idx}function S(){p="POP";let R=x(),L=R==null?null:R-g;g=R,v&&v({action:p,location:M.location,delta:L})}function N(R,L){p="PUSH";let H=Uf(M.location,R,L);g=x()+1;let j=qp(H,g),Q=M.createHref(H);try{d.pushState(j,"",Q)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;c.location.assign(Q)}f&&v&&v({action:p,location:M.location,delta:1})}function O(R,L){p="REPLACE";let H=Uf(M.location,R,L);g=x();let j=qp(H,g),Q=M.createHref(H);d.replaceState(j,"",Q),f&&v&&v({action:p,location:M.location,delta:0})}function Y(R){return Dx(R)}let M={get action(){return p},get location(){return l(c,d)},listen(R){if(v)throw new Error("A history only accepts one active listener");return c.addEventListener(jp,S),v=R,()=>{c.removeEventListener(jp,S),v=null}},createHref(R){return r(c,R)},createURL:Y,encodeLocation(R){let L=Y(R);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:N,replace:O,go(R){return d.go(R)}};return M}function Dx(l,r=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Xe(i,"No window.location.(origin|href) available to create URL");let s=typeof l=="string"?l:_i(l);return s=s.replace(/ $/,"%20"),!r&&s.startsWith("//")&&(s=i+s),new URL(s,i)}function Lv(l,r,i="/"){return _x(l,r,i,!1)}function _x(l,r,i,s){let c=typeof r=="string"?wr(r):r,f=el(c.pathname||"/",i);if(f==null)return null;let d=jv(l);Ux(d);let p=null;for(let v=0;p==null&&v<d.length;++v){let g=Xx(f);p=Yx(d[v],g,s)}return p}function jv(l,r=[],i=[],s="",c=!1){let f=(d,p,v=c,g)=>{let x={relativePath:g===void 0?d.path||"":g,caseSensitive:d.caseSensitive===!0,childrenIndex:p,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(s)&&v)return;Xe(x.relativePath.startsWith(s),`Absolute route path "${x.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(s.length)}let S=Pn([s,x.relativePath]),N=i.concat(x);d.children&&d.children.length>0&&(Xe(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),jv(d.children,r,N,S,v)),!(d.path==null&&!d.index)&&r.push({path:S,score:Qx(S,d.index),routesMeta:N})};return l.forEach((d,p)=>{var v;if(d.path===""||!((v=d.path)!=null&&v.includes("?")))f(d,p);else for(let g of qv(d.path))f(d,p,!0,g)}),r}function qv(l){let r=l.split("/");if(r.length===0)return[];let[i,...s]=r,c=i.endsWith("?"),f=i.replace(/\?$/,"");if(s.length===0)return c?[f,""]:[f];let d=qv(s.join("/")),p=[];return p.push(...d.map(v=>v===""?f:[f,v].join("/"))),c&&p.push(...d),p.map(v=>l.startsWith("/")&&v===""?"/":v)}function Ux(l){l.sort((r,i)=>r.score!==i.score?i.score-r.score:Gx(r.routesMeta.map(s=>s.childrenIndex),i.routesMeta.map(s=>s.childrenIndex)))}var Lx=/^:[\w-]+$/,jx=3,qx=2,Hx=1,Bx=10,kx=-2,Hp=l=>l==="*";function Qx(l,r){let i=l.split("/"),s=i.length;return i.some(Hp)&&(s+=kx),r&&(s+=qx),i.filter(c=>!Hp(c)).reduce((c,f)=>c+(Lx.test(f)?jx:f===""?Hx:Bx),s)}function Gx(l,r){return l.length===r.length&&l.slice(0,-1).every((s,c)=>s===r[c])?l[l.length-1]-r[r.length-1]:0}function Yx(l,r,i=!1){let{routesMeta:s}=l,c={},f="/",d=[];for(let p=0;p<s.length;++p){let v=s[p],g=p===s.length-1,x=f==="/"?r:r.slice(f.length)||"/",S=Eu({path:v.relativePath,caseSensitive:v.caseSensitive,end:g},x),N=v.route;if(!S&&g&&i&&!s[s.length-1].route.index&&(S=Eu({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},x)),!S)return null;Object.assign(c,S.params),d.push({params:c,pathname:Pn([f,S.pathname]),pathnameBase:Fx(Pn([f,S.pathnameBase])),route:N}),S.pathnameBase!=="/"&&(f=Pn([f,S.pathnameBase]))}return d}function Eu(l,r){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[i,s]=Vx(l.path,l.caseSensitive,l.end),c=r.match(i);if(!c)return null;let f=c[0],d=f.replace(/(.)\/+$/,"$1"),p=c.slice(1);return{params:s.reduce((g,{paramName:x,isOptional:S},N)=>{if(x==="*"){let Y=p[N]||"";d=f.slice(0,f.length-Y.length).replace(/(.)\/+$/,"$1")}const O=p[N];return S&&!O?g[x]=void 0:g[x]=(O||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:d,pattern:l}}function Vx(l,r=!1,i=!0){gn(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let s=[],c="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,p,v)=>(s.push({paramName:p,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(s.push({paramName:"*"}),c+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?c+="\\/*$":l!==""&&l!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,r?void 0:"i"),s]}function Xx(l){try{return l.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return gn(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),l}}function el(l,r){if(r==="/")return l;if(!l.toLowerCase().startsWith(r.toLowerCase()))return null;let i=r.endsWith("/")?r.length-1:r.length,s=l.charAt(i);return s&&s!=="/"?null:l.slice(i)||"/"}function Kx(l,r="/"){let{pathname:i,search:s="",hash:c=""}=typeof l=="string"?wr(l):l;return{pathname:i?i.startsWith("/")?i:Zx(i,r):r,search:$x(s),hash:Wx(c)}}function Zx(l,r){let i=r.replace(/\/+$/,"").split("/");return l.split("/").forEach(c=>{c===".."?i.length>1&&i.pop():c!=="."&&i.push(c)}),i.length>1?i.join("/"):"/"}function df(l,r,i,s){return`Cannot include a '${l}' character in a manually specified \`to.${r}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Jx(l){return l.filter((r,i)=>i===0||r.route.path&&r.route.path.length>0)}function Jf(l){let r=Jx(l);return r.map((i,s)=>s===r.length-1?i.pathname:i.pathnameBase)}function Ff(l,r,i,s=!1){let c;typeof l=="string"?c=wr(l):(c={...l},Xe(!c.pathname||!c.pathname.includes("?"),df("?","pathname","search",c)),Xe(!c.pathname||!c.pathname.includes("#"),df("#","pathname","hash",c)),Xe(!c.search||!c.search.includes("#"),df("#","search","hash",c)));let f=l===""||c.pathname==="",d=f?"/":c.pathname,p;if(d==null)p=i;else{let S=r.length-1;if(!s&&d.startsWith("..")){let N=d.split("/");for(;N[0]==="..";)N.shift(),S-=1;c.pathname=N.join("/")}p=S>=0?r[S]:"/"}let v=Kx(c,p),g=d&&d!=="/"&&d.endsWith("/"),x=(f||d===".")&&i.endsWith("/");return!v.pathname.endsWith("/")&&(g||x)&&(v.pathname+="/"),v}var Pn=l=>l.join("/").replace(/\/\/+/g,"/"),Fx=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),$x=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,Wx=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l;function Px(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}var Hv=["POST","PUT","PATCH","DELETE"];new Set(Hv);var Ix=["GET",...Hv];new Set(Ix);var Er=y.createContext(null);Er.displayName="DataRouter";var Ou=y.createContext(null);Ou.displayName="DataRouterState";y.createContext(!1);var Bv=y.createContext({isTransitioning:!1});Bv.displayName="ViewTransition";var eS=y.createContext(new Map);eS.displayName="Fetchers";var tS=y.createContext(null);tS.displayName="Await";var pn=y.createContext(null);pn.displayName="Navigation";var Yi=y.createContext(null);Yi.displayName="Location";var un=y.createContext({outlet:null,matches:[],isDataRoute:!1});un.displayName="Route";var $f=y.createContext(null);$f.displayName="RouteError";function nS(l,{relative:r}={}){Xe(Tr(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:s}=y.useContext(pn),{hash:c,pathname:f,search:d}=Xi(l,{relative:r}),p=f;return i!=="/"&&(p=f==="/"?i:Pn([i,f])),s.createHref({pathname:p,search:d,hash:c})}function Tr(){return y.useContext(Yi)!=null}function Ql(){return Xe(Tr(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(Yi).location}var kv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Qv(l){y.useContext(pn).static||y.useLayoutEffect(l)}function Vi(){let{isDataRoute:l}=y.useContext(un);return l?vS():lS()}function lS(){Xe(Tr(),"useNavigate() may be used only in the context of a <Router> component.");let l=y.useContext(Er),{basename:r,navigator:i}=y.useContext(pn),{matches:s}=y.useContext(un),{pathname:c}=Ql(),f=JSON.stringify(Jf(s)),d=y.useRef(!1);return Qv(()=>{d.current=!0}),y.useCallback((v,g={})=>{if(gn(d.current,kv),!d.current)return;if(typeof v=="number"){i.go(v);return}let x=Ff(v,JSON.parse(f),c,g.relative==="path");l==null&&r!=="/"&&(x.pathname=x.pathname==="/"?r:Pn([r,x.pathname])),(g.replace?i.replace:i.push)(x,g.state,g)},[r,i,f,c,l])}var aS=y.createContext(null);function rS(l){let r=y.useContext(un).outlet;return y.useMemo(()=>r&&y.createElement(aS.Provider,{value:l},r),[r,l])}function Wf(){let{matches:l}=y.useContext(un),r=l[l.length-1];return r?r.params:{}}function Xi(l,{relative:r}={}){let{matches:i}=y.useContext(un),{pathname:s}=Ql(),c=JSON.stringify(Jf(i));return y.useMemo(()=>Ff(l,JSON.parse(c),s,r==="path"),[l,c,s,r])}function iS(l,r){return Gv(l,r)}function Gv(l,r,i,s,c){var H;Xe(Tr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=y.useContext(pn),{matches:d}=y.useContext(un),p=d[d.length-1],v=p?p.params:{},g=p?p.pathname:"/",x=p?p.pathnameBase:"/",S=p&&p.route;{let j=S&&S.path||"";Yv(g,!S||j.endsWith("*")||j.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${j}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
|
-
|
|
60
|
-
Please change the parent <Route path="${j}"> to <Route path="${j==="/"?"*":`${j}/*`}">.`)}let N=Ql(),O;if(r){let j=typeof r=="string"?wr(r):r;Xe(x==="/"||((H=j.pathname)==null?void 0:H.startsWith(x)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${x}" but pathname "${j.pathname}" was given in the \`location\` prop.`),O=j}else O=N;let Y=O.pathname||"/",M=Y;if(x!=="/"){let j=x.replace(/^\//,"").split("/");M="/"+Y.replace(/^\//,"").split("/").slice(j.length).join("/")}let R=Lv(l,{pathname:M});gn(S||R!=null,`No routes matched location "${O.pathname}${O.search}${O.hash}" `),gn(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${O.pathname}${O.search}${O.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let L=fS(R&&R.map(j=>Object.assign({},j,{params:Object.assign({},v,j.params),pathname:Pn([x,f.encodeLocation?f.encodeLocation(j.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?x:Pn([x,f.encodeLocation?f.encodeLocation(j.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathnameBase])})),d,i,s,c);return r&&L?y.createElement(Yi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...O},navigationType:"POP"}},L):L}function sS(){let l=pS(),r=Px(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),i=l instanceof Error?l.stack:null,s="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",l),d=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:f},"ErrorBoundary")," or"," ",y.createElement("code",{style:f},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},r),i?y.createElement("pre",{style:c},i):null,d)}var uS=y.createElement(sS,null),oS=class extends y.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,r){return r.location!==l.location||r.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:r.error,location:r.location,revalidation:l.revalidation||r.revalidation}}componentDidCatch(l,r){this.props.unstable_onError?this.props.unstable_onError(l,r):console.error("React Router caught the following error during render",l)}render(){return this.state.error!==void 0?y.createElement(un.Provider,{value:this.props.routeContext},y.createElement($f.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function cS({routeContext:l,match:r,children:i}){let s=y.useContext(Er);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),y.createElement(un.Provider,{value:l},i)}function fS(l,r=[],i=null,s=null,c=null){if(l==null){if(!i)return null;if(i.errors)l=i.matches;else if(r.length===0&&!i.initialized&&i.matches.length>0)l=i.matches;else return null}let f=l,d=i==null?void 0:i.errors;if(d!=null){let g=f.findIndex(x=>x.route.id&&(d==null?void 0:d[x.route.id])!==void 0);Xe(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,g+1))}let p=!1,v=-1;if(i)for(let g=0;g<f.length;g++){let x=f[g];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(v=g),x.route.id){let{loaderData:S,errors:N}=i,O=x.route.loader&&!S.hasOwnProperty(x.route.id)&&(!N||N[x.route.id]===void 0);if(x.route.lazy||O){p=!0,v>=0?f=f.slice(0,v+1):f=[f[0]];break}}}return f.reduceRight((g,x,S)=>{let N,O=!1,Y=null,M=null;i&&(N=d&&x.route.id?d[x.route.id]:void 0,Y=x.route.errorElement||uS,p&&(v<0&&S===0?(Yv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),O=!0,M=null):v===S&&(O=!0,M=x.route.hydrateFallbackElement||null)));let R=r.concat(f.slice(0,S+1)),L=()=>{let H;return N?H=Y:O?H=M:x.route.Component?H=y.createElement(x.route.Component,null):x.route.element?H=x.route.element:H=g,y.createElement(cS,{match:x,routeContext:{outlet:g,matches:R,isDataRoute:i!=null},children:H})};return i&&(x.route.ErrorBoundary||x.route.errorElement||S===0)?y.createElement(oS,{location:i.location,revalidation:i.revalidation,component:Y,error:N,children:L(),routeContext:{outlet:null,matches:R,isDataRoute:!0},unstable_onError:s}):L()},null)}function Pf(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dS(l){let r=y.useContext(Er);return Xe(r,Pf(l)),r}function hS(l){let r=y.useContext(Ou);return Xe(r,Pf(l)),r}function mS(l){let r=y.useContext(un);return Xe(r,Pf(l)),r}function If(l){let r=mS(l),i=r.matches[r.matches.length-1];return Xe(i.route.id,`${l} can only be used on routes that contain a unique "id"`),i.route.id}function gS(){return If("useRouteId")}function pS(){var s;let l=y.useContext($f),r=hS("useRouteError"),i=If("useRouteError");return l!==void 0?l:(s=r.errors)==null?void 0:s[i]}function vS(){let{router:l}=dS("useNavigate"),r=If("useNavigate"),i=y.useRef(!1);return Qv(()=>{i.current=!0}),y.useCallback(async(c,f={})=>{gn(i.current,kv),i.current&&(typeof c=="number"?l.navigate(c):await l.navigate(c,{fromRouteId:r,...f}))},[l,r])}var Bp={};function Yv(l,r,i){!r&&!Bp[l]&&(Bp[l]=!0,gn(!1,i))}y.memo(yS);function yS({routes:l,future:r,state:i,unstable_onError:s}){return Gv(l,void 0,i,s,r)}function bS({to:l,replace:r,state:i,relative:s}){Xe(Tr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=y.useContext(pn);gn(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=y.useContext(un),{pathname:d}=Ql(),p=Vi(),v=Ff(l,Jf(f),d,s==="path"),g=JSON.stringify(v);return y.useEffect(()=>{p(JSON.parse(g),{replace:r,state:i,relative:s})},[p,g,s,r,i]),null}function Vv(l){return rS(l.context)}function Sn(l){Xe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function xS({basename:l="/",children:r=null,location:i,navigationType:s="POP",navigator:c,static:f=!1}){Xe(!Tr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=l.replace(/^\/*/,"/"),p=y.useMemo(()=>({basename:d,navigator:c,static:f,future:{}}),[d,c,f]);typeof i=="string"&&(i=wr(i));let{pathname:v="/",search:g="",hash:x="",state:S=null,key:N="default"}=i,O=y.useMemo(()=>{let Y=el(v,d);return Y==null?null:{location:{pathname:Y,search:g,hash:x,state:S,key:N},navigationType:s}},[d,v,g,x,S,N,s]);return gn(O!=null,`<Router basename="${d}"> is not able to match the URL "${v}${g}${x}" because it does not start with the basename, so the <Router> won't render anything.`),O==null?null:y.createElement(pn.Provider,{value:p},y.createElement(Yi.Provider,{children:r,value:O}))}function SS({children:l,location:r}){return iS(Lf(l),r)}function Lf(l,r=[]){let i=[];return y.Children.forEach(l,(s,c)=>{if(!y.isValidElement(s))return;let f=[...r,c];if(s.type===y.Fragment){i.push.apply(i,Lf(s.props.children,f));return}Xe(s.type===Sn,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Xe(!s.props.index||!s.props.children,"An index route cannot have child routes.");let d={id:s.props.id||f.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(d.children=Lf(s.props.children,f)),i.push(d)}),i}var xu="get",Su="application/x-www-form-urlencoded";function Mu(l){return l!=null&&typeof l.tagName=="string"}function NS(l){return Mu(l)&&l.tagName.toLowerCase()==="button"}function wS(l){return Mu(l)&&l.tagName.toLowerCase()==="form"}function ES(l){return Mu(l)&&l.tagName.toLowerCase()==="input"}function TS(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function CS(l,r){return l.button===0&&(!r||r==="_self")&&!TS(l)}var mu=null;function AS(){if(mu===null)try{new FormData(document.createElement("form"),0),mu=!1}catch{mu=!0}return mu}var RS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function hf(l){return l!=null&&!RS.has(l)?(gn(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Su}"`),null):l}function OS(l,r){let i,s,c,f,d;if(wS(l)){let p=l.getAttribute("action");s=p?el(p,r):null,i=l.getAttribute("method")||xu,c=hf(l.getAttribute("enctype"))||Su,f=new FormData(l)}else if(NS(l)||ES(l)&&(l.type==="submit"||l.type==="image")){let p=l.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=l.getAttribute("formaction")||p.getAttribute("action");if(s=v?el(v,r):null,i=l.getAttribute("formmethod")||p.getAttribute("method")||xu,c=hf(l.getAttribute("formenctype"))||hf(p.getAttribute("enctype"))||Su,f=new FormData(p,l),!AS()){let{name:g,type:x,value:S}=l;if(x==="image"){let N=g?`${g}.`:"";f.append(`${N}x`,"0"),f.append(`${N}y`,"0")}else g&&f.append(g,S)}}else{if(Mu(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=xu,s=null,c=Su,d=l}return f&&c==="text/plain"&&(d=f,f=void 0),{action:s,method:i.toLowerCase(),encType:c,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ed(l,r){if(l===!1||l===null||typeof l>"u")throw new Error(r)}function MS(l,r,i){let s=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return s.pathname==="/"?s.pathname=`_root.${i}`:r&&el(s.pathname,r)==="/"?s.pathname=`${r.replace(/\/$/,"")}/_root.${i}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${i}`,s}async function zS(l,r){if(l.id in r)return r[l.id];try{let i=await import(l.module);return r[l.id]=i,i}catch(i){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function DS(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function _S(l,r,i){let s=await Promise.all(l.map(async c=>{let f=r.routes[c.route.id];if(f){let d=await zS(f,i);return d.links?d.links():[]}return[]}));return qS(s.flat(1).filter(DS).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function kp(l,r,i,s,c,f){let d=(v,g)=>i[g]?v.route.id!==i[g].route.id:!0,p=(v,g)=>{var x;return i[g].pathname!==v.pathname||((x=i[g].route.path)==null?void 0:x.endsWith("*"))&&i[g].params["*"]!==v.params["*"]};return f==="assets"?r.filter((v,g)=>d(v,g)||p(v,g)):f==="data"?r.filter((v,g)=>{var S;let x=s.routes[v.route.id];if(!x||!x.hasLoader)return!1;if(d(v,g)||p(v,g))return!0;if(v.route.shouldRevalidate){let N=v.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((S=i[0])==null?void 0:S.params)||{},nextUrl:new URL(l,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof N=="boolean")return N}return!0}):[]}function US(l,r,{includeHydrateFallback:i}={}){return LS(l.map(s=>{let c=r.routes[s.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),i&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function LS(l){return[...new Set(l)]}function jS(l){let r={},i=Object.keys(l).sort();for(let s of i)r[s]=l[s];return r}function qS(l,r){let i=new Set;return new Set(r),l.reduce((s,c)=>{let f=JSON.stringify(jS(c));return i.has(f)||(i.add(f),s.push({key:f,link:c})),s},[])}function Xv(){let l=y.useContext(Er);return ed(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function HS(){let l=y.useContext(Ou);return ed(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var td=y.createContext(void 0);td.displayName="FrameworkContext";function Kv(){let l=y.useContext(td);return ed(l,"You must render this element inside a <HydratedRouter> element"),l}function BS(l,r){let i=y.useContext(td),[s,c]=y.useState(!1),[f,d]=y.useState(!1),{onFocus:p,onBlur:v,onMouseEnter:g,onMouseLeave:x,onTouchStart:S}=r,N=y.useRef(null);y.useEffect(()=>{if(l==="render"&&d(!0),l==="viewport"){let M=L=>{L.forEach(H=>{d(H.isIntersecting)})},R=new IntersectionObserver(M,{threshold:.5});return N.current&&R.observe(N.current),()=>{R.disconnect()}}},[l]),y.useEffect(()=>{if(s){let M=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(M)}}},[s]);let O=()=>{c(!0)},Y=()=>{c(!1),d(!1)};return i?l!=="intent"?[f,N,{}]:[f,N,{onFocus:Ei(p,O),onBlur:Ei(v,Y),onMouseEnter:Ei(g,O),onMouseLeave:Ei(x,Y),onTouchStart:Ei(S,O)}]:[!1,N,{}]}function Ei(l,r){return i=>{l&&l(i),i.defaultPrevented||r(i)}}function kS({page:l,...r}){let{router:i}=Xv(),s=y.useMemo(()=>Lv(i.routes,l,i.basename),[i.routes,l,i.basename]);return s?y.createElement(GS,{page:l,matches:s,...r}):null}function QS(l){let{manifest:r,routeModules:i}=Kv(),[s,c]=y.useState([]);return y.useEffect(()=>{let f=!1;return _S(l,r,i).then(d=>{f||c(d)}),()=>{f=!0}},[l,r,i]),s}function GS({page:l,matches:r,...i}){let s=Ql(),{manifest:c,routeModules:f}=Kv(),{basename:d}=Xv(),{loaderData:p,matches:v}=HS(),g=y.useMemo(()=>kp(l,r,v,c,s,"data"),[l,r,v,c,s]),x=y.useMemo(()=>kp(l,r,v,c,s,"assets"),[l,r,v,c,s]),S=y.useMemo(()=>{if(l===s.pathname+s.search+s.hash)return[];let Y=new Set,M=!1;if(r.forEach(L=>{var j;let H=c.routes[L.route.id];!H||!H.hasLoader||(!g.some(Q=>Q.route.id===L.route.id)&&L.route.id in p&&((j=f[L.route.id])!=null&&j.shouldRevalidate)||H.hasClientLoader?M=!0:Y.add(L.route.id))}),Y.size===0)return[];let R=MS(l,d,"data");return M&&Y.size>0&&R.searchParams.set("_routes",r.filter(L=>Y.has(L.route.id)).map(L=>L.route.id).join(",")),[R.pathname+R.search]},[d,p,s,c,g,r,l,f]),N=y.useMemo(()=>US(x,c),[x,c]),O=QS(x);return y.createElement(y.Fragment,null,S.map(Y=>y.createElement("link",{key:Y,rel:"prefetch",as:"fetch",href:Y,...i})),N.map(Y=>y.createElement("link",{key:Y,rel:"modulepreload",href:Y,...i})),O.map(({key:Y,link:M})=>y.createElement("link",{key:Y,nonce:i.nonce,...M})))}function YS(...l){return r=>{l.forEach(i=>{typeof i=="function"?i(r):i!=null&&(i.current=r)})}}var Zv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Zv&&(window.__reactRouterVersion="7.9.4")}catch{}function VS({basename:l,children:r,window:i}){let s=y.useRef();s.current==null&&(s.current=Ox({window:i,v5Compat:!0}));let c=s.current,[f,d]=y.useState({action:c.action,location:c.location}),p=y.useCallback(v=>{y.startTransition(()=>d(v))},[d]);return y.useLayoutEffect(()=>c.listen(p),[c,p]),y.createElement(xS,{basename:l,children:r,location:f.location,navigationType:f.action,navigator:c})}var Jv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zu=y.forwardRef(function({onClick:r,discover:i="render",prefetch:s="none",relative:c,reloadDocument:f,replace:d,state:p,target:v,to:g,preventScrollReset:x,viewTransition:S,...N},O){let{basename:Y}=y.useContext(pn),M=typeof g=="string"&&Jv.test(g),R,L=!1;if(typeof g=="string"&&M&&(R=g,Zv))try{let P=new URL(window.location.href),F=g.startsWith("//")?new URL(P.protocol+g):new URL(g),oe=el(F.pathname,Y);F.origin===P.origin&&oe!=null?g=oe+F.search+F.hash:L=!0}catch{gn(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let H=nS(g,{relative:c}),[j,Q,B]=BS(s,N),k=ZS(g,{replace:d,state:p,target:v,preventScrollReset:x,relative:c,viewTransition:S});function K(P){r&&r(P),P.defaultPrevented||k(P)}let W=y.createElement("a",{...N,...B,href:R||H,onClick:L||f?r:K,ref:YS(O,Q),target:v,"data-discover":!M&&i==="render"?"true":void 0});return j&&!M?y.createElement(y.Fragment,null,W,y.createElement(kS,{page:H})):W});zu.displayName="Link";var sa=y.forwardRef(function({"aria-current":r="page",caseSensitive:i=!1,className:s="",end:c=!1,style:f,to:d,viewTransition:p,children:v,...g},x){let S=Xi(d,{relative:g.relative}),N=Ql(),O=y.useContext(Ou),{navigator:Y,basename:M}=y.useContext(pn),R=O!=null&&PS(S)&&p===!0,L=Y.encodeLocation?Y.encodeLocation(S).pathname:S.pathname,H=N.pathname,j=O&&O.navigation&&O.navigation.location?O.navigation.location.pathname:null;i||(H=H.toLowerCase(),j=j?j.toLowerCase():null,L=L.toLowerCase()),j&&M&&(j=el(j,M)||j);const Q=L!=="/"&&L.endsWith("/")?L.length-1:L.length;let B=H===L||!c&&H.startsWith(L)&&H.charAt(Q)==="/",k=j!=null&&(j===L||!c&&j.startsWith(L)&&j.charAt(L.length)==="/"),K={isActive:B,isPending:k,isTransitioning:R},W=B?r:void 0,P;typeof s=="function"?P=s(K):P=[s,B?"active":null,k?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let F=typeof f=="function"?f(K):f;return y.createElement(zu,{...g,"aria-current":W,className:P,ref:x,style:F,to:d,viewTransition:p},typeof v=="function"?v(K):v)});sa.displayName="NavLink";var XS=y.forwardRef(({discover:l="render",fetcherKey:r,navigate:i,reloadDocument:s,replace:c,state:f,method:d=xu,action:p,onSubmit:v,relative:g,preventScrollReset:x,viewTransition:S,...N},O)=>{let Y=$S(),M=WS(p,{relative:g}),R=d.toLowerCase()==="get"?"get":"post",L=typeof p=="string"&&Jv.test(p),H=j=>{if(v&&v(j),j.defaultPrevented)return;j.preventDefault();let Q=j.nativeEvent.submitter,B=(Q==null?void 0:Q.getAttribute("formmethod"))||d;Y(Q||j.currentTarget,{fetcherKey:r,method:B,navigate:i,replace:c,state:f,relative:g,preventScrollReset:x,viewTransition:S})};return y.createElement("form",{ref:O,method:R,action:M,onSubmit:s?v:H,...N,"data-discover":!L&&l==="render"?"true":void 0})});XS.displayName="Form";function KS(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fv(l){let r=y.useContext(Er);return Xe(r,KS(l)),r}function ZS(l,{target:r,replace:i,state:s,preventScrollReset:c,relative:f,viewTransition:d}={}){let p=Vi(),v=Ql(),g=Xi(l,{relative:f});return y.useCallback(x=>{if(CS(x,r)){x.preventDefault();let S=i!==void 0?i:_i(v)===_i(g);p(l,{replace:S,state:s,preventScrollReset:c,relative:f,viewTransition:d})}},[v,p,g,i,s,r,l,c,f,d])}var JS=0,FS=()=>`__${String(++JS)}__`;function $S(){let{router:l}=Fv("useSubmit"),{basename:r}=y.useContext(pn),i=gS();return y.useCallback(async(s,c={})=>{let{action:f,method:d,encType:p,formData:v,body:g}=OS(s,r);if(c.navigate===!1){let x=c.fetcherKey||FS();await l.fetch(x,i,c.action||f,{preventScrollReset:c.preventScrollReset,formData:v,body:g,formMethod:c.method||d,formEncType:c.encType||p,flushSync:c.flushSync})}else await l.navigate(c.action||f,{preventScrollReset:c.preventScrollReset,formData:v,body:g,formMethod:c.method||d,formEncType:c.encType||p,replace:c.replace,state:c.state,fromRouteId:i,flushSync:c.flushSync,viewTransition:c.viewTransition})},[l,r,i])}function WS(l,{relative:r}={}){let{basename:i}=y.useContext(pn),s=y.useContext(un);Xe(s,"useFormAction must be used inside a RouteContext");let[c]=s.matches.slice(-1),f={...Xi(l||".",{relative:r})},d=Ql();if(l==null){f.search=d.search;let p=new URLSearchParams(f.search),v=p.getAll("index");if(v.some(x=>x==="")){p.delete("index"),v.filter(S=>S).forEach(S=>p.append("index",S));let x=p.toString();f.search=x?`?${x}`:""}}return(!l||l===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(f.pathname=f.pathname==="/"?i:Pn([i,f.pathname])),_i(f)}function PS(l,{relative:r}={}){let i=y.useContext(Bv);Xe(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Fv("useViewTransitionState"),c=Xi(l,{relative:r});if(!i.isTransitioning)return!1;let f=el(i.currentLocation.pathname,s)||i.currentLocation.pathname,d=el(i.nextLocation.pathname,s)||i.nextLocation.pathname;return Eu(c.pathname,d)!=null||Eu(c.pathname,f)!=null}var IS=Nv();/**
|
|
61
|
-
* @license lucide-react v0.468.0 - ISC
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the ISC license.
|
|
64
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const e2=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$v=(...l)=>l.filter((r,i,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===i).join(" ").trim();/**
|
|
66
|
-
* @license lucide-react v0.468.0 - ISC
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the ISC license.
|
|
69
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/var t2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
71
|
-
* @license lucide-react v0.468.0 - ISC
|
|
72
|
-
*
|
|
73
|
-
* This source code is licensed under the ISC license.
|
|
74
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const n2=y.forwardRef(({color:l="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:c="",children:f,iconNode:d,...p},v)=>y.createElement("svg",{ref:v,...t2,width:r,height:r,stroke:l,strokeWidth:s?Number(i)*24/Number(r):i,className:$v("lucide",c),...p},[...d.map(([g,x])=>y.createElement(g,x)),...Array.isArray(f)?f:[f]]));/**
|
|
76
|
-
* @license lucide-react v0.468.0 - ISC
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the ISC license.
|
|
79
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const Be=(l,r)=>{const i=y.forwardRef(({className:s,...c},f)=>y.createElement(n2,{ref:f,iconNode:r,className:$v(`lucide-${e2(l)}`,s),...c}));return i.displayName=`${l}`,i};/**
|
|
81
|
-
* @license lucide-react v0.468.0 - ISC
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the ISC license.
|
|
84
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const l2=Be("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
86
|
-
* @license lucide-react v0.468.0 - ISC
|
|
87
|
-
*
|
|
88
|
-
* This source code is licensed under the ISC license.
|
|
89
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const a2=Be("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
91
|
-
* @license lucide-react v0.468.0 - ISC
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the ISC license.
|
|
94
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const r2=Be("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]);/**
|
|
96
|
-
* @license lucide-react v0.468.0 - ISC
|
|
97
|
-
*
|
|
98
|
-
* This source code is licensed under the ISC license.
|
|
99
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const i2=Be("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
|
|
101
|
-
* @license lucide-react v0.468.0 - ISC
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the ISC license.
|
|
104
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const s2=Be("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
106
|
-
* @license lucide-react v0.468.0 - ISC
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the ISC license.
|
|
109
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const Wv=Be("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
111
|
-
* @license lucide-react v0.468.0 - ISC
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the ISC license.
|
|
114
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const Pv=Be("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
116
|
-
* @license lucide-react v0.468.0 - ISC
|
|
117
|
-
*
|
|
118
|
-
* This source code is licensed under the ISC license.
|
|
119
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const Ui=Be("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
121
|
-
* @license lucide-react v0.468.0 - ISC
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the ISC license.
|
|
124
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const Qp=Be("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
126
|
-
* @license lucide-react v0.468.0 - ISC
|
|
127
|
-
*
|
|
128
|
-
* This source code is licensed under the ISC license.
|
|
129
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const Du=Be("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
131
|
-
* @license lucide-react v0.468.0 - ISC
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the ISC license.
|
|
134
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const Iv=Be("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
136
|
-
* @license lucide-react v0.468.0 - ISC
|
|
137
|
-
*
|
|
138
|
-
* This source code is licensed under the ISC license.
|
|
139
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const nd=Be("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
141
|
-
* @license lucide-react v0.468.0 - ISC
|
|
142
|
-
*
|
|
143
|
-
* This source code is licensed under the ISC license.
|
|
144
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const u2=Be("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
146
|
-
* @license lucide-react v0.468.0 - ISC
|
|
147
|
-
*
|
|
148
|
-
* This source code is licensed under the ISC license.
|
|
149
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const ey=Be("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
151
|
-
* @license lucide-react v0.468.0 - ISC
|
|
152
|
-
*
|
|
153
|
-
* This source code is licensed under the ISC license.
|
|
154
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/const o2=Be("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
156
|
-
* @license lucide-react v0.468.0 - ISC
|
|
157
|
-
*
|
|
158
|
-
* This source code is licensed under the ISC license.
|
|
159
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
-
*/const Gp=Be("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
161
|
-
* @license lucide-react v0.468.0 - ISC
|
|
162
|
-
*
|
|
163
|
-
* This source code is licensed under the ISC license.
|
|
164
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/const c2=Be("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
166
|
-
* @license lucide-react v0.468.0 - ISC
|
|
167
|
-
*
|
|
168
|
-
* This source code is licensed under the ISC license.
|
|
169
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
-
*/const f2=Be("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
171
|
-
* @license lucide-react v0.468.0 - ISC
|
|
172
|
-
*
|
|
173
|
-
* This source code is licensed under the ISC license.
|
|
174
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
-
*/const d2=Be("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
176
|
-
* @license lucide-react v0.468.0 - ISC
|
|
177
|
-
*
|
|
178
|
-
* This source code is licensed under the ISC license.
|
|
179
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
-
*/const Yp=Be("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
|
181
|
-
* @license lucide-react v0.468.0 - ISC
|
|
182
|
-
*
|
|
183
|
-
* This source code is licensed under the ISC license.
|
|
184
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
-
*/const h2=Be("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
186
|
-
* @license lucide-react v0.468.0 - ISC
|
|
187
|
-
*
|
|
188
|
-
* This source code is licensed under the ISC license.
|
|
189
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
-
*/const Vp=Be("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
|
|
191
|
-
* @license lucide-react v0.468.0 - ISC
|
|
192
|
-
*
|
|
193
|
-
* This source code is licensed under the ISC license.
|
|
194
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
-
*/const ty=Be("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
196
|
-
* @license lucide-react v0.468.0 - ISC
|
|
197
|
-
*
|
|
198
|
-
* This source code is licensed under the ISC license.
|
|
199
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
-
*/const m2=Be("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
201
|
-
* @license lucide-react v0.468.0 - ISC
|
|
202
|
-
*
|
|
203
|
-
* This source code is licensed under the ISC license.
|
|
204
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
-
*/const g2=Be("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
206
|
-
* @license lucide-react v0.468.0 - ISC
|
|
207
|
-
*
|
|
208
|
-
* This source code is licensed under the ISC license.
|
|
209
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
-
*/const Cr=Be("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);class p2{constructor(r){Xn(this,"ws",null);Xn(this,"url");Xn(this,"reconnectAttempts",0);Xn(this,"maxReconnectAttempts",5);Xn(this,"reconnectDelay",1e3);Xn(this,"messageId",0);Xn(this,"pendingRequests",new Map);Xn(this,"eventHandlers",new Map);if(r)this.url=r;else{const i=window.location.protocol==="https:"?"wss:":"ws:",s=window.location.host||"localhost:9500";this.url=`${i}//${s}/ws`}}connect(){return new Promise((r,i)=>{try{this.ws=new WebSocket(this.url),this.ws.onopen=()=>{console.log("🔌 Connected to Vision Dashboard"),this.reconnectAttempts=0,r()},this.ws.onmessage=s=>{this.handleMessage(s.data)},this.ws.onerror=s=>{console.error("WebSocket error:",s),i(s)},this.ws.onclose=()=>{console.log("🔌 Disconnected from Vision Dashboard"),this.handleReconnect()}}catch(s){i(s)}})}handleMessage(r){try{const i=JSON.parse(r);if("result"in i||"error"in i){const s=i,c=this.pendingRequests.get(s.id);c&&(s.error?c.reject(new Error(s.error.message)):c.resolve(s.result),this.pendingRequests.delete(s.id))}else if("method"in i&&!("id"in i)){const s=i;this.emitEvent(s.method,s.params)}}catch(i){console.error("Failed to parse message:",i)}}handleReconnect(){if(this.reconnectAttempts<this.maxReconnectAttempts){this.reconnectAttempts++;const r=this.reconnectDelay*this.reconnectAttempts;console.log(`Reconnecting in ${r}ms (attempt ${this.reconnectAttempts}/${this.maxReconnectAttempts})`),setTimeout(()=>{this.connect().catch(console.error)},r)}}async call(r,i){if(!this.ws||this.ws.readyState!==WebSocket.OPEN)throw new Error("WebSocket is not connected");const s=++this.messageId,c={jsonrpc:"2.0",method:r,params:i,id:s};return new Promise((f,d)=>{this.pendingRequests.set(s,{resolve:f,reject:d}),this.ws.send(JSON.stringify(c)),setTimeout(()=>{this.pendingRequests.has(s)&&(this.pendingRequests.delete(s),d(new Error("Request timeout")))},3e4)})}on(r,i){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Set),this.eventHandlers.get(r).add(i),()=>{const s=this.eventHandlers.get(r);s&&s.delete(i)}}emitEvent(r,i){const s=this.eventHandlers.get(r);s&&s.forEach(c=>c(i))}close(){this.ws&&(this.ws.close(),this.ws=null),this.pendingRequests.clear(),this.eventHandlers.clear()}isConnected(){var r;return((r=this.ws)==null?void 0:r.readyState)===WebSocket.OPEN}}let mf=null;function Tt(){return mf||(mf=new p2),mf}function v2(){const[l,r]=y.useState(!1),[i,s]=y.useState(null);return y.useEffect(()=>{const c=Tt();return c.connect().then(()=>r(!0)).catch(f=>s(f)),()=>{c.close()}},[]),{connected:l,error:i}}function ld(){return Nr({queryKey:["app-status"],queryFn:async()=>await Tt().call("status"),refetchInterval:5e3})}function ny(l){const r=Sr();return y.useEffect(()=>Tt().on("trace.new",c=>{r.setQueryData(["traces",l],(f=[])=>[c,...f].slice(0,(l==null?void 0:l.limit)??100))}),[r,l]),Nr({queryKey:["traces",l],queryFn:async()=>await Tt().call("traces/list",l)})}function y2(l){return Nr({queryKey:["trace",l],queryFn:async()=>l?await Tt().call("traces/get",{traceId:l}):null,enabled:!!l})}function b2(){const l=Sr();return Ru({mutationFn:async()=>await Tt().call("traces/clear"),onSuccess:()=>{l.invalidateQueries({queryKey:["traces"]}),l.invalidateQueries({queryKey:["trace"]})}})}function x2(){return Ru({mutationFn:async l=>await Tt().call("traces/export",l)})}function ly(){const l=Sr();return Ru({mutationFn:async r=>await Tt().call("traces/addClientMetrics",r),onSuccess:()=>{l.invalidateQueries({queryKey:["traces"]})}})}function S2(l){const[r,i]=y.useState([]);y.useEffect(()=>{const c=Tt(),f=d=>{i(p=>[d,...p].slice(0,(l==null?void 0:l.limit)||100))};return c.on("log.entry",f),()=>{var p;const d=(p=c.eventHandlers)==null?void 0:p.get("log.entry");d&&d.delete(f)}},[l==null?void 0:l.limit]);const s=Nr({queryKey:["logs",l],queryFn:async()=>await Tt().call("logs/list",l)});return y.useEffect(()=>{s.data&&i(s.data)},[s.data]),{data:r,isLoading:s.isLoading,error:s.error,refetch:s.refetch}}function N2(){const l=Sr();return Ru({mutationFn:async()=>await Tt().call("logs/clear"),onSuccess:()=>{l.invalidateQueries({queryKey:["logs"]})}})}function w2(){return Nr({queryKey:["routes"],queryFn:async()=>await Tt().call("routes/list")})}function E2(){return Nr({queryKey:["services"],queryFn:async()=>await Tt().call("services/list")})}function T2(){return{call:async(l,r)=>await Tt().call(l,r)}}function ay(l){var r,i,s="";if(typeof l=="string"||typeof l=="number")s+=l;else if(typeof l=="object")if(Array.isArray(l)){var c=l.length;for(r=0;r<c;r++)l[r]&&(i=ay(l[r]))&&(s&&(s+=" "),s+=i)}else for(i in l)l[i]&&(s&&(s+=" "),s+=i);return s}function ry(){for(var l,r,i=0,s="",c=arguments.length;i<c;i++)(l=arguments[i])&&(r=ay(l))&&(s&&(s+=" "),s+=r);return s}const Xp=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,Kp=ry,ad=(l,r)=>i=>{var s;if((r==null?void 0:r.variants)==null)return Kp(l,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:c,defaultVariants:f}=r,d=Object.keys(c).map(g=>{const x=i==null?void 0:i[g],S=f==null?void 0:f[g];if(x===null)return null;const N=Xp(x)||Xp(S);return c[g][N]}),p=i&&Object.entries(i).reduce((g,x)=>{let[S,N]=x;return N===void 0||(g[S]=N),g},{}),v=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((g,x)=>{let{class:S,className:N,...O}=x;return Object.entries(O).every(Y=>{let[M,R]=Y;return Array.isArray(R)?R.includes({...f,...p}[M]):{...f,...p}[M]===R})?[...g,S,N]:g},[]);return Kp(l,d,v,i==null?void 0:i.class,i==null?void 0:i.className)},rd="-",C2=l=>{const r=R2(l),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=l;return{getClassGroupId:d=>{const p=d.split(rd);return p[0]===""&&p.length!==1&&p.shift(),iy(p,r)||A2(d)},getConflictingClassGroupIds:(d,p)=>{const v=i[d]||[];return p&&s[d]?[...v,...s[d]]:v}}},iy=(l,r)=>{var d;if(l.length===0)return r.classGroupId;const i=l[0],s=r.nextPart.get(i),c=s?iy(l.slice(1),s):void 0;if(c)return c;if(r.validators.length===0)return;const f=l.join(rd);return(d=r.validators.find(({validator:p})=>p(f)))==null?void 0:d.classGroupId},Zp=/^\[(.+)\]$/,A2=l=>{if(Zp.test(l)){const r=Zp.exec(l)[1],i=r==null?void 0:r.substring(0,r.indexOf(":"));if(i)return"arbitrary.."+i}},R2=l=>{const{theme:r,prefix:i}=l,s={nextPart:new Map,validators:[]};return M2(Object.entries(l.classGroups),i).forEach(([f,d])=>{jf(d,s,f,r)}),s},jf=(l,r,i,s)=>{l.forEach(c=>{if(typeof c=="string"){const f=c===""?r:Jp(r,c);f.classGroupId=i;return}if(typeof c=="function"){if(O2(c)){jf(c(s),r,i,s);return}r.validators.push({validator:c,classGroupId:i});return}Object.entries(c).forEach(([f,d])=>{jf(d,Jp(r,f),i,s)})})},Jp=(l,r)=>{let i=l;return r.split(rd).forEach(s=>{i.nextPart.has(s)||i.nextPart.set(s,{nextPart:new Map,validators:[]}),i=i.nextPart.get(s)}),i},O2=l=>l.isThemeGetter,M2=(l,r)=>r?l.map(([i,s])=>{const c=s.map(f=>typeof f=="string"?r+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([d,p])=>[r+d,p])):f);return[i,c]}):l,z2=l=>{if(l<1)return{get:()=>{},set:()=>{}};let r=0,i=new Map,s=new Map;const c=(f,d)=>{i.set(f,d),r++,r>l&&(r=0,s=i,i=new Map)};return{get(f){let d=i.get(f);if(d!==void 0)return d;if((d=s.get(f))!==void 0)return c(f,d),d},set(f,d){i.has(f)?i.set(f,d):c(f,d)}}},sy="!",D2=l=>{const{separator:r,experimentalParseClassName:i}=l,s=r.length===1,c=r[0],f=r.length,d=p=>{const v=[];let g=0,x=0,S;for(let R=0;R<p.length;R++){let L=p[R];if(g===0){if(L===c&&(s||p.slice(R,R+f)===r)){v.push(p.slice(x,R)),x=R+f;continue}if(L==="/"){S=R;continue}}L==="["?g++:L==="]"&&g--}const N=v.length===0?p:p.substring(x),O=N.startsWith(sy),Y=O?N.substring(1):N,M=S&&S>x?S-x:void 0;return{modifiers:v,hasImportantModifier:O,baseClassName:Y,maybePostfixModifierPosition:M}};return i?p=>i({className:p,parseClassName:d}):d},_2=l=>{if(l.length<=1)return l;const r=[];let i=[];return l.forEach(s=>{s[0]==="["?(r.push(...i.sort(),s),i=[]):i.push(s)}),r.push(...i.sort()),r},U2=l=>({cache:z2(l.cacheSize),parseClassName:D2(l),...C2(l)}),L2=/\s+/,j2=(l,r)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:c}=r,f=[],d=l.trim().split(L2);let p="";for(let v=d.length-1;v>=0;v-=1){const g=d[v],{modifiers:x,hasImportantModifier:S,baseClassName:N,maybePostfixModifierPosition:O}=i(g);let Y=!!O,M=s(Y?N.substring(0,O):N);if(!M){if(!Y){p=g+(p.length>0?" "+p:p);continue}if(M=s(N),!M){p=g+(p.length>0?" "+p:p);continue}Y=!1}const R=_2(x).join(":"),L=S?R+sy:R,H=L+M;if(f.includes(H))continue;f.push(H);const j=c(M,Y);for(let Q=0;Q<j.length;++Q){const B=j[Q];f.push(L+B)}p=g+(p.length>0?" "+p:p)}return p};function q2(){let l=0,r,i,s="";for(;l<arguments.length;)(r=arguments[l++])&&(i=uy(r))&&(s&&(s+=" "),s+=i);return s}const uy=l=>{if(typeof l=="string")return l;let r,i="";for(let s=0;s<l.length;s++)l[s]&&(r=uy(l[s]))&&(i&&(i+=" "),i+=r);return i};function H2(l,...r){let i,s,c,f=d;function d(v){const g=r.reduce((x,S)=>S(x),l());return i=U2(g),s=i.cache.get,c=i.cache.set,f=p,p(v)}function p(v){const g=s(v);if(g)return g;const x=j2(v,i);return c(v,x),x}return function(){return f(q2.apply(null,arguments))}}const Ge=l=>{const r=i=>i[l]||[];return r.isThemeGetter=!0,r},oy=/^\[(?:([a-z-]+):)?(.+)\]$/i,B2=/^\d+\/\d+$/,k2=new Set(["px","full","screen"]),Q2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,G2=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Y2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,V2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,X2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Kn=l=>ir(l)||k2.has(l)||B2.test(l),Cl=l=>Ar(l,"length",I2),ir=l=>!!l&&!Number.isNaN(Number(l)),gf=l=>Ar(l,"number",ir),Ti=l=>!!l&&Number.isInteger(Number(l)),K2=l=>l.endsWith("%")&&ir(l.slice(0,-1)),ge=l=>oy.test(l),Al=l=>Q2.test(l),Z2=new Set(["length","size","percentage"]),J2=l=>Ar(l,Z2,cy),F2=l=>Ar(l,"position",cy),$2=new Set(["image","url"]),W2=l=>Ar(l,$2,tN),P2=l=>Ar(l,"",eN),Ci=()=>!0,Ar=(l,r,i)=>{const s=oy.exec(l);return s?s[1]?typeof r=="string"?s[1]===r:r.has(s[1]):i(s[2]):!1},I2=l=>G2.test(l)&&!Y2.test(l),cy=()=>!1,eN=l=>V2.test(l),tN=l=>X2.test(l),nN=()=>{const l=Ge("colors"),r=Ge("spacing"),i=Ge("blur"),s=Ge("brightness"),c=Ge("borderColor"),f=Ge("borderRadius"),d=Ge("borderSpacing"),p=Ge("borderWidth"),v=Ge("contrast"),g=Ge("grayscale"),x=Ge("hueRotate"),S=Ge("invert"),N=Ge("gap"),O=Ge("gradientColorStops"),Y=Ge("gradientColorStopPositions"),M=Ge("inset"),R=Ge("margin"),L=Ge("opacity"),H=Ge("padding"),j=Ge("saturate"),Q=Ge("scale"),B=Ge("sepia"),k=Ge("skew"),K=Ge("space"),W=Ge("translate"),P=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],oe=()=>["auto",ge,r],ie=()=>[ge,r],qe=()=>["",Kn,Cl],Ye=()=>["auto",ir,ge],le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],$=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>["start","end","center","between","around","evenly","stretch"],pe=()=>["","0",ge],Te=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>[ir,ge];return{cacheSize:500,separator:":",theme:{colors:[Ci],spacing:[Kn,Cl],blur:["none","",Al,ge],brightness:w(),borderColor:[l],borderRadius:["none","","full",Al,ge],borderSpacing:ie(),borderWidth:qe(),contrast:w(),grayscale:pe(),hueRotate:w(),invert:pe(),gap:ie(),gradientColorStops:[l],gradientColorStopPositions:[K2,Cl],inset:oe(),margin:oe(),opacity:w(),padding:ie(),saturate:w(),scale:w(),sepia:pe(),skew:w(),space:ie(),translate:ie()},classGroups:{aspect:[{aspect:["auto","square","video",ge]}],container:["container"],columns:[{columns:[Al]}],"break-after":[{"break-after":Te()}],"break-before":[{"break-before":Te()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...le(),ge]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[M]}],"inset-x":[{"inset-x":[M]}],"inset-y":[{"inset-y":[M]}],start:[{start:[M]}],end:[{end:[M]}],top:[{top:[M]}],right:[{right:[M]}],bottom:[{bottom:[M]}],left:[{left:[M]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ti,ge]}],basis:[{basis:oe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ge]}],grow:[{grow:pe()}],shrink:[{shrink:pe()}],order:[{order:["first","last","none",Ti,ge]}],"grid-cols":[{"grid-cols":[Ci]}],"col-start-end":[{col:["auto",{span:["full",Ti,ge]},ge]}],"col-start":[{"col-start":Ye()}],"col-end":[{"col-end":Ye()}],"grid-rows":[{"grid-rows":[Ci]}],"row-start-end":[{row:["auto",{span:[Ti,ge]},ge]}],"row-start":[{"row-start":Ye()}],"row-end":[{"row-end":Ye()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ge]}],gap:[{gap:[N]}],"gap-x":[{"gap-x":[N]}],"gap-y":[{"gap-y":[N]}],"justify-content":[{justify:["normal",...re()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...re(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...re(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[H]}],px:[{px:[H]}],py:[{py:[H]}],ps:[{ps:[H]}],pe:[{pe:[H]}],pt:[{pt:[H]}],pr:[{pr:[H]}],pb:[{pb:[H]}],pl:[{pl:[H]}],m:[{m:[R]}],mx:[{mx:[R]}],my:[{my:[R]}],ms:[{ms:[R]}],me:[{me:[R]}],mt:[{mt:[R]}],mr:[{mr:[R]}],mb:[{mb:[R]}],ml:[{ml:[R]}],"space-x":[{"space-x":[K]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[K]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ge,r]}],"min-w":[{"min-w":[ge,r,"min","max","fit"]}],"max-w":[{"max-w":[ge,r,"none","full","min","max","fit","prose",{screen:[Al]},Al]}],h:[{h:[ge,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ge,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ge,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ge,r,"auto","min","max","fit"]}],"font-size":[{text:["base",Al,Cl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",gf]}],"font-family":[{font:[Ci]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ge]}],"line-clamp":[{"line-clamp":["none",ir,gf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Kn,ge]}],"list-image":[{"list-image":["none",ge]}],"list-style-type":[{list:["none","disc","decimal",ge]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[l]}],"placeholder-opacity":[{"placeholder-opacity":[L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[l]}],"text-opacity":[{"text-opacity":[L]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Kn,Cl]}],"underline-offset":[{"underline-offset":["auto",Kn,ge]}],"text-decoration-color":[{decoration:[l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ie()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...le(),F2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",J2]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},W2]}],"bg-color":[{bg:[l]}],"gradient-from-pos":[{from:[Y]}],"gradient-via-pos":[{via:[Y]}],"gradient-to-pos":[{to:[Y]}],"gradient-from":[{from:[O]}],"gradient-via":[{via:[O]}],"gradient-to":[{to:[O]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[p]}],"border-w-x":[{"border-x":[p]}],"border-w-y":[{"border-y":[p]}],"border-w-s":[{"border-s":[p]}],"border-w-e":[{"border-e":[p]}],"border-w-t":[{"border-t":[p]}],"border-w-r":[{"border-r":[p]}],"border-w-b":[{"border-b":[p]}],"border-w-l":[{"border-l":[p]}],"border-opacity":[{"border-opacity":[L]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[p]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[p]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[L]}],"divide-style":[{divide:D()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[Kn,ge]}],"outline-w":[{outline:[Kn,Cl]}],"outline-color":[{outline:[l]}],"ring-w":[{ring:qe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[l]}],"ring-opacity":[{"ring-opacity":[L]}],"ring-offset-w":[{"ring-offset":[Kn,Cl]}],"ring-offset-color":[{"ring-offset":[l]}],shadow:[{shadow:["","inner","none",Al,P2]}],"shadow-color":[{shadow:[Ci]}],opacity:[{opacity:[L]}],"mix-blend":[{"mix-blend":[...$(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":$()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[s]}],contrast:[{contrast:[v]}],"drop-shadow":[{"drop-shadow":["","none",Al,ge]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[S]}],saturate:[{saturate:[j]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[v]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[L]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ge]}],duration:[{duration:w()}],ease:[{ease:["linear","in","out","in-out",ge]}],delay:[{delay:w()}],animate:[{animate:["none","spin","ping","pulse","bounce",ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Q]}],"scale-x":[{"scale-x":[Q]}],"scale-y":[{"scale-y":[Q]}],rotate:[{rotate:[Ti,ge]}],"translate-x":[{"translate-x":[W]}],"translate-y":[{"translate-y":[W]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ge]}],accent:[{accent:["auto",l]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge]}],"caret-color":[{caret:[l]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ie()}],"scroll-mx":[{"scroll-mx":ie()}],"scroll-my":[{"scroll-my":ie()}],"scroll-ms":[{"scroll-ms":ie()}],"scroll-me":[{"scroll-me":ie()}],"scroll-mt":[{"scroll-mt":ie()}],"scroll-mr":[{"scroll-mr":ie()}],"scroll-mb":[{"scroll-mb":ie()}],"scroll-ml":[{"scroll-ml":ie()}],"scroll-p":[{"scroll-p":ie()}],"scroll-px":[{"scroll-px":ie()}],"scroll-py":[{"scroll-py":ie()}],"scroll-ps":[{"scroll-ps":ie()}],"scroll-pe":[{"scroll-pe":ie()}],"scroll-pt":[{"scroll-pt":ie()}],"scroll-pr":[{"scroll-pr":ie()}],"scroll-pb":[{"scroll-pb":ie()}],"scroll-pl":[{"scroll-pl":ie()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge]}],fill:[{fill:[l,"none"]}],"stroke-w":[{stroke:[Kn,Cl,gf]}],stroke:[{stroke:[l,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},lN=H2(nN);function mt(...l){return lN(ry(l))}const aN=ad("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Me({className:l,variant:r,...i}){return m("div",{className:mt(aN({variant:r}),l),...i})}const wt=y.forwardRef(({className:l,variant:r="default",size:i="default",...s},c)=>m("button",{className:mt("inline-flex items-center justify-center rounded-md font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50",{"bg-primary text-primary-foreground hover:bg-primary/90":r==="default","bg-secondary text-secondary-foreground hover:bg-secondary/80":r==="secondary","border border-input bg-background hover:bg-accent hover:text-accent-foreground":r==="outline","hover:bg-accent hover:text-accent-foreground":r==="ghost"},{"h-10 px-4 py-2":i==="default","h-9 rounded-md px-3":i==="sm","h-11 rounded-md px-8":i==="lg"},l),ref:c,...s}));wt.displayName="Button";function Fp(l,r){if(typeof l=="function")return l(r);l!=null&&(l.current=r)}function fy(...l){return r=>{let i=!1;const s=l.map(c=>{const f=Fp(c,r);return!i&&typeof f=="function"&&(i=!0),f});if(i)return()=>{for(let c=0;c<s.length;c++){const f=s[c];typeof f=="function"?f():Fp(l[c],null)}}}}function Tn(...l){return y.useCallback(fy(...l),l)}function qf(l){const r=rN(l),i=y.forwardRef((s,c)=>{const{children:f,...d}=s,p=y.Children.toArray(f),v=p.find(sN);if(v){const g=v.props.children,x=p.map(S=>S===v?y.Children.count(g)>1?y.Children.only(null):y.isValidElement(g)?g.props.children:null:S);return m(r,{...d,ref:c,children:y.isValidElement(g)?y.cloneElement(g,void 0,x):null})}return m(r,{...d,ref:c,children:f})});return i.displayName=`${l}.Slot`,i}function rN(l){const r=y.forwardRef((i,s)=>{const{children:c,...f}=i;if(y.isValidElement(c)){const d=oN(c),p=uN(f,c.props);return c.type!==y.Fragment&&(p.ref=s?fy(s,d):d),y.cloneElement(c,p)}return y.Children.count(c)>1?y.Children.only(null):null});return r.displayName=`${l}.SlotClone`,r}var iN=Symbol("radix.slottable");function sN(l){return y.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===iN}function uN(l,r){const i={...r};for(const s in r){const c=l[s],f=r[s];/^on[A-Z]/.test(s)?c&&f?i[s]=(...p)=>{const v=f(...p);return c(...p),v}:c&&(i[s]=c):s==="style"?i[s]={...c,...f}:s==="className"&&(i[s]=[c,f].filter(Boolean).join(" "))}return{...l,...i}}function oN(l){var s,c;let r=(s=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:s.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?l.ref:(r=(c=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:c.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?l.props.ref:l.props.ref||l.ref)}var cN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Jt=cN.reduce((l,r)=>{const i=qf(`Primitive.${r}`),s=y.forwardRef((c,f)=>{const{asChild:d,...p}=c,v=d?i:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m(v,{...p,ref:f})});return s.displayName=`Primitive.${r}`,{...l,[r]:s}},{}),fN="Separator",$p="horizontal",dN=["horizontal","vertical"],dy=y.forwardRef((l,r)=>{const{decorative:i,orientation:s=$p,...c}=l,f=hN(s)?s:$p,p=i?{role:"none"}:{"aria-orientation":f==="vertical"?f:void 0,role:"separator"};return m(Jt.div,{"data-orientation":f,...p,...c,ref:r})});dy.displayName=fN;function hN(l){return dN.includes(l)}var hy=dy;const _u=y.forwardRef(({className:l,orientation:r="horizontal",decorative:i=!0,...s},c)=>m(hy,{ref:c,decorative:i,orientation:r,className:mt("shrink-0 bg-border",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",l),...s}));_u.displayName=hy.displayName;function mN(){var s,c;const{data:l}=ld(),[r,i]=y.useState(()=>localStorage.getItem("vision.theme")||"light");return y.useEffect(()=>{const f=document.documentElement;r==="dark"?f.classList.add("dark"):f.classList.remove("dark"),localStorage.setItem("vision.theme",r)},[r]),E("div",{className:"h-screen flex flex-col bg-background text-foreground",children:[E("nav",{className:"bg-black dark:bg-black text-white px-6 py-3 flex items-center justify-between border-b border-border",children:[E("div",{className:"flex items-center gap-6",children:[E("div",{className:"flex items-center gap-3",children:[m("span",{className:"text-base font-semibold",children:(l==null?void 0:l.name)||"Vision Dashboard"}),m(Me,{variant:l!=null&&l.running?"default":"secondary",className:l!=null&&l.running?"bg-green-600 hover:bg-green-700 dark:bg-green-600 dark:hover:bg-green-700":"",children:l!=null&&l.running?"Running":"Stopped"})]}),m(_u,{orientation:"vertical",className:"h-6 bg-border"}),E("div",{className:"flex gap-1",children:[m(sa,{to:"/api-explorer",className:({isActive:f})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${f?"bg-white text-black":"text-gray-400 hover:text-white hover:bg-gray-800"}`,children:"API Explorer"}),m(sa,{to:"/traces",className:({isActive:f})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${f?"bg-white text-black":"text-gray-400 hover:text-white hover:bg-gray-800"}`,children:"Traces"}),m(sa,{to:"/logs",className:({isActive:f})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${f?"bg-white text-black":"text-gray-400 hover:text-white hover:bg-gray-800"}`,children:"Logs"}),m(sa,{to:"/events",className:({isActive:f})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${f?"bg-white text-black":"text-gray-400 hover:text-white hover:bg-gray-800"}`,children:"Events"}),m(sa,{to:"/services",className:({isActive:f})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${f?"bg-white text-black":"text-gray-400 hover:text-white hover:bg-gray-800"}`,children:"Services"}),((c=(s=l==null?void 0:l.metadata)==null?void 0:s.drizzle)==null?void 0:c.detected)&&m(sa,{to:"/database",className:({isActive:f})=>`px-3 py-1.5 text-sm font-medium rounded-md transition-colors ${f?"bg-white text-black":"text-gray-400 hover:text-white hover:bg-gray-800"}`,children:"Database"})]})]}),E(wt,{variant:"ghost",size:"sm",onClick:()=>i(r==="dark"?"light":"dark"),className:"text-gray-400 hover:text-white hover:bg-gray-800 dark:hover:bg-gray-800",children:[r==="dark"?m(h2,{className:"w-4 h-4"}):m(c2,{className:"w-4 h-4"}),m("span",{className:"ml-2 text-sm font-medium hidden sm:inline",children:r==="dark"?"Light":"Dark"})]})]}),m("main",{className:"flex-1 overflow-hidden",children:m(Vv,{})})]})}function gN(l,r,i){return r in l?Object.defineProperty(l,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):l[r]=i,l}function Wp(l,r){var i=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);r&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(l,c).enumerable})),i.push.apply(i,s)}return i}function Pp(l){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Wp(Object(i),!0).forEach(function(s){gN(l,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(i)):Wp(Object(i)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(i,s))})}return l}function pN(l,r){if(l==null)return{};var i={},s=Object.keys(l),c,f;for(f=0;f<s.length;f++)c=s[f],!(r.indexOf(c)>=0)&&(i[c]=l[c]);return i}function vN(l,r){if(l==null)return{};var i=pN(l,r),s,c;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(l);for(c=0;c<f.length;c++)s=f[c],!(r.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(l,s)&&(i[s]=l[s])}return i}function yN(l,r){return bN(l)||xN(l,r)||SN(l,r)||NN()}function bN(l){if(Array.isArray(l))return l}function xN(l,r){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(l)))){var i=[],s=!0,c=!1,f=void 0;try{for(var d=l[Symbol.iterator](),p;!(s=(p=d.next()).done)&&(i.push(p.value),!(r&&i.length===r));s=!0);}catch(v){c=!0,f=v}finally{try{!s&&d.return!=null&&d.return()}finally{if(c)throw f}}return i}}function SN(l,r){if(l){if(typeof l=="string")return Ip(l,r);var i=Object.prototype.toString.call(l).slice(8,-1);if(i==="Object"&&l.constructor&&(i=l.constructor.name),i==="Map"||i==="Set")return Array.from(l);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Ip(l,r)}}function Ip(l,r){(r==null||r>l.length)&&(r=l.length);for(var i=0,s=new Array(r);i<r;i++)s[i]=l[i];return s}function NN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
211
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wN(l,r,i){return r in l?Object.defineProperty(l,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):l[r]=i,l}function ev(l,r){var i=Object.keys(l);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);r&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(l,c).enumerable})),i.push.apply(i,s)}return i}function tv(l){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?ev(Object(i),!0).forEach(function(s){wN(l,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(i)):ev(Object(i)).forEach(function(s){Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(i,s))})}return l}function EN(){for(var l=arguments.length,r=new Array(l),i=0;i<l;i++)r[i]=arguments[i];return function(s){return r.reduceRight(function(c,f){return f(c)},s)}}function Ri(l){return function r(){for(var i=this,s=arguments.length,c=new Array(s),f=0;f<s;f++)c[f]=arguments[f];return c.length>=l.length?l.apply(this,c):function(){for(var d=arguments.length,p=new Array(d),v=0;v<d;v++)p[v]=arguments[v];return r.apply(i,[].concat(c,p))}}}function Tu(l){return{}.toString.call(l).includes("Object")}function TN(l){return!Object.keys(l).length}function Li(l){return typeof l=="function"}function CN(l,r){return Object.prototype.hasOwnProperty.call(l,r)}function AN(l,r){return Tu(r)||kl("changeType"),Object.keys(r).some(function(i){return!CN(l,i)})&&kl("changeField"),r}function RN(l){Li(l)||kl("selectorType")}function ON(l){Li(l)||Tu(l)||kl("handlerType"),Tu(l)&&Object.values(l).some(function(r){return!Li(r)})&&kl("handlersType")}function MN(l){l||kl("initialIsRequired"),Tu(l)||kl("initialType"),TN(l)&&kl("initialContent")}function zN(l,r){throw new Error(l[r]||l.default)}var DN={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},kl=Ri(zN)(DN),gu={changes:AN,selector:RN,handler:ON,initial:MN};function _N(l){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};gu.initial(l),gu.handler(r);var i={current:l},s=Ri(jN)(i,r),c=Ri(LN)(i),f=Ri(gu.changes)(l),d=Ri(UN)(i);function p(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(x){return x};return gu.selector(g),g(i.current)}function v(g){EN(s,c,f,d)(g)}return[p,v]}function UN(l,r){return Li(r)?r(l.current):r}function LN(l,r){return l.current=tv(tv({},l.current),r),r}function jN(l,r,i){return Li(r)?r(l.current):Object.keys(i).forEach(function(s){var c;return(c=r[s])===null||c===void 0?void 0:c.call(r,l.current[s])}),i}var qN={create:_N},HN={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function BN(l){return function r(){for(var i=this,s=arguments.length,c=new Array(s),f=0;f<s;f++)c[f]=arguments[f];return c.length>=l.length?l.apply(this,c):function(){for(var d=arguments.length,p=new Array(d),v=0;v<d;v++)p[v]=arguments[v];return r.apply(i,[].concat(c,p))}}}function kN(l){return{}.toString.call(l).includes("Object")}function QN(l){return l||nv("configIsRequired"),kN(l)||nv("configType"),l.urls?(GN(),{paths:{vs:l.urls.monacoBase}}):l}function GN(){console.warn(my.deprecation)}function YN(l,r){throw new Error(l[r]||l.default)}var my={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
212
|
-
You are using deprecated way of configuration.
|
|
213
|
-
|
|
214
|
-
Instead of using
|
|
215
|
-
monaco.config({ urls: { monacoBase: '...' } })
|
|
216
|
-
use
|
|
217
|
-
monaco.config({ paths: { vs: '...' } })
|
|
218
|
-
|
|
219
|
-
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
220
|
-
`},nv=BN(YN)(my),VN={config:QN},XN=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return function(c){return i.reduceRight(function(f,d){return d(f)},c)}};function gy(l,r){return Object.keys(r).forEach(function(i){r[i]instanceof Object&&l[i]&&Object.assign(r[i],gy(l[i],r[i]))}),Pp(Pp({},l),r)}var KN={type:"cancelation",msg:"operation is manually canceled"};function pf(l){var r=!1,i=new Promise(function(s,c){l.then(function(f){return r?c(KN):s(f)}),l.catch(c)});return i.cancel=function(){return r=!0},i}var ZN=qN.create({config:HN,isInitialized:!1,resolve:null,reject:null,monaco:null}),py=yN(ZN,2),Ki=py[0],Uu=py[1];function JN(l){var r=VN.config(l),i=r.monaco,s=vN(r,["monaco"]);Uu(function(c){return{config:gy(c.config,s),monaco:i}})}function FN(){var l=Ki(function(r){var i=r.monaco,s=r.isInitialized,c=r.resolve;return{monaco:i,isInitialized:s,resolve:c}});if(!l.isInitialized){if(Uu({isInitialized:!0}),l.monaco)return l.resolve(l.monaco),pf(vf);if(window.monaco&&window.monaco.editor)return vy(window.monaco),l.resolve(window.monaco),pf(vf);XN($N,PN)(IN)}return pf(vf)}function $N(l){return document.body.appendChild(l)}function WN(l){var r=document.createElement("script");return l&&(r.src=l),r}function PN(l){var r=Ki(function(s){var c=s.config,f=s.reject;return{config:c,reject:f}}),i=WN("".concat(r.config.paths.vs,"/loader.js"));return i.onload=function(){return l()},i.onerror=r.reject,i}function IN(){var l=Ki(function(i){var s=i.config,c=i.resolve,f=i.reject;return{config:s,resolve:c,reject:f}}),r=window.require;r.config(l.config),r(["vs/editor/editor.main"],function(i){vy(i),l.resolve(i)},function(i){l.reject(i)})}function vy(l){Ki().monaco||Uu({monaco:l})}function ew(){return Ki(function(l){var r=l.monaco;return r})}var vf=new Promise(function(l,r){return Uu({resolve:l,reject:r})}),yy={config:JN,init:FN,__getMonacoInstance:ew},tw={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},yf=tw,nw={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},lw=nw;function aw({children:l}){return Nt.createElement("div",{style:lw.container},l)}var rw=aw,iw=rw;function sw({width:l,height:r,isEditorReady:i,loading:s,_ref:c,className:f,wrapperProps:d}){return Nt.createElement("section",{style:{...yf.wrapper,width:l,height:r},...d},!i&&Nt.createElement(iw,null,s),Nt.createElement("div",{ref:c,style:{...yf.fullWidth,...!i&&yf.hide},className:f}))}var uw=sw,by=y.memo(uw);function ow(l){y.useEffect(l,[])}var xy=ow;function cw(l,r,i=!0){let s=y.useRef(!0);y.useEffect(s.current||!i?()=>{s.current=!1}:l,r)}var Kt=cw;function zi(){}function rr(l,r,i,s){return fw(l,s)||dw(l,r,i,s)}function fw(l,r){return l.editor.getModel(Sy(l,r))}function dw(l,r,i,s){return l.editor.createModel(r,i,s?Sy(l,s):void 0)}function Sy(l,r){return l.Uri.parse(r)}function hw({original:l,modified:r,language:i,originalLanguage:s,modifiedLanguage:c,originalModelPath:f,modifiedModelPath:d,keepCurrentOriginalModel:p=!1,keepCurrentModifiedModel:v=!1,theme:g="light",loading:x="Loading...",options:S={},height:N="100%",width:O="100%",className:Y,wrapperProps:M={},beforeMount:R=zi,onMount:L=zi}){let[H,j]=y.useState(!1),[Q,B]=y.useState(!0),k=y.useRef(null),K=y.useRef(null),W=y.useRef(null),P=y.useRef(L),F=y.useRef(R),oe=y.useRef(!1);xy(()=>{let le=yy.init();return le.then(D=>(K.current=D)&&B(!1)).catch(D=>(D==null?void 0:D.type)!=="cancelation"&&console.error("Monaco initialization: error:",D)),()=>k.current?Ye():le.cancel()}),Kt(()=>{if(k.current&&K.current){let le=k.current.getOriginalEditor(),D=rr(K.current,l||"",s||i||"text",f||"");D!==le.getModel()&&le.setModel(D)}},[f],H),Kt(()=>{if(k.current&&K.current){let le=k.current.getModifiedEditor(),D=rr(K.current,r||"",c||i||"text",d||"");D!==le.getModel()&&le.setModel(D)}},[d],H),Kt(()=>{let le=k.current.getModifiedEditor();le.getOption(K.current.editor.EditorOption.readOnly)?le.setValue(r||""):r!==le.getValue()&&(le.executeEdits("",[{range:le.getModel().getFullModelRange(),text:r||"",forceMoveMarkers:!0}]),le.pushUndoStop())},[r],H),Kt(()=>{var le,D;(D=(le=k.current)==null?void 0:le.getModel())==null||D.original.setValue(l||"")},[l],H),Kt(()=>{let{original:le,modified:D}=k.current.getModel();K.current.editor.setModelLanguage(le,s||i||"text"),K.current.editor.setModelLanguage(D,c||i||"text")},[i,s,c],H),Kt(()=>{var le;(le=K.current)==null||le.editor.setTheme(g)},[g],H),Kt(()=>{var le;(le=k.current)==null||le.updateOptions(S)},[S],H);let ie=y.useCallback(()=>{var $;if(!K.current)return;F.current(K.current);let le=rr(K.current,l||"",s||i||"text",f||""),D=rr(K.current,r||"",c||i||"text",d||"");($=k.current)==null||$.setModel({original:le,modified:D})},[i,r,c,l,s,f,d]),qe=y.useCallback(()=>{var le;!oe.current&&W.current&&(k.current=K.current.editor.createDiffEditor(W.current,{automaticLayout:!0,...S}),ie(),(le=K.current)==null||le.editor.setTheme(g),j(!0),oe.current=!0)},[S,g,ie]);y.useEffect(()=>{H&&P.current(k.current,K.current)},[H]),y.useEffect(()=>{!Q&&!H&&qe()},[Q,H,qe]);function Ye(){var D,$,re,pe;let le=(D=k.current)==null?void 0:D.getModel();p||(($=le==null?void 0:le.original)==null||$.dispose()),v||((re=le==null?void 0:le.modified)==null||re.dispose()),(pe=k.current)==null||pe.dispose()}return Nt.createElement(by,{width:O,height:N,isEditorReady:H,loading:x,_ref:W,className:Y,wrapperProps:M})}var mw=hw;y.memo(mw);function gw(l){let r=y.useRef();return y.useEffect(()=>{r.current=l},[l]),r.current}var pw=gw,pu=new Map;function vw({defaultValue:l,defaultLanguage:r,defaultPath:i,value:s,language:c,path:f,theme:d="light",line:p,loading:v="Loading...",options:g={},overrideServices:x={},saveViewState:S=!0,keepCurrentModel:N=!1,width:O="100%",height:Y="100%",className:M,wrapperProps:R={},beforeMount:L=zi,onMount:H=zi,onChange:j,onValidate:Q=zi}){let[B,k]=y.useState(!1),[K,W]=y.useState(!0),P=y.useRef(null),F=y.useRef(null),oe=y.useRef(null),ie=y.useRef(H),qe=y.useRef(L),Ye=y.useRef(),le=y.useRef(s),D=pw(f),$=y.useRef(!1),re=y.useRef(!1);xy(()=>{let w=yy.init();return w.then(V=>(P.current=V)&&W(!1)).catch(V=>(V==null?void 0:V.type)!=="cancelation"&&console.error("Monaco initialization: error:",V)),()=>F.current?Te():w.cancel()}),Kt(()=>{var V,I,te,fe;let w=rr(P.current,l||s||"",r||c||"",f||i||"");w!==((V=F.current)==null?void 0:V.getModel())&&(S&&pu.set(D,(I=F.current)==null?void 0:I.saveViewState()),(te=F.current)==null||te.setModel(w),S&&((fe=F.current)==null||fe.restoreViewState(pu.get(f))))},[f],B),Kt(()=>{var w;(w=F.current)==null||w.updateOptions(g)},[g],B),Kt(()=>{!F.current||s===void 0||(F.current.getOption(P.current.editor.EditorOption.readOnly)?F.current.setValue(s):s!==F.current.getValue()&&(re.current=!0,F.current.executeEdits("",[{range:F.current.getModel().getFullModelRange(),text:s,forceMoveMarkers:!0}]),F.current.pushUndoStop(),re.current=!1))},[s],B),Kt(()=>{var V,I;let w=(V=F.current)==null?void 0:V.getModel();w&&c&&((I=P.current)==null||I.editor.setModelLanguage(w,c))},[c],B),Kt(()=>{var w;p!==void 0&&((w=F.current)==null||w.revealLine(p))},[p],B),Kt(()=>{var w;(w=P.current)==null||w.editor.setTheme(d)},[d],B);let pe=y.useCallback(()=>{var w;if(!(!oe.current||!P.current)&&!$.current){qe.current(P.current);let V=f||i,I=rr(P.current,s||l||"",r||c||"",V||"");F.current=(w=P.current)==null?void 0:w.editor.create(oe.current,{model:I,automaticLayout:!0,...g},x),S&&F.current.restoreViewState(pu.get(V)),P.current.editor.setTheme(d),p!==void 0&&F.current.revealLine(p),k(!0),$.current=!0}},[l,r,i,s,c,f,g,x,S,d,p]);y.useEffect(()=>{B&&ie.current(F.current,P.current)},[B]),y.useEffect(()=>{!K&&!B&&pe()},[K,B,pe]),le.current=s,y.useEffect(()=>{var w,V;B&&j&&((w=Ye.current)==null||w.dispose(),Ye.current=(V=F.current)==null?void 0:V.onDidChangeModelContent(I=>{re.current||j(F.current.getValue(),I)}))},[B,j]),y.useEffect(()=>{if(B){let w=P.current.editor.onDidChangeMarkers(V=>{var te;let I=(te=F.current.getModel())==null?void 0:te.uri;if(I&&V.find(fe=>fe.path===I.path)){let fe=P.current.editor.getModelMarkers({resource:I});Q==null||Q(fe)}});return()=>{w==null||w.dispose()}}return()=>{}},[B,Q]);function Te(){var w,V;(w=Ye.current)==null||w.dispose(),N?S&&pu.set(f,F.current.saveViewState()):(V=F.current.getModel())==null||V.dispose(),F.current.dispose()}return Nt.createElement(by,{width:O,height:Y,isEditorReady:B,loading:v,_ref:oe,className:M,wrapperProps:R})}var yw=vw,bw=y.memo(yw),Ny=bw;const dt=y.forwardRef(({className:l,...r},i)=>m("div",{ref:i,className:mt("rounded-lg border bg-card text-card-foreground shadow-sm",l),...r}));dt.displayName="Card";const Et=y.forwardRef(({className:l,...r},i)=>m("div",{ref:i,className:mt("flex flex-col space-y-1.5 p-6",l),...r}));Et.displayName="CardHeader";const Lt=y.forwardRef(({className:l,...r},i)=>m("h3",{ref:i,className:mt("text-2xl font-semibold leading-none tracking-tight",l),...r}));Lt.displayName="CardTitle";const ht=y.forwardRef(({className:l,...r},i)=>m("div",{ref:i,className:mt("p-6 pt-0",l),...r}));ht.displayName="CardContent";const id=y.forwardRef(({className:l,type:r,...i},s)=>m("input",{type:r,className:mt("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",l),ref:s,...i}));id.displayName="Input";var xw="Label",wy=y.forwardRef((l,r)=>m(Jt.label,{...l,ref:r,onMouseDown:i=>{var c;i.target.closest("button, input, select, textarea")||((c=l.onMouseDown)==null||c.call(l,i),!i.defaultPrevented&&i.detail>1&&i.preventDefault())}}));wy.displayName=xw;var Ey=wy;const Sw=ad("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Oi=y.forwardRef(({className:l,...r},i)=>m(Ey,{ref:i,className:mt(Sw(),l),...r}));Oi.displayName=Ey.displayName;var ji=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{};function Nw(l,r){return y.useReducer((i,s)=>r[i][s]??i,l)}var Rr=l=>{const{present:r,children:i}=l,s=ww(r),c=typeof i=="function"?i({present:s.isPresent}):y.Children.only(i),f=Tn(s.ref,Ew(c));return typeof i=="function"||s.isPresent?y.cloneElement(c,{ref:f}):null};Rr.displayName="Presence";function ww(l){const[r,i]=y.useState(),s=y.useRef(null),c=y.useRef(l),f=y.useRef("none"),d=l?"mounted":"unmounted",[p,v]=Nw(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const g=vu(s.current);f.current=p==="mounted"?g:"none"},[p]),ji(()=>{const g=s.current,x=c.current;if(x!==l){const N=f.current,O=vu(g);l?v("MOUNT"):O==="none"||(g==null?void 0:g.display)==="none"?v("UNMOUNT"):v(x&&N!==O?"ANIMATION_OUT":"UNMOUNT"),c.current=l}},[l,v]),ji(()=>{if(r){let g;const x=r.ownerDocument.defaultView??window,S=O=>{const M=vu(s.current).includes(CSS.escape(O.animationName));if(O.target===r&&M&&(v("ANIMATION_END"),!c.current)){const R=r.style.animationFillMode;r.style.animationFillMode="forwards",g=x.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=R)})}},N=O=>{O.target===r&&(f.current=vu(s.current))};return r.addEventListener("animationstart",N),r.addEventListener("animationcancel",S),r.addEventListener("animationend",S),()=>{x.clearTimeout(g),r.removeEventListener("animationstart",N),r.removeEventListener("animationcancel",S),r.removeEventListener("animationend",S)}}else v("ANIMATION_END")},[r,v]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:y.useCallback(g=>{s.current=g?getComputedStyle(g):null,i(g)},[])}}function vu(l){return(l==null?void 0:l.animationName)||"none"}function Ew(l){var s,c;let r=(s=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:s.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?l.ref:(r=(c=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:c.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?l.props.ref:l.props.ref||l.ref)}function Lu(l,r=[]){let i=[];function s(f,d){const p=y.createContext(d),v=i.length;i=[...i,d];const g=S=>{var L;const{scope:N,children:O,...Y}=S,M=((L=N==null?void 0:N[l])==null?void 0:L[v])||p,R=y.useMemo(()=>Y,Object.values(Y));return m(M.Provider,{value:R,children:O})};g.displayName=f+"Provider";function x(S,N){var M;const O=((M=N==null?void 0:N[l])==null?void 0:M[v])||p,Y=y.useContext(O);if(Y)return Y;if(d!==void 0)return d;throw new Error(`\`${S}\` must be used within \`${f}\``)}return[g,x]}const c=()=>{const f=i.map(d=>y.createContext(d));return function(p){const v=(p==null?void 0:p[l])||f;return y.useMemo(()=>({[`__scope${l}`]:{...p,[l]:v}}),[p,v])}};return c.scopeName=l,[s,Tw(c,...r)]}function Tw(...l){const r=l[0];if(l.length===1)return r;const i=()=>{const s=l.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(f){const d=s.reduce((p,{useScope:v,scopeName:g})=>{const S=v(f)[`__scope${g}`];return{...p,...S}},{});return y.useMemo(()=>({[`__scope${r.scopeName}`]:d}),[d])}};return i.scopeName=r.scopeName,i}function Ol(l){const r=y.useRef(l);return y.useEffect(()=>{r.current=l}),y.useMemo(()=>(...i)=>{var s;return(s=r.current)==null?void 0:s.call(r,...i)},[])}var Cw=y.createContext(void 0);function sd(l){const r=y.useContext(Cw);return l||r||"ltr"}function Aw(l,[r,i]){return Math.min(i,Math.max(r,l))}function pt(l,r,{checkForDefaultPrevented:i=!0}={}){return function(c){if(l==null||l(c),i===!1||!c.defaultPrevented)return r==null?void 0:r(c)}}function Rw(l,r){return y.useReducer((i,s)=>r[i][s]??i,l)}var ud="ScrollArea",[Ty]=Lu(ud),[Ow,on]=Ty(ud),Cy=y.forwardRef((l,r)=>{const{__scopeScrollArea:i,type:s="hover",dir:c,scrollHideDelay:f=600,...d}=l,[p,v]=y.useState(null),[g,x]=y.useState(null),[S,N]=y.useState(null),[O,Y]=y.useState(null),[M,R]=y.useState(null),[L,H]=y.useState(0),[j,Q]=y.useState(0),[B,k]=y.useState(!1),[K,W]=y.useState(!1),P=Tn(r,oe=>v(oe)),F=sd(c);return m(Ow,{scope:i,type:s,dir:F,scrollHideDelay:f,scrollArea:p,viewport:g,onViewportChange:x,content:S,onContentChange:N,scrollbarX:O,onScrollbarXChange:Y,scrollbarXEnabled:B,onScrollbarXEnabledChange:k,scrollbarY:M,onScrollbarYChange:R,scrollbarYEnabled:K,onScrollbarYEnabledChange:W,onCornerWidthChange:H,onCornerHeightChange:Q,children:m(Jt.div,{dir:F,...d,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":L+"px","--radix-scroll-area-corner-height":j+"px",...l.style}})})});Cy.displayName=ud;var Ay="ScrollAreaViewport",Ry=y.forwardRef((l,r)=>{const{__scopeScrollArea:i,children:s,nonce:c,...f}=l,d=on(Ay,i),p=y.useRef(null),v=Tn(r,p,d.onViewportChange);return E(Zt,{children:[m("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:c}),m(Jt.div,{"data-radix-scroll-area-viewport":"",...f,ref:v,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...l.style},children:m("div",{ref:d.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})});Ry.displayName=Ay;var Cn="ScrollAreaScrollbar",od=y.forwardRef((l,r)=>{const{forceMount:i,...s}=l,c=on(Cn,l.__scopeScrollArea),{onScrollbarXEnabledChange:f,onScrollbarYEnabledChange:d}=c,p=l.orientation==="horizontal";return y.useEffect(()=>(p?f(!0):d(!0),()=>{p?f(!1):d(!1)}),[p,f,d]),c.type==="hover"?m(Mw,{...s,ref:r,forceMount:i}):c.type==="scroll"?m(zw,{...s,ref:r,forceMount:i}):c.type==="auto"?m(Oy,{...s,ref:r,forceMount:i}):c.type==="always"?m(cd,{...s,ref:r}):null});od.displayName=Cn;var Mw=y.forwardRef((l,r)=>{const{forceMount:i,...s}=l,c=on(Cn,l.__scopeScrollArea),[f,d]=y.useState(!1);return y.useEffect(()=>{const p=c.scrollArea;let v=0;if(p){const g=()=>{window.clearTimeout(v),d(!0)},x=()=>{v=window.setTimeout(()=>d(!1),c.scrollHideDelay)};return p.addEventListener("pointerenter",g),p.addEventListener("pointerleave",x),()=>{window.clearTimeout(v),p.removeEventListener("pointerenter",g),p.removeEventListener("pointerleave",x)}}},[c.scrollArea,c.scrollHideDelay]),m(Rr,{present:i||f,children:m(Oy,{"data-state":f?"visible":"hidden",...s,ref:r})})}),zw=y.forwardRef((l,r)=>{const{forceMount:i,...s}=l,c=on(Cn,l.__scopeScrollArea),f=l.orientation==="horizontal",d=qu(()=>v("SCROLL_END"),100),[p,v]=Rw("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return y.useEffect(()=>{if(p==="idle"){const g=window.setTimeout(()=>v("HIDE"),c.scrollHideDelay);return()=>window.clearTimeout(g)}},[p,c.scrollHideDelay,v]),y.useEffect(()=>{const g=c.viewport,x=f?"scrollLeft":"scrollTop";if(g){let S=g[x];const N=()=>{const O=g[x];S!==O&&(v("SCROLL"),d()),S=O};return g.addEventListener("scroll",N),()=>g.removeEventListener("scroll",N)}},[c.viewport,f,v,d]),m(Rr,{present:i||p!=="hidden",children:m(cd,{"data-state":p==="hidden"?"hidden":"visible",...s,ref:r,onPointerEnter:pt(l.onPointerEnter,()=>v("POINTER_ENTER")),onPointerLeave:pt(l.onPointerLeave,()=>v("POINTER_LEAVE"))})})}),Oy=y.forwardRef((l,r)=>{const i=on(Cn,l.__scopeScrollArea),{forceMount:s,...c}=l,[f,d]=y.useState(!1),p=l.orientation==="horizontal",v=qu(()=>{if(i.viewport){const g=i.viewport.offsetWidth<i.viewport.scrollWidth,x=i.viewport.offsetHeight<i.viewport.scrollHeight;d(p?g:x)}},10);return br(i.viewport,v),br(i.content,v),m(Rr,{present:s||f,children:m(cd,{"data-state":f?"visible":"hidden",...c,ref:r})})}),cd=y.forwardRef((l,r)=>{const{orientation:i="vertical",...s}=l,c=on(Cn,l.__scopeScrollArea),f=y.useRef(null),d=y.useRef(0),[p,v]=y.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=Uy(p.viewport,p.content),x={...s,sizes:p,onSizesChange:v,hasThumb:g>0&&g<1,onThumbChange:N=>f.current=N,onThumbPointerUp:()=>d.current=0,onThumbPointerDown:N=>d.current=N};function S(N,O){return qw(N,d.current,p,O)}return i==="horizontal"?m(Dw,{...x,ref:r,onThumbPositionChange:()=>{if(c.viewport&&f.current){const N=c.viewport.scrollLeft,O=lv(N,p,c.dir);f.current.style.transform=`translate3d(${O}px, 0, 0)`}},onWheelScroll:N=>{c.viewport&&(c.viewport.scrollLeft=N)},onDragScroll:N=>{c.viewport&&(c.viewport.scrollLeft=S(N,c.dir))}}):i==="vertical"?m(_w,{...x,ref:r,onThumbPositionChange:()=>{if(c.viewport&&f.current){const N=c.viewport.scrollTop,O=lv(N,p);f.current.style.transform=`translate3d(0, ${O}px, 0)`}},onWheelScroll:N=>{c.viewport&&(c.viewport.scrollTop=N)},onDragScroll:N=>{c.viewport&&(c.viewport.scrollTop=S(N))}}):null}),Dw=y.forwardRef((l,r)=>{const{sizes:i,onSizesChange:s,...c}=l,f=on(Cn,l.__scopeScrollArea),[d,p]=y.useState(),v=y.useRef(null),g=Tn(r,v,f.onScrollbarXChange);return y.useEffect(()=>{v.current&&p(getComputedStyle(v.current))},[v]),m(zy,{"data-orientation":"horizontal",...c,ref:g,sizes:i,style:{bottom:0,left:f.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:f.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ju(i)+"px",...l.style},onThumbPointerDown:x=>l.onThumbPointerDown(x.x),onDragScroll:x=>l.onDragScroll(x.x),onWheelScroll:(x,S)=>{if(f.viewport){const N=f.viewport.scrollLeft+x.deltaX;l.onWheelScroll(N),jy(N,S)&&x.preventDefault()}},onResize:()=>{v.current&&f.viewport&&d&&s({content:f.viewport.scrollWidth,viewport:f.viewport.offsetWidth,scrollbar:{size:v.current.clientWidth,paddingStart:Au(d.paddingLeft),paddingEnd:Au(d.paddingRight)}})}})}),_w=y.forwardRef((l,r)=>{const{sizes:i,onSizesChange:s,...c}=l,f=on(Cn,l.__scopeScrollArea),[d,p]=y.useState(),v=y.useRef(null),g=Tn(r,v,f.onScrollbarYChange);return y.useEffect(()=>{v.current&&p(getComputedStyle(v.current))},[v]),m(zy,{"data-orientation":"vertical",...c,ref:g,sizes:i,style:{top:0,right:f.dir==="ltr"?0:void 0,left:f.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ju(i)+"px",...l.style},onThumbPointerDown:x=>l.onThumbPointerDown(x.y),onDragScroll:x=>l.onDragScroll(x.y),onWheelScroll:(x,S)=>{if(f.viewport){const N=f.viewport.scrollTop+x.deltaY;l.onWheelScroll(N),jy(N,S)&&x.preventDefault()}},onResize:()=>{v.current&&f.viewport&&d&&s({content:f.viewport.scrollHeight,viewport:f.viewport.offsetHeight,scrollbar:{size:v.current.clientHeight,paddingStart:Au(d.paddingTop),paddingEnd:Au(d.paddingBottom)}})}})}),[Uw,My]=Ty(Cn),zy=y.forwardRef((l,r)=>{const{__scopeScrollArea:i,sizes:s,hasThumb:c,onThumbChange:f,onThumbPointerUp:d,onThumbPointerDown:p,onThumbPositionChange:v,onDragScroll:g,onWheelScroll:x,onResize:S,...N}=l,O=on(Cn,i),[Y,M]=y.useState(null),R=Tn(r,P=>M(P)),L=y.useRef(null),H=y.useRef(""),j=O.viewport,Q=s.content-s.viewport,B=Ol(x),k=Ol(v),K=qu(S,10);function W(P){if(L.current){const F=P.clientX-L.current.left,oe=P.clientY-L.current.top;g({x:F,y:oe})}}return y.useEffect(()=>{const P=F=>{const oe=F.target;(Y==null?void 0:Y.contains(oe))&&B(F,Q)};return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[j,Y,Q,B]),y.useEffect(k,[s,k]),br(Y,K),br(O.content,K),m(Uw,{scope:i,scrollbar:Y,hasThumb:c,onThumbChange:Ol(f),onThumbPointerUp:Ol(d),onThumbPositionChange:k,onThumbPointerDown:Ol(p),children:m(Jt.div,{...N,ref:R,style:{position:"absolute",...N.style},onPointerDown:pt(l.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),L.current=Y.getBoundingClientRect(),H.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",O.viewport&&(O.viewport.style.scrollBehavior="auto"),W(P))}),onPointerMove:pt(l.onPointerMove,W),onPointerUp:pt(l.onPointerUp,P=>{const F=P.target;F.hasPointerCapture(P.pointerId)&&F.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=H.current,O.viewport&&(O.viewport.style.scrollBehavior=""),L.current=null})})})}),Cu="ScrollAreaThumb",Dy=y.forwardRef((l,r)=>{const{forceMount:i,...s}=l,c=My(Cu,l.__scopeScrollArea);return m(Rr,{present:i||c.hasThumb,children:m(Lw,{ref:r,...s})})}),Lw=y.forwardRef((l,r)=>{const{__scopeScrollArea:i,style:s,...c}=l,f=on(Cu,i),d=My(Cu,i),{onThumbPositionChange:p}=d,v=Tn(r,S=>d.onThumbChange(S)),g=y.useRef(void 0),x=qu(()=>{g.current&&(g.current(),g.current=void 0)},100);return y.useEffect(()=>{const S=f.viewport;if(S){const N=()=>{if(x(),!g.current){const O=Hw(S,p);g.current=O,p()}};return p(),S.addEventListener("scroll",N),()=>S.removeEventListener("scroll",N)}},[f.viewport,x,p]),m(Jt.div,{"data-state":d.hasThumb?"visible":"hidden",...c,ref:v,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...s},onPointerDownCapture:pt(l.onPointerDownCapture,S=>{const O=S.target.getBoundingClientRect(),Y=S.clientX-O.left,M=S.clientY-O.top;d.onThumbPointerDown({x:Y,y:M})}),onPointerUp:pt(l.onPointerUp,d.onThumbPointerUp)})});Dy.displayName=Cu;var fd="ScrollAreaCorner",_y=y.forwardRef((l,r)=>{const i=on(fd,l.__scopeScrollArea),s=!!(i.scrollbarX&&i.scrollbarY);return i.type!=="scroll"&&s?m(jw,{...l,ref:r}):null});_y.displayName=fd;var jw=y.forwardRef((l,r)=>{const{__scopeScrollArea:i,...s}=l,c=on(fd,i),[f,d]=y.useState(0),[p,v]=y.useState(0),g=!!(f&&p);return br(c.scrollbarX,()=>{var S;const x=((S=c.scrollbarX)==null?void 0:S.offsetHeight)||0;c.onCornerHeightChange(x),v(x)}),br(c.scrollbarY,()=>{var S;const x=((S=c.scrollbarY)==null?void 0:S.offsetWidth)||0;c.onCornerWidthChange(x),d(x)}),g?m(Jt.div,{...s,ref:r,style:{width:f,height:p,position:"absolute",right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:0,...l.style}}):null});function Au(l){return l?parseInt(l,10):0}function Uy(l,r){const i=l/r;return isNaN(i)?0:i}function ju(l){const r=Uy(l.viewport,l.content),i=l.scrollbar.paddingStart+l.scrollbar.paddingEnd,s=(l.scrollbar.size-i)*r;return Math.max(s,18)}function qw(l,r,i,s="ltr"){const c=ju(i),f=c/2,d=r||f,p=c-d,v=i.scrollbar.paddingStart+d,g=i.scrollbar.size-i.scrollbar.paddingEnd-p,x=i.content-i.viewport,S=s==="ltr"?[0,x]:[x*-1,0];return Ly([v,g],S)(l)}function lv(l,r,i="ltr"){const s=ju(r),c=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,f=r.scrollbar.size-c,d=r.content-r.viewport,p=f-s,v=i==="ltr"?[0,d]:[d*-1,0],g=Aw(l,v);return Ly([0,d],[0,p])(g)}function Ly(l,r){return i=>{if(l[0]===l[1]||r[0]===r[1])return r[0];const s=(r[1]-r[0])/(l[1]-l[0]);return r[0]+s*(i-l[0])}}function jy(l,r){return l>0&&l<r}var Hw=(l,r=()=>{})=>{let i={left:l.scrollLeft,top:l.scrollTop},s=0;return(function c(){const f={left:l.scrollLeft,top:l.scrollTop},d=i.left!==f.left,p=i.top!==f.top;(d||p)&&r(),i=f,s=window.requestAnimationFrame(c)})(),()=>window.cancelAnimationFrame(s)};function qu(l,r){const i=Ol(l),s=y.useRef(0);return y.useEffect(()=>()=>window.clearTimeout(s.current),[]),y.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(i,r)},[i,r])}function br(l,r){const i=Ol(r);ji(()=>{let s=0;if(l){const c=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(i)});return c.observe(l),()=>{window.cancelAnimationFrame(s),c.unobserve(l)}}},[l,i])}var qy=Cy,Bw=Ry,kw=_y;const qi=y.forwardRef(({className:l,children:r,...i},s)=>E(qy,{ref:s,className:mt("relative overflow-hidden",l),...i,children:[m(Bw,{className:"h-full w-full rounded-[inherit]",children:r}),m(Hy,{}),m(kw,{})]}));qi.displayName=qy.displayName;const Hy=y.forwardRef(({className:l,orientation:r="vertical",...i},s)=>m(od,{ref:s,orientation:r,className:mt("flex touch-none select-none transition-colors",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",l),...i,children:m(Dy,{className:"relative flex-1 rounded-full bg-border"})}));Hy.displayName=od.displayName;function Qw({sessionId:l}){const{data:r=[]}=ny({limit:50}),i=l?r.filter(d=>{var p;return((p=d.metadata)==null?void 0:p.sessionId)===l}):r,{traceId:s}=Wf(),c=y.useRef(null),f=y.useRef(i.length);return y.useEffect(()=>{i.length>f.current&&c.current&&(c.current.scrollTop=0),f.current=i.length},[i.length]),E("div",{className:"w-80 border-l bg-muted flex flex-col",children:[m("div",{className:"px-4 py-3 border-b bg-background",children:E("div",{className:"flex items-center justify-between",children:[m("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Traces"}),m(Me,{variant:"secondary",className:"text-xs",children:i.length})]})}),m(qi,{className:"flex-1",ref:c,children:m("div",{className:"p-3 space-y-2",children:r.length===0?E("div",{className:"text-center py-12 text-muted-foreground",children:[m(Cr,{className:"w-8 h-8 mx-auto mb-3 opacity-30"}),m("p",{className:"text-sm",children:"Traces will appear here"}),m("p",{className:"text-xs mt-1",children:"after making API calls"})]}):i.map((d,p)=>E("div",{children:[m(zu,{to:`/traces/${d.id}`,children:m(Gw,{trace:d,isActive:d.id===s})}),p<i.length-1&&m(_u,{className:"my-2"})]},d.id))})})]})}function Gw({trace:l,isActive:r}){const i=d=>d?d>=200&&d<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":d>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900":"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900":"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",s=d=>d==="GET"?"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 hover:bg-blue-100 dark:hover:bg-blue-900":d==="POST"?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":d==="PUT"?"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900":d==="DELETE"?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900":"",c=d=>d==null?"-":d<1?"< 1ms":d<1e3?`${Math.round(d)}ms`:`${(d/1e3).toFixed(2)}s`,f=d=>new Date(d).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"});return E("div",{className:`w-full text-left bg-background rounded-md p-2.5 border transition-all cursor-pointer ${r?"border-primary ring-2 ring-primary/20":"border-border hover:border-primary/50"}`,children:[E("div",{className:"flex items-center gap-1.5 mb-2",children:[m(Me,{className:`text-[10px] font-mono px-1.5 py-0 ${s(l.method)}`,children:l.method}),m(Me,{className:`text-[10px] font-mono px-1.5 py-0 ${i(l.statusCode)}`,children:l.statusCode||"..."}),l.spans.length>0&&E("span",{className:"text-[10px] text-muted-foreground ml-auto",children:[l.spans.length," span",l.spans.length>1?"s":""]})]}),m("div",{className:"text-xs font-mono text-foreground truncate mb-2",children:l.path}),E("div",{className:"flex items-center gap-3 text-[10px] text-muted-foreground",children:[E("div",{className:"flex items-center gap-1",children:[m(Du,{className:"w-3 h-3"}),m("span",{children:f(l.timestamp)})]}),E("div",{className:"flex items-center gap-1",children:[m(Cr,{className:"w-3 h-3"}),m("span",{className:l.duration&&l.duration>1e3?"text-orange-600 dark:text-orange-400 font-medium":"",children:c(l.duration)})]})]})]})}function Mi({data:l,title:r,height:i="400px"}){const[s,c]=y.useState(!1),f=()=>{navigator.clipboard.writeText(JSON.stringify(l,null,2)),c(!0),setTimeout(()=>c(!1),2e3)},d=JSON.stringify(l,null,2);return E("div",{className:"relative",children:[r&&E("div",{className:"flex items-center justify-between mb-2",children:[m("h3",{className:"text-sm font-medium",children:r}),m(wt,{variant:"ghost",size:"sm",onClick:f,className:"text-xs",children:s?E(Zt,{children:[m(s2,{className:"w-3 h-3 mr-1"}),"Copied"]}):E(Zt,{children:[m(Iv,{className:"w-3 h-3 mr-1"}),"Copy"]})})]}),m("div",{className:"border rounded-md overflow-hidden",children:m(Ny,{height:i,language:"json",value:d,theme:"vs-dark",options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,automaticLayout:!0,formatOnPaste:!0,formatOnType:!0,fontSize:14,glyphMargin:!1,folding:!0,lineDecorationsWidth:0,lineNumbersMinChars:0,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}}})})]})}const By=y.createContext(null);function Yw({children:l}){const[r,i]=y.useState([]),s=y.useCallback((f,d="info",p)=>{const v=Math.random().toString(36).slice(2),g={id:v,message:f,type:d,duration:p};return i(x=>[...x,g]),v},[]),c=y.useCallback(f=>{i(d=>d.filter(p=>p.id!==f))},[]);return m(By.Provider,{value:{toasts:r,addToast:s,removeToast:c},children:l})}function dd(){const l=y.useContext(By);if(!l)throw new Error("useToast must be used within ToastProvider");return l}function yu(){return Math.random().toString(36).slice(2)+Date.now().toString(36)}function Vw(){var j,Q,B;const{data:l=[]}=w2(),{addToast:r}=dd(),i=ly(),s=y.useMemo(()=>({id:yu(),title:"New tab",sessionId:yu(),route:null,urlParams:{},requestBody:"",response:null,requestTime:null}),[]),[c,f]=y.useState([s]),[d,p]=y.useState(s.id),[v,g]=y.useState(!1),x="vision.apiExplorer.tabs",S="vision.apiExplorer.activeTabId";y.useEffect(()=>{try{const k=localStorage.getItem(x),K=localStorage.getItem(S);if(k){const W=JSON.parse(k);Array.isArray(W)&&W.length>0&&(f(W),K&&W.some(P=>P.id===K)?p(K):p(W[0].id))}}catch{}},[]),y.useEffect(()=>{try{localStorage.setItem(x,JSON.stringify(c)),localStorage.setItem(S,d)}catch{}},[c,d]);const N=c.find(k=>k.id===d)||c[0],O=k=>{var W;const K=((W=k.requestBody)==null?void 0:W.template)||"";f(P=>P.map(F=>F.id===d?{...F,route:k,title:k.path,response:null,requestTime:null,urlParams:{},requestBody:K}:F))},Y=async()=>{const k=N;if(!k.route)return;g(!0),f(W=>W.map(P=>P.id===d?{...P,response:null}:P));const K=Date.now();try{let W=k.route.path;Object.entries(k.urlParams).forEach(([D,$])=>{W=W.replace(`:${D}`,$)});const P=`http://localhost:3000${W}`,F={method:k.route.method,headers:{"Content-Type":"application/json","X-Vision-Session":k.sessionId}};if(["POST","PUT","PATCH"].includes(k.route.method)&&k.requestBody)try{const D=k.requestBody.split(`
|
|
221
|
-
`).map($=>$.replace(/\/\/.*$/,"").trim()).filter($=>$.length>0).join(`
|
|
222
|
-
`);F.body=JSON.stringify(JSON.parse(D))}catch{F.body=k.requestBody}const oe=await fetch(P,F),ie=await oe.json(),qe=Date.now()-K,Ye={};oe.headers.forEach((D,$)=>{Ye[$]=D}),f(D=>D.map($=>$.id===d?{...$,response:{status:oe.status,data:ie,headers:Ye},requestTime:qe}:$)),r(`API call completed in ${qe}ms`,"success");const le=oe.headers.get("X-Vision-Trace-Id");console.log("📊 Trace ID from header:",le,"Client duration:",qe),le&&i.mutate({traceId:le,clientDuration:qe})}catch(W){f(P=>P.map(F=>F.id===d?{...F,response:{status:0,error:W instanceof Error?W.message:"Unknown error"}}:F)),r(W instanceof Error?W.message:"API call failed","error")}finally{g(!1)}},M=(k,K)=>{f(W=>W.map(P=>P.id===d?{...P,urlParams:{...P.urlParams,[k]:K}}:P))},R=k=>{f(K=>K.map(W=>W.id===d?{...W,requestBody:k}:W))},L=()=>{const k={id:yu(),title:"New tab",sessionId:yu(),route:null,urlParams:{},requestBody:"",response:null,requestTime:null};f(K=>[...K,k]),p(k.id)},H=k=>{f(K=>{if(K.length<=1)return K;const W=K.filter(P=>P.id!==k);if(d===k){const P=W[W.length-1];p(P.id)}return W})};return E("div",{className:"flex h-full",children:[m("div",{className:"w-64 border-r bg-muted overflow-y-auto flex-shrink-0",children:E("div",{className:"p-4",children:[m("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-3",children:"Endpoints"}),m("div",{className:"space-y-1",children:l.map((k,K)=>m("button",{onClick:()=>O(k),className:`w-full text-left p-2 rounded-md text-sm font-medium transition-colors
|
|
223
|
-
${N.route===k?"bg-primary text-primary-foreground":"hover:bg-accent text-foreground"}`,children:E("div",{className:"flex items-center gap-2",children:[m(Me,{className:`text-[10px] font-mono w-12 flex items-center justify-center
|
|
224
|
-
${k.method==="GET"?"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 hover:bg-blue-100 dark:hover:bg-blue-900":""}
|
|
225
|
-
${k.method==="POST"?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":""}
|
|
226
|
-
${k.method==="PUT"?"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900":""}
|
|
227
|
-
${k.method==="DELETE"?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900":""}
|
|
228
|
-
`,children:k.method}),m("span",{className:"font-mono text-xs truncate",children:k.path})]})},K))})]})}),E("div",{className:"flex-1 overflow-y-auto",children:[m("div",{className:"px-6 pt-3 border-b bg-muted",children:E("div",{className:"flex items-center gap-1 overflow-x-auto whitespace-nowrap pb-0",children:[c.map(k=>E("button",{className:`relative flex-none inline-flex items-center gap-2 px-4 py-2.5 text-sm font-medium transition-all ${k.id===d?"bg-background text-foreground rounded-t-md border-t border-x border-border":"text-muted-foreground hover:text-foreground hover:bg-accent/50 rounded-t-md"}`,onClick:()=>p(k.id),children:[m("span",{className:"font-mono text-sm truncate max-w-[200px]",children:k.title}),c.length>1&&m("button",{className:"ml-1 text-muted-foreground hover:text-foreground hover:bg-accent rounded-sm p-0.5 -mr-1",onClick:K=>{K.stopPropagation(),H(k.id)},children:m("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),k.id===d&&m("div",{className:"absolute bottom-0 left-0 right-0 h-[2px] bg-primary"})]},k.id)),E(wt,{variant:"ghost",size:"sm",className:"flex-none ml-2 text-sm font-medium text-muted-foreground hover:text-foreground",onClick:L,children:[m("svg",{className:"w-4 h-4 mr-1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"New tab"]})]})}),m("div",{className:"p-6 max-w-4xl",children:N.route?E("div",{className:"space-y-4",children:[E(dt,{children:[m(Et,{children:m(Lt,{className:"text-base font-semibold",children:"API Caller"})}),E(ht,{className:"space-y-4",children:[E("div",{children:[m(Oi,{className:"text-sm font-medium mb-2 block",children:"Endpoint"}),E("div",{className:"flex gap-2",children:[E("div",{className:"flex-1 bg-muted rounded-md p-3 font-mono text-sm border",children:[m("span",{className:"text-blue-600 dark:text-blue-400 font-semibold",children:N.route.method})," ",m("span",{className:"text-foreground",children:N.route.path})]}),m(wt,{onClick:Y,disabled:v,className:"bg-blue-600 dark:bg-blue-600 hover:bg-blue-700 dark:hover:bg-blue-700 text-white",children:v?E("span",{className:"flex items-center gap-2",children:[m("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),m("span",{className:"text-sm font-medium",children:"Calling..."})]}):E("span",{className:"flex items-center gap-2",children:[m(f2,{className:"w-4 h-4"}),m("span",{className:"text-sm font-medium",children:"Call API"})]})})]})]}),N.route.path.includes(":")&&E("div",{children:[m(Oi,{className:"text-sm font-medium mb-2 block",children:"URL Parameters"}),m("div",{className:"space-y-3",children:(j=N.route.path.match(/:[^/]+/g))==null?void 0:j.map(k=>{const K=k.slice(1);return E("div",{className:"grid grid-cols-4 gap-3 items-center",children:[m(Oi,{htmlFor:K,className:"text-sm text-muted-foreground",children:K}),m(id,{id:K,type:"text",value:N.urlParams[K]||"",onChange:W=>M(K,W.target.value),placeholder:`Enter ${K}`,className:"col-span-3 text-sm"})]},K)})})]}),["POST","PUT","PATCH"].includes(N.route.method)&&E("div",{children:[m(Oi,{className:"text-sm font-medium mb-2 block",children:"Request Body (JSON)"}),m("div",{className:"border rounded-md overflow-hidden",children:m(Ny,{height:"200px",language:"json",value:N.requestBody,onChange:k=>R(k||""),theme:"vs-dark",options:{readOnly:!1,minimap:{enabled:!1},scrollBeyondLastLine:!1,automaticLayout:!0,formatOnPaste:!0,formatOnType:!0,fontSize:14,glyphMargin:!1,folding:!0,lineDecorationsWidth:0,lineNumbersMinChars:3,renderLineHighlight:"all",tabSize:2,insertSpaces:!0,scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}}})})]})]})]}),N.response&&E(dt,{children:[m(Et,{children:E("div",{className:"flex items-center justify-between",children:[E("div",{className:"flex items-center gap-3",children:[m(Lt,{className:"text-base font-semibold",children:"Response"}),m(Me,{className:`text-xs font-mono
|
|
229
|
-
${N.response.status>=200&&N.response.status<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":""}
|
|
230
|
-
${N.response.status>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900":""}
|
|
231
|
-
`,children:N.response.status||"ERROR"}),N.requestTime&&E("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[m(Du,{className:"w-3 h-3"}),N.requestTime,"ms"]})]}),m(wt,{variant:"ghost",size:"sm",onClick:()=>navigator.clipboard.writeText(JSON.stringify(N.response.data,null,2)),children:m(Iv,{className:"w-4 h-4"})})]})}),m(ht,{children:m(Mi,{data:N.response.data||N.response.error})})]}),N.response&&E(dt,{children:[m(Et,{children:m(Lt,{className:"text-base font-semibold",children:"Request Logs"})}),m(ht,{children:E("div",{className:"bg-gray-900 dark:bg-gray-950 rounded-md p-4 font-mono text-xs space-y-1 border",children:[E("div",{className:"text-blue-400 dark:text-blue-300",children:["INF starting request endpoint=",(Q=N.route)==null?void 0:Q.path," service=",(B=N.route)==null?void 0:B.handler]}),E("div",{className:"text-green-400 dark:text-green-300",children:["INF request completed code=",N.response.status," duration=",N.requestTime,"ms"]})]})})]})]}):m("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:m("p",{className:"text-sm",children:"Select an endpoint from the sidebar to get started"})})})]}),m(Qw,{sessionId:N.sessionId})]})}function Xw(l){const r=[...l].sort((c,f)=>c.startTime-f.startTime),i=new Map(r.map(c=>[c.id,{...c,children:[]}])),s=[];for(const c of r){const f=i.get(c.id);if(c.parentId){const d=i.get(c.parentId);d?d.children.push(f):s.push(f)}else s.push(f)}for(const[c,f]of i)f.children&&f.children.length>1&&f.children.sort((d,p)=>d.startTime-p.startTime);return s}function Kw(l){return l.startsWith("http.")?{bg:"bg-gradient-to-r from-blue-500/90 to-blue-600/90",border:"border-blue-500/30",text:"text-blue-50"}:l.startsWith("db.")?{bg:"bg-gradient-to-r from-purple-500/90 to-purple-600/90",border:"border-purple-500/30",text:"text-purple-50"}:{bg:"bg-gradient-to-r from-emerald-500/90 to-emerald-600/90",border:"border-emerald-500/30",text:"text-emerald-50"}}function Zw(l){return l.startsWith("http.")?m(o2,{className:"w-3.5 h-3.5"}):l.startsWith("db.")?m(nd,{className:"w-3.5 h-3.5"}):m(Cr,{className:"w-3.5 h-3.5"})}function ky({span:l,depth:r,totalDuration:i,t0:s,formatDuration:c}){var M;const[f,d]=y.useState(!0),p=(((M=l.children)==null?void 0:M.length)||0)>0,v=(l.startTime-s)/i*100,g=(l.duration||0)/i*100,x=l.attributes&&Object.keys(l.attributes).length>0,[S,N]=y.useState(!1),O=Kw(l.name),Y=Zw(l.name);return E(Zt,{children:[m("div",{className:"group hover:bg-muted/50 transition-colors rounded-lg",children:E("div",{className:"flex items-start gap-3 p-3",children:[E("div",{className:"flex items-center gap-2 min-w-0 flex-shrink-0",style:{paddingLeft:`${r*20}px`},children:[p?m("button",{onClick:()=>d(!f),className:"p-0.5 hover:bg-muted rounded transition-colors",children:f?m(Wv,{className:"w-3.5 h-3.5 text-muted-foreground"}):m(Pv,{className:"w-3.5 h-3.5 text-muted-foreground"})}):m("div",{className:"w-4"}),m("div",{className:`p-1.5 rounded-md ${O.bg.replace("/90","/20")} ${O.border} border`,children:Y})]}),E("div",{className:"flex-1 min-w-0 space-y-2.5",children:[E("div",{className:"flex items-center justify-between gap-4",children:[E("div",{className:"flex items-center gap-3 min-w-0",children:[m("span",{className:"text-sm font-semibold font-mono truncate",children:l.name}),x&&E("button",{onClick:()=>N(!S),className:"text-xs px-2 py-0.5 rounded-full bg-muted hover:bg-muted/80 transition-colors font-medium",children:[Object.keys(l.attributes||{}).length," attrs"]})]}),m("div",{className:"flex items-center gap-2 flex-shrink-0",children:m("span",{className:"text-sm font-mono font-semibold tabular-nums",children:c(l.duration)})})]}),m("div",{className:"relative h-8 bg-muted/50 rounded-lg overflow-hidden border border-border/50",children:m("div",{className:`absolute h-full ${O.bg} ${O.border} border-2 flex items-center px-2.5 shadow-lg transition-all duration-200 group-hover:shadow-xl`,style:{left:`${v}%`,width:`${Math.max(g,.5)}%`},children:m("span",{className:`text-xs font-mono font-semibold ${O.text} truncate drop-shadow-sm`,children:l.name})})}),S&&x&&m("div",{className:"mt-2 p-3 bg-muted/30 rounded-lg border border-border/50 space-y-1.5",children:Object.entries(l.attributes||{}).map(([R,L])=>R==="http.request"||R==="http.response"?null:typeof L=="object"&&L!==null?E("div",{className:"font-mono text-xs flex items-start gap-2",children:[E("span",{className:"text-muted-foreground font-semibold",children:[R,":"]}),m("span",{className:"text-muted-foreground italic",children:"[object]"})]},R):E("div",{className:"font-mono text-xs flex items-start gap-2",children:[E("span",{className:"text-muted-foreground font-semibold min-w-[120px]",children:[R,":"]}),m("span",{className:"text-foreground break-all",children:String(L)})]},R))})]})]})}),f&&p&&m("div",{className:"space-y-1",children:l.children.map(R=>m(ky,{span:R,depth:r+1,totalDuration:i,t0:s,formatDuration:c},R.id))})]})}function Jw({spans:l,formatDuration:r}){if(l.length===0)return m("div",{className:"text-center py-12 text-sm text-muted-foreground",children:"No spans recorded"});const i=Math.min(...l.map(d=>d.startTime)),c=Math.max(...l.map(d=>d.endTime||d.startTime))-i||1,f=Xw(l);return console.log("[SpansWaterfall] Tree:",f.map(d=>{var p;return{name:d.name,id:d.id.slice(0,8),parentId:(p=d.parentId)==null?void 0:p.slice(0,8),duration:d.duration}})),console.log("[SpansWaterfall] All spans:",l.map(d=>{var p;return{name:d.name,id:d.id.slice(0,8),parentId:(p=d.parentId)==null?void 0:p.slice(0,8),duration:d.duration}})),E("div",{className:"space-y-3",children:[E("div",{className:"flex justify-between items-center px-4 py-2 bg-muted/30 rounded-lg border border-border/50",children:[E("div",{className:"flex items-center gap-2",children:[m("span",{className:"text-xs font-semibold text-muted-foreground",children:"Timeline"}),E("span",{className:"text-xs px-2 py-0.5 rounded-full bg-primary/10 text-primary font-mono font-semibold",children:[l.length," ",l.length===1?"span":"spans"]})]}),E("div",{className:"flex items-center gap-4 text-xs font-mono font-semibold tabular-nums",children:[m("span",{className:"text-muted-foreground",children:"0ms"}),m("div",{className:"w-px h-4 bg-border"}),m("span",{className:"text-foreground",children:r(c)})]})]}),m("div",{className:"space-y-1",children:f.map(d=>m(ky,{span:d,depth:0,totalDuration:c,t0:i,formatDuration:r},d.id))})]})}function Fw({trace:l,formatDuration:r}){var d,p,v,g;const i=l.spans.find(x=>x.name==="http.request"),s=((d=l.metadata)==null?void 0:d.request)||((p=i==null?void 0:i.attributes)==null?void 0:p["http.request"]),c=((v=l.metadata)==null?void 0:v.response)||((g=i==null?void 0:i.attributes)==null?void 0:g["http.response"]),f=x=>x?x>=200&&x<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300":x>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300":"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300":"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400";return E("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[E(dt,{children:[m(Et,{className:"bg-muted",children:m(Lt,{className:"text-base font-semibold",children:"Request"})}),m(ht,{className:"pt-4",children:E("div",{className:"space-y-3",children:[E("div",{className:"text-sm",children:[m(Me,{className:"font-mono text-xs mr-2",children:l.method}),m("span",{className:"font-mono text-sm break-all",children:(s==null?void 0:s.url)||l.path})]}),(s==null?void 0:s.headers)&&E("div",{children:[m("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Headers"}),m(Mi,{data:s.headers})]}),(s==null?void 0:s.body)!==void 0&&E("div",{children:[m("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Body"}),m(Mi,{data:s.body})]})]})})]}),E(dt,{children:[m(Et,{className:"bg-muted",children:m(Lt,{className:"text-base font-semibold",children:"Response"})}),m(ht,{className:"pt-4",children:E("div",{className:"space-y-3",children:[E("div",{className:"flex items-center gap-2 text-sm",children:[m(Me,{className:`font-mono text-xs ${f(l.statusCode)}`,children:l.statusCode||(c==null?void 0:c.status)||"-"}),m("span",{className:"text-xs text-muted-foreground",children:r(l.duration)})]}),(c==null?void 0:c.headers)&&E("div",{children:[m("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Headers"}),m(Mi,{data:c.headers})]}),(c==null?void 0:c.body)!==void 0&&E("div",{children:[m("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Body"}),m(Mi,{data:c.body})]})]})})]})]})}function $w(){const{data:l=[]}=ny({limit:100}),r=b2(),i=x2(),{traceId:s}=Wf(),{addToast:c}=dd(),f=y.useRef(null),d=y.useRef(l.length);y.useEffect(()=>{l.length>d.current&&f.current&&(f.current.scrollTop=0),d.current=l.length},[l.length]);const p=async()=>{if(!(l.length===0||!window.confirm(`Remove ${l.length} trace${l.length===1?"":"s"}?`)))try{await r.mutateAsync()}catch(x){console.error("Failed to clear traces:",x),c("Failed to clear traces","error")}};return E("div",{className:"h-full grid grid-cols-12 gap-0",children:[E("div",{className:"col-span-4 border-r bg-muted h-full flex flex-col",children:[m("div",{className:"px-6 py-4 border-b bg-background",children:E("div",{className:"flex items-center justify-between gap-3",children:[E("div",{children:[m("h1",{className:"text-lg font-semibold",children:"Traces"}),m("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Recent requests"})]}),E("div",{className:"flex gap-2",children:[E(wt,{variant:"outline",size:"sm",onClick:async()=>{try{const g=await i.mutateAsync({format:"json"}),x=typeof g=="string"?g:JSON.stringify(g,null,2),S=new Blob([x],{type:"application/json"}),N=URL.createObjectURL(S),O=document.createElement("a");O.href=N;const Y=new Date().toISOString().replace(/[:.]/g,"-");O.download=`vision-traces-${Y}.json`,document.body.appendChild(O),O.click(),document.body.removeChild(O),URL.revokeObjectURL(N)}catch(g){console.error("Failed to export traces:",g),c("Failed to export traces","error")}},disabled:i.isPending||l.length===0,className:"text-sm",children:[m(u2,{className:"w-4 h-4 mr-1.5"}),"Export"]}),E(wt,{variant:"outline",size:"sm",onClick:p,disabled:r.isPending||l.length===0,className:"text-sm",children:[m(ty,{className:"w-4 h-4 mr-1.5"}),"Clear"]})]})]})}),m(qi,{className:"flex-1",ref:f,children:l.length===0?E("div",{className:"flex flex-col items-center justify-center py-20 px-6 text-muted-foreground",children:[m(Cr,{className:"w-12 h-12 mb-4 opacity-30"}),m("p",{className:"text-sm",children:"No traces yet"}),m("p",{className:"text-xs mt-1",children:"Make some API calls to see traces here"})]}):m("div",{className:"p-4 space-y-2",children:l.map((g,x)=>E("div",{children:[m(zu,{to:`/traces/${g.id}`,children:m(Ww,{trace:g,isActive:g.id===s})}),x<l.length-1&&m(_u,{className:"my-2"})]},g.id))})})]}),m("div",{className:"col-span-8 h-full overflow-y-auto p-6",children:m(Vv,{})})]})}function Ww({trace:l,isActive:r}){const i=d=>{switch(d){case"GET":return"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 hover:bg-blue-100 dark:hover:bg-blue-900";case"POST":return"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900";case"PUT":return"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900";case"DELETE":return"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900";default:return"bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300"}},s=d=>d?d>=200&&d<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":d>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300 hover:bg-red-100 dark:hover:bg-red-900":"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900":"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",c=d=>d==null?"-":d<1?"< 1ms":d<1e3?`${Math.round(d)}ms`:`${(d/1e3).toFixed(2)}s`,f=d=>new Date(d).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3});return E("div",{className:`w-full bg-background rounded-md border p-3 transition-all text-left cursor-pointer ${r?"border-primary ring-2 ring-primary/20":"border-border hover:border-primary/50"}`,children:[E("div",{className:"flex items-center gap-2 mb-2",children:[m(Me,{className:`text-xs font-mono px-1.5 py-0 ${i(l.method)}`,children:l.method}),m(Me,{className:`text-xs font-mono px-1.5 py-0 ${s(l.statusCode)}`,children:l.statusCode||"..."}),l.spans.length>0&&E("span",{className:"text-xs text-muted-foreground ml-auto",children:[l.spans.length," span",l.spans.length>1?"s":""]})]}),m("div",{className:"font-mono text-sm text-foreground truncate mb-2",children:l.path}),E("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[E("div",{className:"flex items-center gap-1",children:[m(Du,{className:"w-3 h-3"}),m("span",{children:f(l.timestamp)})]}),E("div",{className:"flex items-center gap-1",children:[m(Cr,{className:"w-3 h-3"}),m("span",{className:l.duration&&l.duration>1e3?"text-orange-600 dark:text-orange-400 font-medium":"",children:c(l.duration)})]})]})]})}function Pw({trace:l,onBack:r}){var v;const i=Vi(),s=ly(),c=async()=>{var g;try{const x=l.spans.find(Q=>{var B;return Q.name==="http.request"||!!((B=Q.attributes)!=null&&B["http.url"])}),S=((g=x==null?void 0:x.attributes)==null?void 0:g["http.url"])||l.path,N=Date.now();let O;try{new URL(S),O=S}catch{O=`http://localhost:3000${S.startsWith("/")?"":"/"}${S}`}const M=Tt().on("trace.new",Q=>{Q.method===l.method&&Q.timestamp>=N&&(i(`/traces/${Q.id}`),M())}),R=Date.now(),L=await fetch(O,{method:l.method,headers:{"Content-Type":"application/json"}}),H=Date.now()-R,j=L.headers.get("X-Vision-Trace-Id");j&&s.mutate({traceId:j,clientDuration:H})}catch(x){console.error("Failed to replay request:",x)}},f=g=>g?g<1?"< 1ms":g<1e3?`${Math.round(g)}ms`:`${(g/1e3).toFixed(2)}s`:"-",d=g=>new Date(g).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3,hour12:!1}),p=g=>g?g>=200&&g<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300":g>=400?"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300":"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300":"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-400";return E("div",{className:"max-w-5xl",children:[E("div",{className:"flex items-center justify-between mb-6",children:[r&&E(wt,{variant:"ghost",size:"sm",onClick:r,className:"text-sm font-medium",children:[m(a2,{className:"w-4 h-4 mr-2"}),"Back to Traces"]}),m(wt,{onClick:c,size:"sm",className:"text-sm font-medium",children:"Replay Request"})]}),E("div",{className:"space-y-4",children:[E(dt,{children:[m(Et,{children:m(Lt,{className:"text-base font-semibold",children:"Request Overview"})}),m(ht,{children:E("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[E("div",{children:[m("p",{className:"text-xs text-muted-foreground mb-1",children:"Method"}),m("p",{className:"font-mono text-sm font-medium",children:l.method})]}),E("div",{className:"col-span-2",children:[m("p",{className:"text-xs text-muted-foreground mb-1",children:"Path"}),m("p",{className:"font-mono text-sm font-medium truncate",children:l.path})]}),E("div",{children:[m("p",{className:"text-xs text-muted-foreground mb-1",children:"Status"}),m(Me,{className:`text-xs font-mono ${p(l.statusCode)}`,children:l.statusCode||"Pending"})]}),E("div",{children:[m("p",{className:"text-xs text-muted-foreground mb-1",children:"Duration"}),(v=l.metadata)!=null&&v.clientDuration?E("div",{className:"space-y-1",children:[E("div",{className:"flex items-center gap-2",children:[m("span",{className:"text-xs text-muted-foreground",children:"Server:"}),m("span",{className:"font-mono text-sm",children:f(l.duration)})]}),E("div",{className:"flex items-center gap-2",children:[m("span",{className:"text-xs text-muted-foreground",children:"Total:"}),m("span",{className:"font-mono text-sm font-medium",children:f(l.metadata.clientDuration)})]}),E("div",{className:"flex items-center gap-2",children:[m("span",{className:"text-xs text-muted-foreground",children:"Network:"}),m("span",{className:"font-mono text-sm text-blue-600 dark:text-blue-400",children:f(l.metadata.clientDuration-(l.duration||0))})]})]}):m("p",{className:`font-mono text-sm font-medium ${l.duration&&l.duration>1e3?"text-orange-600 dark:text-orange-400":""}`,children:f(l.duration)})]}),E("div",{className:"col-span-2",children:[m("p",{className:"text-xs text-muted-foreground mb-1",children:"Timestamp"}),m("p",{className:"font-mono text-sm",children:d(l.timestamp)})]}),E("div",{children:[m("p",{className:"text-xs text-muted-foreground mb-1",children:"Trace ID"}),m("p",{className:"font-mono text-xs text-muted-foreground",children:l.id})]})]})})]}),m(Fw,{trace:l,formatDuration:f}),l.spans.length>0&&E(dt,{children:[m(Et,{children:E(Lt,{className:"text-base font-semibold",children:["Spans Timeline (",l.spans.length,")"]})}),m(ht,{children:m(Jw,{spans:l.spans,formatDuration:f})})]})]})]})}function ar(l,r,i){let s=i.initialDeps??[],c;function f(){var d,p,v,g;let x;i.key&&((d=i.debug)!=null&&d.call(i))&&(x=Date.now());const S=l();if(!(S.length!==s.length||S.some((Y,M)=>s[M]!==Y)))return c;s=S;let O;if(i.key&&((p=i.debug)!=null&&p.call(i))&&(O=Date.now()),c=r(...S),i.key&&((v=i.debug)!=null&&v.call(i))){const Y=Math.round((Date.now()-x)*100)/100,M=Math.round((Date.now()-O)*100)/100,R=M/16,L=(H,j)=>{for(H=String(H);H.length<j;)H=" "+H;return H};console.info(`%c⏱ ${L(M,5)} /${L(Y,5)} ms`,`
|
|
232
|
-
font-size: .6rem;
|
|
233
|
-
font-weight: bold;
|
|
234
|
-
color: hsl(${Math.max(0,Math.min(120-120*R,120))}deg 100% 31%);`,i==null?void 0:i.key)}return(g=i==null?void 0:i.onChange)==null||g.call(i,c),c}return f.updateDeps=d=>{s=d},f}function av(l,r){if(l===void 0)throw new Error("Unexpected undefined");return l}const Iw=(l,r)=>Math.abs(l-r)<1.01,eE=(l,r,i)=>{let s;return function(...c){l.clearTimeout(s),s=l.setTimeout(()=>r.apply(this,c),i)}},rv=l=>{const{offsetWidth:r,offsetHeight:i}=l;return{width:r,height:i}},tE=l=>l,nE=l=>{const r=Math.max(l.startIndex-l.overscan,0),i=Math.min(l.endIndex+l.overscan,l.count-1),s=[];for(let c=r;c<=i;c++)s.push(c);return s},lE=(l,r)=>{const i=l.scrollElement;if(!i)return;const s=l.targetWindow;if(!s)return;const c=d=>{const{width:p,height:v}=d;r({width:Math.round(p),height:Math.round(v)})};if(c(rv(i)),!s.ResizeObserver)return()=>{};const f=new s.ResizeObserver(d=>{const p=()=>{const v=d[0];if(v!=null&&v.borderBoxSize){const g=v.borderBoxSize[0];if(g){c({width:g.inlineSize,height:g.blockSize});return}}c(rv(i))};l.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(p):p()});return f.observe(i,{box:"border-box"}),()=>{f.unobserve(i)}},iv={passive:!0},sv=typeof window>"u"?!0:"onscrollend"in window,aE=(l,r)=>{const i=l.scrollElement;if(!i)return;const s=l.targetWindow;if(!s)return;let c=0;const f=l.options.useScrollendEvent&&sv?()=>{}:eE(s,()=>{r(c,!1)},l.options.isScrollingResetDelay),d=x=>()=>{const{horizontal:S,isRtl:N}=l.options;c=S?i.scrollLeft*(N&&-1||1):i.scrollTop,f(),r(c,x)},p=d(!0),v=d(!1);v(),i.addEventListener("scroll",p,iv);const g=l.options.useScrollendEvent&&sv;return g&&i.addEventListener("scrollend",v,iv),()=>{i.removeEventListener("scroll",p),g&&i.removeEventListener("scrollend",v)}},rE=(l,r,i)=>{if(r!=null&&r.borderBoxSize){const s=r.borderBoxSize[0];if(s)return Math.round(s[i.options.horizontal?"inlineSize":"blockSize"])}return l[i.options.horizontal?"offsetWidth":"offsetHeight"]},iE=(l,{adjustments:r=0,behavior:i},s)=>{var c,f;const d=l+r;(f=(c=s.scrollElement)==null?void 0:c.scrollTo)==null||f.call(c,{[s.options.horizontal?"left":"top"]:d,behavior:i})};class sE{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let i=null;const s=()=>i||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:i=new this.targetWindow.ResizeObserver(c=>{c.forEach(f=>{const d=()=>{this._measureElement(f.target,f)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()})}));return{disconnect:()=>{var c;(c=s())==null||c.disconnect(),i=null},observe:c=>{var f;return(f=s())==null?void 0:f.observe(c,{box:"border-box"})},unobserve:c=>{var f;return(f=s())==null?void 0:f.unobserve(c)}}})(),this.range=null,this.setOptions=i=>{Object.entries(i).forEach(([s,c])=>{typeof c>"u"&&delete i[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:tE,rangeExtractor:nE,onChange:()=>{},measureElement:rE,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...i}},this.notify=i=>{var s,c;(c=(s=this.options).onChange)==null||c.call(s,this,i)},this.maybeNotify=ar(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),i=>{this.notify(i)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(i=>i()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;const s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((i=this.scrollElement)==null?void 0:i.window)??null,this.elementsCache.forEach(c=>{this.observer.observe(c)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,c=>{this.scrollRect=c,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(c,f)=>{this.scrollAdjustments=0,this.scrollDirection=f?this.getScrollOffset()<c?"forward":"backward":null,this.scrollOffset=c,this.isScrolling=f,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(i,s)=>{const c=new Map,f=new Map;for(let d=s-1;d>=0;d--){const p=i[d];if(c.has(p.lane))continue;const v=f.get(p.lane);if(v==null||p.end>v.end?f.set(p.lane,p):p.end<v.end&&c.set(p.lane,!0),c.size===this.options.lanes)break}return f.size===this.options.lanes?Array.from(f.values()).sort((d,p)=>d.end===p.end?d.index-p.index:d.end-p.end)[0]:void 0},this.getMeasurementOptions=ar(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(i,s,c,f,d)=>(this.pendingMeasuredCacheIndexes=[],{count:i,paddingStart:s,scrollMargin:c,getItemKey:f,enabled:d}),{key:!1}),this.getMeasurements=ar(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:i,paddingStart:s,scrollMargin:c,getItemKey:f,enabled:d},p)=>{if(!d)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(x=>{this.itemSizeCache.set(x.key,x.size)}));const v=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const g=this.measurementsCache.slice(0,v);for(let x=v;x<i;x++){const S=f(x),N=this.options.lanes===1?g[x-1]:this.getFurthestMeasurement(g,x),O=N?N.end+this.options.gap:s+c,Y=p.get(S),M=typeof Y=="number"?Y:this.options.estimateSize(x),R=O+M,L=N?N.lane:x%this.options.lanes;g[x]={index:x,start:O,size:M,end:R,key:S,lane:L}}return this.measurementsCache=g,g},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ar(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,s,c,f)=>this.range=i.length>0&&s>0?uE({measurements:i,outerSize:s,scrollOffset:c,lanes:f}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=ar(()=>{let i=null,s=null;const c=this.calculateRange();return c&&(i=c.startIndex,s=c.endIndex),this.maybeNotify.updateDeps([this.isScrolling,i,s]),[this.options.rangeExtractor,this.options.overscan,this.options.count,i,s]},(i,s,c,f,d)=>f===null||d===null?[]:i({startIndex:f,endIndex:d,overscan:s,count:c}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=i=>{const s=this.options.indexAttribute,c=i.getAttribute(s);return c?parseInt(c,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(i,s)=>{const c=this.indexFromElement(i),f=this.measurementsCache[c];if(!f)return;const d=f.key,p=this.elementsCache.get(d);p!==i&&(p&&this.observer.unobserve(p),this.observer.observe(i),this.elementsCache.set(d,i)),i.isConnected&&this.resizeItem(c,this.options.measureElement(i,s,this))},this.resizeItem=(i,s)=>{const c=this.measurementsCache[i];if(!c)return;const f=this.itemSizeCache.get(c.key)??c.size,d=s-f;d!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(c,d,this):c.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=d,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(c.index),this.itemSizeCache=new Map(this.itemSizeCache.set(c.key,s)),this.notify(!1))},this.measureElement=i=>{if(!i){this.elementsCache.forEach((s,c)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(c))});return}this._measureElement(i,void 0)},this.getVirtualItems=ar(()=>[this.getVirtualIndexes(),this.getMeasurements()],(i,s)=>{const c=[];for(let f=0,d=i.length;f<d;f++){const p=i[f],v=s[p];c.push(v)}return c},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=i=>{const s=this.getMeasurements();if(s.length!==0)return av(s[Qy(0,s.length-1,c=>av(s[c]).start,i)])},this.getOffsetForAlignment=(i,s,c=0)=>{const f=this.getSize(),d=this.getScrollOffset();s==="auto"&&(s=i>=d+f?"end":"start"),s==="center"?i+=(c-f)/2:s==="end"&&(i-=f);const p=this.getTotalSize()+this.options.scrollMargin-f;return Math.max(Math.min(p,i),0)},this.getOffsetForIndex=(i,s="auto")=>{i=Math.max(0,Math.min(i,this.options.count-1));const c=this.measurementsCache[i];if(!c)return;const f=this.getSize(),d=this.getScrollOffset();if(s==="auto")if(c.end>=d+f-this.options.scrollPaddingEnd)s="end";else if(c.start<=d+this.options.scrollPaddingStart)s="start";else return[d,s];const p=s==="end"?c.end+this.options.scrollPaddingEnd:c.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(p,s,c.size),s]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(i,{align:s="start",behavior:c}={})=>{c==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(i,s),{adjustments:void 0,behavior:c})},this.scrollToIndex=(i,{align:s="auto",behavior:c}={})=>{c==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),i=Math.max(0,Math.min(i,this.options.count-1));let f=0;const d=10,p=g=>{if(!this.targetWindow)return;const x=this.getOffsetForIndex(i,g);if(!x){console.warn("Failed to get offset for index:",i);return}const[S,N]=x;this._scrollToOffset(S,{adjustments:void 0,behavior:c}),this.targetWindow.requestAnimationFrame(()=>{const O=this.getScrollOffset(),Y=this.getOffsetForIndex(i,N);if(!Y){console.warn("Failed to get offset for index:",i);return}Iw(Y[0],O)||v(N)})},v=g=>{this.targetWindow&&(f++,f<d?this.targetWindow.requestAnimationFrame(()=>p(g)):console.warn(`Failed to scroll to index ${i} after ${d} attempts.`))};p(s)},this.scrollBy=(i,{behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+i,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var i;const s=this.getMeasurements();let c;if(s.length===0)c=this.options.paddingStart;else if(this.options.lanes===1)c=((i=s[s.length-1])==null?void 0:i.end)??0;else{const f=Array(this.options.lanes).fill(null);let d=s.length-1;for(;d>=0&&f.some(p=>p===null);){const p=s[d];f[p.lane]===null&&(f[p.lane]=p.end),d--}c=Math.max(...f.filter(p=>p!==null))}return Math.max(c-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(i,{adjustments:s,behavior:c})=>{this.options.scrollToFn(i,{behavior:c,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(r)}}const Qy=(l,r,i,s)=>{for(;l<=r;){const c=(l+r)/2|0,f=i(c);if(f<s)l=c+1;else if(f>s)r=c-1;else return c}return l>0?l-1:0};function uE({measurements:l,outerSize:r,scrollOffset:i,lanes:s}){const c=l.length-1,f=v=>l[v].start;if(l.length<=s)return{startIndex:0,endIndex:c};let d=Qy(0,c,f,i),p=d;if(s===1)for(;p<c&&l[p].end<i+r;)p++;else if(s>1){const v=Array(s).fill(0);for(;p<c&&v.some(x=>x<i+r);){const x=l[p];v[x.lane]=x.end,p++}const g=Array(s).fill(i+r);for(;d>=0&&g.some(x=>x>=i);){const x=l[d];g[x.lane]=x.start,d--}d=Math.max(0,d-d%s),p=Math.min(c,p+(s-1-p%s))}return{startIndex:d,endIndex:p}}const uv=typeof document<"u"?y.useLayoutEffect:y.useEffect;function oE(l){const r=y.useReducer(()=>({}),{})[1],i={...l,onChange:(c,f)=>{var d;f?IS.flushSync(r):r(),(d=l.onChange)==null||d.call(l,c,f)}},[s]=y.useState(()=>new sE(i));return s.setOptions(i),uv(()=>s._didMount(),[]),uv(()=>s._willUpdate()),s}function cE(l){return oE({observeElementRect:lE,observeElementOffset:aE,scrollToFn:iE,...l})}function fE(){const[l,r]=y.useState("all"),[i,s]=y.useState(""),c=N2(),f=Vi(),{data:d=[]}=S2({limit:1e4,level:l==="all"?void 0:l,search:i||void 0}),p=y.useRef(null),v=cE({count:d.length,getScrollElement:()=>p.current,estimateSize:()=>72,overscan:8,measureElement:M=>M.getBoundingClientRect().height}),g=()=>{confirm("Clear all logs?")&&c.mutate()},x=M=>{var j;const L=(M.message||"").match(/traceId=([^\s]+)/);if(L)return L[1];const H=(j=M==null?void 0:M.args)==null?void 0:j.find(Q=>Q&&typeof Q=="object"&&"traceId"in Q);return H==null?void 0:H.traceId},S=M=>{const R=M.message||"",L=/(\w+)=([^\s]+)/g,H=[...R.matchAll(L)];if(H.length===0)return;const j={};return H.forEach(([,Q,B])=>{if(B.startsWith("{")||B.startsWith("["))try{j[Q]=JSON.parse(B)}catch{j[Q]=B}else j[Q]=B}),Object.keys(j).length?j:void 0},N=M=>{switch(M){case"error":return m(Ui,{className:"w-4 h-4 text-red-500"});case"warn":return m(m2,{className:"w-4 h-4 text-yellow-500"});case"info":return m(Gp,{className:"w-4 h-4 text-blue-500"});case"debug":return m(r2,{className:"w-4 h-4 text-gray-500"});default:return m(Gp,{className:"w-4 h-4 text-gray-400"})}},O=M=>{switch(M){case"error":return"bg-red-50 dark:bg-red-950 border-red-200 dark:border-red-800";case"warn":return"bg-yellow-50 dark:bg-yellow-950 border-yellow-200 dark:border-yellow-800";case"info":return"bg-blue-50 dark:bg-blue-950 border-blue-200 dark:border-blue-800";case"debug":return"bg-gray-50 dark:bg-gray-900 border-gray-200 dark:border-gray-800";default:return"bg-background border-border"}},Y=M=>new Date(M).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3});return E("div",{className:"h-full flex flex-col",children:[E("div",{className:"bg-background border-b px-6 py-4",children:[E("div",{className:"flex items-center justify-between mb-4",children:[m("h1",{className:"text-lg font-semibold",children:"Logs"}),m("div",{className:"flex gap-2",children:E(wt,{variant:"outline",size:"sm",onClick:g,className:"text-sm font-medium",children:[m(ty,{className:"w-4 h-4 mr-1.5"}),"Clear All"]})})]}),E("div",{className:"flex gap-4",children:[m("div",{className:"flex gap-1",children:["all","log","info","warn","error","debug"].map(M=>m(wt,{variant:l===M?"default":"outline",size:"sm",onClick:()=>r(M),className:"text-sm font-medium",children:M.charAt(0).toUpperCase()+M.slice(1)},M))}),E("div",{className:"flex-1 max-w-md relative",children:[m(d2,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),m(id,{type:"text",placeholder:"Search logs...",value:i,onChange:M=>s(M.target.value),className:"pl-10 text-sm"})]}),E(Me,{variant:"secondary",className:"text-sm",children:[d.length.toLocaleString()," entries"]})]})]}),m("div",{ref:p,className:"flex-1 overflow-auto bg-muted px-6 py-4",children:d.length===0?E(dt,{children:[m(Et,{children:m(Lt,{children:"No logs yet"})}),m(ht,{children:m("p",{className:"text-sm text-gray-600",children:"Logs will appear here as your application runs. Try making some API calls or use console.log() in your code."})})]}):m("div",{style:{height:`${v.getTotalSize()}px`,width:"100%",position:"relative"},children:v.getVirtualItems().map(M=>{const R=d[M.index],L=x(R),H=S(R);return m("div",{"data-index":M.index,ref:v.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${M.start}px)`},children:m("div",{className:`mb-2 p-3 border rounded-lg ${O(R.level)}`,children:E("div",{className:"flex items-start gap-3",children:[m("div",{className:"mt-0.5",children:N(R.level)}),m("div",{className:"text-xs font-mono text-muted-foreground w-24 flex-shrink-0 mt-0.5",children:Y(R.timestamp)}),E("div",{className:"flex-1 min-w-0",children:[E("div",{className:"flex items-start gap-2",children:[m("div",{className:"flex-1",children:E("div",{className:"flex items-center gap-2 flex-wrap",children:[m("span",{className:"text-sm font-mono",children:R.message}),H&&E(Zt,{children:[H.method&&m(Me,{className:"font-mono text-xs",children:H.method}),H.endpoint&&m(Me,{variant:"secondary",className:"font-mono text-xs",children:H.endpoint}),H.code!==void 0&&E(Me,{variant:"secondary",className:"font-mono text-xs",children:["code=",H.code]}),H.duration&&E(Me,{variant:"secondary",className:"font-mono text-xs",children:["duration=",H.duration]}),H.sessionId&&E(Me,{variant:"outline",className:"font-mono text-xs",children:["session=",H.sessionId]}),H.params&&typeof H.params=="object"&&m(Zt,{children:Object.entries(H.params).map(([j,Q])=>E(Me,{variant:"outline",className:"font-mono text-xs",children:[j,"=",String(Q)]},j))}),H.query&&typeof H.query=="object"&&m(Zt,{children:Object.entries(H.query).map(([j,Q])=>E(Me,{variant:"outline",className:"font-mono text-xs",children:[j,"=",String(Q)]},j))})]})]})}),L&&m(wt,{variant:"outline",size:"sm",onClick:()=>f(`/traces/${L}`),className:"text-xs font-medium",children:"Go to trace"})]}),R.stack&&E("details",{className:"mt-2",onToggle:j=>{const Q=j.currentTarget.closest("[data-index]")||void 0;Q&&v.measureElement(Q)},children:[m("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:"Stack trace"}),m("pre",{className:"mt-2 text-xs bg-background p-2 rounded border overflow-auto whitespace-pre-wrap select-text",children:R.stack})]})]})]})})},M.key)})})})]})}function dE(l){const r=l+"CollectionProvider",[i,s]=Lu(r),[c,f]=i(r,{collectionRef:{current:null},itemMap:new Map}),d=M=>{const{scope:R,children:L}=M,H=Nt.useRef(null),j=Nt.useRef(new Map).current;return m(c,{scope:R,itemMap:j,collectionRef:H,children:L})};d.displayName=r;const p=l+"CollectionSlot",v=qf(p),g=Nt.forwardRef((M,R)=>{const{scope:L,children:H}=M,j=f(p,L),Q=Tn(R,j.collectionRef);return m(v,{ref:Q,children:H})});g.displayName=p;const x=l+"CollectionItemSlot",S="data-radix-collection-item",N=qf(x),O=Nt.forwardRef((M,R)=>{const{scope:L,children:H,...j}=M,Q=Nt.useRef(null),B=Tn(R,Q),k=f(x,L);return Nt.useEffect(()=>(k.itemMap.set(Q,{ref:Q,...j}),()=>void k.itemMap.delete(Q))),m(N,{[S]:"",ref:B,children:H})});O.displayName=x;function Y(M){const R=f(l+"CollectionConsumer",M);return Nt.useCallback(()=>{const H=R.collectionRef.current;if(!H)return[];const j=Array.from(H.querySelectorAll(`[${S}]`));return Array.from(R.itemMap.values()).sort((k,K)=>j.indexOf(k.ref.current)-j.indexOf(K.ref.current))},[R.collectionRef,R.itemMap])}return[{Provider:d,Slot:g,ItemSlot:O},Y,s]}var hE=Sv[" useId ".trim().toString()]||(()=>{}),mE=0;function Gy(l){const[r,i]=y.useState(hE());return ji(()=>{i(s=>s??String(mE++))},[l]),r?`radix-${r}`:""}var gE=Sv[" useInsertionEffect ".trim().toString()]||ji;function Yy({prop:l,defaultProp:r,onChange:i=()=>{},caller:s}){const[c,f,d]=pE({defaultProp:r,onChange:i}),p=l!==void 0,v=p?l:c;{const x=y.useRef(l!==void 0);y.useEffect(()=>{const S=x.current;S!==p&&console.warn(`${s} is changing from ${S?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=p},[p,s])}const g=y.useCallback(x=>{var S;if(p){const N=vE(x)?x(l):x;N!==l&&((S=d.current)==null||S.call(d,N))}else f(x)},[p,l,f,d]);return[v,g]}function pE({defaultProp:l,onChange:r}){const[i,s]=y.useState(l),c=y.useRef(i),f=y.useRef(r);return gE(()=>{f.current=r},[r]),y.useEffect(()=>{var d;c.current!==i&&((d=f.current)==null||d.call(f,i),c.current=i)},[i,c]),[i,s,f]}function vE(l){return typeof l=="function"}var bf="rovingFocusGroup.onEntryFocus",yE={bubbles:!1,cancelable:!0},Zi="RovingFocusGroup",[Hf,Vy,bE]=dE(Zi),[xE,Xy]=Lu(Zi,[bE]),[SE,NE]=xE(Zi),Ky=y.forwardRef((l,r)=>m(Hf.Provider,{scope:l.__scopeRovingFocusGroup,children:m(Hf.Slot,{scope:l.__scopeRovingFocusGroup,children:m(wE,{...l,ref:r})})}));Ky.displayName=Zi;var wE=y.forwardRef((l,r)=>{const{__scopeRovingFocusGroup:i,orientation:s,loop:c=!1,dir:f,currentTabStopId:d,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:v,onEntryFocus:g,preventScrollOnEntryFocus:x=!1,...S}=l,N=y.useRef(null),O=Tn(r,N),Y=sd(f),[M,R]=Yy({prop:d,defaultProp:p??null,onChange:v,caller:Zi}),[L,H]=y.useState(!1),j=Ol(g),Q=Vy(i),B=y.useRef(!1),[k,K]=y.useState(0);return y.useEffect(()=>{const W=N.current;if(W)return W.addEventListener(bf,j),()=>W.removeEventListener(bf,j)},[j]),m(SE,{scope:i,orientation:s,dir:Y,loop:c,currentTabStopId:M,onItemFocus:y.useCallback(W=>R(W),[R]),onItemShiftTab:y.useCallback(()=>H(!0),[]),onFocusableItemAdd:y.useCallback(()=>K(W=>W+1),[]),onFocusableItemRemove:y.useCallback(()=>K(W=>W-1),[]),children:m(Jt.div,{tabIndex:L||k===0?-1:0,"data-orientation":s,...S,ref:O,style:{outline:"none",...l.style},onMouseDown:pt(l.onMouseDown,()=>{B.current=!0}),onFocus:pt(l.onFocus,W=>{const P=!B.current;if(W.target===W.currentTarget&&P&&!L){const F=new CustomEvent(bf,yE);if(W.currentTarget.dispatchEvent(F),!F.defaultPrevented){const oe=Q().filter(D=>D.focusable),ie=oe.find(D=>D.active),qe=oe.find(D=>D.id===M),le=[ie,qe,...oe].filter(Boolean).map(D=>D.ref.current);Fy(le,x)}}B.current=!1}),onBlur:pt(l.onBlur,()=>H(!1))})})}),Zy="RovingFocusGroupItem",Jy=y.forwardRef((l,r)=>{const{__scopeRovingFocusGroup:i,focusable:s=!0,active:c=!1,tabStopId:f,children:d,...p}=l,v=Gy(),g=f||v,x=NE(Zy,i),S=x.currentTabStopId===g,N=Vy(i),{onFocusableItemAdd:O,onFocusableItemRemove:Y,currentTabStopId:M}=x;return y.useEffect(()=>{if(s)return O(),()=>Y()},[s,O,Y]),m(Hf.ItemSlot,{scope:i,id:g,focusable:s,active:c,children:m(Jt.span,{tabIndex:S?0:-1,"data-orientation":x.orientation,...p,ref:r,onMouseDown:pt(l.onMouseDown,R=>{s?x.onItemFocus(g):R.preventDefault()}),onFocus:pt(l.onFocus,()=>x.onItemFocus(g)),onKeyDown:pt(l.onKeyDown,R=>{if(R.key==="Tab"&&R.shiftKey){x.onItemShiftTab();return}if(R.target!==R.currentTarget)return;const L=CE(R,x.orientation,x.dir);if(L!==void 0){if(R.metaKey||R.ctrlKey||R.altKey||R.shiftKey)return;R.preventDefault();let j=N().filter(Q=>Q.focusable).map(Q=>Q.ref.current);if(L==="last")j.reverse();else if(L==="prev"||L==="next"){L==="prev"&&j.reverse();const Q=j.indexOf(R.currentTarget);j=x.loop?AE(j,Q+1):j.slice(Q+1)}setTimeout(()=>Fy(j))}}),children:typeof d=="function"?d({isCurrentTabStop:S,hasTabStop:M!=null}):d})})});Jy.displayName=Zy;var EE={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function TE(l,r){return r!=="rtl"?l:l==="ArrowLeft"?"ArrowRight":l==="ArrowRight"?"ArrowLeft":l}function CE(l,r,i){const s=TE(l.key,i);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return EE[s]}function Fy(l,r=!1){const i=document.activeElement;for(const s of l)if(s===i||(s.focus({preventScroll:r}),document.activeElement!==i))return}function AE(l,r){return l.map((i,s)=>l[(r+s)%l.length])}var RE=Ky,OE=Jy,Hu="Tabs",[ME]=Lu(Hu,[Xy]),$y=Xy(),[zE,hd]=ME(Hu),Wy=y.forwardRef((l,r)=>{const{__scopeTabs:i,value:s,onValueChange:c,defaultValue:f,orientation:d="horizontal",dir:p,activationMode:v="automatic",...g}=l,x=sd(p),[S,N]=Yy({prop:s,onChange:c,defaultProp:f??"",caller:Hu});return m(zE,{scope:i,baseId:Gy(),value:S,onValueChange:N,orientation:d,dir:x,activationMode:v,children:m(Jt.div,{dir:x,"data-orientation":d,...g,ref:r})})});Wy.displayName=Hu;var Py="TabsList",Iy=y.forwardRef((l,r)=>{const{__scopeTabs:i,loop:s=!0,...c}=l,f=hd(Py,i),d=$y(i);return m(RE,{asChild:!0,...d,orientation:f.orientation,dir:f.dir,loop:s,children:m(Jt.div,{role:"tablist","aria-orientation":f.orientation,...c,ref:r})})});Iy.displayName=Py;var e0="TabsTrigger",t0=y.forwardRef((l,r)=>{const{__scopeTabs:i,value:s,disabled:c=!1,...f}=l,d=hd(e0,i),p=$y(i),v=a0(d.baseId,s),g=r0(d.baseId,s),x=s===d.value;return m(OE,{asChild:!0,...p,focusable:!c,active:x,children:m(Jt.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":g,"data-state":x?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:v,...f,ref:r,onMouseDown:pt(l.onMouseDown,S=>{!c&&S.button===0&&S.ctrlKey===!1?d.onValueChange(s):S.preventDefault()}),onKeyDown:pt(l.onKeyDown,S=>{[" ","Enter"].includes(S.key)&&d.onValueChange(s)}),onFocus:pt(l.onFocus,()=>{const S=d.activationMode!=="manual";!x&&!c&&S&&d.onValueChange(s)})})})});t0.displayName=e0;var n0="TabsContent",l0=y.forwardRef((l,r)=>{const{__scopeTabs:i,value:s,forceMount:c,children:f,...d}=l,p=hd(n0,i),v=a0(p.baseId,s),g=r0(p.baseId,s),x=s===p.value,S=y.useRef(x);return y.useEffect(()=>{const N=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(N)},[]),m(Rr,{present:c||x,children:({present:N})=>m(Jt.div,{"data-state":x?"active":"inactive","data-orientation":p.orientation,role:"tabpanel","aria-labelledby":v,hidden:!N,id:g,tabIndex:0,...d,ref:r,style:{...l.style,animationDuration:S.current?"0s":void 0},children:N&&f})})});l0.displayName=n0;function a0(l,r){return`${l}-trigger-${r}`}function r0(l,r){return`${l}-content-${r}`}var DE=Wy,i0=Iy,s0=t0,u0=l0;const _E=DE,o0=y.forwardRef(({className:l,...r},i)=>m(i0,{ref:i,className:mt("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",l),...r}));o0.displayName=i0.displayName;const Bf=y.forwardRef(({className:l,...r},i)=>m(s0,{ref:i,className:mt("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",l),...r}));Bf.displayName=s0.displayName;const kf=y.forwardRef(({className:l,...r},i)=>m(u0,{ref:i,className:mt("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",l),...r}));kf.displayName=u0.displayName;function UE(){const[l,r]=y.useState([]),[i,s]=y.useState([]),[c,f]=y.useState(!0),{call:d}=T2();y.useEffect(()=>{const g=async()=>{try{f(!0);const[S,N]=await Promise.all([d("events/list",{}),d("cron/list",{})]);r(S||[]),s(N||[])}catch(S){console.error("Failed to fetch events/crons:",S)}finally{f(!1)}};g();const x=setInterval(g,5e3);return()=>clearInterval(x)},[d]);const p=g=>g?new Date(g).toLocaleString():"Never",v=(g,x)=>g===0?0:Math.round((g-x)/g*100);return c?m("div",{className:"flex items-center justify-center h-96",children:E("div",{className:"text-center",children:[m("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),m("p",{className:"text-gray-600",children:"Loading events and cron jobs..."})]})}):E("div",{className:"space-y-6",children:[E("div",{children:[m("h1",{className:"text-3xl font-bold text-gray-900",children:"Events & Cron Jobs"}),m("p",{className:"text-gray-600 mt-2",children:"Monitor your event-driven architecture and scheduled tasks"})]}),E(_E,{defaultValue:"events",className:"w-full",children:[E(o0,{className:"grid w-full grid-cols-2",children:[E(Bf,{value:"events",children:[m(Cr,{className:"w-4 h-4 mr-2"}),"Events (",l.length,")"]}),E(Bf,{value:"crons",children:[m(Du,{className:"w-4 h-4 mr-2"}),"Cron Jobs (",i.length,")"]})]}),m(kf,{value:"events",className:"space-y-4",children:l.length===0?m(dt,{children:m(ht,{className:"pt-6",children:m("p",{className:"text-gray-500 text-center",children:"No events registered yet"})})}):l.map(g=>E(dt,{className:"hover:shadow-md transition-shadow",children:[m(Et,{className:"pb-3",children:E("div",{className:"flex items-start justify-between",children:[E("div",{className:"flex items-start gap-3 flex-1",children:[m("div",{className:"text-2xl mt-1",children:g.icon||"📡"}),E("div",{className:"flex-1",children:[m(Lt,{className:"text-lg",children:g.name}),g.description&&m("p",{className:"text-sm text-gray-600 mt-1",children:g.description})]})]}),E("div",{className:"text-right",children:[m("div",{className:"text-2xl font-bold text-primary",children:g.totalCount}),m("p",{className:"text-xs text-gray-500",children:"total events"})]})]})}),E(ht,{className:"space-y-3",children:[E("div",{className:"grid grid-cols-2 gap-4",children:[E("div",{children:[m("p",{className:"text-xs text-gray-500 mb-1",children:"Handlers"}),m("p",{className:"text-lg font-semibold",children:g.handlers})]}),E("div",{children:[m("p",{className:"text-xs text-gray-500 mb-1",children:"Success Rate"}),E("div",{className:"flex items-center gap-2",children:[m("div",{className:"flex-1 bg-gray-200 rounded-full h-2",children:m("div",{className:"bg-green-500 h-2 rounded-full",style:{width:`${v(g.totalCount,g.failedCount)}%`}})}),E("span",{className:"text-lg font-semibold",children:[v(g.totalCount,g.failedCount),"%"]})]})]})]}),E("div",{className:"grid grid-cols-2 gap-4 pt-2 border-t",children:[E("div",{children:[m("p",{className:"text-xs text-gray-500 mb-1",children:"Last Triggered"}),m("p",{className:"text-sm",children:p(g.lastTriggered)})]}),E("div",{children:[m("p",{className:"text-xs text-gray-500 mb-1",children:"Failed Events"}),m("div",{className:"flex items-center gap-2",children:g.failedCount>0?E(Zt,{children:[m(Ui,{className:"w-4 h-4 text-red-500"}),m("span",{className:"text-sm font-semibold text-red-600",children:g.failedCount})]}):E(Zt,{children:[m(Qp,{className:"w-4 h-4 text-green-500"}),m("span",{className:"text-sm text-green-600",children:"No failures"})]})})]})]}),g.tags&&g.tags.length>0&&E("div",{className:"pt-2 border-t",children:[m("p",{className:"text-xs text-gray-500 mb-2",children:"Tags"}),m("div",{className:"flex flex-wrap gap-2",children:g.tags.map(x=>E(Me,{variant:"secondary",className:"text-xs",children:[m(Vp,{className:"w-3 h-3 mr-1"}),x]},x))})]})]})]},g.name))}),m(kf,{value:"crons",className:"space-y-4",children:i.length===0?m(dt,{children:m(ht,{className:"pt-6",children:m("p",{className:"text-gray-500 text-center",children:"No cron jobs scheduled"})})}):i.map(g=>E(dt,{className:"hover:shadow-md transition-shadow",children:[m(Et,{className:"pb-3",children:E("div",{className:"flex items-start justify-between",children:[E("div",{className:"flex items-start gap-3 flex-1",children:[m("div",{className:"text-2xl mt-1",children:g.icon||"⏰"}),E("div",{className:"flex-1",children:[m(Lt,{className:"text-lg",children:g.name}),g.description&&m("p",{className:"text-sm text-gray-600 mt-1",children:g.description}),E("div",{className:"mt-2 flex items-center gap-2",children:[m(i2,{className:"w-4 h-4 text-gray-500"}),m("code",{className:"text-xs bg-gray-100 px-2 py-1 rounded font-mono",children:g.schedule})]})]})]}),E("div",{className:"text-right",children:[m("div",{className:"text-2xl font-bold text-primary",children:g.totalRuns}),m("p",{className:"text-xs text-gray-500",children:"total runs"})]})]})}),E(ht,{className:"space-y-3",children:[E("div",{className:"grid grid-cols-2 gap-4",children:[E("div",{children:[m("p",{className:"text-xs text-gray-500 mb-1",children:"Success Rate"}),E("div",{className:"flex items-center gap-2",children:[m("div",{className:"flex-1 bg-gray-200 rounded-full h-2",children:m("div",{className:"bg-green-500 h-2 rounded-full",style:{width:`${v(g.totalRuns,g.failedRuns)}%`}})}),E("span",{className:"text-lg font-semibold",children:[v(g.totalRuns,g.failedRuns),"%"]})]})]}),E("div",{children:[m("p",{className:"text-xs text-gray-500 mb-1",children:"Failed Runs"}),m("div",{className:"flex items-center gap-2",children:g.failedRuns>0?E(Zt,{children:[m(Ui,{className:"w-4 h-4 text-red-500"}),m("span",{className:"text-sm font-semibold text-red-600",children:g.failedRuns})]}):E(Zt,{children:[m(Qp,{className:"w-4 h-4 text-green-500"}),m("span",{className:"text-sm text-green-600",children:"No failures"})]})})]})]}),E("div",{className:"grid grid-cols-2 gap-4 pt-2 border-t",children:[E("div",{children:[m("p",{className:"text-xs text-gray-500 mb-1",children:"Last Run"}),m("p",{className:"text-sm",children:p(g.lastRun)})]}),E("div",{children:[m("p",{className:"text-xs text-gray-500 mb-1",children:"Next Run"}),m("p",{className:"text-sm",children:p(g.nextRun)})]})]}),g.tags&&g.tags.length>0&&E("div",{className:"pt-2 border-t",children:[m("p",{className:"text-xs text-gray-500 mb-2",children:"Tags"}),m("div",{className:"flex flex-wrap gap-2",children:g.tags.map(x=>E(Me,{variant:"secondary",className:"text-xs",children:[m(Vp,{className:"w-3 h-3 mr-1"}),x]},x))})]})]})]},g.name))})]})]})}function LE(){var H,j,Q;const{data:l}=ld(),{data:r=[]}=E2(),i=Vi(),[s,c]=y.useState(null),[f,d]=y.useState(new Set),p=(H=l==null?void 0:l.metadata)==null?void 0:H.integrations,v=B=>{const k=new Set(f);k.has(B)?k.delete(B):k.add(B),d(k)},g=(B,k,K)=>{c({service:B,method:k,path:K})},x=()=>{s&&i(`/api-explorer?method=${s.method}&path=${s.path}`)},S=r.reduce((B,k)=>B+k.routes.length,0),N=s?(j=r.find(B=>B.name===s.service))==null?void 0:j.routes.find(B=>B.method===s.method&&B.path===s.path):null,O=B=>{const k=B==null?void 0:B.match(/:(\w+)/g);return k?k.map(K=>K.slice(1)):[]},Y=B=>{switch(B){case"GET":return"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300";case"POST":return"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300";case"PUT":return"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300";case"DELETE":return"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300";case"PATCH":return"bg-purple-100 dark:bg-purple-900 text-purple-700 dark:text-purple-300";default:return"bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300"}},M=B=>B.includes("database")||B.includes("postgres")||B.includes("mysql")?m(nd,{className:"w-4 h-4"}):m(Yp,{className:"w-4 h-4"}),R=B=>{try{const k=new URL(B);return k.password&&(k.password="***"),k.toString()}catch{return B}},L=O(s==null?void 0:s.path);return E("div",{className:"h-full flex bg-background",children:[E("div",{className:"w-80 border-r bg-muted flex flex-col",children:[m("div",{className:"px-4 py-3 border-b bg-background",children:E("div",{className:"flex items-center justify-between",children:[m("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Services"}),m(Me,{variant:"secondary",className:"text-xs",children:r.length})]})}),m(qi,{className:"flex-1",children:m("div",{className:"p-3",children:r.length===0?E("div",{className:"text-center text-sm text-muted-foreground py-12",children:[m(Yp,{className:"w-8 h-8 mx-auto mb-3 opacity-30"}),m("p",{className:"text-sm",children:"No services discovered yet"})]}):m("div",{className:"space-y-2",children:r.map(B=>E("div",{children:[E("button",{className:"w-full flex items-center gap-2 px-2 py-1.5 text-sm text-left hover:bg-gray-100 dark:hover:bg-primary dark:hover:text-primary-foreground rounded",onClick:()=>v(B.name),children:[f.has(B.name)?m(Wv,{className:"w-4 h-4 flex-shrink-0"}):m(Pv,{className:"w-4 h-4 flex-shrink-0"}),m("span",{className:"font-medium",children:B.name}),m("span",{className:"text-xs text-gray-500 ml-auto",children:B.routes.length})]}),f.has(B.name)&&m("div",{className:"ml-6 mt-1 space-y-0.5",children:B.routes.map((k,K)=>E("button",{className:`w-full flex items-center gap-2 px-2 py-1.5 text-sm text-left rounded ${(s==null?void 0:s.service)===B.name&&(s==null?void 0:s.method)===k.method&&(s==null?void 0:s.path)===k.path?"bg-blue-50 text-blue-700":"hover:bg-gray-50 dark:hover:bg-primary dark:hover:text-primary-foreground"}`,onClick:()=>g(B.name,k.method,k.path),children:[m(Me,{className:`text-[10px] font-mono w-12 flex items-center justify-center px-1.5 py-0 ${Y(k.method)}`,children:k.method}),m("span",{className:"font-mono text-xs truncate",children:k.path})]},`${k.method}-${k.path}-${K}`))})]},B.name))})})})]}),m(qi,{className:"flex-1",children:E("div",{className:"p-6",children:[m("h1",{className:"text-lg font-semibold mb-6",children:"Service Catalog"}),E(dt,{className:"mb-6",children:[m(Et,{children:E(Lt,{className:"flex items-center gap-2 text-base font-semibold",children:[m(l2,{className:"w-5 h-5"}),(l==null?void 0:l.name)||"Unknown Service"]})}),E(ht,{children:[E("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[E("div",{children:[m("p",{className:"text-xs text-muted-foreground mb-1",children:"Version"}),m("p",{className:"text-sm font-medium",children:(l==null?void 0:l.version)||"N/A"})]}),E("div",{children:[m("p",{className:"text-xs text-muted-foreground mb-1",children:"Framework"}),m("p",{className:"text-sm font-medium",children:((Q=l==null?void 0:l.metadata)==null?void 0:Q.framework)||"N/A"})]}),E("div",{children:[m("p",{className:"text-xs text-muted-foreground mb-1",children:"Status"}),m(Me,{variant:l!=null&&l.running?"default":"secondary",className:l!=null&&l.running?"bg-green-600":"",children:l!=null&&l.running?"Running":"Stopped"})]}),E("div",{children:[m("p",{className:"text-xs text-muted-foreground mb-1",children:"Endpoints"}),m("p",{className:"text-sm font-medium",children:S})]})]}),(l==null?void 0:l.description)&&E("div",{className:"mt-4 pt-4 border-t",children:[m("p",{className:"text-xs text-muted-foreground mb-1",children:"Description"}),m("p",{className:"text-sm",children:l.description})]})]})]}),p&&Object.keys(p).length>0&&E(dt,{className:"mb-6",children:[m(Et,{children:m(Lt,{className:"text-base font-semibold",children:"Integrations"})}),m(ht,{children:m("div",{className:"space-y-3",children:Object.entries(p).map(([B,k])=>E("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:[m("div",{className:"mt-0.5",children:M(B)}),E("div",{className:"flex-1 min-w-0",children:[m("p",{className:"text-sm font-medium capitalize",children:B}),m("p",{className:"text-xs text-muted-foreground font-mono truncate",title:k,children:R(k)})]})]},B))})})]}),s&&E(dt,{children:[m(Et,{className:"border-b",children:E("div",{className:"flex items-center justify-between",children:[E("div",{className:"flex items-center gap-3",children:[m(Me,{className:`text-xs font-mono ${Y(s.method)}`,children:s.method}),E("div",{children:[m("div",{className:"font-mono text-lg font-semibold",children:s.path}),E("div",{className:"text-sm text-muted-foreground mt-0.5",children:[s.service," service"]})]})]}),E(wt,{onClick:x,className:"bg-blue-600 hover:bg-blue-700 text-white text-xs",size:"sm",children:[m(ey,{className:"w-4 h-4 mr-2"}),"Test in API Explorer"]})]})}),m(ht,{className:"pt-6",children:E("div",{className:"space-y-6",children:[L.length>0?E("div",{children:[m("h3",{className:"text-sm font-semibold mb-3",children:"Path Parameters"}),m("div",{className:"space-y-2",children:L.map(B=>E("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:[m("code",{className:"text-sm font-mono font-semibold text-primary",children:B}),m("span",{className:"text-xs text-muted-foreground mt-0.5",children:"string"})]},B))})]}):null,s.method==="GET"&&E("div",{children:[m("h3",{className:"text-sm font-semibold mb-3",children:"Query Parameters"}),m("div",{className:"p-4 bg-muted rounded-lg border",children:m("p",{className:"text-sm text-muted-foreground",children:"Optional query parameters can be added in API Explorer"})})]}),["POST","PUT","PATCH"].includes(s.method)&&E("div",{children:[m("h3",{className:"text-sm font-semibold mb-3",children:"Request Body Schema"}),N!=null&&N.requestBody?E("div",{className:"space-y-3",children:[m("div",{className:"space-y-2",children:N.requestBody.fields.map(B=>m("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:E("div",{className:"flex-1",children:[E("div",{className:"flex items-center gap-2",children:[m("code",{className:"text-sm font-mono font-semibold",children:B.name}),m(Me,{variant:"outline",className:"text-xs",children:B.type}),B.required&&m(Me,{variant:"destructive",className:"text-xs",children:"required"})]}),B.description&&m("p",{className:"text-xs text-muted-foreground mt-1",children:B.description})]})},B.name))}),m("p",{className:"text-xs text-muted-foreground",children:"Auto-generated from Zod schema"})]}):m("div",{className:"p-4 bg-muted rounded-lg border",children:m("p",{className:"text-sm text-muted-foreground",children:"No schema defined. Configure request body in API Explorer"})})]}),(N==null?void 0:N.responseBody)&&E("div",{children:[m("h3",{className:"text-sm font-semibold mb-3",children:"Response Body Schema"}),E("div",{className:"space-y-3",children:[m("div",{className:"space-y-2",children:N.responseBody.fields.map(B=>m("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:E("div",{className:"flex-1",children:[E("div",{className:"flex items-center gap-2",children:[m("code",{className:"text-sm font-mono font-semibold",children:B.name}),m(Me,{variant:"outline",className:"text-xs",children:B.type}),B.required&&m(Me,{variant:"secondary",className:"text-xs",children:"always present"})]}),B.description&&m("p",{className:"text-xs text-muted-foreground mt-1",children:B.description})]})},B.name))}),m("p",{className:"text-xs text-muted-foreground",children:"Auto-generated from Zod schema"})]})]}),(N==null?void 0:N.handler)&&N.handler!=="anonymous"&&E("div",{children:[m("h3",{className:"text-sm font-semibold mb-3",children:"Handler"}),m("code",{className:"text-sm bg-muted px-3 py-1.5 rounded border inline-block",children:N.handler})]})]})})]})]})})]})}const jE=ad("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),c0=y.forwardRef(({className:l,variant:r,...i},s)=>m("div",{ref:s,role:"alert",className:mt(jE({variant:r}),l),...i}));c0.displayName="Alert";const qE=y.forwardRef(({className:l,...r},i)=>m("h5",{ref:i,className:mt("mb-1 font-medium leading-none tracking-tight",l),...r}));qE.displayName="AlertTitle";const f0=y.forwardRef(({className:l,...r},i)=>m("div",{ref:i,className:mt("text-sm [&_p]:leading-relaxed",l),...r}));f0.displayName="AlertDescription";function HE(){var s,c,f;const{data:l}=ld(),r=(s=l==null?void 0:l.metadata)==null?void 0:s.drizzle;if(!(r!=null&&r.detected))return m("div",{className:"h-full flex items-center justify-center bg-muted p-6",children:E(dt,{className:"max-w-lg",children:[m(Et,{children:E(Lt,{className:"flex items-center gap-2 text-base",children:[m(Ui,{className:"w-5 h-5 text-yellow-600 dark:text-yellow-500"}),"No Database Detected"]})}),E(ht,{className:"space-y-4",children:[m("p",{className:"text-sm text-muted-foreground",children:"Vision couldn't detect a Drizzle configuration file."}),E("div",{className:"space-y-3",children:[m("p",{className:"text-sm font-medium",children:"To enable database features:"}),E("ol",{className:"list-decimal list-inside space-y-2 text-sm text-muted-foreground",children:[E("li",{children:["Create ",m("code",{className:"bg-muted px-1.5 py-0.5 rounded text-xs font-mono border",children:"drizzle.config.ts"})]}),m("li",{children:"Enable auto-start in Vision config:"})]}),m("pre",{className:"bg-gray-900 dark:bg-gray-950 text-gray-300 dark:text-gray-400 p-4 rounded-md text-xs overflow-x-auto font-mono border",children:`app.use('*', visionAdapter({
|
|
235
|
-
drizzle: {
|
|
236
|
-
autoStart: true, // Auto-start Drizzle Studio
|
|
237
|
-
port: 4983 // Optional, default: 4983
|
|
238
|
-
}
|
|
239
|
-
}))`})]})]})]})});const i=r.studioUrl;return E("div",{className:"h-full flex flex-col bg-background",children:[m("div",{className:"border-b px-6 py-4 bg-muted",children:E("div",{className:"flex items-center justify-between",children:[E("div",{className:"flex items-center gap-3",children:[m(nd,{className:"w-5 h-5 text-blue-600 dark:text-blue-500"}),E("div",{className:"flex items-center gap-3",children:[m("h1",{className:"text-lg font-semibold",children:"Drizzle Studio"}),E("div",{className:"flex items-center gap-2 mt-1",children:[m(Me,{variant:r.autoStarted?"default":"secondary",className:r.autoStarted?"bg-green-600 hover:bg-green-700 dark:bg-green-600 dark:hover:bg-green-700 text-xs":"text-xs",children:r.autoStarted?"Running":"Stopped"}),m("span",{className:"text-xs text-muted-foreground",children:r.autoStarted?"Auto-started":"Manual start required"})]})]})]}),m("div",{className:"flex items-center gap-2",children:i&&E(wt,{variant:"outline",size:"sm",onClick:()=>window.open(i,"_blank"),children:[m(ey,{className:"w-4 h-4 mr-2"}),m("span",{className:"text-sm font-medium",children:"Open in New Tab"})]})})]})}),!r.autoStarted&&m("div",{className:"p-6",children:E(c0,{className:"border-yellow-200 dark:border-yellow-800 bg-yellow-50 dark:bg-yellow-950",children:[m(Ui,{className:"w-4 h-4 text-yellow-600 dark:text-yellow-500"}),m(f0,{children:E("div",{className:"space-y-3",children:[m("p",{className:"text-sm font-medium",children:"Drizzle Studio is not running"}),m("p",{className:"text-sm text-muted-foreground",children:"Start Drizzle Studio manually or enable auto-start:"}),m("pre",{className:"bg-gray-900 dark:bg-gray-950 text-gray-300 dark:text-gray-400 p-4 rounded-md text-xs overflow-x-auto font-mono border",children:`# Start manually:
|
|
240
|
-
npx drizzle-kit studio --port ${((f=(c=r.studioUrl)==null?void 0:c.match(/:(\d+)/))==null?void 0:f[1])||4983}
|
|
241
|
-
|
|
242
|
-
# Or enable auto-start:
|
|
243
|
-
drizzle: { autoStart: true }`})]})})]})}),i&&r.autoStarted&&m("div",{className:"flex-1 relative",children:m("iframe",{src:i,className:"absolute inset-0 w-full h-full border-0",title:"Drizzle Studio",allow:"cross-origin-isolated"})})]})}function BE({toasts:l,removeToast:r}){return m("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 pointer-events-none",children:l.map(i=>m(kE,{toast:i,onClose:()=>r(i.id)},i.id))})}function kE({toast:l,onClose:r}){const[i,s]=y.useState(!1);y.useEffect(()=>{const f=l.duration??3e3,d=setTimeout(()=>{s(!0),setTimeout(r,300)},f);return()=>clearTimeout(d)},[l.duration,r]);const c={success:"bg-green-600",error:"bg-red-600",info:"bg-blue-600"}[l.type??"info"];return E("div",{className:`pointer-events-auto flex items-center gap-3 ${c} text-white px-4 py-3 rounded-lg shadow-lg min-w-[300px] max-w-[400px] transition-all duration-300 ${i?"opacity-0 translate-x-full":"opacity-100 translate-x-0"}`,children:[m("span",{className:"flex-1 text-sm",children:l.message}),m("button",{onClick:()=>{s(!0),setTimeout(r,300)},className:"text-white/80 hover:text-white transition-colors","aria-label":"Close",children:m(g2,{className:"w-4 h-4"})})]})}const QE=new px;function GE({children:l}){const{connected:r,error:i}=v2();return i?m("div",{className:"flex items-center justify-center h-screen",children:E("div",{className:"text-center",children:[m("h1",{className:"text-2xl font-bold text-red-600 mb-2",children:"Connection Error"}),m("p",{className:"text-gray-600",children:i.message})]})}):r?m(Zt,{children:l}):m("div",{className:"flex items-center justify-center h-screen",children:E("div",{className:"text-center",children:[m("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),m("p",{className:"text-gray-600",children:"Connecting to Vision Dashboard..."})]})})}function YE(){const{traceId:l}=Wf(),{data:r}=y2(l||"");return r?m(Pw,{trace:r}):m("div",{className:"text-gray-500",children:"Loading trace..."})}function VE(){return m(Yw,{children:m(XE,{})})}function XE(){const{toasts:l,removeToast:r}=dd();return E(Zt,{children:[m(VS,{children:m(GE,{children:m(SS,{children:E(Sn,{path:"/",element:m(mN,{}),children:[m(Sn,{index:!0,element:m(bS,{to:"/api-explorer",replace:!0})}),m(Sn,{path:"api-explorer",element:m(Vw,{})}),m(Sn,{path:"traces",element:m($w,{}),children:m(Sn,{path:":traceId",element:m(YE,{})})}),m(Sn,{path:"logs",element:m(fE,{})}),m(Sn,{path:"events",element:m(UE,{})}),m(Sn,{path:"services",element:m(LE,{})}),m(Sn,{path:"database",element:m(HE,{})})]})})})}),m(BE,{toasts:l,removeToast:r})]})}Z1.createRoot(document.getElementById("app")).render(m(Nt.StrictMode,{children:m(vx,{client:QE,children:m(VE,{})})}));
|