@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,221 +0,0 @@
|
|
|
1
|
-
var Wb=Object.defineProperty;var ap=l=>{throw TypeError(l)};var Pb=(l,r,i)=>r in l?Wb(l,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):l[r]=i;var Bn=(l,r,i)=>Pb(l,typeof r!="symbol"?r+"":r,i),Pc=(l,r,i)=>r.has(l)||ap("Cannot "+i);var T=(l,r,i)=>(Pc(l,r,"read from private field"),i?i.call(l):r.get(l)),ie=(l,r,i)=>r.has(l)?ap("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(l):r.set(l,i),ee=(l,r,i,u)=>(Pc(l,r,"write to private field"),u?u.call(l,i):r.set(l,i),i),ye=(l,r,i)=>(Pc(l,r,"access private method"),i);var ss=(l,r,i,u)=>({set _(c){ee(l,r,c,i)},get _(){return T(l,r,u)}});(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))u(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&u(h)}).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 u(c){if(c.ep)return;c.ep=!0;const f=i(c);fetch(c.href,f)}})();function uy(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Ic={exports:{}},xi={};/**
|
|
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 rp;function Ib(){if(rp)return xi;rp=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(u,c,f){var h=null;if(f!==void 0&&(h=""+f),c.key!==void 0&&(h=""+c.key),"key"in c){f={};for(var m in c)m!=="key"&&(f[m]=c[m])}else f=c;return c=f.ref,{$$typeof:l,type:u,key:h,ref:c!==void 0?c:null,props:f}}return xi.Fragment=r,xi.jsx=i,xi.jsxs=i,xi}var ip;function e1(){return ip||(ip=1,Ic.exports=Ib()),Ic.exports}var _f=e1();const _l=_f.Fragment,y=_f.jsx,O=_f.jsxs;var ef={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 up;function t1(){if(up)return de;up=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),w=Symbol.iterator;function R(E){return E===null||typeof E!="object"?null:(E=w&&E[w]||E["@@iterator"],typeof E=="function"?E:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,L={};function H(E,B,P){this.props=E,this.context=B,this.refs=L,this.updater=P||G}H.prototype.isReactComponent={},H.prototype.setState=function(E,B){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,B,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Q(){}Q.prototype=H.prototype;function k(E,B,P){this.props=E,this.context=B,this.refs=L,this.updater=P||G}var V=k.prototype=new Q;V.constructor=k,M(V,H.prototype),V.isPureReactComponent=!0;var Y=Array.isArray;function j(){}var J={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function W(E,B,P){var te=P.ref;return{$$typeof:l,type:E,key:B,ref:te!==void 0?te:null,props:P}}function $(E,B){return W(E.type,B,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===l}function se(E){var B={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(P){return B[P]})}var He=/\/+/g;function Ve(E,B){return typeof E=="object"&&E!==null&&E.key!=null?se(""+E.key):B.toString(36)}function ae(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(j,j):(E.status="pending",E.then(function(B){E.status==="pending"&&(E.status="fulfilled",E.value=B)},function(B){E.status==="pending"&&(E.status="rejected",E.reason=B)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function z(E,B,P,te,fe){var ve=typeof E;(ve==="undefined"||ve==="boolean")&&(E=null);var Re=!1;if(E===null)Re=!0;else switch(ve){case"bigint":case"string":case"number":Re=!0;break;case"object":switch(E.$$typeof){case l:case r:Re=!0;break;case x:return Re=E._init,z(Re(E._payload),B,P,te,fe)}}if(Re)return fe=fe(E),Re=te===""?"."+Ve(E,0):te,Y(fe)?(P="",Re!=null&&(P=Re.replace(He,"$&/")+"/"),z(fe,B,P,"",function(Ar){return Ar})):fe!=null&&(ce(fe)&&(fe=$(fe,P+(fe.key==null||E&&E.key===fe.key?"":(""+fe.key).replace(He,"$&/")+"/")+Re)),B.push(fe)),1;Re=0;var ht=te===""?".":te+":";if(Y(E))for(var $e=0;$e<E.length;$e++)te=E[$e],ve=ht+Ve(te,$e),Re+=z(te,B,P,ve,fe);else if($e=R(E),typeof $e=="function")for(E=$e.call(E),$e=0;!(te=E.next()).done;)te=te.value,ve=ht+Ve(te,$e++),Re+=z(te,B,P,ve,fe);else if(ve==="object"){if(typeof E.then=="function")return z(ae(E),B,P,te,fe);throw B=String(E),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return Re}function F(E,B,P){if(E==null)return E;var te=[],fe=0;return z(E,te,"","",function(ve){return B.call(P,ve,fe++)}),te}function re(E){if(E._status===-1){var B=E._result;B=B(),B.then(function(P){(E._status===0||E._status===-1)&&(E._status=1,E._result=P)},function(P){(E._status===0||E._status===-1)&&(E._status=2,E._result=P)}),E._status===-1&&(E._status=0,E._result=B)}if(E._status===1)return E._result.default;throw E._result}var pe=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=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(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},Te={map:F,forEach:function(E,B,P){F(E,function(){B.apply(this,arguments)},P)},count:function(E){var B=0;return F(E,function(){B++}),B},toArray:function(E){return F(E,function(B){return B})||[]},only:function(E){if(!ce(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return de.Activity=S,de.Children=Te,de.Component=H,de.Fragment=i,de.Profiler=c,de.PureComponent=k,de.StrictMode=u,de.Suspense=p,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,de.__COMPILER_RUNTIME={__proto__:null,c:function(E){return J.H.useMemoCache(E)}},de.cache=function(E){return function(){return E.apply(null,arguments)}},de.cacheSignal=function(){return null},de.cloneElement=function(E,B,P){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var te=M({},E.props),fe=E.key;if(B!=null)for(ve in B.key!==void 0&&(fe=""+B.key),B)!I.call(B,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&B.ref===void 0||(te[ve]=B[ve]);var ve=arguments.length-2;if(ve===1)te.children=P;else if(1<ve){for(var Re=Array(ve),ht=0;ht<ve;ht++)Re[ht]=arguments[ht+2];te.children=Re}return W(E.type,fe,te)},de.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},de.createElement=function(E,B,P){var te,fe={},ve=null;if(B!=null)for(te in B.key!==void 0&&(ve=""+B.key),B)I.call(B,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(fe[te]=B[te]);var Re=arguments.length-2;if(Re===1)fe.children=P;else if(1<Re){for(var ht=Array(Re),$e=0;$e<Re;$e++)ht[$e]=arguments[$e+2];fe.children=ht}if(E&&E.defaultProps)for(te in Re=E.defaultProps,Re)fe[te]===void 0&&(fe[te]=Re[te]);return W(E,ve,fe)},de.createRef=function(){return{current:null}},de.forwardRef=function(E){return{$$typeof:m,render:E}},de.isValidElement=ce,de.lazy=function(E){return{$$typeof:x,_payload:{_status:-1,_result:E},_init:re}},de.memo=function(E,B){return{$$typeof:g,type:E,compare:B===void 0?null:B}},de.startTransition=function(E){var B=J.T,P={};J.T=P;try{var te=E(),fe=J.S;fe!==null&&fe(P,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(j,pe)}catch(ve){pe(ve)}finally{B!==null&&P.types!==null&&(B.types=P.types),J.T=B}},de.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},de.use=function(E){return J.H.use(E)},de.useActionState=function(E,B,P){return J.H.useActionState(E,B,P)},de.useCallback=function(E,B){return J.H.useCallback(E,B)},de.useContext=function(E){return J.H.useContext(E)},de.useDebugValue=function(){},de.useDeferredValue=function(E,B){return J.H.useDeferredValue(E,B)},de.useEffect=function(E,B){return J.H.useEffect(E,B)},de.useEffectEvent=function(E){return J.H.useEffectEvent(E)},de.useId=function(){return J.H.useId()},de.useImperativeHandle=function(E,B,P){return J.H.useImperativeHandle(E,B,P)},de.useInsertionEffect=function(E,B){return J.H.useInsertionEffect(E,B)},de.useLayoutEffect=function(E,B){return J.H.useLayoutEffect(E,B)},de.useMemo=function(E,B){return J.H.useMemo(E,B)},de.useOptimistic=function(E,B){return J.H.useOptimistic(E,B)},de.useReducer=function(E,B,P){return J.H.useReducer(E,B,P)},de.useRef=function(E){return J.H.useRef(E)},de.useState=function(E){return J.H.useState(E)},de.useSyncExternalStore=function(E,B,P){return J.H.useSyncExternalStore(E,B,P)},de.useTransition=function(){return J.H.useTransition()},de.version="19.2.0",de}var sp;function Uf(){return sp||(sp=1,ef.exports=t1()),ef.exports}var b=Uf();const ha=uy(b);var tf={exports:{}},Si={},nf={exports:{}},lf={};/**
|
|
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 op;function n1(){return op||(op=1,(function(l){function r(z,F){var re=z.length;z.push(F);e:for(;0<re;){var pe=re-1>>>1,Te=z[pe];if(0<c(Te,F))z[pe]=F,z[re]=Te,re=pe;else break e}}function i(z){return z.length===0?null:z[0]}function u(z){if(z.length===0)return null;var F=z[0],re=z.pop();if(re!==F){z[0]=re;e:for(var pe=0,Te=z.length,E=Te>>>1;pe<E;){var B=2*(pe+1)-1,P=z[B],te=B+1,fe=z[te];if(0>c(P,re))te<Te&&0>c(fe,P)?(z[pe]=fe,z[te]=re,pe=te):(z[pe]=P,z[B]=re,pe=B);else if(te<Te&&0>c(fe,re))z[pe]=fe,z[te]=re,pe=te;else break e}}return F}function c(z,F){var re=z.sortIndex-F.sortIndex;return re!==0?re:z.id-F.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 h=Date,m=h.now();l.unstable_now=function(){return h.now()-m}}var p=[],g=[],x=1,S=null,w=3,R=!1,G=!1,M=!1,L=!1,H=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function V(z){for(var F=i(g);F!==null;){if(F.callback===null)u(g);else if(F.startTime<=z)u(g),F.sortIndex=F.expirationTime,r(p,F);else break;F=i(g)}}function Y(z){if(M=!1,V(z),!G)if(i(p)!==null)G=!0,j||(j=!0,se());else{var F=i(g);F!==null&&ae(Y,F.startTime-z)}}var j=!1,J=-1,I=5,W=-1;function $(){return L?!0:!(l.unstable_now()-W<I)}function ce(){if(L=!1,j){var z=l.unstable_now();W=z;var F=!0;try{e:{G=!1,M&&(M=!1,Q(J),J=-1),R=!0;var re=w;try{t:{for(V(z),S=i(p);S!==null&&!(S.expirationTime>z&&$());){var pe=S.callback;if(typeof pe=="function"){S.callback=null,w=S.priorityLevel;var Te=pe(S.expirationTime<=z);if(z=l.unstable_now(),typeof Te=="function"){S.callback=Te,V(z),F=!0;break t}S===i(p)&&u(p),V(z)}else u(p);S=i(p)}if(S!==null)F=!0;else{var E=i(g);E!==null&&ae(Y,E.startTime-z),F=!1}}break e}finally{S=null,w=re,R=!1}F=void 0}}finally{F?se():j=!1}}}var se;if(typeof k=="function")se=function(){k(ce)};else if(typeof MessageChannel<"u"){var He=new MessageChannel,Ve=He.port2;He.port1.onmessage=ce,se=function(){Ve.postMessage(null)}}else se=function(){H(ce,0)};function ae(z,F){J=H(function(){z(l.unstable_now())},F)}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(z){z.callback=null},l.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<z?Math.floor(1e3/z):5},l.unstable_getCurrentPriorityLevel=function(){return w},l.unstable_next=function(z){switch(w){case 1:case 2:case 3:var F=3;break;default:F=w}var re=w;w=F;try{return z()}finally{w=re}},l.unstable_requestPaint=function(){L=!0},l.unstable_runWithPriority=function(z,F){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var re=w;w=z;try{return F()}finally{w=re}},l.unstable_scheduleCallback=function(z,F,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,z){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,z={id:x++,callback:F,priorityLevel:z,startTime:re,expirationTime:Te,sortIndex:-1},re>pe?(z.sortIndex=re,r(g,z),i(p)===null&&z===i(g)&&(M?(Q(J),J=-1):M=!0,ae(Y,re-pe))):(z.sortIndex=Te,r(p,z),G||R||(G=!0,j||(j=!0,se()))),z},l.unstable_shouldYield=$,l.unstable_wrapCallback=function(z){var F=w;return function(){var re=w;w=F;try{return z.apply(this,arguments)}finally{w=re}}}})(lf)),lf}var cp;function l1(){return cp||(cp=1,nf.exports=n1()),nf.exports}var af={exports:{}},dt={};/**
|
|
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 fp;function a1(){if(fp)return dt;fp=1;var l=Uf();function r(p){var g="https://react.dev/errors/"+p;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 #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var u={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(p,g,x){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:S==null?null:""+S,children:p,containerInfo:g,implementation:x}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,dt.createPortal=function(p,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(p,g,null,x)},dt.flushSync=function(p){var g=h.T,x=u.p;try{if(h.T=null,u.p=2,p)return p()}finally{h.T=g,u.p=x,u.d.f()}},dt.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,u.d.C(p,g))},dt.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},dt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var x=g.as,S=m(x,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,R=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?u.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:w,fetchPriority:R}):x==="script"&&u.d.X(p,{crossOrigin:S,integrity:w,fetchPriority:R,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},dt.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var x=m(g.as,g.crossOrigin);u.d.M(p,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&u.d.M(p)},dt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var x=g.as,S=m(x,g.crossOrigin);u.d.L(p,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})}},dt.preloadModule=function(p,g){if(typeof p=="string")if(g){var x=m(g.as,g.crossOrigin);u.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else u.d.m(p)},dt.requestFormReset=function(p){u.d.r(p)},dt.unstable_batchedUpdates=function(p,g){return p(g)},dt.useFormState=function(p,g,x){return h.H.useFormState(p,g,x)},dt.useFormStatus=function(){return h.H.useHostTransitionStatus()},dt.version="19.2.0",dt}var dp;function sy(){if(dp)return af.exports;dp=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(),af.exports=a1(),af.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 hp;function r1(){if(hp)return Si;hp=1;var l=l1(),r=Uf(),i=sy();function u(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 h(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 m(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 p(e){if(f(e)!==e)throw Error(u(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(u(188));return t!==e?null:e}for(var n=e,a=t;;){var s=n.return;if(s===null)break;var o=s.alternate;if(o===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===o.child){for(o=s.child;o;){if(o===n)return p(s),e;if(o===a)return p(s),t;o=o.sibling}throw Error(u(188))}if(n.return!==a.return)n=s,a=o;else{for(var d=!1,v=s.child;v;){if(v===n){d=!0,n=s,a=o;break}if(v===a){d=!0,a=s,n=o;break}v=v.sibling}if(!d){for(v=o.child;v;){if(v===n){d=!0,n=o,a=s;break}if(v===a){d=!0,a=o,n=s;break}v=v.sibling}if(!d)throw Error(u(189))}}if(n.alternate!==a)throw Error(u(190))}if(n.tag!==3)throw Error(u(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,w=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),k=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function se(e){return e===null||typeof e!="object"?null:(e=ce&&e[ce]||e["@@iterator"],typeof e=="function"?e:null)}var He=Symbol.for("react.client.reference");function Ve(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===He?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case H:return"Profiler";case L:return"StrictMode";case Y:return"Suspense";case j:return"SuspenseList";case W:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case G:return"Portal";case k:return e.displayName||"Context";case Q:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return t=e.displayName||null,t!==null?t:Ve(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return Ve(e(t))}catch{}}return null}var ae=Array.isArray,z=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=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 E(e){return{current:e}}function B(e){0>Te||(e.current=pe[Te],pe[Te]=null,Te--)}function P(e,t){Te++,pe[Te]=e.current,e.current=t}var te=E(null),fe=E(null),ve=E(null),Re=E(null);function ht(e,t){switch(P(ve,t),P(fe,e),P(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ag(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ag(t),e=Og(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(te),P(te,e)}function $e(){B(te),B(fe),B(ve)}function Ar(e){e.memoizedState!==null&&P(Re,e);var t=te.current,n=Og(t,e.type);t!==n&&(P(fe,e),P(te,n))}function Vi(e){fe.current===e&&(B(te),B(fe)),Re.current===e&&(B(Re),pi._currentValue=re)}var _s,ld;function jl(e){if(_s===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_s=t&&t[1]||"",ld=-1<n.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+_s+e+ld}var Us=!1;function Ls(e,t){if(!e||Us)return"";Us=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(q){var U=q}Reflect.construct(e,[],K)}else{try{K.call()}catch(q){U=q}e.call(K.prototype)}}else{try{throw Error()}catch(q){U=q}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(q){if(q&&U&&typeof q.stack=="string")return[q.stack,U.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=a.DetermineComponentFrameRoot(),d=o[0],v=o[1];if(d&&v){var N=d.split(`
|
|
44
|
-
`),_=v.split(`
|
|
45
|
-
`);for(s=a=0;a<N.length&&!N[a].includes("DetermineComponentFrameRoot");)a++;for(;s<_.length&&!_[s].includes("DetermineComponentFrameRoot");)s++;if(a===N.length||s===_.length)for(a=N.length-1,s=_.length-1;1<=a&&0<=s&&N[a]!==_[s];)s--;for(;1<=a&&0<=s;a--,s--)if(N[a]!==_[s]){if(a!==1||s!==1)do if(a--,s--,0>s||N[a]!==_[s]){var X=`
|
|
46
|
-
`+N[a].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=a&&0<=s);break}}}finally{Us=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?jl(n):""}function Ov(e,t){switch(e.tag){case 26:case 27:case 5:return jl(e.type);case 16:return jl("Lazy");case 13:return e.child!==t&&t!==null?jl("Suspense Fallback"):jl("Suspense");case 19:return jl("SuspenseList");case 0:case 15:return Ls(e.type,!1);case 11:return Ls(e.type.render,!1);case 1:return Ls(e.type,!0);case 31:return jl("Activity");default:return""}}function ad(e){try{var t="",n=null;do t+=Ov(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
-
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var qs=Object.prototype.hasOwnProperty,js=l.unstable_scheduleCallback,Hs=l.unstable_cancelCallback,Rv=l.unstable_shouldYield,Mv=l.unstable_requestPaint,Mt=l.unstable_now,zv=l.unstable_getCurrentPriorityLevel,rd=l.unstable_ImmediatePriority,id=l.unstable_UserBlockingPriority,Xi=l.unstable_NormalPriority,Dv=l.unstable_LowPriority,ud=l.unstable_IdlePriority,_v=l.log,Uv=l.unstable_setDisableYieldValue,Or=null,zt=null;function Fn(e){if(typeof _v=="function"&&Uv(e),zt&&typeof zt.setStrictMode=="function")try{zt.setStrictMode(Or,e)}catch{}}var Dt=Math.clz32?Math.clz32:jv,Lv=Math.log,qv=Math.LN2;function jv(e){return e>>>=0,e===0?32:31-(Lv(e)/qv|0)|0}var Zi=256,Ki=262144,Ji=4194304;function Hl(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 $i(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var s=0,o=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~o,a!==0?s=Hl(a):(d&=v,d!==0?s=Hl(d):n||(n=v&~e,n!==0&&(s=Hl(n))))):(v=a&~o,v!==0?s=Hl(v):d!==0?s=Hl(d):n||(n=a&~e,n!==0&&(s=Hl(n)))),s===0?0:t!==0&&t!==s&&(t&o)===0&&(o=s&-s,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:s}function Rr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Hv(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 sd(){var e=Ji;return Ji<<=1,(Ji&62914560)===0&&(Ji=4194304),e}function Bs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Mr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Bv(e,t,n,a,s,o){var d=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 v=e.entanglements,N=e.expirationTimes,_=e.hiddenUpdates;for(n=d&~n;0<n;){var X=31-Dt(n),K=1<<X;v[X]=0,N[X]=-1;var U=_[X];if(U!==null)for(_[X]=null,X=0;X<U.length;X++){var q=U[X];q!==null&&(q.lane&=-536870913)}n&=~K}a!==0&&od(e,a,0),o!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=o&~(d&~t))}function od(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Dt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function cd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Dt(n),s=1<<a;s&t|e[a]&t&&(e[a]|=t),n&=~s}}function fd(e,t){var n=t&-t;return n=(n&42)!==0?1:ks(n),(n&(e.suspendedLanes|t))!==0?0:n}function ks(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 Qs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function dd(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:Wg(e.type))}function hd(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var Wn=Math.random().toString(36).slice(2),ut="__reactFiber$"+Wn,bt="__reactProps$"+Wn,ba="__reactContainer$"+Wn,Ys="__reactEvents$"+Wn,kv="__reactListeners$"+Wn,Qv="__reactHandles$"+Wn,md="__reactResources$"+Wn,zr="__reactMarker$"+Wn;function Gs(e){delete e[ut],delete e[bt],delete e[Ys],delete e[kv],delete e[Qv]}function xa(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ba]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Lg(e);e!==null;){if(n=e[ut])return n;e=Lg(e)}return t}e=n,n=e.parentNode}return null}function Sa(e){if(e=e[ut]||e[ba]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Dr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Ea(e){var t=e[md];return t||(t=e[md]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[zr]=!0}var gd=new Set,pd={};function Bl(e,t){wa(e,t),wa(e+"Capture",t)}function wa(e,t){for(pd[e]=t,e=0;e<t.length;e++)gd.add(t[e])}var Yv=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]*$"),yd={},vd={};function Gv(e){return qs.call(vd,e)?!0:qs.call(yd,e)?!1:Yv.test(e)?vd[e]=!0:(yd[e]=!0,!1)}function Fi(e,t,n){if(Gv(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 Wi(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 Sn(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 Vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vv(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 s=a.get,o=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(d){n=""+d,o.call(this,d)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vs(e){if(!e._valueTracker){var t=bd(e)?"checked":"value";e._valueTracker=Vv(e,t,""+e[t])}}function xd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=bd(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Pi(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 Xv=/[\n"\\]/g;function Xt(e){return e.replace(Xv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Xs(e,t,n,a,s,o,d,v){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Vt(t)):e.value!==""+Vt(t)&&(e.value=""+Vt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Zs(e,d,Vt(t)):n!=null?Zs(e,d,Vt(n)):a!=null&&e.removeAttribute("value"),s==null&&o!=null&&(e.defaultChecked=!!o),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Vt(v):e.removeAttribute("name")}function Sd(e,t,n,a,s,o,d,v){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)){Vs(e);return}n=n!=null?""+Vt(n):"",t=t!=null?""+Vt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=v?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Vs(e)}function Zs(e,t,n){t==="number"&&Pi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Na(e,t,n,a){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Vt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,a&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Ed(e,t,n){if(t!=null&&(t=""+Vt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Vt(n):""}function wd(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(u(92));if(ae(a)){if(1<a.length)throw Error(u(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Vt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Vs(e)}function Ta(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zv=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 Nd(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||Zv.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Td(e,t,n){if(t!=null&&typeof t!="object")throw Error(u(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 s in t)a=t[s],t.hasOwnProperty(s)&&n[s]!==a&&Nd(e,s,a)}else for(var o in t)t.hasOwnProperty(o)&&Nd(e,o,t[o])}function Ks(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 Kv=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"]]),Jv=/^[\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 Ii(e){return Jv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function En(){}var Js=null;function $s(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ca=null,Aa=null;function Cd(e){var t=Sa(e);if(t&&(e=t.stateNode)){var n=e[bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Xs(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="'+Xt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var s=a[bt]||null;if(!s)throw Error(u(90));Xs(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&xd(a)}break e;case"textarea":Ed(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Na(e,!!n.multiple,t,!1)}}}var Fs=!1;function Ad(e,t,n){if(Fs)return e(t,n);Fs=!0;try{var a=e(t);return a}finally{if(Fs=!1,(Ca!==null||Aa!==null)&&(ku(),Ca&&(t=Ca,e=Aa,Aa=Ca=null,Cd(t),e)))for(t=0;t<e.length;t++)Cd(e[t])}}function _r(e,t){var n=e.stateNode;if(n===null)return null;var a=n[bt]||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(u(231,t,typeof n));return n}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ws=!1;if(wn)try{var Ur={};Object.defineProperty(Ur,"passive",{get:function(){Ws=!0}}),window.addEventListener("test",Ur,Ur),window.removeEventListener("test",Ur,Ur)}catch{Ws=!1}var Pn=null,Ps=null,eu=null;function Od(){if(eu)return eu;var e,t=Ps,n=t.length,a,s="value"in Pn?Pn.value:Pn.textContent,o=s.length;for(e=0;e<n&&t[e]===s[e];e++);var d=n-e;for(a=1;a<=d&&t[n-a]===s[o-a];a++);return eu=s.slice(e,1<a?1-a:void 0)}function tu(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 nu(){return!0}function Rd(){return!1}function xt(e){function t(n,a,s,o,d){this._reactName=n,this._targetInst=s,this.type=a,this.nativeEvent=o,this.target=d,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(o):o[v]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?nu:Rd,this.isPropagationStopped=Rd,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=nu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=nu)},persist:function(){},isPersistent:nu}),t}var kl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lu=xt(kl),Lr=S({},kl,{view:0,detail:0}),$v=xt(Lr),Is,eo,qr,au=S({},Lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:no,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!==qr&&(qr&&e.type==="mousemove"?(Is=e.screenX-qr.screenX,eo=e.screenY-qr.screenY):eo=Is=0,qr=e),Is)},movementY:function(e){return"movementY"in e?e.movementY:eo}}),Md=xt(au),Fv=S({},au,{dataTransfer:0}),Wv=xt(Fv),Pv=S({},Lr,{relatedTarget:0}),to=xt(Pv),Iv=S({},kl,{animationName:0,elapsedTime:0,pseudoElement:0}),e0=xt(Iv),t0=S({},kl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),n0=xt(t0),l0=S({},kl,{data:0}),zd=xt(l0),a0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r0={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"},i0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function u0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=i0[e])?!!t[e]:!1}function no(){return u0}var s0=S({},Lr,{key:function(e){if(e.key){var t=a0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?r0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:no,charCode:function(e){return e.type==="keypress"?tu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),o0=xt(s0),c0=S({},au,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dd=xt(c0),f0=S({},Lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:no}),d0=xt(f0),h0=S({},kl,{propertyName:0,elapsedTime:0,pseudoElement:0}),m0=xt(h0),g0=S({},au,{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}),p0=xt(g0),y0=S({},kl,{newState:0,oldState:0}),v0=xt(y0),b0=[9,13,27,32],lo=wn&&"CompositionEvent"in window,jr=null;wn&&"documentMode"in document&&(jr=document.documentMode);var x0=wn&&"TextEvent"in window&&!jr,_d=wn&&(!lo||jr&&8<jr&&11>=jr),Ud=" ",Ld=!1;function qd(e,t){switch(e){case"keyup":return b0.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 S0(e,t){switch(e){case"compositionend":return jd(t);case"keypress":return t.which!==32?null:(Ld=!0,Ud);case"textInput":return e=t.data,e===Ud&&Ld?null:e;default:return null}}function E0(e,t){if(Oa)return e==="compositionend"||!lo&&qd(e,t)?(e=Od(),eu=Ps=Pn=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 _d&&t.locale!=="ko"?null:t.data;default:return null}}var w0={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 Hd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!w0[e.type]:t==="textarea"}function Bd(e,t,n,a){Ca?Aa?Aa.push(a):Aa=[a]:Ca=a,t=Ku(t,"onChange"),0<t.length&&(n=new lu("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Hr=null,Br=null;function N0(e){Sg(e,0)}function ru(e){var t=Dr(e);if(xd(t))return e}function kd(e,t){if(e==="change")return t}var Qd=!1;if(wn){var ao;if(wn){var ro="oninput"in document;if(!ro){var Yd=document.createElement("div");Yd.setAttribute("oninput","return;"),ro=typeof Yd.oninput=="function"}ao=ro}else ao=!1;Qd=ao&&(!document.documentMode||9<document.documentMode)}function Gd(){Hr&&(Hr.detachEvent("onpropertychange",Vd),Br=Hr=null)}function Vd(e){if(e.propertyName==="value"&&ru(Br)){var t=[];Bd(t,Br,e,$s(e)),Ad(N0,t)}}function T0(e,t,n){e==="focusin"?(Gd(),Hr=t,Br=n,Hr.attachEvent("onpropertychange",Vd)):e==="focusout"&&Gd()}function C0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ru(Br)}function A0(e,t){if(e==="click")return ru(t)}function O0(e,t){if(e==="input"||e==="change")return ru(t)}function R0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:R0;function kr(e,t){if(_t(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 s=n[a];if(!qs.call(t,s)||!_t(e[s],t[s]))return!1}return!0}function Xd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zd(e,t){var n=Xd(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=Xd(n)}}function Kd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Pi(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=Pi(e.document)}return t}function io(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 M0=wn&&"documentMode"in document&&11>=document.documentMode,Ra=null,uo=null,Qr=null,so=!1;function $d(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;so||Ra==null||Ra!==Pi(a)||(a=Ra,"selectionStart"in a&&io(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}),Qr&&kr(Qr,a)||(Qr=a,a=Ku(uo,"onSelect"),0<a.length&&(t=new lu("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Ra)))}function Ql(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ma={animationend:Ql("Animation","AnimationEnd"),animationiteration:Ql("Animation","AnimationIteration"),animationstart:Ql("Animation","AnimationStart"),transitionrun:Ql("Transition","TransitionRun"),transitionstart:Ql("Transition","TransitionStart"),transitioncancel:Ql("Transition","TransitionCancel"),transitionend:Ql("Transition","TransitionEnd")},oo={},Fd={};wn&&(Fd=document.createElement("div").style,"AnimationEvent"in window||(delete Ma.animationend.animation,delete Ma.animationiteration.animation,delete Ma.animationstart.animation),"TransitionEvent"in window||delete Ma.transitionend.transition);function Yl(e){if(oo[e])return oo[e];if(!Ma[e])return e;var t=Ma[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Fd)return oo[e]=t[n];return e}var Wd=Yl("animationend"),Pd=Yl("animationiteration"),Id=Yl("animationstart"),z0=Yl("transitionrun"),D0=Yl("transitionstart"),_0=Yl("transitioncancel"),eh=Yl("transitionend"),th=new Map,co="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(" ");co.push("scrollEnd");function rn(e,t){th.set(e,t),Bl(t,[e])}var iu=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)},Zt=[],za=0,fo=0;function uu(){for(var e=za,t=fo=za=0;t<e;){var n=Zt[t];Zt[t++]=null;var a=Zt[t];Zt[t++]=null;var s=Zt[t];Zt[t++]=null;var o=Zt[t];if(Zt[t++]=null,a!==null&&s!==null){var d=a.pending;d===null?s.next=s:(s.next=d.next,d.next=s),a.pending=s}o!==0&&nh(n,s,o)}}function su(e,t,n,a){Zt[za++]=e,Zt[za++]=t,Zt[za++]=n,Zt[za++]=a,fo|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ho(e,t,n,a){return su(e,t,n,a),ou(e)}function Gl(e,t){return su(e,null,null,t),ou(e)}function nh(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var s=!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||(s=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,s&&t!==null&&(s=31-Dt(n),e=o.hiddenUpdates,a=e[s],a===null?e[s]=[t]:a.push(t),t.lane=n|536870912),o):null}function ou(e){if(50<oi)throw oi=0,Ec=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Da={};function U0(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 Ut(e,t,n,a){return new U0(e,t,n,a)}function mo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nn(e,t){var n=e.alternate;return n===null?(n=Ut(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 lh(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 cu(e,t,n,a,s,o){var d=0;if(a=e,typeof e=="function")mo(e)&&(d=1);else if(typeof e=="string")d=Bb(e,n,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case W:return e=Ut(31,n,t,s),e.elementType=W,e.lanes=o,e;case M:return Vl(n.children,s,o,t);case L:d=8,s|=24;break;case H:return e=Ut(12,n,t,s|2),e.elementType=H,e.lanes=o,e;case Y:return e=Ut(13,n,t,s),e.elementType=Y,e.lanes=o,e;case j:return e=Ut(19,n,t,s),e.elementType=j,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case k:d=10;break e;case Q:d=9;break e;case V:d=11;break e;case J:d=14;break e;case I:d=16,a=null;break e}d=29,n=Error(u(130,e===null?"null":typeof e,"")),a=null}return t=Ut(d,n,t,s),t.elementType=e,t.type=a,t.lanes=o,t}function Vl(e,t,n,a){return e=Ut(7,e,a,t),e.lanes=n,e}function go(e,t,n){return e=Ut(6,e,null,t),e.lanes=n,e}function ah(e){var t=Ut(18,null,null,0);return t.stateNode=e,t}function po(e,t,n){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var rh=new WeakMap;function Kt(e,t){if(typeof e=="object"&&e!==null){var n=rh.get(e);return n!==void 0?n:(t={value:e,source:t,stack:ad(t)},rh.set(e,t),t)}return{value:e,source:t,stack:ad(t)}}var _a=[],Ua=0,fu=null,Yr=0,Jt=[],$t=0,In=null,hn=1,mn="";function Tn(e,t){_a[Ua++]=Yr,_a[Ua++]=fu,fu=e,Yr=t}function ih(e,t,n){Jt[$t++]=hn,Jt[$t++]=mn,Jt[$t++]=In,In=e;var a=hn;e=mn;var s=32-Dt(a)-1;a&=~(1<<s),n+=1;var o=32-Dt(t)+s;if(30<o){var d=s-s%5;o=(a&(1<<d)-1).toString(32),a>>=d,s-=d,hn=1<<32-Dt(t)+s|n<<s|a,mn=o+e}else hn=1<<o|n<<s|a,mn=e}function yo(e){e.return!==null&&(Tn(e,1),ih(e,1,0))}function vo(e){for(;e===fu;)fu=_a[--Ua],_a[Ua]=null,Yr=_a[--Ua],_a[Ua]=null;for(;e===In;)In=Jt[--$t],Jt[$t]=null,mn=Jt[--$t],Jt[$t]=null,hn=Jt[--$t],Jt[$t]=null}function uh(e,t){Jt[$t++]=hn,Jt[$t++]=mn,Jt[$t++]=In,hn=t.id,mn=t.overflow,In=e}var st=null,Be=null,we=!1,el=null,Ft=!1,bo=Error(u(519));function tl(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gr(Kt(t,e)),bo}function sh(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[ut]=e,t[bt]=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<fi.length;n++)xe(fi[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),Sd(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),wd(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||Tg(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=En),t=!0):t=!1,t||tl(e,!0)}function oh(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:Ft=!1;return;case 27:case 3:Ft=!0;return;default:st=st.return}}function La(e){if(e!==st)return!1;if(!we)return oh(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")||jc(e.type,e.memoizedProps)),n=!n),n&&Be&&tl(e),oh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Be=Ug(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Be=Ug(e)}else t===27?(t=Be,gl(e.type)?(e=Yc,Yc=null,Be=e):Be=t):Be=st?Pt(e.stateNode.nextSibling):null;return!0}function Xl(){Be=st=null,we=!1}function xo(){var e=el;return e!==null&&(Nt===null?Nt=e:Nt.push.apply(Nt,e),el=null),e}function Gr(e){el===null?el=[e]:el.push(e)}var So=E(null),Zl=null,Cn=null;function nl(e,t,n){P(So,t._currentValue),t._currentValue=n}function An(e){e._currentValue=So.current,B(So)}function Eo(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 wo(e,t,n,a){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var o=s.dependencies;if(o!==null){var d=s.child;o=o.firstContext;e:for(;o!==null;){var v=o;o=s;for(var N=0;N<t.length;N++)if(v.context===t[N]){o.lanes|=n,v=o.alternate,v!==null&&(v.lanes|=n),Eo(o.return,n,e),a||(d=null);break e}o=v.next}}else if(s.tag===18){if(d=s.return,d===null)throw Error(u(341));d.lanes|=n,o=d.alternate,o!==null&&(o.lanes|=n),Eo(d,n,e),d=null}else d=s.child;if(d!==null)d.return=s;else for(d=s;d!==null;){if(d===e){d=null;break}if(s=d.sibling,s!==null){s.return=d.return,d=s;break}d=d.return}s=d}}function qa(e,t,n,a){e=null;for(var s=t,o=!1;s!==null;){if(!o){if((s.flags&524288)!==0)o=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var d=s.alternate;if(d===null)throw Error(u(387));if(d=d.memoizedProps,d!==null){var v=s.type;_t(s.pendingProps.value,d.value)||(e!==null?e.push(v):e=[v])}}else if(s===Re.current){if(d=s.alternate,d===null)throw Error(u(387));d.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(pi):e=[pi])}s=s.return}e!==null&&wo(t,e,n,a),t.flags|=262144}function du(e){for(e=e.firstContext;e!==null;){if(!_t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Kl(e){Zl=e,Cn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ot(e){return ch(Zl,e)}function hu(e,t){return Zl===null&&Kl(e),ch(e,t)}function ch(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Cn===null){if(e===null)throw Error(u(308));Cn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Cn=Cn.next=t;return n}var L0=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()})}},q0=l.unstable_scheduleCallback,j0=l.unstable_NormalPriority,Pe={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function No(){return{controller:new L0,data:new Map,refCount:0}}function Vr(e){e.refCount--,e.refCount===0&&q0(j0,function(){e.controller.abort()})}var Xr=null,To=0,ja=0,Ha=null;function H0(e,t){if(Xr===null){var n=Xr=[];To=0,ja=Oc(),Ha={status:"pending",value:void 0,then:function(a){n.push(a)}}}return To++,t.then(fh,fh),t}function fh(){if(--To===0&&Xr!==null){Ha!==null&&(Ha.status="fulfilled");var e=Xr;Xr=null,ja=0,Ha=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function B0(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}var dh=z.S;z.S=function(e,t){$m=Mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&H0(e,t),dh!==null&&dh(e,t)};var Jl=E(null);function Co(){var e=Jl.current;return e!==null?e:qe.pooledCache}function mu(e,t){t===null?P(Jl,Jl.current):P(Jl,t.pool)}function hh(){var e=Co();return e===null?null:{parent:Pe._currentValue,pool:e}}var Ba=Error(u(460)),Ao=Error(u(474)),gu=Error(u(542)),pu={then:function(){}};function mh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function gh(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(En,En),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,yh(e),e;default:if(typeof t.status=="string")t.then(En,En);else{if(e=qe,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=a}},function(a){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,yh(e),e}throw Fl=t,Ba}}function $l(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Fl=n,Ba):n}}var Fl=null;function ph(){if(Fl===null)throw Error(u(459));var e=Fl;return Fl=null,e}function yh(e){if(e===Ba||e===gu)throw Error(u(483))}var ka=null,Zr=0;function yu(e){var t=Zr;return Zr+=1,ka===null&&(ka=[]),gh(ka,e,t)}function Kr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function vu(e,t){throw t.$$typeof===w?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function vh(e){function t(A,C){if(e){var D=A.deletions;D===null?(A.deletions=[C],A.flags|=16):D.push(C)}}function n(A,C){if(!e)return null;for(;C!==null;)t(A,C),C=C.sibling;return null}function a(A){for(var C=new Map;A!==null;)A.key!==null?C.set(A.key,A):C.set(A.index,A),A=A.sibling;return C}function s(A,C){return A=Nn(A,C),A.index=0,A.sibling=null,A}function o(A,C,D){return A.index=D,e?(D=A.alternate,D!==null?(D=D.index,D<C?(A.flags|=67108866,C):D):(A.flags|=67108866,C)):(A.flags|=1048576,C)}function d(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function v(A,C,D,Z){return C===null||C.tag!==6?(C=go(D,A.mode,Z),C.return=A,C):(C=s(C,D),C.return=A,C)}function N(A,C,D,Z){var ue=D.type;return ue===M?X(A,C,D.props.children,Z,D.key):C!==null&&(C.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===I&&$l(ue)===C.type)?(C=s(C,D.props),Kr(C,D),C.return=A,C):(C=cu(D.type,D.key,D.props,null,A.mode,Z),Kr(C,D),C.return=A,C)}function _(A,C,D,Z){return C===null||C.tag!==4||C.stateNode.containerInfo!==D.containerInfo||C.stateNode.implementation!==D.implementation?(C=po(D,A.mode,Z),C.return=A,C):(C=s(C,D.children||[]),C.return=A,C)}function X(A,C,D,Z,ue){return C===null||C.tag!==7?(C=Vl(D,A.mode,Z,ue),C.return=A,C):(C=s(C,D),C.return=A,C)}function K(A,C,D){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=go(""+C,A.mode,D),C.return=A,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case R:return D=cu(C.type,C.key,C.props,null,A.mode,D),Kr(D,C),D.return=A,D;case G:return C=po(C,A.mode,D),C.return=A,C;case I:return C=$l(C),K(A,C,D)}if(ae(C)||se(C))return C=Vl(C,A.mode,D,null),C.return=A,C;if(typeof C.then=="function")return K(A,yu(C),D);if(C.$$typeof===k)return K(A,hu(A,C),D);vu(A,C)}return null}function U(A,C,D,Z){var ue=C!==null?C.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ue!==null?null:v(A,C,""+D,Z);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case R:return D.key===ue?N(A,C,D,Z):null;case G:return D.key===ue?_(A,C,D,Z):null;case I:return D=$l(D),U(A,C,D,Z)}if(ae(D)||se(D))return ue!==null?null:X(A,C,D,Z,null);if(typeof D.then=="function")return U(A,C,yu(D),Z);if(D.$$typeof===k)return U(A,C,hu(A,D),Z);vu(A,D)}return null}function q(A,C,D,Z,ue){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return A=A.get(D)||null,v(C,A,""+Z,ue);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case R:return A=A.get(Z.key===null?D:Z.key)||null,N(C,A,Z,ue);case G:return A=A.get(Z.key===null?D:Z.key)||null,_(C,A,Z,ue);case I:return Z=$l(Z),q(A,C,D,Z,ue)}if(ae(Z)||se(Z))return A=A.get(D)||null,X(C,A,Z,ue,null);if(typeof Z.then=="function")return q(A,C,D,yu(Z),ue);if(Z.$$typeof===k)return q(A,C,D,hu(C,Z),ue);vu(C,Z)}return null}function ne(A,C,D,Z){for(var ue=null,Ce=null,le=C,me=C=0,Ee=null;le!==null&&me<D.length;me++){le.index>me?(Ee=le,le=null):Ee=le.sibling;var Ae=U(A,le,D[me],Z);if(Ae===null){le===null&&(le=Ee);break}e&&le&&Ae.alternate===null&&t(A,le),C=o(Ae,C,me),Ce===null?ue=Ae:Ce.sibling=Ae,Ce=Ae,le=Ee}if(me===D.length)return n(A,le),we&&Tn(A,me),ue;if(le===null){for(;me<D.length;me++)le=K(A,D[me],Z),le!==null&&(C=o(le,C,me),Ce===null?ue=le:Ce.sibling=le,Ce=le);return we&&Tn(A,me),ue}for(le=a(le);me<D.length;me++)Ee=q(le,A,me,D[me],Z),Ee!==null&&(e&&Ee.alternate!==null&&le.delete(Ee.key===null?me:Ee.key),C=o(Ee,C,me),Ce===null?ue=Ee:Ce.sibling=Ee,Ce=Ee);return e&&le.forEach(function(xl){return t(A,xl)}),we&&Tn(A,me),ue}function oe(A,C,D,Z){if(D==null)throw Error(u(151));for(var ue=null,Ce=null,le=C,me=C=0,Ee=null,Ae=D.next();le!==null&&!Ae.done;me++,Ae=D.next()){le.index>me?(Ee=le,le=null):Ee=le.sibling;var xl=U(A,le,Ae.value,Z);if(xl===null){le===null&&(le=Ee);break}e&&le&&xl.alternate===null&&t(A,le),C=o(xl,C,me),Ce===null?ue=xl:Ce.sibling=xl,Ce=xl,le=Ee}if(Ae.done)return n(A,le),we&&Tn(A,me),ue;if(le===null){for(;!Ae.done;me++,Ae=D.next())Ae=K(A,Ae.value,Z),Ae!==null&&(C=o(Ae,C,me),Ce===null?ue=Ae:Ce.sibling=Ae,Ce=Ae);return we&&Tn(A,me),ue}for(le=a(le);!Ae.done;me++,Ae=D.next())Ae=q(le,A,me,Ae.value,Z),Ae!==null&&(e&&Ae.alternate!==null&&le.delete(Ae.key===null?me:Ae.key),C=o(Ae,C,me),Ce===null?ue=Ae:Ce.sibling=Ae,Ce=Ae);return e&&le.forEach(function(Fb){return t(A,Fb)}),we&&Tn(A,me),ue}function Le(A,C,D,Z){if(typeof D=="object"&&D!==null&&D.type===M&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case R:e:{for(var ue=D.key;C!==null;){if(C.key===ue){if(ue=D.type,ue===M){if(C.tag===7){n(A,C.sibling),Z=s(C,D.props.children),Z.return=A,A=Z;break e}}else if(C.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===I&&$l(ue)===C.type){n(A,C.sibling),Z=s(C,D.props),Kr(Z,D),Z.return=A,A=Z;break e}n(A,C);break}else t(A,C);C=C.sibling}D.type===M?(Z=Vl(D.props.children,A.mode,Z,D.key),Z.return=A,A=Z):(Z=cu(D.type,D.key,D.props,null,A.mode,Z),Kr(Z,D),Z.return=A,A=Z)}return d(A);case G:e:{for(ue=D.key;C!==null;){if(C.key===ue)if(C.tag===4&&C.stateNode.containerInfo===D.containerInfo&&C.stateNode.implementation===D.implementation){n(A,C.sibling),Z=s(C,D.children||[]),Z.return=A,A=Z;break e}else{n(A,C);break}else t(A,C);C=C.sibling}Z=po(D,A.mode,Z),Z.return=A,A=Z}return d(A);case I:return D=$l(D),Le(A,C,D,Z)}if(ae(D))return ne(A,C,D,Z);if(se(D)){if(ue=se(D),typeof ue!="function")throw Error(u(150));return D=ue.call(D),oe(A,C,D,Z)}if(typeof D.then=="function")return Le(A,C,yu(D),Z);if(D.$$typeof===k)return Le(A,C,hu(A,D),Z);vu(A,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,C!==null&&C.tag===6?(n(A,C.sibling),Z=s(C,D),Z.return=A,A=Z):(n(A,C),Z=go(D,A.mode,Z),Z.return=A,A=Z),d(A)):n(A,C)}return function(A,C,D,Z){try{Zr=0;var ue=Le(A,C,D,Z);return ka=null,ue}catch(le){if(le===Ba||le===gu)throw le;var Ce=Ut(29,le,null,A.mode);return Ce.lanes=Z,Ce.return=A,Ce}finally{}}}var Wl=vh(!0),bh=vh(!1),ll=!1;function Oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ro(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 al(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function rl(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Oe&2)!==0){var s=a.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),a.pending=t,t=ou(e),nh(e,null,n),t}return su(e,a,t,n),ou(e)}function Jr(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,cd(e,n)}}function Mo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?s=o=d:o=o.next=d,n=n.next}while(n!==null);o===null?s=o=t:o=o.next=t}else s=o=t;n={baseState:a.baseState,firstBaseUpdate:s,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 zo=!1;function $r(){if(zo){var e=Ha;if(e!==null)throw e}}function Fr(e,t,n,a){zo=!1;var s=e.updateQueue;ll=!1;var o=s.firstBaseUpdate,d=s.lastBaseUpdate,v=s.shared.pending;if(v!==null){s.shared.pending=null;var N=v,_=N.next;N.next=null,d===null?o=_:d.next=_,d=N;var X=e.alternate;X!==null&&(X=X.updateQueue,v=X.lastBaseUpdate,v!==d&&(v===null?X.firstBaseUpdate=_:v.next=_,X.lastBaseUpdate=N))}if(o!==null){var K=s.baseState;d=0,X=_=N=null,v=o;do{var U=v.lane&-536870913,q=U!==v.lane;if(q?(Se&U)===U:(a&U)===U){U!==0&&U===ja&&(zo=!0),X!==null&&(X=X.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ne=e,oe=v;U=t;var Le=n;switch(oe.tag){case 1:if(ne=oe.payload,typeof ne=="function"){K=ne.call(Le,K,U);break e}K=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=oe.payload,U=typeof ne=="function"?ne.call(Le,K,U):ne,U==null)break e;K=S({},K,U);break e;case 2:ll=!0}}U=v.callback,U!==null&&(e.flags|=64,q&&(e.flags|=8192),q=s.callbacks,q===null?s.callbacks=[U]:q.push(U))}else q={lane:U,tag:v.tag,payload:v.payload,callback:v.callback,next:null},X===null?(_=X=q,N=K):X=X.next=q,d|=U;if(v=v.next,v===null){if(v=s.shared.pending,v===null)break;q=v,v=q.next,q.next=null,s.lastBaseUpdate=q,s.shared.pending=null}}while(!0);X===null&&(N=K),s.baseState=N,s.firstBaseUpdate=_,s.lastBaseUpdate=X,o===null&&(s.shared.lanes=0),cl|=d,e.lanes=d,e.memoizedState=K}}function xh(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Sh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)xh(n[e],t)}var Qa=E(null),bu=E(0);function Eh(e,t){e=qn,P(bu,e),P(Qa,t),qn=e|t.baseLanes}function Do(){P(bu,qn),P(Qa,Qa.current)}function _o(){qn=bu.current,B(Qa),B(bu)}var Lt=E(null),Wt=null;function il(e){var t=e.alternate;P(Fe,Fe.current&1),P(Lt,e),Wt===null&&(t===null||Qa.current!==null||t.memoizedState!==null)&&(Wt=e)}function Uo(e){P(Fe,Fe.current),P(Lt,e),Wt===null&&(Wt=e)}function wh(e){e.tag===22?(P(Fe,Fe.current),P(Lt,e),Wt===null&&(Wt=e)):ul()}function ul(){P(Fe,Fe.current),P(Lt,Lt.current)}function qt(e){B(Lt),Wt===e&&(Wt=null),B(Fe)}var Fe=E(0);function xu(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)||Qc(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 On=0,he=null,_e=null,Ie=null,Su=!1,Ya=!1,Pl=!1,Eu=0,Wr=0,Ga=null,k0=0;function Xe(){throw Error(u(321))}function Lo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_t(e[n],t[n]))return!1;return!0}function qo(e,t,n,a,s,o){return On=o,he=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?im:Wo,Pl=!1,o=n(a,s),Pl=!1,Ya&&(o=Th(t,n,a,s)),Nh(e),o}function Nh(e){z.H=ei;var t=_e!==null&&_e.next!==null;if(On=0,Ie=_e=he=null,Su=!1,Wr=0,Ga=null,t)throw Error(u(300));e===null||et||(e=e.dependencies,e!==null&&du(e)&&(et=!0))}function Th(e,t,n,a){he=e;var s=0;do{if(Ya&&(Ga=null),Wr=0,Ya=!1,25<=s)throw Error(u(301));if(s+=1,Ie=_e=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}z.H=um,o=t(n,a)}while(Ya);return o}function Q0(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?Pr(t):t,e=e.useState()[0],(_e!==null?_e.memoizedState:null)!==e&&(he.flags|=1024),t}function jo(){var e=Eu!==0;return Eu=0,e}function Ho(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Bo(e){if(Su){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Su=!1}On=0,Ie=_e=he=null,Ya=!1,Wr=Eu=0,Ga=null}function mt(){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(_e===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Ie===null?he.memoizedState:Ie.next;if(t!==null)Ie=t,_e=e;else{if(e===null)throw he.alternate===null?Error(u(467)):Error(u(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Ie===null?he.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function wu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pr(e){var t=Wr;return Wr+=1,Ga===null&&(Ga=[]),e=gh(Ga,e,t),t=he,(Ie===null?t.memoizedState:Ie.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?im:Wo),e}function Nu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Pr(e);if(e.$$typeof===k)return ot(e)}throw Error(u(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(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=wu(),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]=$;return t.index++,n}function Rn(e,t){return typeof t=="function"?t(e):t}function Tu(e){var t=We();return Qo(t,_e,e)}function Qo(e,t,n){var a=e.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=n;var s=e.baseQueue,o=a.pending;if(o!==null){if(s!==null){var d=s.next;s.next=o.next,o.next=d}t.baseQueue=s=o,a.pending=null}if(o=e.baseState,s===null)e.memoizedState=o;else{t=s.next;var v=d=null,N=null,_=t,X=!1;do{var K=_.lane&-536870913;if(K!==_.lane?(Se&K)===K:(On&K)===K){var U=_.revertLane;if(U===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),K===ja&&(X=!0);else if((On&U)===U){_=_.next,U===ja&&(X=!0);continue}else K={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},N===null?(v=N=K,d=o):N=N.next=K,he.lanes|=U,cl|=U;K=_.action,Pl&&n(o,K),o=_.hasEagerState?_.eagerState:n(o,K)}else U={lane:K,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},N===null?(v=N=U,d=o):N=N.next=U,he.lanes|=K,cl|=K;_=_.next}while(_!==null&&_!==t);if(N===null?d=o:N.next=v,!_t(o,e.memoizedState)&&(et=!0,X&&(n=Ha,n!==null)))throw n;e.memoizedState=o,e.baseState=d,e.baseQueue=N,a.lastRenderedState=o}return s===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Yo(e){var t=We(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var a=n.dispatch,s=n.pending,o=t.memoizedState;if(s!==null){n.pending=null;var d=s=s.next;do o=e(o,d.action),d=d.next;while(d!==s);_t(o,t.memoizedState)||(et=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,a]}function Ch(e,t,n){var a=he,s=We(),o=we;if(o){if(n===void 0)throw Error(u(407));n=n()}else n=t();var d=!_t((_e||s).memoizedState,n);if(d&&(s.memoizedState=n,et=!0),s=s.queue,Xo(Rh.bind(null,a,s,e),[e]),s.getSnapshot!==t||d||Ie!==null&&Ie.memoizedState.tag&1){if(a.flags|=2048,Va(9,{destroy:void 0},Oh.bind(null,a,s,n,t),null),qe===null)throw Error(u(349));o||(On&127)!==0||Ah(a,t,n)}return n}function Ah(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=he.updateQueue,t===null?(t=wu(),he.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Oh(e,t,n,a){t.value=n,t.getSnapshot=a,Mh(t)&&zh(e)}function Rh(e,t,n){return n(function(){Mh(t)&&zh(e)})}function Mh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_t(e,n)}catch{return!0}}function zh(e){var t=Gl(e,2);t!==null&&Tt(t,e,2)}function Go(e){var t=mt();if(typeof e=="function"){var n=e;if(e=n(),Pl){Fn(!0);try{n()}finally{Fn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:e},t}function Dh(e,t,n,a){return e.baseState=n,Qo(e,_e,typeof a=="function"?a:Rn)}function Y0(e,t,n,a,s){if(Ou(e))throw Error(u(485));if(e=t.action,e!==null){var o={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){o.listeners.push(d)}};z.T!==null?n(!0):o.isTransition=!1,a(o),n=t.pending,n===null?(o.next=t.pending=o,_h(t,o)):(o.next=n.next,t.pending=n.next=o)}}function _h(e,t){var n=t.action,a=t.payload,s=e.state;if(t.isTransition){var o=z.T,d={};z.T=d;try{var v=n(s,a),N=z.S;N!==null&&N(d,v),Uh(e,t,v)}catch(_){Vo(e,t,_)}finally{o!==null&&d.types!==null&&(o.types=d.types),z.T=o}}else try{o=n(s,a),Uh(e,t,o)}catch(_){Vo(e,t,_)}}function Uh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Lh(e,t,a)},function(a){return Vo(e,t,a)}):Lh(e,t,n)}function Lh(e,t,n){t.status="fulfilled",t.value=n,qh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,_h(e,n)))}function Vo(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,qh(t),t=t.next;while(t!==a)}e.action=null}function qh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function jh(e,t){return t}function Hh(e,t){if(we){var n=qe.formState;if(n!==null){e:{var a=he;if(we){if(Be){t:{for(var s=Be,o=Ft;s.nodeType!==8;){if(!o){s=null;break t}if(s=Pt(s.nextSibling),s===null){s=null;break t}}o=s.data,s=o==="F!"||o==="F"?s:null}if(s){Be=Pt(s.nextSibling),a=s.data==="F!";break e}}tl(a)}a=!1}a&&(t=n[0])}}return n=mt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jh,lastRenderedState:t},n.queue=a,n=lm.bind(null,he,a),a.dispatch=n,a=Go(!1),o=Fo.bind(null,he,!1,a.queue),a=mt(),s={state:t,dispatch:null,action:e,pending:null},a.queue=s,n=Y0.bind(null,he,s,o,n),s.dispatch=n,a.memoizedState=e,[t,n,!1]}function Bh(e){var t=We();return kh(t,_e,e)}function kh(e,t,n){if(t=Qo(e,t,jh)[0],e=Tu(Rn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Pr(t)}catch(d){throw d===Ba?gu:d}else a=t;t=We();var s=t.queue,o=s.dispatch;return n!==t.memoizedState&&(he.flags|=2048,Va(9,{destroy:void 0},G0.bind(null,s,n),null)),[a,o,e]}function G0(e,t){e.action=t}function Qh(e){var t=We(),n=_e;if(n!==null)return kh(t,n,e);We(),t=t.memoizedState,n=We();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Va(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=he.updateQueue,t===null&&(t=wu(),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 Yh(){return We().memoizedState}function Cu(e,t,n,a){var s=mt();he.flags|=e,s.memoizedState=Va(1|t,{destroy:void 0},n,a===void 0?null:a)}function Au(e,t,n,a){var s=We();a=a===void 0?null:a;var o=s.memoizedState.inst;_e!==null&&a!==null&&Lo(a,_e.memoizedState.deps)?s.memoizedState=Va(t,o,n,a):(he.flags|=e,s.memoizedState=Va(1|t,o,n,a))}function Gh(e,t){Cu(8390656,8,e,t)}function Xo(e,t){Au(2048,8,e,t)}function V0(e){he.flags|=4;var t=he.updateQueue;if(t===null)t=wu(),he.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Vh(e){var t=We().memoizedState;return V0({ref:t,nextImpl:e}),function(){if((Oe&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function Xh(e,t){return Au(4,2,e,t)}function Zh(e,t){return Au(4,4,e,t)}function Kh(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 Jh(e,t,n){n=n!=null?n.concat([e]):null,Au(4,4,Kh.bind(null,t,e),n)}function Zo(){}function $h(e,t){var n=We();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Lo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Fh(e,t){var n=We();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Lo(t,a[1]))return a[0];if(a=e(),Pl){Fn(!0);try{e()}finally{Fn(!1)}}return n.memoizedState=[a,t],a}function Ko(e,t,n){return n===void 0||(On&1073741824)!==0&&(Se&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Wm(),he.lanes|=e,cl|=e,n)}function Wh(e,t,n,a){return _t(n,t)?n:Qa.current!==null?(e=Ko(e,n,a),_t(e,t)||(et=!0),e):(On&42)===0||(On&1073741824)!==0&&(Se&261930)===0?(et=!0,e.memoizedState=n):(e=Wm(),he.lanes|=e,cl|=e,t)}function Ph(e,t,n,a,s){var o=F.p;F.p=o!==0&&8>o?o:8;var d=z.T,v={};z.T=v,Fo(e,!1,t,n);try{var N=s(),_=z.S;if(_!==null&&_(v,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var X=B0(N,a);Ir(e,t,X,Bt(e))}else Ir(e,t,a,Bt(e))}catch(K){Ir(e,t,{then:function(){},status:"rejected",reason:K},Bt())}finally{F.p=o,d!==null&&v.types!==null&&(d.types=v.types),z.T=d}}function X0(){}function Jo(e,t,n,a){if(e.tag!==5)throw Error(u(476));var s=Ih(e).queue;Ph(e,s,t,re,n===null?X0:function(){return em(e),n(a)})}function Ih(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:Rn,lastRenderedState:re},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function em(e){var t=Ih(e);t.next===null&&(t=e.alternate.memoizedState),Ir(e,t.next.queue,{},Bt())}function $o(){return ot(pi)}function tm(){return We().memoizedState}function nm(){return We().memoizedState}function Z0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Bt();e=al(n);var a=rl(t,e,n);a!==null&&(Tt(a,t,n),Jr(a,t,n)),t={cache:No()},e.payload=t;return}t=t.return}}function K0(e,t,n){var a=Bt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ou(e)?am(t,n):(n=ho(e,t,n,a),n!==null&&(Tt(n,e,a),rm(n,t,a)))}function lm(e,t,n){var a=Bt();Ir(e,t,n,a)}function Ir(e,t,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ou(e))am(t,s);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var d=t.lastRenderedState,v=o(d,n);if(s.hasEagerState=!0,s.eagerState=v,_t(v,d))return su(e,t,s,0),qe===null&&uu(),!1}catch{}finally{}if(n=ho(e,t,s,a),n!==null)return Tt(n,e,a),rm(n,t,a),!0}return!1}function Fo(e,t,n,a){if(a={lane:2,revertLane:Oc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ou(e)){if(t)throw Error(u(479))}else t=ho(e,n,a,2),t!==null&&Tt(t,e,2)}function Ou(e){var t=e.alternate;return e===he||t!==null&&t===he}function am(e,t){Ya=Su=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rm(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,cd(e,n)}}var ei={readContext:ot,use:Nu,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};ei.useEffectEvent=Xe;var im={readContext:ot,use:Nu,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:ot,useEffect:Gh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Cu(4194308,4,Kh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Cu(4194308,4,e,t)},useInsertionEffect:function(e,t){Cu(4,2,e,t)},useMemo:function(e,t){var n=mt();t=t===void 0?null:t;var a=e();if(Pl){Fn(!0);try{e()}finally{Fn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=mt();if(n!==void 0){var s=n(t);if(Pl){Fn(!0);try{n(t)}finally{Fn(!1)}}}else s=t;return a.memoizedState=a.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=K0.bind(null,he,e),[a.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Go(e);var t=e.queue,n=lm.bind(null,he,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Zo,useDeferredValue:function(e,t){var n=mt();return Ko(n,e,t)},useTransition:function(){var e=Go(!1);return e=Ph.bind(null,he,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=he,s=mt();if(we){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),qe===null)throw Error(u(349));(Se&127)!==0||Ah(a,t,n)}s.memoizedState=n;var o={value:n,getSnapshot:t};return s.queue=o,Gh(Rh.bind(null,a,o,e),[e]),a.flags|=2048,Va(9,{destroy:void 0},Oh.bind(null,a,o,n,t),null),n},useId:function(){var e=mt(),t=qe.identifierPrefix;if(we){var n=mn,a=hn;n=(a&~(1<<32-Dt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Eu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=k0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:$o,useFormState:Hh,useActionState:Hh,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Fo.bind(null,he,!0,n),n.dispatch=t,[e,t]},useMemoCache:ko,useCacheRefresh:function(){return mt().memoizedState=Z0.bind(null,he)},useEffectEvent:function(e){var t=mt(),n={impl:e};return t.memoizedState=n,function(){if((Oe&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},Wo={readContext:ot,use:Nu,useCallback:$h,useContext:ot,useEffect:Xo,useImperativeHandle:Jh,useInsertionEffect:Xh,useLayoutEffect:Zh,useMemo:Fh,useReducer:Tu,useRef:Yh,useState:function(){return Tu(Rn)},useDebugValue:Zo,useDeferredValue:function(e,t){var n=We();return Wh(n,_e.memoizedState,e,t)},useTransition:function(){var e=Tu(Rn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Pr(e),t]},useSyncExternalStore:Ch,useId:tm,useHostTransitionStatus:$o,useFormState:Bh,useActionState:Bh,useOptimistic:function(e,t){var n=We();return Dh(n,_e,e,t)},useMemoCache:ko,useCacheRefresh:nm};Wo.useEffectEvent=Vh;var um={readContext:ot,use:Nu,useCallback:$h,useContext:ot,useEffect:Xo,useImperativeHandle:Jh,useInsertionEffect:Xh,useLayoutEffect:Zh,useMemo:Fh,useReducer:Yo,useRef:Yh,useState:function(){return Yo(Rn)},useDebugValue:Zo,useDeferredValue:function(e,t){var n=We();return _e===null?Ko(n,e,t):Wh(n,_e.memoizedState,e,t)},useTransition:function(){var e=Yo(Rn)[0],t=We().memoizedState;return[typeof e=="boolean"?e:Pr(e),t]},useSyncExternalStore:Ch,useId:tm,useHostTransitionStatus:$o,useFormState:Qh,useActionState:Qh,useOptimistic:function(e,t){var n=We();return _e!==null?Dh(n,_e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ko,useCacheRefresh:nm};um.useEffectEvent=Vh;function Po(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 Io={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Bt(),s=al(a);s.payload=t,n!=null&&(s.callback=n),t=rl(e,s,a),t!==null&&(Tt(t,e,a),Jr(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Bt(),s=al(a);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=rl(e,s,a),t!==null&&(Tt(t,e,a),Jr(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Bt(),a=al(n);a.tag=2,t!=null&&(a.callback=t),t=rl(e,a,n),t!==null&&(Tt(t,e,n),Jr(t,e,n))}};function sm(e,t,n,a,s,o,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,d):t.prototype&&t.prototype.isPureReactComponent?!kr(n,a)||!kr(s,o):!0}function om(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&&Io.enqueueReplaceState(t,t.state,null)}function Il(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 s in e)n[s]===void 0&&(n[s]=e[s])}return n}function cm(e){iu(e)}function fm(e){console.error(e)}function dm(e){iu(e)}function Ru(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function hm(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function ec(e,t,n){return n=al(n),n.tag=3,n.payload={element:null},n.callback=function(){Ru(e,t)},n}function mm(e){return e=al(e),e.tag=3,e}function gm(e,t,n,a){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var o=a.value;e.payload=function(){return s(o)},e.callback=function(){hm(t,n,a)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){hm(t,n,a),typeof s!="function"&&(fl===null?fl=new Set([this]):fl.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function J0(e,t,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&qa(t,n,s,!0),n=Lt.current,n!==null){switch(n.tag){case 31:case 13:return Wt===null?Qu():n.alternate===null&&Ze===0&&(Ze=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===pu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Tc(e,a,s)),!1;case 22:return n.flags|=65536,a===pu?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)),Tc(e,a,s)),!1}throw Error(u(435,n.tag))}return Tc(e,a,s),Qu(),!1}if(we)return t=Lt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,a!==bo&&(e=Error(u(422),{cause:a}),Gr(Kt(e,n)))):(a!==bo&&(t=Error(u(423),{cause:a}),Gr(Kt(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,a=Kt(a,n),s=ec(e.stateNode,a,s),Mo(e,s),Ze!==4&&(Ze=2)),!1;var o=Error(u(520),{cause:a});if(o=Kt(o,n),si===null?si=[o]:si.push(o),Ze!==4&&(Ze=2),t===null)return!0;a=Kt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=ec(n.stateNode,a,e),Mo(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"&&(fl===null||!fl.has(o))))return n.flags|=65536,s&=-s,n.lanes|=s,s=mm(s),gm(s,e,n,a),Mo(n,s),!1}n=n.return}while(n!==null);return!1}var tc=Error(u(461)),et=!1;function ct(e,t,n,a){t.child=e===null?bh(t,null,n,a):Wl(t,e.child,n,a)}function pm(e,t,n,a,s){n=n.render;var o=t.ref;if("ref"in a){var d={};for(var v in a)v!=="ref"&&(d[v]=a[v])}else d=a;return Kl(t),a=qo(e,t,n,d,o,s),v=jo(),e!==null&&!et?(Ho(e,t,s),Mn(e,t,s)):(we&&v&&yo(t),t.flags|=1,ct(e,t,a,s),t.child)}function ym(e,t,n,a,s){if(e===null){var o=n.type;return typeof o=="function"&&!mo(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,vm(e,t,o,a,s)):(e=cu(n.type,null,a,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!oc(e,s)){var d=o.memoizedProps;if(n=n.compare,n=n!==null?n:kr,n(d,a)&&e.ref===t.ref)return Mn(e,t,s)}return t.flags|=1,e=Nn(o,a),e.ref=t.ref,e.return=t,t.child=e}function vm(e,t,n,a,s){if(e!==null){var o=e.memoizedProps;if(kr(o,a)&&e.ref===t.ref)if(et=!1,t.pendingProps=a=o,oc(e,s))(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,Mn(e,t,s)}return nc(e,t,n,a,s)}function bm(e,t,n,a){var s=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,s=0;a!==null;)s=s|a.lanes|a.childLanes,a=a.sibling;a=s&~o}else a=0,t.child=null;return xm(e,t,o,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&mu(t,o!==null?o.cachePool:null),o!==null?Eh(t,o):Do(),wh(t);else return a=t.lanes=536870912,xm(e,t,o!==null?o.baseLanes|n:n,n,a)}else o!==null?(mu(t,o.cachePool),Eh(t,o),ul(),t.memoizedState=null):(e!==null&&mu(t,null),Do(),ul());return ct(e,t,s,n),t.child}function ti(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function xm(e,t,n,a,s){var o=Co();return o=o===null?null:{parent:Pe._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&mu(t,null),Do(),wh(t),e!==null&&qa(e,t,a,!0),t.childLanes=s,null}function Mu(e,t){return t=Du({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Sm(e,t,n){return Wl(t,e.child,null,n),e=Mu(t,t.pendingProps),e.flags|=2,qt(t),t.memoizedState=null,e}function $0(e,t,n){var a=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(we){if(a.mode==="hidden")return e=Mu(t,a),t.lanes=536870912,ti(null,e);if(Uo(t),(e=Be)?(e=_g(e,Ft),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:In!==null?{id:hn,overflow:mn}:null,retryLane:536870912,hydrationErrors:null},n=ah(e),n.return=t,t.child=n,st=t,Be=null)):e=null,e===null)throw tl(t);return t.lanes=536870912,null}return Mu(t,a)}var o=e.memoizedState;if(o!==null){var d=o.dehydrated;if(Uo(t),s)if(t.flags&256)t.flags&=-257,t=Sm(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(et||qa(e,t,n,!1),s=(n&e.childLanes)!==0,et||s){if(a=qe,a!==null&&(d=fd(a,n),d!==0&&d!==o.retryLane))throw o.retryLane=d,Gl(e,d),Tt(a,e,d),tc;Qu(),t=Sm(e,t,n)}else e=o.treeContext,Be=Pt(d.nextSibling),st=t,we=!0,el=null,Ft=!1,e!==null&&uh(t,e),t=Mu(t,a),t.flags|=4096;return t}return e=Nn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zu(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(u(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function nc(e,t,n,a,s){return Kl(t),n=qo(e,t,n,a,void 0,s),a=jo(),e!==null&&!et?(Ho(e,t,s),Mn(e,t,s)):(we&&a&&yo(t),t.flags|=1,ct(e,t,n,s),t.child)}function Em(e,t,n,a,s,o){return Kl(t),t.updateQueue=null,n=Th(t,a,n,s),Nh(e),a=jo(),e!==null&&!et?(Ho(e,t,o),Mn(e,t,o)):(we&&a&&yo(t),t.flags|=1,ct(e,t,n,o),t.child)}function wm(e,t,n,a,s){if(Kl(t),t.stateNode===null){var o=Da,d=n.contextType;typeof d=="object"&&d!==null&&(o=ot(d)),o=new n(a,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Io,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=a,o.state=t.memoizedState,o.refs={},Oo(t),d=n.contextType,o.context=typeof d=="object"&&d!==null?ot(d):Da,o.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Po(t,n,d,a),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(d=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),d!==o.state&&Io.enqueueReplaceState(o,o.state,null),Fr(t,a,o,s),$r(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){o=t.stateNode;var v=t.memoizedProps,N=Il(n,v);o.props=N;var _=o.context,X=n.contextType;d=Da,typeof X=="object"&&X!==null&&(d=ot(X));var K=n.getDerivedStateFromProps;X=typeof K=="function"||typeof o.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,X||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(v||_!==d)&&om(t,o,a,d),ll=!1;var U=t.memoizedState;o.state=U,Fr(t,a,o,s),$r(),_=t.memoizedState,v||U!==_||ll?(typeof K=="function"&&(Po(t,n,K,a),_=t.memoizedState),(N=ll||sm(t,n,N,a,U,_,d))?(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=_),o.props=a,o.state=_,o.context=d,a=N):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{o=t.stateNode,Ro(e,t),d=t.memoizedProps,X=Il(n,d),o.props=X,K=t.pendingProps,U=o.context,_=n.contextType,N=Da,typeof _=="object"&&_!==null&&(N=ot(_)),v=n.getDerivedStateFromProps,(_=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(d!==K||U!==N)&&om(t,o,a,N),ll=!1,U=t.memoizedState,o.state=U,Fr(t,a,o,s),$r();var q=t.memoizedState;d!==K||U!==q||ll||e!==null&&e.dependencies!==null&&du(e.dependencies)?(typeof v=="function"&&(Po(t,n,v,a),q=t.memoizedState),(X=ll||sm(t,n,X,a,U,q,N)||e!==null&&e.dependencies!==null&&du(e.dependencies))?(_||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(a,q,N),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(a,q,N)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=q),o.props=a,o.state=q,o.context=N,a=X):(typeof o.componentDidUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),a=!1)}return o=a,zu(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=Wl(t,e.child,null,s),t.child=Wl(t,null,n,s)):ct(e,t,n,s),t.memoizedState=o.state,e=t.child):e=Mn(e,t,s),e}function Nm(e,t,n,a){return Xl(),t.flags|=256,ct(e,t,n,a),t.child}var lc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ac(e){return{baseLanes:e,cachePool:hh()}}function rc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Ht),e}function Tm(e,t,n){var a=t.pendingProps,s=!1,o=(t.flags&128)!==0,d;if((d=o)||(d=e!==null&&e.memoizedState===null?!1:(Fe.current&2)!==0),d&&(s=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(we){if(s?il(t):ul(),(e=Be)?(e=_g(e,Ft),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:In!==null?{id:hn,overflow:mn}:null,retryLane:536870912,hydrationErrors:null},n=ah(e),n.return=t,t.child=n,st=t,Be=null)):e=null,e===null)throw tl(t);return Qc(e)?t.lanes=32:t.lanes=536870912,null}var v=a.children;return a=a.fallback,s?(ul(),s=t.mode,v=Du({mode:"hidden",children:v},s),a=Vl(a,s,n,null),v.return=t,a.return=t,v.sibling=a,t.child=v,a=t.child,a.memoizedState=ac(n),a.childLanes=rc(e,d,n),t.memoizedState=lc,ti(null,a)):(il(t),ic(t,v))}var N=e.memoizedState;if(N!==null&&(v=N.dehydrated,v!==null)){if(o)t.flags&256?(il(t),t.flags&=-257,t=uc(e,t,n)):t.memoizedState!==null?(ul(),t.child=e.child,t.flags|=128,t=null):(ul(),v=a.fallback,s=t.mode,a=Du({mode:"visible",children:a.children},s),v=Vl(v,s,n,null),v.flags|=2,a.return=t,v.return=t,a.sibling=v,t.child=a,Wl(t,e.child,null,n),a=t.child,a.memoizedState=ac(n),a.childLanes=rc(e,d,n),t.memoizedState=lc,t=ti(null,a));else if(il(t),Qc(v)){if(d=v.nextSibling&&v.nextSibling.dataset,d)var _=d.dgst;d=_,a=Error(u(419)),a.stack="",a.digest=d,Gr({value:a,source:null,stack:null}),t=uc(e,t,n)}else if(et||qa(e,t,n,!1),d=(n&e.childLanes)!==0,et||d){if(d=qe,d!==null&&(a=fd(d,n),a!==0&&a!==N.retryLane))throw N.retryLane=a,Gl(e,a),Tt(d,e,a),tc;kc(v)||Qu(),t=uc(e,t,n)}else kc(v)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Be=Pt(v.nextSibling),st=t,we=!0,el=null,Ft=!1,e!==null&&uh(t,e),t=ic(t,a.children),t.flags|=4096);return t}return s?(ul(),v=a.fallback,s=t.mode,N=e.child,_=N.sibling,a=Nn(N,{mode:"hidden",children:a.children}),a.subtreeFlags=N.subtreeFlags&65011712,_!==null?v=Nn(_,v):(v=Vl(v,s,n,null),v.flags|=2),v.return=t,a.return=t,a.sibling=v,t.child=a,ti(null,a),a=t.child,v=e.child.memoizedState,v===null?v=ac(n):(s=v.cachePool,s!==null?(N=Pe._currentValue,s=s.parent!==N?{parent:N,pool:N}:s):s=hh(),v={baseLanes:v.baseLanes|n,cachePool:s}),a.memoizedState=v,a.childLanes=rc(e,d,n),t.memoizedState=lc,ti(e.child,a)):(il(t),n=e.child,e=n.sibling,n=Nn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function ic(e,t){return t=Du({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Du(e,t){return e=Ut(22,e,null,t),e.lanes=0,e}function uc(e,t,n){return Wl(t,e.child,null,n),e=ic(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cm(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Eo(e.return,t,n)}function sc(e,t,n,a,s,o){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:s,treeForkCount:o}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=n,d.tailMode=s,d.treeForkCount=o)}function Am(e,t,n){var a=t.pendingProps,s=a.revealOrder,o=a.tail;a=a.children;var d=Fe.current,v=(d&2)!==0;if(v?(d=d&1|2,t.flags|=128):d&=1,P(Fe,d),ct(e,t,a,n),a=we?Yr:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cm(e,n,t);else if(e.tag===19)Cm(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(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&xu(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),sc(t,!1,s,n,o,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&xu(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}sc(t,!0,n,null,o,a);break;case"together":sc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Mn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),cl|=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(u(153));if(t.child!==null){for(e=t.child,n=Nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function oc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&du(e)))}function F0(e,t,n){switch(t.tag){case 3:ht(t,t.stateNode.containerInfo),nl(t,Pe,e.memoizedState.cache),Xl();break;case 27:case 5:Ar(t);break;case 4:ht(t,t.stateNode.containerInfo);break;case 10:nl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Uo(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(il(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Tm(e,t,n):(il(t),e=Mn(e,t,n),e!==null?e.sibling:null);il(t);break;case 19:var s=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(qa(e,t,n,!1),a=(n&t.childLanes)!==0),s){if(a)return Am(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),P(Fe,Fe.current),a)break;return null;case 22:return t.lanes=0,bm(e,t,n,t.pendingProps);case 24:nl(t,Pe,e.memoizedState.cache)}return Mn(e,t,n)}function Om(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)et=!0;else{if(!oc(e,n)&&(t.flags&128)===0)return et=!1,F0(e,t,n);et=(e.flags&131072)!==0}else et=!1,we&&(t.flags&1048576)!==0&&ih(t,Yr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=$l(t.elementType),t.type=e,typeof e=="function")mo(e)?(a=Il(e,a),t.tag=1,t=wm(null,t,e,a,n)):(t.tag=0,t=nc(null,t,e,a,n));else{if(e!=null){var s=e.$$typeof;if(s===V){t.tag=11,t=pm(null,t,e,a,n);break e}else if(s===J){t.tag=14,t=ym(null,t,e,a,n);break e}}throw t=Ve(e)||e,Error(u(306,t,""))}}return t;case 0:return nc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,s=Il(a,t.pendingProps),wm(e,t,a,s,n);case 3:e:{if(ht(t,t.stateNode.containerInfo),e===null)throw Error(u(387));a=t.pendingProps;var o=t.memoizedState;s=o.element,Ro(e,t),Fr(t,a,null,n);var d=t.memoizedState;if(a=d.cache,nl(t,Pe,a),a!==o.cache&&wo(t,[Pe],n,!0),$r(),a=d.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Nm(e,t,a,n);break e}else if(a!==s){s=Kt(Error(u(424)),t),Gr(s),t=Nm(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(Be=Pt(e.firstChild),st=t,we=!0,el=null,Ft=!0,n=bh(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Xl(),a===s){t=Mn(e,t,n);break e}ct(e,t,a,n)}t=t.child}return t;case 26:return zu(e,t),e===null?(n=Bg(t.type,null,t.pendingProps,null))?t.memoizedState=n:we||(n=t.type,e=t.pendingProps,a=Ju(ve.current).createElement(n),a[ut]=t,a[bt]=e,ft(a,n,e),at(a),t.stateNode=a):t.memoizedState=Bg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ar(t),e===null&&we&&(a=t.stateNode=qg(t.type,t.pendingProps,ve.current),st=t,Ft=!0,s=Be,gl(t.type)?(Yc=s,Be=Pt(a.firstChild)):Be=s),ct(e,t,t.pendingProps.children,n),zu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&we&&((s=a=Be)&&(a=Cb(a,t.type,t.pendingProps,Ft),a!==null?(t.stateNode=a,st=t,Be=Pt(a.firstChild),Ft=!1,s=!0):s=!1),s||tl(t)),Ar(t),s=t.type,o=t.pendingProps,d=e!==null?e.memoizedProps:null,a=o.children,jc(s,o)?a=null:d!==null&&jc(s,d)&&(t.flags|=32),t.memoizedState!==null&&(s=qo(e,t,Q0,null,null,n),pi._currentValue=s),zu(e,t),ct(e,t,a,n),t.child;case 6:return e===null&&we&&((e=n=Be)&&(n=Ab(n,t.pendingProps,Ft),n!==null?(t.stateNode=n,st=t,Be=null,e=!0):e=!1),e||tl(t)),null;case 13:return Tm(e,t,n);case 4:return ht(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Wl(t,null,a,n):ct(e,t,a,n),t.child;case 11:return pm(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,nl(t,t.type,a.value),ct(e,t,a.children,n),t.child;case 9:return s=t.type._context,a=t.pendingProps.children,Kl(t),s=ot(s),a=a(s),t.flags|=1,ct(e,t,a,n),t.child;case 14:return ym(e,t,t.type,t.pendingProps,n);case 15:return vm(e,t,t.type,t.pendingProps,n);case 19:return Am(e,t,n);case 31:return $0(e,t,n);case 22:return bm(e,t,n,t.pendingProps);case 24:return Kl(t),a=ot(Pe),e===null?(s=Co(),s===null&&(s=qe,o=No(),s.pooledCache=o,o.refCount++,o!==null&&(s.pooledCacheLanes|=n),s=o),t.memoizedState={parent:a,cache:s},Oo(t),nl(t,Pe,s)):((e.lanes&n)!==0&&(Ro(e,t),Fr(t,null,null,n),$r()),s=e.memoizedState,o=t.memoizedState,s.parent!==a?(s={parent:a,cache:a},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),nl(t,Pe,a)):(a=o.cache,nl(t,Pe,a),a!==s.cache&&wo(t,[Pe],n,!0))),ct(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function zn(e){e.flags|=4}function cc(e,t,n,a,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(tg())e.flags|=8192;else throw Fl=pu,Ao}else e.flags&=-16777217}function Rm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Vg(t))if(tg())e.flags|=8192;else throw Fl=pu,Ao}function _u(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?sd():536870912,e.lanes|=t,Ja|=t)}function ni(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 ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function W0(e,t,n){var a=t.pendingProps;switch(vo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return ke(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),An(Pe),$e(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(La(t)?zn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xo())),ke(t),null;case 26:var s=t.type,o=t.memoizedState;return e===null?(zn(t),o!==null?(ke(t),Rm(t,o)):(ke(t),cc(t,s,null,a,n))):o?o!==e.memoizedState?(zn(t),ke(t),Rm(t,o)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&zn(t),ke(t),cc(t,s,e,a,n)),null;case 27:if(Vi(t),n=ve.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&zn(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return ke(t),null}e=te.current,La(t)?sh(t):(e=qg(s,a,n),t.stateNode=e,zn(t))}return ke(t),null;case 5:if(Vi(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&zn(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return ke(t),null}if(o=te.current,La(t))sh(t);else{var d=Ju(ve.current);switch(o){case 1:o=d.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:o=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":o=d.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":o=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":o=d.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof a.is=="string"?d.createElement("select",{is:a.is}):d.createElement("select"),a.multiple?o.multiple=!0:a.size&&(o.size=a.size);break;default:o=typeof a.is=="string"?d.createElement(s,{is:a.is}):d.createElement(s)}}o[ut]=t,o[bt]=a;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)o.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=o;e:switch(ft(o,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&zn(t)}}return ke(t),cc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&zn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=ve.current,La(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,s=st,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}e[ut]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Tg(e.nodeValue,n)),e||tl(t,!0)}else e=Ju(e).createTextNode(a),e[ut]=t,t.stateNode=e}return ke(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=La(t),n!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ut]=t}else Xl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else n=xo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(qt(t),t):(qt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return ke(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=La(t),a!==null&&a.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[ut]=t}else Xl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),s=!1}else s=xo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(qt(t),t):(qt(t),null)}return qt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==s&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),_u(t,t.updateQueue),ke(t),null);case 4:return $e(),e===null&&Dc(t.stateNode.containerInfo),ke(t),null;case 10:return An(t.type),ke(t),null;case 19:if(B(Fe),a=t.memoizedState,a===null)return ke(t),null;if(s=(t.flags&128)!==0,o=a.rendering,o===null)if(s)ni(a,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=xu(e),o!==null){for(t.flags|=128,ni(a,!1),e=o.updateQueue,t.updateQueue=e,_u(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)lh(n,e),n=n.sibling;return P(Fe,Fe.current&1|2),we&&Tn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Mt()>Hu&&(t.flags|=128,s=!0,ni(a,!1),t.lanes=4194304)}else{if(!s)if(e=xu(o),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,_u(t,e),ni(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!we)return ke(t),null}else 2*Mt()-a.renderingStartTime>Hu&&n!==536870912&&(t.flags|=128,s=!0,ni(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=Mt(),e.sibling=null,n=Fe.current,P(Fe,s?n&1|2:n&1),we&&Tn(t,a.treeForkCount),e):(ke(t),null);case 22:case 23:return qt(t),_o(),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&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),n=t.updateQueue,n!==null&&_u(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&&B(Jl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),An(Pe),ke(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function P0(e,t){switch(vo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return An(Pe),$e(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Vi(t),null;case 31:if(t.memoizedState!==null){if(qt(t),t.alternate===null)throw Error(u(340));Xl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Xl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Fe),null;case 4:return $e(),null;case 10:return An(t.type),null;case 22:case 23:return qt(t),_o(),e!==null&&B(Jl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return An(Pe),null;case 25:return null;default:return null}}function Mm(e,t){switch(vo(t),t.tag){case 3:An(Pe),$e();break;case 26:case 27:case 5:Vi(t);break;case 4:$e();break;case 31:t.memoizedState!==null&&qt(t);break;case 13:qt(t);break;case 19:B(Fe);break;case 10:An(t.type);break;case 22:case 23:qt(t),_o(),e!==null&&B(Jl);break;case 24:An(Pe)}}function li(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&e)===e){a=void 0;var o=n.create,d=n.inst;a=o(),d.destroy=a}n=n.next}while(n!==s)}}catch(v){De(t,t.return,v)}}function sl(e,t,n){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var o=s.next;a=o;do{if((a.tag&e)===e){var d=a.inst,v=d.destroy;if(v!==void 0){d.destroy=void 0,s=t;var N=n,_=v;try{_()}catch(X){De(s,N,X)}}}a=a.next}while(a!==o)}}catch(X){De(t,t.return,X)}}function zm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Sh(t,n)}catch(a){De(e,e.return,a)}}}function Dm(e,t,n){n.props=Il(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){De(e,t,a)}}function ai(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(s){De(e,t,s)}}function gn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){De(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){De(e,t,s)}else n.current=null}function _m(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(s){De(e,e.return,s)}}function fc(e,t,n){try{var a=e.stateNode;xb(a,e.type,n,t),a[bt]=t}catch(s){De(e,e.return,s)}}function Um(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&gl(e.type)||e.tag===4}function dc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Um(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&&gl(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 hc(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=En));else if(a!==4&&(a===27&&gl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(hc(e,t,n),e=e.sibling;e!==null;)hc(e,t,n),e=e.sibling}function Uu(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&&gl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Uu(e,t,n),e=e.sibling;e!==null;)Uu(e,t,n),e=e.sibling}function Lm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);ft(t,a,n),t[ut]=e,t[bt]=n}catch(o){De(e,e.return,o)}}var Dn=!1,tt=!1,mc=!1,qm=typeof WeakSet=="function"?WeakSet:Set,rt=null;function I0(e,t){if(e=e.containerInfo,Lc=ts,e=Jd(e),io(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 s=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var d=0,v=-1,N=-1,_=0,X=0,K=e,U=null;t:for(;;){for(var q;K!==n||s!==0&&K.nodeType!==3||(v=d+s),K!==o||a!==0&&K.nodeType!==3||(N=d+a),K.nodeType===3&&(d+=K.nodeValue.length),(q=K.firstChild)!==null;)U=K,K=q;for(;;){if(K===e)break t;if(U===n&&++_===s&&(v=d),U===o&&++X===a&&(N=d),(q=K.nextSibling)!==null)break;K=U,U=K.parentNode}K=q}n=v===-1||N===-1?null:{start:v,end:N}}else n=null}n=n||{start:0,end:0}}else n=null;for(qc={focusedElem:e,selectionRange:n},ts=!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++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,s=o.memoizedProps,o=o.memoizedState,a=n.stateNode;try{var ne=Il(n.type,s);e=a.getSnapshotBeforeUpdate(ne,o),a.__reactInternalSnapshotBeforeUpdate=e}catch(oe){De(n,n.return,oe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Bc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Bc(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(u(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:Un(e,n),a&4&&li(5,n);break;case 1:if(Un(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){De(n,n.return,d)}else{var s=Il(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){De(n,n.return,d)}}a&64&&zm(n),a&512&&ai(n,n.return);break;case 3:if(Un(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{Sh(e,t)}catch(d){De(n,n.return,d)}}break;case 27:t===null&&a&4&&Lm(n);case 26:case 5:Un(e,n),t===null&&a&4&&_m(n),a&512&&ai(n,n.return);break;case 12:Un(e,n);break;case 31:Un(e,n),a&4&&km(e,n);break;case 13:Un(e,n),a&4&&Qm(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=sb.bind(null,n),Ob(e,n))));break;case 22:if(a=n.memoizedState!==null||Dn,!a){t=t!==null&&t.memoizedState!==null||tt,s=Dn;var o=tt;Dn=a,(tt=t)&&!o?Ln(e,n,(n.subtreeFlags&8772)!==0):Un(e,n),Dn=s,tt=o}break;case 30:break;default:Un(e,n)}}function Hm(e){var t=e.alternate;t!==null&&(e.alternate=null,Hm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Gs(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 Ye=null,St=!1;function _n(e,t,n){for(n=n.child;n!==null;)Bm(e,t,n),n=n.sibling}function Bm(e,t,n){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(Or,n)}catch{}switch(n.tag){case 26:tt||gn(n,t),_n(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:tt||gn(n,t);var a=Ye,s=St;gl(n.type)&&(Ye=n.stateNode,St=!1),_n(e,t,n),hi(n.stateNode),Ye=a,St=s;break;case 5:tt||gn(n,t);case 6:if(a=Ye,s=St,Ye=null,_n(e,t,n),Ye=a,St=s,Ye!==null)if(St)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(n.stateNode)}catch(o){De(n,t,o)}else try{Ye.removeChild(n.stateNode)}catch(o){De(n,t,o)}break;case 18:Ye!==null&&(St?(e=Ye,zg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),nr(e)):zg(Ye,n.stateNode));break;case 4:a=Ye,s=St,Ye=n.stateNode.containerInfo,St=!0,_n(e,t,n),Ye=a,St=s;break;case 0:case 11:case 14:case 15:sl(2,n,t),tt||sl(4,n,t),_n(e,t,n);break;case 1:tt||(gn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Dm(n,t,a)),_n(e,t,n);break;case 21:_n(e,t,n);break;case 22:tt=(a=tt)||n.memoizedState!==null,_n(e,t,n),tt=a;break;default:_n(e,t,n)}}function km(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{nr(e)}catch(n){De(t,t.return,n)}}}function Qm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{nr(e)}catch(n){De(t,t.return,n)}}function eb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new qm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new qm),t;default:throw Error(u(435,e.tag))}}function Lu(e,t){var n=eb(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var s=ob.bind(null,e,a);a.then(s,s)}})}function Et(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var s=n[a],o=e,d=t,v=d;e:for(;v!==null;){switch(v.tag){case 27:if(gl(v.type)){Ye=v.stateNode,St=!1;break e}break;case 5:Ye=v.stateNode,St=!1;break e;case 3:case 4:Ye=v.stateNode.containerInfo,St=!0;break e}v=v.return}if(Ye===null)throw Error(u(160));Bm(o,d,s),Ye=null,St=!1,o=s.alternate,o!==null&&(o.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ym(t,e),t=t.sibling}var un=null;function Ym(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Et(t,e),wt(e),a&4&&(sl(3,e,e.return),li(3,e),sl(5,e,e.return));break;case 1:Et(t,e),wt(e),a&512&&(tt||n===null||gn(n,n.return)),a&64&&Dn&&(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 s=un;if(Et(t,e),wt(e),a&512&&(tt||n===null||gn(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,s=s.ownerDocument||s;t:switch(a){case"title":o=s.getElementsByTagName("title")[0],(!o||o[zr]||o[ut]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=s.createElement(a),s.head.insertBefore(o,s.querySelector("head > title"))),ft(o,a,n),o[ut]=e,at(o),a=o;break e;case"link":var d=Yg("link","href",s).get(a+(n.href||""));if(d){for(var v=0;v<d.length;v++)if(o=d[v],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)){d.splice(v,1);break t}}o=s.createElement(a),ft(o,a,n),s.head.appendChild(o);break;case"meta":if(d=Yg("meta","content",s).get(a+(n.content||""))){for(v=0;v<d.length;v++)if(o=d[v],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)){d.splice(v,1);break t}}o=s.createElement(a),ft(o,a,n),s.head.appendChild(o);break;default:throw Error(u(468,a))}o[ut]=e,at(o),a=o}e.stateNode=a}else Gg(s,e.type,e.stateNode);else e.stateNode=Qg(s,a,e.memoizedProps);else o!==a?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,a===null?Gg(s,e.type,e.stateNode):Qg(s,a,e.memoizedProps)):a===null&&e.stateNode!==null&&fc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Et(t,e),wt(e),a&512&&(tt||n===null||gn(n,n.return)),n!==null&&a&4&&fc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Et(t,e),wt(e),a&512&&(tt||n===null||gn(n,n.return)),e.flags&32){s=e.stateNode;try{Ta(s,"")}catch(ne){De(e,e.return,ne)}}a&4&&e.stateNode!=null&&(s=e.memoizedProps,fc(e,s,n!==null?n.memoizedProps:s)),a&1024&&(mc=!0);break;case 6:if(Et(t,e),wt(e),a&4){if(e.stateNode===null)throw Error(u(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(ne){De(e,e.return,ne)}}break;case 3:if(Wu=null,s=un,un=$u(t.containerInfo),Et(t,e),un=s,wt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{nr(t.containerInfo)}catch(ne){De(e,e.return,ne)}mc&&(mc=!1,Gm(e));break;case 4:a=un,un=$u(e.stateNode.containerInfo),Et(t,e),wt(e),un=a;break;case 12:Et(t,e),wt(e);break;case 31:Et(t,e),wt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Lu(e,a)));break;case 13:Et(t,e),wt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ju=Mt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Lu(e,a)));break;case 22:s=e.memoizedState!==null;var N=n!==null&&n.memoizedState!==null,_=Dn,X=tt;if(Dn=_||s,tt=X||N,Et(t,e),tt=X,Dn=_,wt(e),a&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||N||Dn||tt||ea(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){N=n=t;try{if(o=N.stateNode,s)d=o.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{v=N.stateNode;var K=N.memoizedProps.style,U=K!=null&&K.hasOwnProperty("display")?K.display:null;v.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(ne){De(N,N.return,ne)}}}else if(t.tag===6){if(n===null){N=t;try{N.stateNode.nodeValue=s?"":N.memoizedProps}catch(ne){De(N,N.return,ne)}}}else if(t.tag===18){if(n===null){N=t;try{var q=N.stateNode;s?Dg(q,!0):Dg(N.stateNode,!1)}catch(ne){De(N,N.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,Lu(e,n))));break;case 19:Et(t,e),wt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Lu(e,a)));break;case 30:break;case 21:break;default:Et(t,e),wt(e)}}function wt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Um(a)){n=a;break}a=a.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var s=n.stateNode,o=dc(e);Uu(e,o,s);break;case 5:var d=n.stateNode;n.flags&32&&(Ta(d,""),n.flags&=-33);var v=dc(e);Uu(e,v,d);break;case 3:case 4:var N=n.stateNode.containerInfo,_=dc(e);hc(e,_,N);break;default:throw Error(u(161))}}catch(X){De(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Gm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)jm(e,t.alternate,t),t=t.sibling}function ea(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:sl(4,t,t.return),ea(t);break;case 1:gn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Dm(t,t.return,n),ea(t);break;case 27:hi(t.stateNode);case 26:case 5:gn(t,t.return),ea(t);break;case 22:t.memoizedState===null&&ea(t);break;case 30:ea(t);break;default:ea(t)}e=e.sibling}}function Ln(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,s=e,o=t,d=o.flags;switch(o.tag){case 0:case 11:case 15:Ln(s,o,n),li(4,o);break;case 1:if(Ln(s,o,n),a=o,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(_){De(a,a.return,_)}if(a=o,s=a.updateQueue,s!==null){var v=a.stateNode;try{var N=s.shared.hiddenCallbacks;if(N!==null)for(s.shared.hiddenCallbacks=null,s=0;s<N.length;s++)xh(N[s],v)}catch(_){De(a,a.return,_)}}n&&d&64&&zm(o),ai(o,o.return);break;case 27:Lm(o);case 26:case 5:Ln(s,o,n),n&&a===null&&d&4&&_m(o),ai(o,o.return);break;case 12:Ln(s,o,n);break;case 31:Ln(s,o,n),n&&d&4&&km(s,o);break;case 13:Ln(s,o,n),n&&d&4&&Qm(s,o);break;case 22:o.memoizedState===null&&Ln(s,o,n),ai(o,o.return);break;case 30:break;default:Ln(s,o,n)}t=t.sibling}}function gc(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&&Vr(n))}function pc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Vr(e))}function sn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Vm(e,t,n,a),t=t.sibling}function Vm(e,t,n,a){var s=t.flags;switch(t.tag){case 0:case 11:case 15:sn(e,t,n,a),s&2048&&li(9,t);break;case 1:sn(e,t,n,a);break;case 3:sn(e,t,n,a),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Vr(e)));break;case 12:if(s&2048){sn(e,t,n,a),e=t.stateNode;try{var o=t.memoizedProps,d=o.id,v=o.onPostCommit;typeof v=="function"&&v(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){De(t,t.return,N)}}else sn(e,t,n,a);break;case 31:sn(e,t,n,a);break;case 13:sn(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,d=t.alternate,t.memoizedState!==null?o._visibility&2?sn(e,t,n,a):ri(e,t):o._visibility&2?sn(e,t,n,a):(o._visibility|=2,Xa(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),s&2048&&gc(d,t);break;case 24:sn(e,t,n,a),s&2048&&pc(t.alternate,t);break;default:sn(e,t,n,a)}}function Xa(e,t,n,a,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,d=t,v=n,N=a,_=d.flags;switch(d.tag){case 0:case 11:case 15:Xa(o,d,v,N,s),li(8,d);break;case 23:break;case 22:var X=d.stateNode;d.memoizedState!==null?X._visibility&2?Xa(o,d,v,N,s):ri(o,d):(X._visibility|=2,Xa(o,d,v,N,s)),s&&_&2048&&gc(d.alternate,d);break;case 24:Xa(o,d,v,N,s),s&&_&2048&&pc(d.alternate,d);break;default:Xa(o,d,v,N,s)}t=t.sibling}}function ri(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,s=a.flags;switch(a.tag){case 22:ri(n,a),s&2048&&gc(a.alternate,a);break;case 24:ri(n,a),s&2048&&pc(a.alternate,a);break;default:ri(n,a)}t=t.sibling}}var ii=8192;function Za(e,t,n){if(e.subtreeFlags&ii)for(e=e.child;e!==null;)Xm(e,t,n),e=e.sibling}function Xm(e,t,n){switch(e.tag){case 26:Za(e,t,n),e.flags&ii&&e.memoizedState!==null&&kb(n,un,e.memoizedState,e.memoizedProps);break;case 5:Za(e,t,n);break;case 3:case 4:var a=un;un=$u(e.stateNode.containerInfo),Za(e,t,n),un=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ii,ii=16777216,Za(e,t,n),ii=a):Za(e,t,n));break;default:Za(e,t,n)}}function Zm(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 ui(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,Jm(a,e)}Zm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Km(e),e=e.sibling}function Km(e){switch(e.tag){case 0:case 11:case 15:ui(e),e.flags&2048&&sl(9,e,e.return);break;case 3:ui(e);break;case 12:ui(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qu(e)):ui(e);break;default:ui(e)}}function qu(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,Jm(a,e)}Zm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:sl(8,t,t.return),qu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,qu(t));break;default:qu(t)}e=e.sibling}}function Jm(e,t){for(;rt!==null;){var n=rt;switch(n.tag){case 0:case 11:case 15:sl(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:Vr(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,rt=a;else e:for(n=e;rt!==null;){a=rt;var s=a.sibling,o=a.return;if(Hm(a),a===n){rt=null;break e}if(s!==null){s.return=o,rt=s;break e}rt=o}}}var tb={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}},nb=typeof WeakMap=="function"?WeakMap:Map,Oe=0,qe=null,be=null,Se=0,ze=0,jt=null,ol=!1,Ka=!1,yc=!1,qn=0,Ze=0,cl=0,ta=0,vc=0,Ht=0,Ja=0,si=null,Nt=null,bc=!1,ju=0,$m=0,Hu=1/0,Bu=null,fl=null,nt=0,dl=null,$a=null,jn=0,xc=0,Sc=null,Fm=null,oi=0,Ec=null;function Bt(){return(Oe&2)!==0&&Se!==0?Se&-Se:z.T!==null?Oc():dd()}function Wm(){if(Ht===0)if((Se&536870912)===0||we){var e=Ki;Ki<<=1,(Ki&3932160)===0&&(Ki=262144),Ht=e}else Ht=536870912;return e=Lt.current,e!==null&&(e.flags|=32),Ht}function Tt(e,t,n){(e===qe&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(Fa(e,0),hl(e,Se,Ht,!1)),Mr(e,n),((Oe&2)===0||e!==qe)&&(e===qe&&((Oe&2)===0&&(ta|=n),Ze===4&&hl(e,Se,Ht,!1)),pn(e))}function Pm(e,t,n){if((Oe&6)!==0)throw Error(u(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Rr(e,t),s=a?rb(e,t):Nc(e,t,!0),o=a;do{if(s===0){Ka&&!a&&hl(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!lb(n)){s=Nc(e,t,!1),o=!1;continue}if(s===2){if(o=t,e.errorRecoveryDisabledLanes&o)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var v=e;s=si;var N=v.current.memoizedState.isDehydrated;if(N&&(Fa(v,d).flags|=256),d=Nc(v,d,!1),d!==2){if(yc&&!N){v.errorRecoveryDisabledLanes|=o,ta|=o,s=4;break e}o=Nt,Nt=s,o!==null&&(Nt===null?Nt=o:Nt.push.apply(Nt,o))}s=d}if(o=!1,s!==2)continue}}if(s===1){Fa(e,0),hl(e,t,0,!0);break}e:{switch(a=e,o=s,o){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:hl(a,t,Ht,!ol);break e;case 2:Nt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=ju+300-Mt(),10<s)){if(hl(a,t,Ht,!ol),$i(a,0,!0)!==0)break e;jn=t,a.timeoutHandle=Rg(Im.bind(null,a,n,Nt,Bu,bc,t,Ht,ta,Ja,ol,o,"Throttled",-0,0),s);break e}Im(a,n,Nt,Bu,bc,t,Ht,ta,Ja,ol,o,null,-0,0)}}break}while(!0);pn(e)}function Im(e,t,n,a,s,o,d,v,N,_,X,K,U,q){if(e.timeoutHandle=-1,K=t.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:En},Xm(t,o,K);var ne=(o&62914560)===o?ju-Mt():(o&4194048)===o?$m-Mt():0;if(ne=Qb(K,ne),ne!==null){jn=o,e.cancelPendingCommit=ne(ug.bind(null,e,t,o,n,a,s,d,v,N,X,K,null,U,q)),hl(e,o,d,!_);return}}ug(e,t,o,n,a,s,d,v,N)}function lb(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 s=n[a],o=s.getSnapshot;s=s.value;try{if(!_t(o(),s))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 hl(e,t,n,a){t&=~vc,t&=~ta,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var s=t;0<s;){var o=31-Dt(s),d=1<<o;a[o]=-1,s&=~d}n!==0&&od(e,n,t)}function ku(){return(Oe&6)===0?(ci(0),!1):!0}function wc(){if(be!==null){if(ze===0)var e=be.return;else e=be,Cn=Zl=null,Bo(e),ka=null,Zr=0,e=be;for(;e!==null;)Mm(e.alternate,e),e=e.return;be=null}}function Fa(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,wb(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),jn=0,wc(),qe=e,be=n=Nn(e.current,null),Se=t,ze=0,jt=null,ol=!1,Ka=Rr(e,t),yc=!1,Ja=Ht=vc=ta=cl=Ze=0,Nt=si=null,bc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var s=31-Dt(a),o=1<<s;t|=e[s],a&=~o}return qn=t,uu(),n}function eg(e,t){he=null,z.H=ei,t===Ba||t===gu?(t=ph(),ze=3):t===Ao?(t=ph(),ze=4):ze=t===tc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,be===null&&(Ze=1,Ru(e,Kt(t,e.current)))}function tg(){var e=Lt.current;return e===null?!0:(Se&4194048)===Se?Wt===null:(Se&62914560)===Se||(Se&536870912)!==0?e===Wt:!1}function ng(){var e=z.H;return z.H=ei,e===null?ei:e}function lg(){var e=z.A;return z.A=tb,e}function Qu(){Ze=4,ol||(Se&4194048)!==Se&&Lt.current!==null||(Ka=!0),(cl&134217727)===0&&(ta&134217727)===0||qe===null||hl(qe,Se,Ht,!1)}function Nc(e,t,n){var a=Oe;Oe|=2;var s=ng(),o=lg();(qe!==e||Se!==t)&&(Bu=null,Fa(e,t)),t=!1;var d=Ze;e:do try{if(ze!==0&&be!==null){var v=be,N=jt;switch(ze){case 8:wc(),d=6;break e;case 3:case 2:case 9:case 6:Lt.current===null&&(t=!0);var _=ze;if(ze=0,jt=null,Wa(e,v,N,_),n&&Ka){d=0;break e}break;default:_=ze,ze=0,jt=null,Wa(e,v,N,_)}}ab(),d=Ze;break}catch(X){eg(e,X)}while(!0);return t&&e.shellSuspendCounter++,Cn=Zl=null,Oe=a,z.H=s,z.A=o,be===null&&(qe=null,Se=0,uu()),d}function ab(){for(;be!==null;)ag(be)}function rb(e,t){var n=Oe;Oe|=2;var a=ng(),s=lg();qe!==e||Se!==t?(Bu=null,Hu=Mt()+500,Fa(e,t)):Ka=Rr(e,t);e:do try{if(ze!==0&&be!==null){t=be;var o=jt;t:switch(ze){case 1:ze=0,jt=null,Wa(e,t,o,1);break;case 2:case 9:if(mh(o)){ze=0,jt=null,rg(t);break}t=function(){ze!==2&&ze!==9||qe!==e||(ze=7),pn(e)},o.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:mh(o)?(ze=0,jt=null,rg(t)):(ze=0,jt=null,Wa(e,t,o,7));break;case 5:var d=null;switch(be.tag){case 26:d=be.memoizedState;case 5:case 27:var v=be;if(d?Vg(d):v.stateNode.complete){ze=0,jt=null;var N=v.sibling;if(N!==null)be=N;else{var _=v.return;_!==null?(be=_,Yu(_)):be=null}break t}}ze=0,jt=null,Wa(e,t,o,5);break;case 6:ze=0,jt=null,Wa(e,t,o,6);break;case 8:wc(),Ze=6;break e;default:throw Error(u(462))}}ib();break}catch(X){eg(e,X)}while(!0);return Cn=Zl=null,z.H=a,z.A=s,Oe=n,be!==null?0:(qe=null,Se=0,uu(),Ze)}function ib(){for(;be!==null&&!Rv();)ag(be)}function ag(e){var t=Om(e.alternate,e,qn);e.memoizedProps=e.pendingProps,t===null?Yu(e):be=t}function rg(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Em(n,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=Em(n,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:Bo(t);default:Mm(n,t),t=be=lh(t,qn),t=Om(n,t,qn)}e.memoizedProps=e.pendingProps,t===null?Yu(e):be=t}function Wa(e,t,n,a){Cn=Zl=null,Bo(t),ka=null,Zr=0;var s=t.return;try{if(J0(e,s,t,n,Se)){Ze=1,Ru(e,Kt(n,e.current)),be=null;return}}catch(o){if(s!==null)throw be=s,o;Ze=1,Ru(e,Kt(n,e.current)),be=null;return}t.flags&32768?(we||a===1?e=!0:Ka||(Se&536870912)!==0?e=!1:(ol=e=!0,(a===2||a===9||a===3||a===6)&&(a=Lt.current,a!==null&&a.tag===13&&(a.flags|=16384))),ig(t,e)):Yu(t)}function Yu(e){var t=e;do{if((t.flags&32768)!==0){ig(t,ol);return}e=t.return;var n=W0(t.alternate,t,qn);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 ig(e,t){do{var n=P0(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 ug(e,t,n,a,s,o,d,v,N){e.cancelPendingCommit=null;do Gu();while(nt!==0);if((Oe&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(o=t.lanes|t.childLanes,o|=fo,Bv(e,n,o,d,v,N),e===qe&&(be=qe=null,Se=0),$a=t,dl=e,jn=n,xc=o,Sc=s,Fm=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,cb(Xi,function(){return dg(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=z.T,z.T=null,s=F.p,F.p=2,d=Oe,Oe|=4;try{I0(e,t,n)}finally{Oe=d,F.p=s,z.T=a}}nt=1,sg(),og(),cg()}}function sg(){if(nt===1){nt=0;var e=dl,t=$a,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=z.T,z.T=null;var a=F.p;F.p=2;var s=Oe;Oe|=4;try{Ym(t,e);var o=qc,d=Jd(e.containerInfo),v=o.focusedElem,N=o.selectionRange;if(d!==v&&v&&v.ownerDocument&&Kd(v.ownerDocument.documentElement,v)){if(N!==null&&io(v)){var _=N.start,X=N.end;if(X===void 0&&(X=_),"selectionStart"in v)v.selectionStart=_,v.selectionEnd=Math.min(X,v.value.length);else{var K=v.ownerDocument||document,U=K&&K.defaultView||window;if(U.getSelection){var q=U.getSelection(),ne=v.textContent.length,oe=Math.min(N.start,ne),Le=N.end===void 0?oe:Math.min(N.end,ne);!q.extend&&oe>Le&&(d=Le,Le=oe,oe=d);var A=Zd(v,oe),C=Zd(v,Le);if(A&&C&&(q.rangeCount!==1||q.anchorNode!==A.node||q.anchorOffset!==A.offset||q.focusNode!==C.node||q.focusOffset!==C.offset)){var D=K.createRange();D.setStart(A.node,A.offset),q.removeAllRanges(),oe>Le?(q.addRange(D),q.extend(C.node,C.offset)):(D.setEnd(C.node,C.offset),q.addRange(D))}}}}for(K=[],q=v;q=q.parentNode;)q.nodeType===1&&K.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<K.length;v++){var Z=K[v];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}ts=!!Lc,qc=Lc=null}finally{Oe=s,F.p=a,z.T=n}}e.current=t,nt=2}}function og(){if(nt===2){nt=0;var e=dl,t=$a,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=z.T,z.T=null;var a=F.p;F.p=2;var s=Oe;Oe|=4;try{jm(e,t.alternate,t)}finally{Oe=s,F.p=a,z.T=n}}nt=3}}function cg(){if(nt===4||nt===3){nt=0,Mv();var e=dl,t=$a,n=jn,a=Fm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,$a=dl=null,fg(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(fl=null),Qs(n),t=t.stateNode,zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(Or,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=z.T,s=F.p,F.p=2,z.T=null;try{for(var o=e.onRecoverableError,d=0;d<a.length;d++){var v=a[d];o(v.value,{componentStack:v.stack})}}finally{z.T=t,F.p=s}}(jn&3)!==0&&Gu(),pn(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?e===Ec?oi++:(oi=0,Ec=e):oi=0,ci(0)}}function fg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Vr(t)))}function Gu(){return sg(),og(),cg(),dg()}function dg(){if(nt!==5)return!1;var e=dl,t=xc;xc=0;var n=Qs(jn),a=z.T,s=F.p;try{F.p=32>n?32:n,z.T=null,n=Sc,Sc=null;var o=dl,d=jn;if(nt=0,$a=dl=null,jn=0,(Oe&6)!==0)throw Error(u(331));var v=Oe;if(Oe|=4,Km(o.current),Vm(o,o.current,d,n),Oe=v,ci(0,!1),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(Or,o)}catch{}return!0}finally{F.p=s,z.T=a,fg(e,t)}}function hg(e,t,n){t=Kt(n,t),t=ec(e.stateNode,t,2),e=rl(e,t,2),e!==null&&(Mr(e,2),pn(e))}function De(e,t,n){if(e.tag===3)hg(e,e,n);else for(;t!==null;){if(t.tag===3){hg(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(fl===null||!fl.has(a))){e=Kt(n,e),n=mm(2),a=rl(t,n,2),a!==null&&(gm(n,a,t,e),Mr(a,2),pn(a));break}}t=t.return}}function Tc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new nb;var s=new Set;a.set(t,s)}else s=a.get(t),s===void 0&&(s=new Set,a.set(t,s));s.has(n)||(yc=!0,s.add(n),e=ub.bind(null,e,t,n),t.then(e,e))}function ub(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,qe===e&&(Se&n)===n&&(Ze===4||Ze===3&&(Se&62914560)===Se&&300>Mt()-ju?(Oe&2)===0&&Fa(e,0):vc|=n,Ja===Se&&(Ja=0)),pn(e)}function mg(e,t){t===0&&(t=sd()),e=Gl(e,t),e!==null&&(Mr(e,t),pn(e))}function sb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mg(e,n)}function ob(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),mg(e,n)}function cb(e,t){return js(e,t)}var Vu=null,Pa=null,Cc=!1,Xu=!1,Ac=!1,ml=0;function pn(e){e!==Pa&&e.next===null&&(Pa===null?Vu=Pa=e:Pa=Pa.next=e),Xu=!0,Cc||(Cc=!0,db())}function ci(e,t){if(!Ac&&Xu){Ac=!0;do for(var n=!1,a=Vu;a!==null;){if(e!==0){var s=a.pendingLanes;if(s===0)var o=0;else{var d=a.suspendedLanes,v=a.pingedLanes;o=(1<<31-Dt(42|e)+1)-1,o&=s&~(d&~v),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,vg(a,o))}else o=Se,o=$i(a,a===qe?o:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(o&3)===0||Rr(a,o)||(n=!0,vg(a,o));a=a.next}while(n);Ac=!1}}function fb(){gg()}function gg(){Xu=Cc=!1;var e=0;ml!==0&&Eb()&&(e=ml);for(var t=Mt(),n=null,a=Vu;a!==null;){var s=a.next,o=pg(a,t);o===0?(a.next=null,n===null?Vu=s:n.next=s,s===null&&(Pa=n)):(n=a,(e!==0||(o&3)!==0)&&(Xu=!0)),a=s}nt!==0&&nt!==5||ci(e),ml!==0&&(ml=0)}function pg(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,s=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var d=31-Dt(o),v=1<<d,N=s[d];N===-1?((v&n)===0||(v&a)!==0)&&(s[d]=Hv(v,t)):N<=t&&(e.expiredLanes|=v),o&=~v}if(t=qe,n=Se,n=$i(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Hs(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Rr(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Hs(a),Qs(n)){case 2:case 8:n=id;break;case 32:n=Xi;break;case 268435456:n=ud;break;default:n=Xi}return a=yg.bind(null,e),n=js(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Hs(a),e.callbackPriority=2,e.callbackNode=null,2}function yg(e,t){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Gu()&&e.callbackNode!==n)return null;var a=Se;return a=$i(e,e===qe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Pm(e,a,t),pg(e,Mt()),e.callbackNode!=null&&e.callbackNode===n?yg.bind(null,e):null)}function vg(e,t){if(Gu())return null;Pm(e,t,!0)}function db(){Nb(function(){(Oe&6)!==0?js(rd,fb):gg()})}function Oc(){if(ml===0){var e=ja;e===0&&(e=Zi,Zi<<=1,(Zi&261888)===0&&(Zi=256)),ml=e}return ml}function bg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ii(""+e)}function xg(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 hb(e,t,n,a,s){if(t==="submit"&&n&&n.stateNode===s){var o=bg((s[bt]||null).action),d=a.submitter;d&&(t=(t=d[bt]||null)?bg(t.formAction):d.getAttribute("formAction"),t!==null&&(o=t,d=null));var v=new lu("action","action",null,a,s);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ml!==0){var N=d?xg(s,d):new FormData(s);Jo(n,{pending:!0,data:N,method:s.method,action:o},null,N)}}else typeof o=="function"&&(v.preventDefault(),N=d?xg(s,d):new FormData(s),Jo(n,{pending:!0,data:N,method:s.method,action:o},o,N))},currentTarget:s}]})}}for(var Rc=0;Rc<co.length;Rc++){var Mc=co[Rc],mb=Mc.toLowerCase(),gb=Mc[0].toUpperCase()+Mc.slice(1);rn(mb,"on"+gb)}rn(Wd,"onAnimationEnd"),rn(Pd,"onAnimationIteration"),rn(Id,"onAnimationStart"),rn("dblclick","onDoubleClick"),rn("focusin","onFocus"),rn("focusout","onBlur"),rn(z0,"onTransitionRun"),rn(D0,"onTransitionStart"),rn(_0,"onTransitionCancel"),rn(eh,"onTransitionEnd"),wa("onMouseEnter",["mouseout","mouseover"]),wa("onMouseLeave",["mouseout","mouseover"]),wa("onPointerEnter",["pointerout","pointerover"]),wa("onPointerLeave",["pointerout","pointerover"]),Bl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fi="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(" "),pb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fi));function Sg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],s=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var d=a.length-1;0<=d;d--){var v=a[d],N=v.instance,_=v.currentTarget;if(v=v.listener,N!==o&&s.isPropagationStopped())break e;o=v,s.currentTarget=_;try{o(s)}catch(X){iu(X)}s.currentTarget=null,o=N}else for(d=0;d<a.length;d++){if(v=a[d],N=v.instance,_=v.currentTarget,v=v.listener,N!==o&&s.isPropagationStopped())break e;o=v,s.currentTarget=_;try{o(s)}catch(X){iu(X)}s.currentTarget=null,o=N}}}}function xe(e,t){var n=t[Ys];n===void 0&&(n=t[Ys]=new Set);var a=e+"__bubble";n.has(a)||(Eg(t,e,2,!1),n.add(a))}function zc(e,t,n){var a=0;t&&(a|=4),Eg(n,e,a,t)}var Zu="_reactListening"+Math.random().toString(36).slice(2);function Dc(e){if(!e[Zu]){e[Zu]=!0,gd.forEach(function(n){n!=="selectionchange"&&(pb.has(n)||zc(n,!1,e),zc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zu]||(t[Zu]=!0,zc("selectionchange",!1,t))}}function Eg(e,t,n,a){switch(Wg(t)){case 2:var s=Vb;break;case 8:s=Xb;break;default:s=Kc}n=s.bind(null,t,n,e),s=void 0,!Ws||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),a?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function _c(e,t,n,a,s){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var d=a.tag;if(d===3||d===4){var v=a.stateNode.containerInfo;if(v===s)break;if(d===4)for(d=a.return;d!==null;){var N=d.tag;if((N===3||N===4)&&d.stateNode.containerInfo===s)return;d=d.return}for(;v!==null;){if(d=xa(v),d===null)return;if(N=d.tag,N===5||N===6||N===26||N===27){a=o=d;continue e}v=v.parentNode}}a=a.return}Ad(function(){var _=o,X=$s(n),K=[];e:{var U=th.get(e);if(U!==void 0){var q=lu,ne=e;switch(e){case"keypress":if(tu(n)===0)break e;case"keydown":case"keyup":q=o0;break;case"focusin":ne="focus",q=to;break;case"focusout":ne="blur",q=to;break;case"beforeblur":case"afterblur":q=to;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":q=Md;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=Wv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=d0;break;case Wd:case Pd:case Id:q=e0;break;case eh:q=m0;break;case"scroll":case"scrollend":q=$v;break;case"wheel":q=p0;break;case"copy":case"cut":case"paste":q=n0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=Dd;break;case"toggle":case"beforetoggle":q=v0}var oe=(t&4)!==0,Le=!oe&&(e==="scroll"||e==="scrollend"),A=oe?U!==null?U+"Capture":null:U;oe=[];for(var C=_,D;C!==null;){var Z=C;if(D=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||D===null||A===null||(Z=_r(C,A),Z!=null&&oe.push(di(C,Z,D))),Le)break;C=C.return}0<oe.length&&(U=new q(U,ne,null,n,X),K.push({event:U,listeners:oe}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",U&&n!==Js&&(ne=n.relatedTarget||n.fromElement)&&(xa(ne)||ne[ba]))break e;if((q||U)&&(U=X.window===X?X:(U=X.ownerDocument)?U.defaultView||U.parentWindow:window,q?(ne=n.relatedTarget||n.toElement,q=_,ne=ne?xa(ne):null,ne!==null&&(Le=f(ne),oe=ne.tag,ne!==Le||oe!==5&&oe!==27&&oe!==6)&&(ne=null)):(q=null,ne=_),q!==ne)){if(oe=Md,Z="onMouseLeave",A="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(oe=Dd,Z="onPointerLeave",A="onPointerEnter",C="pointer"),Le=q==null?U:Dr(q),D=ne==null?U:Dr(ne),U=new oe(Z,C+"leave",q,n,X),U.target=Le,U.relatedTarget=D,Z=null,xa(X)===_&&(oe=new oe(A,C+"enter",ne,n,X),oe.target=D,oe.relatedTarget=Le,Z=oe),Le=Z,q&&ne)t:{for(oe=yb,A=q,C=ne,D=0,Z=A;Z;Z=oe(Z))D++;Z=0;for(var ue=C;ue;ue=oe(ue))Z++;for(;0<D-Z;)A=oe(A),D--;for(;0<Z-D;)C=oe(C),Z--;for(;D--;){if(A===C||C!==null&&A===C.alternate){oe=A;break t}A=oe(A),C=oe(C)}oe=null}else oe=null;q!==null&&wg(K,U,q,oe,!1),ne!==null&&Le!==null&&wg(K,Le,ne,oe,!0)}}e:{if(U=_?Dr(_):window,q=U.nodeName&&U.nodeName.toLowerCase(),q==="select"||q==="input"&&U.type==="file")var Ce=kd;else if(Hd(U))if(Qd)Ce=O0;else{Ce=C0;var le=T0}else q=U.nodeName,!q||q.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?_&&Ks(_.elementType)&&(Ce=kd):Ce=A0;if(Ce&&(Ce=Ce(e,_))){Bd(K,Ce,n,X);break e}le&&le(e,U,_),e==="focusout"&&_&&U.type==="number"&&_.memoizedProps.value!=null&&Zs(U,"number",U.value)}switch(le=_?Dr(_):window,e){case"focusin":(Hd(le)||le.contentEditable==="true")&&(Ra=le,uo=_,Qr=null);break;case"focusout":Qr=uo=Ra=null;break;case"mousedown":so=!0;break;case"contextmenu":case"mouseup":case"dragend":so=!1,$d(K,n,X);break;case"selectionchange":if(M0)break;case"keydown":case"keyup":$d(K,n,X)}var me;if(lo)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else Oa?qd(e,n)&&(Ee="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ee="onCompositionStart");Ee&&(_d&&n.locale!=="ko"&&(Oa||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&Oa&&(me=Od()):(Pn=X,Ps="value"in Pn?Pn.value:Pn.textContent,Oa=!0)),le=Ku(_,Ee),0<le.length&&(Ee=new zd(Ee,e,null,n,X),K.push({event:Ee,listeners:le}),me?Ee.data=me:(me=jd(n),me!==null&&(Ee.data=me)))),(me=x0?S0(e,n):E0(e,n))&&(Ee=Ku(_,"onBeforeInput"),0<Ee.length&&(le=new zd("onBeforeInput","beforeinput",null,n,X),K.push({event:le,listeners:Ee}),le.data=me)),hb(K,e,_,n,X)}Sg(K,t)})}function di(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ku(e,t){for(var n=t+"Capture",a=[];e!==null;){var s=e,o=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||o===null||(s=_r(e,n),s!=null&&a.unshift(di(e,s,o)),s=_r(e,t),s!=null&&a.push(di(e,s,o))),e.tag===3)return a;e=e.return}return[]}function yb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function wg(e,t,n,a,s){for(var o=t._reactName,d=[];n!==null&&n!==a;){var v=n,N=v.alternate,_=v.stateNode;if(v=v.tag,N!==null&&N===a)break;v!==5&&v!==26&&v!==27||_===null||(N=_,s?(_=_r(n,o),_!=null&&d.unshift(di(n,_,N))):s||(_=_r(n,o),_!=null&&d.push(di(n,_,N)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var vb=/\r\n?/g,bb=/\u0000|\uFFFD/g;function Ng(e){return(typeof e=="string"?e:""+e).replace(vb,`
|
|
49
|
-
`).replace(bb,"")}function Tg(e,t){return t=Ng(t),Ng(e)===t}function Ue(e,t,n,a,s,o){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ta(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ta(e,""+a);break;case"className":Wi(e,"class",a);break;case"tabIndex":Wi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Wi(e,n,a);break;case"style":Td(e,a,o);break;case"data":if(t!=="object"){Wi(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=Ii(""+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"&&Ue(e,t,"name",s.name,s,null),Ue(e,t,"formEncType",s.formEncType,s,null),Ue(e,t,"formMethod",s.formMethod,s,null),Ue(e,t,"formTarget",s.formTarget,s,null)):(Ue(e,t,"encType",s.encType,s,null),Ue(e,t,"method",s.method,s,null),Ue(e,t,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Ii(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=En);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(u(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(u(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=Ii(""+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),Fi(e,"popover",a);break;case"xlinkActuate":Sn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Sn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Sn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Sn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Sn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Sn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Fi(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=Kv.get(n)||n,Fi(e,n,a))}}function Uc(e,t,n,a,s,o){switch(n){case"style":Td(e,a,o);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Ta(e,a):(typeof a=="number"||typeof a=="bigint")&&Ta(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=En);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pd.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),o=e[bt]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,s),typeof a=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,s);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Fi(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,s=!1,o;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(d!=null)switch(o){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ue(e,t,o,d,n,null)}}s&&Ue(e,t,"srcSet",n.srcSet,n,null),a&&Ue(e,t,"src",n.src,n,null);return;case"input":xe("invalid",e);var v=o=d=s=null,N=null,_=null;for(a in n)if(n.hasOwnProperty(a)){var X=n[a];if(X!=null)switch(a){case"name":s=X;break;case"type":d=X;break;case"checked":N=X;break;case"defaultChecked":_=X;break;case"value":o=X;break;case"defaultValue":v=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(u(137,t));break;default:Ue(e,t,a,X,n,null)}}Sd(e,o,v,N,_,d,s,!1);return;case"select":xe("invalid",e),a=d=o=null;for(s in n)if(n.hasOwnProperty(s)&&(v=n[s],v!=null))switch(s){case"value":o=v;break;case"defaultValue":d=v;break;case"multiple":a=v;default:Ue(e,t,s,v,n,null)}t=o,n=d,e.multiple=!!a,t!=null?Na(e,!!a,t,!1):n!=null&&Na(e,!!a,n,!0);return;case"textarea":xe("invalid",e),o=s=a=null;for(d in n)if(n.hasOwnProperty(d)&&(v=n[d],v!=null))switch(d){case"value":a=v;break;case"defaultValue":s=v;break;case"children":o=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(u(91));break;default:Ue(e,t,d,v,n,null)}wd(e,a,s,o);return;case"option":for(N in n)if(n.hasOwnProperty(N)&&(a=n[N],a!=null))switch(N){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ue(e,t,N,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<fi.length;a++)xe(fi[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(_ in n)if(n.hasOwnProperty(_)&&(a=n[_],a!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ue(e,t,_,a,n,null)}return;default:if(Ks(t)){for(X in n)n.hasOwnProperty(X)&&(a=n[X],a!==void 0&&Uc(e,t,X,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&Ue(e,t,v,a,n,null))}function xb(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 s=null,o=null,d=null,v=null,N=null,_=null,X=null;for(q in n){var K=n[q];if(n.hasOwnProperty(q)&&K!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":N=K;default:a.hasOwnProperty(q)||Ue(e,t,q,null,a,K)}}for(var U in a){var q=a[U];if(K=n[U],a.hasOwnProperty(U)&&(q!=null||K!=null))switch(U){case"type":o=q;break;case"name":s=q;break;case"checked":_=q;break;case"defaultChecked":X=q;break;case"value":d=q;break;case"defaultValue":v=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(u(137,t));break;default:q!==K&&Ue(e,t,U,q,a,K)}}Xs(e,d,v,N,_,X,o,s);return;case"select":q=d=v=U=null;for(o in n)if(N=n[o],n.hasOwnProperty(o)&&N!=null)switch(o){case"value":break;case"multiple":q=N;default:a.hasOwnProperty(o)||Ue(e,t,o,null,a,N)}for(s in a)if(o=a[s],N=n[s],a.hasOwnProperty(s)&&(o!=null||N!=null))switch(s){case"value":U=o;break;case"defaultValue":v=o;break;case"multiple":d=o;default:o!==N&&Ue(e,t,s,o,a,N)}t=v,n=d,a=q,U!=null?Na(e,!!n,U,!1):!!a!=!!n&&(t!=null?Na(e,!!n,t,!0):Na(e,!!n,n?[]:"",!1));return;case"textarea":q=U=null;for(v in n)if(s=n[v],n.hasOwnProperty(v)&&s!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ue(e,t,v,null,a,s)}for(d in a)if(s=a[d],o=n[d],a.hasOwnProperty(d)&&(s!=null||o!=null))switch(d){case"value":U=s;break;case"defaultValue":q=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==o&&Ue(e,t,d,s,a,o)}Ed(e,U,q);return;case"option":for(var ne in n)if(U=n[ne],n.hasOwnProperty(ne)&&U!=null&&!a.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:Ue(e,t,ne,null,a,U)}for(N in a)if(U=a[N],q=n[N],a.hasOwnProperty(N)&&U!==q&&(U!=null||q!=null))switch(N){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Ue(e,t,N,U,a,q)}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 oe in n)U=n[oe],n.hasOwnProperty(oe)&&U!=null&&!a.hasOwnProperty(oe)&&Ue(e,t,oe,null,a,U);for(_ in a)if(U=a[_],q=n[_],a.hasOwnProperty(_)&&U!==q&&(U!=null||q!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(u(137,t));break;default:Ue(e,t,_,U,a,q)}return;default:if(Ks(t)){for(var Le in n)U=n[Le],n.hasOwnProperty(Le)&&U!==void 0&&!a.hasOwnProperty(Le)&&Uc(e,t,Le,void 0,a,U);for(X in a)U=a[X],q=n[X],!a.hasOwnProperty(X)||U===q||U===void 0&&q===void 0||Uc(e,t,X,U,a,q);return}}for(var A in n)U=n[A],n.hasOwnProperty(A)&&U!=null&&!a.hasOwnProperty(A)&&Ue(e,t,A,null,a,U);for(K in a)U=a[K],q=n[K],!a.hasOwnProperty(K)||U===q||U==null&&q==null||Ue(e,t,K,U,a,q)}function Cg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Sb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var s=n[a],o=s.transferSize,d=s.initiatorType,v=s.duration;if(o&&v&&Cg(d)){for(d=0,v=s.responseEnd,a+=1;a<n.length;a++){var N=n[a],_=N.startTime;if(_>v)break;var X=N.transferSize,K=N.initiatorType;X&&Cg(K)&&(N=N.responseEnd,d+=X*(N<v?1:(v-_)/(N-_)))}if(--a,t+=8*(o+d)/(s.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 Lc=null,qc=null;function Ju(e){return e.nodeType===9?e:e.ownerDocument}function Ag(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 Og(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 jc(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 Hc=null;function Eb(){var e=window.event;return e&&e.type==="popstate"?e===Hc?!1:(Hc=e,!0):(Hc=null,!1)}var Rg=typeof setTimeout=="function"?setTimeout:void 0,wb=typeof clearTimeout=="function"?clearTimeout:void 0,Mg=typeof Promise=="function"?Promise:void 0,Nb=typeof queueMicrotask=="function"?queueMicrotask:typeof Mg<"u"?function(e){return Mg.resolve(null).then(e).catch(Tb)}:Rg;function Tb(e){setTimeout(function(){throw e})}function gl(e){return e==="head"}function zg(e,t){var n=t,a=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(s),nr(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")hi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,hi(n);for(var o=n.firstChild;o;){var d=o.nextSibling,v=o.nodeName;o[zr]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=d}}else n==="body"&&hi(e.ownerDocument.body);n=s}while(n);nr(t)}function Dg(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 Bc(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":Bc(n),Gs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Cb(e,t,n,a){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[zr])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!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Pt(e.nextSibling),e===null)break}return null}function Ab(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Pt(e.nextSibling),e===null))return null;return e}function _g(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Pt(e.nextSibling),e===null))return null;return e}function kc(e){return e.data==="$?"||e.data==="$~"}function Qc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Ob(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 Pt(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 Yc=null;function Ug(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Pt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Lg(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 qg(e,t,n){switch(t=Ju(n),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function hi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Gs(e)}var It=new Map,jg=new Set;function $u(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Hn=F.d;F.d={f:Rb,r:Mb,D:zb,C:Db,L:_b,m:Ub,X:qb,S:Lb,M:jb};function Rb(){var e=Hn.f(),t=ku();return e||t}function Mb(e){var t=Sa(e);t!==null&&t.tag===5&&t.type==="form"?em(t):Hn.r(e)}var Ia=typeof document>"u"?null:document;function Hg(e,t,n){var a=Ia;if(a&&typeof t=="string"&&t){var s=Xt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),jg.has(s)||(jg.add(s),e={rel:e,crossOrigin:n,href:t},a.querySelector(s)===null&&(t=a.createElement("link"),ft(t,"link",e),at(t),a.head.appendChild(t)))}}function zb(e){Hn.D(e),Hg("dns-prefetch",e,null)}function Db(e,t){Hn.C(e,t),Hg("preconnect",e,t)}function _b(e,t,n){Hn.L(e,t,n);var a=Ia;if(a&&e&&t){var s='link[rel="preload"][as="'+Xt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Xt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Xt(n.imageSizes)+'"]')):s+='[href="'+Xt(e)+'"]';var o=s;switch(t){case"style":o=er(e);break;case"script":o=tr(e)}It.has(o)||(e=S({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),It.set(o,e),a.querySelector(s)!==null||t==="style"&&a.querySelector(mi(o))||t==="script"&&a.querySelector(gi(o))||(t=a.createElement("link"),ft(t,"link",e),at(t),a.head.appendChild(t)))}}function Ub(e,t){Hn.m(e,t);var n=Ia;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Xt(a)+'"][href="'+Xt(e)+'"]',o=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=tr(e)}if(!It.has(o)&&(e=S({rel:"modulepreload",href:e},t),It.set(o,e),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(gi(o)))return}a=n.createElement("link"),ft(a,"link",e),at(a),n.head.appendChild(a)}}}function Lb(e,t,n){Hn.S(e,t,n);var a=Ia;if(a&&e){var s=Ea(a).hoistableStyles,o=er(e);t=t||"default";var d=s.get(o);if(!d){var v={loading:0,preload:null};if(d=a.querySelector(mi(o)))v.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},n),(n=It.get(o))&&Gc(e,n);var N=d=a.createElement("link");at(N),ft(N,"link",e),N._p=new Promise(function(_,X){N.onload=_,N.onerror=X}),N.addEventListener("load",function(){v.loading|=1}),N.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Fu(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:v},s.set(o,d)}}}function qb(e,t){Hn.X(e,t);var n=Ia;if(n&&e){var a=Ea(n).hoistableScripts,s=tr(e),o=a.get(s);o||(o=n.querySelector(gi(s)),o||(e=S({src:e,async:!0},t),(t=It.get(s))&&Vc(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(s,o))}}function jb(e,t){Hn.M(e,t);var n=Ia;if(n&&e){var a=Ea(n).hoistableScripts,s=tr(e),o=a.get(s);o||(o=n.querySelector(gi(s)),o||(e=S({src:e,async:!0,type:"module"},t),(t=It.get(s))&&Vc(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(s,o))}}function Bg(e,t,n,a){var s=(s=ve.current)?$u(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=er(n.href),n=Ea(s).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=er(n.href);var o=Ea(s).hoistableStyles,d=o.get(e);if(d||(s=s.ownerDocument||s,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,d),(o=s.querySelector(mi(e)))&&!o._p&&(d.instance=o,d.state.loading=5),It.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},It.set(e,n),o||Hb(s,e,n,d.state))),t&&a===null)throw Error(u(528,""));return d}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=tr(n),n=Ea(s).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(u(444,e))}}function er(e){return'href="'+Xt(e)+'"'}function mi(e){return'link[rel="stylesheet"]['+e+"]"}function kg(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function Hb(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 tr(e){return'[src="'+Xt(e)+'"]'}function gi(e){return"script[async]"+e}function Qg(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Xt(n.href)+'"]');if(a)return t.instance=a,at(a),a;var s=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",s),Fu(a,n.precedence,e),t.instance=a;case"stylesheet":s=er(n.href);var o=e.querySelector(mi(s));if(o)return t.state.loading|=4,t.instance=o,at(o),o;a=kg(n),(s=It.get(s))&&Gc(a,s),o=(e.ownerDocument||e).createElement("link"),at(o);var d=o;return d._p=new Promise(function(v,N){d.onload=v,d.onerror=N}),ft(o,"link",a),t.state.loading|=4,Fu(o,n.precedence,e),t.instance=o;case"script":return o=tr(n.src),(s=e.querySelector(gi(o)))?(t.instance=s,at(s),s):(a=n,(s=It.get(o))&&(a=S({},n),Vc(a,s)),e=e.ownerDocument||e,s=e.createElement("script"),at(s),ft(s,"link",a),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Fu(a,n.precedence,e));return t.instance}function Fu(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,o=s,d=0;d<a.length;d++){var v=a[d];if(v.dataset.precedence===t)o=v;else if(o!==s)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Gc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Vc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Wu=null;function Yg(e,t,n){if(Wu===null){var a=new Map,s=Wu=new Map;s.set(n,a)}else s=Wu,a=s.get(n),a||(a=new Map,s.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var o=n[s];if(!(o[zr]||o[ut]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var d=o.getAttribute(t)||"";d=e+d;var v=a.get(d);v?v.push(o):a.set(d,[o])}}return a}function Gg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Bb(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 Vg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function kb(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 s=er(a.href),o=t.querySelector(mi(s));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Pu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,at(o);return}o=t.ownerDocument||t,a=kg(a),(s=It.get(s))&&Gc(a,s),o=o.createElement("link"),at(o);var d=o;d._p=new Promise(function(v,N){d.onload=v,d.onerror=N}),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=Pu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Xc=0;function Qb(e,t){return e.stylesheets&&e.count===0&&es(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&es(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Xc===0&&(Xc=62500*Sb());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&es(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Xc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function Pu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)es(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Iu=null;function es(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Iu=new Map,t.forEach(Yb,e),Iu=null,Pu.call(e))}function Yb(e,t){if(!(t.state.loading&4)){var n=Iu.get(e);if(n)var a=n.get(null);else{n=new Map,Iu.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<s.length;o++){var d=s[o];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),a=d)}a&&n.set(null,a)}s=t.instance,d=s.getAttribute("data-precedence"),o=n.get(d)||a,o===a&&n.set(null,s),n.set(d,s),this.count++,a=Pu.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),o?o.parentNode.insertBefore(s,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var pi={$$typeof:k,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function Gb(e,t,n,a,s,o,d,v,N){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=Bs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bs(0),this.hiddenUpdates=Bs(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=o,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function Xg(e,t,n,a,s,o,d,v,N,_,X,K){return e=new Gb(e,t,n,d,N,_,X,K,v),t=1,o===!0&&(t|=24),o=Ut(3,null,null,t),e.current=o,o.stateNode=e,t=No(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:a,isDehydrated:n,cache:t},Oo(o),e}function Zg(e){return e?(e=Da,e):Da}function Kg(e,t,n,a,s,o){s=Zg(s),a.context===null?a.context=s:a.pendingContext=s,a=al(t),a.payload={element:n},o=o===void 0?null:o,o!==null&&(a.callback=o),n=rl(e,a,t),n!==null&&(Tt(n,e,t),Jr(n,e,t))}function Jg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Zc(e,t){Jg(e,t),(e=e.alternate)&&Jg(e,t)}function $g(e){if(e.tag===13||e.tag===31){var t=Gl(e,67108864);t!==null&&Tt(t,e,67108864),Zc(e,67108864)}}function Fg(e){if(e.tag===13||e.tag===31){var t=Bt();t=ks(t);var n=Gl(e,t);n!==null&&Tt(n,e,t),Zc(e,t)}}var ts=!0;function Vb(e,t,n,a){var s=z.T;z.T=null;var o=F.p;try{F.p=2,Kc(e,t,n,a)}finally{F.p=o,z.T=s}}function Xb(e,t,n,a){var s=z.T;z.T=null;var o=F.p;try{F.p=8,Kc(e,t,n,a)}finally{F.p=o,z.T=s}}function Kc(e,t,n,a){if(ts){var s=Jc(a);if(s===null)_c(e,t,a,ns,n),Pg(e,a);else if(Kb(s,e,t,n,a))a.stopPropagation();else if(Pg(e,a),t&4&&-1<Zb.indexOf(e)){for(;s!==null;){var o=Sa(s);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var d=Hl(o.pendingLanes);if(d!==0){var v=o;for(v.pendingLanes|=2,v.entangledLanes|=2;d;){var N=1<<31-Dt(d);v.entanglements[1]|=N,d&=~N}pn(o),(Oe&6)===0&&(Hu=Mt()+500,ci(0))}}break;case 31:case 13:v=Gl(o,2),v!==null&&Tt(v,o,2),ku(),Zc(o,2)}if(o=Jc(a),o===null&&_c(e,t,a,ns,n),o===s)break;s=o}s!==null&&a.stopPropagation()}else _c(e,t,a,null,n)}}function Jc(e){return e=$s(e),$c(e)}var ns=null;function $c(e){if(ns=null,e=xa(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=m(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 ns=e,null}function Wg(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(zv()){case rd:return 2;case id:return 8;case Xi:case Dv:return 32;case ud:return 268435456;default:return 32}default:return 32}}var Fc=!1,pl=null,yl=null,vl=null,yi=new Map,vi=new Map,bl=[],Zb="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 Pg(e,t){switch(e){case"focusin":case"focusout":pl=null;break;case"dragenter":case"dragleave":yl=null;break;case"mouseover":case"mouseout":vl=null;break;case"pointerover":case"pointerout":yi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vi.delete(t.pointerId)}}function bi(e,t,n,a,s,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:o,targetContainers:[s]},t!==null&&(t=Sa(t),t!==null&&$g(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Kb(e,t,n,a,s){switch(t){case"focusin":return pl=bi(pl,e,t,n,a,s),!0;case"dragenter":return yl=bi(yl,e,t,n,a,s),!0;case"mouseover":return vl=bi(vl,e,t,n,a,s),!0;case"pointerover":var o=s.pointerId;return yi.set(o,bi(yi.get(o)||null,e,t,n,a,s)),!0;case"gotpointercapture":return o=s.pointerId,vi.set(o,bi(vi.get(o)||null,e,t,n,a,s)),!0}return!1}function Ig(e){var t=xa(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,hd(e.priority,function(){Fg(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,hd(e.priority,function(){Fg(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 ls(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jc(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Js=a,n.target.dispatchEvent(a),Js=null}else return t=Sa(n),t!==null&&$g(t),e.blockedOn=n,!1;t.shift()}return!0}function ep(e,t,n){ls(e)&&n.delete(t)}function Jb(){Fc=!1,pl!==null&&ls(pl)&&(pl=null),yl!==null&&ls(yl)&&(yl=null),vl!==null&&ls(vl)&&(vl=null),yi.forEach(ep),vi.forEach(ep)}function as(e,t){e.blockedOn===t&&(e.blockedOn=null,Fc||(Fc=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Jb)))}var rs=null;function tp(e){rs!==e&&(rs=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){rs===e&&(rs=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],s=e[t+2];if(typeof a!="function"){if($c(a||n)===null)continue;break}var o=Sa(n);o!==null&&(e.splice(t,3),t-=3,Jo(o,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function nr(e){function t(N){return as(N,e)}pl!==null&&as(pl,e),yl!==null&&as(yl,e),vl!==null&&as(vl,e),yi.forEach(t),vi.forEach(t);for(var n=0;n<bl.length;n++){var a=bl[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<bl.length&&(n=bl[0],n.blockedOn===null);)Ig(n),n.blockedOn===null&&bl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],o=n[a+1],d=s[bt]||null;if(typeof o=="function")d||tp(n);else if(d){var v=null;if(o&&o.hasAttribute("formAction")){if(s=o,d=o[bt]||null)v=d.formAction;else if($c(s)!==null)continue}else v=d.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),tp(n)}}}function np(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(d){return s=d})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=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,s=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),s!==null&&(s(),s=null)}}}function Wc(e){this._internalRoot=e}is.prototype.render=Wc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var n=t.current,a=Bt();Kg(n,a,e,t,null,null)},is.prototype.unmount=Wc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Kg(e.current,2,null,e,null,null),ku(),t[ba]=null}};function is(e){this._internalRoot=e}is.prototype.unstable_scheduleHydration=function(e){if(e){var t=dd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<bl.length&&t!==0&&t<bl[n].priority;n++);bl.splice(n,0,e),n===0&&Ig(e)}};var lp=r.version;if(lp!=="19.2.0")throw Error(u(527,lp,"19.2.0"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=g(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var $b={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var us=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!us.isDisabled&&us.supportsFiber)try{Or=us.inject($b),zt=us}catch{}}return Si.createRoot=function(e,t){if(!c(e))throw Error(u(299));var n=!1,a="",s=cm,o=fm,d=dm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Xg(e,1,!1,null,null,n,a,null,s,o,d,np),e[ba]=t.current,Dc(e),new Wc(t)},Si.hydrateRoot=function(e,t,n){if(!c(e))throw Error(u(299));var a=!1,s="",o=cm,d=fm,v=dm,N=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(N=n.formState)),t=Xg(e,1,!0,t,n??null,a,s,N,o,d,v,np),t.context=Zg(null),n=t.current,a=Bt(),a=ks(a),s=al(a),s.callback=null,rl(n,s,a),n=a,t.current.lanes=n,Mr(t,n),pn(t),e[ba]=t.current,Dc(e),new is(t)},Si.version="19.2.0",Si}var mp;function i1(){if(mp)return tf.exports;mp=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(),tf.exports=r1(),tf.exports}var u1=i1();const s1=uy(u1);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(){}},o1={setTimeout:(l,r)=>setTimeout(l,r),clearTimeout:l=>clearTimeout(l),setInterval:(l,r)=>setInterval(l,r),clearInterval:l=>clearInterval(l)},Nl,Df,Fp,c1=(Fp=class{constructor(){ie(this,Nl,o1);ie(this,Df,!1)}setTimeoutProvider(l){ee(this,Nl,l)}setTimeout(l,r){return T(this,Nl).setTimeout(l,r)}clearTimeout(l){T(this,Nl).clearTimeout(l)}setInterval(l,r){return T(this,Nl).setInterval(l,r)}clearInterval(l){T(this,Nl).clearInterval(l)}},Nl=new WeakMap,Df=new WeakMap,Fp),la=new c1;function f1(l){setTimeout(l,0)}var ga=typeof window>"u"||"Deno"in globalThis;function yt(){}function d1(l,r){return typeof l=="function"?l(r):l}function hf(l){return typeof l=="number"&&l>=0&&l!==1/0}function oy(l,r){return Math.max(l+(r||0)-Date.now(),0)}function Ul(l,r){return typeof l=="function"?l(r):l}function tn(l,r){return typeof l=="function"?l(r):l}function gp(l,r){const{type:i="all",exact:u,fetchStatus:c,predicate:f,queryKey:h,stale:m}=l;if(h){if(u){if(r.queryHash!==Lf(h,r.options))return!1}else if(!Mi(r.queryKey,h))return!1}if(i!=="all"){const p=r.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof m=="boolean"&&r.isStale()!==m||c&&c!==r.state.fetchStatus||f&&!f(r))}function pp(l,r){const{exact:i,status:u,predicate:c,mutationKey:f}=l;if(f){if(!r.options.mutationKey)return!1;if(i){if(pa(r.options.mutationKey)!==pa(f))return!1}else if(!Mi(r.options.mutationKey,f))return!1}return!(u&&r.state.status!==u||c&&!c(r))}function Lf(l,r){return((r==null?void 0:r.queryKeyHashFn)||pa)(l)}function pa(l){return JSON.stringify(l,(r,i)=>mf(i)?Object.keys(i).sort().reduce((u,c)=>(u[c]=i[c],u),{}):i)}function Mi(l,r){return l===r?!0:typeof l!=typeof r?!1:l&&r&&typeof l=="object"&&typeof r=="object"?Object.keys(r).every(i=>Mi(l[i],r[i])):!1}var h1=Object.prototype.hasOwnProperty;function cy(l,r){if(l===r)return l;const i=yp(l)&&yp(r);if(!i&&!(mf(l)&&mf(r)))return r;const c=(i?l:Object.keys(l)).length,f=i?r:Object.keys(r),h=f.length,m=i?new Array(h):{};let p=0;for(let g=0;g<h;g++){const x=i?g:f[g],S=l[x],w=r[x];if(S===w){m[x]=S,(i?g<c:h1.call(l,x))&&p++;continue}if(S===null||w===null||typeof S!="object"||typeof w!="object"){m[x]=w;continue}const R=cy(S,w);m[x]=R,R===S&&p++}return c===h&&p===c?l:m}function vs(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 yp(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function mf(l){if(!vp(l))return!1;const r=l.constructor;if(r===void 0)return!0;const i=r.prototype;return!(!vp(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function vp(l){return Object.prototype.toString.call(l)==="[object Object]"}function m1(l){return new Promise(r=>{la.setTimeout(r,l)})}function gf(l,r,i){return typeof i.structuralSharing=="function"?i.structuralSharing(l,r):i.structuralSharing!==!1?cy(l,r):r}function g1(l,r,i=0){const u=[...l,r];return i&&u.length>i?u.slice(1):u}function p1(l,r,i=0){const u=[r,...l];return i&&u.length>i?u.slice(0,-1):u}var qf=Symbol();function fy(l,r){return!l.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!l.queryFn||l.queryFn===qf?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function dy(l,r){return typeof l=="function"?l(...r):!!l}var aa,Tl,ur,Wp,y1=(Wp=class extends xr{constructor(){super();ie(this,aa);ie(this,Tl);ie(this,ur);ee(this,ur,r=>{if(!ga&&window.addEventListener){const i=()=>r();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){T(this,Tl)||this.setEventListener(T(this,ur))}onUnsubscribe(){var r;this.hasListeners()||((r=T(this,Tl))==null||r.call(this),ee(this,Tl,void 0))}setEventListener(r){var i;ee(this,ur,r),(i=T(this,Tl))==null||i.call(this),ee(this,Tl,r(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()}))}setFocused(r){T(this,aa)!==r&&(ee(this,aa,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(i=>{i(r)})}isFocused(){var r;return typeof T(this,aa)=="boolean"?T(this,aa):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},aa=new WeakMap,Tl=new WeakMap,ur=new WeakMap,Wp),jf=new y1;function pf(){let l,r;const i=new Promise((c,f)=>{l=c,r=f});i.status="pending",i.catch(()=>{});function u(c){Object.assign(i,c),delete i.resolve,delete i.reject}return i.resolve=c=>{u({status:"fulfilled",value:c}),l(c)},i.reject=c=>{u({status:"rejected",reason:c}),r(c)},i}var v1=f1;function b1(){let l=[],r=0,i=m=>{m()},u=m=>{m()},c=v1;const f=m=>{r?l.push(m):c(()=>{i(m)})},h=()=>{const m=l;l=[],m.length&&c(()=>{u(()=>{m.forEach(p=>{i(p)})})})};return{batch:m=>{let p;r++;try{p=m()}finally{r--,r||h()}return p},batchCalls:m=>(...p)=>{f(()=>{m(...p)})},schedule:f,setNotifyFunction:m=>{i=m},setBatchNotifyFunction:m=>{u=m},setScheduler:m=>{c=m}}}var lt=b1(),sr,Cl,or,Pp,x1=(Pp=class extends xr{constructor(){super();ie(this,sr,!0);ie(this,Cl);ie(this,or);ee(this,or,r=>{if(!ga&&window.addEventListener){const i=()=>r(!0),u=()=>r(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",u)}}})}onSubscribe(){T(this,Cl)||this.setEventListener(T(this,or))}onUnsubscribe(){var r;this.hasListeners()||((r=T(this,Cl))==null||r.call(this),ee(this,Cl,void 0))}setEventListener(r){var i;ee(this,or,r),(i=T(this,Cl))==null||i.call(this),ee(this,Cl,r(this.setOnline.bind(this)))}setOnline(r){T(this,sr)!==r&&(ee(this,sr,r),this.listeners.forEach(u=>{u(r)}))}isOnline(){return T(this,sr)}},sr=new WeakMap,Cl=new WeakMap,or=new WeakMap,Pp),bs=new x1;function S1(l){return Math.min(1e3*2**l,3e4)}function hy(l){return(l??"online")==="online"?bs.isOnline():!0}var yf=class extends Error{constructor(l){super("CancelledError"),this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent}};function my(l){let r=!1,i=0,u;const c=pf(),f=()=>c.status!=="pending",h=M=>{var L;if(!f()){const H=new yf(M);w(H),(L=l.onCancel)==null||L.call(l,H)}},m=()=>{r=!0},p=()=>{r=!1},g=()=>jf.isFocused()&&(l.networkMode==="always"||bs.isOnline())&&l.canRun(),x=()=>hy(l.networkMode)&&l.canRun(),S=M=>{f()||(u==null||u(),c.resolve(M))},w=M=>{f()||(u==null||u(),c.reject(M))},R=()=>new Promise(M=>{var L;u=H=>{(f()||g())&&M(H)},(L=l.onPause)==null||L.call(l)}).then(()=>{var M;u=void 0,f()||(M=l.onContinue)==null||M.call(l)}),G=()=>{if(f())return;let M;const L=i===0?l.initialPromise:void 0;try{M=L??l.fn()}catch(H){M=Promise.reject(H)}Promise.resolve(M).then(S).catch(H=>{var j;if(f())return;const Q=l.retry??(ga?0:3),k=l.retryDelay??S1,V=typeof k=="function"?k(i,H):k,Y=Q===!0||typeof Q=="number"&&i<Q||typeof Q=="function"&&Q(i,H);if(r||!Y){w(H);return}i++,(j=l.onFail)==null||j.call(l,i,H),m1(V).then(()=>g()?void 0:R()).then(()=>{r?w(H):G()})})};return{promise:c,status:()=>c.status,cancel:h,continue:()=>(u==null||u(),c),cancelRetry:m,continueRetry:p,canStart:x,start:()=>(x()?G():R().then(G),c)}}var ra,Ip,gy=(Ip=class{constructor(){ie(this,ra)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hf(this.gcTime)&&ee(this,ra,la.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(ga?1/0:300*1e3))}clearGcTimeout(){T(this,ra)&&(la.clearTimeout(T(this,ra)),ee(this,ra,void 0))}},ra=new WeakMap,Ip),ia,cr,en,ua,it,Ui,sa,on,Qn,ey,E1=(ey=class extends gy{constructor(r){super();ie(this,on);ie(this,ia);ie(this,cr);ie(this,en);ie(this,ua);ie(this,it);ie(this,Ui);ie(this,sa);ee(this,sa,!1),ee(this,Ui,r.defaultOptions),this.setOptions(r.options),this.observers=[],ee(this,ua,r.client),ee(this,en,T(this,ua).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,ee(this,ia,bp(this.options)),this.state=r.state??T(this,ia),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=T(this,it))==null?void 0:r.promise}setOptions(r){if(this.options={...T(this,Ui),...r},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=bp(this.options);i.data!==void 0&&(this.setData(i.data,{updatedAt:i.dataUpdatedAt,manual:!0}),ee(this,ia,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,en).remove(this)}setData(r,i){const u=gf(this.state.data,r,this.options);return ye(this,on,Qn).call(this,{data:u,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),u}setState(r,i){ye(this,on,Qn).call(this,{type:"setState",state:r,setStateOptions:i})}cancel(r){var u,c;const i=(u=T(this,it))==null?void 0:u.promise;return(c=T(this,it))==null||c.cancel(r),i?i.then(yt).catch(yt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,ia))}isActive(){return this.observers.some(r=>tn(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(r=>Ul(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:!oy(this.state.dataUpdatedAt,r)}onFocus(){var i;const r=this.observers.find(u=>u.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(i=T(this,it))==null||i.continue()}onOnline(){var i;const r=this.observers.find(u=>u.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(i=T(this,it))==null||i.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),T(this,en).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(i=>i!==r),this.observers.length||(T(this,it)&&(T(this,sa)?T(this,it).cancel({revert:!0}):T(this,it).cancelRetry()),this.scheduleGc()),T(this,en).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ye(this,on,Qn).call(this,{type:"invalidate"})}async fetch(r,i){var p,g,x,S,w,R,G,M,L,H,Q,k;if(this.state.fetchStatus!=="idle"&&((p=T(this,it))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(T(this,it))return T(this,it).continueRetry(),T(this,it).promise}if(r&&this.setOptions(r),!this.options.queryFn){const V=this.observers.find(Y=>Y.options.queryFn);V&&this.setOptions(V.options)}const u=new AbortController,c=V=>{Object.defineProperty(V,"signal",{enumerable:!0,get:()=>(ee(this,sa,!0),u.signal)})},f=()=>{const V=fy(this.options,i),j=(()=>{const J={client:T(this,ua),queryKey:this.queryKey,meta:this.meta};return c(J),J})();return ee(this,sa,!1),this.options.persister?this.options.persister(V,j,this):V(j)},m=(()=>{const V={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:T(this,ua),state:this.state,fetchFn:f};return c(V),V})();(g=this.options.behavior)==null||g.onFetch(m,this),ee(this,cr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((x=m.fetchOptions)==null?void 0:x.meta))&&ye(this,on,Qn).call(this,{type:"fetch",meta:(S=m.fetchOptions)==null?void 0:S.meta}),ee(this,it,my({initialPromise:i==null?void 0:i.initialPromise,fn:m.fetchFn,onCancel:V=>{V instanceof yf&&V.revert&&this.setState({...T(this,cr),fetchStatus:"idle"}),u.abort()},onFail:(V,Y)=>{ye(this,on,Qn).call(this,{type:"failed",failureCount:V,error:Y})},onPause:()=>{ye(this,on,Qn).call(this,{type:"pause"})},onContinue:()=>{ye(this,on,Qn).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}));try{const V=await T(this,it).start();if(V===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(V),(R=(w=T(this,en).config).onSuccess)==null||R.call(w,V,this),(M=(G=T(this,en).config).onSettled)==null||M.call(G,V,this.state.error,this),V}catch(V){if(V instanceof yf){if(V.silent)return T(this,it).promise;if(V.revert){if(this.state.data===void 0)throw V;return this.state.data}}throw ye(this,on,Qn).call(this,{type:"error",error:V}),(H=(L=T(this,en).config).onError)==null||H.call(L,V,this),(k=(Q=T(this,en).config).onSettled)==null||k.call(Q,this.state.data,V,this),V}finally{this.scheduleGc()}}},ia=new WeakMap,cr=new WeakMap,en=new WeakMap,ua=new WeakMap,it=new WeakMap,Ui=new WeakMap,sa=new WeakMap,on=new WeakSet,Qn=function(r){const i=u=>{switch(r.type){case"failed":return{...u,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...py(u.data,this.options),fetchMeta:r.meta??null};case"success":const c={...u,data:r.data,dataUpdateCount:u.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{...u,error:f,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error"};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...r.state}}};this.state=i(this.state),lt.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),T(this,en).notify({query:this,type:"updated",action:r})})},ey);function py(l,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hy(r.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function bp(l){const r=typeof l.initialData=="function"?l.initialData():l.initialData,i=r!==void 0,u=i?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:i?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Ct,Ne,Li,gt,oa,fr,Gn,Al,qi,dr,hr,ca,fa,Ol,mr,Me,Ti,vf,bf,xf,Sf,Ef,wf,Nf,yy,ty,w1=(ty=class extends xr{constructor(r,i){super();ie(this,Me);ie(this,Ct);ie(this,Ne);ie(this,Li);ie(this,gt);ie(this,oa);ie(this,fr);ie(this,Gn);ie(this,Al);ie(this,qi);ie(this,dr);ie(this,hr);ie(this,ca);ie(this,fa);ie(this,Ol);ie(this,mr,new Set);this.options=i,ee(this,Ct,r),ee(this,Al,null),ee(this,Gn,pf()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,Ne).addObserver(this),xp(T(this,Ne),this.options)?ye(this,Me,Ti).call(this):this.updateResult(),ye(this,Me,Sf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Tf(T(this,Ne),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Tf(T(this,Ne),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ye(this,Me,Ef).call(this),ye(this,Me,wf).call(this),T(this,Ne).removeObserver(this)}setOptions(r){const i=this.options,u=T(this,Ne);if(this.options=T(this,Ct).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof tn(this.options.enabled,T(this,Ne))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ye(this,Me,Nf).call(this),T(this,Ne).setOptions(this.options),i._defaulted&&!vs(this.options,i)&&T(this,Ct).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,Ne),observer:this});const c=this.hasListeners();c&&Sp(T(this,Ne),u,this.options,i)&&ye(this,Me,Ti).call(this),this.updateResult(),c&&(T(this,Ne)!==u||tn(this.options.enabled,T(this,Ne))!==tn(i.enabled,T(this,Ne))||Ul(this.options.staleTime,T(this,Ne))!==Ul(i.staleTime,T(this,Ne)))&&ye(this,Me,vf).call(this);const f=ye(this,Me,bf).call(this);c&&(T(this,Ne)!==u||tn(this.options.enabled,T(this,Ne))!==tn(i.enabled,T(this,Ne))||f!==T(this,Ol))&&ye(this,Me,xf).call(this,f)}getOptimisticResult(r){const i=T(this,Ct).getQueryCache().build(T(this,Ct),r),u=this.createResult(i,r);return T1(this,u)&&(ee(this,gt,u),ee(this,fr,this.options),ee(this,oa,T(this,Ne).state)),u}getCurrentResult(){return T(this,gt)}trackResult(r,i){return new Proxy(r,{get:(u,c)=>(this.trackProp(c),i==null||i(c),c==="promise"&&!this.options.experimental_prefetchInRender&&T(this,Gn).status==="pending"&&T(this,Gn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(u,c))})}trackProp(r){T(this,mr).add(r)}getCurrentQuery(){return T(this,Ne)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const i=T(this,Ct).defaultQueryOptions(r),u=T(this,Ct).getQueryCache().build(T(this,Ct),i);return u.fetch().then(()=>this.createResult(u,i))}fetch(r){return ye(this,Me,Ti).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,gt)))}createResult(r,i){var W;const u=T(this,Ne),c=this.options,f=T(this,gt),h=T(this,oa),m=T(this,fr),g=r!==u?r.state:T(this,Li),{state:x}=r;let S={...x},w=!1,R;if(i._optimisticResults){const $=this.hasListeners(),ce=!$&&xp(r,i),se=$&&Sp(r,u,i,c);(ce||se)&&(S={...S,...py(x.data,r.options)}),i._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:G,errorUpdatedAt:M,status:L}=S;R=S.data;let H=!1;if(i.placeholderData!==void 0&&R===void 0&&L==="pending"){let $;f!=null&&f.isPlaceholderData&&i.placeholderData===(m==null?void 0:m.placeholderData)?($=f.data,H=!0):$=typeof i.placeholderData=="function"?i.placeholderData((W=T(this,hr))==null?void 0:W.state.data,T(this,hr)):i.placeholderData,$!==void 0&&(L="success",R=gf(f==null?void 0:f.data,$,i),w=!0)}if(i.select&&R!==void 0&&!H)if(f&&R===(h==null?void 0:h.data)&&i.select===T(this,qi))R=T(this,dr);else try{ee(this,qi,i.select),R=i.select(R),R=gf(f==null?void 0:f.data,R,i),ee(this,dr,R),ee(this,Al,null)}catch($){ee(this,Al,$)}T(this,Al)&&(G=T(this,Al),R=T(this,dr),M=Date.now(),L="error");const Q=S.fetchStatus==="fetching",k=L==="pending",V=L==="error",Y=k&&Q,j=R!==void 0,I={status:L,fetchStatus:S.fetchStatus,isPending:k,isSuccess:L==="success",isError:V,isInitialLoading:Y,isLoading:Y,data:R,dataUpdatedAt:S.dataUpdatedAt,error:G,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:Q,isRefetching:Q&&!k,isLoadingError:V&&!j,isPaused:S.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:V&&j,isStale:Hf(r,i),refetch:this.refetch,promise:T(this,Gn),isEnabled:tn(i.enabled,r)!==!1};if(this.options.experimental_prefetchInRender){const $=He=>{I.status==="error"?He.reject(I.error):I.data!==void 0&&He.resolve(I.data)},ce=()=>{const He=ee(this,Gn,I.promise=pf());$(He)},se=T(this,Gn);switch(se.status){case"pending":r.queryHash===u.queryHash&&$(se);break;case"fulfilled":(I.status==="error"||I.data!==se.value)&&ce();break;case"rejected":(I.status!=="error"||I.error!==se.reason)&&ce();break}}return I}updateResult(){const r=T(this,gt),i=this.createResult(T(this,Ne),this.options);if(ee(this,oa,T(this,Ne).state),ee(this,fr,this.options),T(this,oa).data!==void 0&&ee(this,hr,T(this,Ne)),vs(i,r))return;ee(this,gt,i);const u=()=>{if(!r)return!0;const{notifyOnChangeProps:c}=this.options,f=typeof c=="function"?c():c;if(f==="all"||!f&&!T(this,mr).size)return!0;const h=new Set(f??T(this,mr));return this.options.throwOnError&&h.add("error"),Object.keys(T(this,gt)).some(m=>{const p=m;return T(this,gt)[p]!==r[p]&&h.has(p)})};ye(this,Me,yy).call(this,{listeners:u()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ye(this,Me,Sf).call(this)}},Ct=new WeakMap,Ne=new WeakMap,Li=new WeakMap,gt=new WeakMap,oa=new WeakMap,fr=new WeakMap,Gn=new WeakMap,Al=new WeakMap,qi=new WeakMap,dr=new WeakMap,hr=new WeakMap,ca=new WeakMap,fa=new WeakMap,Ol=new WeakMap,mr=new WeakMap,Me=new WeakSet,Ti=function(r){ye(this,Me,Nf).call(this);let i=T(this,Ne).fetch(this.options,r);return r!=null&&r.throwOnError||(i=i.catch(yt)),i},vf=function(){ye(this,Me,Ef).call(this);const r=Ul(this.options.staleTime,T(this,Ne));if(ga||T(this,gt).isStale||!hf(r))return;const u=oy(T(this,gt).dataUpdatedAt,r)+1;ee(this,ca,la.setTimeout(()=>{T(this,gt).isStale||this.updateResult()},u))},bf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,Ne)):this.options.refetchInterval)??!1},xf=function(r){ye(this,Me,wf).call(this),ee(this,Ol,r),!(ga||tn(this.options.enabled,T(this,Ne))===!1||!hf(T(this,Ol))||T(this,Ol)===0)&&ee(this,fa,la.setInterval(()=>{(this.options.refetchIntervalInBackground||jf.isFocused())&&ye(this,Me,Ti).call(this)},T(this,Ol)))},Sf=function(){ye(this,Me,vf).call(this),ye(this,Me,xf).call(this,ye(this,Me,bf).call(this))},Ef=function(){T(this,ca)&&(la.clearTimeout(T(this,ca)),ee(this,ca,void 0))},wf=function(){T(this,fa)&&(la.clearInterval(T(this,fa)),ee(this,fa,void 0))},Nf=function(){const r=T(this,Ct).getQueryCache().build(T(this,Ct),this.options);if(r===T(this,Ne))return;const i=T(this,Ne);ee(this,Ne,r),ee(this,Li,r.state),this.hasListeners()&&(i==null||i.removeObserver(this),r.addObserver(this))},yy=function(r){lt.batch(()=>{r.listeners&&this.listeners.forEach(i=>{i(T(this,gt))}),T(this,Ct).getQueryCache().notify({query:T(this,Ne),type:"observerResultsUpdated"})})},ty);function N1(l,r){return tn(r.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&r.retryOnMount===!1)}function xp(l,r){return N1(l,r)||l.state.data!==void 0&&Tf(l,r,r.refetchOnMount)}function Tf(l,r,i){if(tn(r.enabled,l)!==!1&&Ul(r.staleTime,l)!=="static"){const u=typeof i=="function"?i(l):i;return u==="always"||u!==!1&&Hf(l,r)}return!1}function Sp(l,r,i,u){return(l!==r||tn(u.enabled,l)===!1)&&(!i.suspense||l.state.status!=="error")&&Hf(l,i)}function Hf(l,r){return tn(r.enabled,l)!==!1&&l.isStaleByTime(Ul(r.staleTime,l))}function T1(l,r){return!vs(l.getCurrentResult(),r)}function Ep(l){return{onFetch:(r,i)=>{var x,S,w,R,G;const u=r.options,c=(w=(S=(x=r.fetchOptions)==null?void 0:x.meta)==null?void 0:S.fetchMore)==null?void 0:w.direction,f=((R=r.state.data)==null?void 0:R.pages)||[],h=((G=r.state.data)==null?void 0:G.pageParams)||[];let m={pages:[],pageParams:[]},p=0;const g=async()=>{let M=!1;const L=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(r.signal.aborted?M=!0:r.signal.addEventListener("abort",()=>{M=!0}),r.signal)})},H=fy(r.options,r.fetchOptions),Q=async(k,V,Y)=>{if(M)return Promise.reject();if(V==null&&k.pages.length)return Promise.resolve(k);const J=(()=>{const ce={client:r.client,queryKey:r.queryKey,pageParam:V,direction:Y?"backward":"forward",meta:r.options.meta};return L(ce),ce})(),I=await H(J),{maxPages:W}=r.options,$=Y?p1:g1;return{pages:$(k.pages,I,W),pageParams:$(k.pageParams,V,W)}};if(c&&f.length){const k=c==="backward",V=k?C1:wp,Y={pages:f,pageParams:h},j=V(u,Y);m=await Q(Y,j,k)}else{const k=l??f.length;do{const V=p===0?h[0]??u.initialPageParam:wp(u,m);if(p>0&&V==null)break;m=await Q(m,V),p++}while(p<k)}return m};r.options.persister?r.fetchFn=()=>{var M,L;return(L=(M=r.options).persister)==null?void 0:L.call(M,g,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},i)}:r.fetchFn=g}}}function wp(l,{pages:r,pageParams:i}){const u=r.length-1;return r.length>0?l.getNextPageParam(r[u],r,i[u],i):void 0}function C1(l,{pages:r,pageParams:i}){var u;return r.length>0?(u=l.getPreviousPageParam)==null?void 0:u.call(l,r[0],r,i[0],i):void 0}var ji,yn,pt,da,vn,wl,ny,A1=(ny=class extends gy{constructor(r){super();ie(this,vn);ie(this,ji);ie(this,yn);ie(this,pt);ie(this,da);ee(this,ji,r.client),this.mutationId=r.mutationId,ee(this,pt,r.mutationCache),ee(this,yn,[]),this.state=r.state||vy(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){T(this,yn).includes(r)||(T(this,yn).push(r),this.clearGcTimeout(),T(this,pt).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){ee(this,yn,T(this,yn).filter(i=>i!==r)),this.scheduleGc(),T(this,pt).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){T(this,yn).length||(this.state.status==="pending"?this.scheduleGc():T(this,pt).remove(this))}continue(){var r;return((r=T(this,da))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var h,m,p,g,x,S,w,R,G,M,L,H,Q,k,V,Y,j,J,I,W;const i=()=>{ye(this,vn,wl).call(this,{type:"continue"})},u={client:T(this,ji),meta:this.options.meta,mutationKey:this.options.mutationKey};ee(this,da,my({fn:()=>this.options.mutationFn?this.options.mutationFn(r,u):Promise.reject(new Error("No mutationFn found")),onFail:($,ce)=>{ye(this,vn,wl).call(this,{type:"failed",failureCount:$,error:ce})},onPause:()=>{ye(this,vn,wl).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,pt).canRun(this)}));const c=this.state.status==="pending",f=!T(this,da).canStart();try{if(c)i();else{ye(this,vn,wl).call(this,{type:"pending",variables:r,isPaused:f}),await((m=(h=T(this,pt).config).onMutate)==null?void 0:m.call(h,r,this,u));const ce=await((g=(p=this.options).onMutate)==null?void 0:g.call(p,r,u));ce!==this.state.context&&ye(this,vn,wl).call(this,{type:"pending",context:ce,variables:r,isPaused:f})}const $=await T(this,da).start();return await((S=(x=T(this,pt).config).onSuccess)==null?void 0:S.call(x,$,r,this.state.context,this,u)),await((R=(w=this.options).onSuccess)==null?void 0:R.call(w,$,r,this.state.context,u)),await((M=(G=T(this,pt).config).onSettled)==null?void 0:M.call(G,$,null,this.state.variables,this.state.context,this,u)),await((H=(L=this.options).onSettled)==null?void 0:H.call(L,$,null,r,this.state.context,u)),ye(this,vn,wl).call(this,{type:"success",data:$}),$}catch($){try{throw await((k=(Q=T(this,pt).config).onError)==null?void 0:k.call(Q,$,r,this.state.context,this,u)),await((Y=(V=this.options).onError)==null?void 0:Y.call(V,$,r,this.state.context,u)),await((J=(j=T(this,pt).config).onSettled)==null?void 0:J.call(j,void 0,$,this.state.variables,this.state.context,this,u)),await((W=(I=this.options).onSettled)==null?void 0:W.call(I,void 0,$,r,this.state.context,u)),$}finally{ye(this,vn,wl).call(this,{type:"error",error:$})}}finally{T(this,pt).runNext(this)}}},ji=new WeakMap,yn=new WeakMap,pt=new WeakMap,da=new WeakMap,vn=new WeakSet,wl=function(r){const i=u=>{switch(r.type){case"failed":return{...u,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,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{...u,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:r.error,failureCount:u.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=i(this.state),lt.batch(()=>{T(this,yn).forEach(u=>{u.onMutationUpdate(r)}),T(this,pt).notify({mutation:this,type:"updated",action:r})})},ny);function vy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Vn,cn,Hi,ly,O1=(ly=class extends xr{constructor(r={}){super();ie(this,Vn);ie(this,cn);ie(this,Hi);this.config=r,ee(this,Vn,new Set),ee(this,cn,new Map),ee(this,Hi,0)}build(r,i,u){const c=new A1({client:r,mutationCache:this,mutationId:++ss(this,Hi)._,options:r.defaultMutationOptions(i),state:u});return this.add(c),c}add(r){T(this,Vn).add(r);const i=os(r);if(typeof i=="string"){const u=T(this,cn).get(i);u?u.push(r):T(this,cn).set(i,[r])}this.notify({type:"added",mutation:r})}remove(r){if(T(this,Vn).delete(r)){const i=os(r);if(typeof i=="string"){const u=T(this,cn).get(i);if(u)if(u.length>1){const c=u.indexOf(r);c!==-1&&u.splice(c,1)}else u[0]===r&&T(this,cn).delete(i)}}this.notify({type:"removed",mutation:r})}canRun(r){const i=os(r);if(typeof i=="string"){const u=T(this,cn).get(i),c=u==null?void 0:u.find(f=>f.state.status==="pending");return!c||c===r}else return!0}runNext(r){var u;const i=os(r);if(typeof i=="string"){const c=(u=T(this,cn).get(i))==null?void 0:u.find(f=>f!==r&&f.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){lt.batch(()=>{T(this,Vn).forEach(r=>{this.notify({type:"removed",mutation:r})}),T(this,Vn).clear(),T(this,cn).clear()})}getAll(){return Array.from(T(this,Vn))}find(r){const i={exact:!0,...r};return this.getAll().find(u=>pp(i,u))}findAll(r={}){return this.getAll().filter(i=>pp(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(yt))))}},Vn=new WeakMap,cn=new WeakMap,Hi=new WeakMap,ly);function os(l){var r;return(r=l.options.scope)==null?void 0:r.id}var Xn,Rl,At,Zn,Jn,gs,Cf,ay,R1=(ay=class extends xr{constructor(i,u){super();ie(this,Jn);ie(this,Xn);ie(this,Rl);ie(this,At);ie(this,Zn);ee(this,Xn,i),this.setOptions(u),this.bindMethods(),ye(this,Jn,gs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var c;const u=this.options;this.options=T(this,Xn).defaultMutationOptions(i),vs(this.options,u)||T(this,Xn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:T(this,At),observer:this}),u!=null&&u.mutationKey&&this.options.mutationKey&&pa(u.mutationKey)!==pa(this.options.mutationKey)?this.reset():((c=T(this,At))==null?void 0:c.state.status)==="pending"&&T(this,At).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=T(this,At))==null||i.removeObserver(this)}onMutationUpdate(i){ye(this,Jn,gs).call(this),ye(this,Jn,Cf).call(this,i)}getCurrentResult(){return T(this,Rl)}reset(){var i;(i=T(this,At))==null||i.removeObserver(this),ee(this,At,void 0),ye(this,Jn,gs).call(this),ye(this,Jn,Cf).call(this)}mutate(i,u){var c;return ee(this,Zn,u),(c=T(this,At))==null||c.removeObserver(this),ee(this,At,T(this,Xn).getMutationCache().build(T(this,Xn),this.options)),T(this,At).addObserver(this),T(this,At).execute(i)}},Xn=new WeakMap,Rl=new WeakMap,At=new WeakMap,Zn=new WeakMap,Jn=new WeakSet,gs=function(){var u;const i=((u=T(this,At))==null?void 0:u.state)??vy();ee(this,Rl,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Cf=function(i){lt.batch(()=>{var u,c,f,h,m,p,g,x;if(T(this,Zn)&&this.hasListeners()){const S=T(this,Rl).variables,w=T(this,Rl).context,R={client:T(this,Xn),meta:this.options.meta,mutationKey:this.options.mutationKey};(i==null?void 0:i.type)==="success"?((c=(u=T(this,Zn)).onSuccess)==null||c.call(u,i.data,S,w,R),(h=(f=T(this,Zn)).onSettled)==null||h.call(f,i.data,null,S,w,R)):(i==null?void 0:i.type)==="error"&&((p=(m=T(this,Zn)).onError)==null||p.call(m,i.error,S,w,R),(x=(g=T(this,Zn)).onSettled)==null||x.call(g,void 0,i.error,S,w,R))}this.listeners.forEach(S=>{S(T(this,Rl))})})},ay),bn,ry,M1=(ry=class extends xr{constructor(r={}){super();ie(this,bn);this.config=r,ee(this,bn,new Map)}build(r,i,u){const c=i.queryKey,f=i.queryHash??Lf(c,i);let h=this.get(f);return h||(h=new E1({client:r,queryKey:c,queryHash:f,options:r.defaultQueryOptions(i),state:u,defaultOptions:r.getQueryDefaults(c)}),this.add(h)),h}add(r){T(this,bn).has(r.queryHash)||(T(this,bn).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const i=T(this,bn).get(r.queryHash);i&&(r.destroy(),i===r&&T(this,bn).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){lt.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return T(this,bn).get(r)}getAll(){return[...T(this,bn).values()]}find(r){const i={exact:!0,...r};return this.getAll().find(u=>gp(i,u))}findAll(r={}){const i=this.getAll();return Object.keys(r).length>0?i.filter(u=>gp(r,u)):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()})})}},bn=new WeakMap,ry),Ke,Ml,zl,gr,pr,Dl,yr,vr,iy,z1=(iy=class{constructor(l={}){ie(this,Ke);ie(this,Ml);ie(this,zl);ie(this,gr);ie(this,pr);ie(this,Dl);ie(this,yr);ie(this,vr);ee(this,Ke,l.queryCache||new M1),ee(this,Ml,l.mutationCache||new O1),ee(this,zl,l.defaultOptions||{}),ee(this,gr,new Map),ee(this,pr,new Map),ee(this,Dl,0)}mount(){ss(this,Dl)._++,T(this,Dl)===1&&(ee(this,yr,jf.subscribe(async l=>{l&&(await this.resumePausedMutations(),T(this,Ke).onFocus())})),ee(this,vr,bs.subscribe(async l=>{l&&(await this.resumePausedMutations(),T(this,Ke).onOnline())})))}unmount(){var l,r;ss(this,Dl)._--,T(this,Dl)===0&&((l=T(this,yr))==null||l.call(this),ee(this,yr,void 0),(r=T(this,vr))==null||r.call(this),ee(this,vr,void 0))}isFetching(l){return T(this,Ke).findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return T(this,Ml).findAll({...l,status:"pending"}).length}getQueryData(l){var i;const r=this.defaultQueryOptions({queryKey:l});return(i=T(this,Ke).get(r.queryHash))==null?void 0:i.state.data}ensureQueryData(l){const r=this.defaultQueryOptions(l),i=T(this,Ke).build(this,r),u=i.state.data;return u===void 0?this.fetchQuery(l):(l.revalidateIfStale&&i.isStaleByTime(Ul(r.staleTime,i))&&this.prefetchQuery(r),Promise.resolve(u))}getQueriesData(l){return T(this,Ke).findAll(l).map(({queryKey:r,state:i})=>{const u=i.data;return[r,u]})}setQueryData(l,r,i){const u=this.defaultQueryOptions({queryKey:l}),c=T(this,Ke).get(u.queryHash),f=c==null?void 0:c.state.data,h=d1(r,f);if(h!==void 0)return T(this,Ke).build(this,u).setData(h,{...i,manual:!0})}setQueriesData(l,r,i){return lt.batch(()=>T(this,Ke).findAll(l).map(({queryKey:u})=>[u,this.setQueryData(u,r,i)]))}getQueryState(l){var i;const r=this.defaultQueryOptions({queryKey:l});return(i=T(this,Ke).get(r.queryHash))==null?void 0:i.state}removeQueries(l){const r=T(this,Ke);lt.batch(()=>{r.findAll(l).forEach(i=>{r.remove(i)})})}resetQueries(l,r){const i=T(this,Ke);return lt.batch(()=>(i.findAll(l).forEach(u=>{u.reset()}),this.refetchQueries({type:"active",...l},r)))}cancelQueries(l,r={}){const i={revert:!0,...r},u=lt.batch(()=>T(this,Ke).findAll(l).map(c=>c.cancel(i)));return Promise.all(u).then(yt).catch(yt)}invalidateQueries(l,r={}){return lt.batch(()=>(T(this,Ke).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},u=lt.batch(()=>T(this,Ke).findAll(l).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,i);return i.throwOnError||(f=f.catch(yt)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(u).then(yt)}fetchQuery(l){const r=this.defaultQueryOptions(l);r.retry===void 0&&(r.retry=!1);const i=T(this,Ke).build(this,r);return i.isStaleByTime(Ul(r.staleTime,i))?i.fetch(r):Promise.resolve(i.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(yt).catch(yt)}fetchInfiniteQuery(l){return l.behavior=Ep(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(yt).catch(yt)}ensureInfiniteQueryData(l){return l.behavior=Ep(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return bs.isOnline()?T(this,Ml).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,Ke)}getMutationCache(){return T(this,Ml)}getDefaultOptions(){return T(this,zl)}setDefaultOptions(l){ee(this,zl,l)}setQueryDefaults(l,r){T(this,gr).set(pa(l),{queryKey:l,defaultOptions:r})}getQueryDefaults(l){const r=[...T(this,gr).values()],i={};return r.forEach(u=>{Mi(l,u.queryKey)&&Object.assign(i,u.defaultOptions)}),i}setMutationDefaults(l,r){T(this,pr).set(pa(l),{mutationKey:l,defaultOptions:r})}getMutationDefaults(l){const r=[...T(this,pr).values()],i={};return r.forEach(u=>{Mi(l,u.mutationKey)&&Object.assign(i,u.defaultOptions)}),i}defaultQueryOptions(l){if(l._defaulted)return l;const r={...T(this,zl).queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return r.queryHash||(r.queryHash=Lf(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===qf&&(r.enabled=!1),r}defaultMutationOptions(l){return l!=null&&l._defaulted?l:{...T(this,zl).mutations,...(l==null?void 0:l.mutationKey)&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){T(this,Ke).clear(),T(this,Ml).clear()}},Ke=new WeakMap,Ml=new WeakMap,zl=new WeakMap,gr=new WeakMap,pr=new WeakMap,Dl=new WeakMap,yr=new WeakMap,vr=new WeakMap,iy),by=b.createContext(void 0),Sr=l=>{const r=b.useContext(by);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},D1=({client:l,children:r})=>(b.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),y(by.Provider,{value:l,children:r})),xy=b.createContext(!1),_1=()=>b.useContext(xy);xy.Provider;function U1(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var L1=b.createContext(U1()),q1=()=>b.useContext(L1),j1=(l,r)=>{(l.suspense||l.throwOnError||l.experimental_prefetchInRender)&&(r.isReset()||(l.retryOnMount=!1))},H1=l=>{b.useEffect(()=>{l.clearReset()},[l])},B1=({result:l,errorResetBoundary:r,throwOnError:i,query:u,suspense:c})=>l.isError&&!r.isReset()&&!l.isFetching&&u&&(c&&l.data===void 0||dy(i,[l.error,u])),k1=l=>{if(l.suspense){const i=c=>c==="static"?c:Math.max(c??1e3,1e3),u=l.staleTime;l.staleTime=typeof u=="function"?(...c)=>i(u(...c)):i(u),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},Q1=(l,r)=>l.isLoading&&l.isFetching&&!r,Y1=(l,r)=>(l==null?void 0:l.suspense)&&r.isPending,Np=(l,r,i)=>r.fetchOptimistic(l).catch(()=>{i.clearReset()});function G1(l,r,i){var S,w,R,G,M;const u=_1(),c=q1(),f=Sr(),h=f.defaultQueryOptions(l);(w=(S=f.getDefaultOptions().queries)==null?void 0:S._experimental_beforeQuery)==null||w.call(S,h),h._optimisticResults=u?"isRestoring":"optimistic",k1(h),j1(h,c),H1(c);const m=!f.getQueryCache().get(h.queryHash),[p]=b.useState(()=>new r(f,h)),g=p.getOptimisticResult(h),x=!u&&l.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(L=>{const H=x?p.subscribe(lt.batchCalls(L)):yt;return p.updateResult(),H},[p,x]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),b.useEffect(()=>{p.setOptions(h)},[h,p]),Y1(h,g))throw Np(h,p,c);if(B1({result:g,errorResetBoundary:c,throwOnError:h.throwOnError,query:f.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw g.error;if((G=(R=f.getDefaultOptions().queries)==null?void 0:R._experimental_afterQuery)==null||G.call(R,h,g),h.experimental_prefetchInRender&&!ga&&Q1(g,u)){const L=m?Np(h,p,c):(M=f.getQueryCache().get(h.queryHash))==null?void 0:M.promise;L==null||L.catch(yt).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?g:p.trackResult(g)}function Er(l,r){return G1(l,w1)}function Ns(l,r){const i=Sr(),[u]=b.useState(()=>new R1(i,l));b.useEffect(()=>{u.setOptions(l)},[u,l]);const c=b.useSyncExternalStore(b.useCallback(h=>u.subscribe(lt.batchCalls(h)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),f=b.useCallback((h,m)=>{u.mutate(h,m).catch(yt)},[u]);if(c.error&&dy(u.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 Tp="popstate";function V1(l={}){function r(u,c){let{pathname:f,search:h,hash:m}=u.location;return Af("",{pathname:f,search:h,hash:m},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function i(u,c){return typeof c=="string"?c:zi(c)}return Z1(r,i,null,l)}function Ge(l,r){if(l===!1||l===null||typeof l>"u")throw new Error(r)}function fn(l,r){if(!l){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function X1(){return Math.random().toString(36).substring(2,10)}function Cp(l,r){return{usr:l.state,key:l.key,idx:r}}function Af(l,r,i=null,u){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof r=="string"?wr(r):r,state:i,key:r&&r.key||u||X1()}}function zi({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 u=l.indexOf("?");u>=0&&(r.search=l.substring(u),l=l.substring(0,u)),l&&(r.pathname=l)}return r}function Z1(l,r,i,u={}){let{window:c=document.defaultView,v5Compat:f=!1}=u,h=c.history,m="POP",p=null,g=x();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function x(){return(h.state||{idx:null}).idx}function S(){m="POP";let L=x(),H=L==null?null:L-g;g=L,p&&p({action:m,location:M.location,delta:H})}function w(L,H){m="PUSH";let Q=Af(M.location,L,H);g=x()+1;let k=Cp(Q,g),V=M.createHref(Q);try{h.pushState(k,"",V)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;c.location.assign(V)}f&&p&&p({action:m,location:M.location,delta:1})}function R(L,H){m="REPLACE";let Q=Af(M.location,L,H);g=x();let k=Cp(Q,g),V=M.createHref(Q);h.replaceState(k,"",V),f&&p&&p({action:m,location:M.location,delta:0})}function G(L){return K1(L)}let M={get action(){return m},get location(){return l(c,h)},listen(L){if(p)throw new Error("A history only accepts one active listener");return c.addEventListener(Tp,S),p=L,()=>{c.removeEventListener(Tp,S),p=null}},createHref(L){return r(c,L)},createURL:G,encodeLocation(L){let H=G(L);return{pathname:H.pathname,search:H.search,hash:H.hash}},push:w,replace:R,go(L){return h.go(L)}};return M}function K1(l,r=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Ge(i,"No window.location.(origin|href) available to create URL");let u=typeof l=="string"?l:zi(l);return u=u.replace(/ $/,"%20"),!r&&u.startsWith("//")&&(u=i+u),new URL(u,i)}function Sy(l,r,i="/"){return J1(l,r,i,!1)}function J1(l,r,i,u){let c=typeof r=="string"?wr(r):r,f=$n(c.pathname||"/",i);if(f==null)return null;let h=Ey(l);$1(h);let m=null;for(let p=0;m==null&&p<h.length;++p){let g=ix(f);m=ax(h[p],g,u)}return m}function Ey(l,r=[],i=[],u="",c=!1){let f=(h,m,p=c,g)=>{let x={relativePath:g===void 0?h.path||"":g,caseSensitive:h.caseSensitive===!0,childrenIndex:m,route:h};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(u)&&p)return;Ge(x.relativePath.startsWith(u),`Absolute route path "${x.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(u.length)}let S=Kn([u,x.relativePath]),w=i.concat(x);h.children&&h.children.length>0&&(Ge(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),Ey(h.children,r,w,S,p)),!(h.path==null&&!h.index)&&r.push({path:S,score:nx(S,h.index),routesMeta:w})};return l.forEach((h,m)=>{var p;if(h.path===""||!((p=h.path)!=null&&p.includes("?")))f(h,m);else for(let g of wy(h.path))f(h,m,!0,g)}),r}function wy(l){let r=l.split("/");if(r.length===0)return[];let[i,...u]=r,c=i.endsWith("?"),f=i.replace(/\?$/,"");if(u.length===0)return c?[f,""]:[f];let h=wy(u.join("/")),m=[];return m.push(...h.map(p=>p===""?f:[f,p].join("/"))),c&&m.push(...h),m.map(p=>l.startsWith("/")&&p===""?"/":p)}function $1(l){l.sort((r,i)=>r.score!==i.score?i.score-r.score:lx(r.routesMeta.map(u=>u.childrenIndex),i.routesMeta.map(u=>u.childrenIndex)))}var F1=/^:[\w-]+$/,W1=3,P1=2,I1=1,ex=10,tx=-2,Ap=l=>l==="*";function nx(l,r){let i=l.split("/"),u=i.length;return i.some(Ap)&&(u+=tx),r&&(u+=P1),i.filter(c=>!Ap(c)).reduce((c,f)=>c+(F1.test(f)?W1:f===""?I1:ex),u)}function lx(l,r){return l.length===r.length&&l.slice(0,-1).every((u,c)=>u===r[c])?l[l.length-1]-r[r.length-1]:0}function ax(l,r,i=!1){let{routesMeta:u}=l,c={},f="/",h=[];for(let m=0;m<u.length;++m){let p=u[m],g=m===u.length-1,x=f==="/"?r:r.slice(f.length)||"/",S=xs({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},x),w=p.route;if(!S&&g&&i&&!u[u.length-1].route.index&&(S=xs({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},x)),!S)return null;Object.assign(c,S.params),h.push({params:c,pathname:Kn([f,S.pathname]),pathnameBase:cx(Kn([f,S.pathnameBase])),route:w}),S.pathnameBase!=="/"&&(f=Kn([f,S.pathnameBase]))}return h}function xs(l,r){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[i,u]=rx(l.path,l.caseSensitive,l.end),c=r.match(i);if(!c)return null;let f=c[0],h=f.replace(/(.)\/+$/,"$1"),m=c.slice(1);return{params:u.reduce((g,{paramName:x,isOptional:S},w)=>{if(x==="*"){let G=m[w]||"";h=f.slice(0,f.length-G.length).replace(/(.)\/+$/,"$1")}const R=m[w];return S&&!R?g[x]=void 0:g[x]=(R||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:h,pattern:l}}function rx(l,r=!1,i=!0){fn(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 u=[],c="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,p)=>(u.push({paramName:m,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(u.push({paramName:"*"}),c+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?c+="\\/*$":l!==""&&l!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,r?void 0:"i"),u]}function ix(l){try{return l.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return fn(!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 $n(l,r){if(r==="/")return l;if(!l.toLowerCase().startsWith(r.toLowerCase()))return null;let i=r.endsWith("/")?r.length-1:r.length,u=l.charAt(i);return u&&u!=="/"?null:l.slice(i)||"/"}function ux(l,r="/"){let{pathname:i,search:u="",hash:c=""}=typeof l=="string"?wr(l):l;return{pathname:i?i.startsWith("/")?i:sx(i,r):r,search:fx(u),hash:dx(c)}}function sx(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 rf(l,r,i,u){return`Cannot include a '${l}' character in a manually specified \`to.${r}\` field [${JSON.stringify(u)}]. 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 ox(l){return l.filter((r,i)=>i===0||r.route.path&&r.route.path.length>0)}function Bf(l){let r=ox(l);return r.map((i,u)=>u===r.length-1?i.pathname:i.pathnameBase)}function kf(l,r,i,u=!1){let c;typeof l=="string"?c=wr(l):(c={...l},Ge(!c.pathname||!c.pathname.includes("?"),rf("?","pathname","search",c)),Ge(!c.pathname||!c.pathname.includes("#"),rf("#","pathname","hash",c)),Ge(!c.search||!c.search.includes("#"),rf("#","search","hash",c)));let f=l===""||c.pathname==="",h=f?"/":c.pathname,m;if(h==null)m=i;else{let S=r.length-1;if(!u&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),S-=1;c.pathname=w.join("/")}m=S>=0?r[S]:"/"}let p=ux(c,m),g=h&&h!=="/"&&h.endsWith("/"),x=(f||h===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(g||x)&&(p.pathname+="/"),p}var Kn=l=>l.join("/").replace(/\/\/+/g,"/"),cx=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),fx=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,dx=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l;function hx(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}var Ny=["POST","PUT","PATCH","DELETE"];new Set(Ny);var mx=["GET",...Ny];new Set(mx);var Nr=b.createContext(null);Nr.displayName="DataRouter";var Ts=b.createContext(null);Ts.displayName="DataRouterState";b.createContext(!1);var Ty=b.createContext({isTransitioning:!1});Ty.displayName="ViewTransition";var gx=b.createContext(new Map);gx.displayName="Fetchers";var px=b.createContext(null);px.displayName="Await";var dn=b.createContext(null);dn.displayName="Navigation";var Bi=b.createContext(null);Bi.displayName="Location";var ln=b.createContext({outlet:null,matches:[],isDataRoute:!1});ln.displayName="Route";var Qf=b.createContext(null);Qf.displayName="RouteError";function yx(l,{relative:r}={}){Ge(Tr(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:u}=b.useContext(dn),{hash:c,pathname:f,search:h}=Qi(l,{relative:r}),m=f;return i!=="/"&&(m=f==="/"?i:Kn([i,f])),u.createHref({pathname:m,search:h,hash:c})}function Tr(){return b.useContext(Bi)!=null}function ql(){return Ge(Tr(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(Bi).location}var Cy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ay(l){b.useContext(dn).static||b.useLayoutEffect(l)}function ki(){let{isDataRoute:l}=b.useContext(ln);return l?Dx():vx()}function vx(){Ge(Tr(),"useNavigate() may be used only in the context of a <Router> component.");let l=b.useContext(Nr),{basename:r,navigator:i}=b.useContext(dn),{matches:u}=b.useContext(ln),{pathname:c}=ql(),f=JSON.stringify(Bf(u)),h=b.useRef(!1);return Ay(()=>{h.current=!0}),b.useCallback((p,g={})=>{if(fn(h.current,Cy),!h.current)return;if(typeof p=="number"){i.go(p);return}let x=kf(p,JSON.parse(f),c,g.relative==="path");l==null&&r!=="/"&&(x.pathname=x.pathname==="/"?r:Kn([r,x.pathname])),(g.replace?i.replace:i.push)(x,g.state,g)},[r,i,f,c,l])}var bx=b.createContext(null);function xx(l){let r=b.useContext(ln).outlet;return b.useMemo(()=>r&&b.createElement(bx.Provider,{value:l},r),[r,l])}function Yf(){let{matches:l}=b.useContext(ln),r=l[l.length-1];return r?r.params:{}}function Qi(l,{relative:r}={}){let{matches:i}=b.useContext(ln),{pathname:u}=ql(),c=JSON.stringify(Bf(i));return b.useMemo(()=>kf(l,JSON.parse(c),u,r==="path"),[l,c,u,r])}function Sx(l,r){return Oy(l,r)}function Oy(l,r,i,u,c){var Q;Ge(Tr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=b.useContext(dn),{matches:h}=b.useContext(ln),m=h[h.length-1],p=m?m.params:{},g=m?m.pathname:"/",x=m?m.pathnameBase:"/",S=m&&m.route;{let k=S&&S.path||"";Ry(g,!S||k.endsWith("*")||k.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${k}">) 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="${k}"> to <Route path="${k==="/"?"*":`${k}/*`}">.`)}let w=ql(),R;if(r){let k=typeof r=="string"?wr(r):r;Ge(x==="/"||((Q=k.pathname)==null?void 0:Q.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 "${k.pathname}" was given in the \`location\` prop.`),R=k}else R=w;let G=R.pathname||"/",M=G;if(x!=="/"){let k=x.replace(/^\//,"").split("/");M="/"+G.replace(/^\//,"").split("/").slice(k.length).join("/")}let L=Sy(l,{pathname:M});fn(S||L!=null,`No routes matched location "${R.pathname}${R.search}${R.hash}" `),fn(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.length-1].route.lazy!==void 0,`Matched leaf route at location "${R.pathname}${R.search}${R.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 H=Cx(L&&L.map(k=>Object.assign({},k,{params:Object.assign({},p,k.params),pathname:Kn([x,f.encodeLocation?f.encodeLocation(k.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?x:Kn([x,f.encodeLocation?f.encodeLocation(k.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathnameBase])})),h,i,u,c);return r&&H?b.createElement(Bi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...R},navigationType:"POP"}},H):H}function Ex(){let l=zx(),r=hx(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),i=l instanceof Error?l.stack:null,u="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:u},f={padding:"2px 4px",backgroundColor:u},h=null;return console.error("Error handled by React Router default ErrorBoundary:",l),h=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:f},"ErrorBoundary")," or"," ",b.createElement("code",{style:f},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},r),i?b.createElement("pre",{style:c},i):null,h)}var wx=b.createElement(Ex,null),Nx=class extends b.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?b.createElement(ln.Provider,{value:this.props.routeContext},b.createElement(Qf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Tx({routeContext:l,match:r,children:i}){let u=b.useContext(Nr);return u&&u.static&&u.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(ln.Provider,{value:l},i)}function Cx(l,r=[],i=null,u=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,h=i==null?void 0:i.errors;if(h!=null){let g=f.findIndex(x=>x.route.id&&(h==null?void 0:h[x.route.id])!==void 0);Ge(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),f=f.slice(0,Math.min(f.length,g+1))}let m=!1,p=-1;if(i)for(let g=0;g<f.length;g++){let x=f[g];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(p=g),x.route.id){let{loaderData:S,errors:w}=i,R=x.route.loader&&!S.hasOwnProperty(x.route.id)&&(!w||w[x.route.id]===void 0);if(x.route.lazy||R){m=!0,p>=0?f=f.slice(0,p+1):f=[f[0]];break}}}return f.reduceRight((g,x,S)=>{let w,R=!1,G=null,M=null;i&&(w=h&&x.route.id?h[x.route.id]:void 0,G=x.route.errorElement||wx,m&&(p<0&&S===0?(Ry("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,M=null):p===S&&(R=!0,M=x.route.hydrateFallbackElement||null)));let L=r.concat(f.slice(0,S+1)),H=()=>{let Q;return w?Q=G:R?Q=M:x.route.Component?Q=b.createElement(x.route.Component,null):x.route.element?Q=x.route.element:Q=g,b.createElement(Tx,{match:x,routeContext:{outlet:g,matches:L,isDataRoute:i!=null},children:Q})};return i&&(x.route.ErrorBoundary||x.route.errorElement||S===0)?b.createElement(Nx,{location:i.location,revalidation:i.revalidation,component:G,error:w,children:H(),routeContext:{outlet:null,matches:L,isDataRoute:!0},unstable_onError:u}):H()},null)}function Gf(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ax(l){let r=b.useContext(Nr);return Ge(r,Gf(l)),r}function Ox(l){let r=b.useContext(Ts);return Ge(r,Gf(l)),r}function Rx(l){let r=b.useContext(ln);return Ge(r,Gf(l)),r}function Vf(l){let r=Rx(l),i=r.matches[r.matches.length-1];return Ge(i.route.id,`${l} can only be used on routes that contain a unique "id"`),i.route.id}function Mx(){return Vf("useRouteId")}function zx(){var u;let l=b.useContext(Qf),r=Ox("useRouteError"),i=Vf("useRouteError");return l!==void 0?l:(u=r.errors)==null?void 0:u[i]}function Dx(){let{router:l}=Ax("useNavigate"),r=Vf("useNavigate"),i=b.useRef(!1);return Ay(()=>{i.current=!0}),b.useCallback(async(c,f={})=>{fn(i.current,Cy),i.current&&(typeof c=="number"?l.navigate(c):await l.navigate(c,{fromRouteId:r,...f}))},[l,r])}var Op={};function Ry(l,r,i){!r&&!Op[l]&&(Op[l]=!0,fn(!1,i))}b.memo(_x);function _x({routes:l,future:r,state:i,unstable_onError:u}){return Oy(l,void 0,i,u,r)}function Ux({to:l,replace:r,state:i,relative:u}){Ge(Tr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=b.useContext(dn);fn(!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}=b.useContext(ln),{pathname:h}=ql(),m=ki(),p=kf(l,Bf(f),h,u==="path"),g=JSON.stringify(p);return b.useEffect(()=>{m(JSON.parse(g),{replace:r,state:i,relative:u})},[m,g,u,r,i]),null}function My(l){return xx(l.context)}function Yn(l){Ge(!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 Lx({basename:l="/",children:r=null,location:i,navigationType:u="POP",navigator:c,static:f=!1}){Ge(!Tr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=l.replace(/^\/*/,"/"),m=b.useMemo(()=>({basename:h,navigator:c,static:f,future:{}}),[h,c,f]);typeof i=="string"&&(i=wr(i));let{pathname:p="/",search:g="",hash:x="",state:S=null,key:w="default"}=i,R=b.useMemo(()=>{let G=$n(p,h);return G==null?null:{location:{pathname:G,search:g,hash:x,state:S,key:w},navigationType:u}},[h,p,g,x,S,w,u]);return fn(R!=null,`<Router basename="${h}"> is not able to match the URL "${p}${g}${x}" because it does not start with the basename, so the <Router> won't render anything.`),R==null?null:b.createElement(dn.Provider,{value:m},b.createElement(Bi.Provider,{children:r,value:R}))}function qx({children:l,location:r}){return Sx(Of(l),r)}function Of(l,r=[]){let i=[];return b.Children.forEach(l,(u,c)=>{if(!b.isValidElement(u))return;let f=[...r,c];if(u.type===b.Fragment){i.push.apply(i,Of(u.props.children,f));return}Ge(u.type===Yn,`[${typeof u.type=="string"?u.type:u.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ge(!u.props.index||!u.props.children,"An index route cannot have child routes.");let h={id:u.props.id||f.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(h.children=Of(u.props.children,f)),i.push(h)}),i}var ps="get",ys="application/x-www-form-urlencoded";function Cs(l){return l!=null&&typeof l.tagName=="string"}function jx(l){return Cs(l)&&l.tagName.toLowerCase()==="button"}function Hx(l){return Cs(l)&&l.tagName.toLowerCase()==="form"}function Bx(l){return Cs(l)&&l.tagName.toLowerCase()==="input"}function kx(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function Qx(l,r){return l.button===0&&(!r||r==="_self")&&!kx(l)}var cs=null;function Yx(){if(cs===null)try{new FormData(document.createElement("form"),0),cs=!1}catch{cs=!0}return cs}var Gx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function uf(l){return l!=null&&!Gx.has(l)?(fn(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ys}"`),null):l}function Vx(l,r){let i,u,c,f,h;if(Hx(l)){let m=l.getAttribute("action");u=m?$n(m,r):null,i=l.getAttribute("method")||ps,c=uf(l.getAttribute("enctype"))||ys,f=new FormData(l)}else if(jx(l)||Bx(l)&&(l.type==="submit"||l.type==="image")){let m=l.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=l.getAttribute("formaction")||m.getAttribute("action");if(u=p?$n(p,r):null,i=l.getAttribute("formmethod")||m.getAttribute("method")||ps,c=uf(l.getAttribute("formenctype"))||uf(m.getAttribute("enctype"))||ys,f=new FormData(m,l),!Yx()){let{name:g,type:x,value:S}=l;if(x==="image"){let w=g?`${g}.`:"";f.append(`${w}x`,"0"),f.append(`${w}y`,"0")}else g&&f.append(g,S)}}else{if(Cs(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=ps,u=null,c=ys,h=l}return f&&c==="text/plain"&&(h=f,f=void 0),{action:u,method:i.toLowerCase(),encType:c,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Xf(l,r){if(l===!1||l===null||typeof l>"u")throw new Error(r)}function Xx(l,r,i){let u=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return u.pathname==="/"?u.pathname=`_root.${i}`:r&&$n(u.pathname,r)==="/"?u.pathname=`${r.replace(/\/$/,"")}/_root.${i}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${i}`,u}async function Zx(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 Kx(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 Jx(l,r,i){let u=await Promise.all(l.map(async c=>{let f=r.routes[c.route.id];if(f){let h=await Zx(f,i);return h.links?h.links():[]}return[]}));return Px(u.flat(1).filter(Kx).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Rp(l,r,i,u,c,f){let h=(p,g)=>i[g]?p.route.id!==i[g].route.id:!0,m=(p,g)=>{var x;return i[g].pathname!==p.pathname||((x=i[g].route.path)==null?void 0:x.endsWith("*"))&&i[g].params["*"]!==p.params["*"]};return f==="assets"?r.filter((p,g)=>h(p,g)||m(p,g)):f==="data"?r.filter((p,g)=>{var S;let x=u.routes[p.route.id];if(!x||!x.hasLoader)return!1;if(h(p,g)||m(p,g))return!0;if(p.route.shouldRevalidate){let w=p.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:p.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function $x(l,r,{includeHydrateFallback:i}={}){return Fx(l.map(u=>{let c=r.routes[u.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 Fx(l){return[...new Set(l)]}function Wx(l){let r={},i=Object.keys(l).sort();for(let u of i)r[u]=l[u];return r}function Px(l,r){let i=new Set;return new Set(r),l.reduce((u,c)=>{let f=JSON.stringify(Wx(c));return i.has(f)||(i.add(f),u.push({key:f,link:c})),u},[])}function zy(){let l=b.useContext(Nr);return Xf(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function Ix(){let l=b.useContext(Ts);return Xf(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var Zf=b.createContext(void 0);Zf.displayName="FrameworkContext";function Dy(){let l=b.useContext(Zf);return Xf(l,"You must render this element inside a <HydratedRouter> element"),l}function eS(l,r){let i=b.useContext(Zf),[u,c]=b.useState(!1),[f,h]=b.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:g,onMouseLeave:x,onTouchStart:S}=r,w=b.useRef(null);b.useEffect(()=>{if(l==="render"&&h(!0),l==="viewport"){let M=H=>{H.forEach(Q=>{h(Q.isIntersecting)})},L=new IntersectionObserver(M,{threshold:.5});return w.current&&L.observe(w.current),()=>{L.disconnect()}}},[l]),b.useEffect(()=>{if(u){let M=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(M)}}},[u]);let R=()=>{c(!0)},G=()=>{c(!1),h(!1)};return i?l!=="intent"?[f,w,{}]:[f,w,{onFocus:Ei(m,R),onBlur:Ei(p,G),onMouseEnter:Ei(g,R),onMouseLeave:Ei(x,G),onTouchStart:Ei(S,R)}]:[!1,w,{}]}function Ei(l,r){return i=>{l&&l(i),i.defaultPrevented||r(i)}}function tS({page:l,...r}){let{router:i}=zy(),u=b.useMemo(()=>Sy(i.routes,l,i.basename),[i.routes,l,i.basename]);return u?b.createElement(lS,{page:l,matches:u,...r}):null}function nS(l){let{manifest:r,routeModules:i}=Dy(),[u,c]=b.useState([]);return b.useEffect(()=>{let f=!1;return Jx(l,r,i).then(h=>{f||c(h)}),()=>{f=!0}},[l,r,i]),u}function lS({page:l,matches:r,...i}){let u=ql(),{manifest:c,routeModules:f}=Dy(),{basename:h}=zy(),{loaderData:m,matches:p}=Ix(),g=b.useMemo(()=>Rp(l,r,p,c,u,"data"),[l,r,p,c,u]),x=b.useMemo(()=>Rp(l,r,p,c,u,"assets"),[l,r,p,c,u]),S=b.useMemo(()=>{if(l===u.pathname+u.search+u.hash)return[];let G=new Set,M=!1;if(r.forEach(H=>{var k;let Q=c.routes[H.route.id];!Q||!Q.hasLoader||(!g.some(V=>V.route.id===H.route.id)&&H.route.id in m&&((k=f[H.route.id])!=null&&k.shouldRevalidate)||Q.hasClientLoader?M=!0:G.add(H.route.id))}),G.size===0)return[];let L=Xx(l,h,"data");return M&&G.size>0&&L.searchParams.set("_routes",r.filter(H=>G.has(H.route.id)).map(H=>H.route.id).join(",")),[L.pathname+L.search]},[h,m,u,c,g,r,l,f]),w=b.useMemo(()=>$x(x,c),[x,c]),R=nS(x);return b.createElement(b.Fragment,null,S.map(G=>b.createElement("link",{key:G,rel:"prefetch",as:"fetch",href:G,...i})),w.map(G=>b.createElement("link",{key:G,rel:"modulepreload",href:G,...i})),R.map(({key:G,link:M})=>b.createElement("link",{key:G,nonce:i.nonce,...M})))}function aS(...l){return r=>{l.forEach(i=>{typeof i=="function"?i(r):i!=null&&(i.current=r)})}}var _y=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{_y&&(window.__reactRouterVersion="7.9.4")}catch{}function rS({basename:l,children:r,window:i}){let u=b.useRef();u.current==null&&(u.current=V1({window:i,v5Compat:!0}));let c=u.current,[f,h]=b.useState({action:c.action,location:c.location}),m=b.useCallback(p=>{b.startTransition(()=>h(p))},[h]);return b.useLayoutEffect(()=>c.listen(m),[c,m]),b.createElement(Lx,{basename:l,children:r,location:f.location,navigationType:f.action,navigator:c})}var Uy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,As=b.forwardRef(function({onClick:r,discover:i="render",prefetch:u="none",relative:c,reloadDocument:f,replace:h,state:m,target:p,to:g,preventScrollReset:x,viewTransition:S,...w},R){let{basename:G}=b.useContext(dn),M=typeof g=="string"&&Uy.test(g),L,H=!1;if(typeof g=="string"&&M&&(L=g,_y))try{let W=new URL(window.location.href),$=g.startsWith("//")?new URL(W.protocol+g):new URL(g),ce=$n($.pathname,G);$.origin===W.origin&&ce!=null?g=ce+$.search+$.hash:H=!0}catch{fn(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let Q=yx(g,{relative:c}),[k,V,Y]=eS(u,w),j=sS(g,{replace:h,state:m,target:p,preventScrollReset:x,relative:c,viewTransition:S});function J(W){r&&r(W),W.defaultPrevented||j(W)}let I=b.createElement("a",{...w,...Y,href:L||Q,onClick:H||f?r:J,ref:aS(R,V),target:p,"data-discover":!M&&i==="render"?"true":void 0});return k&&!M?b.createElement(b.Fragment,null,I,b.createElement(tS,{page:Q})):I});As.displayName="Link";var ar=b.forwardRef(function({"aria-current":r="page",caseSensitive:i=!1,className:u="",end:c=!1,style:f,to:h,viewTransition:m,children:p,...g},x){let S=Qi(h,{relative:g.relative}),w=ql(),R=b.useContext(Ts),{navigator:G,basename:M}=b.useContext(dn),L=R!=null&&hS(S)&&m===!0,H=G.encodeLocation?G.encodeLocation(S).pathname:S.pathname,Q=w.pathname,k=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;i||(Q=Q.toLowerCase(),k=k?k.toLowerCase():null,H=H.toLowerCase()),k&&M&&(k=$n(k,M)||k);const V=H!=="/"&&H.endsWith("/")?H.length-1:H.length;let Y=Q===H||!c&&Q.startsWith(H)&&Q.charAt(V)==="/",j=k!=null&&(k===H||!c&&k.startsWith(H)&&k.charAt(H.length)==="/"),J={isActive:Y,isPending:j,isTransitioning:L},I=Y?r:void 0,W;typeof u=="function"?W=u(J):W=[u,Y?"active":null,j?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let $=typeof f=="function"?f(J):f;return b.createElement(As,{...g,"aria-current":I,className:W,ref:x,style:$,to:h,viewTransition:m},typeof p=="function"?p(J):p)});ar.displayName="NavLink";var iS=b.forwardRef(({discover:l="render",fetcherKey:r,navigate:i,reloadDocument:u,replace:c,state:f,method:h=ps,action:m,onSubmit:p,relative:g,preventScrollReset:x,viewTransition:S,...w},R)=>{let G=fS(),M=dS(m,{relative:g}),L=h.toLowerCase()==="get"?"get":"post",H=typeof m=="string"&&Uy.test(m),Q=k=>{if(p&&p(k),k.defaultPrevented)return;k.preventDefault();let V=k.nativeEvent.submitter,Y=(V==null?void 0:V.getAttribute("formmethod"))||h;G(V||k.currentTarget,{fetcherKey:r,method:Y,navigate:i,replace:c,state:f,relative:g,preventScrollReset:x,viewTransition:S})};return b.createElement("form",{ref:R,method:L,action:M,onSubmit:u?p:Q,...w,"data-discover":!H&&l==="render"?"true":void 0})});iS.displayName="Form";function uS(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ly(l){let r=b.useContext(Nr);return Ge(r,uS(l)),r}function sS(l,{target:r,replace:i,state:u,preventScrollReset:c,relative:f,viewTransition:h}={}){let m=ki(),p=ql(),g=Qi(l,{relative:f});return b.useCallback(x=>{if(Qx(x,r)){x.preventDefault();let S=i!==void 0?i:zi(p)===zi(g);m(l,{replace:S,state:u,preventScrollReset:c,relative:f,viewTransition:h})}},[p,m,g,i,u,r,l,c,f,h])}var oS=0,cS=()=>`__${String(++oS)}__`;function fS(){let{router:l}=Ly("useSubmit"),{basename:r}=b.useContext(dn),i=Mx();return b.useCallback(async(u,c={})=>{let{action:f,method:h,encType:m,formData:p,body:g}=Vx(u,r);if(c.navigate===!1){let x=c.fetcherKey||cS();await l.fetch(x,i,c.action||f,{preventScrollReset:c.preventScrollReset,formData:p,body:g,formMethod:c.method||h,formEncType:c.encType||m,flushSync:c.flushSync})}else await l.navigate(c.action||f,{preventScrollReset:c.preventScrollReset,formData:p,body:g,formMethod:c.method||h,formEncType:c.encType||m,replace:c.replace,state:c.state,fromRouteId:i,flushSync:c.flushSync,viewTransition:c.viewTransition})},[l,r,i])}function dS(l,{relative:r}={}){let{basename:i}=b.useContext(dn),u=b.useContext(ln);Ge(u,"useFormAction must be used inside a RouteContext");let[c]=u.matches.slice(-1),f={...Qi(l||".",{relative:r})},h=ql();if(l==null){f.search=h.search;let m=new URLSearchParams(f.search),p=m.getAll("index");if(p.some(x=>x==="")){m.delete("index"),p.filter(S=>S).forEach(S=>m.append("index",S));let x=m.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:Kn([i,f.pathname])),zi(f)}function hS(l,{relative:r}={}){let i=b.useContext(Ty);Ge(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=Ly("useViewTransitionState"),c=Qi(l,{relative:r});if(!i.isTransitioning)return!1;let f=$n(i.currentLocation.pathname,u)||i.currentLocation.pathname,h=$n(i.nextLocation.pathname,u)||i.nextLocation.pathname;return xs(c.pathname,h)!=null||xs(c.pathname,f)!=null}var mS=sy();/**
|
|
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 gS=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qy=(...l)=>l.filter((r,i,u)=>!!r&&r.trim()!==""&&u.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 pS={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 yS=b.forwardRef(({color:l="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:c="",children:f,iconNode:h,...m},p)=>b.createElement("svg",{ref:p,...pS,width:r,height:r,stroke:l,strokeWidth:u?Number(i)*24/Number(r):i,className:qy("lucide",c),...m},[...h.map(([g,x])=>b.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 Je=(l,r)=>{const i=b.forwardRef(({className:u,...c},f)=>b.createElement(yS,{ref:f,iconNode:r,className:qy(`lucide-${gS(l)}`,u),...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 vS=Je("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 bS=Je("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 xS=Je("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 SS=Je("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
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 ES=Je("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
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 wS=Je("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
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 Rf=Je("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"}]]);/**
|
|
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 Kf=Je("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
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 jy=Je("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"}]]);/**
|
|
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 Hy=Je("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"}]]);/**
|
|
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 NS=Je("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"}]]);/**
|
|
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 By=Je("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"}]]);/**
|
|
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 Mp=Je("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
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 TS=Je("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
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 CS=Je("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
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 AS=Je("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
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 zp=Je("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"}]]);/**
|
|
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 OS=Je("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"}]]);/**
|
|
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 ky=Je("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"}]]);/**
|
|
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 RS=Je("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"}]]);/**
|
|
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 MS=Je("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
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 Os=Je("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 zS{constructor(r){Bn(this,"ws",null);Bn(this,"url");Bn(this,"reconnectAttempts",0);Bn(this,"maxReconnectAttempts",5);Bn(this,"reconnectDelay",1e3);Bn(this,"messageId",0);Bn(this,"pendingRequests",new Map);Bn(this,"eventHandlers",new Map);if(r)this.url=r;else{const i=window.location.protocol==="https:"?"wss:":"ws:",u=window.location.host||"localhost:9500";this.url=`${i}//${u}/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=u=>{this.handleMessage(u.data)},this.ws.onerror=u=>{console.error("WebSocket error:",u),i(u)},this.ws.onclose=()=>{console.log("🔌 Disconnected from Vision Dashboard"),this.handleReconnect()}}catch(u){i(u)}})}handleMessage(r){try{const i=JSON.parse(r);if("result"in i||"error"in i){const u=i,c=this.pendingRequests.get(u.id);c&&(u.error?c.reject(new Error(u.error.message)):c.resolve(u.result),this.pendingRequests.delete(u.id))}else if("method"in i&&!("id"in i)){const u=i;this.emitEvent(u.method,u.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 u=++this.messageId,c={jsonrpc:"2.0",method:r,params:i,id:u};return new Promise((f,h)=>{this.pendingRequests.set(u,{resolve:f,reject:h}),this.ws.send(JSON.stringify(c)),setTimeout(()=>{this.pendingRequests.has(u)&&(this.pendingRequests.delete(u),h(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 u=this.eventHandlers.get(r);u&&u.delete(i)}}emitEvent(r,i){const u=this.eventHandlers.get(r);u&&u.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 sf=null;function Ot(){return sf||(sf=new zS),sf}function DS(){const[l,r]=b.useState(!1),[i,u]=b.useState(null);return b.useEffect(()=>{const c=Ot();return c.connect().then(()=>r(!0)).catch(f=>u(f)),()=>{c.close()}},[]),{connected:l,error:i}}function Jf(){return Er({queryKey:["app-status"],queryFn:async()=>await Ot().call("status"),refetchInterval:5e3})}function Qy(l){const r=Sr();return b.useEffect(()=>Ot().on("trace.new",c=>{r.setQueryData(["traces",l],(f=[])=>[c,...f].slice(0,(l==null?void 0:l.limit)??100))}),[r,l]),Er({queryKey:["traces",l],queryFn:async()=>await Ot().call("traces/list",l)})}function _S(l){return Er({queryKey:["trace",l],queryFn:async()=>l?await Ot().call("traces/get",{traceId:l}):null,enabled:!!l})}function US(){const l=Sr();return Ns({mutationFn:async()=>await Ot().call("traces/clear"),onSuccess:()=>{l.invalidateQueries({queryKey:["traces"]}),l.invalidateQueries({queryKey:["trace"]})}})}function LS(){return Ns({mutationFn:async l=>await Ot().call("traces/export",l)})}function Yy(){const l=Sr();return Ns({mutationFn:async r=>await Ot().call("traces/addClientMetrics",r),onSuccess:()=>{l.invalidateQueries({queryKey:["traces"]})}})}function qS(l){const[r,i]=b.useState([]);b.useEffect(()=>{const c=Ot(),f=h=>{i(m=>[h,...m].slice(0,(l==null?void 0:l.limit)||100))};return c.on("log.entry",f),()=>{var m;const h=(m=c.eventHandlers)==null?void 0:m.get("log.entry");h&&h.delete(f)}},[l==null?void 0:l.limit]);const u=Er({queryKey:["logs",l],queryFn:async()=>await Ot().call("logs/list",l)});return b.useEffect(()=>{u.data&&i(u.data)},[u.data]),{data:r,isLoading:u.isLoading,error:u.error,refetch:u.refetch}}function jS(){const l=Sr();return Ns({mutationFn:async()=>await Ot().call("logs/clear"),onSuccess:()=>{l.invalidateQueries({queryKey:["logs"]})}})}function HS(){return Er({queryKey:["routes"],queryFn:async()=>await Ot().call("routes/list")})}function BS(){return Er({queryKey:["services"],queryFn:async()=>await Ot().call("services/list")})}function Gy(l){var r,i,u="";if(typeof l=="string"||typeof l=="number")u+=l;else if(typeof l=="object")if(Array.isArray(l)){var c=l.length;for(r=0;r<c;r++)l[r]&&(i=Gy(l[r]))&&(u&&(u+=" "),u+=i)}else for(i in l)l[i]&&(u&&(u+=" "),u+=i);return u}function Vy(){for(var l,r,i=0,u="",c=arguments.length;i<c;i++)(l=arguments[i])&&(r=Gy(l))&&(u&&(u+=" "),u+=r);return u}const Dp=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,_p=Vy,$f=(l,r)=>i=>{var u;if((r==null?void 0:r.variants)==null)return _p(l,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:c,defaultVariants:f}=r,h=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 w=Dp(x)||Dp(S);return c[g][w]}),m=i&&Object.entries(i).reduce((g,x)=>{let[S,w]=x;return w===void 0||(g[S]=w),g},{}),p=r==null||(u=r.compoundVariants)===null||u===void 0?void 0:u.reduce((g,x)=>{let{class:S,className:w,...R}=x;return Object.entries(R).every(G=>{let[M,L]=G;return Array.isArray(L)?L.includes({...f,...m}[M]):{...f,...m}[M]===L})?[...g,S,w]:g},[]);return _p(l,h,p,i==null?void 0:i.class,i==null?void 0:i.className)},Ff="-",kS=l=>{const r=YS(l),{conflictingClassGroups:i,conflictingClassGroupModifiers:u}=l;return{getClassGroupId:h=>{const m=h.split(Ff);return m[0]===""&&m.length!==1&&m.shift(),Xy(m,r)||QS(h)},getConflictingClassGroupIds:(h,m)=>{const p=i[h]||[];return m&&u[h]?[...p,...u[h]]:p}}},Xy=(l,r)=>{var h;if(l.length===0)return r.classGroupId;const i=l[0],u=r.nextPart.get(i),c=u?Xy(l.slice(1),u):void 0;if(c)return c;if(r.validators.length===0)return;const f=l.join(Ff);return(h=r.validators.find(({validator:m})=>m(f)))==null?void 0:h.classGroupId},Up=/^\[(.+)\]$/,QS=l=>{if(Up.test(l)){const r=Up.exec(l)[1],i=r==null?void 0:r.substring(0,r.indexOf(":"));if(i)return"arbitrary.."+i}},YS=l=>{const{theme:r,prefix:i}=l,u={nextPart:new Map,validators:[]};return VS(Object.entries(l.classGroups),i).forEach(([f,h])=>{Mf(h,u,f,r)}),u},Mf=(l,r,i,u)=>{l.forEach(c=>{if(typeof c=="string"){const f=c===""?r:Lp(r,c);f.classGroupId=i;return}if(typeof c=="function"){if(GS(c)){Mf(c(u),r,i,u);return}r.validators.push({validator:c,classGroupId:i});return}Object.entries(c).forEach(([f,h])=>{Mf(h,Lp(r,f),i,u)})})},Lp=(l,r)=>{let i=l;return r.split(Ff).forEach(u=>{i.nextPart.has(u)||i.nextPart.set(u,{nextPart:new Map,validators:[]}),i=i.nextPart.get(u)}),i},GS=l=>l.isThemeGetter,VS=(l,r)=>r?l.map(([i,u])=>{const c=u.map(f=>typeof f=="string"?r+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([h,m])=>[r+h,m])):f);return[i,c]}):l,XS=l=>{if(l<1)return{get:()=>{},set:()=>{}};let r=0,i=new Map,u=new Map;const c=(f,h)=>{i.set(f,h),r++,r>l&&(r=0,u=i,i=new Map)};return{get(f){let h=i.get(f);if(h!==void 0)return h;if((h=u.get(f))!==void 0)return c(f,h),h},set(f,h){i.has(f)?i.set(f,h):c(f,h)}}},Zy="!",ZS=l=>{const{separator:r,experimentalParseClassName:i}=l,u=r.length===1,c=r[0],f=r.length,h=m=>{const p=[];let g=0,x=0,S;for(let L=0;L<m.length;L++){let H=m[L];if(g===0){if(H===c&&(u||m.slice(L,L+f)===r)){p.push(m.slice(x,L)),x=L+f;continue}if(H==="/"){S=L;continue}}H==="["?g++:H==="]"&&g--}const w=p.length===0?m:m.substring(x),R=w.startsWith(Zy),G=R?w.substring(1):w,M=S&&S>x?S-x:void 0;return{modifiers:p,hasImportantModifier:R,baseClassName:G,maybePostfixModifierPosition:M}};return i?m=>i({className:m,parseClassName:h}):h},KS=l=>{if(l.length<=1)return l;const r=[];let i=[];return l.forEach(u=>{u[0]==="["?(r.push(...i.sort(),u),i=[]):i.push(u)}),r.push(...i.sort()),r},JS=l=>({cache:XS(l.cacheSize),parseClassName:ZS(l),...kS(l)}),$S=/\s+/,FS=(l,r)=>{const{parseClassName:i,getClassGroupId:u,getConflictingClassGroupIds:c}=r,f=[],h=l.trim().split($S);let m="";for(let p=h.length-1;p>=0;p-=1){const g=h[p],{modifiers:x,hasImportantModifier:S,baseClassName:w,maybePostfixModifierPosition:R}=i(g);let G=!!R,M=u(G?w.substring(0,R):w);if(!M){if(!G){m=g+(m.length>0?" "+m:m);continue}if(M=u(w),!M){m=g+(m.length>0?" "+m:m);continue}G=!1}const L=KS(x).join(":"),H=S?L+Zy:L,Q=H+M;if(f.includes(Q))continue;f.push(Q);const k=c(M,G);for(let V=0;V<k.length;++V){const Y=k[V];f.push(H+Y)}m=g+(m.length>0?" "+m:m)}return m};function WS(){let l=0,r,i,u="";for(;l<arguments.length;)(r=arguments[l++])&&(i=Ky(r))&&(u&&(u+=" "),u+=i);return u}const Ky=l=>{if(typeof l=="string")return l;let r,i="";for(let u=0;u<l.length;u++)l[u]&&(r=Ky(l[u]))&&(i&&(i+=" "),i+=r);return i};function PS(l,...r){let i,u,c,f=h;function h(p){const g=r.reduce((x,S)=>S(x),l());return i=JS(g),u=i.cache.get,c=i.cache.set,f=m,m(p)}function m(p){const g=u(p);if(g)return g;const x=FS(p,i);return c(p,x),x}return function(){return f(WS.apply(null,arguments))}}const Qe=l=>{const r=i=>i[l]||[];return r.isThemeGetter=!0,r},Jy=/^\[(?:([a-z-]+):)?(.+)\]$/i,IS=/^\d+\/\d+$/,e2=new Set(["px","full","screen"]),t2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,n2=/\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$/,l2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,a2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,r2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kn=l=>ir(l)||e2.has(l)||IS.test(l),Sl=l=>Cr(l,"length",h2),ir=l=>!!l&&!Number.isNaN(Number(l)),of=l=>Cr(l,"number",ir),wi=l=>!!l&&Number.isInteger(Number(l)),i2=l=>l.endsWith("%")&&ir(l.slice(0,-1)),ge=l=>Jy.test(l),El=l=>t2.test(l),u2=new Set(["length","size","percentage"]),s2=l=>Cr(l,u2,$y),o2=l=>Cr(l,"position",$y),c2=new Set(["image","url"]),f2=l=>Cr(l,c2,g2),d2=l=>Cr(l,"",m2),Ni=()=>!0,Cr=(l,r,i)=>{const u=Jy.exec(l);return u?u[1]?typeof r=="string"?u[1]===r:r.has(u[1]):i(u[2]):!1},h2=l=>n2.test(l)&&!l2.test(l),$y=()=>!1,m2=l=>a2.test(l),g2=l=>r2.test(l),p2=()=>{const l=Qe("colors"),r=Qe("spacing"),i=Qe("blur"),u=Qe("brightness"),c=Qe("borderColor"),f=Qe("borderRadius"),h=Qe("borderSpacing"),m=Qe("borderWidth"),p=Qe("contrast"),g=Qe("grayscale"),x=Qe("hueRotate"),S=Qe("invert"),w=Qe("gap"),R=Qe("gradientColorStops"),G=Qe("gradientColorStopPositions"),M=Qe("inset"),L=Qe("margin"),H=Qe("opacity"),Q=Qe("padding"),k=Qe("saturate"),V=Qe("scale"),Y=Qe("sepia"),j=Qe("skew"),J=Qe("space"),I=Qe("translate"),W=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto",ge,r],se=()=>[ge,r],He=()=>["",kn,Sl],Ve=()=>["auto",ir,ge],ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],F=()=>["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"],E=()=>[ir,ge];return{cacheSize:500,separator:":",theme:{colors:[Ni],spacing:[kn,Sl],blur:["none","",El,ge],brightness:E(),borderColor:[l],borderRadius:["none","","full",El,ge],borderSpacing:se(),borderWidth:He(),contrast:E(),grayscale:pe(),hueRotate:E(),invert:pe(),gap:se(),gradientColorStops:[l],gradientColorStopPositions:[i2,Sl],inset:ce(),margin:ce(),opacity:E(),padding:se(),saturate:E(),scale:E(),sepia:pe(),skew:E(),space:se(),translate:se()},classGroups:{aspect:[{aspect:["auto","square","video",ge]}],container:["container"],columns:[{columns:[El]}],"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:[...ae(),ge]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],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",wi,ge]}],basis:[{basis:ce()}],"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",wi,ge]}],"grid-cols":[{"grid-cols":[Ni]}],"col-start-end":[{col:["auto",{span:["full",wi,ge]},ge]}],"col-start":[{"col-start":Ve()}],"col-end":[{"col-end":Ve()}],"grid-rows":[{"grid-rows":[Ni]}],"row-start-end":[{row:["auto",{span:[wi,ge]},ge]}],"row-start":[{"row-start":Ve()}],"row-end":[{"row-end":Ve()}],"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:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"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:[Q]}],px:[{px:[Q]}],py:[{py:[Q]}],ps:[{ps:[Q]}],pe:[{pe:[Q]}],pt:[{pt:[Q]}],pr:[{pr:[Q]}],pb:[{pb:[Q]}],pl:[{pl:[Q]}],m:[{m:[L]}],mx:[{mx:[L]}],my:[{my:[L]}],ms:[{ms:[L]}],me:[{me:[L]}],mt:[{mt:[L]}],mr:[{mr:[L]}],mb:[{mb:[L]}],ml:[{ml:[L]}],"space-x":[{"space-x":[J]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[J]}],"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:[El]},El]}],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",El,Sl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",of]}],"font-family":[{font:[Ni]}],"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,of]}],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":[H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[l]}],"text-opacity":[{"text-opacity":[H]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",kn,Sl]}],"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:se()}],"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":[H]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ae(),o2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",s2]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},f2]}],"bg-color":[{bg:[l]}],"gradient-from-pos":[{from:[G]}],"gradient-via-pos":[{via:[G]}],"gradient-to-pos":[{to:[G]}],"gradient-from":[{from:[R]}],"gradient-via":[{via:[R]}],"gradient-to":[{to:[R]}],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:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[H]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[H]}],"divide-style":[{divide:z()}],"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:["",...z()]}],"outline-offset":[{"outline-offset":[kn,ge]}],"outline-w":[{outline:[kn,Sl]}],"outline-color":[{outline:[l]}],"ring-w":[{ring:He()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[l]}],"ring-opacity":[{"ring-opacity":[H]}],"ring-offset-w":[{"ring-offset":[kn,Sl]}],"ring-offset-color":[{"ring-offset":[l]}],shadow:[{shadow:["","inner","none",El,d2]}],"shadow-color":[{shadow:[Ni]}],opacity:[{opacity:[H]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[u]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",El,ge]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[S]}],saturate:[{saturate:[k]}],sepia:[{sepia:[Y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[u]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[H]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[h]}],"border-spacing-x":[{"border-spacing-x":[h]}],"border-spacing-y":[{"border-spacing-y":[h]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ge]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",ge]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-x":[{"scale-x":[V]}],"scale-y":[{"scale-y":[V]}],rotate:[{rotate:[wi,ge]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"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":se()}],"scroll-mx":[{"scroll-mx":se()}],"scroll-my":[{"scroll-my":se()}],"scroll-ms":[{"scroll-ms":se()}],"scroll-me":[{"scroll-me":se()}],"scroll-mt":[{"scroll-mt":se()}],"scroll-mr":[{"scroll-mr":se()}],"scroll-mb":[{"scroll-mb":se()}],"scroll-ml":[{"scroll-ml":se()}],"scroll-p":[{"scroll-p":se()}],"scroll-px":[{"scroll-px":se()}],"scroll-py":[{"scroll-py":se()}],"scroll-ps":[{"scroll-ps":se()}],"scroll-pe":[{"scroll-pe":se()}],"scroll-pt":[{"scroll-pt":se()}],"scroll-pr":[{"scroll-pr":se()}],"scroll-pb":[{"scroll-pb":se()}],"scroll-pl":[{"scroll-pl":se()}],"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,Sl,of]}],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"]}}},y2=PS(p2);function Rt(...l){return y2(Vy(l))}const v2=$f("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 je({className:l,variant:r,...i}){return y("div",{className:Rt(v2({variant:r}),l),...i})}const vt=b.forwardRef(({className:l,variant:r="default",size:i="default",...u},c)=>y("button",{className:Rt("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,...u}));vt.displayName="Button";function qp(l,r){if(typeof l=="function")return l(r);l!=null&&(l.current=r)}function Fy(...l){return r=>{let i=!1;const u=l.map(c=>{const f=qp(c,r);return!i&&typeof f=="function"&&(i=!0),f});if(i)return()=>{for(let c=0;c<u.length;c++){const f=u[c];typeof f=="function"?f():qp(l[c],null)}}}}function ya(...l){return b.useCallback(Fy(...l),l)}function b2(l){const r=x2(l),i=b.forwardRef((u,c)=>{const{children:f,...h}=u,m=b.Children.toArray(f),p=m.find(E2);if(p){const g=p.props.children,x=m.map(S=>S===p?b.Children.count(g)>1?b.Children.only(null):b.isValidElement(g)?g.props.children:null:S);return y(r,{...h,ref:c,children:b.isValidElement(g)?b.cloneElement(g,void 0,x):null})}return y(r,{...h,ref:c,children:f})});return i.displayName=`${l}.Slot`,i}function x2(l){const r=b.forwardRef((i,u)=>{const{children:c,...f}=i;if(b.isValidElement(c)){const h=N2(c),m=w2(f,c.props);return c.type!==b.Fragment&&(m.ref=u?Fy(u,h):h),b.cloneElement(c,m)}return b.Children.count(c)>1?b.Children.only(null):null});return r.displayName=`${l}.SlotClone`,r}var S2=Symbol("radix.slottable");function E2(l){return b.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===S2}function w2(l,r){const i={...r};for(const u in r){const c=l[u],f=r[u];/^on[A-Z]/.test(u)?c&&f?i[u]=(...m)=>{const p=f(...m);return c(...m),p}:c&&(i[u]=c):u==="style"?i[u]={...c,...f}:u==="className"&&(i[u]=[c,f].filter(Boolean).join(" "))}return{...l,...i}}function N2(l){var u,c;let r=(u=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:u.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 T2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],va=T2.reduce((l,r)=>{const i=b2(`Primitive.${r}`),u=b.forwardRef((c,f)=>{const{asChild:h,...m}=c,p=h?i:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y(p,{...m,ref:f})});return u.displayName=`Primitive.${r}`,{...l,[r]:u}},{}),C2="Separator",jp="horizontal",A2=["horizontal","vertical"],Wy=b.forwardRef((l,r)=>{const{decorative:i,orientation:u=jp,...c}=l,f=O2(u)?u:jp,m=i?{role:"none"}:{"aria-orientation":f==="vertical"?f:void 0,role:"separator"};return y(va.div,{"data-orientation":f,...m,...c,ref:r})});Wy.displayName=C2;function O2(l){return A2.includes(l)}var Py=Wy;const Rs=b.forwardRef(({className:l,orientation:r="horizontal",decorative:i=!0,...u},c)=>y(Py,{ref:c,decorative:i,orientation:r,className:Rt("shrink-0 bg-border",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",l),...u}));Rs.displayName=Py.displayName;function R2(){var u,c;const{data:l}=Jf(),[r,i]=b.useState(()=>localStorage.getItem("vision.theme")||"light");return b.useEffect(()=>{const f=document.documentElement;r==="dark"?f.classList.add("dark"):f.classList.remove("dark"),localStorage.setItem("vision.theme",r)},[r]),O("div",{className:"h-screen flex flex-col bg-background text-foreground",children:[O("nav",{className:"bg-black dark:bg-black text-white px-6 py-3 flex items-center justify-between border-b border-border",children:[O("div",{className:"flex items-center gap-6",children:[O("div",{className:"flex items-center gap-3",children:[y("span",{className:"text-base font-semibold",children:(l==null?void 0:l.name)||"Vision Dashboard"}),y(je,{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"})]}),y(Rs,{orientation:"vertical",className:"h-6 bg-border"}),O("div",{className:"flex gap-1",children:[y(ar,{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"}),y(ar,{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"}),y(ar,{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"}),y(ar,{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=(u=l==null?void 0:l.metadata)==null?void 0:u.drizzle)==null?void 0:c.detected)&&y(ar,{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"})]})]}),O(vt,{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"?y(OS,{className:"w-4 h-4"}):y(TS,{className:"w-4 h-4"}),y("span",{className:"ml-2 text-sm font-medium hidden sm:inline",children:r==="dark"?"Light":"Dark"})]})]}),y("main",{className:"flex-1 overflow-hidden",children:y(My,{})})]})}function M2(l,r,i){return r in l?Object.defineProperty(l,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):l[r]=i,l}function Hp(l,r){var i=Object.keys(l);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(l);r&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(l,c).enumerable})),i.push.apply(i,u)}return i}function Bp(l){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Hp(Object(i),!0).forEach(function(u){M2(l,u,i[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(i)):Hp(Object(i)).forEach(function(u){Object.defineProperty(l,u,Object.getOwnPropertyDescriptor(i,u))})}return l}function z2(l,r){if(l==null)return{};var i={},u=Object.keys(l),c,f;for(f=0;f<u.length;f++)c=u[f],!(r.indexOf(c)>=0)&&(i[c]=l[c]);return i}function D2(l,r){if(l==null)return{};var i=z2(l,r),u,c;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(l);for(c=0;c<f.length;c++)u=f[c],!(r.indexOf(u)>=0)&&Object.prototype.propertyIsEnumerable.call(l,u)&&(i[u]=l[u])}return i}function _2(l,r){return U2(l)||L2(l,r)||q2(l,r)||j2()}function U2(l){if(Array.isArray(l))return l}function L2(l,r){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(l)))){var i=[],u=!0,c=!1,f=void 0;try{for(var h=l[Symbol.iterator](),m;!(u=(m=h.next()).done)&&(i.push(m.value),!(r&&i.length===r));u=!0);}catch(p){c=!0,f=p}finally{try{!u&&h.return!=null&&h.return()}finally{if(c)throw f}}return i}}function q2(l,r){if(l){if(typeof l=="string")return kp(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 kp(l,r)}}function kp(l,r){(r==null||r>l.length)&&(r=l.length);for(var i=0,u=new Array(r);i<r;i++)u[i]=l[i];return u}function j2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
191
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H2(l,r,i){return r in l?Object.defineProperty(l,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):l[r]=i,l}function Qp(l,r){var i=Object.keys(l);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(l);r&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(l,c).enumerable})),i.push.apply(i,u)}return i}function Yp(l){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?Qp(Object(i),!0).forEach(function(u){H2(l,u,i[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(i)):Qp(Object(i)).forEach(function(u){Object.defineProperty(l,u,Object.getOwnPropertyDescriptor(i,u))})}return l}function B2(){for(var l=arguments.length,r=new Array(l),i=0;i<l;i++)r[i]=arguments[i];return function(u){return r.reduceRight(function(c,f){return f(c)},u)}}function Ci(l){return function r(){for(var i=this,u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];return c.length>=l.length?l.apply(this,c):function(){for(var h=arguments.length,m=new Array(h),p=0;p<h;p++)m[p]=arguments[p];return r.apply(i,[].concat(c,m))}}}function Ss(l){return{}.toString.call(l).includes("Object")}function k2(l){return!Object.keys(l).length}function Di(l){return typeof l=="function"}function Q2(l,r){return Object.prototype.hasOwnProperty.call(l,r)}function Y2(l,r){return Ss(r)||Ll("changeType"),Object.keys(r).some(function(i){return!Q2(l,i)})&&Ll("changeField"),r}function G2(l){Di(l)||Ll("selectorType")}function V2(l){Di(l)||Ss(l)||Ll("handlerType"),Ss(l)&&Object.values(l).some(function(r){return!Di(r)})&&Ll("handlersType")}function X2(l){l||Ll("initialIsRequired"),Ss(l)||Ll("initialType"),k2(l)&&Ll("initialContent")}function Z2(l,r){throw new Error(l[r]||l.default)}var K2={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"},Ll=Ci(Z2)(K2),fs={changes:Y2,selector:G2,handler:V2,initial:X2};function J2(l){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};fs.initial(l),fs.handler(r);var i={current:l},u=Ci(W2)(i,r),c=Ci(F2)(i),f=Ci(fs.changes)(l),h=Ci($2)(i);function m(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(x){return x};return fs.selector(g),g(i.current)}function p(g){B2(u,c,f,h)(g)}return[m,p]}function $2(l,r){return Di(r)?r(l.current):r}function F2(l,r){return l.current=Yp(Yp({},l.current),r),r}function W2(l,r,i){return Di(r)?r(l.current):Object.keys(i).forEach(function(u){var c;return(c=r[u])===null||c===void 0?void 0:c.call(r,l.current[u])}),i}var P2={create:J2},I2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function eE(l){return function r(){for(var i=this,u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];return c.length>=l.length?l.apply(this,c):function(){for(var h=arguments.length,m=new Array(h),p=0;p<h;p++)m[p]=arguments[p];return r.apply(i,[].concat(c,m))}}}function tE(l){return{}.toString.call(l).includes("Object")}function nE(l){return l||Gp("configIsRequired"),tE(l)||Gp("configType"),l.urls?(lE(),{paths:{vs:l.urls.monacoBase}}):l}function lE(){console.warn(Iy.deprecation)}function aE(l,r){throw new Error(l[r]||l.default)}var Iy={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!
|
|
192
|
-
You are using deprecated way of configuration.
|
|
193
|
-
|
|
194
|
-
Instead of using
|
|
195
|
-
monaco.config({ urls: { monacoBase: '...' } })
|
|
196
|
-
use
|
|
197
|
-
monaco.config({ paths: { vs: '...' } })
|
|
198
|
-
|
|
199
|
-
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
200
|
-
`},Gp=eE(aE)(Iy),rE={config:nE},iE=function(){for(var r=arguments.length,i=new Array(r),u=0;u<r;u++)i[u]=arguments[u];return function(c){return i.reduceRight(function(f,h){return h(f)},c)}};function ev(l,r){return Object.keys(r).forEach(function(i){r[i]instanceof Object&&l[i]&&Object.assign(r[i],ev(l[i],r[i]))}),Bp(Bp({},l),r)}var uE={type:"cancelation",msg:"operation is manually canceled"};function cf(l){var r=!1,i=new Promise(function(u,c){l.then(function(f){return r?c(uE):u(f)}),l.catch(c)});return i.cancel=function(){return r=!0},i}var sE=P2.create({config:I2,isInitialized:!1,resolve:null,reject:null,monaco:null}),tv=_2(sE,2),Yi=tv[0],Ms=tv[1];function oE(l){var r=rE.config(l),i=r.monaco,u=D2(r,["monaco"]);Ms(function(c){return{config:ev(c.config,u),monaco:i}})}function cE(){var l=Yi(function(r){var i=r.monaco,u=r.isInitialized,c=r.resolve;return{monaco:i,isInitialized:u,resolve:c}});if(!l.isInitialized){if(Ms({isInitialized:!0}),l.monaco)return l.resolve(l.monaco),cf(ff);if(window.monaco&&window.monaco.editor)return nv(window.monaco),l.resolve(window.monaco),cf(ff);iE(fE,hE)(mE)}return cf(ff)}function fE(l){return document.body.appendChild(l)}function dE(l){var r=document.createElement("script");return l&&(r.src=l),r}function hE(l){var r=Yi(function(u){var c=u.config,f=u.reject;return{config:c,reject:f}}),i=dE("".concat(r.config.paths.vs,"/loader.js"));return i.onload=function(){return l()},i.onerror=r.reject,i}function mE(){var l=Yi(function(i){var u=i.config,c=i.resolve,f=i.reject;return{config:u,resolve:c,reject:f}}),r=window.require;r.config(l.config),r(["vs/editor/editor.main"],function(i){nv(i),l.resolve(i)},function(i){l.reject(i)})}function nv(l){Yi().monaco||Ms({monaco:l})}function gE(){return Yi(function(l){var r=l.monaco;return r})}var ff=new Promise(function(l,r){return Ms({resolve:l,reject:r})}),lv={config:oE,init:cE,__getMonacoInstance:gE},pE={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},df=pE,yE={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},vE=yE;function bE({children:l}){return ha.createElement("div",{style:vE.container},l)}var xE=bE,SE=xE;function EE({width:l,height:r,isEditorReady:i,loading:u,_ref:c,className:f,wrapperProps:h}){return ha.createElement("section",{style:{...df.wrapper,width:l,height:r},...h},!i&&ha.createElement(SE,null,u),ha.createElement("div",{ref:c,style:{...df.fullWidth,...!i&&df.hide},className:f}))}var wE=EE,av=b.memo(wE);function NE(l){b.useEffect(l,[])}var rv=NE;function TE(l,r,i=!0){let u=b.useRef(!0);b.useEffect(u.current||!i?()=>{u.current=!1}:l,r)}var kt=TE;function Ri(){}function rr(l,r,i,u){return CE(l,u)||AE(l,r,i,u)}function CE(l,r){return l.editor.getModel(iv(l,r))}function AE(l,r,i,u){return l.editor.createModel(r,i,u?iv(l,u):void 0)}function iv(l,r){return l.Uri.parse(r)}function OE({original:l,modified:r,language:i,originalLanguage:u,modifiedLanguage:c,originalModelPath:f,modifiedModelPath:h,keepCurrentOriginalModel:m=!1,keepCurrentModifiedModel:p=!1,theme:g="light",loading:x="Loading...",options:S={},height:w="100%",width:R="100%",className:G,wrapperProps:M={},beforeMount:L=Ri,onMount:H=Ri}){let[Q,k]=b.useState(!1),[V,Y]=b.useState(!0),j=b.useRef(null),J=b.useRef(null),I=b.useRef(null),W=b.useRef(H),$=b.useRef(L),ce=b.useRef(!1);rv(()=>{let ae=lv.init();return ae.then(z=>(J.current=z)&&Y(!1)).catch(z=>(z==null?void 0:z.type)!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>j.current?Ve():ae.cancel()}),kt(()=>{if(j.current&&J.current){let ae=j.current.getOriginalEditor(),z=rr(J.current,l||"",u||i||"text",f||"");z!==ae.getModel()&&ae.setModel(z)}},[f],Q),kt(()=>{if(j.current&&J.current){let ae=j.current.getModifiedEditor(),z=rr(J.current,r||"",c||i||"text",h||"");z!==ae.getModel()&&ae.setModel(z)}},[h],Q),kt(()=>{let ae=j.current.getModifiedEditor();ae.getOption(J.current.editor.EditorOption.readOnly)?ae.setValue(r||""):r!==ae.getValue()&&(ae.executeEdits("",[{range:ae.getModel().getFullModelRange(),text:r||"",forceMoveMarkers:!0}]),ae.pushUndoStop())},[r],Q),kt(()=>{var ae,z;(z=(ae=j.current)==null?void 0:ae.getModel())==null||z.original.setValue(l||"")},[l],Q),kt(()=>{let{original:ae,modified:z}=j.current.getModel();J.current.editor.setModelLanguage(ae,u||i||"text"),J.current.editor.setModelLanguage(z,c||i||"text")},[i,u,c],Q),kt(()=>{var ae;(ae=J.current)==null||ae.editor.setTheme(g)},[g],Q),kt(()=>{var ae;(ae=j.current)==null||ae.updateOptions(S)},[S],Q);let se=b.useCallback(()=>{var F;if(!J.current)return;$.current(J.current);let ae=rr(J.current,l||"",u||i||"text",f||""),z=rr(J.current,r||"",c||i||"text",h||"");(F=j.current)==null||F.setModel({original:ae,modified:z})},[i,r,c,l,u,f,h]),He=b.useCallback(()=>{var ae;!ce.current&&I.current&&(j.current=J.current.editor.createDiffEditor(I.current,{automaticLayout:!0,...S}),se(),(ae=J.current)==null||ae.editor.setTheme(g),k(!0),ce.current=!0)},[S,g,se]);b.useEffect(()=>{Q&&W.current(j.current,J.current)},[Q]),b.useEffect(()=>{!V&&!Q&&He()},[V,Q,He]);function Ve(){var z,F,re,pe;let ae=(z=j.current)==null?void 0:z.getModel();m||((F=ae==null?void 0:ae.original)==null||F.dispose()),p||((re=ae==null?void 0:ae.modified)==null||re.dispose()),(pe=j.current)==null||pe.dispose()}return ha.createElement(av,{width:R,height:w,isEditorReady:Q,loading:x,_ref:I,className:G,wrapperProps:M})}var RE=OE;b.memo(RE);function ME(l){let r=b.useRef();return b.useEffect(()=>{r.current=l},[l]),r.current}var zE=ME,ds=new Map;function DE({defaultValue:l,defaultLanguage:r,defaultPath:i,value:u,language:c,path:f,theme:h="light",line:m,loading:p="Loading...",options:g={},overrideServices:x={},saveViewState:S=!0,keepCurrentModel:w=!1,width:R="100%",height:G="100%",className:M,wrapperProps:L={},beforeMount:H=Ri,onMount:Q=Ri,onChange:k,onValidate:V=Ri}){let[Y,j]=b.useState(!1),[J,I]=b.useState(!0),W=b.useRef(null),$=b.useRef(null),ce=b.useRef(null),se=b.useRef(Q),He=b.useRef(H),Ve=b.useRef(),ae=b.useRef(u),z=zE(f),F=b.useRef(!1),re=b.useRef(!1);rv(()=>{let E=lv.init();return E.then(B=>(W.current=B)&&I(!1)).catch(B=>(B==null?void 0:B.type)!=="cancelation"&&console.error("Monaco initialization: error:",B)),()=>$.current?Te():E.cancel()}),kt(()=>{var B,P,te,fe;let E=rr(W.current,l||u||"",r||c||"",f||i||"");E!==((B=$.current)==null?void 0:B.getModel())&&(S&&ds.set(z,(P=$.current)==null?void 0:P.saveViewState()),(te=$.current)==null||te.setModel(E),S&&((fe=$.current)==null||fe.restoreViewState(ds.get(f))))},[f],Y),kt(()=>{var E;(E=$.current)==null||E.updateOptions(g)},[g],Y),kt(()=>{!$.current||u===void 0||($.current.getOption(W.current.editor.EditorOption.readOnly)?$.current.setValue(u):u!==$.current.getValue()&&(re.current=!0,$.current.executeEdits("",[{range:$.current.getModel().getFullModelRange(),text:u,forceMoveMarkers:!0}]),$.current.pushUndoStop(),re.current=!1))},[u],Y),kt(()=>{var B,P;let E=(B=$.current)==null?void 0:B.getModel();E&&c&&((P=W.current)==null||P.editor.setModelLanguage(E,c))},[c],Y),kt(()=>{var E;m!==void 0&&((E=$.current)==null||E.revealLine(m))},[m],Y),kt(()=>{var E;(E=W.current)==null||E.editor.setTheme(h)},[h],Y);let pe=b.useCallback(()=>{var E;if(!(!ce.current||!W.current)&&!F.current){He.current(W.current);let B=f||i,P=rr(W.current,u||l||"",r||c||"",B||"");$.current=(E=W.current)==null?void 0:E.editor.create(ce.current,{model:P,automaticLayout:!0,...g},x),S&&$.current.restoreViewState(ds.get(B)),W.current.editor.setTheme(h),m!==void 0&&$.current.revealLine(m),j(!0),F.current=!0}},[l,r,i,u,c,f,g,x,S,h,m]);b.useEffect(()=>{Y&&se.current($.current,W.current)},[Y]),b.useEffect(()=>{!J&&!Y&&pe()},[J,Y,pe]),ae.current=u,b.useEffect(()=>{var E,B;Y&&k&&((E=Ve.current)==null||E.dispose(),Ve.current=(B=$.current)==null?void 0:B.onDidChangeModelContent(P=>{re.current||k($.current.getValue(),P)}))},[Y,k]),b.useEffect(()=>{if(Y){let E=W.current.editor.onDidChangeMarkers(B=>{var te;let P=(te=$.current.getModel())==null?void 0:te.uri;if(P&&B.find(fe=>fe.path===P.path)){let fe=W.current.editor.getModelMarkers({resource:P});V==null||V(fe)}});return()=>{E==null||E.dispose()}}return()=>{}},[Y,V]);function Te(){var E,B;(E=Ve.current)==null||E.dispose(),w?S&&ds.set(f,$.current.saveViewState()):(B=$.current.getModel())==null||B.dispose(),$.current.dispose()}return ha.createElement(av,{width:R,height:G,isEditorReady:Y,loading:p,_ref:ce,className:M,wrapperProps:L})}var _E=DE,UE=b.memo(_E),uv=UE;const Qt=b.forwardRef(({className:l,...r},i)=>y("div",{ref:i,className:Rt("rounded-lg border bg-card text-card-foreground shadow-sm",l),...r}));Qt.displayName="Card";const Yt=b.forwardRef(({className:l,...r},i)=>y("div",{ref:i,className:Rt("flex flex-col space-y-1.5 p-6",l),...r}));Yt.displayName="CardHeader";const nn=b.forwardRef(({className:l,...r},i)=>y("h3",{ref:i,className:Rt("text-2xl font-semibold leading-none tracking-tight",l),...r}));nn.displayName="CardTitle";const Gt=b.forwardRef(({className:l,...r},i)=>y("div",{ref:i,className:Rt("p-6 pt-0",l),...r}));Gt.displayName="CardContent";const Wf=b.forwardRef(({className:l,type:r,...i},u)=>y("input",{type:r,className:Rt("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:u,...i}));Wf.displayName="Input";var LE="Label",sv=b.forwardRef((l,r)=>y(va.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())}}));sv.displayName=LE;var ov=sv;const qE=$f("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ai=b.forwardRef(({className:l,...r},i)=>y(ov,{ref:i,className:Rt(qE(),l),...r}));Ai.displayName=ov.displayName;var zf=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{};function jE(l,r){return b.useReducer((i,u)=>r[i][u]??i,l)}var Gi=l=>{const{present:r,children:i}=l,u=HE(r),c=typeof i=="function"?i({present:u.isPresent}):b.Children.only(i),f=ya(u.ref,BE(c));return typeof i=="function"||u.isPresent?b.cloneElement(c,{ref:f}):null};Gi.displayName="Presence";function HE(l){const[r,i]=b.useState(),u=b.useRef(null),c=b.useRef(l),f=b.useRef("none"),h=l?"mounted":"unmounted",[m,p]=jE(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const g=hs(u.current);f.current=m==="mounted"?g:"none"},[m]),zf(()=>{const g=u.current,x=c.current;if(x!==l){const w=f.current,R=hs(g);l?p("MOUNT"):R==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(x&&w!==R?"ANIMATION_OUT":"UNMOUNT"),c.current=l}},[l,p]),zf(()=>{if(r){let g;const x=r.ownerDocument.defaultView??window,S=R=>{const M=hs(u.current).includes(CSS.escape(R.animationName));if(R.target===r&&M&&(p("ANIMATION_END"),!c.current)){const L=r.style.animationFillMode;r.style.animationFillMode="forwards",g=x.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=L)})}},w=R=>{R.target===r&&(f.current=hs(u.current))};return r.addEventListener("animationstart",w),r.addEventListener("animationcancel",S),r.addEventListener("animationend",S),()=>{x.clearTimeout(g),r.removeEventListener("animationstart",w),r.removeEventListener("animationcancel",S),r.removeEventListener("animationend",S)}}else p("ANIMATION_END")},[r,p]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:b.useCallback(g=>{u.current=g?getComputedStyle(g):null,i(g)},[])}}function hs(l){return(l==null?void 0:l.animationName)||"none"}function BE(l){var u,c;let r=(u=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:u.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 kE(l,r=[]){let i=[];function u(f,h){const m=b.createContext(h),p=i.length;i=[...i,h];const g=S=>{var H;const{scope:w,children:R,...G}=S,M=((H=w==null?void 0:w[l])==null?void 0:H[p])||m,L=b.useMemo(()=>G,Object.values(G));return y(M.Provider,{value:L,children:R})};g.displayName=f+"Provider";function x(S,w){var M;const R=((M=w==null?void 0:w[l])==null?void 0:M[p])||m,G=b.useContext(R);if(G)return G;if(h!==void 0)return h;throw new Error(`\`${S}\` must be used within \`${f}\``)}return[g,x]}const c=()=>{const f=i.map(h=>b.createContext(h));return function(m){const p=(m==null?void 0:m[l])||f;return b.useMemo(()=>({[`__scope${l}`]:{...m,[l]:p}}),[m,p])}};return c.scopeName=l,[u,QE(c,...r)]}function QE(...l){const r=l[0];if(l.length===1)return r;const i=()=>{const u=l.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(f){const h=u.reduce((m,{useScope:p,scopeName:g})=>{const S=p(f)[`__scope${g}`];return{...m,...S}},{});return b.useMemo(()=>({[`__scope${r.scopeName}`]:h}),[h])}};return i.scopeName=r.scopeName,i}function na(l){const r=b.useRef(l);return b.useEffect(()=>{r.current=l}),b.useMemo(()=>(...i)=>{var u;return(u=r.current)==null?void 0:u.call(r,...i)},[])}var YE=b.createContext(void 0);function GE(l){const r=b.useContext(YE);return l||r||"ltr"}function VE(l,[r,i]){return Math.min(i,Math.max(r,l))}function ma(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 XE(l,r){return b.useReducer((i,u)=>r[i][u]??i,l)}var Pf="ScrollArea",[cv]=kE(Pf),[ZE,an]=cv(Pf),fv=b.forwardRef((l,r)=>{const{__scopeScrollArea:i,type:u="hover",dir:c,scrollHideDelay:f=600,...h}=l,[m,p]=b.useState(null),[g,x]=b.useState(null),[S,w]=b.useState(null),[R,G]=b.useState(null),[M,L]=b.useState(null),[H,Q]=b.useState(0),[k,V]=b.useState(0),[Y,j]=b.useState(!1),[J,I]=b.useState(!1),W=ya(r,ce=>p(ce)),$=GE(c);return y(ZE,{scope:i,type:u,dir:$,scrollHideDelay:f,scrollArea:m,viewport:g,onViewportChange:x,content:S,onContentChange:w,scrollbarX:R,onScrollbarXChange:G,scrollbarXEnabled:Y,onScrollbarXEnabledChange:j,scrollbarY:M,onScrollbarYChange:L,scrollbarYEnabled:J,onScrollbarYEnabledChange:I,onCornerWidthChange:Q,onCornerHeightChange:V,children:y(va.div,{dir:$,...h,ref:W,style:{position:"relative","--radix-scroll-area-corner-width":H+"px","--radix-scroll-area-corner-height":k+"px",...l.style}})})});fv.displayName=Pf;var dv="ScrollAreaViewport",hv=b.forwardRef((l,r)=>{const{__scopeScrollArea:i,children:u,nonce:c,...f}=l,h=an(dv,i),m=b.useRef(null),p=ya(r,m,h.onViewportChange);return O(_l,{children:[y("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}),y(va.div,{"data-radix-scroll-area-viewport":"",...f,ref:p,style:{overflowX:h.scrollbarXEnabled?"scroll":"hidden",overflowY:h.scrollbarYEnabled?"scroll":"hidden",...l.style},children:y("div",{ref:h.onContentChange,style:{minWidth:"100%",display:"table"},children:u})})]})});hv.displayName=dv;var xn="ScrollAreaScrollbar",If=b.forwardRef((l,r)=>{const{forceMount:i,...u}=l,c=an(xn,l.__scopeScrollArea),{onScrollbarXEnabledChange:f,onScrollbarYEnabledChange:h}=c,m=l.orientation==="horizontal";return b.useEffect(()=>(m?f(!0):h(!0),()=>{m?f(!1):h(!1)}),[m,f,h]),c.type==="hover"?y(KE,{...u,ref:r,forceMount:i}):c.type==="scroll"?y(JE,{...u,ref:r,forceMount:i}):c.type==="auto"?y(mv,{...u,ref:r,forceMount:i}):c.type==="always"?y(ed,{...u,ref:r}):null});If.displayName=xn;var KE=b.forwardRef((l,r)=>{const{forceMount:i,...u}=l,c=an(xn,l.__scopeScrollArea),[f,h]=b.useState(!1);return b.useEffect(()=>{const m=c.scrollArea;let p=0;if(m){const g=()=>{window.clearTimeout(p),h(!0)},x=()=>{p=window.setTimeout(()=>h(!1),c.scrollHideDelay)};return m.addEventListener("pointerenter",g),m.addEventListener("pointerleave",x),()=>{window.clearTimeout(p),m.removeEventListener("pointerenter",g),m.removeEventListener("pointerleave",x)}}},[c.scrollArea,c.scrollHideDelay]),y(Gi,{present:i||f,children:y(mv,{"data-state":f?"visible":"hidden",...u,ref:r})})}),JE=b.forwardRef((l,r)=>{const{forceMount:i,...u}=l,c=an(xn,l.__scopeScrollArea),f=l.orientation==="horizontal",h=Ds(()=>p("SCROLL_END"),100),[m,p]=XE("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 b.useEffect(()=>{if(m==="idle"){const g=window.setTimeout(()=>p("HIDE"),c.scrollHideDelay);return()=>window.clearTimeout(g)}},[m,c.scrollHideDelay,p]),b.useEffect(()=>{const g=c.viewport,x=f?"scrollLeft":"scrollTop";if(g){let S=g[x];const w=()=>{const R=g[x];S!==R&&(p("SCROLL"),h()),S=R};return g.addEventListener("scroll",w),()=>g.removeEventListener("scroll",w)}},[c.viewport,f,p,h]),y(Gi,{present:i||m!=="hidden",children:y(ed,{"data-state":m==="hidden"?"hidden":"visible",...u,ref:r,onPointerEnter:ma(l.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:ma(l.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),mv=b.forwardRef((l,r)=>{const i=an(xn,l.__scopeScrollArea),{forceMount:u,...c}=l,[f,h]=b.useState(!1),m=l.orientation==="horizontal",p=Ds(()=>{if(i.viewport){const g=i.viewport.offsetWidth<i.viewport.scrollWidth,x=i.viewport.offsetHeight<i.viewport.scrollHeight;h(m?g:x)}},10);return br(i.viewport,p),br(i.content,p),y(Gi,{present:u||f,children:y(ed,{"data-state":f?"visible":"hidden",...c,ref:r})})}),ed=b.forwardRef((l,r)=>{const{orientation:i="vertical",...u}=l,c=an(xn,l.__scopeScrollArea),f=b.useRef(null),h=b.useRef(0),[m,p]=b.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=bv(m.viewport,m.content),x={...u,sizes:m,onSizesChange:p,hasThumb:g>0&&g<1,onThumbChange:w=>f.current=w,onThumbPointerUp:()=>h.current=0,onThumbPointerDown:w=>h.current=w};function S(w,R){return ew(w,h.current,m,R)}return i==="horizontal"?y($E,{...x,ref:r,onThumbPositionChange:()=>{if(c.viewport&&f.current){const w=c.viewport.scrollLeft,R=Vp(w,m,c.dir);f.current.style.transform=`translate3d(${R}px, 0, 0)`}},onWheelScroll:w=>{c.viewport&&(c.viewport.scrollLeft=w)},onDragScroll:w=>{c.viewport&&(c.viewport.scrollLeft=S(w,c.dir))}}):i==="vertical"?y(FE,{...x,ref:r,onThumbPositionChange:()=>{if(c.viewport&&f.current){const w=c.viewport.scrollTop,R=Vp(w,m);f.current.style.transform=`translate3d(0, ${R}px, 0)`}},onWheelScroll:w=>{c.viewport&&(c.viewport.scrollTop=w)},onDragScroll:w=>{c.viewport&&(c.viewport.scrollTop=S(w))}}):null}),$E=b.forwardRef((l,r)=>{const{sizes:i,onSizesChange:u,...c}=l,f=an(xn,l.__scopeScrollArea),[h,m]=b.useState(),p=b.useRef(null),g=ya(r,p,f.onScrollbarXChange);return b.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),y(pv,{"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":zs(i)+"px",...l.style},onThumbPointerDown:x=>l.onThumbPointerDown(x.x),onDragScroll:x=>l.onDragScroll(x.x),onWheelScroll:(x,S)=>{if(f.viewport){const w=f.viewport.scrollLeft+x.deltaX;l.onWheelScroll(w),Sv(w,S)&&x.preventDefault()}},onResize:()=>{p.current&&f.viewport&&h&&u({content:f.viewport.scrollWidth,viewport:f.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:ws(h.paddingLeft),paddingEnd:ws(h.paddingRight)}})}})}),FE=b.forwardRef((l,r)=>{const{sizes:i,onSizesChange:u,...c}=l,f=an(xn,l.__scopeScrollArea),[h,m]=b.useState(),p=b.useRef(null),g=ya(r,p,f.onScrollbarYChange);return b.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),y(pv,{"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":zs(i)+"px",...l.style},onThumbPointerDown:x=>l.onThumbPointerDown(x.y),onDragScroll:x=>l.onDragScroll(x.y),onWheelScroll:(x,S)=>{if(f.viewport){const w=f.viewport.scrollTop+x.deltaY;l.onWheelScroll(w),Sv(w,S)&&x.preventDefault()}},onResize:()=>{p.current&&f.viewport&&h&&u({content:f.viewport.scrollHeight,viewport:f.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:ws(h.paddingTop),paddingEnd:ws(h.paddingBottom)}})}})}),[WE,gv]=cv(xn),pv=b.forwardRef((l,r)=>{const{__scopeScrollArea:i,sizes:u,hasThumb:c,onThumbChange:f,onThumbPointerUp:h,onThumbPointerDown:m,onThumbPositionChange:p,onDragScroll:g,onWheelScroll:x,onResize:S,...w}=l,R=an(xn,i),[G,M]=b.useState(null),L=ya(r,W=>M(W)),H=b.useRef(null),Q=b.useRef(""),k=R.viewport,V=u.content-u.viewport,Y=na(x),j=na(p),J=Ds(S,10);function I(W){if(H.current){const $=W.clientX-H.current.left,ce=W.clientY-H.current.top;g({x:$,y:ce})}}return b.useEffect(()=>{const W=$=>{const ce=$.target;(G==null?void 0:G.contains(ce))&&Y($,V)};return document.addEventListener("wheel",W,{passive:!1}),()=>document.removeEventListener("wheel",W,{passive:!1})},[k,G,V,Y]),b.useEffect(j,[u,j]),br(G,J),br(R.content,J),y(WE,{scope:i,scrollbar:G,hasThumb:c,onThumbChange:na(f),onThumbPointerUp:na(h),onThumbPositionChange:j,onThumbPointerDown:na(m),children:y(va.div,{...w,ref:L,style:{position:"absolute",...w.style},onPointerDown:ma(l.onPointerDown,W=>{W.button===0&&(W.target.setPointerCapture(W.pointerId),H.current=G.getBoundingClientRect(),Q.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",R.viewport&&(R.viewport.style.scrollBehavior="auto"),I(W))}),onPointerMove:ma(l.onPointerMove,I),onPointerUp:ma(l.onPointerUp,W=>{const $=W.target;$.hasPointerCapture(W.pointerId)&&$.releasePointerCapture(W.pointerId),document.body.style.webkitUserSelect=Q.current,R.viewport&&(R.viewport.style.scrollBehavior=""),H.current=null})})})}),Es="ScrollAreaThumb",yv=b.forwardRef((l,r)=>{const{forceMount:i,...u}=l,c=gv(Es,l.__scopeScrollArea);return y(Gi,{present:i||c.hasThumb,children:y(PE,{ref:r,...u})})}),PE=b.forwardRef((l,r)=>{const{__scopeScrollArea:i,style:u,...c}=l,f=an(Es,i),h=gv(Es,i),{onThumbPositionChange:m}=h,p=ya(r,S=>h.onThumbChange(S)),g=b.useRef(void 0),x=Ds(()=>{g.current&&(g.current(),g.current=void 0)},100);return b.useEffect(()=>{const S=f.viewport;if(S){const w=()=>{if(x(),!g.current){const R=tw(S,m);g.current=R,m()}};return m(),S.addEventListener("scroll",w),()=>S.removeEventListener("scroll",w)}},[f.viewport,x,m]),y(va.div,{"data-state":h.hasThumb?"visible":"hidden",...c,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...u},onPointerDownCapture:ma(l.onPointerDownCapture,S=>{const R=S.target.getBoundingClientRect(),G=S.clientX-R.left,M=S.clientY-R.top;h.onThumbPointerDown({x:G,y:M})}),onPointerUp:ma(l.onPointerUp,h.onThumbPointerUp)})});yv.displayName=Es;var td="ScrollAreaCorner",vv=b.forwardRef((l,r)=>{const i=an(td,l.__scopeScrollArea),u=!!(i.scrollbarX&&i.scrollbarY);return i.type!=="scroll"&&u?y(IE,{...l,ref:r}):null});vv.displayName=td;var IE=b.forwardRef((l,r)=>{const{__scopeScrollArea:i,...u}=l,c=an(td,i),[f,h]=b.useState(0),[m,p]=b.useState(0),g=!!(f&&m);return br(c.scrollbarX,()=>{var S;const x=((S=c.scrollbarX)==null?void 0:S.offsetHeight)||0;c.onCornerHeightChange(x),p(x)}),br(c.scrollbarY,()=>{var S;const x=((S=c.scrollbarY)==null?void 0:S.offsetWidth)||0;c.onCornerWidthChange(x),h(x)}),g?y(va.div,{...u,ref:r,style:{width:f,height:m,position:"absolute",right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:0,...l.style}}):null});function ws(l){return l?parseInt(l,10):0}function bv(l,r){const i=l/r;return isNaN(i)?0:i}function zs(l){const r=bv(l.viewport,l.content),i=l.scrollbar.paddingStart+l.scrollbar.paddingEnd,u=(l.scrollbar.size-i)*r;return Math.max(u,18)}function ew(l,r,i,u="ltr"){const c=zs(i),f=c/2,h=r||f,m=c-h,p=i.scrollbar.paddingStart+h,g=i.scrollbar.size-i.scrollbar.paddingEnd-m,x=i.content-i.viewport,S=u==="ltr"?[0,x]:[x*-1,0];return xv([p,g],S)(l)}function Vp(l,r,i="ltr"){const u=zs(r),c=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,f=r.scrollbar.size-c,h=r.content-r.viewport,m=f-u,p=i==="ltr"?[0,h]:[h*-1,0],g=VE(l,p);return xv([0,h],[0,m])(g)}function xv(l,r){return i=>{if(l[0]===l[1]||r[0]===r[1])return r[0];const u=(r[1]-r[0])/(l[1]-l[0]);return r[0]+u*(i-l[0])}}function Sv(l,r){return l>0&&l<r}var tw=(l,r=()=>{})=>{let i={left:l.scrollLeft,top:l.scrollTop},u=0;return(function c(){const f={left:l.scrollLeft,top:l.scrollTop},h=i.left!==f.left,m=i.top!==f.top;(h||m)&&r(),i=f,u=window.requestAnimationFrame(c)})(),()=>window.cancelAnimationFrame(u)};function Ds(l,r){const i=na(l),u=b.useRef(0);return b.useEffect(()=>()=>window.clearTimeout(u.current),[]),b.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(i,r)},[i,r])}function br(l,r){const i=na(r);zf(()=>{let u=0;if(l){const c=new ResizeObserver(()=>{cancelAnimationFrame(u),u=window.requestAnimationFrame(i)});return c.observe(l),()=>{window.cancelAnimationFrame(u),c.unobserve(l)}}},[l,i])}var Ev=fv,nw=hv,lw=vv;const _i=b.forwardRef(({className:l,children:r,...i},u)=>O(Ev,{ref:u,className:Rt("relative overflow-hidden",l),...i,children:[y(nw,{className:"h-full w-full rounded-[inherit]",children:r}),y(wv,{}),y(lw,{})]}));_i.displayName=Ev.displayName;const wv=b.forwardRef(({className:l,orientation:r="vertical",...i},u)=>y(If,{ref:u,orientation:r,className:Rt("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:y(yv,{className:"relative flex-1 rounded-full bg-border"})}));wv.displayName=If.displayName;function aw({sessionId:l}){const{data:r=[]}=Qy({limit:50}),i=l?r.filter(h=>{var m;return((m=h.metadata)==null?void 0:m.sessionId)===l}):r,{traceId:u}=Yf(),c=b.useRef(null),f=b.useRef(i.length);return b.useEffect(()=>{i.length>f.current&&c.current&&(c.current.scrollTop=0),f.current=i.length},[i.length]),O("div",{className:"w-80 border-l bg-muted flex flex-col",children:[y("div",{className:"px-4 py-3 border-b bg-background",children:O("div",{className:"flex items-center justify-between",children:[y("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Traces"}),y(je,{variant:"secondary",className:"text-xs",children:i.length})]})}),y(_i,{className:"flex-1",ref:c,children:y("div",{className:"p-3 space-y-2",children:r.length===0?O("div",{className:"text-center py-12 text-muted-foreground",children:[y(Os,{className:"w-8 h-8 mx-auto mb-3 opacity-30"}),y("p",{className:"text-sm",children:"Traces will appear here"}),y("p",{className:"text-xs mt-1",children:"after making API calls"})]}):i.map((h,m)=>O("div",{children:[y(As,{to:`/traces/${h.id}`,children:y(rw,{trace:h,isActive:h.id===u})}),m<i.length-1&&y(Rs,{className:"my-2"})]},h.id))})})]})}function rw({trace:l,isActive:r}){const i=h=>h?h>=200&&h<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":h>=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",u=h=>h==="GET"?"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 hover:bg-blue-100 dark:hover:bg-blue-900":h==="POST"?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":h==="PUT"?"bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300 hover:bg-yellow-100 dark:hover:bg-yellow-900":h==="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=h=>h==null?"-":h<1?"< 1ms":h<1e3?`${Math.round(h)}ms`:`${(h/1e3).toFixed(2)}s`,f=h=>new Date(h).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"});return O("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:[O("div",{className:"flex items-center gap-1.5 mb-2",children:[y(je,{className:`text-[10px] font-mono px-1.5 py-0 ${u(l.method)}`,children:l.method}),y(je,{className:`text-[10px] font-mono px-1.5 py-0 ${i(l.statusCode)}`,children:l.statusCode||"..."}),l.spans.length>0&&O("span",{className:"text-[10px] text-muted-foreground ml-auto",children:[l.spans.length," span",l.spans.length>1?"s":""]})]}),y("div",{className:"text-xs font-mono text-foreground truncate mb-2",children:l.path}),O("div",{className:"flex items-center gap-3 text-[10px] text-muted-foreground",children:[O("div",{className:"flex items-center gap-1",children:[y(Kf,{className:"w-3 h-3"}),y("span",{children:f(l.timestamp)})]}),O("div",{className:"flex items-center gap-1",children:[y(Os,{className:"w-3 h-3"}),y("span",{className:l.duration&&l.duration>1e3?"text-orange-600 dark:text-orange-400 font-medium":"",children:c(l.duration)})]})]})]})}function Oi({data:l,title:r,height:i="400px"}){const[u,c]=b.useState(!1),f=()=>{navigator.clipboard.writeText(JSON.stringify(l,null,2)),c(!0),setTimeout(()=>c(!1),2e3)},h=JSON.stringify(l,null,2);return O("div",{className:"relative",children:[r&&O("div",{className:"flex items-center justify-between mb-2",children:[y("h3",{className:"text-sm font-medium",children:r}),y(vt,{variant:"ghost",size:"sm",onClick:f,className:"text-xs",children:u?O(_l,{children:[y(SS,{className:"w-3 h-3 mr-1"}),"Copied"]}):O(_l,{children:[y(jy,{className:"w-3 h-3 mr-1"}),"Copy"]})})]}),y("div",{className:"border rounded-md overflow-hidden",children:y(uv,{height:i,language:"json5",value:h,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 Nv=b.createContext(null);function iw({children:l}){const[r,i]=b.useState([]),u=b.useCallback((f,h="info",m)=>{const p=Math.random().toString(36).slice(2),g={id:p,message:f,type:h,duration:m};return i(x=>[...x,g]),p},[]),c=b.useCallback(f=>{i(h=>h.filter(m=>m.id!==f))},[]);return y(Nv.Provider,{value:{toasts:r,addToast:u,removeToast:c},children:l})}function nd(){const l=b.useContext(Nv);if(!l)throw new Error("useToast must be used within ToastProvider");return l}function ms(){return Math.random().toString(36).slice(2)+Date.now().toString(36)}function uw(){var k,V,Y;const{data:l=[]}=HS(),{addToast:r}=nd(),i=Yy(),u=b.useMemo(()=>({id:ms(),title:"New tab",sessionId:ms(),route:null,urlParams:{},requestBody:"",response:null,requestTime:null}),[]),[c,f]=b.useState([u]),[h,m]=b.useState(u.id),[p,g]=b.useState(!1),x="vision.apiExplorer.tabs",S="vision.apiExplorer.activeTabId";b.useEffect(()=>{try{const j=localStorage.getItem(x),J=localStorage.getItem(S);if(j){const I=JSON.parse(j);Array.isArray(I)&&I.length>0&&(f(I),J&&I.some(W=>W.id===J)?m(J):m(I[0].id))}}catch{}},[]),b.useEffect(()=>{try{localStorage.setItem(x,JSON.stringify(c)),localStorage.setItem(S,h)}catch{}},[c,h]);const w=c.find(j=>j.id===h)||c[0],R=j=>{var I;const J=((I=j.requestBody)==null?void 0:I.template)||"";f(W=>W.map($=>$.id===h?{...$,route:j,title:j.path,response:null,requestTime:null,urlParams:{},requestBody:J}:$))},G=async()=>{const j=w;if(!j.route)return;g(!0),f(I=>I.map(W=>W.id===h?{...W,response:null}:W));const J=Date.now();try{let I=j.route.path;Object.entries(j.urlParams).forEach(([z,F])=>{I=I.replace(`:${z}`,F)});const W=`http://localhost:3000${I}`,$={method:j.route.method,headers:{"Content-Type":"application/json","X-Vision-Session":j.sessionId}};if(["POST","PUT","PATCH"].includes(j.route.method)&&j.requestBody)try{$.body=JSON.stringify(JSON.parse(j.requestBody))}catch{$.body=j.requestBody}const ce=await fetch(W,$),se=await ce.json(),He=Date.now()-J,Ve={};ce.headers.forEach((z,F)=>{Ve[F]=z}),f(z=>z.map(F=>F.id===h?{...F,response:{status:ce.status,data:se,headers:Ve},requestTime:He}:F)),r(`API call completed in ${He}ms`,"success");const ae=ce.headers.get("X-Vision-Trace-Id");console.log("📊 Trace ID from header:",ae,"Client duration:",He),ae&&i.mutate({traceId:ae,clientDuration:He})}catch(I){f(W=>W.map($=>$.id===h?{...$,response:{status:0,error:I instanceof Error?I.message:"Unknown error"}}:$)),r(I instanceof Error?I.message:"API call failed","error")}finally{g(!1)}},M=(j,J)=>{f(I=>I.map(W=>W.id===h?{...W,urlParams:{...W.urlParams,[j]:J}}:W))},L=j=>{f(J=>J.map(I=>I.id===h?{...I,requestBody:j}:I))},H=()=>{const j={id:ms(),title:"New tab",sessionId:ms(),route:null,urlParams:{},requestBody:"",response:null,requestTime:null};f(J=>[...J,j]),m(j.id)},Q=j=>{f(J=>{if(J.length<=1)return J;const I=J.filter(W=>W.id!==j);if(h===j){const W=I[I.length-1];m(W.id)}return I})};return O("div",{className:"flex h-full",children:[y("div",{className:"w-64 border-r bg-muted overflow-y-auto flex-shrink-0",children:O("div",{className:"p-4",children:[y("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-3",children:"Endpoints"}),y("div",{className:"space-y-1",children:l.map((j,J)=>y("button",{onClick:()=>R(j),className:`w-full text-left px-3 py-2 rounded-md text-sm font-medium transition-colors
|
|
201
|
-
${w.route===j?"bg-primary text-primary-foreground":"hover:bg-accent text-foreground"}`,children:O("div",{className:"flex items-center gap-2",children:[y(je,{className:`text-xs font-mono
|
|
202
|
-
${j.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":""}
|
|
203
|
-
${j.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":""}
|
|
204
|
-
${j.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":""}
|
|
205
|
-
${j.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":""}
|
|
206
|
-
`,children:j.method}),y("span",{className:"font-mono text-sm truncate",children:j.path})]})},J))})]})}),O("div",{className:"flex-1 overflow-y-auto",children:[y("div",{className:"px-6 pt-3 border-b bg-muted",children:O("div",{className:"flex items-center gap-1 overflow-x-auto whitespace-nowrap pb-0",children:[c.map(j=>O("button",{className:`relative flex-none inline-flex items-center gap-2 px-4 py-2.5 text-sm font-medium transition-all ${j.id===h?"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:()=>m(j.id),children:[y("span",{className:"font-mono text-sm truncate max-w-[200px]",children:j.title}),c.length>1&&y("button",{className:"ml-1 text-muted-foreground hover:text-foreground hover:bg-accent rounded-sm p-0.5 -mr-1",onClick:J=>{J.stopPropagation(),Q(j.id)},children:y("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),j.id===h&&y("div",{className:"absolute bottom-0 left-0 right-0 h-[2px] bg-primary"})]},j.id)),O(vt,{variant:"ghost",size:"sm",className:"flex-none ml-2 text-sm font-medium text-muted-foreground hover:text-foreground",onClick:H,children:[y("svg",{className:"w-4 h-4 mr-1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"New tab"]})]})}),y("div",{className:"p-6 max-w-4xl",children:w.route?O("div",{className:"space-y-4",children:[O(Qt,{children:[y(Yt,{children:y(nn,{className:"text-base font-semibold",children:"API Caller"})}),O(Gt,{className:"space-y-4",children:[O("div",{children:[y(Ai,{className:"text-sm font-medium mb-2 block",children:"Endpoint"}),O("div",{className:"flex gap-2",children:[O("div",{className:"flex-1 bg-muted rounded-md p-3 font-mono text-sm border",children:[y("span",{className:"text-blue-600 dark:text-blue-400 font-semibold",children:w.route.method})," ",y("span",{className:"text-foreground",children:w.route.path})]}),y(vt,{onClick:G,disabled:p,className:"bg-blue-600 dark:bg-blue-600 hover:bg-blue-700 dark:hover:bg-blue-700 text-white",children:p?O("span",{className:"flex items-center gap-2",children:[y("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),y("span",{className:"text-sm font-medium",children:"Calling..."})]}):O("span",{className:"flex items-center gap-2",children:[y(CS,{className:"w-4 h-4"}),y("span",{className:"text-sm font-medium",children:"Call API"})]})})]})]}),w.route.path.includes(":")&&O("div",{children:[y(Ai,{className:"text-sm font-medium mb-2 block",children:"URL Parameters"}),y("div",{className:"space-y-3",children:(k=w.route.path.match(/:[^/]+/g))==null?void 0:k.map(j=>{const J=j.slice(1);return O("div",{className:"grid grid-cols-4 gap-3 items-center",children:[y(Ai,{htmlFor:J,className:"text-sm text-muted-foreground",children:J}),y(Wf,{id:J,type:"text",value:w.urlParams[J]||"",onChange:I=>M(J,I.target.value),placeholder:`Enter ${J}`,className:"col-span-3 text-sm"})]},J)})})]}),["POST","PUT","PATCH"].includes(w.route.method)&&O("div",{children:[y(Ai,{className:"text-sm font-medium mb-2 block",children:"Request Body (JSON)"}),y("div",{className:"border rounded-md overflow-hidden",children:y(uv,{height:"200px",language:"json",value:w.requestBody,onChange:j=>L(j||""),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}}})})]})]})]}),w.response&&O(Qt,{children:[y(Yt,{children:O("div",{className:"flex items-center justify-between",children:[O("div",{className:"flex items-center gap-3",children:[y(nn,{className:"text-base font-semibold",children:"Response"}),y(je,{className:`text-xs font-mono
|
|
207
|
-
${w.response.status>=200&&w.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":""}
|
|
208
|
-
${w.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":""}
|
|
209
|
-
`,children:w.response.status||"ERROR"}),w.requestTime&&O("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[y(Kf,{className:"w-3 h-3"}),w.requestTime,"ms"]})]}),y(vt,{variant:"ghost",size:"sm",onClick:()=>navigator.clipboard.writeText(JSON.stringify(w.response.data,null,2)),children:y(jy,{className:"w-4 h-4"})})]})}),y(Gt,{children:y(Oi,{data:w.response.data||w.response.error})})]}),w.response&&O(Qt,{children:[y(Yt,{children:y(nn,{className:"text-base font-semibold",children:"Request Logs"})}),y(Gt,{children:O("div",{className:"bg-gray-900 dark:bg-gray-950 rounded-md p-4 font-mono text-xs space-y-1 border",children:[O("div",{className:"text-blue-400 dark:text-blue-300",children:["INF starting request endpoint=",(V=w.route)==null?void 0:V.path," service=",(Y=w.route)==null?void 0:Y.handler]}),O("div",{className:"text-green-400 dark:text-green-300",children:["INF request completed code=",w.response.status," duration=",w.requestTime,"ms"]})]})})]})]}):y("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:y("p",{className:"text-sm",children:"Select an endpoint from the sidebar to get started"})})})]}),y(aw,{sessionId:w.sessionId})]})}function sw({spans:l,formatDuration:r}){if(l.length===0)return y("div",{className:"text-center py-8 text-sm text-muted-foreground",children:"No spans recorded"});const i=Math.min(...l.map(f=>f.startTime)),c=Math.max(...l.map(f=>f.endTime||f.startTime))-i||1;return O("div",{className:"space-y-4",children:[O("div",{className:"flex justify-between text-xs text-muted-foreground border-b pb-1",children:[y("span",{children:"0ms"}),y("span",{children:r(c)})]}),l.map(f=>{const h=(f.startTime-i)/c*100,m=(f.duration||0)/c*100,p=f.attributes&&Object.keys(f.attributes).length>0;return O("div",{className:"space-y-2",children:[O("div",{className:"flex items-center justify-between",children:[y("span",{className:"text-sm font-mono font-medium",children:f.name}),y("span",{className:"text-sm font-mono text-muted-foreground",children:r(f.duration)})]}),y("div",{className:"relative h-10 bg-muted rounded overflow-hidden border",children:y("div",{className:"absolute h-full bg-gradient-to-r from-primary to-primary/80 flex items-center px-3 shadow-sm",style:{left:`${h}%`,width:`${Math.max(m,1)}%`},children:y("span",{className:"text-xs font-mono text-primary-foreground truncate",children:f.name})})}),p&&O("details",{className:"text-xs bg-muted rounded p-3 border",children:[O("summary",{className:"cursor-pointer text-muted-foreground hover:text-foreground font-medium",children:["View Attributes (",Object.keys(f.attributes||{}).length,")"]}),y("div",{className:"mt-2 space-y-1 pl-2 border-l-2 border-border",children:Object.entries(f.attributes||{}).map(([g,x])=>g==="http.request"||g==="http.response"?null:typeof x=="object"&&x!==null?O("div",{className:"font-mono text-xs",children:[O("span",{className:"text-muted-foreground",children:[g,":"]})," ",y("span",{className:"text-muted-foreground italic",children:"[object]"})]},g):O("div",{className:"font-mono text-xs",children:[O("span",{className:"text-muted-foreground",children:[g,":"]})," ",y("span",{className:"text-foreground",children:String(x)})]},g))})]})]},f.id)})]})}function ow({trace:l,formatDuration:r}){var h,m,p,g;const i=l.spans.find(x=>x.name==="http.request"),u=((h=l.metadata)==null?void 0:h.request)||((m=i==null?void 0:i.attributes)==null?void 0:m["http.request"]),c=((p=l.metadata)==null?void 0:p.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 O("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[O(Qt,{children:[y(Yt,{className:"bg-muted",children:y(nn,{className:"text-base font-semibold",children:"Request"})}),y(Gt,{className:"pt-4",children:O("div",{className:"space-y-3",children:[O("div",{className:"text-sm",children:[y(je,{className:"font-mono text-xs mr-2",children:l.method}),y("span",{className:"font-mono text-sm break-all",children:(u==null?void 0:u.url)||l.path})]}),(u==null?void 0:u.headers)&&O("div",{children:[y("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Headers"}),y(Oi,{data:u.headers})]}),(u==null?void 0:u.body)!==void 0&&O("div",{children:[y("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Body"}),y(Oi,{data:u.body})]})]})})]}),O(Qt,{children:[y(Yt,{className:"bg-muted",children:y(nn,{className:"text-base font-semibold",children:"Response"})}),y(Gt,{className:"pt-4",children:O("div",{className:"space-y-3",children:[O("div",{className:"flex items-center gap-2 text-sm",children:[y(je,{className:`font-mono text-xs ${f(l.statusCode)}`,children:l.statusCode||(c==null?void 0:c.status)||"-"}),y("span",{className:"text-xs text-muted-foreground",children:r(l.duration)})]}),(c==null?void 0:c.headers)&&O("div",{children:[y("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Headers"}),y(Oi,{data:c.headers})]}),(c==null?void 0:c.body)!==void 0&&O("div",{children:[y("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Body"}),y(Oi,{data:c.body})]})]})})]})]})}function cw(){const{data:l=[]}=Qy({limit:100}),r=US(),i=LS(),{traceId:u}=Yf(),{addToast:c}=nd(),f=b.useRef(null),h=b.useRef(l.length);b.useEffect(()=>{l.length>h.current&&f.current&&(f.current.scrollTop=0),h.current=l.length},[l.length]);const m=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 O("div",{className:"h-full grid grid-cols-12 gap-0",children:[O("div",{className:"col-span-4 border-r bg-muted h-full flex flex-col",children:[y("div",{className:"px-6 py-4 border-b bg-background",children:O("div",{className:"flex items-center justify-between gap-3",children:[O("div",{children:[y("h1",{className:"text-lg font-semibold",children:"Traces"}),y("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Recent requests"})]}),O("div",{className:"flex gap-2",children:[O(vt,{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"}),w=URL.createObjectURL(S),R=document.createElement("a");R.href=w;const G=new Date().toISOString().replace(/[:.]/g,"-");R.download=`vision-traces-${G}.json`,document.body.appendChild(R),R.click(),document.body.removeChild(R),URL.revokeObjectURL(w)}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:[y(NS,{className:"w-4 h-4 mr-1.5"}),"Export"]}),O(vt,{variant:"outline",size:"sm",onClick:m,disabled:r.isPending||l.length===0,className:"text-sm",children:[y(ky,{className:"w-4 h-4 mr-1.5"}),"Clear"]})]})]})}),y(_i,{className:"flex-1",ref:f,children:l.length===0?O("div",{className:"flex flex-col items-center justify-center py-20 px-6 text-muted-foreground",children:[y(Os,{className:"w-12 h-12 mb-4 opacity-30"}),y("p",{className:"text-sm",children:"No traces yet"}),y("p",{className:"text-xs mt-1",children:"Make some API calls to see traces here"})]}):y("div",{className:"p-4 space-y-2",children:l.map((g,x)=>O("div",{children:[y(As,{to:`/traces/${g.id}`,children:y(fw,{trace:g,isActive:g.id===u})}),x<l.length-1&&y(Rs,{className:"my-2"})]},g.id))})})]}),y("div",{className:"col-span-8 h-full overflow-y-auto p-6",children:y(My,{})})]})}function fw({trace:l,isActive:r}){const i=h=>{switch(h){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"}},u=h=>h?h>=200&&h<300?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300 hover:bg-green-100 dark:hover:bg-green-900":h>=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=h=>h==null?"-":h<1?"< 1ms":h<1e3?`${Math.round(h)}ms`:`${(h/1e3).toFixed(2)}s`,f=h=>new Date(h).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3});return O("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:[O("div",{className:"flex items-center gap-2 mb-2",children:[y(je,{className:`text-xs font-mono px-1.5 py-0 ${i(l.method)}`,children:l.method}),y(je,{className:`text-xs font-mono px-1.5 py-0 ${u(l.statusCode)}`,children:l.statusCode||"..."}),l.spans.length>0&&O("span",{className:"text-xs text-muted-foreground ml-auto",children:[l.spans.length," span",l.spans.length>1?"s":""]})]}),y("div",{className:"font-mono text-sm text-foreground truncate mb-2",children:l.path}),O("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[O("div",{className:"flex items-center gap-1",children:[y(Kf,{className:"w-3 h-3"}),y("span",{children:f(l.timestamp)})]}),O("div",{className:"flex items-center gap-1",children:[y(Os,{className:"w-3 h-3"}),y("span",{className:l.duration&&l.duration>1e3?"text-orange-600 dark:text-orange-400 font-medium":"",children:c(l.duration)})]})]})]})}function dw({trace:l,onBack:r}){var p;const i=ki(),u=Yy(),c=async()=>{var g;try{const x=l.spans.find(V=>{var Y;return V.name==="http.request"||!!((Y=V.attributes)!=null&&Y["http.url"])}),S=((g=x==null?void 0:x.attributes)==null?void 0:g["http.url"])||l.path,w=Date.now();let R;try{new URL(S),R=S}catch{R=`http://localhost:3000${S.startsWith("/")?"":"/"}${S}`}const M=Ot().on("trace.new",V=>{V.method===l.method&&V.timestamp>=w&&(i(`/traces/${V.id}`),M())}),L=Date.now(),H=await fetch(R,{method:l.method,headers:{"Content-Type":"application/json"}}),Q=Date.now()-L,k=H.headers.get("X-Vision-Trace-Id");k&&u.mutate({traceId:k,clientDuration:Q})}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`:"-",h=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}),m=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 O("div",{className:"max-w-5xl",children:[O("div",{className:"flex items-center justify-between mb-6",children:[r&&O(vt,{variant:"ghost",size:"sm",onClick:r,className:"text-sm font-medium",children:[y(bS,{className:"w-4 h-4 mr-2"}),"Back to Traces"]}),y(vt,{onClick:c,size:"sm",className:"text-sm font-medium",children:"Replay Request"})]}),O("div",{className:"space-y-4",children:[O(Qt,{children:[y(Yt,{children:y(nn,{className:"text-base font-semibold",children:"Request Overview"})}),y(Gt,{children:O("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[O("div",{children:[y("p",{className:"text-xs text-muted-foreground mb-1",children:"Method"}),y("p",{className:"font-mono text-sm font-medium",children:l.method})]}),O("div",{className:"col-span-2",children:[y("p",{className:"text-xs text-muted-foreground mb-1",children:"Path"}),y("p",{className:"font-mono text-sm font-medium truncate",children:l.path})]}),O("div",{children:[y("p",{className:"text-xs text-muted-foreground mb-1",children:"Status"}),y(je,{className:`text-xs font-mono ${m(l.statusCode)}`,children:l.statusCode||"Pending"})]}),O("div",{children:[y("p",{className:"text-xs text-muted-foreground mb-1",children:"Duration"}),(p=l.metadata)!=null&&p.clientDuration?O("div",{className:"space-y-1",children:[O("div",{className:"flex items-center gap-2",children:[y("span",{className:"text-xs text-muted-foreground",children:"Server:"}),y("span",{className:"font-mono text-sm",children:f(l.duration)})]}),O("div",{className:"flex items-center gap-2",children:[y("span",{className:"text-xs text-muted-foreground",children:"Total:"}),y("span",{className:"font-mono text-sm font-medium",children:f(l.metadata.clientDuration)})]}),O("div",{className:"flex items-center gap-2",children:[y("span",{className:"text-xs text-muted-foreground",children:"Network:"}),y("span",{className:"font-mono text-sm text-blue-600 dark:text-blue-400",children:f(l.metadata.clientDuration-(l.duration||0))})]})]}):y("p",{className:`font-mono text-sm font-medium ${l.duration&&l.duration>1e3?"text-orange-600 dark:text-orange-400":""}`,children:f(l.duration)})]}),O("div",{className:"col-span-2",children:[y("p",{className:"text-xs text-muted-foreground mb-1",children:"Timestamp"}),y("p",{className:"font-mono text-sm",children:h(l.timestamp)})]}),O("div",{children:[y("p",{className:"text-xs text-muted-foreground mb-1",children:"Trace ID"}),y("p",{className:"font-mono text-xs text-muted-foreground",children:l.id})]})]})})]}),y(ow,{trace:l,formatDuration:f}),l.spans.length>0&&O(Qt,{children:[y(Yt,{children:O(nn,{className:"text-base font-semibold",children:["Spans Timeline (",l.spans.length,")"]})}),y(Gt,{children:y(sw,{spans:l.spans,formatDuration:f})})]})]})]})}function lr(l,r,i){let u=i.initialDeps??[],c;function f(){var h,m,p,g;let x;i.key&&((h=i.debug)!=null&&h.call(i))&&(x=Date.now());const S=l();if(!(S.length!==u.length||S.some((G,M)=>u[M]!==G)))return c;u=S;let R;if(i.key&&((m=i.debug)!=null&&m.call(i))&&(R=Date.now()),c=r(...S),i.key&&((p=i.debug)!=null&&p.call(i))){const G=Math.round((Date.now()-x)*100)/100,M=Math.round((Date.now()-R)*100)/100,L=M/16,H=(Q,k)=>{for(Q=String(Q);Q.length<k;)Q=" "+Q;return Q};console.info(`%c⏱ ${H(M,5)} /${H(G,5)} ms`,`
|
|
210
|
-
font-size: .6rem;
|
|
211
|
-
font-weight: bold;
|
|
212
|
-
color: hsl(${Math.max(0,Math.min(120-120*L,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=h=>{u=h},f}function Xp(l,r){if(l===void 0)throw new Error("Unexpected undefined");return l}const hw=(l,r)=>Math.abs(l-r)<1.01,mw=(l,r,i)=>{let u;return function(...c){l.clearTimeout(u),u=l.setTimeout(()=>r.apply(this,c),i)}},Zp=l=>{const{offsetWidth:r,offsetHeight:i}=l;return{width:r,height:i}},gw=l=>l,pw=l=>{const r=Math.max(l.startIndex-l.overscan,0),i=Math.min(l.endIndex+l.overscan,l.count-1),u=[];for(let c=r;c<=i;c++)u.push(c);return u},yw=(l,r)=>{const i=l.scrollElement;if(!i)return;const u=l.targetWindow;if(!u)return;const c=h=>{const{width:m,height:p}=h;r({width:Math.round(m),height:Math.round(p)})};if(c(Zp(i)),!u.ResizeObserver)return()=>{};const f=new u.ResizeObserver(h=>{const m=()=>{const p=h[0];if(p!=null&&p.borderBoxSize){const g=p.borderBoxSize[0];if(g){c({width:g.inlineSize,height:g.blockSize});return}}c(Zp(i))};l.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(m):m()});return f.observe(i,{box:"border-box"}),()=>{f.unobserve(i)}},Kp={passive:!0},Jp=typeof window>"u"?!0:"onscrollend"in window,vw=(l,r)=>{const i=l.scrollElement;if(!i)return;const u=l.targetWindow;if(!u)return;let c=0;const f=l.options.useScrollendEvent&&Jp?()=>{}:mw(u,()=>{r(c,!1)},l.options.isScrollingResetDelay),h=x=>()=>{const{horizontal:S,isRtl:w}=l.options;c=S?i.scrollLeft*(w&&-1||1):i.scrollTop,f(),r(c,x)},m=h(!0),p=h(!1);p(),i.addEventListener("scroll",m,Kp);const g=l.options.useScrollendEvent&&Jp;return g&&i.addEventListener("scrollend",p,Kp),()=>{i.removeEventListener("scroll",m),g&&i.removeEventListener("scrollend",p)}},bw=(l,r,i)=>{if(r!=null&&r.borderBoxSize){const u=r.borderBoxSize[0];if(u)return Math.round(u[i.options.horizontal?"inlineSize":"blockSize"])}return l[i.options.horizontal?"offsetWidth":"offsetHeight"]},xw=(l,{adjustments:r=0,behavior:i},u)=>{var c,f;const h=l+r;(f=(c=u.scrollElement)==null?void 0:c.scrollTo)==null||f.call(c,{[u.options.horizontal?"left":"top"]:h,behavior:i})};class Sw{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 u=()=>i||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:i=new this.targetWindow.ResizeObserver(c=>{c.forEach(f=>{const h=()=>{this._measureElement(f.target,f)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(h):h()})}));return{disconnect:()=>{var c;(c=u())==null||c.disconnect(),i=null},observe:c=>{var f;return(f=u())==null?void 0:f.observe(c,{box:"border-box"})},unobserve:c=>{var f;return(f=u())==null?void 0:f.unobserve(c)}}})(),this.range=null,this.setOptions=i=>{Object.entries(i).forEach(([u,c])=>{typeof c>"u"&&delete i[u]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:gw,rangeExtractor:pw,onChange:()=>{},measureElement:bw,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 u,c;(c=(u=this.options).onChange)==null||c.call(u,this,i)},this.maybeNotify=lr(()=>(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 u=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==u){if(this.cleanup(),!u){this.maybeNotify();return}this.scrollElement=u,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,u)=>{const c=new Map,f=new Map;for(let h=u-1;h>=0;h--){const m=i[h];if(c.has(m.lane))continue;const p=f.get(m.lane);if(p==null||m.end>p.end?f.set(m.lane,m):m.end<p.end&&c.set(m.lane,!0),c.size===this.options.lanes)break}return f.size===this.options.lanes?Array.from(f.values()).sort((h,m)=>h.end===m.end?h.index-m.index:h.end-m.end)[0]:void 0},this.getMeasurementOptions=lr(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(i,u,c,f,h)=>(this.pendingMeasuredCacheIndexes=[],{count:i,paddingStart:u,scrollMargin:c,getItemKey:f,enabled:h}),{key:!1}),this.getMeasurements=lr(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:i,paddingStart:u,scrollMargin:c,getItemKey:f,enabled:h},m)=>{if(!h)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 p=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const g=this.measurementsCache.slice(0,p);for(let x=p;x<i;x++){const S=f(x),w=this.options.lanes===1?g[x-1]:this.getFurthestMeasurement(g,x),R=w?w.end+this.options.gap:u+c,G=m.get(S),M=typeof G=="number"?G:this.options.estimateSize(x),L=R+M,H=w?w.lane:x%this.options.lanes;g[x]={index:x,start:R,size:M,end:L,key:S,lane:H}}return this.measurementsCache=g,g},{key:!1,debug:()=>this.options.debug}),this.calculateRange=lr(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,u,c,f)=>this.range=i.length>0&&u>0?Ew({measurements:i,outerSize:u,scrollOffset:c,lanes:f}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=lr(()=>{let i=null,u=null;const c=this.calculateRange();return c&&(i=c.startIndex,u=c.endIndex),this.maybeNotify.updateDeps([this.isScrolling,i,u]),[this.options.rangeExtractor,this.options.overscan,this.options.count,i,u]},(i,u,c,f,h)=>f===null||h===null?[]:i({startIndex:f,endIndex:h,overscan:u,count:c}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=i=>{const u=this.options.indexAttribute,c=i.getAttribute(u);return c?parseInt(c,10):(console.warn(`Missing attribute name '${u}={index}' on measured element.`),-1)},this._measureElement=(i,u)=>{const c=this.indexFromElement(i),f=this.measurementsCache[c];if(!f)return;const h=f.key,m=this.elementsCache.get(h);m!==i&&(m&&this.observer.unobserve(m),this.observer.observe(i),this.elementsCache.set(h,i)),i.isConnected&&this.resizeItem(c,this.options.measureElement(i,u,this))},this.resizeItem=(i,u)=>{const c=this.measurementsCache[i];if(!c)return;const f=this.itemSizeCache.get(c.key)??c.size,h=u-f;h!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(c,h,this):c.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=h,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(c.index),this.itemSizeCache=new Map(this.itemSizeCache.set(c.key,u)),this.notify(!1))},this.measureElement=i=>{if(!i){this.elementsCache.forEach((u,c)=>{u.isConnected||(this.observer.unobserve(u),this.elementsCache.delete(c))});return}this._measureElement(i,void 0)},this.getVirtualItems=lr(()=>[this.getVirtualIndexes(),this.getMeasurements()],(i,u)=>{const c=[];for(let f=0,h=i.length;f<h;f++){const m=i[f],p=u[m];c.push(p)}return c},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=i=>{const u=this.getMeasurements();if(u.length!==0)return Xp(u[Tv(0,u.length-1,c=>Xp(u[c]).start,i)])},this.getOffsetForAlignment=(i,u,c=0)=>{const f=this.getSize(),h=this.getScrollOffset();u==="auto"&&(u=i>=h+f?"end":"start"),u==="center"?i+=(c-f)/2:u==="end"&&(i-=f);const m=this.getTotalSize()+this.options.scrollMargin-f;return Math.max(Math.min(m,i),0)},this.getOffsetForIndex=(i,u="auto")=>{i=Math.max(0,Math.min(i,this.options.count-1));const c=this.measurementsCache[i];if(!c)return;const f=this.getSize(),h=this.getScrollOffset();if(u==="auto")if(c.end>=h+f-this.options.scrollPaddingEnd)u="end";else if(c.start<=h+this.options.scrollPaddingStart)u="start";else return[h,u];const m=u==="end"?c.end+this.options.scrollPaddingEnd:c.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(m,u,c.size),u]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(i,{align:u="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,u),{adjustments:void 0,behavior:c})},this.scrollToIndex=(i,{align:u="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 h=10,m=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,w]=x;this._scrollToOffset(S,{adjustments:void 0,behavior:c}),this.targetWindow.requestAnimationFrame(()=>{const R=this.getScrollOffset(),G=this.getOffsetForIndex(i,w);if(!G){console.warn("Failed to get offset for index:",i);return}hw(G[0],R)||p(w)})},p=g=>{this.targetWindow&&(f++,f<h?this.targetWindow.requestAnimationFrame(()=>m(g)):console.warn(`Failed to scroll to index ${i} after ${h} attempts.`))};m(u)},this.scrollBy=(i,{behavior:u}={})=>{u==="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:u})},this.getTotalSize=()=>{var i;const u=this.getMeasurements();let c;if(u.length===0)c=this.options.paddingStart;else if(this.options.lanes===1)c=((i=u[u.length-1])==null?void 0:i.end)??0;else{const f=Array(this.options.lanes).fill(null);let h=u.length-1;for(;h>=0&&f.some(m=>m===null);){const m=u[h];f[m.lane]===null&&(f[m.lane]=m.end),h--}c=Math.max(...f.filter(m=>m!==null))}return Math.max(c-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(i,{adjustments:u,behavior:c})=>{this.options.scrollToFn(i,{behavior:c,adjustments:u},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(r)}}const Tv=(l,r,i,u)=>{for(;l<=r;){const c=(l+r)/2|0,f=i(c);if(f<u)l=c+1;else if(f>u)r=c-1;else return c}return l>0?l-1:0};function Ew({measurements:l,outerSize:r,scrollOffset:i,lanes:u}){const c=l.length-1,f=p=>l[p].start;if(l.length<=u)return{startIndex:0,endIndex:c};let h=Tv(0,c,f,i),m=h;if(u===1)for(;m<c&&l[m].end<i+r;)m++;else if(u>1){const p=Array(u).fill(0);for(;m<c&&p.some(x=>x<i+r);){const x=l[m];p[x.lane]=x.end,m++}const g=Array(u).fill(i+r);for(;h>=0&&g.some(x=>x>=i);){const x=l[h];g[x.lane]=x.start,h--}h=Math.max(0,h-h%u),m=Math.min(c,m+(u-1-m%u))}return{startIndex:h,endIndex:m}}const $p=typeof document<"u"?b.useLayoutEffect:b.useEffect;function ww(l){const r=b.useReducer(()=>({}),{})[1],i={...l,onChange:(c,f)=>{var h;f?mS.flushSync(r):r(),(h=l.onChange)==null||h.call(l,c,f)}},[u]=b.useState(()=>new Sw(i));return u.setOptions(i),$p(()=>u._didMount(),[]),$p(()=>u._willUpdate()),u}function Nw(l){return ww({observeElementRect:yw,observeElementOffset:vw,scrollToFn:xw,...l})}function Tw(){const[l,r]=b.useState("all"),[i,u]=b.useState(""),c=jS(),f=ki(),{data:h=[]}=qS({limit:1e4,level:l==="all"?void 0:l,search:i||void 0}),m=b.useRef(null),p=Nw({count:h.length,getScrollElement:()=>m.current,estimateSize:()=>72,overscan:8,measureElement:M=>M.getBoundingClientRect().height}),g=()=>{confirm("Clear all logs?")&&c.mutate()},x=M=>{var k;const H=(M.message||"").match(/traceId=([^\s]+)/);if(H)return H[1];const Q=(k=M==null?void 0:M.args)==null?void 0:k.find(V=>V&&typeof V=="object"&&"traceId"in V);return Q==null?void 0:Q.traceId},S=M=>{const L=M.message||"",H=/(\w+)=([^\s]+)/g,Q=[...L.matchAll(H)];if(Q.length===0)return;const k={};return Q.forEach(([,V,Y])=>{if(Y.startsWith("{")||Y.startsWith("["))try{k[V]=JSON.parse(Y)}catch{k[V]=Y}else k[V]=Y}),Object.keys(k).length?k:void 0},w=M=>{switch(M){case"error":return y(Rf,{className:"w-4 h-4 text-red-500"});case"warn":return y(RS,{className:"w-4 h-4 text-yellow-500"});case"info":return y(Mp,{className:"w-4 h-4 text-blue-500"});case"debug":return y(xS,{className:"w-4 h-4 text-gray-500"});default:return y(Mp,{className:"w-4 h-4 text-gray-400"})}},R=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"}},G=M=>new Date(M).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit",fractionalSecondDigits:3});return O("div",{className:"h-full flex flex-col",children:[O("div",{className:"bg-background border-b px-6 py-4",children:[O("div",{className:"flex items-center justify-between mb-4",children:[y("h1",{className:"text-lg font-semibold",children:"Logs"}),y("div",{className:"flex gap-2",children:O(vt,{variant:"outline",size:"sm",onClick:g,className:"text-sm font-medium",children:[y(ky,{className:"w-4 h-4 mr-1.5"}),"Clear All"]})})]}),O("div",{className:"flex gap-4",children:[y("div",{className:"flex gap-1",children:["all","log","info","warn","error","debug"].map(M=>y(vt,{variant:l===M?"default":"outline",size:"sm",onClick:()=>r(M),className:"text-sm font-medium",children:M.charAt(0).toUpperCase()+M.slice(1)},M))}),O("div",{className:"flex-1 max-w-md relative",children:[y(AS,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),y(Wf,{type:"text",placeholder:"Search logs...",value:i,onChange:M=>u(M.target.value),className:"pl-10 text-sm"})]}),O(je,{variant:"secondary",className:"text-sm",children:[h.length.toLocaleString()," entries"]})]})]}),y("div",{ref:m,className:"flex-1 overflow-auto bg-muted px-6 py-4",children:h.length===0?O(Qt,{children:[y(Yt,{children:y(nn,{children:"No logs yet"})}),y(Gt,{children:y("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."})})]}):y("div",{style:{height:`${p.getTotalSize()}px`,width:"100%",position:"relative"},children:p.getVirtualItems().map(M=>{const L=h[M.index],H=x(L),Q=S(L);return y("div",{"data-index":M.index,ref:p.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${M.start}px)`},children:y("div",{className:`mb-2 p-3 border rounded-lg ${R(L.level)}`,children:O("div",{className:"flex items-start gap-3",children:[y("div",{className:"mt-0.5",children:w(L.level)}),y("div",{className:"text-xs font-mono text-muted-foreground w-24 flex-shrink-0 mt-0.5",children:G(L.timestamp)}),O("div",{className:"flex-1 min-w-0",children:[O("div",{className:"flex items-start gap-2",children:[y("div",{className:"flex-1",children:O("div",{className:"flex items-center gap-2 flex-wrap",children:[y("span",{className:"text-sm font-mono",children:L.message}),Q&&O(_l,{children:[Q.method&&y(je,{className:"font-mono text-xs",children:Q.method}),Q.endpoint&&y(je,{variant:"secondary",className:"font-mono text-xs",children:Q.endpoint}),Q.code!==void 0&&O(je,{variant:"secondary",className:"font-mono text-xs",children:["code=",Q.code]}),Q.duration&&O(je,{variant:"secondary",className:"font-mono text-xs",children:["duration=",Q.duration]}),Q.sessionId&&O(je,{variant:"outline",className:"font-mono text-xs",children:["session=",Q.sessionId]}),Q.params&&typeof Q.params=="object"&&y(_l,{children:Object.entries(Q.params).map(([k,V])=>O(je,{variant:"outline",className:"font-mono text-xs",children:[k,"=",String(V)]},k))}),Q.query&&typeof Q.query=="object"&&y(_l,{children:Object.entries(Q.query).map(([k,V])=>O(je,{variant:"outline",className:"font-mono text-xs",children:[k,"=",String(V)]},k))})]})]})}),H&&y(vt,{variant:"outline",size:"sm",onClick:()=>f(`/traces/${H}`),className:"text-xs font-medium",children:"Go to trace"})]}),L.stack&&O("details",{className:"mt-2",onToggle:k=>{const V=k.currentTarget.closest("[data-index]")||void 0;V&&p.measureElement(V)},children:[y("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:"Stack trace"}),y("pre",{className:"mt-2 text-xs bg-background p-2 rounded border overflow-auto whitespace-pre-wrap select-text",children:L.stack})]})]})]})})},M.key)})})})]})}function Cw(){var Q,k,V;const{data:l}=Jf(),{data:r=[]}=BS(),i=ki(),[u,c]=b.useState(null),[f,h]=b.useState(new Set),m=(Q=l==null?void 0:l.metadata)==null?void 0:Q.integrations,p=Y=>{const j=new Set(f);j.has(Y)?j.delete(Y):j.add(Y),h(j)},g=(Y,j,J)=>{c({service:Y,method:j,path:J})},x=()=>{u&&i(`/api-explorer?method=${u.method}&path=${u.path}`)},S=r.reduce((Y,j)=>Y+j.routes.length,0),w=u?(k=r.find(Y=>Y.name===u.service))==null?void 0:k.routes.find(Y=>Y.method===u.method&&Y.path===u.path):null,R=Y=>{const j=Y==null?void 0:Y.match(/:(\w+)/g);return j?j.map(J=>J.slice(1)):[]},G=Y=>{switch(Y){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=Y=>Y.includes("database")||Y.includes("postgres")||Y.includes("mysql")?y(Hy,{className:"w-4 h-4"}):y(zp,{className:"w-4 h-4"}),L=Y=>{try{const j=new URL(Y);return j.password&&(j.password="***"),j.toString()}catch{return Y}},H=R(u==null?void 0:u.path);return O("div",{className:"h-full flex bg-background",children:[O("div",{className:"w-80 border-r bg-muted flex flex-col",children:[y("div",{className:"px-4 py-3 border-b bg-background",children:O("div",{className:"flex items-center justify-between",children:[y("h2",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Services"}),y(je,{variant:"secondary",className:"text-xs",children:r.length})]})}),y(_i,{className:"flex-1",children:y("div",{className:"p-3",children:r.length===0?O("div",{className:"text-center text-sm text-muted-foreground py-12",children:[y(zp,{className:"w-8 h-8 mx-auto mb-3 opacity-30"}),y("p",{className:"text-sm",children:"No services discovered yet"})]}):y("div",{className:"space-y-2",children:r.map(Y=>O("div",{children:[O("button",{className:"w-full flex items-center gap-2 px-2 py-1.5 text-sm text-left hover:bg-gray-100 rounded",onClick:()=>p(Y.name),children:[f.has(Y.name)?y(ES,{className:"w-4 h-4 flex-shrink-0"}):y(wS,{className:"w-4 h-4 flex-shrink-0"}),y("span",{className:"font-medium",children:Y.name}),y("span",{className:"text-xs text-gray-500 ml-auto",children:Y.routes.length})]}),f.has(Y.name)&&y("div",{className:"ml-6 mt-1 space-y-0.5",children:Y.routes.map((j,J)=>O("button",{className:`w-full flex items-center gap-2 px-2 py-1.5 text-sm text-left rounded ${(u==null?void 0:u.service)===Y.name&&(u==null?void 0:u.method)===j.method&&(u==null?void 0:u.path)===j.path?"bg-blue-50 text-blue-700":"hover:bg-gray-50"}`,onClick:()=>g(Y.name,j.method,j.path),children:[y(je,{className:`text-[10px] font-mono px-1.5 py-0 ${G(j.method)}`,children:j.method}),y("span",{className:"font-mono text-xs truncate",children:j.path})]},`${j.method}-${j.path}-${J}`))})]},Y.name))})})})]}),y(_i,{className:"flex-1",children:O("div",{className:"p-6",children:[y("h1",{className:"text-lg font-semibold mb-6",children:"Service Catalog"}),O(Qt,{className:"mb-6",children:[y(Yt,{children:O(nn,{className:"flex items-center gap-2 text-base font-semibold",children:[y(vS,{className:"w-5 h-5"}),(l==null?void 0:l.name)||"Unknown Service"]})}),O(Gt,{children:[O("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:[O("div",{children:[y("p",{className:"text-xs text-muted-foreground mb-1",children:"Version"}),y("p",{className:"text-sm font-medium",children:(l==null?void 0:l.version)||"N/A"})]}),O("div",{children:[y("p",{className:"text-xs text-muted-foreground mb-1",children:"Framework"}),y("p",{className:"text-sm font-medium",children:((V=l==null?void 0:l.metadata)==null?void 0:V.framework)||"N/A"})]}),O("div",{children:[y("p",{className:"text-xs text-muted-foreground mb-1",children:"Status"}),y(je,{variant:l!=null&&l.running?"default":"secondary",className:l!=null&&l.running?"bg-green-600":"",children:l!=null&&l.running?"Running":"Stopped"})]}),O("div",{children:[y("p",{className:"text-xs text-muted-foreground mb-1",children:"Endpoints"}),y("p",{className:"text-sm font-medium",children:S})]})]}),(l==null?void 0:l.description)&&O("div",{className:"mt-4 pt-4 border-t",children:[y("p",{className:"text-xs text-muted-foreground mb-1",children:"Description"}),y("p",{className:"text-sm",children:l.description})]})]})]}),m&&Object.keys(m).length>0&&O(Qt,{className:"mb-6",children:[y(Yt,{children:y(nn,{className:"text-base font-semibold",children:"Integrations"})}),y(Gt,{children:y("div",{className:"space-y-3",children:Object.entries(m).map(([Y,j])=>O("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:[y("div",{className:"mt-0.5",children:M(Y)}),O("div",{className:"flex-1 min-w-0",children:[y("p",{className:"text-sm font-medium capitalize",children:Y}),y("p",{className:"text-xs text-muted-foreground font-mono truncate",title:j,children:L(j)})]})]},Y))})})]}),u&&O(Qt,{children:[y(Yt,{className:"border-b",children:O("div",{className:"flex items-center justify-between",children:[O("div",{className:"flex items-center gap-3",children:[y(je,{className:`text-xs font-mono ${G(u.method)}`,children:u.method}),O("div",{children:[y("div",{className:"font-mono text-lg font-semibold",children:u.path}),O("div",{className:"text-sm text-muted-foreground mt-0.5",children:[u.service," service"]})]})]}),O(vt,{onClick:x,className:"bg-blue-600 hover:bg-blue-700 text-white text-xs",size:"sm",children:[y(By,{className:"w-4 h-4 mr-2"}),"Test in API Explorer"]})]})}),y(Gt,{className:"pt-6",children:O("div",{className:"space-y-6",children:[H.length>0?O("div",{children:[y("h3",{className:"text-sm font-semibold mb-3",children:"Path Parameters"}),y("div",{className:"space-y-2",children:H.map(Y=>O("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:[y("code",{className:"text-sm font-mono font-semibold text-primary",children:Y}),y("span",{className:"text-xs text-muted-foreground mt-0.5",children:"string"})]},Y))})]}):null,u.method==="GET"&&O("div",{children:[y("h3",{className:"text-sm font-semibold mb-3",children:"Query Parameters"}),y("div",{className:"p-4 bg-muted rounded-lg border",children:y("p",{className:"text-sm text-muted-foreground",children:"Optional query parameters can be added in API Explorer"})})]}),["POST","PUT","PATCH"].includes(u.method)&&O("div",{children:[y("h3",{className:"text-sm font-semibold mb-3",children:"Request Body Schema"}),w!=null&&w.requestBody?O("div",{className:"space-y-3",children:[y("div",{className:"space-y-2",children:w.requestBody.fields.map(Y=>y("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg border",children:O("div",{className:"flex-1",children:[O("div",{className:"flex items-center gap-2",children:[y("code",{className:"text-sm font-mono font-semibold",children:Y.name}),y(je,{variant:"outline",className:"text-xs",children:Y.type}),Y.required&&y(je,{variant:"destructive",className:"text-xs",children:"required"})]}),Y.description&&y("p",{className:"text-xs text-muted-foreground mt-1",children:Y.description})]})},Y.name))}),y("p",{className:"text-xs text-muted-foreground",children:"Auto-generated from Zod schema"})]}):y("div",{className:"p-4 bg-muted rounded-lg border",children:y("p",{className:"text-sm text-muted-foreground",children:"No schema defined. Configure request body in API Explorer"})})]}),(w==null?void 0:w.handler)&&w.handler!=="anonymous"&&O("div",{children:[y("h3",{className:"text-sm font-semibold mb-3",children:"Handler"}),y("code",{className:"text-sm bg-muted px-3 py-1.5 rounded border inline-block",children:w.handler})]})]})})]})]})})]})}const Aw=$f("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"}}),Cv=b.forwardRef(({className:l,variant:r,...i},u)=>y("div",{ref:u,role:"alert",className:Rt(Aw({variant:r}),l),...i}));Cv.displayName="Alert";const Ow=b.forwardRef(({className:l,...r},i)=>y("h5",{ref:i,className:Rt("mb-1 font-medium leading-none tracking-tight",l),...r}));Ow.displayName="AlertTitle";const Av=b.forwardRef(({className:l,...r},i)=>y("div",{ref:i,className:Rt("text-sm [&_p]:leading-relaxed",l),...r}));Av.displayName="AlertDescription";function Rw(){var u,c,f;const{data:l}=Jf(),r=(u=l==null?void 0:l.metadata)==null?void 0:u.drizzle;if(!(r!=null&&r.detected))return y("div",{className:"h-full flex items-center justify-center bg-muted p-6",children:O(Qt,{className:"max-w-lg",children:[y(Yt,{children:O(nn,{className:"flex items-center gap-2 text-base",children:[y(Rf,{className:"w-5 h-5 text-yellow-600 dark:text-yellow-500"}),"No Database Detected"]})}),O(Gt,{className:"space-y-4",children:[y("p",{className:"text-sm text-muted-foreground",children:"Vision couldn't detect a Drizzle configuration file."}),O("div",{className:"space-y-3",children:[y("p",{className:"text-sm font-medium",children:"To enable database features:"}),O("ol",{className:"list-decimal list-inside space-y-2 text-sm text-muted-foreground",children:[O("li",{children:["Create ",y("code",{className:"bg-muted px-1.5 py-0.5 rounded text-xs font-mono border",children:"drizzle.config.ts"})]}),y("li",{children:"Enable auto-start in Vision config:"})]}),y("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({
|
|
213
|
-
drizzle: {
|
|
214
|
-
autoStart: true, // Auto-start Drizzle Studio
|
|
215
|
-
port: 4983 // Optional, default: 4983
|
|
216
|
-
}
|
|
217
|
-
}))`})]})]})]})});const i=r.studioUrl;return O("div",{className:"h-full flex flex-col bg-background",children:[y("div",{className:"border-b px-6 py-4 bg-muted",children:O("div",{className:"flex items-center justify-between",children:[O("div",{className:"flex items-center gap-3",children:[y(Hy,{className:"w-5 h-5 text-blue-600 dark:text-blue-500"}),O("div",{className:"flex items-center gap-3",children:[y("h1",{className:"text-lg font-semibold",children:"Drizzle Studio"}),O("div",{className:"flex items-center gap-2 mt-1",children:[y(je,{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"}),y("span",{className:"text-xs text-muted-foreground",children:r.autoStarted?"Auto-started":"Manual start required"})]})]})]}),y("div",{className:"flex items-center gap-2",children:i&&O(vt,{variant:"outline",size:"sm",onClick:()=>window.open(i,"_blank"),children:[y(By,{className:"w-4 h-4 mr-2"}),y("span",{className:"text-sm font-medium",children:"Open in New Tab"})]})})]})}),!r.autoStarted&&y("div",{className:"p-6",children:O(Cv,{className:"border-yellow-200 dark:border-yellow-800 bg-yellow-50 dark:bg-yellow-950",children:[y(Rf,{className:"w-4 h-4 text-yellow-600 dark:text-yellow-500"}),y(Av,{children:O("div",{className:"space-y-3",children:[y("p",{className:"text-sm font-medium",children:"Drizzle Studio is not running"}),y("p",{className:"text-sm text-muted-foreground",children:"Start Drizzle Studio manually or enable auto-start:"}),y("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:
|
|
218
|
-
npx drizzle-kit studio --port ${((f=(c=r.studioUrl)==null?void 0:c.match(/:(\d+)/))==null?void 0:f[1])||4983}
|
|
219
|
-
|
|
220
|
-
# Or enable auto-start:
|
|
221
|
-
drizzle: { autoStart: true }`})]})})]})}),i&&r.autoStarted&&y("div",{className:"flex-1 relative",children:y("iframe",{src:i,className:"absolute inset-0 w-full h-full border-0",title:"Drizzle Studio",allow:"cross-origin-isolated"})})]})}function Mw({toasts:l,removeToast:r}){return y("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 pointer-events-none",children:l.map(i=>y(zw,{toast:i,onClose:()=>r(i.id)},i.id))})}function zw({toast:l,onClose:r}){const[i,u]=b.useState(!1);b.useEffect(()=>{const f=l.duration??3e3,h=setTimeout(()=>{u(!0),setTimeout(r,300)},f);return()=>clearTimeout(h)},[l.duration,r]);const c={success:"bg-green-600",error:"bg-red-600",info:"bg-blue-600"}[l.type??"info"];return O("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:[y("span",{className:"flex-1 text-sm",children:l.message}),y("button",{onClick:()=>{u(!0),setTimeout(r,300)},className:"text-white/80 hover:text-white transition-colors","aria-label":"Close",children:y(MS,{className:"w-4 h-4"})})]})}const Dw=new z1;function _w({children:l}){const{connected:r,error:i}=DS();return i?y("div",{className:"flex items-center justify-center h-screen",children:O("div",{className:"text-center",children:[y("h1",{className:"text-2xl font-bold text-red-600 mb-2",children:"Connection Error"}),y("p",{className:"text-gray-600",children:i.message})]})}):r?y(_l,{children:l}):y("div",{className:"flex items-center justify-center h-screen",children:O("div",{className:"text-center",children:[y("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),y("p",{className:"text-gray-600",children:"Connecting to Vision Dashboard..."})]})})}function Uw(){const{traceId:l}=Yf(),{data:r}=_S(l||"");return r?y(dw,{trace:r}):y("div",{className:"text-gray-500",children:"Loading trace..."})}function Lw(){return y(iw,{children:y(qw,{})})}function qw(){const{toasts:l,removeToast:r}=nd();return O(_l,{children:[y(rS,{children:y(_w,{children:y(qx,{children:O(Yn,{path:"/",element:y(R2,{}),children:[y(Yn,{index:!0,element:y(Ux,{to:"/api-explorer",replace:!0})}),y(Yn,{path:"api-explorer",element:y(uw,{})}),y(Yn,{path:"traces",element:y(cw,{}),children:y(Yn,{path:":traceId",element:y(Uw,{})})}),y(Yn,{path:"logs",element:y(Tw,{})}),y(Yn,{path:"services",element:y(Cw,{})}),y(Yn,{path:"database",element:y(Rw,{})})]})})})}),y(Mw,{toasts:l,removeToast:r})]})}s1.createRoot(document.getElementById("app")).render(y(ha.StrictMode,{children:y(D1,{client:Dw,children:y(Lw,{})})}));
|