fastapi-radar 0.1.0__py3-none-any.whl → 0.1.2__py3-none-any.whl
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.
Potentially problematic release.
This version of fastapi-radar might be problematic. Click here for more details.
- fastapi_radar/api.py +32 -11
- fastapi_radar/capture.py +1 -1
- fastapi_radar/dashboard/dist/assets/index-BG-z4GnL.js +328 -0
- fastapi_radar/dashboard/dist/assets/index-DSKnLYuE.css +1 -0
- fastapi_radar/dashboard/dist/index.html +2 -2
- fastapi_radar/middleware.py +1 -1
- fastapi_radar/radar.py +8 -5
- {fastapi_radar-0.1.0.dist-info → fastapi_radar-0.1.2.dist-info}/METADATA +2 -2
- fastapi_radar-0.1.2.dist-info/RECORD +17 -0
- fastapi_radar/dashboard/dist/assets/index-BK3IXW8U.css +0 -1
- fastapi_radar/dashboard/dist/assets/index-DS-t-RQ1.js +0 -268
- fastapi_radar-0.1.0.dist-info/RECORD +0 -17
- {fastapi_radar-0.1.0.dist-info → fastapi_radar-0.1.2.dist-info}/WHEEL +0 -0
- {fastapi_radar-0.1.0.dist-info → fastapi_radar-0.1.2.dist-info}/licenses/LICENSE +0 -0
- {fastapi_radar-0.1.0.dist-info → fastapi_radar-0.1.2.dist-info}/top_level.txt +0 -0
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
var H1=Object.defineProperty;var mh=e=>{throw TypeError(e)};var V1=(e,t,n)=>t in e?H1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var vh=(e,t,n)=>V1(e,typeof t!="symbol"?t+"":t,n),mc=(e,t,n)=>t.has(e)||mh("Cannot "+n);var b=(e,t,n)=>(mc(e,t,"read from private field"),n?n.call(e):t.get(e)),H=(e,t,n)=>t.has(e)?mh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),A=(e,t,n,r)=>(mc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),X=(e,t,n)=>(mc(e,t,"access private method"),n);var Ki=(e,t,n,r)=>({set _(o){A(e,t,o,n)},get _(){return b(e,t,r)}});function Q1(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Um(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bm={exports:{}},bl={},Hm={exports:{}},Y={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its 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 Oi=Symbol.for("react.element"),q1=Symbol.for("react.portal"),K1=Symbol.for("react.fragment"),G1=Symbol.for("react.strict_mode"),Y1=Symbol.for("react.profiler"),X1=Symbol.for("react.provider"),Z1=Symbol.for("react.context"),J1=Symbol.for("react.forward_ref"),eS=Symbol.for("react.suspense"),tS=Symbol.for("react.memo"),nS=Symbol.for("react.lazy"),gh=Symbol.iterator;function rS(e){return e===null||typeof e!="object"?null:(e=gh&&e[gh]||e["@@iterator"],typeof e=="function"?e:null)}var Vm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qm=Object.assign,qm={};function us(e,t,n){this.props=e,this.context=t,this.refs=qm,this.updater=n||Vm}us.prototype.isReactComponent={};us.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};us.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Km(){}Km.prototype=us.prototype;function kd(e,t,n){this.props=e,this.context=t,this.refs=qm,this.updater=n||Vm}var _d=kd.prototype=new Km;_d.constructor=kd;Qm(_d,us.prototype);_d.isPureReactComponent=!0;var yh=Array.isArray,Gm=Object.prototype.hasOwnProperty,Td={current:null},Ym={key:!0,ref:!0,__self:!0,__source:!0};function Xm(e,t,n){var r,o={},s=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(s=""+t.key),t)Gm.call(t,r)&&!Ym.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Oi,type:e,key:s,ref:a,props:o,_owner:Td.current}}function oS(e,t){return{$$typeof:Oi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Md(e){return typeof e=="object"&&e!==null&&e.$$typeof===Oi}function sS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var xh=/\/+/g;function vc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?sS(""+e.key):t.toString(36)}function Ca(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Oi:case q1:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+vc(a,0):r,yh(o)?(n="",e!=null&&(n=e.replace(xh,"$&/")+"/"),Ca(o,t,n,"",function(u){return u})):o!=null&&(Md(o)&&(o=oS(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(xh,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",yh(e))for(var l=0;l<e.length;l++){s=e[l];var c=r+vc(s,l);a+=Ca(s,t,n,c,o)}else if(c=rS(e),typeof c=="function")for(e=c.call(e),l=0;!(s=e.next()).done;)s=s.value,c=r+vc(s,l++),a+=Ca(s,t,n,c,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Gi(e,t,n){if(e==null)return e;var r=[],o=0;return Ca(e,r,"","",function(s){return t.call(n,s,o++)}),r}function iS(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var st={current:null},ja={transition:null},aS={ReactCurrentDispatcher:st,ReactCurrentBatchConfig:ja,ReactCurrentOwner:Td};function Zm(){throw Error("act(...) is not supported in production builds of React.")}Y.Children={map:Gi,forEach:function(e,t,n){Gi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Gi(e,function(){t++}),t},toArray:function(e){return Gi(e,function(t){return t})||[]},only:function(e){if(!Md(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Component=us;Y.Fragment=K1;Y.Profiler=Y1;Y.PureComponent=kd;Y.StrictMode=G1;Y.Suspense=eS;Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=aS;Y.act=Zm;Y.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Qm({},e.props),o=e.key,s=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,a=Td.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)Gm.call(t,c)&&!Ym.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Oi,type:e.type,key:o,ref:s,props:r,_owner:a}};Y.createContext=function(e){return e={$$typeof:Z1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:X1,_context:e},e.Consumer=e};Y.createElement=Xm;Y.createFactory=function(e){var t=Xm.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:J1,render:e}};Y.isValidElement=Md;Y.lazy=function(e){return{$$typeof:nS,_payload:{_status:-1,_result:e},_init:iS}};Y.memo=function(e,t){return{$$typeof:tS,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=ja.transition;ja.transition={};try{e()}finally{ja.transition=t}};Y.unstable_act=Zm;Y.useCallback=function(e,t){return st.current.useCallback(e,t)};Y.useContext=function(e){return st.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return st.current.useDeferredValue(e)};Y.useEffect=function(e,t){return st.current.useEffect(e,t)};Y.useId=function(){return st.current.useId()};Y.useImperativeHandle=function(e,t,n){return st.current.useImperativeHandle(e,t,n)};Y.useInsertionEffect=function(e,t){return st.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return st.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return st.current.useMemo(e,t)};Y.useReducer=function(e,t,n){return st.current.useReducer(e,t,n)};Y.useRef=function(e){return st.current.useRef(e)};Y.useState=function(e){return st.current.useState(e)};Y.useSyncExternalStore=function(e,t,n){return st.current.useSyncExternalStore(e,t,n)};Y.useTransition=function(){return st.current.useTransition()};Y.version="18.3.1";Hm.exports=Y;var f=Hm.exports;const Nn=Um(f),Jm=Q1({__proto__:null,default:Nn},[f]);/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its 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 lS=f,cS=Symbol.for("react.element"),uS=Symbol.for("react.fragment"),dS=Object.prototype.hasOwnProperty,fS=lS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,hS={key:!0,ref:!0,__self:!0,__source:!0};function ev(e,t,n){var r,o={},s=null,a=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)dS.call(t,r)&&!hS.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:cS,type:e,key:s,ref:a,props:o,_owner:fS.current}}bl.Fragment=uS;bl.jsx=ev;bl.jsxs=ev;Bm.exports=bl;var i=Bm.exports,ru={},tv={exports:{}},bt={},nv={exports:{}},rv={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its 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
|
-
*/(function(e){function t(k,_){var I=k.length;k.push(_);e:for(;0<I;){var W=I-1>>>1,te=k[W];if(0<o(te,_))k[W]=_,k[I]=te,I=W;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var _=k[0],I=k.pop();if(I!==_){k[0]=I;e:for(var W=0,te=k.length,lt=te>>>1;W<lt;){var Oe=2*(W+1)-1,vt=k[Oe],Te=Oe+1,$=k[Te];if(0>o(vt,I))Te<te&&0>o($,vt)?(k[W]=$,k[Te]=I,W=Te):(k[W]=vt,k[Oe]=I,W=Oe);else if(Te<te&&0>o($,I))k[W]=$,k[Te]=I,W=Te;else break e}}return _}function o(k,_){var I=k.sortIndex-_.sortIndex;return I!==0?I:k.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,h=null,p=3,w=!1,m=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(k){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=k)r(u),_.sortIndex=_.expirationTime,t(c,_);else break;_=n(u)}}function C(k){if(y=!1,x(k),!m)if(n(c)!==null)m=!0,z(j);else{var _=n(u);_!==null&&G(C,_.startTime-k)}}function j(k,_){m=!1,y&&(y=!1,g(R),R=-1),w=!0;var I=p;try{for(x(_),h=n(c);h!==null&&(!(h.expirationTime>_)||k&&!O());){var W=h.callback;if(typeof W=="function"){h.callback=null,p=h.priorityLevel;var te=W(h.expirationTime<=_);_=e.unstable_now(),typeof te=="function"?h.callback=te:h===n(c)&&r(c),x(_)}else r(c);h=n(c)}if(h!==null)var lt=!0;else{var Oe=n(u);Oe!==null&&G(C,Oe.startTime-_),lt=!1}return lt}finally{h=null,p=I,w=!1}}var E=!1,N=null,R=-1,T=5,P=-1;function O(){return!(e.unstable_now()-P<T)}function D(){if(N!==null){var k=e.unstable_now();P=k;var _=!0;try{_=N(!0,k)}finally{_?V():(E=!1,N=null)}}else E=!1}var V;if(typeof v=="function")V=function(){v(D)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,ae=Q.port2;Q.port1.onmessage=D,V=function(){ae.postMessage(null)}}else V=function(){S(D,0)};function z(k){N=k,E||(E=!0,V())}function G(k,_){R=S(function(){k(e.unstable_now())},_)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){m||w||(m=!0,z(j))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(k){switch(p){case 1:case 2:case 3:var _=3;break;default:_=p}var I=p;p=_;try{return k()}finally{p=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,_){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var I=p;p=k;try{return _()}finally{p=I}},e.unstable_scheduleCallback=function(k,_,I){var W=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?W+I:W):I=W,k){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=I+te,k={id:d++,callback:_,priorityLevel:k,startTime:I,expirationTime:te,sortIndex:-1},I>W?(k.sortIndex=I,t(u,k),n(c)===null&&k===n(u)&&(y?(g(R),R=-1):y=!0,G(C,I-W))):(k.sortIndex=te,t(c,k),m||w||(m=!0,z(j))),k},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(k){var _=p;return function(){var I=p;p=_;try{return k.apply(this,arguments)}finally{p=I}}}})(rv);nv.exports=rv;var pS=nv.exports;/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its 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 mS=f,jt=pS;function M(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ov=new Set,ni={};function fo(e,t){es(e,t),es(e+"Capture",t)}function es(e,t){for(ni[e]=t,e=0;e<t.length;e++)ov.add(t[e])}var An=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ou=Object.prototype.hasOwnProperty,vS=/^[: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]*$/,wh={},Sh={};function gS(e){return ou.call(Sh,e)?!0:ou.call(wh,e)?!1:vS.test(e)?Sh[e]=!0:(wh[e]=!0,!1)}function yS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function xS(e,t,n,r){if(t===null||typeof t>"u"||yS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function it(e,t,n,r,o,s,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var Ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ke[e]=new it(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ke[t]=new it(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ke[e]=new it(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ke[e]=new it(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ke[e]=new it(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ke[e]=new it(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ke[e]=new it(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ke[e]=new it(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ke[e]=new it(e,5,!1,e.toLowerCase(),null,!1,!1)});var Od=/[\-:]([a-z])/g;function Dd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Od,Dd);Ke[t]=new it(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Od,Dd);Ke[t]=new it(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Od,Dd);Ke[t]=new it(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ke[e]=new it(e,1,!1,e.toLowerCase(),null,!1,!1)});Ke.xlinkHref=new it("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ke[e]=new it(e,1,!1,e.toLowerCase(),null,!0,!0)});function Id(e,t,n,r){var o=Ke.hasOwnProperty(t)?Ke[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(xS(t,n,o,r)&&(n=null),r||o===null?gS(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Bn=mS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Yi=Symbol.for("react.element"),So=Symbol.for("react.portal"),Co=Symbol.for("react.fragment"),Ad=Symbol.for("react.strict_mode"),su=Symbol.for("react.profiler"),sv=Symbol.for("react.provider"),iv=Symbol.for("react.context"),Ld=Symbol.for("react.forward_ref"),iu=Symbol.for("react.suspense"),au=Symbol.for("react.suspense_list"),Fd=Symbol.for("react.memo"),Zn=Symbol.for("react.lazy"),av=Symbol.for("react.offscreen"),Ch=Symbol.iterator;function Es(e){return e===null||typeof e!="object"?null:(e=Ch&&e[Ch]||e["@@iterator"],typeof e=="function"?e:null)}var Re=Object.assign,gc;function $s(e){if(gc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);gc=t&&t[1]||""}return`
|
|
34
|
-
`+gc+e}var yc=!1;function xc(e,t){if(!e||yc)return"";yc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
35
|
-
`),s=r.stack.split(`
|
|
36
|
-
`),a=o.length-1,l=s.length-1;1<=a&&0<=l&&o[a]!==s[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==s[l]){if(a!==1||l!==1)do if(a--,l--,0>l||o[a]!==s[l]){var c=`
|
|
37
|
-
`+o[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=l);break}}}finally{yc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$s(e):""}function wS(e){switch(e.tag){case 5:return $s(e.type);case 16:return $s("Lazy");case 13:return $s("Suspense");case 19:return $s("SuspenseList");case 0:case 2:case 15:return e=xc(e.type,!1),e;case 11:return e=xc(e.type.render,!1),e;case 1:return e=xc(e.type,!0),e;default:return""}}function lu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Co:return"Fragment";case So:return"Portal";case su:return"Profiler";case Ad:return"StrictMode";case iu:return"Suspense";case au:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case iv:return(e.displayName||"Context")+".Consumer";case sv:return(e._context.displayName||"Context")+".Provider";case Ld:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fd:return t=e.displayName||null,t!==null?t:lu(e.type)||"Memo";case Zn:t=e._payload,e=e._init;try{return lu(e(t))}catch{}}return null}function SS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return lu(t);case 8:return t===Ad?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function jr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function CS(e){var t=lv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xi(e){e._valueTracker||(e._valueTracker=CS(e))}function cv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=lv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function za(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function cu(e,t){var n=t.checked;return Re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function uv(e,t){t=t.checked,t!=null&&Id(e,"checked",t,!1)}function uu(e,t){uv(e,t);var n=jr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?du(e,t.type,n):t.hasOwnProperty("defaultValue")&&du(e,t.type,jr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function du(e,t,n){(t!=="number"||za(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zs=Array.isArray;function Oo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+jr(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function fu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(M(91));return Re({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Nh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(M(92));if(zs(n)){if(1<n.length)throw Error(M(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:jr(n)}}function dv(e,t){var n=jr(t.value),r=jr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Eh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function fv(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function hu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?fv(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zi,hv=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Zi=Zi||document.createElement("div"),Zi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ri(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},jS=["Webkit","ms","Moz","O"];Object.keys(qs).forEach(function(e){jS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qs[t]=qs[e]})});function pv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qs.hasOwnProperty(e)&&qs[e]?(""+t).trim():t+"px"}function mv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=pv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var bS=Re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pu(e,t){if(t){if(bS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function mu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vu=null;function $d(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gu=null,Do=null,Io=null;function Rh(e){if(e=Ai(e)){if(typeof gu!="function")throw Error(M(280));var t=e.stateNode;t&&(t=kl(t),gu(e.stateNode,e.type,t))}}function vv(e){Do?Io?Io.push(e):Io=[e]:Do=e}function gv(){if(Do){var e=Do,t=Io;if(Io=Do=null,Rh(e),t)for(e=0;e<t.length;e++)Rh(t[e])}}function yv(e,t){return e(t)}function xv(){}var wc=!1;function wv(e,t,n){if(wc)return e(t,n);wc=!0;try{return yv(e,t,n)}finally{wc=!1,(Do!==null||Io!==null)&&(xv(),gv())}}function oi(e,t){var n=e.stateNode;if(n===null)return null;var r=kl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(M(231,t,typeof n));return n}var yu=!1;if(An)try{var Rs={};Object.defineProperty(Rs,"passive",{get:function(){yu=!0}}),window.addEventListener("test",Rs,Rs),window.removeEventListener("test",Rs,Rs)}catch{yu=!1}function NS(e,t,n,r,o,s,a,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Ks=!1,Wa=null,Ua=!1,xu=null,ES={onError:function(e){Ks=!0,Wa=e}};function RS(e,t,n,r,o,s,a,l,c){Ks=!1,Wa=null,NS.apply(ES,arguments)}function PS(e,t,n,r,o,s,a,l,c){if(RS.apply(this,arguments),Ks){if(Ks){var u=Wa;Ks=!1,Wa=null}else throw Error(M(198));Ua||(Ua=!0,xu=u)}}function ho(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Sv(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 Ph(e){if(ho(e)!==e)throw Error(M(188))}function kS(e){var t=e.alternate;if(!t){if(t=ho(e),t===null)throw Error(M(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Ph(o),e;if(s===r)return Ph(o),t;s=s.sibling}throw Error(M(188))}if(n.return!==r.return)n=o,r=s;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=s;break}if(l===r){a=!0,r=o,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,r=o;break}if(l===r){a=!0,r=s,n=o;break}l=l.sibling}if(!a)throw Error(M(189))}}if(n.alternate!==r)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?e:t}function Cv(e){return e=kS(e),e!==null?jv(e):null}function jv(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=jv(e);if(t!==null)return t;e=e.sibling}return null}var bv=jt.unstable_scheduleCallback,kh=jt.unstable_cancelCallback,_S=jt.unstable_shouldYield,TS=jt.unstable_requestPaint,Me=jt.unstable_now,MS=jt.unstable_getCurrentPriorityLevel,zd=jt.unstable_ImmediatePriority,Nv=jt.unstable_UserBlockingPriority,Ba=jt.unstable_NormalPriority,OS=jt.unstable_LowPriority,Ev=jt.unstable_IdlePriority,Nl=null,pn=null;function DS(e){if(pn&&typeof pn.onCommitFiberRoot=="function")try{pn.onCommitFiberRoot(Nl,e,void 0,(e.current.flags&128)===128)}catch{}}var Qt=Math.clz32?Math.clz32:LS,IS=Math.log,AS=Math.LN2;function LS(e){return e>>>=0,e===0?32:31-(IS(e)/AS|0)|0}var Ji=64,ea=4194304;function Ws(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ha(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=Ws(l):(s&=a,s!==0&&(r=Ws(s)))}else a=n&~o,a!==0?r=Ws(a):s!==0&&(r=Ws(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Qt(t),o=1<<n,r|=e[n],t&=~o;return r}function FS(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $S(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var a=31-Qt(s),l=1<<a,c=o[a];c===-1?(!(l&n)||l&r)&&(o[a]=FS(l,t)):c<=t&&(e.expiredLanes|=l),s&=~l}}function wu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rv(){var e=Ji;return Ji<<=1,!(Ji&4194240)&&(Ji=64),e}function Sc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Qt(t),e[t]=n}function zS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Qt(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function Wd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Qt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var fe=0;function Pv(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var kv,Ud,_v,Tv,Mv,Su=!1,ta=[],pr=null,mr=null,vr=null,si=new Map,ii=new Map,tr=[],WS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function _h(e,t){switch(e){case"focusin":case"focusout":pr=null;break;case"dragenter":case"dragleave":mr=null;break;case"mouseover":case"mouseout":vr=null;break;case"pointerover":case"pointerout":si.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ii.delete(t.pointerId)}}function Ps(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=Ai(t),t!==null&&Ud(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function US(e,t,n,r,o){switch(t){case"focusin":return pr=Ps(pr,e,t,n,r,o),!0;case"dragenter":return mr=Ps(mr,e,t,n,r,o),!0;case"mouseover":return vr=Ps(vr,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return si.set(s,Ps(si.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,ii.set(s,Ps(ii.get(s)||null,e,t,n,r,o)),!0}return!1}function Ov(e){var t=Ar(e.target);if(t!==null){var n=ho(t);if(n!==null){if(t=n.tag,t===13){if(t=Sv(n),t!==null){e.blockedOn=t,Mv(e.priority,function(){_v(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 ba(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);vu=r,n.target.dispatchEvent(r),vu=null}else return t=Ai(n),t!==null&&Ud(t),e.blockedOn=n,!1;t.shift()}return!0}function Th(e,t,n){ba(e)&&n.delete(t)}function BS(){Su=!1,pr!==null&&ba(pr)&&(pr=null),mr!==null&&ba(mr)&&(mr=null),vr!==null&&ba(vr)&&(vr=null),si.forEach(Th),ii.forEach(Th)}function ks(e,t){e.blockedOn===t&&(e.blockedOn=null,Su||(Su=!0,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,BS)))}function ai(e){function t(o){return ks(o,e)}if(0<ta.length){ks(ta[0],e);for(var n=1;n<ta.length;n++){var r=ta[n];r.blockedOn===e&&(r.blockedOn=null)}}for(pr!==null&&ks(pr,e),mr!==null&&ks(mr,e),vr!==null&&ks(vr,e),si.forEach(t),ii.forEach(t),n=0;n<tr.length;n++)r=tr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<tr.length&&(n=tr[0],n.blockedOn===null);)Ov(n),n.blockedOn===null&&tr.shift()}var Ao=Bn.ReactCurrentBatchConfig,Va=!0;function HS(e,t,n,r){var o=fe,s=Ao.transition;Ao.transition=null;try{fe=1,Bd(e,t,n,r)}finally{fe=o,Ao.transition=s}}function VS(e,t,n,r){var o=fe,s=Ao.transition;Ao.transition=null;try{fe=4,Bd(e,t,n,r)}finally{fe=o,Ao.transition=s}}function Bd(e,t,n,r){if(Va){var o=Cu(e,t,n,r);if(o===null)Tc(e,t,r,Qa,n),_h(e,r);else if(US(o,e,t,n,r))r.stopPropagation();else if(_h(e,r),t&4&&-1<WS.indexOf(e)){for(;o!==null;){var s=Ai(o);if(s!==null&&kv(s),s=Cu(e,t,n,r),s===null&&Tc(e,t,r,Qa,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else Tc(e,t,r,null,n)}}var Qa=null;function Cu(e,t,n,r){if(Qa=null,e=$d(r),e=Ar(e),e!==null)if(t=ho(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Sv(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 Qa=e,null}function Dv(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(MS()){case zd:return 1;case Nv:return 4;case Ba:case OS:return 16;case Ev:return 536870912;default:return 16}default:return 16}}var dr=null,Hd=null,Na=null;function Iv(){if(Na)return Na;var e,t=Hd,n=t.length,r,o="value"in dr?dr.value:dr.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[s-r];r++);return Na=o.slice(e,1<r?1-r:void 0)}function Ea(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 na(){return!0}function Mh(){return!1}function Nt(e){function t(n,r,o,s,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?na:Mh,this.isPropagationStopped=Mh,this}return Re(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=na)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=na)},persist:function(){},isPersistent:na}),t}var ds={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vd=Nt(ds),Ii=Re({},ds,{view:0,detail:0}),QS=Nt(Ii),Cc,jc,_s,El=Re({},Ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qd,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!==_s&&(_s&&e.type==="mousemove"?(Cc=e.screenX-_s.screenX,jc=e.screenY-_s.screenY):jc=Cc=0,_s=e),Cc)},movementY:function(e){return"movementY"in e?e.movementY:jc}}),Oh=Nt(El),qS=Re({},El,{dataTransfer:0}),KS=Nt(qS),GS=Re({},Ii,{relatedTarget:0}),bc=Nt(GS),YS=Re({},ds,{animationName:0,elapsedTime:0,pseudoElement:0}),XS=Nt(YS),ZS=Re({},ds,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),JS=Nt(ZS),eC=Re({},ds,{data:0}),Dh=Nt(eC),tC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nC={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"},rC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oC(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rC[e])?!!t[e]:!1}function Qd(){return oC}var sC=Re({},Ii,{key:function(e){if(e.key){var t=tC[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ea(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?nC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qd,charCode:function(e){return e.type==="keypress"?Ea(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ea(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),iC=Nt(sC),aC=Re({},El,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ih=Nt(aC),lC=Re({},Ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qd}),cC=Nt(lC),uC=Re({},ds,{propertyName:0,elapsedTime:0,pseudoElement:0}),dC=Nt(uC),fC=Re({},El,{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}),hC=Nt(fC),pC=[9,13,27,32],qd=An&&"CompositionEvent"in window,Gs=null;An&&"documentMode"in document&&(Gs=document.documentMode);var mC=An&&"TextEvent"in window&&!Gs,Av=An&&(!qd||Gs&&8<Gs&&11>=Gs),Ah=" ",Lh=!1;function Lv(e,t){switch(e){case"keyup":return pC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jo=!1;function vC(e,t){switch(e){case"compositionend":return Fv(t);case"keypress":return t.which!==32?null:(Lh=!0,Ah);case"textInput":return e=t.data,e===Ah&&Lh?null:e;default:return null}}function gC(e,t){if(jo)return e==="compositionend"||!qd&&Lv(e,t)?(e=Iv(),Na=Hd=dr=null,jo=!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 Av&&t.locale!=="ko"?null:t.data;default:return null}}var yC={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 Fh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yC[e.type]:t==="textarea"}function $v(e,t,n,r){vv(r),t=qa(t,"onChange"),0<t.length&&(n=new Vd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ys=null,li=null;function xC(e){Yv(e,0)}function Rl(e){var t=Eo(e);if(cv(t))return e}function wC(e,t){if(e==="change")return t}var zv=!1;if(An){var Nc;if(An){var Ec="oninput"in document;if(!Ec){var $h=document.createElement("div");$h.setAttribute("oninput","return;"),Ec=typeof $h.oninput=="function"}Nc=Ec}else Nc=!1;zv=Nc&&(!document.documentMode||9<document.documentMode)}function zh(){Ys&&(Ys.detachEvent("onpropertychange",Wv),li=Ys=null)}function Wv(e){if(e.propertyName==="value"&&Rl(li)){var t=[];$v(t,li,e,$d(e)),wv(xC,t)}}function SC(e,t,n){e==="focusin"?(zh(),Ys=t,li=n,Ys.attachEvent("onpropertychange",Wv)):e==="focusout"&&zh()}function CC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Rl(li)}function jC(e,t){if(e==="click")return Rl(t)}function bC(e,t){if(e==="input"||e==="change")return Rl(t)}function NC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kt=typeof Object.is=="function"?Object.is:NC;function ci(e,t){if(Kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!ou.call(t,o)||!Kt(e[o],t[o]))return!1}return!0}function Wh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Uh(e,t){var n=Wh(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Wh(n)}}function Uv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bv(){for(var e=window,t=za();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=za(e.document)}return t}function Kd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function EC(e){var t=Bv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Uv(n.ownerDocument.documentElement,n)){if(r!==null&&Kd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=Uh(n,s);var a=Uh(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var RC=An&&"documentMode"in document&&11>=document.documentMode,bo=null,ju=null,Xs=null,bu=!1;function Bh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bu||bo==null||bo!==za(r)||(r=bo,"selectionStart"in r&&Kd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xs&&ci(Xs,r)||(Xs=r,r=qa(ju,"onSelect"),0<r.length&&(t=new Vd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=bo)))}function ra(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var No={animationend:ra("Animation","AnimationEnd"),animationiteration:ra("Animation","AnimationIteration"),animationstart:ra("Animation","AnimationStart"),transitionend:ra("Transition","TransitionEnd")},Rc={},Hv={};An&&(Hv=document.createElement("div").style,"AnimationEvent"in window||(delete No.animationend.animation,delete No.animationiteration.animation,delete No.animationstart.animation),"TransitionEvent"in window||delete No.transitionend.transition);function Pl(e){if(Rc[e])return Rc[e];if(!No[e])return e;var t=No[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Hv)return Rc[e]=t[n];return e}var Vv=Pl("animationend"),Qv=Pl("animationiteration"),qv=Pl("animationstart"),Kv=Pl("transitionend"),Gv=new Map,Hh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){Gv.set(e,t),fo(t,[e])}for(var Pc=0;Pc<Hh.length;Pc++){var kc=Hh[Pc],PC=kc.toLowerCase(),kC=kc[0].toUpperCase()+kc.slice(1);Pr(PC,"on"+kC)}Pr(Vv,"onAnimationEnd");Pr(Qv,"onAnimationIteration");Pr(qv,"onAnimationStart");Pr("dblclick","onDoubleClick");Pr("focusin","onFocus");Pr("focusout","onBlur");Pr(Kv,"onTransitionEnd");es("onMouseEnter",["mouseout","mouseover"]);es("onMouseLeave",["mouseout","mouseover"]);es("onPointerEnter",["pointerout","pointerover"]);es("onPointerLeave",["pointerout","pointerover"]);fo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fo("onBeforeInput",["compositionend","keypress","textInput","paste"]);fo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Us="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(" "),_C=new Set("cancel close invalid load scroll toggle".split(" ").concat(Us));function Vh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,PS(r,t,void 0,e),e.currentTarget=null}function Yv(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==s&&o.isPropagationStopped())break e;Vh(o,l,u),s=c}else for(a=0;a<r.length;a++){if(l=r[a],c=l.instance,u=l.currentTarget,l=l.listener,c!==s&&o.isPropagationStopped())break e;Vh(o,l,u),s=c}}}if(Ua)throw e=xu,Ua=!1,xu=null,e}function we(e,t){var n=t[ku];n===void 0&&(n=t[ku]=new Set);var r=e+"__bubble";n.has(r)||(Xv(t,e,2,!1),n.add(r))}function _c(e,t,n){var r=0;t&&(r|=4),Xv(n,e,r,t)}var oa="_reactListening"+Math.random().toString(36).slice(2);function ui(e){if(!e[oa]){e[oa]=!0,ov.forEach(function(n){n!=="selectionchange"&&(_C.has(n)||_c(n,!1,e),_c(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[oa]||(t[oa]=!0,_c("selectionchange",!1,t))}}function Xv(e,t,n,r){switch(Dv(t)){case 1:var o=HS;break;case 4:o=VS;break;default:o=Bd}n=o.bind(null,t,n,e),o=void 0,!yu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Tc(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;a=a.return}for(;l!==null;){if(a=Ar(l),a===null)return;if(c=a.tag,c===5||c===6){r=s=a;continue e}l=l.parentNode}}r=r.return}wv(function(){var u=s,d=$d(n),h=[];e:{var p=Gv.get(e);if(p!==void 0){var w=Vd,m=e;switch(e){case"keypress":if(Ea(n)===0)break e;case"keydown":case"keyup":w=iC;break;case"focusin":m="focus",w=bc;break;case"focusout":m="blur",w=bc;break;case"beforeblur":case"afterblur":w=bc;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":w=Oh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=KS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=cC;break;case Vv:case Qv:case qv:w=XS;break;case Kv:w=dC;break;case"scroll":w=QS;break;case"wheel":w=hC;break;case"copy":case"cut":case"paste":w=JS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=Ih}var y=(t&4)!==0,S=!y&&e==="scroll",g=y?p!==null?p+"Capture":null:p;y=[];for(var v=u,x;v!==null;){x=v;var C=x.stateNode;if(x.tag===5&&C!==null&&(x=C,g!==null&&(C=oi(v,g),C!=null&&y.push(di(v,C,x)))),S)break;v=v.return}0<y.length&&(p=new w(p,m,null,n,d),h.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",p&&n!==vu&&(m=n.relatedTarget||n.fromElement)&&(Ar(m)||m[Ln]))break e;if((w||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,w?(m=n.relatedTarget||n.toElement,w=u,m=m?Ar(m):null,m!==null&&(S=ho(m),m!==S||m.tag!==5&&m.tag!==6)&&(m=null)):(w=null,m=u),w!==m)){if(y=Oh,C="onMouseLeave",g="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=Ih,C="onPointerLeave",g="onPointerEnter",v="pointer"),S=w==null?p:Eo(w),x=m==null?p:Eo(m),p=new y(C,v+"leave",w,n,d),p.target=S,p.relatedTarget=x,C=null,Ar(d)===u&&(y=new y(g,v+"enter",m,n,d),y.target=x,y.relatedTarget=S,C=y),S=C,w&&m)t:{for(y=w,g=m,v=0,x=y;x;x=vo(x))v++;for(x=0,C=g;C;C=vo(C))x++;for(;0<v-x;)y=vo(y),v--;for(;0<x-v;)g=vo(g),x--;for(;v--;){if(y===g||g!==null&&y===g.alternate)break t;y=vo(y),g=vo(g)}y=null}else y=null;w!==null&&Qh(h,p,w,y,!1),m!==null&&S!==null&&Qh(h,S,m,y,!0)}}e:{if(p=u?Eo(u):window,w=p.nodeName&&p.nodeName.toLowerCase(),w==="select"||w==="input"&&p.type==="file")var j=wC;else if(Fh(p))if(zv)j=bC;else{j=CC;var E=SC}else(w=p.nodeName)&&w.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(j=jC);if(j&&(j=j(e,u))){$v(h,j,n,d);break e}E&&E(e,p,u),e==="focusout"&&(E=p._wrapperState)&&E.controlled&&p.type==="number"&&du(p,"number",p.value)}switch(E=u?Eo(u):window,e){case"focusin":(Fh(E)||E.contentEditable==="true")&&(bo=E,ju=u,Xs=null);break;case"focusout":Xs=ju=bo=null;break;case"mousedown":bu=!0;break;case"contextmenu":case"mouseup":case"dragend":bu=!1,Bh(h,n,d);break;case"selectionchange":if(RC)break;case"keydown":case"keyup":Bh(h,n,d)}var N;if(qd)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else jo?Lv(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(Av&&n.locale!=="ko"&&(jo||R!=="onCompositionStart"?R==="onCompositionEnd"&&jo&&(N=Iv()):(dr=d,Hd="value"in dr?dr.value:dr.textContent,jo=!0)),E=qa(u,R),0<E.length&&(R=new Dh(R,e,null,n,d),h.push({event:R,listeners:E}),N?R.data=N:(N=Fv(n),N!==null&&(R.data=N)))),(N=mC?vC(e,n):gC(e,n))&&(u=qa(u,"onBeforeInput"),0<u.length&&(d=new Dh("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:u}),d.data=N))}Yv(h,t)})}function di(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qa(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=oi(e,n),s!=null&&r.unshift(di(e,s,o)),s=oi(e,t),s!=null&&r.push(di(e,s,o))),e=e.return}return r}function vo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Qh(e,t,n,r,o){for(var s=t._reactName,a=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&u!==null&&(l=u,o?(c=oi(n,s),c!=null&&a.unshift(di(n,c,l))):o||(c=oi(n,s),c!=null&&a.push(di(n,c,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var TC=/\r\n?/g,MC=/\u0000|\uFFFD/g;function qh(e){return(typeof e=="string"?e:""+e).replace(TC,`
|
|
38
|
-
`).replace(MC,"")}function sa(e,t,n){if(t=qh(t),qh(e)!==t&&n)throw Error(M(425))}function Ka(){}var Nu=null,Eu=null;function Ru(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pu=typeof setTimeout=="function"?setTimeout:void 0,OC=typeof clearTimeout=="function"?clearTimeout:void 0,Kh=typeof Promise=="function"?Promise:void 0,DC=typeof queueMicrotask=="function"?queueMicrotask:typeof Kh<"u"?function(e){return Kh.resolve(null).then(e).catch(IC)}:Pu;function IC(e){setTimeout(function(){throw e})}function Mc(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ai(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ai(t)}function gr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Gh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var fs=Math.random().toString(36).slice(2),cn="__reactFiber$"+fs,fi="__reactProps$"+fs,Ln="__reactContainer$"+fs,ku="__reactEvents$"+fs,AC="__reactListeners$"+fs,LC="__reactHandles$"+fs;function Ar(e){var t=e[cn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ln]||n[cn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Gh(e);e!==null;){if(n=e[cn])return n;e=Gh(e)}return t}e=n,n=e.parentNode}return null}function Ai(e){return e=e[cn]||e[Ln],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Eo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(M(33))}function kl(e){return e[fi]||null}var _u=[],Ro=-1;function kr(e){return{current:e}}function Se(e){0>Ro||(e.current=_u[Ro],_u[Ro]=null,Ro--)}function ye(e,t){Ro++,_u[Ro]=e.current,e.current=t}var br={},Je=kr(br),ht=kr(!1),Zr=br;function ts(e,t){var n=e.type.contextTypes;if(!n)return br;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function pt(e){return e=e.childContextTypes,e!=null}function Ga(){Se(ht),Se(Je)}function Yh(e,t,n){if(Je.current!==br)throw Error(M(168));ye(Je,t),ye(ht,n)}function Zv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(M(108,SS(e)||"Unknown",o));return Re({},n,r)}function Ya(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||br,Zr=Je.current,ye(Je,e),ye(ht,ht.current),!0}function Xh(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=Zv(e,t,Zr),r.__reactInternalMemoizedMergedChildContext=e,Se(ht),Se(Je),ye(Je,e)):Se(ht),ye(ht,n)}var Rn=null,_l=!1,Oc=!1;function Jv(e){Rn===null?Rn=[e]:Rn.push(e)}function FC(e){_l=!0,Jv(e)}function _r(){if(!Oc&&Rn!==null){Oc=!0;var e=0,t=fe;try{var n=Rn;for(fe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Rn=null,_l=!1}catch(o){throw Rn!==null&&(Rn=Rn.slice(e+1)),bv(zd,_r),o}finally{fe=t,Oc=!1}}return null}var Po=[],ko=0,Xa=null,Za=0,_t=[],Tt=0,Jr=null,_n=1,Tn="";function Or(e,t){Po[ko++]=Za,Po[ko++]=Xa,Xa=e,Za=t}function eg(e,t,n){_t[Tt++]=_n,_t[Tt++]=Tn,_t[Tt++]=Jr,Jr=e;var r=_n;e=Tn;var o=32-Qt(r)-1;r&=~(1<<o),n+=1;var s=32-Qt(t)+o;if(30<s){var a=o-o%5;s=(r&(1<<a)-1).toString(32),r>>=a,o-=a,_n=1<<32-Qt(t)+o|n<<o|r,Tn=s+e}else _n=1<<s|n<<o|r,Tn=e}function Gd(e){e.return!==null&&(Or(e,1),eg(e,1,0))}function Yd(e){for(;e===Xa;)Xa=Po[--ko],Po[ko]=null,Za=Po[--ko],Po[ko]=null;for(;e===Jr;)Jr=_t[--Tt],_t[Tt]=null,Tn=_t[--Tt],_t[Tt]=null,_n=_t[--Tt],_t[Tt]=null}var St=null,wt=null,Ce=!1,Vt=null;function tg(e,t){var n=Mt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,St=e,wt=gr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,St=e,wt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Jr!==null?{id:_n,overflow:Tn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Mt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,St=e,wt=null,!0):!1;default:return!1}}function Tu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Mu(e){if(Ce){var t=wt;if(t){var n=t;if(!Zh(e,t)){if(Tu(e))throw Error(M(418));t=gr(n.nextSibling);var r=St;t&&Zh(e,t)?tg(r,n):(e.flags=e.flags&-4097|2,Ce=!1,St=e)}}else{if(Tu(e))throw Error(M(418));e.flags=e.flags&-4097|2,Ce=!1,St=e}}}function Jh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;St=e}function ia(e){if(e!==St)return!1;if(!Ce)return Jh(e),Ce=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ru(e.type,e.memoizedProps)),t&&(t=wt)){if(Tu(e))throw ng(),Error(M(418));for(;t;)tg(e,t),t=gr(t.nextSibling)}if(Jh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){wt=gr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}wt=null}}else wt=St?gr(e.stateNode.nextSibling):null;return!0}function ng(){for(var e=wt;e;)e=gr(e.nextSibling)}function ns(){wt=St=null,Ce=!1}function Xd(e){Vt===null?Vt=[e]:Vt.push(e)}var $C=Bn.ReactCurrentBatchConfig;function Ts(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(M(309));var r=n.stateNode}if(!r)throw Error(M(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(a){var l=o.refs;a===null?delete l[s]:l[s]=a},t._stringRef=s,t)}if(typeof e!="string")throw Error(M(284));if(!n._owner)throw Error(M(290,e))}return e}function aa(e,t){throw e=Object.prototype.toString.call(t),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ep(e){var t=e._init;return t(e._payload)}function rg(e){function t(g,v){if(e){var x=g.deletions;x===null?(g.deletions=[v],g.flags|=16):x.push(v)}}function n(g,v){if(!e)return null;for(;v!==null;)t(g,v),v=v.sibling;return null}function r(g,v){for(g=new Map;v!==null;)v.key!==null?g.set(v.key,v):g.set(v.index,v),v=v.sibling;return g}function o(g,v){return g=Sr(g,v),g.index=0,g.sibling=null,g}function s(g,v,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<v?(g.flags|=2,v):x):(g.flags|=2,v)):(g.flags|=1048576,v)}function a(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,v,x,C){return v===null||v.tag!==6?(v=zc(x,g.mode,C),v.return=g,v):(v=o(v,x),v.return=g,v)}function c(g,v,x,C){var j=x.type;return j===Co?d(g,v,x.props.children,C,x.key):v!==null&&(v.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Zn&&ep(j)===v.type)?(C=o(v,x.props),C.ref=Ts(g,v,x),C.return=g,C):(C=Oa(x.type,x.key,x.props,null,g.mode,C),C.ref=Ts(g,v,x),C.return=g,C)}function u(g,v,x,C){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=Wc(x,g.mode,C),v.return=g,v):(v=o(v,x.children||[]),v.return=g,v)}function d(g,v,x,C,j){return v===null||v.tag!==7?(v=Yr(x,g.mode,C,j),v.return=g,v):(v=o(v,x),v.return=g,v)}function h(g,v,x){if(typeof v=="string"&&v!==""||typeof v=="number")return v=zc(""+v,g.mode,x),v.return=g,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Yi:return x=Oa(v.type,v.key,v.props,null,g.mode,x),x.ref=Ts(g,null,v),x.return=g,x;case So:return v=Wc(v,g.mode,x),v.return=g,v;case Zn:var C=v._init;return h(g,C(v._payload),x)}if(zs(v)||Es(v))return v=Yr(v,g.mode,x,null),v.return=g,v;aa(g,v)}return null}function p(g,v,x,C){var j=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return j!==null?null:l(g,v,""+x,C);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Yi:return x.key===j?c(g,v,x,C):null;case So:return x.key===j?u(g,v,x,C):null;case Zn:return j=x._init,p(g,v,j(x._payload),C)}if(zs(x)||Es(x))return j!==null?null:d(g,v,x,C,null);aa(g,x)}return null}function w(g,v,x,C,j){if(typeof C=="string"&&C!==""||typeof C=="number")return g=g.get(x)||null,l(v,g,""+C,j);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Yi:return g=g.get(C.key===null?x:C.key)||null,c(v,g,C,j);case So:return g=g.get(C.key===null?x:C.key)||null,u(v,g,C,j);case Zn:var E=C._init;return w(g,v,x,E(C._payload),j)}if(zs(C)||Es(C))return g=g.get(x)||null,d(v,g,C,j,null);aa(v,C)}return null}function m(g,v,x,C){for(var j=null,E=null,N=v,R=v=0,T=null;N!==null&&R<x.length;R++){N.index>R?(T=N,N=null):T=N.sibling;var P=p(g,N,x[R],C);if(P===null){N===null&&(N=T);break}e&&N&&P.alternate===null&&t(g,N),v=s(P,v,R),E===null?j=P:E.sibling=P,E=P,N=T}if(R===x.length)return n(g,N),Ce&&Or(g,R),j;if(N===null){for(;R<x.length;R++)N=h(g,x[R],C),N!==null&&(v=s(N,v,R),E===null?j=N:E.sibling=N,E=N);return Ce&&Or(g,R),j}for(N=r(g,N);R<x.length;R++)T=w(N,g,R,x[R],C),T!==null&&(e&&T.alternate!==null&&N.delete(T.key===null?R:T.key),v=s(T,v,R),E===null?j=T:E.sibling=T,E=T);return e&&N.forEach(function(O){return t(g,O)}),Ce&&Or(g,R),j}function y(g,v,x,C){var j=Es(x);if(typeof j!="function")throw Error(M(150));if(x=j.call(x),x==null)throw Error(M(151));for(var E=j=null,N=v,R=v=0,T=null,P=x.next();N!==null&&!P.done;R++,P=x.next()){N.index>R?(T=N,N=null):T=N.sibling;var O=p(g,N,P.value,C);if(O===null){N===null&&(N=T);break}e&&N&&O.alternate===null&&t(g,N),v=s(O,v,R),E===null?j=O:E.sibling=O,E=O,N=T}if(P.done)return n(g,N),Ce&&Or(g,R),j;if(N===null){for(;!P.done;R++,P=x.next())P=h(g,P.value,C),P!==null&&(v=s(P,v,R),E===null?j=P:E.sibling=P,E=P);return Ce&&Or(g,R),j}for(N=r(g,N);!P.done;R++,P=x.next())P=w(N,g,R,P.value,C),P!==null&&(e&&P.alternate!==null&&N.delete(P.key===null?R:P.key),v=s(P,v,R),E===null?j=P:E.sibling=P,E=P);return e&&N.forEach(function(D){return t(g,D)}),Ce&&Or(g,R),j}function S(g,v,x,C){if(typeof x=="object"&&x!==null&&x.type===Co&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Yi:e:{for(var j=x.key,E=v;E!==null;){if(E.key===j){if(j=x.type,j===Co){if(E.tag===7){n(g,E.sibling),v=o(E,x.props.children),v.return=g,g=v;break e}}else if(E.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Zn&&ep(j)===E.type){n(g,E.sibling),v=o(E,x.props),v.ref=Ts(g,E,x),v.return=g,g=v;break e}n(g,E);break}else t(g,E);E=E.sibling}x.type===Co?(v=Yr(x.props.children,g.mode,C,x.key),v.return=g,g=v):(C=Oa(x.type,x.key,x.props,null,g.mode,C),C.ref=Ts(g,v,x),C.return=g,g=C)}return a(g);case So:e:{for(E=x.key;v!==null;){if(v.key===E)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){n(g,v.sibling),v=o(v,x.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=Wc(x,g.mode,C),v.return=g,g=v}return a(g);case Zn:return E=x._init,S(g,v,E(x._payload),C)}if(zs(x))return m(g,v,x,C);if(Es(x))return y(g,v,x,C);aa(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,v!==null&&v.tag===6?(n(g,v.sibling),v=o(v,x),v.return=g,g=v):(n(g,v),v=zc(x,g.mode,C),v.return=g,g=v),a(g)):n(g,v)}return S}var rs=rg(!0),og=rg(!1),Ja=kr(null),el=null,_o=null,Zd=null;function Jd(){Zd=_o=el=null}function ef(e){var t=Ja.current;Se(Ja),e._currentValue=t}function Ou(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Lo(e,t){el=e,Zd=_o=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ft=!0),e.firstContext=null)}function It(e){var t=e._currentValue;if(Zd!==e)if(e={context:e,memoizedValue:t,next:null},_o===null){if(el===null)throw Error(M(308));_o=e,el.dependencies={lanes:0,firstContext:e}}else _o=_o.next=e;return t}var Lr=null;function tf(e){Lr===null?Lr=[e]:Lr.push(e)}function sg(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,tf(t)):(n.next=o.next,o.next=n),t.interleaved=n,Fn(e,r)}function Fn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Jn=!1;function nf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ig(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Dn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ie&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Fn(e,n)}return o=r.interleaved,o===null?(t.next=t,tf(r)):(t.next=o.next,o.next=t),r.interleaved=t,Fn(e,n)}function Ra(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Wd(e,n)}}function tp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=a:s=s.next=a,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function tl(e,t,n,r){var o=e.updateQueue;Jn=!1;var s=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?s=u:a.next=u,a=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(s!==null){var h=o.baseState;a=0,d=u=c=null,l=s;do{var p=l.lane,w=l.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:w,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,y=l;switch(p=t,w=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){h=m.call(w,h,p);break e}h=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,p=typeof m=="function"?m.call(w,h,p):m,p==null)break e;h=Re({},h,p);break e;case 2:Jn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[l]:p.push(l))}else w={eventTime:w,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=w,c=h):d=d.next=w,a|=p;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;p=l,l=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(d===null&&(c=h),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);to|=a,e.lanes=a,e.memoizedState=h}}function np(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(M(191,o));o.call(r)}}}var Li={},mn=kr(Li),hi=kr(Li),pi=kr(Li);function Fr(e){if(e===Li)throw Error(M(174));return e}function rf(e,t){switch(ye(pi,t),ye(hi,e),ye(mn,Li),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hu(t,e)}Se(mn),ye(mn,t)}function os(){Se(mn),Se(hi),Se(pi)}function ag(e){Fr(pi.current);var t=Fr(mn.current),n=hu(t,e.type);t!==n&&(ye(hi,e),ye(mn,n))}function of(e){hi.current===e&&(Se(mn),Se(hi))}var be=kr(0);function nl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Dc=[];function sf(){for(var e=0;e<Dc.length;e++)Dc[e]._workInProgressVersionPrimary=null;Dc.length=0}var Pa=Bn.ReactCurrentDispatcher,Ic=Bn.ReactCurrentBatchConfig,eo=0,Ee=null,Ae=null,We=null,rl=!1,Zs=!1,mi=0,zC=0;function Ge(){throw Error(M(321))}function af(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Kt(e[n],t[n]))return!1;return!0}function lf(e,t,n,r,o,s){if(eo=s,Ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Pa.current=e===null||e.memoizedState===null?HC:VC,e=n(r,o),Zs){s=0;do{if(Zs=!1,mi=0,25<=s)throw Error(M(301));s+=1,We=Ae=null,t.updateQueue=null,Pa.current=QC,e=n(r,o)}while(Zs)}if(Pa.current=ol,t=Ae!==null&&Ae.next!==null,eo=0,We=Ae=Ee=null,rl=!1,t)throw Error(M(300));return e}function cf(){var e=mi!==0;return mi=0,e}function on(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?Ee.memoizedState=We=e:We=We.next=e,We}function At(){if(Ae===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=We===null?Ee.memoizedState:We.next;if(t!==null)We=t,Ae=e;else{if(e===null)throw Error(M(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},We===null?Ee.memoizedState=We=e:We=We.next=e}return We}function vi(e,t){return typeof t=="function"?t(e):t}function Ac(e){var t=At(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=Ae,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var a=o.next;o.next=s.next,s.next=a}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var l=a=null,c=null,u=s;do{var d=u.lane;if((eo&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=h,a=r):c=c.next=h,Ee.lanes|=d,to|=d}u=u.next}while(u!==null&&u!==s);c===null?a=r:c.next=l,Kt(r,t.memoizedState)||(ft=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,Ee.lanes|=s,to|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Lc(e){var t=At(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do s=e(s,a.action),a=a.next;while(a!==o);Kt(s,t.memoizedState)||(ft=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function lg(){}function cg(e,t){var n=Ee,r=At(),o=t(),s=!Kt(r.memoizedState,o);if(s&&(r.memoizedState=o,ft=!0),r=r.queue,uf(fg.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||We!==null&&We.memoizedState.tag&1){if(n.flags|=2048,gi(9,dg.bind(null,n,r,o,t),void 0,null),He===null)throw Error(M(349));eo&30||ug(n,t,o)}return o}function ug(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ee.updateQueue,t===null?(t={lastEffect:null,stores:null},Ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function dg(e,t,n,r){t.value=n,t.getSnapshot=r,hg(t)&&pg(e)}function fg(e,t,n){return n(function(){hg(t)&&pg(e)})}function hg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kt(e,n)}catch{return!0}}function pg(e){var t=Fn(e,1);t!==null&&qt(t,e,1,-1)}function rp(e){var t=on();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vi,lastRenderedState:e},t.queue=e,e=e.dispatch=BC.bind(null,Ee,e),[t.memoizedState,e]}function gi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ee.updateQueue,t===null?(t={lastEffect:null,stores:null},Ee.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function mg(){return At().memoizedState}function ka(e,t,n,r){var o=on();Ee.flags|=e,o.memoizedState=gi(1|t,n,void 0,r===void 0?null:r)}function Tl(e,t,n,r){var o=At();r=r===void 0?null:r;var s=void 0;if(Ae!==null){var a=Ae.memoizedState;if(s=a.destroy,r!==null&&af(r,a.deps)){o.memoizedState=gi(t,n,s,r);return}}Ee.flags|=e,o.memoizedState=gi(1|t,n,s,r)}function op(e,t){return ka(8390656,8,e,t)}function uf(e,t){return Tl(2048,8,e,t)}function vg(e,t){return Tl(4,2,e,t)}function gg(e,t){return Tl(4,4,e,t)}function yg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function xg(e,t,n){return n=n!=null?n.concat([e]):null,Tl(4,4,yg.bind(null,t,e),n)}function df(){}function wg(e,t){var n=At();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&af(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Sg(e,t){var n=At();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&af(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Cg(e,t,n){return eo&21?(Kt(n,t)||(n=Rv(),Ee.lanes|=n,to|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ft=!0),e.memoizedState=n)}function WC(e,t){var n=fe;fe=n!==0&&4>n?n:4,e(!0);var r=Ic.transition;Ic.transition={};try{e(!1),t()}finally{fe=n,Ic.transition=r}}function jg(){return At().memoizedState}function UC(e,t,n){var r=wr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bg(e))Ng(t,n);else if(n=sg(e,t,n,r),n!==null){var o=ot();qt(n,e,r,o),Eg(n,t,r)}}function BC(e,t,n){var r=wr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bg(e))Ng(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,l=s(a,n);if(o.hasEagerState=!0,o.eagerState=l,Kt(l,a)){var c=t.interleaved;c===null?(o.next=o,tf(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=sg(e,t,o,r),n!==null&&(o=ot(),qt(n,e,r,o),Eg(n,t,r))}}function bg(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function Ng(e,t){Zs=rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Eg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Wd(e,n)}}var ol={readContext:It,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},HC={readContext:It,useCallback:function(e,t){return on().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:op,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ka(4194308,4,yg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ka(4194308,4,e,t)},useInsertionEffect:function(e,t){return ka(4,2,e,t)},useMemo:function(e,t){var n=on();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=on();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=UC.bind(null,Ee,e),[r.memoizedState,e]},useRef:function(e){var t=on();return e={current:e},t.memoizedState=e},useState:rp,useDebugValue:df,useDeferredValue:function(e){return on().memoizedState=e},useTransition:function(){var e=rp(!1),t=e[0];return e=WC.bind(null,e[1]),on().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ee,o=on();if(Ce){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),He===null)throw Error(M(349));eo&30||ug(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,op(fg.bind(null,r,s,e),[e]),r.flags|=2048,gi(9,dg.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=on(),t=He.identifierPrefix;if(Ce){var n=Tn,r=_n;n=(r&~(1<<32-Qt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=zC++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},VC={readContext:It,useCallback:wg,useContext:It,useEffect:uf,useImperativeHandle:xg,useInsertionEffect:vg,useLayoutEffect:gg,useMemo:Sg,useReducer:Ac,useRef:mg,useState:function(){return Ac(vi)},useDebugValue:df,useDeferredValue:function(e){var t=At();return Cg(t,Ae.memoizedState,e)},useTransition:function(){var e=Ac(vi)[0],t=At().memoizedState;return[e,t]},useMutableSource:lg,useSyncExternalStore:cg,useId:jg,unstable_isNewReconciler:!1},QC={readContext:It,useCallback:wg,useContext:It,useEffect:uf,useImperativeHandle:xg,useInsertionEffect:vg,useLayoutEffect:gg,useMemo:Sg,useReducer:Lc,useRef:mg,useState:function(){return Lc(vi)},useDebugValue:df,useDeferredValue:function(e){var t=At();return Ae===null?t.memoizedState=e:Cg(t,Ae.memoizedState,e)},useTransition:function(){var e=Lc(vi)[0],t=At().memoizedState;return[e,t]},useMutableSource:lg,useSyncExternalStore:cg,useId:jg,unstable_isNewReconciler:!1};function Wt(e,t){if(e&&e.defaultProps){t=Re({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Du(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Re({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ml={isMounted:function(e){return(e=e._reactInternals)?ho(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ot(),o=wr(e),s=Dn(r,o);s.payload=t,n!=null&&(s.callback=n),t=yr(e,s,o),t!==null&&(qt(t,e,o,r),Ra(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ot(),o=wr(e),s=Dn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=yr(e,s,o),t!==null&&(qt(t,e,o,r),Ra(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ot(),r=wr(e),o=Dn(n,r);o.tag=2,t!=null&&(o.callback=t),t=yr(e,o,r),t!==null&&(qt(t,e,r,n),Ra(t,e,r))}};function sp(e,t,n,r,o,s,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,a):t.prototype&&t.prototype.isPureReactComponent?!ci(n,r)||!ci(o,s):!0}function Rg(e,t,n){var r=!1,o=br,s=t.contextType;return typeof s=="object"&&s!==null?s=It(s):(o=pt(t)?Zr:Je.current,r=t.contextTypes,s=(r=r!=null)?ts(e,o):br),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ml,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function ip(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ml.enqueueReplaceState(t,t.state,null)}function Iu(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},nf(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=It(s):(s=pt(t)?Zr:Je.current,o.context=ts(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Du(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Ml.enqueueReplaceState(o,o.state,null),tl(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function ss(e,t){try{var n="",r=t;do n+=wS(r),r=r.return;while(r);var o=n}catch(s){o=`
|
|
39
|
-
Error generating stack: `+s.message+`
|
|
40
|
-
`+s.stack}return{value:e,source:t,stack:o,digest:null}}function Fc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Au(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var qC=typeof WeakMap=="function"?WeakMap:Map;function Pg(e,t,n){n=Dn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){il||(il=!0,Qu=r),Au(e,t)},n}function kg(e,t,n){n=Dn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Au(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Au(e,t),typeof r!="function"&&(xr===null?xr=new Set([this]):xr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function ap(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new qC;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=aj.bind(null,e,t,n),t.then(e,e))}function lp(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function cp(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Dn(-1,1),t.tag=2,yr(n,t,1))),n.lanes|=1),e)}var KC=Bn.ReactCurrentOwner,ft=!1;function nt(e,t,n,r){t.child=e===null?og(t,null,n,r):rs(t,e.child,n,r)}function up(e,t,n,r,o){n=n.render;var s=t.ref;return Lo(t,o),r=lf(e,t,n,r,s,o),n=cf(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,$n(e,t,o)):(Ce&&n&&Gd(t),t.flags|=1,nt(e,t,r,o),t.child)}function dp(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!xf(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,_g(e,t,s,r,o)):(e=Oa(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var a=s.memoizedProps;if(n=n.compare,n=n!==null?n:ci,n(a,r)&&e.ref===t.ref)return $n(e,t,o)}return t.flags|=1,e=Sr(s,r),e.ref=t.ref,e.return=t,t.child=e}function _g(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(ci(s,r)&&e.ref===t.ref)if(ft=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(ft=!0);else return t.lanes=e.lanes,$n(e,t,o)}return Lu(e,t,n,r,o)}function Tg(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ye(Mo,yt),yt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ye(Mo,yt),yt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ye(Mo,yt),yt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ye(Mo,yt),yt|=r;return nt(e,t,o,n),t.child}function Mg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Lu(e,t,n,r,o){var s=pt(n)?Zr:Je.current;return s=ts(t,s),Lo(t,o),n=lf(e,t,n,r,s,o),r=cf(),e!==null&&!ft?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,$n(e,t,o)):(Ce&&r&&Gd(t),t.flags|=1,nt(e,t,n,o),t.child)}function fp(e,t,n,r,o){if(pt(n)){var s=!0;Ya(t)}else s=!1;if(Lo(t,o),t.stateNode===null)_a(e,t),Rg(t,n,r),Iu(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var c=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=It(u):(u=pt(n)?Zr:Je.current,u=ts(t,u));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||c!==u)&&ip(t,a,r,u),Jn=!1;var p=t.memoizedState;a.state=p,tl(t,r,a,o),c=t.memoizedState,l!==r||p!==c||ht.current||Jn?(typeof d=="function"&&(Du(t,n,d,r),c=t.memoizedState),(l=Jn||sp(t,n,l,r,p,c,u))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ig(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Wt(t.type,l),a.props=u,h=t.pendingProps,p=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=It(c):(c=pt(n)?Zr:Je.current,c=ts(t,c));var w=n.getDerivedStateFromProps;(d=typeof w=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==h||p!==c)&&ip(t,a,r,c),Jn=!1,p=t.memoizedState,a.state=p,tl(t,r,a,o);var m=t.memoizedState;l!==h||p!==m||ht.current||Jn?(typeof w=="function"&&(Du(t,n,w,r),m=t.memoizedState),(u=Jn||sp(t,n,u,r,p,m,c)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=c,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Fu(e,t,n,r,s,o)}function Fu(e,t,n,r,o,s){Mg(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&Xh(t,n,!1),$n(e,t,s);r=t.stateNode,KC.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=rs(t,e.child,null,s),t.child=rs(t,null,l,s)):nt(e,t,l,s),t.memoizedState=r.state,o&&Xh(t,n,!0),t.child}function Og(e){var t=e.stateNode;t.pendingContext?Yh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Yh(e,t.context,!1),rf(e,t.containerInfo)}function hp(e,t,n,r,o){return ns(),Xd(o),t.flags|=256,nt(e,t,n,r),t.child}var $u={dehydrated:null,treeContext:null,retryLane:0};function zu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dg(e,t,n){var r=t.pendingProps,o=be.current,s=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ye(be,o&1),e===null)return Mu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,s?(r=t.mode,s=t.child,a={mode:"hidden",children:a},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=a):s=Il(a,r,0,null),e=Yr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=zu(n),t.memoizedState=$u,e):ff(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return GC(e,t,a,r,l,o,n);if(s){s=r.fallback,a=t.mode,o=e.child,l=o.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Sr(o,c),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?s=Sr(l,s):(s=Yr(s,a,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,a=e.child.memoizedState,a=a===null?zu(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},s.memoizedState=a,s.childLanes=e.childLanes&~n,t.memoizedState=$u,r}return s=e.child,e=s.sibling,r=Sr(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ff(e,t){return t=Il({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function la(e,t,n,r){return r!==null&&Xd(r),rs(t,e.child,null,n),e=ff(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function GC(e,t,n,r,o,s,a){if(n)return t.flags&256?(t.flags&=-257,r=Fc(Error(M(422))),la(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Il({mode:"visible",children:r.children},o,0,null),s=Yr(s,o,a,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&rs(t,e.child,null,a),t.child.memoizedState=zu(a),t.memoizedState=$u,s);if(!(t.mode&1))return la(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(M(419)),r=Fc(s,r,void 0),la(e,t,a,r)}if(l=(a&e.childLanes)!==0,ft||l){if(r=He,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,Fn(e,o),qt(r,e,o,-1))}return yf(),r=Fc(Error(M(421))),la(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=lj.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,wt=gr(o.nextSibling),St=t,Ce=!0,Vt=null,e!==null&&(_t[Tt++]=_n,_t[Tt++]=Tn,_t[Tt++]=Jr,_n=e.id,Tn=e.overflow,Jr=t),t=ff(t,r.children),t.flags|=4096,t)}function pp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ou(e.return,t,n)}function $c(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function Ig(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(nt(e,t,r.children,n),r=be.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pp(e,n,t);else if(e.tag===19)pp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ye(be,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&nl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$c(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&nl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$c(t,!0,n,null,s);break;case"together":$c(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function _a(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $n(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),to|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,n=Sr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Sr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function YC(e,t,n){switch(t.tag){case 3:Og(t),ns();break;case 5:ag(t);break;case 1:pt(t.type)&&Ya(t);break;case 4:rf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ye(Ja,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ye(be,be.current&1),t.flags|=128,null):n&t.child.childLanes?Dg(e,t,n):(ye(be,be.current&1),e=$n(e,t,n),e!==null?e.sibling:null);ye(be,be.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ig(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ye(be,be.current),r)break;return null;case 22:case 23:return t.lanes=0,Tg(e,t,n)}return $n(e,t,n)}var Ag,Wu,Lg,Fg;Ag=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Wu=function(){};Lg=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Fr(mn.current);var s=null;switch(n){case"input":o=cu(e,o),r=cu(e,r),s=[];break;case"select":o=Re({},o,{value:void 0}),r=Re({},r,{value:void 0}),s=[];break;case"textarea":o=fu(e,o),r=fu(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ka)}pu(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ni.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(s=s||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(s=s||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ni.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&we("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Fg=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ms(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function XC(e,t,n){var r=t.pendingProps;switch(Yd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return pt(t.type)&&Ga(),Ye(t),null;case 3:return r=t.stateNode,os(),Se(ht),Se(Je),sf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ia(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vt!==null&&(Gu(Vt),Vt=null))),Wu(e,t),Ye(t),null;case 5:of(t);var o=Fr(pi.current);if(n=t.type,e!==null&&t.stateNode!=null)Lg(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(M(166));return Ye(t),null}if(e=Fr(mn.current),ia(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[cn]=t,r[fi]=s,e=(t.mode&1)!==0,n){case"dialog":we("cancel",r),we("close",r);break;case"iframe":case"object":case"embed":we("load",r);break;case"video":case"audio":for(o=0;o<Us.length;o++)we(Us[o],r);break;case"source":we("error",r);break;case"img":case"image":case"link":we("error",r),we("load",r);break;case"details":we("toggle",r);break;case"input":jh(r,s),we("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},we("invalid",r);break;case"textarea":Nh(r,s),we("invalid",r)}pu(n,s),o=null;for(var a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&sa(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&sa(r.textContent,l,e),o=["children",""+l]):ni.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&we("scroll",r)}switch(n){case"input":Xi(r),bh(r,s,!0);break;case"textarea":Xi(r),Eh(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Ka)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=fv(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[cn]=t,e[fi]=r,Ag(e,t,!1,!1),t.stateNode=e;e:{switch(a=mu(n,r),n){case"dialog":we("cancel",e),we("close",e),o=r;break;case"iframe":case"object":case"embed":we("load",e),o=r;break;case"video":case"audio":for(o=0;o<Us.length;o++)we(Us[o],e);o=r;break;case"source":we("error",e),o=r;break;case"img":case"image":case"link":we("error",e),we("load",e),o=r;break;case"details":we("toggle",e),o=r;break;case"input":jh(e,r),o=cu(e,r),we("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Re({},r,{value:void 0}),we("invalid",e);break;case"textarea":Nh(e,r),o=fu(e,r),we("invalid",e);break;default:o=r}pu(n,o),l=o;for(s in l)if(l.hasOwnProperty(s)){var c=l[s];s==="style"?mv(e,c):s==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&hv(e,c)):s==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&ri(e,c):typeof c=="number"&&ri(e,""+c):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(ni.hasOwnProperty(s)?c!=null&&s==="onScroll"&&we("scroll",e):c!=null&&Id(e,s,c,a))}switch(n){case"input":Xi(e),bh(e,r,!1);break;case"textarea":Xi(e),Eh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+jr(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Oo(e,!!r.multiple,s,!1):r.defaultValue!=null&&Oo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ka)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ye(t),null;case 6:if(e&&t.stateNode!=null)Fg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(M(166));if(n=Fr(pi.current),Fr(mn.current),ia(t)){if(r=t.stateNode,n=t.memoizedProps,r[cn]=t,(s=r.nodeValue!==n)&&(e=St,e!==null))switch(e.tag){case 3:sa(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&sa(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[cn]=t,t.stateNode=r}return Ye(t),null;case 13:if(Se(be),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ce&&wt!==null&&t.mode&1&&!(t.flags&128))ng(),ns(),t.flags|=98560,s=!1;else if(s=ia(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(M(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(M(317));s[cn]=t}else ns(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ye(t),s=!1}else Vt!==null&&(Gu(Vt),Vt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||be.current&1?Fe===0&&(Fe=3):yf())),t.updateQueue!==null&&(t.flags|=4),Ye(t),null);case 4:return os(),Wu(e,t),e===null&&ui(t.stateNode.containerInfo),Ye(t),null;case 10:return ef(t.type._context),Ye(t),null;case 17:return pt(t.type)&&Ga(),Ye(t),null;case 19:if(Se(be),s=t.memoizedState,s===null)return Ye(t),null;if(r=(t.flags&128)!==0,a=s.rendering,a===null)if(r)Ms(s,!1);else{if(Fe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=nl(e),a!==null){for(t.flags|=128,Ms(s,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,a=s.alternate,a===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=a.childLanes,s.lanes=a.lanes,s.child=a.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=a.memoizedProps,s.memoizedState=a.memoizedState,s.updateQueue=a.updateQueue,s.type=a.type,e=a.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ye(be,be.current&1|2),t.child}e=e.sibling}s.tail!==null&&Me()>is&&(t.flags|=128,r=!0,Ms(s,!1),t.lanes=4194304)}else{if(!r)if(e=nl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ms(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!Ce)return Ye(t),null}else 2*Me()-s.renderingStartTime>is&&n!==1073741824&&(t.flags|=128,r=!0,Ms(s,!1),t.lanes=4194304);s.isBackwards?(a.sibling=t.child,t.child=a):(n=s.last,n!==null?n.sibling=a:t.child=a,s.last=a)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Me(),t.sibling=null,n=be.current,ye(be,r?n&1|2:n&1),t):(Ye(t),null);case 22:case 23:return gf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yt&1073741824&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function ZC(e,t){switch(Yd(t),t.tag){case 1:return pt(t.type)&&Ga(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return os(),Se(ht),Se(Je),sf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return of(t),null;case 13:if(Se(be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));ns()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(be),null;case 4:return os(),null;case 10:return ef(t.type._context),null;case 22:case 23:return gf(),null;case 24:return null;default:return null}}var ca=!1,Xe=!1,JC=typeof WeakSet=="function"?WeakSet:Set,F=null;function To(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function Uu(e,t,n){try{n()}catch(r){ke(e,t,r)}}var mp=!1;function ej(e,t){if(Nu=Va,e=Bv(),Kd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,h=e,p=null;t:for(;;){for(var w;h!==n||o!==0&&h.nodeType!==3||(l=a+o),h!==s||r!==0&&h.nodeType!==3||(c=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(w=h.firstChild)!==null;)p=h,h=w;for(;;){if(h===e)break t;if(p===n&&++u===o&&(l=a),p===s&&++d===r&&(c=a),(w=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=w}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Eu={focusedElem:e,selectionRange:n},Va=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,S=m.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Wt(t.type,y),S);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(C){ke(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return m=mp,mp=!1,m}function Js(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Uu(t,n,s)}o=o.next}while(o!==r)}}function Ol(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Bu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $g(e){var t=e.alternate;t!==null&&(e.alternate=null,$g(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[cn],delete t[fi],delete t[ku],delete t[AC],delete t[LC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function zg(e){return e.tag===5||e.tag===3||e.tag===4}function vp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ka));else if(r!==4&&(e=e.child,e!==null))for(Hu(e,t,n),e=e.sibling;e!==null;)Hu(e,t,n),e=e.sibling}function Vu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Vu(e,t,n),e=e.sibling;e!==null;)Vu(e,t,n),e=e.sibling}var Ve=null,Ht=!1;function Vn(e,t,n){for(n=n.child;n!==null;)Wg(e,t,n),n=n.sibling}function Wg(e,t,n){if(pn&&typeof pn.onCommitFiberUnmount=="function")try{pn.onCommitFiberUnmount(Nl,n)}catch{}switch(n.tag){case 5:Xe||To(n,t);case 6:var r=Ve,o=Ht;Ve=null,Vn(e,t,n),Ve=r,Ht=o,Ve!==null&&(Ht?(e=Ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ve.removeChild(n.stateNode));break;case 18:Ve!==null&&(Ht?(e=Ve,n=n.stateNode,e.nodeType===8?Mc(e.parentNode,n):e.nodeType===1&&Mc(e,n),ai(e)):Mc(Ve,n.stateNode));break;case 4:r=Ve,o=Ht,Ve=n.stateNode.containerInfo,Ht=!0,Vn(e,t,n),Ve=r,Ht=o;break;case 0:case 11:case 14:case 15:if(!Xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&Uu(n,t,a),o=o.next}while(o!==r)}Vn(e,t,n);break;case 1:if(!Xe&&(To(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ke(n,t,l)}Vn(e,t,n);break;case 21:Vn(e,t,n);break;case 22:n.mode&1?(Xe=(r=Xe)||n.memoizedState!==null,Vn(e,t,n),Xe=r):Vn(e,t,n);break;default:Vn(e,t,n)}}function gp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new JC),t.forEach(function(r){var o=cj.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function $t(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:Ve=l.stateNode,Ht=!1;break e;case 3:Ve=l.stateNode.containerInfo,Ht=!0;break e;case 4:Ve=l.stateNode.containerInfo,Ht=!0;break e}l=l.return}if(Ve===null)throw Error(M(160));Wg(s,a,o),Ve=null,Ht=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){ke(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ug(t,e),t=t.sibling}function Ug(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if($t(t,e),rn(e),r&4){try{Js(3,e,e.return),Ol(3,e)}catch(y){ke(e,e.return,y)}try{Js(5,e,e.return)}catch(y){ke(e,e.return,y)}}break;case 1:$t(t,e),rn(e),r&512&&n!==null&&To(n,n.return);break;case 5:if($t(t,e),rn(e),r&512&&n!==null&&To(n,n.return),e.flags&32){var o=e.stateNode;try{ri(o,"")}catch(y){ke(e,e.return,y)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,a=n!==null?n.memoizedProps:s,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&uv(o,s),mu(l,a);var u=mu(l,s);for(a=0;a<c.length;a+=2){var d=c[a],h=c[a+1];d==="style"?mv(o,h):d==="dangerouslySetInnerHTML"?hv(o,h):d==="children"?ri(o,h):Id(o,d,h,u)}switch(l){case"input":uu(o,s);break;case"textarea":dv(o,s);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var w=s.value;w!=null?Oo(o,!!s.multiple,w,!1):p!==!!s.multiple&&(s.defaultValue!=null?Oo(o,!!s.multiple,s.defaultValue,!0):Oo(o,!!s.multiple,s.multiple?[]:"",!1))}o[fi]=s}catch(y){ke(e,e.return,y)}}break;case 6:if($t(t,e),rn(e),r&4){if(e.stateNode===null)throw Error(M(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(y){ke(e,e.return,y)}}break;case 3:if($t(t,e),rn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ai(t.containerInfo)}catch(y){ke(e,e.return,y)}break;case 4:$t(t,e),rn(e);break;case 13:$t(t,e),rn(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(mf=Me())),r&4&&gp(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Xe=(u=Xe)||d,$t(t,e),Xe=u):$t(t,e),rn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(F=e,d=e.child;d!==null;){for(h=F=d;F!==null;){switch(p=F,w=p.child,p.tag){case 0:case 11:case 14:case 15:Js(4,p,p.return);break;case 1:To(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){ke(r,n,y)}}break;case 5:To(p,p.return);break;case 22:if(p.memoizedState!==null){xp(h);continue}}w!==null?(w.return=p,F=w):xp(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{o=h.stateNode,u?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=h.stateNode,c=h.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=pv("display",a))}catch(y){ke(e,e.return,y)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(y){ke(e,e.return,y)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:$t(t,e),rn(e),r&4&&gp(e);break;case 21:break;default:$t(t,e),rn(e)}}function rn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(zg(n)){var r=n;break e}n=n.return}throw Error(M(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(ri(o,""),r.flags&=-33);var s=vp(e);Vu(e,s,o);break;case 3:case 4:var a=r.stateNode.containerInfo,l=vp(e);Hu(e,l,a);break;default:throw Error(M(161))}}catch(c){ke(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function tj(e,t,n){F=e,Bg(e)}function Bg(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var o=F,s=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||ca;if(!a){var l=o.alternate,c=l!==null&&l.memoizedState!==null||Xe;l=ca;var u=Xe;if(ca=a,(Xe=c)&&!u)for(F=o;F!==null;)a=F,c=a.child,a.tag===22&&a.memoizedState!==null?wp(o):c!==null?(c.return=a,F=c):wp(o);for(;s!==null;)F=s,Bg(s),s=s.sibling;F=o,ca=l,Xe=u}yp(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,F=s):yp(e)}}function yp(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Xe||Ol(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Xe)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Wt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&np(t,s,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}np(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&ai(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(M(163))}Xe||t.flags&512&&Bu(t)}catch(p){ke(t,t.return,p)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function xp(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function wp(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ol(4,t)}catch(c){ke(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){ke(t,o,c)}}var s=t.return;try{Bu(t)}catch(c){ke(t,s,c)}break;case 5:var a=t.return;try{Bu(t)}catch(c){ke(t,a,c)}}}catch(c){ke(t,t.return,c)}if(t===e){F=null;break}var l=t.sibling;if(l!==null){l.return=t.return,F=l;break}F=t.return}}var nj=Math.ceil,sl=Bn.ReactCurrentDispatcher,hf=Bn.ReactCurrentOwner,Ot=Bn.ReactCurrentBatchConfig,ie=0,He=null,De=null,qe=0,yt=0,Mo=kr(0),Fe=0,yi=null,to=0,Dl=0,pf=0,ei=null,dt=null,mf=0,is=1/0,En=null,il=!1,Qu=null,xr=null,ua=!1,fr=null,al=0,ti=0,qu=null,Ta=-1,Ma=0;function ot(){return ie&6?Me():Ta!==-1?Ta:Ta=Me()}function wr(e){return e.mode&1?ie&2&&qe!==0?qe&-qe:$C.transition!==null?(Ma===0&&(Ma=Rv()),Ma):(e=fe,e!==0||(e=window.event,e=e===void 0?16:Dv(e.type)),e):1}function qt(e,t,n,r){if(50<ti)throw ti=0,qu=null,Error(M(185));Di(e,n,r),(!(ie&2)||e!==He)&&(e===He&&(!(ie&2)&&(Dl|=n),Fe===4&&nr(e,qe)),mt(e,r),n===1&&ie===0&&!(t.mode&1)&&(is=Me()+500,_l&&_r()))}function mt(e,t){var n=e.callbackNode;$S(e,t);var r=Ha(e,e===He?qe:0);if(r===0)n!==null&&kh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&kh(n),t===1)e.tag===0?FC(Sp.bind(null,e)):Jv(Sp.bind(null,e)),DC(function(){!(ie&6)&&_r()}),n=null;else{switch(Pv(r)){case 1:n=zd;break;case 4:n=Nv;break;case 16:n=Ba;break;case 536870912:n=Ev;break;default:n=Ba}n=Xg(n,Hg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Hg(e,t){if(Ta=-1,Ma=0,ie&6)throw Error(M(327));var n=e.callbackNode;if(Fo()&&e.callbackNode!==n)return null;var r=Ha(e,e===He?qe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ll(e,r);else{t=r;var o=ie;ie|=2;var s=Qg();(He!==e||qe!==t)&&(En=null,is=Me()+500,Gr(e,t));do try{sj();break}catch(l){Vg(e,l)}while(!0);Jd(),sl.current=s,ie=o,De!==null?t=0:(He=null,qe=0,t=Fe)}if(t!==0){if(t===2&&(o=wu(e),o!==0&&(r=o,t=Ku(e,o))),t===1)throw n=yi,Gr(e,0),nr(e,r),mt(e,Me()),n;if(t===6)nr(e,r);else{if(o=e.current.alternate,!(r&30)&&!rj(o)&&(t=ll(e,r),t===2&&(s=wu(e),s!==0&&(r=s,t=Ku(e,s))),t===1))throw n=yi,Gr(e,0),nr(e,r),mt(e,Me()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(M(345));case 2:Dr(e,dt,En);break;case 3:if(nr(e,r),(r&130023424)===r&&(t=mf+500-Me(),10<t)){if(Ha(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){ot(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Pu(Dr.bind(null,e,dt,En),t);break}Dr(e,dt,En);break;case 4:if(nr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Qt(r);s=1<<a,a=t[a],a>o&&(o=a),r&=~s}if(r=o,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*nj(r/1960))-r,10<r){e.timeoutHandle=Pu(Dr.bind(null,e,dt,En),r);break}Dr(e,dt,En);break;case 5:Dr(e,dt,En);break;default:throw Error(M(329))}}}return mt(e,Me()),e.callbackNode===n?Hg.bind(null,e):null}function Ku(e,t){var n=ei;return e.current.memoizedState.isDehydrated&&(Gr(e,t).flags|=256),e=ll(e,t),e!==2&&(t=dt,dt=n,t!==null&&Gu(t)),e}function Gu(e){dt===null?dt=e:dt.push.apply(dt,e)}function rj(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!Kt(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function nr(e,t){for(t&=~pf,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Qt(t),r=1<<n;e[n]=-1,t&=~r}}function Sp(e){if(ie&6)throw Error(M(327));Fo();var t=Ha(e,0);if(!(t&1))return mt(e,Me()),null;var n=ll(e,t);if(e.tag!==0&&n===2){var r=wu(e);r!==0&&(t=r,n=Ku(e,r))}if(n===1)throw n=yi,Gr(e,0),nr(e,t),mt(e,Me()),n;if(n===6)throw Error(M(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dr(e,dt,En),mt(e,Me()),null}function vf(e,t){var n=ie;ie|=1;try{return e(t)}finally{ie=n,ie===0&&(is=Me()+500,_l&&_r())}}function no(e){fr!==null&&fr.tag===0&&!(ie&6)&&Fo();var t=ie;ie|=1;var n=Ot.transition,r=fe;try{if(Ot.transition=null,fe=1,e)return e()}finally{fe=r,Ot.transition=n,ie=t,!(ie&6)&&_r()}}function gf(){yt=Mo.current,Se(Mo)}function Gr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,OC(n)),De!==null)for(n=De.return;n!==null;){var r=n;switch(Yd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ga();break;case 3:os(),Se(ht),Se(Je),sf();break;case 5:of(r);break;case 4:os();break;case 13:Se(be);break;case 19:Se(be);break;case 10:ef(r.type._context);break;case 22:case 23:gf()}n=n.return}if(He=e,De=e=Sr(e.current,null),qe=yt=t,Fe=0,yi=null,pf=Dl=to=0,dt=ei=null,Lr!==null){for(t=0;t<Lr.length;t++)if(n=Lr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var a=s.next;s.next=o,r.next=a}n.pending=r}Lr=null}return e}function Vg(e,t){do{var n=De;try{if(Jd(),Pa.current=ol,rl){for(var r=Ee.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}rl=!1}if(eo=0,We=Ae=Ee=null,Zs=!1,mi=0,hf.current=null,n===null||n.return===null){Fe=1,yi=t,De=null;break}e:{var s=e,a=n.return,l=n,c=t;if(t=qe,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var w=lp(a);if(w!==null){w.flags&=-257,cp(w,a,l,s,t),w.mode&1&&ap(s,u,t),t=w,c=u;var m=t.updateQueue;if(m===null){var y=new Set;y.add(c),t.updateQueue=y}else m.add(c);break e}else{if(!(t&1)){ap(s,u,t),yf();break e}c=Error(M(426))}}else if(Ce&&l.mode&1){var S=lp(a);if(S!==null){!(S.flags&65536)&&(S.flags|=256),cp(S,a,l,s,t),Xd(ss(c,l));break e}}s=c=ss(c,l),Fe!==4&&(Fe=2),ei===null?ei=[s]:ei.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var g=Pg(s,c,t);tp(s,g);break e;case 1:l=c;var v=s.type,x=s.stateNode;if(!(s.flags&128)&&(typeof v.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(xr===null||!xr.has(x)))){s.flags|=65536,t&=-t,s.lanes|=t;var C=kg(s,l,t);tp(s,C);break e}}s=s.return}while(s!==null)}Kg(n)}catch(j){t=j,De===n&&n!==null&&(De=n=n.return);continue}break}while(!0)}function Qg(){var e=sl.current;return sl.current=ol,e===null?ol:e}function yf(){(Fe===0||Fe===3||Fe===2)&&(Fe=4),He===null||!(to&268435455)&&!(Dl&268435455)||nr(He,qe)}function ll(e,t){var n=ie;ie|=2;var r=Qg();(He!==e||qe!==t)&&(En=null,Gr(e,t));do try{oj();break}catch(o){Vg(e,o)}while(!0);if(Jd(),ie=n,sl.current=r,De!==null)throw Error(M(261));return He=null,qe=0,Fe}function oj(){for(;De!==null;)qg(De)}function sj(){for(;De!==null&&!_S();)qg(De)}function qg(e){var t=Yg(e.alternate,e,yt);e.memoizedProps=e.pendingProps,t===null?Kg(e):De=t,hf.current=null}function Kg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ZC(n,t),n!==null){n.flags&=32767,De=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fe=6,De=null;return}}else if(n=XC(n,t,yt),n!==null){De=n;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);Fe===0&&(Fe=5)}function Dr(e,t,n){var r=fe,o=Ot.transition;try{Ot.transition=null,fe=1,ij(e,t,n,r)}finally{Ot.transition=o,fe=r}return null}function ij(e,t,n,r){do Fo();while(fr!==null);if(ie&6)throw Error(M(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(M(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(zS(e,s),e===He&&(De=He=null,qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ua||(ua=!0,Xg(Ba,function(){return Fo(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Ot.transition,Ot.transition=null;var a=fe;fe=1;var l=ie;ie|=4,hf.current=null,ej(e,n),Ug(n,e),EC(Eu),Va=!!Nu,Eu=Nu=null,e.current=n,tj(n),TS(),ie=l,fe=a,Ot.transition=s}else e.current=n;if(ua&&(ua=!1,fr=e,al=o),s=e.pendingLanes,s===0&&(xr=null),DS(n.stateNode),mt(e,Me()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(il)throw il=!1,e=Qu,Qu=null,e;return al&1&&e.tag!==0&&Fo(),s=e.pendingLanes,s&1?e===qu?ti++:(ti=0,qu=e):ti=0,_r(),null}function Fo(){if(fr!==null){var e=Pv(al),t=Ot.transition,n=fe;try{if(Ot.transition=null,fe=16>e?16:e,fr===null)var r=!1;else{if(e=fr,fr=null,al=0,ie&6)throw Error(M(331));var o=ie;for(ie|=4,F=e.current;F!==null;){var s=F,a=s.child;if(F.flags&16){var l=s.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(F=u;F!==null;){var d=F;switch(d.tag){case 0:case 11:case 15:Js(8,d,s)}var h=d.child;if(h!==null)h.return=d,F=h;else for(;F!==null;){d=F;var p=d.sibling,w=d.return;if($g(d),d===u){F=null;break}if(p!==null){p.return=w,F=p;break}F=w}}}var m=s.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var S=y.sibling;y.sibling=null,y=S}while(y!==null)}}F=s}}if(s.subtreeFlags&2064&&a!==null)a.return=s,F=a;else e:for(;F!==null;){if(s=F,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Js(9,s,s.return)}var g=s.sibling;if(g!==null){g.return=s.return,F=g;break e}F=s.return}}var v=e.current;for(F=v;F!==null;){a=F;var x=a.child;if(a.subtreeFlags&2064&&x!==null)x.return=a,F=x;else e:for(a=v;F!==null;){if(l=F,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Ol(9,l)}}catch(j){ke(l,l.return,j)}if(l===a){F=null;break e}var C=l.sibling;if(C!==null){C.return=l.return,F=C;break e}F=l.return}}if(ie=o,_r(),pn&&typeof pn.onPostCommitFiberRoot=="function")try{pn.onPostCommitFiberRoot(Nl,e)}catch{}r=!0}return r}finally{fe=n,Ot.transition=t}}return!1}function Cp(e,t,n){t=ss(n,t),t=Pg(e,t,1),e=yr(e,t,1),t=ot(),e!==null&&(Di(e,1,t),mt(e,t))}function ke(e,t,n){if(e.tag===3)Cp(e,e,n);else for(;t!==null;){if(t.tag===3){Cp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(xr===null||!xr.has(r))){e=ss(n,e),e=kg(t,e,1),t=yr(t,e,1),e=ot(),t!==null&&(Di(t,1,e),mt(t,e));break}}t=t.return}}function aj(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ot(),e.pingedLanes|=e.suspendedLanes&n,He===e&&(qe&n)===n&&(Fe===4||Fe===3&&(qe&130023424)===qe&&500>Me()-mf?Gr(e,0):pf|=n),mt(e,t)}function Gg(e,t){t===0&&(e.mode&1?(t=ea,ea<<=1,!(ea&130023424)&&(ea=4194304)):t=1);var n=ot();e=Fn(e,t),e!==null&&(Di(e,t,n),mt(e,n))}function lj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gg(e,n)}function cj(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),Gg(e,n)}var Yg;Yg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ht.current)ft=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ft=!1,YC(e,t,n);ft=!!(e.flags&131072)}else ft=!1,Ce&&t.flags&1048576&&eg(t,Za,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_a(e,t),e=t.pendingProps;var o=ts(t,Je.current);Lo(t,n),o=lf(null,t,r,e,o,n);var s=cf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,pt(r)?(s=!0,Ya(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nf(t),o.updater=Ml,t.stateNode=o,o._reactInternals=t,Iu(t,r,e,n),t=Fu(null,t,r,!0,s,n)):(t.tag=0,Ce&&s&&Gd(t),nt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_a(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=dj(r),e=Wt(r,e),o){case 0:t=Lu(null,t,r,e,n);break e;case 1:t=fp(null,t,r,e,n);break e;case 11:t=up(null,t,r,e,n);break e;case 14:t=dp(null,t,r,Wt(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Wt(r,o),Lu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Wt(r,o),fp(e,t,r,o,n);case 3:e:{if(Og(t),e===null)throw Error(M(387));r=t.pendingProps,s=t.memoizedState,o=s.element,ig(e,t),tl(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=ss(Error(M(423)),t),t=hp(e,t,r,n,o);break e}else if(r!==o){o=ss(Error(M(424)),t),t=hp(e,t,r,n,o);break e}else for(wt=gr(t.stateNode.containerInfo.firstChild),St=t,Ce=!0,Vt=null,n=og(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ns(),r===o){t=$n(e,t,n);break e}nt(e,t,r,n)}t=t.child}return t;case 5:return ag(t),e===null&&Mu(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,a=o.children,Ru(r,o)?a=null:s!==null&&Ru(r,s)&&(t.flags|=32),Mg(e,t),nt(e,t,a,n),t.child;case 6:return e===null&&Mu(t),null;case 13:return Dg(e,t,n);case 4:return rf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=rs(t,null,r,n):nt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Wt(r,o),up(e,t,r,o,n);case 7:return nt(e,t,t.pendingProps,n),t.child;case 8:return nt(e,t,t.pendingProps.children,n),t.child;case 12:return nt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,ye(Ja,r._currentValue),r._currentValue=a,s!==null)if(Kt(s.value,a)){if(s.children===o.children&&!ht.current){t=$n(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){a=s.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(s.tag===1){c=Dn(-1,n&-n),c.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Ou(s.return,n,t),l.lanes|=n;break}c=c.next}}else if(s.tag===10)a=s.type===t.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(M(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Ou(a,n,t),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}nt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Lo(t,n),o=It(o),r=r(o),t.flags|=1,nt(e,t,r,n),t.child;case 14:return r=t.type,o=Wt(r,t.pendingProps),o=Wt(r.type,o),dp(e,t,r,o,n);case 15:return _g(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Wt(r,o),_a(e,t),t.tag=1,pt(r)?(e=!0,Ya(t)):e=!1,Lo(t,n),Rg(t,r,o),Iu(t,r,o,n),Fu(null,t,r,!0,e,n);case 19:return Ig(e,t,n);case 22:return Tg(e,t,n)}throw Error(M(156,t.tag))};function Xg(e,t){return bv(e,t)}function uj(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,n,r){return new uj(e,t,n,r)}function xf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dj(e){if(typeof e=="function")return xf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ld)return 11;if(e===Fd)return 14}return 2}function Sr(e,t){var n=e.alternate;return n===null?(n=Mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Oa(e,t,n,r,o,s){var a=2;if(r=e,typeof e=="function")xf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Co:return Yr(n.children,o,s,t);case Ad:a=8,o|=8;break;case su:return e=Mt(12,n,t,o|2),e.elementType=su,e.lanes=s,e;case iu:return e=Mt(13,n,t,o),e.elementType=iu,e.lanes=s,e;case au:return e=Mt(19,n,t,o),e.elementType=au,e.lanes=s,e;case av:return Il(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case sv:a=10;break e;case iv:a=9;break e;case Ld:a=11;break e;case Fd:a=14;break e;case Zn:a=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=Mt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Yr(e,t,n,r){return e=Mt(7,e,r,t),e.lanes=n,e}function Il(e,t,n,r){return e=Mt(22,e,r,t),e.elementType=av,e.lanes=n,e.stateNode={isHidden:!1},e}function zc(e,t,n){return e=Mt(6,e,null,t),e.lanes=n,e}function Wc(e,t,n){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fj(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Sc(0),this.expirationTimes=Sc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wf(e,t,n,r,o,s,a,l,c){return e=new fj(e,t,n,l,c),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Mt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},nf(s),e}function hj(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:So,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Zg(e){if(!e)return br;e=e._reactInternals;e:{if(ho(e)!==e||e.tag!==1)throw Error(M(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(pt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(M(171))}if(e.tag===1){var n=e.type;if(pt(n))return Zv(e,n,t)}return t}function Jg(e,t,n,r,o,s,a,l,c){return e=wf(n,r,!0,e,o,s,a,l,c),e.context=Zg(null),n=e.current,r=ot(),o=wr(n),s=Dn(r,o),s.callback=t??null,yr(n,s,o),e.current.lanes=o,Di(e,o,r),mt(e,r),e}function Al(e,t,n,r){var o=t.current,s=ot(),a=wr(o);return n=Zg(n),t.context===null?t.context=n:t.pendingContext=n,t=Dn(s,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=yr(o,t,a),e!==null&&(qt(e,o,a,s),Ra(e,o,a)),a}function cl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function jp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Sf(e,t){jp(e,t),(e=e.alternate)&&jp(e,t)}function pj(){return null}var ey=typeof reportError=="function"?reportError:function(e){console.error(e)};function Cf(e){this._internalRoot=e}Ll.prototype.render=Cf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(M(409));Al(e,t,null,null)};Ll.prototype.unmount=Cf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;no(function(){Al(null,e,null,null)}),t[Ln]=null}};function Ll(e){this._internalRoot=e}Ll.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tv();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tr.length&&t!==0&&t<tr[n].priority;n++);tr.splice(n,0,e),n===0&&Ov(e)}};function jf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function bp(){}function mj(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var u=cl(a);s.call(u)}}var a=Jg(t,r,e,0,null,!1,!1,"",bp);return e._reactRootContainer=a,e[Ln]=a.current,ui(e.nodeType===8?e.parentNode:e),no(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var u=cl(c);l.call(u)}}var c=wf(e,0,!1,null,null,!1,!1,"",bp);return e._reactRootContainer=c,e[Ln]=c.current,ui(e.nodeType===8?e.parentNode:e),no(function(){Al(t,c,n,r)}),c}function $l(e,t,n,r,o){var s=n._reactRootContainer;if(s){var a=s;if(typeof o=="function"){var l=o;o=function(){var c=cl(a);l.call(c)}}Al(t,a,e,o)}else a=mj(n,t,e,o,r);return cl(a)}kv=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ws(t.pendingLanes);n!==0&&(Wd(t,n|1),mt(t,Me()),!(ie&6)&&(is=Me()+500,_r()))}break;case 13:no(function(){var r=Fn(e,1);if(r!==null){var o=ot();qt(r,e,1,o)}}),Sf(e,1)}};Ud=function(e){if(e.tag===13){var t=Fn(e,134217728);if(t!==null){var n=ot();qt(t,e,134217728,n)}Sf(e,134217728)}};_v=function(e){if(e.tag===13){var t=wr(e),n=Fn(e,t);if(n!==null){var r=ot();qt(n,e,t,r)}Sf(e,t)}};Tv=function(){return fe};Mv=function(e,t){var n=fe;try{return fe=e,t()}finally{fe=n}};gu=function(e,t,n){switch(t){case"input":if(uu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=kl(r);if(!o)throw Error(M(90));cv(r),uu(r,o)}}}break;case"textarea":dv(e,n);break;case"select":t=n.value,t!=null&&Oo(e,!!n.multiple,t,!1)}};yv=vf;xv=no;var vj={usingClientEntryPoint:!1,Events:[Ai,Eo,kl,vv,gv,vf]},Os={findFiberByHostInstance:Ar,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},gj={bundleType:Os.bundleType,version:Os.version,rendererPackageName:Os.rendererPackageName,rendererConfig:Os.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Bn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Cv(e),e===null?null:e.stateNode},findFiberByHostInstance:Os.findFiberByHostInstance||pj,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var da=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!da.isDisabled&&da.supportsFiber)try{Nl=da.inject(gj),pn=da}catch{}}bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vj;bt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!jf(t))throw Error(M(200));return hj(e,t,null,n)};bt.createRoot=function(e,t){if(!jf(e))throw Error(M(299));var n=!1,r="",o=ey;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=wf(e,1,!1,null,null,n,!1,r,o),e[Ln]=t.current,ui(e.nodeType===8?e.parentNode:e),new Cf(t)};bt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(M(188)):(e=Object.keys(e).join(","),Error(M(268,e)));return e=Cv(t),e=e===null?null:e.stateNode,e};bt.flushSync=function(e){return no(e)};bt.hydrate=function(e,t,n){if(!Fl(t))throw Error(M(200));return $l(null,e,t,!0,n)};bt.hydrateRoot=function(e,t,n){if(!jf(e))throw Error(M(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",a=ey;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Jg(t,null,e,1,n??null,o,!1,s,a),e[Ln]=t.current,ui(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ll(t)};bt.render=function(e,t,n){if(!Fl(t))throw Error(M(200));return $l(null,e,t,!1,n)};bt.unmountComponentAtNode=function(e){if(!Fl(e))throw Error(M(40));return e._reactRootContainer?(no(function(){$l(null,null,e,!1,function(){e._reactRootContainer=null,e[Ln]=null})}),!0):!1};bt.unstable_batchedUpdates=vf;bt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Fl(n))throw Error(M(200));if(e==null||e._reactInternals===void 0)throw Error(M(38));return $l(e,t,n,!1,r)};bt.version="18.3.1-next-f1338f8080-20240426";function ty(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ty)}catch(e){console.error(e)}}ty(),tv.exports=bt;var hs=tv.exports;const yj=Um(hs);var Np=hs;ru.createRoot=Np.createRoot,ru.hydrateRoot=Np.hydrateRoot;var Fi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xj={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},rr,Pd,Mm,wj=(Mm=class{constructor(){H(this,rr,xj);H(this,Pd,!1)}setTimeoutProvider(e){A(this,rr,e)}setTimeout(e,t){return b(this,rr).setTimeout(e,t)}clearTimeout(e){b(this,rr).clearTimeout(e)}setInterval(e,t){return b(this,rr).setInterval(e,t)}clearInterval(e){b(this,rr).clearInterval(e)}},rr=new WeakMap,Pd=new WeakMap,Mm),$r=new wj;function Sj(e){setTimeout(e,0)}var ro=typeof window>"u"||"Deno"in globalThis;function ut(){}function Cj(e,t){return typeof e=="function"?e(t):e}function Yu(e){return typeof e=="number"&&e>=0&&e!==1/0}function ny(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Cr(e,t){return typeof e=="function"?e(t):e}function kt(e,t){return typeof e=="function"?e(t):e}function Ep(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:a,stale:l}=e;if(a){if(r){if(t.queryHash!==bf(a,t.options))return!1}else if(!wi(t.queryKey,a))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||s&&!s(t))}function Rp(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(xi(t.options.mutationKey)!==xi(s))return!1}else if(!wi(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function bf(e,t){return((t==null?void 0:t.queryKeyHashFn)||xi)(e)}function xi(e){return JSON.stringify(e,(t,n)=>Zu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function wi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>wi(e[n],t[n])):!1}var jj=Object.prototype.hasOwnProperty;function ry(e,t){if(e===t)return e;const n=Pp(e)&&Pp(t);if(!n&&!(Zu(e)&&Zu(t)))return t;const o=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),a=s.length,l=n?new Array(a):{};let c=0;for(let u=0;u<a;u++){const d=n?u:s[u],h=e[d],p=t[d];if(h===p){l[d]=h,(n?u<o:jj.call(e,d))&&c++;continue}if(h===null||p===null||typeof h!="object"||typeof p!="object"){l[d]=p;continue}const w=ry(h,p);l[d]=w,w===h&&c++}return o===a&&c===o?e:l}function Xu(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Pp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Zu(e){if(!kp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!kp(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function kp(e){return Object.prototype.toString.call(e)==="[object Object]"}function bj(e){return new Promise(t=>{$r.setTimeout(t,e)})}function Ju(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ry(e,t):t}function Nj(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ej(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Nf=Symbol();function oy(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Nf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Rj(e,t){return typeof e=="function"?e(...t):!!e}var zr,or,Uo,Om,Pj=(Om=class extends Fi{constructor(){super();H(this,zr);H(this,or);H(this,Uo);A(this,Uo,t=>{if(!ro&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){b(this,or)||this.setEventListener(b(this,Uo))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,or))==null||t.call(this),A(this,or,void 0))}setEventListener(t){var n;A(this,Uo,t),(n=b(this,or))==null||n.call(this),A(this,or,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){b(this,zr)!==t&&(A(this,zr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof b(this,zr)=="boolean"?b(this,zr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},zr=new WeakMap,or=new WeakMap,Uo=new WeakMap,Om),Ef=new Pj;function ed(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var kj=Sj;function _j(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=kj;const s=l=>{t?e.push(l):o(()=>{n(l)})},a=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||a()}return c},batchCalls:l=>(...c)=>{s(()=>{l(...c)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var Qe=_j(),Bo,sr,Ho,Dm,Tj=(Dm=class extends Fi{constructor(){super();H(this,Bo,!0);H(this,sr);H(this,Ho);A(this,Ho,t=>{if(!ro&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){b(this,sr)||this.setEventListener(b(this,Ho))}onUnsubscribe(){var t;this.hasListeners()||((t=b(this,sr))==null||t.call(this),A(this,sr,void 0))}setEventListener(t){var n;A(this,Ho,t),(n=b(this,sr))==null||n.call(this),A(this,sr,t(this.setOnline.bind(this)))}setOnline(t){b(this,Bo)!==t&&(A(this,Bo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return b(this,Bo)}},Bo=new WeakMap,sr=new WeakMap,Ho=new WeakMap,Dm),ul=new Tj;function Mj(e){return Math.min(1e3*2**e,3e4)}function sy(e){return(e??"online")==="online"?ul.isOnline():!0}var td=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function iy(e){let t=!1,n=0,r;const o=ed(),s=()=>o.status!=="pending",a=y=>{var S;if(!s()){const g=new td(y);p(g),(S=e.onCancel)==null||S.call(e,g)}},l=()=>{t=!0},c=()=>{t=!1},u=()=>Ef.isFocused()&&(e.networkMode==="always"||ul.isOnline())&&e.canRun(),d=()=>sy(e.networkMode)&&e.canRun(),h=y=>{s()||(r==null||r(),o.resolve(y))},p=y=>{s()||(r==null||r(),o.reject(y))},w=()=>new Promise(y=>{var S;r=g=>{(s()||u())&&y(g)},(S=e.onPause)==null||S.call(e)}).then(()=>{var y;r=void 0,s()||(y=e.onContinue)==null||y.call(e)}),m=()=>{if(s())return;let y;const S=n===0?e.initialPromise:void 0;try{y=S??e.fn()}catch(g){y=Promise.reject(g)}Promise.resolve(y).then(h).catch(g=>{var E;if(s())return;const v=e.retry??(ro?0:3),x=e.retryDelay??Mj,C=typeof x=="function"?x(n,g):x,j=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,g);if(t||!j){p(g);return}n++,(E=e.onFail)==null||E.call(e,n,g),bj(C).then(()=>u()?void 0:w()).then(()=>{t?p(g):m()})})};return{promise:o,status:()=>o.status,cancel:a,continue:()=>(r==null||r(),o),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?m():w().then(m),o)}}var Wr,Im,ay=(Im=class{constructor(){H(this,Wr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Yu(this.gcTime)&&A(this,Wr,$r.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ro?1/0:5*60*1e3))}clearGcTimeout(){b(this,Wr)&&($r.clearTimeout(b(this,Wr)),A(this,Wr,void 0))}},Wr=new WeakMap,Im),Ur,Vo,Pt,Br,ze,Pi,Hr,Ut,Cn,Am,Oj=(Am=class extends ay{constructor(t){super();H(this,Ut);H(this,Ur);H(this,Vo);H(this,Pt);H(this,Br);H(this,ze);H(this,Pi);H(this,Hr);A(this,Hr,!1),A(this,Pi,t.defaultOptions),this.setOptions(t.options),this.observers=[],A(this,Br,t.client),A(this,Pt,b(this,Br).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,A(this,Ur,_p(this.options)),this.state=t.state??b(this,Ur),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=b(this,ze))==null?void 0:t.promise}setOptions(t){if(this.options={...b(this,Pi),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=_p(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),A(this,Ur,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&b(this,Pt).remove(this)}setData(t,n){const r=Ju(this.state.data,t,this.options);return X(this,Ut,Cn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){X(this,Ut,Cn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=b(this,ze))==null?void 0:r.promise;return(o=b(this,ze))==null||o.cancel(t),n?n.then(ut).catch(ut):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(b(this,Ur))}isActive(){return this.observers.some(t=>kt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Nf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Cr(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!ny(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,ze))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=b(this,ze))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),b(this,Pt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(b(this,ze)&&(b(this,Hr)?b(this,ze).cancel({revert:!0}):b(this,ze).cancelRetry()),this.scheduleGc()),b(this,Pt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||X(this,Ut,Cn).call(this,{type:"invalidate"})}async fetch(t,n){var c,u,d,h,p,w,m,y,S,g,v,x;if(this.state.fetchStatus!=="idle"&&((c=b(this,ze))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(b(this,ze))return b(this,ze).continueRetry(),b(this,ze).promise}if(t&&this.setOptions(t),!this.options.queryFn){const C=this.observers.find(j=>j.options.queryFn);C&&this.setOptions(C.options)}const r=new AbortController,o=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(A(this,Hr,!0),r.signal)})},s=()=>{const C=oy(this.options,n),E=(()=>{const N={client:b(this,Br),queryKey:this.queryKey,meta:this.meta};return o(N),N})();return A(this,Hr,!1),this.options.persister?this.options.persister(C,E,this):C(E)},l=(()=>{const C={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:b(this,Br),state:this.state,fetchFn:s};return o(C),C})();(u=this.options.behavior)==null||u.onFetch(l,this),A(this,Vo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&X(this,Ut,Cn).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta}),A(this,ze,iy({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:C=>{C instanceof td&&C.revert&&this.setState({...b(this,Vo),fetchStatus:"idle"}),r.abort()},onFail:(C,j)=>{X(this,Ut,Cn).call(this,{type:"failed",failureCount:C,error:j})},onPause:()=>{X(this,Ut,Cn).call(this,{type:"pause"})},onContinue:()=>{X(this,Ut,Cn).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const C=await b(this,ze).start();if(C===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(C),(w=(p=b(this,Pt).config).onSuccess)==null||w.call(p,C,this),(y=(m=b(this,Pt).config).onSettled)==null||y.call(m,C,this.state.error,this),C}catch(C){if(C instanceof td){if(C.silent)return b(this,ze).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw X(this,Ut,Cn).call(this,{type:"error",error:C}),(g=(S=b(this,Pt).config).onError)==null||g.call(S,C,this),(x=(v=b(this,Pt).config).onSettled)==null||x.call(v,this.state.data,C,this),C}finally{this.scheduleGc()}}},Ur=new WeakMap,Vo=new WeakMap,Pt=new WeakMap,Br=new WeakMap,ze=new WeakMap,Pi=new WeakMap,Hr=new WeakMap,Ut=new WeakSet,Cn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...ly(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return A(this,Vo,t.manual?o:void 0),o;case"error":const s=t.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Qe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),b(this,Pt).notify({query:this,type:"updated",action:t})})},Am);function ly(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:sy(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function _p(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ct,Z,ki,et,Vr,Qo,Pn,ir,_i,qo,Ko,Qr,qr,ar,Go,le,Bs,nd,rd,od,sd,id,ad,ld,cy,Lm,Dj=(Lm=class extends Fi{constructor(t,n){super();H(this,le);H(this,ct);H(this,Z);H(this,ki);H(this,et);H(this,Vr);H(this,Qo);H(this,Pn);H(this,ir);H(this,_i);H(this,qo);H(this,Ko);H(this,Qr);H(this,qr);H(this,ar);H(this,Go,new Set);this.options=n,A(this,ct,t),A(this,ir,null),A(this,Pn,ed()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(b(this,Z).addObserver(this),Tp(b(this,Z),this.options)?X(this,le,Bs).call(this):this.updateResult(),X(this,le,sd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return cd(b(this,Z),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cd(b(this,Z),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,X(this,le,id).call(this),X(this,le,ad).call(this),b(this,Z).removeObserver(this)}setOptions(t){const n=this.options,r=b(this,Z);if(this.options=b(this,ct).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof kt(this.options.enabled,b(this,Z))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");X(this,le,ld).call(this),b(this,Z).setOptions(this.options),n._defaulted&&!Xu(this.options,n)&&b(this,ct).getQueryCache().notify({type:"observerOptionsUpdated",query:b(this,Z),observer:this});const o=this.hasListeners();o&&Mp(b(this,Z),r,this.options,n)&&X(this,le,Bs).call(this),this.updateResult(),o&&(b(this,Z)!==r||kt(this.options.enabled,b(this,Z))!==kt(n.enabled,b(this,Z))||Cr(this.options.staleTime,b(this,Z))!==Cr(n.staleTime,b(this,Z)))&&X(this,le,nd).call(this);const s=X(this,le,rd).call(this);o&&(b(this,Z)!==r||kt(this.options.enabled,b(this,Z))!==kt(n.enabled,b(this,Z))||s!==b(this,ar))&&X(this,le,od).call(this,s)}getOptimisticResult(t){const n=b(this,ct).getQueryCache().build(b(this,ct),t),r=this.createResult(n,t);return Aj(this,r)&&(A(this,et,r),A(this,Qo,this.options),A(this,Vr,b(this,Z).state)),r}getCurrentResult(){return b(this,et)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&!this.options.experimental_prefetchInRender&&b(this,Pn).status==="pending"&&b(this,Pn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,o))})}trackProp(t){b(this,Go).add(t)}getCurrentQuery(){return b(this,Z)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=b(this,ct).defaultQueryOptions(t),r=b(this,ct).getQueryCache().build(b(this,ct),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return X(this,le,Bs).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),b(this,et)))}createResult(t,n){var T;const r=b(this,Z),o=this.options,s=b(this,et),a=b(this,Vr),l=b(this,Qo),u=t!==r?t.state:b(this,ki),{state:d}=t;let h={...d},p=!1,w;if(n._optimisticResults){const P=this.hasListeners(),O=!P&&Tp(t,n),D=P&&Mp(t,r,n,o);(O||D)&&(h={...h,...ly(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:m,errorUpdatedAt:y,status:S}=h;w=h.data;let g=!1;if(n.placeholderData!==void 0&&w===void 0&&S==="pending"){let P;s!=null&&s.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(P=s.data,g=!0):P=typeof n.placeholderData=="function"?n.placeholderData((T=b(this,Ko))==null?void 0:T.state.data,b(this,Ko)):n.placeholderData,P!==void 0&&(S="success",w=Ju(s==null?void 0:s.data,P,n),p=!0)}if(n.select&&w!==void 0&&!g)if(s&&w===(a==null?void 0:a.data)&&n.select===b(this,_i))w=b(this,qo);else try{A(this,_i,n.select),w=n.select(w),w=Ju(s==null?void 0:s.data,w,n),A(this,qo,w),A(this,ir,null)}catch(P){A(this,ir,P)}b(this,ir)&&(m=b(this,ir),w=b(this,qo),y=Date.now(),S="error");const v=h.fetchStatus==="fetching",x=S==="pending",C=S==="error",j=x&&v,E=w!==void 0,R={status:S,fetchStatus:h.fetchStatus,isPending:x,isSuccess:S==="success",isError:C,isInitialLoading:j,isLoading:j,data:w,dataUpdatedAt:h.dataUpdatedAt,error:m,errorUpdatedAt:y,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&!x,isLoadingError:C&&!E,isPaused:h.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:C&&E,isStale:Rf(t,n),refetch:this.refetch,promise:b(this,Pn),isEnabled:kt(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const P=V=>{R.status==="error"?V.reject(R.error):R.data!==void 0&&V.resolve(R.data)},O=()=>{const V=A(this,Pn,R.promise=ed());P(V)},D=b(this,Pn);switch(D.status){case"pending":t.queryHash===r.queryHash&&P(D);break;case"fulfilled":(R.status==="error"||R.data!==D.value)&&O();break;case"rejected":(R.status!=="error"||R.error!==D.reason)&&O();break}}return R}updateResult(){const t=b(this,et),n=this.createResult(b(this,Z),this.options);if(A(this,Vr,b(this,Z).state),A(this,Qo,this.options),b(this,Vr).data!==void 0&&A(this,Ko,b(this,Z)),Xu(n,t))return;A(this,et,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!b(this,Go).size)return!0;const a=new Set(s??b(this,Go));return this.options.throwOnError&&a.add("error"),Object.keys(b(this,et)).some(l=>{const c=l;return b(this,et)[c]!==t[c]&&a.has(c)})};X(this,le,cy).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&X(this,le,sd).call(this)}},ct=new WeakMap,Z=new WeakMap,ki=new WeakMap,et=new WeakMap,Vr=new WeakMap,Qo=new WeakMap,Pn=new WeakMap,ir=new WeakMap,_i=new WeakMap,qo=new WeakMap,Ko=new WeakMap,Qr=new WeakMap,qr=new WeakMap,ar=new WeakMap,Go=new WeakMap,le=new WeakSet,Bs=function(t){X(this,le,ld).call(this);let n=b(this,Z).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ut)),n},nd=function(){X(this,le,id).call(this);const t=Cr(this.options.staleTime,b(this,Z));if(ro||b(this,et).isStale||!Yu(t))return;const r=ny(b(this,et).dataUpdatedAt,t)+1;A(this,Qr,$r.setTimeout(()=>{b(this,et).isStale||this.updateResult()},r))},rd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(b(this,Z)):this.options.refetchInterval)??!1},od=function(t){X(this,le,ad).call(this),A(this,ar,t),!(ro||kt(this.options.enabled,b(this,Z))===!1||!Yu(b(this,ar))||b(this,ar)===0)&&A(this,qr,$r.setInterval(()=>{(this.options.refetchIntervalInBackground||Ef.isFocused())&&X(this,le,Bs).call(this)},b(this,ar)))},sd=function(){X(this,le,nd).call(this),X(this,le,od).call(this,X(this,le,rd).call(this))},id=function(){b(this,Qr)&&($r.clearTimeout(b(this,Qr)),A(this,Qr,void 0))},ad=function(){b(this,qr)&&($r.clearInterval(b(this,qr)),A(this,qr,void 0))},ld=function(){const t=b(this,ct).getQueryCache().build(b(this,ct),this.options);if(t===b(this,Z))return;const n=b(this,Z);A(this,Z,t),A(this,ki,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},cy=function(t){Qe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(b(this,et))}),b(this,ct).getQueryCache().notify({query:b(this,Z),type:"observerResultsUpdated"})})},Lm);function Ij(e,t){return kt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Tp(e,t){return Ij(e,t)||e.state.data!==void 0&&cd(e,t,t.refetchOnMount)}function cd(e,t,n){if(kt(t.enabled,e)!==!1&&Cr(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Rf(e,t)}return!1}function Mp(e,t,n,r){return(e!==t||kt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Rf(e,n)}function Rf(e,t){return kt(t.enabled,e)!==!1&&e.isStaleByTime(Cr(t.staleTime,e))}function Aj(e,t){return!Xu(e.getCurrentResult(),t)}function Op(e){return{onFetch:(t,n)=>{var d,h,p,w,m;const r=t.options,o=(p=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,s=((w=t.state.data)==null?void 0:w.pages)||[],a=((m=t.state.data)==null?void 0:m.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let y=!1;const S=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},g=oy(t.options,t.fetchOptions),v=async(x,C,j)=>{if(y)return Promise.reject();if(C==null&&x.pages.length)return Promise.resolve(x);const N=(()=>{const O={client:t.client,queryKey:t.queryKey,pageParam:C,direction:j?"backward":"forward",meta:t.options.meta};return S(O),O})(),R=await g(N),{maxPages:T}=t.options,P=j?Ej:Nj;return{pages:P(x.pages,R,T),pageParams:P(x.pageParams,C,T)}};if(o&&s.length){const x=o==="backward",C=x?Lj:Dp,j={pages:s,pageParams:a},E=C(r,j);l=await v(j,E,x)}else{const x=e??s.length;do{const C=c===0?a[0]??r.initialPageParam:Dp(r,l);if(c>0&&C==null)break;l=await v(l,C),c++}while(c<x)}return l};t.options.persister?t.fetchFn=()=>{var y,S;return(S=(y=t.options).persister)==null?void 0:S.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Dp(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Lj(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ti,sn,tt,Kr,an,Gn,Fm,Fj=(Fm=class extends ay{constructor(t){super();H(this,an);H(this,Ti);H(this,sn);H(this,tt);H(this,Kr);A(this,Ti,t.client),this.mutationId=t.mutationId,A(this,tt,t.mutationCache),A(this,sn,[]),this.state=t.state||$j(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){b(this,sn).includes(t)||(b(this,sn).push(t),this.clearGcTimeout(),b(this,tt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){A(this,sn,b(this,sn).filter(n=>n!==t)),this.scheduleGc(),b(this,tt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){b(this,sn).length||(this.state.status==="pending"?this.scheduleGc():b(this,tt).remove(this))}continue(){var t;return((t=b(this,Kr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,l,c,u,d,h,p,w,m,y,S,g,v,x,C,j,E,N,R,T;const n=()=>{X(this,an,Gn).call(this,{type:"continue"})},r={client:b(this,Ti),meta:this.options.meta,mutationKey:this.options.mutationKey};A(this,Kr,iy({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,O)=>{X(this,an,Gn).call(this,{type:"failed",failureCount:P,error:O})},onPause:()=>{X(this,an,Gn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>b(this,tt).canRun(this)}));const o=this.state.status==="pending",s=!b(this,Kr).canStart();try{if(o)n();else{X(this,an,Gn).call(this,{type:"pending",variables:t,isPaused:s}),await((l=(a=b(this,tt).config).onMutate)==null?void 0:l.call(a,t,this,r));const O=await((u=(c=this.options).onMutate)==null?void 0:u.call(c,t,r));O!==this.state.context&&X(this,an,Gn).call(this,{type:"pending",context:O,variables:t,isPaused:s})}const P=await b(this,Kr).start();return await((h=(d=b(this,tt).config).onSuccess)==null?void 0:h.call(d,P,t,this.state.context,this,r)),await((w=(p=this.options).onSuccess)==null?void 0:w.call(p,P,t,this.state.context,r)),await((y=(m=b(this,tt).config).onSettled)==null?void 0:y.call(m,P,null,this.state.variables,this.state.context,this,r)),await((g=(S=this.options).onSettled)==null?void 0:g.call(S,P,null,t,this.state.context,r)),X(this,an,Gn).call(this,{type:"success",data:P}),P}catch(P){try{throw await((x=(v=b(this,tt).config).onError)==null?void 0:x.call(v,P,t,this.state.context,this,r)),await((j=(C=this.options).onError)==null?void 0:j.call(C,P,t,this.state.context,r)),await((N=(E=b(this,tt).config).onSettled)==null?void 0:N.call(E,void 0,P,this.state.variables,this.state.context,this,r)),await((T=(R=this.options).onSettled)==null?void 0:T.call(R,void 0,P,t,this.state.context,r)),P}finally{X(this,an,Gn).call(this,{type:"error",error:P})}}finally{b(this,tt).runNext(this)}}},Ti=new WeakMap,sn=new WeakMap,tt=new WeakMap,Kr=new WeakMap,an=new WeakSet,Gn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Qe.batch(()=>{b(this,sn).forEach(r=>{r.onMutationUpdate(t)}),b(this,tt).notify({mutation:this,type:"updated",action:t})})},Fm);function $j(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var kn,Bt,Mi,$m,zj=($m=class extends Fi{constructor(t={}){super();H(this,kn);H(this,Bt);H(this,Mi);this.config=t,A(this,kn,new Set),A(this,Bt,new Map),A(this,Mi,0)}build(t,n,r){const o=new Fj({client:t,mutationCache:this,mutationId:++Ki(this,Mi)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){b(this,kn).add(t);const n=fa(t);if(typeof n=="string"){const r=b(this,Bt).get(n);r?r.push(t):b(this,Bt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(b(this,kn).delete(t)){const n=fa(t);if(typeof n=="string"){const r=b(this,Bt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&b(this,Bt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=fa(t);if(typeof n=="string"){const r=b(this,Bt).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=fa(t);if(typeof n=="string"){const o=(r=b(this,Bt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Qe.batch(()=>{b(this,kn).forEach(t=>{this.notify({type:"removed",mutation:t})}),b(this,kn).clear(),b(this,Bt).clear()})}getAll(){return Array.from(b(this,kn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Rp(n,r))}findAll(t={}){return this.getAll().filter(n=>Rp(t,n))}notify(t){Qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Qe.batch(()=>Promise.all(t.map(n=>n.continue().catch(ut))))}},kn=new WeakMap,Bt=new WeakMap,Mi=new WeakMap,$m);function fa(e){var t;return(t=e.options.scope)==null?void 0:t.id}var ln,zm,Wj=(zm=class extends Fi{constructor(t={}){super();H(this,ln);this.config=t,A(this,ln,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??bf(o,n);let a=this.get(s);return a||(a=new Oj({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){b(this,ln).has(t.queryHash)||(b(this,ln).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=b(this,ln).get(t.queryHash);n&&(t.destroy(),n===t&&b(this,ln).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Qe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return b(this,ln).get(t)}getAll(){return[...b(this,ln).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ep(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ep(t,r)):n}notify(t){Qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Qe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Qe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ln=new WeakMap,zm),Pe,lr,cr,Yo,Xo,ur,Zo,Jo,Wm,Uj=(Wm=class{constructor(e={}){H(this,Pe);H(this,lr);H(this,cr);H(this,Yo);H(this,Xo);H(this,ur);H(this,Zo);H(this,Jo);A(this,Pe,e.queryCache||new Wj),A(this,lr,e.mutationCache||new zj),A(this,cr,e.defaultOptions||{}),A(this,Yo,new Map),A(this,Xo,new Map),A(this,ur,0)}mount(){Ki(this,ur)._++,b(this,ur)===1&&(A(this,Zo,Ef.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,Pe).onFocus())})),A(this,Jo,ul.subscribe(async e=>{e&&(await this.resumePausedMutations(),b(this,Pe).onOnline())})))}unmount(){var e,t;Ki(this,ur)._--,b(this,ur)===0&&((e=b(this,Zo))==null||e.call(this),A(this,Zo,void 0),(t=b(this,Jo))==null||t.call(this),A(this,Jo,void 0))}isFetching(e){return b(this,Pe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return b(this,lr).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,Pe).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=b(this,Pe).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Cr(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return b(this,Pe).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=b(this,Pe).get(r.queryHash),s=o==null?void 0:o.state.data,a=Cj(t,s);if(a!==void 0)return b(this,Pe).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Qe.batch(()=>b(this,Pe).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=b(this,Pe).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=b(this,Pe);Qe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=b(this,Pe);return Qe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Qe.batch(()=>b(this,Pe).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(ut).catch(ut)}invalidateQueries(e,t={}){return Qe.batch(()=>(b(this,Pe).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Qe.batch(()=>b(this,Pe).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(ut)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(ut)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=b(this,Pe).build(this,t);return n.isStaleByTime(Cr(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ut).catch(ut)}fetchInfiniteQuery(e){return e.behavior=Op(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ut).catch(ut)}ensureInfiniteQueryData(e){return e.behavior=Op(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ul.isOnline()?b(this,lr).resumePausedMutations():Promise.resolve()}getQueryCache(){return b(this,Pe)}getMutationCache(){return b(this,lr)}getDefaultOptions(){return b(this,cr)}setDefaultOptions(e){A(this,cr,e)}setQueryDefaults(e,t){b(this,Yo).set(xi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...b(this,Yo).values()],n={};return t.forEach(r=>{wi(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){b(this,Xo).set(xi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...b(this,Xo).values()],n={};return t.forEach(r=>{wi(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...b(this,cr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=bf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Nf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...b(this,cr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){b(this,Pe).clear(),b(this,lr).clear()}},Pe=new WeakMap,lr=new WeakMap,cr=new WeakMap,Yo=new WeakMap,Xo=new WeakMap,ur=new WeakMap,Zo=new WeakMap,Jo=new WeakMap,Wm),uy=f.createContext(void 0),Bj=e=>{const t=f.useContext(uy);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Hj=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),i.jsx(uy.Provider,{value:e,children:t})),dy=f.createContext(!1),Vj=()=>f.useContext(dy);dy.Provider;function Qj(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var qj=f.createContext(Qj()),Kj=()=>f.useContext(qj),Gj=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Yj=e=>{f.useEffect(()=>{e.clearReset()},[e])},Xj=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Rj(n,[e.error,r])),Zj=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Jj=(e,t)=>e.isLoading&&e.isFetching&&!t,eb=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ip=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function tb(e,t,n){var h,p,w,m,y;const r=Vj(),o=Kj(),s=Bj(),a=s.defaultQueryOptions(e);(p=(h=s.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||p.call(h,a),a._optimisticResults=r?"isRestoring":"optimistic",Zj(a),Gj(a,o),Yj(o);const l=!s.getQueryCache().get(a.queryHash),[c]=f.useState(()=>new t(s,a)),u=c.getOptimisticResult(a),d=!r&&e.subscribed!==!1;if(f.useSyncExternalStore(f.useCallback(S=>{const g=d?c.subscribe(Qe.batchCalls(S)):ut;return c.updateResult(),g},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),f.useEffect(()=>{c.setOptions(a)},[a,c]),eb(a,u))throw Ip(a,c,o);if(Xj({result:u,errorResetBoundary:o,throwOnError:a.throwOnError,query:s.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw u.error;if((m=(w=s.getDefaultOptions().queries)==null?void 0:w._experimental_afterQuery)==null||m.call(w,a,u),a.experimental_prefetchInRender&&!ro&&Jj(u,r)){const S=l?Ip(a,c,o):(y=s.getQueryCache().get(a.queryHash))==null?void 0:y.promise;S==null||S.catch(ut).finally(()=>{c.updateResult()})}return a.notifyOnChangeProps?u:c.trackResult(u)}function rt(e,t){return tb(e,Dj)}/**
|
|
41
|
-
* react-router v7.9.1
|
|
42
|
-
*
|
|
43
|
-
* Copyright (c) Remix Software Inc.
|
|
44
|
-
*
|
|
45
|
-
* This source code is licensed under the MIT license found in the
|
|
46
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
-
*
|
|
48
|
-
* @license MIT
|
|
49
|
-
*/var Ap="popstate";function nb(e={}){function t(r,o){let{pathname:s,search:a,hash:l}=r.location;return ud("",{pathname:s,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Si(o)}return ob(t,n,null,e)}function je(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Gt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function rb(){return Math.random().toString(36).substring(2,10)}function Lp(e,t){return{usr:e.state,key:e.key,idx:t}}function ud(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ps(t):t,state:n,key:t&&t.key||r||rb()}}function Si({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ps(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function ob(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:s=!1}=r,a=o.history,l="POP",c=null,u=d();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function d(){return(a.state||{idx:null}).idx}function h(){l="POP";let S=d(),g=S==null?null:S-u;u=S,c&&c({action:l,location:y.location,delta:g})}function p(S,g){l="PUSH";let v=ud(y.location,S,g);u=d()+1;let x=Lp(v,u),C=y.createHref(v);try{a.pushState(x,"",C)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;o.location.assign(C)}s&&c&&c({action:l,location:y.location,delta:1})}function w(S,g){l="REPLACE";let v=ud(y.location,S,g);u=d();let x=Lp(v,u),C=y.createHref(v);a.replaceState(x,"",C),s&&c&&c({action:l,location:y.location,delta:0})}function m(S){return sb(S)}let y={get action(){return l},get location(){return e(o,a)},listen(S){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(Ap,h),c=S,()=>{o.removeEventListener(Ap,h),c=null}},createHref(S){return t(o,S)},createURL:m,encodeLocation(S){let g=m(S);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:p,replace:w,go(S){return a.go(S)}};return y}function sb(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),je(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Si(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function fy(e,t,n="/"){return ib(e,t,n,!1)}function ib(e,t,n,r){let o=typeof t=="string"?ps(t):t,s=zn(o.pathname||"/",n);if(s==null)return null;let a=hy(e);ab(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let u=yb(s);l=vb(a[c],u,r)}return l}function hy(e,t=[],n=[],r="",o=!1){let s=(a,l,c=o,u)=>{let d={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&c)return;je(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let h=In([r,d.relativePath]),p=n.concat(d);a.children&&a.children.length>0&&(je(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),hy(a.children,t,p,h,c)),!(a.path==null&&!a.index)&&t.push({path:h,score:pb(h,a.index),routesMeta:p})};return e.forEach((a,l)=>{var c;if(a.path===""||!((c=a.path)!=null&&c.includes("?")))s(a,l);else for(let u of py(a.path))s(a,l,!0,u)}),t}function py(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let a=py(r.join("/")),l=[];return l.push(...a.map(c=>c===""?s:[s,c].join("/"))),o&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function ab(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:mb(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var lb=/^:[\w-]+$/,cb=3,ub=2,db=1,fb=10,hb=-2,Fp=e=>e==="*";function pb(e,t){let n=e.split("/"),r=n.length;return n.some(Fp)&&(r+=hb),t&&(r+=ub),n.filter(o=>!Fp(o)).reduce((o,s)=>o+(lb.test(s)?cb:s===""?db:fb),r)}function mb(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function vb(e,t,n=!1){let{routesMeta:r}=e,o={},s="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",h=dl({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),p=c.route;if(!h&&u&&n&&!r[r.length-1].route.index&&(h=dl({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!h)return null;Object.assign(o,h.params),a.push({params:o,pathname:In([s,h.pathname]),pathnameBase:Cb(In([s,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(s=In([s,h.pathnameBase]))}return a}function dl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=gb(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],a=s.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,{paramName:d,isOptional:h},p)=>{if(d==="*"){let m=l[p]||"";a=s.slice(0,s.length-m.length).replace(/(.)\/+$/,"$1")}const w=l[p];return h&&!w?u[d]=void 0:u[d]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:a,pattern:e}}function gb(e,t=!1,n=!0){Gt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function yb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Gt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function zn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function xb(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ps(e):e;return{pathname:n?n.startsWith("/")?n:wb(n,t):t,search:jb(r),hash:bb(o)}}function wb(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Uc(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Sb(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Pf(e){let t=Sb(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function kf(e,t,n,r=!1){let o;typeof e=="string"?o=ps(e):(o={...e},je(!o.pathname||!o.pathname.includes("?"),Uc("?","pathname","search",o)),je(!o.pathname||!o.pathname.includes("#"),Uc("#","pathname","hash",o)),je(!o.search||!o.search.includes("#"),Uc("#","search","hash",o)));let s=e===""||o.pathname==="",a=s?"/":o.pathname,l;if(a==null)l=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),h-=1;o.pathname=p.join("/")}l=h>=0?t[h]:"/"}let c=xb(o,l),u=a&&a!=="/"&&a.endsWith("/"),d=(s||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}var In=e=>e.join("/").replace(/\/\/+/g,"/"),Cb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),jb=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bb=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Nb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var my=["POST","PUT","PATCH","DELETE"];new Set(my);var Eb=["GET",...my];new Set(Eb);var ms=f.createContext(null);ms.displayName="DataRouter";var zl=f.createContext(null);zl.displayName="DataRouterState";f.createContext(!1);var vy=f.createContext({isTransitioning:!1});vy.displayName="ViewTransition";var Rb=f.createContext(new Map);Rb.displayName="Fetchers";var Pb=f.createContext(null);Pb.displayName="Await";var Zt=f.createContext(null);Zt.displayName="Navigation";var $i=f.createContext(null);$i.displayName="Location";var Jt=f.createContext({outlet:null,matches:[],isDataRoute:!1});Jt.displayName="Route";var _f=f.createContext(null);_f.displayName="RouteError";function kb(e,{relative:t}={}){je(vs(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=f.useContext(Zt),{hash:o,pathname:s,search:a}=zi(e,{relative:t}),l=s;return n!=="/"&&(l=s==="/"?n:In([n,s])),r.createHref({pathname:l,search:a,hash:o})}function vs(){return f.useContext($i)!=null}function Hn(){return je(vs(),"useLocation() may be used only in the context of a <Router> component."),f.useContext($i).location}var gy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function yy(e){f.useContext(Zt).static||f.useLayoutEffect(e)}function xy(){let{isDataRoute:e}=f.useContext(Jt);return e?Hb():_b()}function _b(){je(vs(),"useNavigate() may be used only in the context of a <Router> component.");let e=f.useContext(ms),{basename:t,navigator:n}=f.useContext(Zt),{matches:r}=f.useContext(Jt),{pathname:o}=Hn(),s=JSON.stringify(Pf(r)),a=f.useRef(!1);return yy(()=>{a.current=!0}),f.useCallback((c,u={})=>{if(Gt(a.current,gy),!a.current)return;if(typeof c=="number"){n.go(c);return}let d=kf(c,JSON.parse(s),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:In([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,s,o,e])}var Tb=f.createContext(null);function Mb(e){let t=f.useContext(Jt).outlet;return t&&f.createElement(Tb.Provider,{value:e},t)}function zi(e,{relative:t}={}){let{matches:n}=f.useContext(Jt),{pathname:r}=Hn(),o=JSON.stringify(Pf(n));return f.useMemo(()=>kf(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function Ob(e,t){return wy(e,t)}function wy(e,t,n,r,o){var v;je(vs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=f.useContext(Zt),{matches:a}=f.useContext(Jt),l=a[a.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",h=l&&l.route;{let x=h&&h.path||"";Sy(u,!h||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${x}">) 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.
|
|
50
|
-
|
|
51
|
-
Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let p=Hn(),w;if(t){let x=typeof t=="string"?ps(t):t;je(d==="/"||((v=x.pathname)==null?void 0:v.startsWith(d)),`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 "${d}" but pathname "${x.pathname}" was given in the \`location\` prop.`),w=x}else w=p;let m=w.pathname||"/",y=m;if(d!=="/"){let x=d.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(x.length).join("/")}let S=fy(e,{pathname:y});Gt(h||S!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),Gt(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.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 g=Fb(S&&S.map(x=>Object.assign({},x,{params:Object.assign({},c,x.params),pathname:In([d,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?d:In([d,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),a,n,r,o);return t&&g?f.createElement($i.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},g):g}function Db(){let e=Bb(),t=Nb(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:s},"ErrorBoundary")," or"," ",f.createElement("code",{style:s},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:o},n):null,a)}var Ib=f.createElement(Db,null),Ab=class extends f.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?f.createElement(Jt.Provider,{value:this.props.routeContext},f.createElement(_f.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Lb({routeContext:e,match:t,children:n}){let r=f.useContext(ms);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(Jt.Provider,{value:e},n)}function Fb(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=n==null?void 0:n.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);je(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n)for(let u=0;u<s.length;u++){let d=s[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:h,errors:p}=n,w=d.route.loader&&!h.hasOwnProperty(d.route.id)&&(!p||p[d.route.id]===void 0);if(d.route.lazy||w){l=!0,c>=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,h)=>{let p,w=!1,m=null,y=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,m=d.route.errorElement||Ib,l&&(c<0&&h===0?(Sy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,y=null):c===h&&(w=!0,y=d.route.hydrateFallbackElement||null)));let S=t.concat(s.slice(0,h+1)),g=()=>{let v;return p?v=m:w?v=y:d.route.Component?v=f.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=u,f.createElement(Lb,{match:d,routeContext:{outlet:u,matches:S,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?f.createElement(Ab,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:g(),routeContext:{outlet:null,matches:S,isDataRoute:!0},unstable_onError:r}):g()},null)}function Tf(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $b(e){let t=f.useContext(ms);return je(t,Tf(e)),t}function zb(e){let t=f.useContext(zl);return je(t,Tf(e)),t}function Wb(e){let t=f.useContext(Jt);return je(t,Tf(e)),t}function Mf(e){let t=Wb(e),n=t.matches[t.matches.length-1];return je(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Ub(){return Mf("useRouteId")}function Bb(){var r;let e=f.useContext(_f),t=zb("useRouteError"),n=Mf("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Hb(){let{router:e}=$b("useNavigate"),t=Mf("useNavigate"),n=f.useRef(!1);return yy(()=>{n.current=!0}),f.useCallback(async(o,s={})=>{Gt(n.current,gy),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...s}))},[e,t])}var $p={};function Sy(e,t,n){!t&&!$p[e]&&($p[e]=!0,Gt(!1,n))}f.memo(Vb);function Vb({routes:e,future:t,state:n,unstable_onError:r}){return wy(e,void 0,n,r,t)}function Qb({to:e,replace:t,state:n,relative:r}){je(vs(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=f.useContext(Zt);Gt(!o,"<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:s}=f.useContext(Jt),{pathname:a}=Hn(),l=xy(),c=kf(e,Pf(s),a,r==="path"),u=JSON.stringify(c);return f.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function qb(e){return Mb(e.context)}function jn(e){je(!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 Kb({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:s=!1}){je(!vs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),l=f.useMemo(()=>({basename:a,navigator:o,static:s,future:{}}),[a,o,s]);typeof n=="string"&&(n=ps(n));let{pathname:c="/",search:u="",hash:d="",state:h=null,key:p="default"}=n,w=f.useMemo(()=>{let m=zn(c,a);return m==null?null:{location:{pathname:m,search:u,hash:d,state:h,key:p},navigationType:r}},[a,c,u,d,h,p,r]);return Gt(w!=null,`<Router basename="${a}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:f.createElement(Zt.Provider,{value:l},f.createElement($i.Provider,{children:t,value:w}))}function Gb({children:e,location:t}){return Ob(dd(e),t)}function dd(e,t=[]){let n=[];return f.Children.forEach(e,(r,o)=>{if(!f.isValidElement(r))return;let s=[...t,o];if(r.type===f.Fragment){n.push.apply(n,dd(r.props.children,s));return}je(r.type===jn,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),je(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=dd(r.props.children,s)),n.push(a)}),n}var Da="get",Ia="application/x-www-form-urlencoded";function Wl(e){return e!=null&&typeof e.tagName=="string"}function Yb(e){return Wl(e)&&e.tagName.toLowerCase()==="button"}function Xb(e){return Wl(e)&&e.tagName.toLowerCase()==="form"}function Zb(e){return Wl(e)&&e.tagName.toLowerCase()==="input"}function Jb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function eN(e,t){return e.button===0&&(!t||t==="_self")&&!Jb(e)}var ha=null;function tN(){if(ha===null)try{new FormData(document.createElement("form"),0),ha=!1}catch{ha=!0}return ha}var nN=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bc(e){return e!=null&&!nN.has(e)?(Gt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ia}"`),null):e}function rN(e,t){let n,r,o,s,a;if(Xb(e)){let l=e.getAttribute("action");r=l?zn(l,t):null,n=e.getAttribute("method")||Da,o=Bc(e.getAttribute("enctype"))||Ia,s=new FormData(e)}else if(Yb(e)||Zb(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||l.getAttribute("action");if(r=c?zn(c,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Da,o=Bc(e.getAttribute("formenctype"))||Bc(l.getAttribute("enctype"))||Ia,s=new FormData(l,e),!tN()){let{name:u,type:d,value:h}=e;if(d==="image"){let p=u?`${u}.`:"";s.append(`${p}x`,"0"),s.append(`${p}y`,"0")}else u&&s.append(u,h)}}else{if(Wl(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Da,r=null,o=Ia,a=e}return s&&o==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:s,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Of(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function oN(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&zn(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function sN(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function iN(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function aN(e,t,n){let r=await Promise.all(e.map(async o=>{let s=t.routes[o.route.id];if(s){let a=await sN(s,n);return a.links?a.links():[]}return[]}));return dN(r.flat(1).filter(iN).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function zp(e,t,n,r,o,s){let a=(c,u)=>n[u]?c.route.id!==n[u].route.id:!0,l=(c,u)=>{var d;return n[u].pathname!==c.pathname||((d=n[u].route.path)==null?void 0:d.endsWith("*"))&&n[u].params["*"]!==c.params["*"]};return s==="assets"?t.filter((c,u)=>a(c,u)||l(c,u)):s==="data"?t.filter((c,u)=>{var h;let d=r.routes[c.route.id];if(!d||!d.hasLoader)return!1;if(a(c,u)||l(c,u))return!0;if(c.route.shouldRevalidate){let p=c.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((h=n[0])==null?void 0:h.params)||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function lN(e,t,{includeHydrateFallback:n}={}){return cN(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function cN(e){return[...new Set(e)]}function uN(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function dN(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let s=JSON.stringify(uN(o));return n.has(s)||(n.add(s),r.push({key:s,link:o})),r},[])}function Cy(){let e=f.useContext(ms);return Of(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function fN(){let e=f.useContext(zl);return Of(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Df=f.createContext(void 0);Df.displayName="FrameworkContext";function jy(){let e=f.useContext(Df);return Of(e,"You must render this element inside a <HydratedRouter> element"),e}function hN(e,t){let n=f.useContext(Df),[r,o]=f.useState(!1),[s,a]=f.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:h}=t,p=f.useRef(null);f.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let y=g=>{g.forEach(v=>{a(v.isIntersecting)})},S=new IntersectionObserver(y,{threshold:.5});return p.current&&S.observe(p.current),()=>{S.disconnect()}}},[e]),f.useEffect(()=>{if(r){let y=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(y)}}},[r]);let w=()=>{o(!0)},m=()=>{o(!1),a(!1)};return n?e!=="intent"?[s,p,{}]:[s,p,{onFocus:Ds(l,w),onBlur:Ds(c,m),onMouseEnter:Ds(u,w),onMouseLeave:Ds(d,m),onTouchStart:Ds(h,w)}]:[!1,p,{}]}function Ds(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function pN({page:e,...t}){let{router:n}=Cy(),r=f.useMemo(()=>fy(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?f.createElement(vN,{page:e,matches:r,...t}):null}function mN(e){let{manifest:t,routeModules:n}=jy(),[r,o]=f.useState([]);return f.useEffect(()=>{let s=!1;return aN(e,t,n).then(a=>{s||o(a)}),()=>{s=!0}},[e,t,n]),r}function vN({page:e,matches:t,...n}){let r=Hn(),{manifest:o,routeModules:s}=jy(),{basename:a}=Cy(),{loaderData:l,matches:c}=fN(),u=f.useMemo(()=>zp(e,t,c,o,r,"data"),[e,t,c,o,r]),d=f.useMemo(()=>zp(e,t,c,o,r,"assets"),[e,t,c,o,r]),h=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let m=new Set,y=!1;if(t.forEach(g=>{var x;let v=o.routes[g.route.id];!v||!v.hasLoader||(!u.some(C=>C.route.id===g.route.id)&&g.route.id in l&&((x=s[g.route.id])!=null&&x.shouldRevalidate)||v.hasClientLoader?y=!0:m.add(g.route.id))}),m.size===0)return[];let S=oN(e,a,"data");return y&&m.size>0&&S.searchParams.set("_routes",t.filter(g=>m.has(g.route.id)).map(g=>g.route.id).join(",")),[S.pathname+S.search]},[a,l,r,o,u,t,e,s]),p=f.useMemo(()=>lN(d,o),[d,o]),w=mN(d);return f.createElement(f.Fragment,null,h.map(m=>f.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...n})),p.map(m=>f.createElement("link",{key:m,rel:"modulepreload",href:m,...n})),w.map(({key:m,link:y})=>f.createElement("link",{key:m,nonce:n.nonce,...y})))}function gN(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var by=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{by&&(window.__reactRouterVersion="7.9.1")}catch{}function yN({basename:e,children:t,window:n}){let r=f.useRef();r.current==null&&(r.current=nb({window:n,v5Compat:!0}));let o=r.current,[s,a]=f.useState({action:o.action,location:o.location}),l=f.useCallback(c=>{f.startTransition(()=>a(c))},[a]);return f.useLayoutEffect(()=>o.listen(l),[o,l]),f.createElement(Kb,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}var Ny=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xr=f.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:s,replace:a,state:l,target:c,to:u,preventScrollReset:d,viewTransition:h,...p},w){let{basename:m}=f.useContext(Zt),y=typeof u=="string"&&Ny.test(u),S,g=!1;if(typeof u=="string"&&y&&(S=u,by))try{let T=new URL(window.location.href),P=u.startsWith("//")?new URL(T.protocol+u):new URL(u),O=zn(P.pathname,m);P.origin===T.origin&&O!=null?u=O+P.search+P.hash:g=!0}catch{Gt(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let v=kb(u,{relative:o}),[x,C,j]=hN(r,p),E=CN(u,{replace:a,state:l,target:c,preventScrollReset:d,relative:o,viewTransition:h});function N(T){t&&t(T),T.defaultPrevented||E(T)}let R=f.createElement("a",{...p,...j,href:S||v,onClick:g||s?t:N,ref:gN(w,C),target:c,"data-discover":!y&&n==="render"?"true":void 0});return x&&!y?f.createElement(f.Fragment,null,R,f.createElement(pN,{page:v})):R});Xr.displayName="Link";var xN=f.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:s,to:a,viewTransition:l,children:c,...u},d){let h=zi(a,{relative:u.relative}),p=Hn(),w=f.useContext(zl),{navigator:m,basename:y}=f.useContext(Zt),S=w!=null&&RN(h)&&l===!0,g=m.encodeLocation?m.encodeLocation(h).pathname:h.pathname,v=p.pathname,x=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;n||(v=v.toLowerCase(),x=x?x.toLowerCase():null,g=g.toLowerCase()),x&&y&&(x=zn(x,y)||x);const C=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let j=v===g||!o&&v.startsWith(g)&&v.charAt(C)==="/",E=x!=null&&(x===g||!o&&x.startsWith(g)&&x.charAt(g.length)==="/"),N={isActive:j,isPending:E,isTransitioning:S},R=j?t:void 0,T;typeof r=="function"?T=r(N):T=[r,j?"active":null,E?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let P=typeof s=="function"?s(N):s;return f.createElement(Xr,{...u,"aria-current":R,className:T,ref:d,style:P,to:a,viewTransition:l},typeof c=="function"?c(N):c)});xN.displayName="NavLink";var wN=f.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:s,method:a=Da,action:l,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:h,...p},w)=>{let m=NN(),y=EN(l,{relative:u}),S=a.toLowerCase()==="get"?"get":"post",g=typeof l=="string"&&Ny.test(l),v=x=>{if(c&&c(x),x.defaultPrevented)return;x.preventDefault();let C=x.nativeEvent.submitter,j=(C==null?void 0:C.getAttribute("formmethod"))||a;m(C||x.currentTarget,{fetcherKey:t,method:j,navigate:n,replace:o,state:s,relative:u,preventScrollReset:d,viewTransition:h})};return f.createElement("form",{ref:w,method:S,action:y,onSubmit:r?c:v,...p,"data-discover":!g&&e==="render"?"true":void 0})});wN.displayName="Form";function SN(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ey(e){let t=f.useContext(ms);return je(t,SN(e)),t}function CN(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:s,viewTransition:a}={}){let l=xy(),c=Hn(),u=zi(e,{relative:s});return f.useCallback(d=>{if(eN(d,t)){d.preventDefault();let h=n!==void 0?n:Si(c)===Si(u);l(e,{replace:h,state:r,preventScrollReset:o,relative:s,viewTransition:a})}},[c,l,u,n,r,t,e,o,s,a])}var jN=0,bN=()=>`__${String(++jN)}__`;function NN(){let{router:e}=Ey("useSubmit"),{basename:t}=f.useContext(Zt),n=Ub();return f.useCallback(async(r,o={})=>{let{action:s,method:a,encType:l,formData:c,body:u}=rN(r,t);if(o.navigate===!1){let d=o.fetcherKey||bN();await e.fetch(d,n,o.action||s,{preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||a,formEncType:o.encType||l,flushSync:o.flushSync})}else await e.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||a,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function EN(e,{relative:t}={}){let{basename:n}=f.useContext(Zt),r=f.useContext(Jt);je(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),s={...zi(e||".",{relative:t})},a=Hn();if(e==null){s.search=a.search;let l=new URLSearchParams(s.search),c=l.getAll("index");if(c.some(d=>d==="")){l.delete("index"),c.filter(h=>h).forEach(h=>l.append("index",h));let d=l.toString();s.search=d?`?${d}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:In([n,s.pathname])),Si(s)}function RN(e,{relative:t}={}){let n=f.useContext(vy);je(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ey("useViewTransitionState"),o=zi(e,{relative:t});if(!n.isTransitioning)return!1;let s=zn(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=zn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return dl(o.pathname,a)!=null||dl(o.pathname,s)!=null}function Ry(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ry(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Py(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ry(e))&&(r&&(r+=" "),r+=t);return r}const If="-",PN=e=>{const t=_N(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const l=a.split(If);return l[0]===""&&l.length!==1&&l.shift(),ky(l,t)||kN(a)},getConflictingClassGroupIds:(a,l)=>{const c=n[a]||[];return l&&r[a]?[...c,...r[a]]:c}}},ky=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?ky(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(If);return(a=t.validators.find(({validator:l})=>l(s)))==null?void 0:a.classGroupId},Wp=/^\[(.+)\]$/,kN=e=>{if(Wp.test(e)){const t=Wp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},_N=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return MN(Object.entries(e.classGroups),n).forEach(([s,a])=>{fd(a,r,s,t)}),r},fd=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Up(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(TN(o)){fd(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{fd(a,Up(t,s),n,r)})})},Up=(e,t)=>{let n=e;return t.split(If).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},TN=e=>e.isThemeGetter,MN=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,l])=>[t+a,l])):s);return[n,o]}):e,ON=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},_y="!",DN=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,a=l=>{const c=[];let u=0,d=0,h;for(let S=0;S<l.length;S++){let g=l[S];if(u===0){if(g===o&&(r||l.slice(S,S+s)===t)){c.push(l.slice(d,S)),d=S+s;continue}if(g==="/"){h=S;continue}}g==="["?u++:g==="]"&&u--}const p=c.length===0?l:l.substring(d),w=p.startsWith(_y),m=w?p.substring(1):p,y=h&&h>d?h-d:void 0;return{modifiers:c,hasImportantModifier:w,baseClassName:m,maybePostfixModifierPosition:y}};return n?l=>n({className:l,parseClassName:a}):a},IN=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},AN=e=>({cache:ON(e.cacheSize),parseClassName:DN(e),...PN(e)}),LN=/\s+/,FN=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],a=e.trim().split(LN);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{modifiers:d,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:w}=n(u);let m=!!w,y=r(m?p.substring(0,w):p);if(!y){if(!m){l=u+(l.length>0?" "+l:l);continue}if(y=r(p),!y){l=u+(l.length>0?" "+l:l);continue}m=!1}const S=IN(d).join(":"),g=h?S+_y:S,v=g+y;if(s.includes(v))continue;s.push(v);const x=o(y,m);for(let C=0;C<x.length;++C){const j=x[C];s.push(g+j)}l=u+(l.length>0?" "+l:l)}return l};function $N(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Ty(t))&&(r&&(r+=" "),r+=n);return r}const Ty=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ty(e[r]))&&(n&&(n+=" "),n+=t);return n};function zN(e,...t){let n,r,o,s=a;function a(c){const u=t.reduce((d,h)=>h(d),e());return n=AN(u),r=n.cache.get,o=n.cache.set,s=l,l(c)}function l(c){const u=r(c);if(u)return u;const d=FN(c,n);return o(c,d),d}return function(){return s($N.apply(null,arguments))}}const xe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},My=/^\[(?:([a-z-]+):)?(.+)\]$/i,WN=/^\d+\/\d+$/,UN=new Set(["px","full","screen"]),BN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,HN=/\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$/,VN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,QN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sn=e=>$o(e)||UN.has(e)||WN.test(e),Qn=e=>gs(e,"length",tE),$o=e=>!!e&&!Number.isNaN(Number(e)),Hc=e=>gs(e,"number",$o),Is=e=>!!e&&Number.isInteger(Number(e)),KN=e=>e.endsWith("%")&&$o(e.slice(0,-1)),q=e=>My.test(e),qn=e=>BN.test(e),GN=new Set(["length","size","percentage"]),YN=e=>gs(e,GN,Oy),XN=e=>gs(e,"position",Oy),ZN=new Set(["image","url"]),JN=e=>gs(e,ZN,rE),eE=e=>gs(e,"",nE),As=()=>!0,gs=(e,t,n)=>{const r=My.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},tE=e=>HN.test(e)&&!VN.test(e),Oy=()=>!1,nE=e=>QN.test(e),rE=e=>qN.test(e),oE=()=>{const e=xe("colors"),t=xe("spacing"),n=xe("blur"),r=xe("brightness"),o=xe("borderColor"),s=xe("borderRadius"),a=xe("borderSpacing"),l=xe("borderWidth"),c=xe("contrast"),u=xe("grayscale"),d=xe("hueRotate"),h=xe("invert"),p=xe("gap"),w=xe("gradientColorStops"),m=xe("gradientColorStopPositions"),y=xe("inset"),S=xe("margin"),g=xe("opacity"),v=xe("padding"),x=xe("saturate"),C=xe("scale"),j=xe("sepia"),E=xe("skew"),N=xe("space"),R=xe("translate"),T=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",q,t],D=()=>[q,t],V=()=>["",Sn,Qn],Q=()=>["auto",$o,q],ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",q],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[$o,q];return{cacheSize:500,separator:":",theme:{colors:[As],spacing:[Sn,Qn],blur:["none","",qn,q],brightness:W(),borderColor:[e],borderRadius:["none","","full",qn,q],borderSpacing:D(),borderWidth:V(),contrast:W(),grayscale:_(),hueRotate:W(),invert:_(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[KN,Qn],inset:O(),margin:O(),opacity:W(),padding:D(),saturate:W(),scale:W(),sepia:_(),skew:W(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[qn]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"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(),q]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Is,q]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",Is,q]}],"grid-cols":[{"grid-cols":[As]}],"col-start-end":[{col:["auto",{span:["full",Is,q]},q]}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":[As]}],"row-start-end":[{row:["auto",{span:[Is,q]},q]}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[S]}],mx:[{mx:[S]}],my:[{my:[S]}],ms:[{ms:[S]}],me:[{me:[S]}],mt:[{mt:[S]}],mr:[{mr:[S]}],mb:[{mb:[S]}],ml:[{ml:[S]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,t]}],"min-w":[{"min-w":[q,t,"min","max","fit"]}],"max-w":[{"max-w":[q,t,"none","full","min","max","fit","prose",{screen:[qn]},qn]}],h:[{h:[q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",qn,Qn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Hc]}],"font-family":[{font:[As]}],"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",q]}],"line-clamp":[{"line-clamp":["none",$o,Hc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Sn,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Sn,Qn]}],"underline-offset":[{"underline-offset":["auto",Sn,q]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],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",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ae(),XN]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",YN]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},JN]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:z()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[Sn,q]}],"outline-w":[{outline:[Sn,Qn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Sn,Qn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",qn,eE]}],"shadow-color":[{shadow:[As]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",qn,q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[x]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Is,q]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],accent:[{accent:["auto",e]}],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",q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Sn,Qn,Hc]}],stroke:[{stroke:[e,"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"]}}},sE=zN(oE);function U(...e){return sE(Py(e))}function Bp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ul(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Bp(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Bp(e[o],null)}}}}function J(...e){return f.useCallback(Ul(...e),e)}function oo(e){const t=aE(e),n=f.forwardRef((r,o)=>{const{children:s,...a}=r,l=f.Children.toArray(s),c=l.find(cE);if(c){const u=c.props.children,d=l.map(h=>h===c?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:h);return i.jsx(t,{...a,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,d):null})}return i.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var iE=oo("Slot");function aE(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const a=dE(o),l=uE(s,o.props);return o.type!==f.Fragment&&(l.ref=r?Ul(r,a):a),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var lE=Symbol("radix.slottable");function cE(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lE}function uE(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const c=s(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function dE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Hp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Vp=Py,Bl=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Vp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],h=s==null?void 0:s[u];if(d===null)return null;const p=Hp(d)||Hp(h);return o[u][p]}),l=n&&Object.entries(n).reduce((u,d)=>{let[h,p]=d;return p===void 0||(u[h]=p),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:h,className:p,...w}=d;return Object.entries(w).every(m=>{let[y,S]=m;return Array.isArray(S)?S.includes({...s,...l}[y]):{...s,...l}[y]===S})?[...u,h,p]:u},[]);return Vp(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)},fE=Bl("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),ve=f.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const a=r?iE:"button";return i.jsx(a,{className:U(fE({variant:t,size:n,className:e})),ref:s,...o})});ve.displayName="Button";const hE=Bl("inline-flex items-center rounded-full 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 hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-green-500 text-white",warning:"border-transparent bg-yellow-500 text-white"}},defaultVariants:{variant:"default"}});function Ne({className:e,variant:t,...n}){return i.jsx("div",{className:U(hE({variant:t}),e),...n})}/**
|
|
52
|
-
* @license lucide-react v0.294.0 - ISC
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the ISC license.
|
|
55
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/var pE={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"};/**
|
|
57
|
-
* @license lucide-react v0.294.0 - ISC
|
|
58
|
-
*
|
|
59
|
-
* This source code is licensed under the ISC license.
|
|
60
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const mE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ce=(e,t)=>{const n=f.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:s=2,absoluteStrokeWidth:a,className:l="",children:c,...u},d)=>f.createElement("svg",{ref:d,...pE,width:o,height:o,stroke:r,strokeWidth:a?Number(s)*24/Number(o):s,className:["lucide",`lucide-${mE(e)}`,l].join(" "),...u},[...t.map(([h,p])=>f.createElement(h,p)),...Array.isArray(c)?c:[c]]));return n.displayName=`${e}`,n};/**
|
|
62
|
-
* @license lucide-react v0.294.0 - ISC
|
|
63
|
-
*
|
|
64
|
-
* This source code is licensed under the ISC license.
|
|
65
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const Dy=ce("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/**
|
|
67
|
-
* @license lucide-react v0.294.0 - ISC
|
|
68
|
-
*
|
|
69
|
-
* This source code is licensed under the ISC license.
|
|
70
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const Iy=ce("AlertCircle",[["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"}]]);/**
|
|
72
|
-
* @license lucide-react v0.294.0 - ISC
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the ISC license.
|
|
75
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/const so=ce("AlertTriangle",[["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-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
77
|
-
* @license lucide-react v0.294.0 - ISC
|
|
78
|
-
*
|
|
79
|
-
* This source code is licensed under the ISC license.
|
|
80
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const pa=ce("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
|
|
82
|
-
* @license lucide-react v0.294.0 - ISC
|
|
83
|
-
*
|
|
84
|
-
* This source code is licensed under the ISC license.
|
|
85
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const vE=ce("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
|
|
87
|
-
* @license lucide-react v0.294.0 - ISC
|
|
88
|
-
*
|
|
89
|
-
* This source code is licensed under the ISC license.
|
|
90
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const gE=ce("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
92
|
-
* @license lucide-react v0.294.0 - ISC
|
|
93
|
-
*
|
|
94
|
-
* This source code is licensed under the ISC license.
|
|
95
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const yE=ce("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
97
|
-
* @license lucide-react v0.294.0 - ISC
|
|
98
|
-
*
|
|
99
|
-
* This source code is licensed under the ISC license.
|
|
100
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const xE=ce("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
102
|
-
* @license lucide-react v0.294.0 - ISC
|
|
103
|
-
*
|
|
104
|
-
* This source code is licensed under the ISC license.
|
|
105
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const wE=ce("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
107
|
-
* @license lucide-react v0.294.0 - ISC
|
|
108
|
-
*
|
|
109
|
-
* This source code is licensed under the ISC license.
|
|
110
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const Af=ce("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
112
|
-
* @license lucide-react v0.294.0 - ISC
|
|
113
|
-
*
|
|
114
|
-
* This source code is licensed under the ISC license.
|
|
115
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const ma=ce("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"}]]);/**
|
|
117
|
-
* @license lucide-react v0.294.0 - ISC
|
|
118
|
-
*
|
|
119
|
-
* This source code is licensed under the ISC license.
|
|
120
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const Hl=ce("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"}]]);/**
|
|
122
|
-
* @license lucide-react v0.294.0 - ISC
|
|
123
|
-
*
|
|
124
|
-
* This source code is licensed under the ISC license.
|
|
125
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const SE=ce("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"}]]);/**
|
|
127
|
-
* @license lucide-react v0.294.0 - ISC
|
|
128
|
-
*
|
|
129
|
-
* This source code is licensed under the ISC license.
|
|
130
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const CE=ce("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
|
132
|
-
* @license lucide-react v0.294.0 - ISC
|
|
133
|
-
*
|
|
134
|
-
* This source code is licensed under the ISC license.
|
|
135
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const jE=ce("HelpCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
137
|
-
* @license lucide-react v0.294.0 - ISC
|
|
138
|
-
*
|
|
139
|
-
* This source code is licensed under the ISC license.
|
|
140
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const bE=ce("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/**
|
|
142
|
-
* @license lucide-react v0.294.0 - ISC
|
|
143
|
-
*
|
|
144
|
-
* This source code is licensed under the ISC license.
|
|
145
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const NE=ce("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);/**
|
|
147
|
-
* @license lucide-react v0.294.0 - ISC
|
|
148
|
-
*
|
|
149
|
-
* This source code is licensed under the ISC license.
|
|
150
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const EE=ce("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
|
|
152
|
-
* @license lucide-react v0.294.0 - ISC
|
|
153
|
-
*
|
|
154
|
-
* This source code is licensed under the ISC license.
|
|
155
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const RE=ce("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
|
|
157
|
-
* @license lucide-react v0.294.0 - ISC
|
|
158
|
-
*
|
|
159
|
-
* This source code is licensed under the ISC license.
|
|
160
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/const Qp=ce("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
|
162
|
-
* @license lucide-react v0.294.0 - ISC
|
|
163
|
-
*
|
|
164
|
-
* This source code is licensed under the ISC license.
|
|
165
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/const Ay=ce("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
167
|
-
* @license lucide-react v0.294.0 - ISC
|
|
168
|
-
*
|
|
169
|
-
* This source code is licensed under the ISC license.
|
|
170
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
-
*/const Lf=ce("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
172
|
-
* @license lucide-react v0.294.0 - ISC
|
|
173
|
-
*
|
|
174
|
-
* This source code is licensed under the ISC license.
|
|
175
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/const Ly=ce("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
177
|
-
* @license lucide-react v0.294.0 - ISC
|
|
178
|
-
*
|
|
179
|
-
* This source code is licensed under the ISC license.
|
|
180
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
-
*/const Fy=ce("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
182
|
-
* @license lucide-react v0.294.0 - ISC
|
|
183
|
-
*
|
|
184
|
-
* This source code is licensed under the ISC license.
|
|
185
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
-
*/const PE=ce("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
|
|
187
|
-
* @license lucide-react v0.294.0 - ISC
|
|
188
|
-
*
|
|
189
|
-
* This source code is licensed under the ISC license.
|
|
190
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
-
*/const $y=ce("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"}]]);/**
|
|
192
|
-
* @license lucide-react v0.294.0 - ISC
|
|
193
|
-
*
|
|
194
|
-
* This source code is licensed under the ISC license.
|
|
195
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
-
*/const kE=ce("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"}]]);/**
|
|
197
|
-
* @license lucide-react v0.294.0 - ISC
|
|
198
|
-
*
|
|
199
|
-
* This source code is licensed under the ISC license.
|
|
200
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/const _E=ce("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
|
|
202
|
-
* @license lucide-react v0.294.0 - ISC
|
|
203
|
-
*
|
|
204
|
-
* This source code is licensed under the ISC license.
|
|
205
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
-
*/const Ff=ce("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
|
|
207
|
-
* @license lucide-react v0.294.0 - ISC
|
|
208
|
-
*
|
|
209
|
-
* This source code is licensed under the ISC license.
|
|
210
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
-
*/const TE=ce("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);class ME{constructor(){vh(this,"baseUrl","/api/radar")}async getRequests(t){const n=new URLSearchParams;return t!=null&&t.limit&&n.append("limit",t.limit.toString()),t!=null&&t.offset&&n.append("offset",t.offset.toString()),t!=null&&t.status_code&&n.append("status_code",t.status_code.toString()),t!=null&&t.method&&n.append("method",t.method),t!=null&&t.search&&n.append("search",t.search),(await fetch(`${this.baseUrl}/requests?${n}`)).json()}async getRequestDetail(t){return(await fetch(`${this.baseUrl}/requests/${t}`)).json()}async getQueries(t){const n=new URLSearchParams;return t!=null&&t.limit&&n.append("limit",t.limit.toString()),t!=null&&t.offset&&n.append("offset",t.offset.toString()),t!=null&&t.slow_only&&n.append("slow_only",t.slow_only.toString()),t!=null&&t.slow_threshold&&n.append("slow_threshold",t.slow_threshold.toString()),(await fetch(`${this.baseUrl}/queries?${n}`)).json()}async getExceptions(t){const n=new URLSearchParams;return t!=null&&t.limit&&n.append("limit",t.limit.toString()),t!=null&&t.offset&&n.append("offset",t.offset.toString()),t!=null&&t.exception_type&&n.append("exception_type",t.exception_type),(await fetch(`${this.baseUrl}/exceptions?${n}`)).json()}async getStats(t=1){return(await fetch(`${this.baseUrl}/stats?hours=${t}`)).json()}async clearData(t){const n=t?`?older_than_hours=${t}`:"";return(await fetch(`${this.baseUrl}/clear${n}`,{method:"DELETE"})).json()}}const Be=new ME,OE=[{title:"Dashboard",icon:bE,href:"/",badge:null},{title:"Requests",icon:Dy,href:"/requests",badge:null},{title:"Database",icon:Hl,href:"/database",badge:null},{title:"Exceptions",icon:so,href:"/exceptions",badge:null},{title:"Performance",icon:Ff,href:"/performance",badge:null}],DE=[{title:"Settings",icon:Fy,href:"/settings",badge:null}];function IE({className:e,collapsed:t=!1}){const n=Hn(),{data:r}=rt({queryKey:["sidebar-stats"],queryFn:()=>Be.getStats(1),refetchInterval:3e4}),o=OE.map(s=>s.title==="Exceptions"&&(r!=null&&r.total_exceptions)&&r.total_exceptions>0?{...s,badge:r.total_exceptions.toString(),badgeVariant:"destructive"}:s);return i.jsx("div",{className:U("pb-12",e),children:i.jsx("div",{className:"space-y-4 py-4",children:i.jsxs("div",{className:"px-3 py-2",children:[i.jsxs("div",{className:"flex items-center mb-6 px-3",children:[!t&&i.jsx(i.Fragment,{children:i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{className:"text-2xl",children:"🚀"}),i.jsxs("div",{className:"flex flex-col",children:[i.jsx("h2",{className:"text-lg font-semibold tracking-tight",children:"FastAPI Radar"}),i.jsx("span",{className:"text-xs text-muted-foreground",children:"Performance Monitoring"})]})]})}),t&&i.jsx("span",{className:"text-2xl mx-auto",children:"🚀"})]}),i.jsxs("div",{className:"space-y-1",children:[i.jsx("h2",{className:U("mb-2 px-4 text-xs font-semibold tracking-wider text-muted-foreground uppercase",t&&"sr-only"),children:!t&&"Navigation"}),o.map(s=>i.jsx(ve,{variant:n.pathname===s.href?"secondary":"ghost",className:U("w-full justify-start relative",t&&"justify-center"),asChild:!0,children:i.jsxs(Xr,{to:s.href,children:[i.jsx(s.icon,{className:U("h-4 w-4",!t&&"mr-2")}),!t&&i.jsxs(i.Fragment,{children:[s.title,s.badge&&i.jsx(Ne,{variant:s.badgeVariant||"outline",className:"ml-auto",children:s.badge})]})]})},s.href))]}),i.jsxs("div",{className:"space-y-1 mt-6",children:[i.jsx("h2",{className:U("mb-2 px-4 text-xs font-semibold tracking-wider text-muted-foreground uppercase",t&&"sr-only"),children:!t&&"System"}),DE.map(s=>i.jsx(ve,{variant:n.pathname===s.href?"secondary":"ghost",className:U("w-full justify-start",t&&"justify-center"),asChild:!0,children:i.jsxs(Xr,{to:s.href,children:[i.jsx(s.icon,{className:U("h-4 w-4",!t&&"mr-2")}),!t&&s.title]})},s.href))]})]})})})}function AE(e,t){const n=f.createContext(t),r=s=>{const{children:a,...l}=s,c=f.useMemo(()=>l,Object.values(l));return i.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function o(s){const a=f.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Lt(e,t=[]){let n=[];function r(s,a){const l=f.createContext(a),c=n.length;n=[...n,a];const u=h=>{var g;const{scope:p,children:w,...m}=h,y=((g=p==null?void 0:p[e])==null?void 0:g[c])||l,S=f.useMemo(()=>m,Object.values(m));return i.jsx(y.Provider,{value:S,children:w})};u.displayName=s+"Provider";function d(h,p){var y;const w=((y=p==null?void 0:p[e])==null?void 0:y[c])||l,m=f.useContext(w);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(a=>f.createContext(a));return function(l){const c=(l==null?void 0:l[e])||s;return f.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,LE(o,...t)]}function LE(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((l,{useScope:c,scopeName:u})=>{const h=c(s)[`__scope${u}`];return{...l,...h}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Ue(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var Ie=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},FE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],B=FE.reduce((e,t)=>{const n=oo(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:a,...l}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(c,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function zy(e,t){e&&hs.flushSync(()=>e.dispatchEvent(t))}var Wy={exports:{}},Uy={};/**
|
|
212
|
-
* @license React
|
|
213
|
-
* use-sync-external-store-shim.production.js
|
|
214
|
-
*
|
|
215
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
216
|
-
*
|
|
217
|
-
* This source code is licensed under the MIT license found in the
|
|
218
|
-
* LICENSE file in the root directory of this source tree.
|
|
219
|
-
*/var as=f;function $E(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zE=typeof Object.is=="function"?Object.is:$E,WE=as.useState,UE=as.useEffect,BE=as.useLayoutEffect,HE=as.useDebugValue;function VE(e,t){var n=t(),r=WE({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return BE(function(){o.value=n,o.getSnapshot=t,Vc(o)&&s({inst:o})},[e,n,t]),UE(function(){return Vc(o)&&s({inst:o}),e(function(){Vc(o)&&s({inst:o})})},[e]),HE(n),n}function Vc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zE(e,n)}catch{return!0}}function QE(e,t){return t()}var qE=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?QE:VE;Uy.useSyncExternalStore=as.useSyncExternalStore!==void 0?as.useSyncExternalStore:qE;Wy.exports=Uy;var KE=Wy.exports;function GE(){return KE.useSyncExternalStore(YE,()=>!0,()=>!1)}function YE(){return()=>{}}var $f="Avatar",[XE]=Lt($f),[ZE,By]=XE($f),Hy=f.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=f.useState("idle");return i.jsx(ZE,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:i.jsx(B.span,{...r,ref:t})})});Hy.displayName=$f;var Vy="AvatarImage",Qy=f.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,a=By(Vy,n),l=JE(r,s),c=Ue(u=>{o(u),a.onImageLoadingStatusChange(u)});return Ie(()=>{l!=="idle"&&c(l)},[l,c]),l==="loaded"?i.jsx(B.img,{...s,ref:t,src:r}):null});Qy.displayName=Vy;var qy="AvatarFallback",Ky=f.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=By(qy,n),[a,l]=f.useState(r===void 0);return f.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>l(!0),r);return()=>window.clearTimeout(c)}},[r]),a&&s.imageLoadingStatus!=="loaded"?i.jsx(B.span,{...o,ref:t}):null});Ky.displayName=qy;function qp(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function JE(e,{referrerPolicy:t,crossOrigin:n}){const r=GE(),o=f.useRef(null),s=r?(o.current||(o.current=new window.Image),o.current):null,[a,l]=f.useState(()=>qp(s,e));return Ie(()=>{l(qp(s,e))},[s,e]),Ie(()=>{const c=h=>()=>{l(h)};if(!s)return;const u=c("loaded"),d=c("error");return s.addEventListener("load",u),s.addEventListener("error",d),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",u),s.removeEventListener("error",d)}},[s,n,t]),a}var Gy=Hy,Yy=Qy,Xy=Ky;const Zy=f.forwardRef(({className:e,...t},n)=>i.jsx(Gy,{ref:n,className:U("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Zy.displayName=Gy.displayName;const eR=f.forwardRef(({className:e,...t},n)=>i.jsx(Yy,{ref:n,className:U("aspect-square h-full w-full",e),...t}));eR.displayName=Yy.displayName;const Jy=f.forwardRef(({className:e,...t},n)=>i.jsx(Xy,{ref:n,className:U("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Jy.displayName=Xy.displayName;const hr=f.forwardRef(({className:e,type:t,...n},r)=>i.jsx("input",{type:t,className:U("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",e),ref:r,...n}));hr.displayName="Input";function L(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var tR=Jm[" useInsertionEffect ".trim().toString()]||Ie;function io({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=nR({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const h=d.current;h!==l&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const u=f.useCallback(d=>{var h;if(l){const p=rR(d)?d(e):d;p!==e&&((h=a.current)==null||h.call(a,p))}else s(d)},[l,e,s,a]);return[c,u]}function nR({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),s=f.useRef(t);return tR(()=>{s.current=t},[t]),f.useEffect(()=>{var a;o.current!==n&&((a=s.current)==null||a.call(s,n),o.current=n)},[n,o]),[n,r,s]}function rR(e){return typeof e=="function"}function zf(e){const t=e+"CollectionProvider",[n,r]=Lt(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=y=>{const{scope:S,children:g}=y,v=Nn.useRef(null),x=Nn.useRef(new Map).current;return i.jsx(o,{scope:S,itemMap:x,collectionRef:v,children:g})};a.displayName=t;const l=e+"CollectionSlot",c=oo(l),u=Nn.forwardRef((y,S)=>{const{scope:g,children:v}=y,x=s(l,g),C=J(S,x.collectionRef);return i.jsx(c,{ref:C,children:v})});u.displayName=l;const d=e+"CollectionItemSlot",h="data-radix-collection-item",p=oo(d),w=Nn.forwardRef((y,S)=>{const{scope:g,children:v,...x}=y,C=Nn.useRef(null),j=J(S,C),E=s(d,g);return Nn.useEffect(()=>(E.itemMap.set(C,{ref:C,...x}),()=>void E.itemMap.delete(C))),i.jsx(p,{[h]:"",ref:j,children:v})});w.displayName=d;function m(y){const S=s(e+"CollectionConsumer",y);return Nn.useCallback(()=>{const v=S.collectionRef.current;if(!v)return[];const x=Array.from(v.querySelectorAll(`[${h}]`));return Array.from(S.itemMap.values()).sort((E,N)=>x.indexOf(E.ref.current)-x.indexOf(N.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:a,Slot:u,ItemSlot:w},m,r]}var oR=f.createContext(void 0);function Wi(e){const t=f.useContext(oR);return e||t||"ltr"}function sR(e,t=globalThis==null?void 0:globalThis.document){const n=Ue(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var iR="DismissableLayer",hd="dismissableLayer.update",aR="dismissableLayer.pointerDownOutside",lR="dismissableLayer.focusOutside",Kp,ex=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Vl=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:l,...c}=e,u=f.useContext(ex),[d,h]=f.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=f.useState({}),m=J(t,N=>h(N)),y=Array.from(u.layers),[S]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(S),v=d?y.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,C=v>=g,j=dR(N=>{const R=N.target,T=[...u.branches].some(P=>P.contains(R));!C||T||(o==null||o(N),a==null||a(N),N.defaultPrevented||l==null||l())},p),E=fR(N=>{const R=N.target;[...u.branches].some(P=>P.contains(R))||(s==null||s(N),a==null||a(N),N.defaultPrevented||l==null||l())},p);return sR(N=>{v===u.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&l&&(N.preventDefault(),l()))},p),f.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Kp=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Gp(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Kp)}},[d,p,n,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Gp())},[d,u]),f.useEffect(()=>{const N=()=>w({});return document.addEventListener(hd,N),()=>document.removeEventListener(hd,N)},[]),i.jsx(B.div,{...c,ref:m,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:L(e.onFocusCapture,E.onFocusCapture),onBlurCapture:L(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:L(e.onPointerDownCapture,j.onPointerDownCapture)})});Vl.displayName=iR;var cR="DismissableLayerBranch",uR=f.forwardRef((e,t)=>{const n=f.useContext(ex),r=f.useRef(null),o=J(t,r);return f.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),i.jsx(B.div,{...e,ref:o})});uR.displayName=cR;function dR(e,t=globalThis==null?void 0:globalThis.document){const n=Ue(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let c=function(){tx(aR,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function fR(e,t=globalThis==null?void 0:globalThis.document){const n=Ue(e),r=f.useRef(!1);return f.useEffect(()=>{const o=s=>{s.target&&!r.current&&tx(lR,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Gp(){const e=new CustomEvent(hd);document.dispatchEvent(e)}function tx(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?zy(o,s):o.dispatchEvent(s)}var Qc=0;function Wf(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Yp()),document.body.insertAdjacentElement("beforeend",e[1]??Yp()),Qc++,()=>{Qc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Qc--}},[])}function Yp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var qc="focusScope.autoFocusOnMount",Kc="focusScope.autoFocusOnUnmount",Xp={bubbles:!1,cancelable:!0},hR="FocusScope",Ql=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[l,c]=f.useState(null),u=Ue(o),d=Ue(s),h=f.useRef(null),p=J(t,y=>c(y)),w=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let y=function(x){if(w.paused||!l)return;const C=x.target;l.contains(C)?h.current=C:Yn(h.current,{select:!0})},S=function(x){if(w.paused||!l)return;const C=x.relatedTarget;C!==null&&(l.contains(C)||Yn(h.current,{select:!0}))},g=function(x){if(document.activeElement===document.body)for(const j of x)j.removedNodes.length>0&&Yn(l)};document.addEventListener("focusin",y),document.addEventListener("focusout",S);const v=new MutationObserver(g);return l&&v.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",S),v.disconnect()}}},[r,l,w.paused]),f.useEffect(()=>{if(l){Jp.add(w);const y=document.activeElement;if(!l.contains(y)){const g=new CustomEvent(qc,Xp);l.addEventListener(qc,u),l.dispatchEvent(g),g.defaultPrevented||(pR(xR(nx(l)),{select:!0}),document.activeElement===y&&Yn(l))}return()=>{l.removeEventListener(qc,u),setTimeout(()=>{const g=new CustomEvent(Kc,Xp);l.addEventListener(Kc,d),l.dispatchEvent(g),g.defaultPrevented||Yn(y??document.body,{select:!0}),l.removeEventListener(Kc,d),Jp.remove(w)},0)}}},[l,u,d,w]);const m=f.useCallback(y=>{if(!n&&!r||w.paused)return;const S=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,g=document.activeElement;if(S&&g){const v=y.currentTarget,[x,C]=mR(v);x&&C?!y.shiftKey&&g===C?(y.preventDefault(),n&&Yn(x,{select:!0})):y.shiftKey&&g===x&&(y.preventDefault(),n&&Yn(C,{select:!0})):g===v&&y.preventDefault()}},[n,r,w.paused]);return i.jsx(B.div,{tabIndex:-1,...a,ref:p,onKeyDown:m})});Ql.displayName=hR;function pR(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Yn(r,{select:t}),document.activeElement!==n)return}function mR(e){const t=nx(e),n=Zp(t,e),r=Zp(t.reverse(),e);return[n,r]}function nx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zp(e,t){for(const n of e)if(!vR(n,{upTo:t}))return n}function vR(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function gR(e){return e instanceof HTMLInputElement&&"select"in e}function Yn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&gR(e)&&t&&e.select()}}var Jp=yR();function yR(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=em(e,t),e.unshift(t)},remove(t){var n;e=em(e,t),(n=e[0])==null||n.resume()}}}function em(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function xR(e){return e.filter(t=>t.tagName!=="A")}var wR=Jm[" useId ".trim().toString()]||(()=>{}),SR=0;function vn(e){const[t,n]=f.useState(wR());return Ie(()=>{n(r=>r??String(SR++))},[e]),t?`radix-${t}`:""}const CR=["top","right","bottom","left"],Nr=Math.min,xt=Math.max,fl=Math.round,va=Math.floor,gn=e=>({x:e,y:e}),jR={left:"right",right:"left",bottom:"top",top:"bottom"},bR={start:"end",end:"start"};function pd(e,t,n){return xt(e,Nr(t,n))}function Wn(e,t){return typeof e=="function"?e(t):e}function Un(e){return e.split("-")[0]}function ys(e){return e.split("-")[1]}function Uf(e){return e==="x"?"y":"x"}function Bf(e){return e==="y"?"height":"width"}const NR=new Set(["top","bottom"]);function dn(e){return NR.has(Un(e))?"y":"x"}function Hf(e){return Uf(dn(e))}function ER(e,t,n){n===void 0&&(n=!1);const r=ys(e),o=Hf(e),s=Bf(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=hl(a)),[a,hl(a)]}function RR(e){const t=hl(e);return[md(e),t,md(t)]}function md(e){return e.replace(/start|end/g,t=>bR[t])}const tm=["left","right"],nm=["right","left"],PR=["top","bottom"],kR=["bottom","top"];function _R(e,t,n){switch(e){case"top":case"bottom":return n?t?nm:tm:t?tm:nm;case"left":case"right":return t?PR:kR;default:return[]}}function TR(e,t,n,r){const o=ys(e);let s=_R(Un(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(md)))),s}function hl(e){return e.replace(/left|right|bottom|top/g,t=>jR[t])}function MR(e){return{top:0,right:0,bottom:0,left:0,...e}}function rx(e){return typeof e!="number"?MR(e):{top:e,right:e,bottom:e,left:e}}function pl(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function rm(e,t,n){let{reference:r,floating:o}=e;const s=dn(t),a=Hf(t),l=Bf(a),c=Un(t),u=s==="y",d=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,p=r[l]/2-o[l]/2;let w;switch(c){case"top":w={x:d,y:r.y-o.height};break;case"bottom":w={x:d,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:h};break;case"left":w={x:r.x-o.width,y:h};break;default:w={x:r.x,y:r.y}}switch(ys(t)){case"start":w[a]-=p*(n&&u?-1:1);break;case"end":w[a]+=p*(n&&u?-1:1);break}return w}const OR=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,l=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:h}=rm(u,r,c),p=r,w={},m=0;for(let y=0;y<l.length;y++){const{name:S,fn:g}=l[y],{x:v,y:x,data:C,reset:j}=await g({x:d,y:h,initialPlacement:r,placement:p,strategy:o,middlewareData:w,rects:u,platform:a,elements:{reference:e,floating:t}});d=v??d,h=x??h,w={...w,[S]:{...w[S],...C}},j&&m<=50&&(m++,typeof j=="object"&&(j.placement&&(p=j.placement),j.rects&&(u=j.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):j.rects),{x:d,y:h}=rm(u,p,c)),y=-1)}return{x:d,y:h,placement:p,strategy:o,middlewareData:w}};async function Ci(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:w=0}=Wn(t,e),m=rx(w),S=l[p?h==="floating"?"reference":"floating":h],g=pl(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(S)))==null||n?S:S.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),v=h==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),C=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},j=pl(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:x,strategy:c}):v);return{top:(g.top-j.top+m.top)/C.y,bottom:(j.bottom-g.bottom+m.bottom)/C.y,left:(g.left-j.left+m.left)/C.x,right:(j.right-g.right+m.right)/C.x}}const DR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=Wn(e,t)||{};if(u==null)return{};const h=rx(d),p={x:n,y:r},w=Hf(o),m=Bf(w),y=await a.getDimensions(u),S=w==="y",g=S?"top":"left",v=S?"bottom":"right",x=S?"clientHeight":"clientWidth",C=s.reference[m]+s.reference[w]-p[w]-s.floating[m],j=p[w]-s.reference[w],E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let N=E?E[x]:0;(!N||!await(a.isElement==null?void 0:a.isElement(E)))&&(N=l.floating[x]||s.floating[m]);const R=C/2-j/2,T=N/2-y[m]/2-1,P=Nr(h[g],T),O=Nr(h[v],T),D=P,V=N-y[m]-O,Q=N/2-y[m]/2+R,ae=pd(D,Q,V),z=!c.arrow&&ys(o)!=null&&Q!==ae&&s.reference[m]/2-(Q<D?P:O)-y[m]/2<0,G=z?Q<D?Q-D:Q-V:0;return{[w]:p[w]+G,data:{[w]:ae,centerOffset:Q-ae-G,...z&&{alignmentOffset:G}},reset:z}}}),IR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...S}=Wn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const g=Un(o),v=dn(l),x=Un(l)===l,C=await(c.isRTL==null?void 0:c.isRTL(u.floating)),j=p||(x||!y?[hl(l)]:RR(l)),E=m!=="none";!p&&E&&j.push(...TR(l,y,m,C));const N=[l,...j],R=await Ci(t,S),T=[];let P=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&T.push(R[g]),h){const Q=ER(o,a,C);T.push(R[Q[0]],R[Q[1]])}if(P=[...P,{placement:o,overflows:T}],!T.every(Q=>Q<=0)){var O,D;const Q=(((O=s.flip)==null?void 0:O.index)||0)+1,ae=N[Q];if(ae&&(!(h==="alignment"?v!==dn(ae):!1)||P.every(k=>dn(k.placement)===v?k.overflows[0]>0:!0)))return{data:{index:Q,overflows:P},reset:{placement:ae}};let z=(D=P.filter(G=>G.overflows[0]<=0).sort((G,k)=>G.overflows[1]-k.overflows[1])[0])==null?void 0:D.placement;if(!z)switch(w){case"bestFit":{var V;const G=(V=P.filter(k=>{if(E){const _=dn(k.placement);return _===v||_==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(_=>_>0).reduce((_,I)=>_+I,0)]).sort((k,_)=>k[1]-_[1])[0])==null?void 0:V[0];G&&(z=G);break}case"initialPlacement":z=l;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function om(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sm(e){return CR.some(t=>e[t]>=0)}const AR=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Wn(e,t);switch(r){case"referenceHidden":{const s=await Ci(t,{...o,elementContext:"reference"}),a=om(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:sm(a)}}}case"escaped":{const s=await Ci(t,{...o,altBoundary:!0}),a=om(s,n.floating);return{data:{escapedOffsets:a,escaped:sm(a)}}}default:return{}}}}},ox=new Set(["left","top"]);async function LR(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Un(n),l=ys(n),c=dn(n)==="y",u=ox.has(a)?-1:1,d=s&&c?-1:1,h=Wn(t,e);let{mainAxis:p,crossAxis:w,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof m=="number"&&(w=l==="end"?m*-1:m),c?{x:w*d,y:p*u}:{x:p*u,y:w*d}}const FR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:l}=t,c=await LR(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:a}}}}},$R=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:S=>{let{x:g,y:v}=S;return{x:g,y:v}}},...c}=Wn(e,t),u={x:n,y:r},d=await Ci(t,c),h=dn(Un(o)),p=Uf(h);let w=u[p],m=u[h];if(s){const S=p==="y"?"top":"left",g=p==="y"?"bottom":"right",v=w+d[S],x=w-d[g];w=pd(v,w,x)}if(a){const S=h==="y"?"top":"left",g=h==="y"?"bottom":"right",v=m+d[S],x=m-d[g];m=pd(v,m,x)}const y=l.fn({...t,[p]:w,[h]:m});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[p]:s,[h]:a}}}}}},zR=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=Wn(e,t),d={x:n,y:r},h=dn(o),p=Uf(h);let w=d[p],m=d[h];const y=Wn(l,t),S=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const x=p==="y"?"height":"width",C=s.reference[p]-s.floating[x]+S.mainAxis,j=s.reference[p]+s.reference[x]-S.mainAxis;w<C?w=C:w>j&&(w=j)}if(u){var g,v;const x=p==="y"?"width":"height",C=ox.has(Un(o)),j=s.reference[h]-s.floating[x]+(C&&((g=a.offset)==null?void 0:g[h])||0)+(C?0:S.crossAxis),E=s.reference[h]+s.reference[x]+(C?0:((v=a.offset)==null?void 0:v[h])||0)-(C?S.crossAxis:0);m<j?m=j:m>E&&(m=E)}return{[p]:w,[h]:m}}}},WR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:l}=t,{apply:c=()=>{},...u}=Wn(e,t),d=await Ci(t,u),h=Un(o),p=ys(o),w=dn(o)==="y",{width:m,height:y}=s.floating;let S,g;h==="top"||h==="bottom"?(S=h,g=p===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(g=h,S=p==="end"?"top":"bottom");const v=y-d.top-d.bottom,x=m-d.left-d.right,C=Nr(y-d[S],v),j=Nr(m-d[g],x),E=!t.middlewareData.shift;let N=C,R=j;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=v),E&&!p){const P=xt(d.left,0),O=xt(d.right,0),D=xt(d.top,0),V=xt(d.bottom,0);w?R=m-2*(P!==0||O!==0?P+O:xt(d.left,d.right)):N=y-2*(D!==0||V!==0?D+V:xt(d.top,d.bottom))}await c({...t,availableWidth:R,availableHeight:N});const T=await a.getDimensions(l.floating);return m!==T.width||y!==T.height?{reset:{rects:!0}}:{}}}};function ql(){return typeof window<"u"}function xs(e){return sx(e)?(e.nodeName||"").toLowerCase():"#document"}function Ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xn(e){var t;return(t=(sx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function sx(e){return ql()?e instanceof Node||e instanceof Ct(e).Node:!1}function Yt(e){return ql()?e instanceof Element||e instanceof Ct(e).Element:!1}function yn(e){return ql()?e instanceof HTMLElement||e instanceof Ct(e).HTMLElement:!1}function im(e){return!ql()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ct(e).ShadowRoot}const UR=new Set(["inline","contents"]);function Ui(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Xt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!UR.has(o)}const BR=new Set(["table","td","th"]);function HR(e){return BR.has(xs(e))}const VR=[":popover-open",":modal"];function Kl(e){return VR.some(t=>{try{return e.matches(t)}catch{return!1}})}const QR=["transform","translate","scale","rotate","perspective"],qR=["transform","translate","scale","rotate","perspective","filter"],KR=["paint","layout","strict","content"];function Vf(e){const t=Qf(),n=Yt(e)?Xt(e):e;return QR.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||qR.some(r=>(n.willChange||"").includes(r))||KR.some(r=>(n.contain||"").includes(r))}function GR(e){let t=Er(e);for(;yn(t)&&!ls(t);){if(Vf(t))return t;if(Kl(t))return null;t=Er(t)}return null}function Qf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const YR=new Set(["html","body","#document"]);function ls(e){return YR.has(xs(e))}function Xt(e){return Ct(e).getComputedStyle(e)}function Gl(e){return Yt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Er(e){if(xs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||im(e)&&e.host||xn(e);return im(t)?t.host:t}function ix(e){const t=Er(e);return ls(t)?e.ownerDocument?e.ownerDocument.body:e.body:yn(t)&&Ui(t)?t:ix(t)}function ji(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ix(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=Ct(o);if(s){const l=vd(a);return t.concat(a,a.visualViewport||[],Ui(o)?o:[],l&&n?ji(l):[])}return t.concat(o,ji(o,[],n))}function vd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ax(e){const t=Xt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=yn(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=fl(n)!==s||fl(r)!==a;return l&&(n=s,r=a),{width:n,height:r,$:l}}function qf(e){return Yt(e)?e:e.contextElement}function zo(e){const t=qf(e);if(!yn(t))return gn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=ax(t);let a=(s?fl(n.width):n.width)/r,l=(s?fl(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const XR=gn(0);function lx(e){const t=Ct(e);return!Qf()||!t.visualViewport?XR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ZR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ct(e)?!1:t}function ao(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=qf(e);let a=gn(1);t&&(r?Yt(r)&&(a=zo(r)):a=zo(e));const l=ZR(s,n,r)?lx(s):gn(0);let c=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,d=o.width/a.x,h=o.height/a.y;if(s){const p=Ct(s),w=r&&Yt(r)?Ct(r):r;let m=p,y=vd(m);for(;y&&r&&w!==m;){const S=zo(y),g=y.getBoundingClientRect(),v=Xt(y),x=g.left+(y.clientLeft+parseFloat(v.paddingLeft))*S.x,C=g.top+(y.clientTop+parseFloat(v.paddingTop))*S.y;c*=S.x,u*=S.y,d*=S.x,h*=S.y,c+=x,u+=C,m=Ct(y),y=vd(m)}}return pl({width:d,height:h,x:c,y:u})}function Yl(e,t){const n=Gl(e).scrollLeft;return t?t.left+n:ao(xn(e)).left+n}function cx(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Yl(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function JR(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=xn(r),l=t?Kl(t.floating):!1;if(r===a||l&&s)return n;let c={scrollLeft:0,scrollTop:0},u=gn(1);const d=gn(0),h=yn(r);if((h||!h&&!s)&&((xs(r)!=="body"||Ui(a))&&(c=Gl(r)),yn(r))){const w=ao(r);u=zo(r),d.x=w.x+r.clientLeft,d.y=w.y+r.clientTop}const p=a&&!h&&!s?cx(a,c):gn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-c.scrollTop*u.y+d.y+p.y}}function eP(e){return Array.from(e.getClientRects())}function tP(e){const t=xn(e),n=Gl(e),r=e.ownerDocument.body,o=xt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=xt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Yl(e);const l=-n.scrollTop;return Xt(r).direction==="rtl"&&(a+=xt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:l}}const am=25;function nP(e,t){const n=Ct(e),r=xn(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){s=o.width,a=o.height;const d=Qf();(!d||d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}const u=Yl(r);if(u<=0){const d=r.ownerDocument,h=d.body,p=getComputedStyle(h),w=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(r.clientWidth-h.clientWidth-w);m<=am&&(s-=m)}else u<=am&&(s+=u);return{width:s,height:a,x:l,y:c}}const rP=new Set(["absolute","fixed"]);function oP(e,t){const n=ao(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=yn(e)?zo(e):gn(1),a=e.clientWidth*s.x,l=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:a,height:l,x:c,y:u}}function lm(e,t,n){let r;if(t==="viewport")r=nP(e,n);else if(t==="document")r=tP(xn(e));else if(Yt(t))r=oP(t,n);else{const o=lx(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return pl(r)}function ux(e,t){const n=Er(e);return n===t||!Yt(n)||ls(n)?!1:Xt(n).position==="fixed"||ux(n,t)}function sP(e,t){const n=t.get(e);if(n)return n;let r=ji(e,[],!1).filter(l=>Yt(l)&&xs(l)!=="body"),o=null;const s=Xt(e).position==="fixed";let a=s?Er(e):e;for(;Yt(a)&&!ls(a);){const l=Xt(a),c=Vf(a);!c&&l.position==="fixed"&&(o=null),(s?!c&&!o:!c&&l.position==="static"&&!!o&&rP.has(o.position)||Ui(a)&&!c&&ux(e,a))?r=r.filter(d=>d!==a):o=l,a=Er(a)}return t.set(e,r),r}function iP(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Kl(t)?[]:sP(t,this._c):[].concat(n),r],l=a[0],c=a.reduce((u,d)=>{const h=lm(t,d,o);return u.top=xt(h.top,u.top),u.right=Nr(h.right,u.right),u.bottom=Nr(h.bottom,u.bottom),u.left=xt(h.left,u.left),u},lm(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function aP(e){const{width:t,height:n}=ax(e);return{width:t,height:n}}function lP(e,t,n){const r=yn(t),o=xn(t),s=n==="fixed",a=ao(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=gn(0);function u(){c.x=Yl(o)}if(r||!r&&!s)if((xs(t)!=="body"||Ui(o))&&(l=Gl(t)),r){const w=ao(t,!0,s,t);c.x=w.x+t.clientLeft,c.y=w.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?cx(o,l):gn(0),h=a.left+l.scrollLeft-c.x-d.x,p=a.top+l.scrollTop-c.y-d.y;return{x:h,y:p,width:a.width,height:a.height}}function Gc(e){return Xt(e).position==="static"}function cm(e,t){if(!yn(e)||Xt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return xn(e)===n&&(n=n.ownerDocument.body),n}function dx(e,t){const n=Ct(e);if(Kl(e))return n;if(!yn(e)){let o=Er(e);for(;o&&!ls(o);){if(Yt(o)&&!Gc(o))return o;o=Er(o)}return n}let r=cm(e,t);for(;r&&HR(r)&&Gc(r);)r=cm(r,t);return r&&ls(r)&&Gc(r)&&!Vf(r)?n:r||GR(e)||n}const cP=async function(e){const t=this.getOffsetParent||dx,n=this.getDimensions,r=await n(e.floating);return{reference:lP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function uP(e){return Xt(e).direction==="rtl"}const dP={convertOffsetParentRelativeRectToViewportRelativeRect:JR,getDocumentElement:xn,getClippingRect:iP,getOffsetParent:dx,getElementRects:cP,getClientRects:eP,getDimensions:aP,getScale:zo,isElement:Yt,isRTL:uP};function fx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fP(e,t){let n=null,r;const o=xn(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:d,top:h,width:p,height:w}=u;if(l||t(),!p||!w)return;const m=va(h),y=va(o.clientWidth-(d+p)),S=va(o.clientHeight-(h+w)),g=va(d),x={rootMargin:-m+"px "+-y+"px "+-S+"px "+-g+"px",threshold:xt(0,Nr(1,c))||1};let C=!0;function j(E){const N=E[0].intersectionRatio;if(N!==c){if(!C)return a();N?a(!1,N):r=setTimeout(()=>{a(!1,1e-7)},1e3)}N===1&&!fx(u,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(j,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(j,x)}n.observe(e)}return a(!0),s}function hP(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=qf(e),d=o||s?[...u?ji(u):[],...ji(t)]:[];d.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),s&&g.addEventListener("resize",n)});const h=u&&l?fP(u,n):null;let p=-1,w=null;a&&(w=new ResizeObserver(g=>{let[v]=g;v&&v.target===u&&w&&(w.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=w)==null||x.observe(t)})),n()}),u&&!c&&w.observe(u),w.observe(t));let m,y=c?ao(e):null;c&&S();function S(){const g=ao(e);y&&!fx(y,g)&&n(),y=g,m=requestAnimationFrame(S)}return n(),()=>{var g;d.forEach(v=>{o&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),h==null||h(),(g=w)==null||g.disconnect(),w=null,c&&cancelAnimationFrame(m)}}const pP=FR,mP=$R,vP=IR,gP=WR,yP=AR,um=DR,xP=zR,wP=(e,t,n)=>{const r=new Map,o={platform:dP,...n},s={...o.platform,_c:r};return OR(e,t,{...o,platform:s})};var SP=typeof document<"u",CP=function(){},Aa=SP?f.useLayoutEffect:CP;function ml(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ml(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!ml(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function hx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dm(e,t){const n=hx(e);return Math.round(t*n)/n}function Yc(e){const t=f.useRef(e);return Aa(()=>{t.current=e}),t}function jP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,h]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,w]=f.useState(r);ml(p,r)||w(r);const[m,y]=f.useState(null),[S,g]=f.useState(null),v=f.useCallback(k=>{k!==E.current&&(E.current=k,y(k))},[]),x=f.useCallback(k=>{k!==N.current&&(N.current=k,g(k))},[]),C=s||m,j=a||S,E=f.useRef(null),N=f.useRef(null),R=f.useRef(d),T=c!=null,P=Yc(c),O=Yc(o),D=Yc(u),V=f.useCallback(()=>{if(!E.current||!N.current)return;const k={placement:t,strategy:n,middleware:p};O.current&&(k.platform=O.current),wP(E.current,N.current,k).then(_=>{const I={..._,isPositioned:D.current!==!1};Q.current&&!ml(R.current,I)&&(R.current=I,hs.flushSync(()=>{h(I)}))})},[p,t,n,O,D]);Aa(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,h(k=>({...k,isPositioned:!1})))},[u]);const Q=f.useRef(!1);Aa(()=>(Q.current=!0,()=>{Q.current=!1}),[]),Aa(()=>{if(C&&(E.current=C),j&&(N.current=j),C&&j){if(P.current)return P.current(C,j,V);V()}},[C,j,V,P,T]);const ae=f.useMemo(()=>({reference:E,floating:N,setReference:v,setFloating:x}),[v,x]),z=f.useMemo(()=>({reference:C,floating:j}),[C,j]),G=f.useMemo(()=>{const k={position:n,left:0,top:0};if(!z.floating)return k;const _=dm(z.floating,d.x),I=dm(z.floating,d.y);return l?{...k,transform:"translate("+_+"px, "+I+"px)",...hx(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:I}},[n,l,z.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:V,refs:ae,elements:z,floatingStyles:G}),[d,V,ae,z,G])}const bP=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?um({element:r.current,padding:o}).fn(n):{}:r?um({element:r,padding:o}).fn(n):{}}}},NP=(e,t)=>({...pP(e),options:[e,t]}),EP=(e,t)=>({...mP(e),options:[e,t]}),RP=(e,t)=>({...xP(e),options:[e,t]}),PP=(e,t)=>({...vP(e),options:[e,t]}),kP=(e,t)=>({...gP(e),options:[e,t]}),_P=(e,t)=>({...yP(e),options:[e,t]}),TP=(e,t)=>({...bP(e),options:[e,t]});var MP="Arrow",px=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return i.jsx(B.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});px.displayName=MP;var OP=px;function mx(e){const[t,n]=f.useState(void 0);return Ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,l;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,l=u.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Kf="Popper",[vx,Xl]=Lt(Kf),[DP,gx]=vx(Kf),yx=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return i.jsx(DP,{scope:t,anchor:r,onAnchorChange:o,children:n})};yx.displayName=Kf;var xx="PopperAnchor",wx=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=gx(xx,n),a=f.useRef(null),l=J(t,a),c=f.useRef(null);return f.useEffect(()=>{const u=c.current;c.current=(r==null?void 0:r.current)||a.current,u!==c.current&&s.onAnchorChange(c.current)}),r?null:i.jsx(B.div,{...o,ref:l})});wx.displayName=xx;var Gf="PopperContent",[IP,AP]=vx(Gf),Sx=f.forwardRef((e,t)=>{var $,he,ge,ue,pe,me;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:w="optimized",onPlaced:m,...y}=e,S=gx(Gf,n),[g,v]=f.useState(null),x=J(t,gt=>v(gt)),[C,j]=f.useState(null),E=mx(C),N=(E==null?void 0:E.width)??0,R=(E==null?void 0:E.height)??0,T=r+(s!=="center"?"-"+s:""),P=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},O=Array.isArray(u)?u:[u],D=O.length>0,V={padding:P,boundary:O.filter(FP),altBoundary:D},{refs:Q,floatingStyles:ae,placement:z,isPositioned:G,middlewareData:k}=jP({strategy:"fixed",placement:T,whileElementsMounted:(...gt)=>hP(...gt,{animationFrame:w==="always"}),elements:{reference:S.anchor},middleware:[NP({mainAxis:o+R,alignmentAxis:a}),c&&EP({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?RP():void 0,...V}),c&&PP({...V}),kP({...V,apply:({elements:gt,rects:nn,availableWidth:js,availableHeight:bs})=>{const{width:Ns,height:B1}=nn.reference,qi=gt.floating.style;qi.setProperty("--radix-popper-available-width",`${js}px`),qi.setProperty("--radix-popper-available-height",`${bs}px`),qi.setProperty("--radix-popper-anchor-width",`${Ns}px`),qi.setProperty("--radix-popper-anchor-height",`${B1}px`)}}),C&&TP({element:C,padding:l}),$P({arrowWidth:N,arrowHeight:R}),p&&_P({strategy:"referenceHidden",...V})]}),[_,I]=bx(z),W=Ue(m);Ie(()=>{G&&(W==null||W())},[G,W]);const te=($=k.arrow)==null?void 0:$.x,lt=(he=k.arrow)==null?void 0:he.y,Oe=((ge=k.arrow)==null?void 0:ge.centerOffset)!==0,[vt,Te]=f.useState();return Ie(()=>{g&&Te(window.getComputedStyle(g).zIndex)},[g]),i.jsx("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:G?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:vt,"--radix-popper-transform-origin":[(ue=k.transformOrigin)==null?void 0:ue.x,(pe=k.transformOrigin)==null?void 0:pe.y].join(" "),...((me=k.hide)==null?void 0:me.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i.jsx(IP,{scope:n,placedSide:_,onArrowChange:j,arrowX:te,arrowY:lt,shouldHideArrow:Oe,children:i.jsx(B.div,{"data-side":_,"data-align":I,...y,ref:x,style:{...y.style,animation:G?void 0:"none"}})})})});Sx.displayName=Gf;var Cx="PopperArrow",LP={top:"bottom",right:"left",bottom:"top",left:"right"},jx=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=AP(Cx,r),a=LP[s.placedSide];return i.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:i.jsx(OP,{...o,ref:n,style:{...o.style,display:"block"}})})});jx.displayName=Cx;function FP(e){return e!==null}var $P=e=>({name:"transformOrigin",options:e,fn(t){var S,g,v;const{placement:n,rects:r,middlewareData:o}=t,a=((S=o.arrow)==null?void 0:S.centerOffset)!==0,l=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,d]=bx(n),h={start:"0%",center:"50%",end:"100%"}[d],p=(((g=o.arrow)==null?void 0:g.x)??0)+l/2,w=(((v=o.arrow)==null?void 0:v.y)??0)+c/2;let m="",y="";return u==="bottom"?(m=a?h:`${p}px`,y=`${-c}px`):u==="top"?(m=a?h:`${p}px`,y=`${r.floating.height+c}px`):u==="right"?(m=`${-c}px`,y=a?h:`${w}px`):u==="left"&&(m=`${r.floating.width+c}px`,y=a?h:`${w}px`),{data:{x:m,y}}}});function bx(e){const[t,n="center"]=e.split("-");return[t,n]}var Nx=yx,Ex=wx,Rx=Sx,Px=jx,zP="Portal",Zl=f.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,s]=f.useState(!1);Ie(()=>s(!0),[]);const a=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?yj.createPortal(i.jsx(B.div,{...r,ref:t}),a):null});Zl.displayName=zP;function WP(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var Et=e=>{const{present:t,children:n}=e,r=UP(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),s=J(r.ref,BP(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:s}):null};Et.displayName="Presence";function UP(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),s=f.useRef("none"),a=e?"mounted":"unmounted",[l,c]=WP(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=ga(r.current);s.current=l==="mounted"?u:"none"},[l]),Ie(()=>{const u=r.current,d=o.current;if(d!==e){const p=s.current,w=ga(u);e?c("MOUNT"):w==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&p!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Ie(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,h=w=>{const y=ga(r.current).includes(CSS.escape(w.animationName));if(w.target===t&&y&&(c("ANIMATION_END"),!o.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},p=w=>{w.target===t&&(s.current=ga(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:f.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ga(e){return(e==null?void 0:e.animationName)||"none"}function BP(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xc="rovingFocusGroup.onEntryFocus",HP={bubbles:!1,cancelable:!0},Bi="RovingFocusGroup",[gd,kx,VP]=zf(Bi),[QP,Jl]=Lt(Bi,[VP]),[qP,KP]=QP(Bi),_x=f.forwardRef((e,t)=>i.jsx(gd.Provider,{scope:e.__scopeRovingFocusGroup,children:i.jsx(gd.Slot,{scope:e.__scopeRovingFocusGroup,children:i.jsx(GP,{...e,ref:t})})}));_x.displayName=Bi;var GP=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...h}=e,p=f.useRef(null),w=J(t,p),m=Wi(s),[y,S]=io({prop:a,defaultProp:l??null,onChange:c,caller:Bi}),[g,v]=f.useState(!1),x=Ue(u),C=kx(n),j=f.useRef(!1),[E,N]=f.useState(0);return f.useEffect(()=>{const R=p.current;if(R)return R.addEventListener(Xc,x),()=>R.removeEventListener(Xc,x)},[x]),i.jsx(qP,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:y,onItemFocus:f.useCallback(R=>S(R),[S]),onItemShiftTab:f.useCallback(()=>v(!0),[]),onFocusableItemAdd:f.useCallback(()=>N(R=>R+1),[]),onFocusableItemRemove:f.useCallback(()=>N(R=>R-1),[]),children:i.jsx(B.div,{tabIndex:g||E===0?-1:0,"data-orientation":r,...h,ref:w,style:{outline:"none",...e.style},onMouseDown:L(e.onMouseDown,()=>{j.current=!0}),onFocus:L(e.onFocus,R=>{const T=!j.current;if(R.target===R.currentTarget&&T&&!g){const P=new CustomEvent(Xc,HP);if(R.currentTarget.dispatchEvent(P),!P.defaultPrevented){const O=C().filter(z=>z.focusable),D=O.find(z=>z.active),V=O.find(z=>z.id===y),ae=[D,V,...O].filter(Boolean).map(z=>z.ref.current);Ox(ae,d)}}j.current=!1}),onBlur:L(e.onBlur,()=>v(!1))})})}),Tx="RovingFocusGroupItem",Mx=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:a,...l}=e,c=vn(),u=s||c,d=KP(Tx,n),h=d.currentTabStopId===u,p=kx(n),{onFocusableItemAdd:w,onFocusableItemRemove:m,currentTabStopId:y}=d;return f.useEffect(()=>{if(r)return w(),()=>m()},[r,w,m]),i.jsx(gd.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:i.jsx(B.span,{tabIndex:h?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:L(e.onMouseDown,S=>{r?d.onItemFocus(u):S.preventDefault()}),onFocus:L(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:L(e.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){d.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const g=ZP(S,d.orientation,d.dir);if(g!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let x=p().filter(C=>C.focusable).map(C=>C.ref.current);if(g==="last")x.reverse();else if(g==="prev"||g==="next"){g==="prev"&&x.reverse();const C=x.indexOf(S.currentTarget);x=d.loop?JP(x,C+1):x.slice(C+1)}setTimeout(()=>Ox(x))}}),children:typeof a=="function"?a({isCurrentTabStop:h,hasTabStop:y!=null}):a})})});Mx.displayName=Tx;var YP={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function XP(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ZP(e,t,n){const r=XP(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return YP[r]}function Ox(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function JP(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Dx=_x,Ix=Mx,e2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},go=new WeakMap,ya=new WeakMap,xa={},Zc=0,Ax=function(e){return e&&(e.host||Ax(e.parentNode))},t2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ax(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},n2=function(e,t,n,r){var o=t2(t,Array.isArray(e)?e:[e]);xa[n]||(xa[n]=new WeakMap);var s=xa[n],a=[],l=new Set,c=new Set(o),u=function(h){!h||l.has(h)||(l.add(h),u(h.parentNode))};o.forEach(u);var d=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(p){if(l.has(p))d(p);else try{var w=p.getAttribute(r),m=w!==null&&w!=="false",y=(go.get(p)||0)+1,S=(s.get(p)||0)+1;go.set(p,y),s.set(p,S),a.push(p),y===1&&m&&ya.set(p,!0),S===1&&p.setAttribute(n,"true"),m||p.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",p,g)}})};return d(t),l.clear(),Zc++,function(){a.forEach(function(h){var p=go.get(h)-1,w=s.get(h)-1;go.set(h,p),s.set(h,w),p||(ya.has(h)||h.removeAttribute(r),ya.delete(h)),w||h.removeAttribute(n)}),Zc--,Zc||(go=new WeakMap,go=new WeakMap,ya=new WeakMap,xa={})}},Yf=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=e2(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),n2(r,o,n,"aria-hidden")):function(){return null}},un=function(){return un=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},un.apply(this,arguments)};function Lx(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function r2(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var La="right-scroll-bar-position",Fa="width-before-scroll-bar",o2="with-scroll-bars-hidden",s2="--removed-body-scroll-bar-size";function Jc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function i2(e,t){var n=f.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var a2=typeof window<"u"?f.useLayoutEffect:f.useEffect,fm=new WeakMap;function l2(e,t){var n=i2(null,function(r){return e.forEach(function(o){return Jc(o,r)})});return a2(function(){var r=fm.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(l){s.has(l)||Jc(l,null)}),s.forEach(function(l){o.has(l)||Jc(l,a)})}fm.set(n,e)},[e]),n}function c2(e){return e}function u2(e,t){t===void 0&&(t=c2);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(l){return l!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(l){return s(l)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var l=n;n=[],l.forEach(s),a=n}var c=function(){var d=a;a=[],d.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return o}function d2(e){e===void 0&&(e={});var t=u2(null);return t.options=un({async:!0,ssr:!1},e),t}var Fx=function(e){var t=e.sideCar,n=Lx(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,un({},n))};Fx.isSideCarExport=!0;function f2(e,t){return e.useMedium(t),Fx}var $x=d2(),eu=function(){},ec=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:eu,onWheelCapture:eu,onTouchMoveCapture:eu}),o=r[0],s=r[1],a=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,w=e.noRelative,m=e.noIsolation,y=e.inert,S=e.allowPinchZoom,g=e.as,v=g===void 0?"div":g,x=e.gapMode,C=Lx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=p,E=l2([n,t]),N=un(un({},C),o);return f.createElement(f.Fragment,null,d&&f.createElement(j,{sideCar:$x,removeScrollBar:u,shards:h,noRelative:w,noIsolation:m,inert:y,setCallbacks:s,allowPinchZoom:!!S,lockRef:n,gapMode:x}),a?f.cloneElement(f.Children.only(l),un(un({},N),{ref:E})):f.createElement(v,un({},N,{className:c,ref:E}),l))});ec.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ec.classNames={fullWidth:Fa,zeroRight:La};var h2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function p2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=h2();return t&&e.setAttribute("nonce",t),e}function m2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function v2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var g2=function(){var e=0,t=null;return{add:function(n){e==0&&(t=p2())&&(m2(t,n),v2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y2=function(){var e=g2();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},zx=function(){var e=y2(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},x2={left:0,top:0,right:0,gap:0},tu=function(e){return parseInt(e||"",10)||0},w2=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[tu(n),tu(r),tu(o)]},S2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return x2;var t=w2(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},C2=zx(),Wo="data-scroll-locked",j2=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
220
|
-
.`.concat(o2,` {
|
|
221
|
-
overflow: hidden `).concat(r,`;
|
|
222
|
-
padding-right: `).concat(l,"px ").concat(r,`;
|
|
223
|
-
}
|
|
224
|
-
body[`).concat(Wo,`] {
|
|
225
|
-
overflow: hidden `).concat(r,`;
|
|
226
|
-
overscroll-behavior: contain;
|
|
227
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
228
|
-
padding-left: `.concat(o,`px;
|
|
229
|
-
padding-top: `).concat(s,`px;
|
|
230
|
-
padding-right: `).concat(a,`px;
|
|
231
|
-
margin-left:0;
|
|
232
|
-
margin-top:0;
|
|
233
|
-
margin-right: `).concat(l,"px ").concat(r,`;
|
|
234
|
-
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.`).concat(La,` {
|
|
238
|
-
right: `).concat(l,"px ").concat(r,`;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.`).concat(Fa,` {
|
|
242
|
-
margin-right: `).concat(l,"px ").concat(r,`;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.`).concat(La," .").concat(La,` {
|
|
246
|
-
right: 0 `).concat(r,`;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.`).concat(Fa," .").concat(Fa,` {
|
|
250
|
-
margin-right: 0 `).concat(r,`;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
body[`).concat(Wo,`] {
|
|
254
|
-
`).concat(s2,": ").concat(l,`px;
|
|
255
|
-
}
|
|
256
|
-
`)},hm=function(){var e=parseInt(document.body.getAttribute(Wo)||"0",10);return isFinite(e)?e:0},b2=function(){f.useEffect(function(){return document.body.setAttribute(Wo,(hm()+1).toString()),function(){var e=hm()-1;e<=0?document.body.removeAttribute(Wo):document.body.setAttribute(Wo,e.toString())}},[])},N2=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;b2();var s=f.useMemo(function(){return S2(o)},[o]);return f.createElement(C2,{styles:j2(s,!t,o,n?"":"!important")})},yd=!1;if(typeof window<"u")try{var wa=Object.defineProperty({},"passive",{get:function(){return yd=!0,!0}});window.addEventListener("test",wa,wa),window.removeEventListener("test",wa,wa)}catch{yd=!1}var yo=yd?{passive:!1}:!1,E2=function(e){return e.tagName==="TEXTAREA"},Wx=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!E2(e)&&n[t]==="visible")},R2=function(e){return Wx(e,"overflowY")},P2=function(e){return Wx(e,"overflowX")},pm=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ux(e,r);if(o){var s=Bx(e,r),a=s[1],l=s[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},k2=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},_2=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ux=function(e,t){return e==="v"?R2(t):P2(t)},Bx=function(e,t){return e==="v"?k2(t):_2(t)},T2=function(e,t){return e==="h"&&t==="rtl"?-1:1},M2=function(e,t,n,r,o){var s=T2(e,window.getComputedStyle(t).direction),a=s*r,l=n.target,c=t.contains(l),u=!1,d=a>0,h=0,p=0;do{if(!l)break;var w=Bx(e,l),m=w[0],y=w[1],S=w[2],g=y-S-s*m;(m||g)&&Ux(e,l)&&(h+=g,p+=m);var v=l.parentNode;l=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&Math.abs(h)<1||!d&&Math.abs(p)<1)&&(u=!0),u},Sa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mm=function(e){return[e.deltaX,e.deltaY]},vm=function(e){return e&&"current"in e?e.current:e},O2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},D2=function(e){return`
|
|
257
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
258
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
259
|
-
`)},I2=0,xo=[];function A2(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(I2++)[0],s=f.useState(zx)[0],a=f.useRef(e);f.useEffect(function(){a.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=r2([e.lockRef.current],(e.shards||[]).map(vm),!0).filter(Boolean);return y.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=f.useCallback(function(y,S){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!a.current.allowPinchZoom;var g=Sa(y),v=n.current,x="deltaX"in y?y.deltaX:v[0]-g[0],C="deltaY"in y?y.deltaY:v[1]-g[1],j,E=y.target,N=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in y&&N==="h"&&E.type==="range")return!1;var R=pm(N,E);if(!R)return!0;if(R?j=N:(j=N==="v"?"h":"v",R=pm(N,E)),!R)return!1;if(!r.current&&"changedTouches"in y&&(x||C)&&(r.current=j),!j)return!0;var T=r.current||j;return M2(T,S,y,T==="h"?x:C)},[]),c=f.useCallback(function(y){var S=y;if(!(!xo.length||xo[xo.length-1]!==s)){var g="deltaY"in S?mm(S):Sa(S),v=t.current.filter(function(j){return j.name===S.type&&(j.target===S.target||S.target===j.shadowParent)&&O2(j.delta,g)})[0];if(v&&v.should){S.cancelable&&S.preventDefault();return}if(!v){var x=(a.current.shards||[]).map(vm).filter(Boolean).filter(function(j){return j.contains(S.target)}),C=x.length>0?l(S,x[0]):!a.current.noIsolation;C&&S.cancelable&&S.preventDefault()}}},[]),u=f.useCallback(function(y,S,g,v){var x={name:y,delta:S,target:g,should:v,shadowParent:L2(g)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(C){return C!==x})},1)},[]),d=f.useCallback(function(y){n.current=Sa(y),r.current=void 0},[]),h=f.useCallback(function(y){u(y.type,mm(y),y.target,l(y,e.lockRef.current))},[]),p=f.useCallback(function(y){u(y.type,Sa(y),y.target,l(y,e.lockRef.current))},[]);f.useEffect(function(){return xo.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,yo),document.addEventListener("touchmove",c,yo),document.addEventListener("touchstart",d,yo),function(){xo=xo.filter(function(y){return y!==s}),document.removeEventListener("wheel",c,yo),document.removeEventListener("touchmove",c,yo),document.removeEventListener("touchstart",d,yo)}},[]);var w=e.removeScrollBar,m=e.inert;return f.createElement(f.Fragment,null,m?f.createElement(s,{styles:D2(o)}):null,w?f.createElement(N2,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function L2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const F2=f2($x,A2);var tc=f.forwardRef(function(e,t){return f.createElement(ec,un({},e,{ref:t,sideCar:F2}))});tc.classNames=ec.classNames;var xd=["Enter"," "],$2=["ArrowDown","PageUp","Home"],Hx=["ArrowUp","PageDown","End"],z2=[...$2,...Hx],W2={ltr:[...xd,"ArrowRight"],rtl:[...xd,"ArrowLeft"]},U2={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Hi="Menu",[bi,B2,H2]=zf(Hi),[po,Vx]=Lt(Hi,[H2,Xl,Jl]),nc=Xl(),Qx=Jl(),[V2,mo]=po(Hi),[Q2,Vi]=po(Hi),qx=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:a=!0}=e,l=nc(t),[c,u]=f.useState(null),d=f.useRef(!1),h=Ue(s),p=Wi(o);return f.useEffect(()=>{const w=()=>{d.current=!0,document.addEventListener("pointerdown",m,{capture:!0,once:!0}),document.addEventListener("pointermove",m,{capture:!0,once:!0})},m=()=>d.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",m,{capture:!0}),document.removeEventListener("pointermove",m,{capture:!0})}},[]),i.jsx(Nx,{...l,children:i.jsx(V2,{scope:t,open:n,onOpenChange:h,content:c,onContentChange:u,children:i.jsx(Q2,{scope:t,onClose:f.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:d,dir:p,modal:a,children:r})})})};qx.displayName=Hi;var q2="MenuAnchor",Xf=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=nc(n);return i.jsx(Ex,{...o,...r,ref:t})});Xf.displayName=q2;var Zf="MenuPortal",[K2,Kx]=po(Zf,{forceMount:void 0}),Gx=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=mo(Zf,t);return i.jsx(K2,{scope:t,forceMount:n,children:i.jsx(Et,{present:n||s.open,children:i.jsx(Zl,{asChild:!0,container:o,children:r})})})};Gx.displayName=Zf;var Dt="MenuContent",[G2,Jf]=po(Dt),Yx=f.forwardRef((e,t)=>{const n=Kx(Dt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=mo(Dt,e.__scopeMenu),a=Vi(Dt,e.__scopeMenu);return i.jsx(bi.Provider,{scope:e.__scopeMenu,children:i.jsx(Et,{present:r||s.open,children:i.jsx(bi.Slot,{scope:e.__scopeMenu,children:a.modal?i.jsx(Y2,{...o,ref:t}):i.jsx(X2,{...o,ref:t})})})})}),Y2=f.forwardRef((e,t)=>{const n=mo(Dt,e.__scopeMenu),r=f.useRef(null),o=J(t,r);return f.useEffect(()=>{const s=r.current;if(s)return Yf(s)},[]),i.jsx(eh,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:L(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),X2=f.forwardRef((e,t)=>{const n=mo(Dt,e.__scopeMenu);return i.jsx(eh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Z2=oo("MenuContent.ScrollLock"),eh=f.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:p,onDismiss:w,disableOutsideScroll:m,...y}=e,S=mo(Dt,n),g=Vi(Dt,n),v=nc(n),x=Qx(n),C=B2(n),[j,E]=f.useState(null),N=f.useRef(null),R=J(t,N,S.onContentChange),T=f.useRef(0),P=f.useRef(""),O=f.useRef(0),D=f.useRef(null),V=f.useRef("right"),Q=f.useRef(0),ae=m?tc:f.Fragment,z=m?{as:Z2,allowPinchZoom:!0}:void 0,G=_=>{var $,he;const I=P.current+_,W=C().filter(ge=>!ge.disabled),te=document.activeElement,lt=($=W.find(ge=>ge.ref.current===te))==null?void 0:$.textValue,Oe=W.map(ge=>ge.textValue),vt=uk(Oe,I,lt),Te=(he=W.find(ge=>ge.textValue===vt))==null?void 0:he.ref.current;(function ge(ue){P.current=ue,window.clearTimeout(T.current),ue!==""&&(T.current=window.setTimeout(()=>ge(""),1e3))})(I),Te&&setTimeout(()=>Te.focus())};f.useEffect(()=>()=>window.clearTimeout(T.current),[]),Wf();const k=f.useCallback(_=>{var W,te;return V.current===((W=D.current)==null?void 0:W.side)&&fk(_,(te=D.current)==null?void 0:te.area)},[]);return i.jsx(G2,{scope:n,searchRef:P,onItemEnter:f.useCallback(_=>{k(_)&&_.preventDefault()},[k]),onItemLeave:f.useCallback(_=>{var I;k(_)||((I=N.current)==null||I.focus(),E(null))},[k]),onTriggerLeave:f.useCallback(_=>{k(_)&&_.preventDefault()},[k]),pointerGraceTimerRef:O,onPointerGraceIntentChange:f.useCallback(_=>{D.current=_},[]),children:i.jsx(ae,{...z,children:i.jsx(Ql,{asChild:!0,trapped:o,onMountAutoFocus:L(s,_=>{var I;_.preventDefault(),(I=N.current)==null||I.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:i.jsx(Vl,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:p,onDismiss:w,children:i.jsx(Dx,{asChild:!0,...x,dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:j,onCurrentTabStopIdChange:E,onEntryFocus:L(c,_=>{g.isUsingKeyboardRef.current||_.preventDefault()}),preventScrollOnEntryFocus:!0,children:i.jsx(Rx,{role:"menu","aria-orientation":"vertical","data-state":fw(S.open),"data-radix-menu-content":"",dir:g.dir,...v,...y,ref:R,style:{outline:"none",...y.style},onKeyDown:L(y.onKeyDown,_=>{const W=_.target.closest("[data-radix-menu-content]")===_.currentTarget,te=_.ctrlKey||_.altKey||_.metaKey,lt=_.key.length===1;W&&(_.key==="Tab"&&_.preventDefault(),!te&<&&G(_.key));const Oe=N.current;if(_.target!==Oe||!z2.includes(_.key))return;_.preventDefault();const Te=C().filter($=>!$.disabled).map($=>$.ref.current);Hx.includes(_.key)&&Te.reverse(),lk(Te)}),onBlur:L(e.onBlur,_=>{_.currentTarget.contains(_.target)||(window.clearTimeout(T.current),P.current="")}),onPointerMove:L(e.onPointerMove,Ni(_=>{const I=_.target,W=Q.current!==_.clientX;if(_.currentTarget.contains(I)&&W){const te=_.clientX>Q.current?"right":"left";V.current=te,Q.current=_.clientX}}))})})})})})})});Yx.displayName=Dt;var J2="MenuGroup",th=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(B.div,{role:"group",...r,ref:t})});th.displayName=J2;var ek="MenuLabel",Xx=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(B.div,{...r,ref:t})});Xx.displayName=ek;var vl="MenuItem",gm="menu.itemSelect",rc=f.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=f.useRef(null),a=Vi(vl,e.__scopeMenu),l=Jf(vl,e.__scopeMenu),c=J(t,s),u=f.useRef(!1),d=()=>{const h=s.current;if(!n&&h){const p=new CustomEvent(gm,{bubbles:!0,cancelable:!0});h.addEventListener(gm,w=>r==null?void 0:r(w),{once:!0}),zy(h,p),p.defaultPrevented?u.current=!1:a.onClose()}};return i.jsx(Zx,{...o,ref:c,disabled:n,onClick:L(e.onClick,d),onPointerDown:h=>{var p;(p=e.onPointerDown)==null||p.call(e,h),u.current=!0},onPointerUp:L(e.onPointerUp,h=>{var p;u.current||(p=h.currentTarget)==null||p.click()}),onKeyDown:L(e.onKeyDown,h=>{const p=l.searchRef.current!=="";n||p&&h.key===" "||xd.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});rc.displayName=vl;var Zx=f.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,a=Jf(vl,n),l=Qx(n),c=f.useRef(null),u=J(t,c),[d,h]=f.useState(!1),[p,w]=f.useState("");return f.useEffect(()=>{const m=c.current;m&&w((m.textContent??"").trim())},[s.children]),i.jsx(bi.ItemSlot,{scope:n,disabled:r,textValue:o??p,children:i.jsx(Ix,{asChild:!0,...l,focusable:!r,children:i.jsx(B.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:u,onPointerMove:L(e.onPointerMove,Ni(m=>{r?a.onItemLeave(m):(a.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:L(e.onPointerLeave,Ni(m=>a.onItemLeave(m))),onFocus:L(e.onFocus,()=>h(!0)),onBlur:L(e.onBlur,()=>h(!1))})})})}),tk="MenuCheckboxItem",Jx=f.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.jsx(ow,{scope:e.__scopeMenu,checked:n,children:i.jsx(rc,{role:"menuitemcheckbox","aria-checked":gl(n)?"mixed":n,...o,ref:t,"data-state":rh(n),onSelect:L(o.onSelect,()=>r==null?void 0:r(gl(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Jx.displayName=tk;var ew="MenuRadioGroup",[nk,rk]=po(ew,{value:void 0,onValueChange:()=>{}}),tw=f.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=Ue(r);return i.jsx(nk,{scope:e.__scopeMenu,value:n,onValueChange:s,children:i.jsx(th,{...o,ref:t})})});tw.displayName=ew;var nw="MenuRadioItem",rw=f.forwardRef((e,t)=>{const{value:n,...r}=e,o=rk(nw,e.__scopeMenu),s=n===o.value;return i.jsx(ow,{scope:e.__scopeMenu,checked:s,children:i.jsx(rc,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":rh(s),onSelect:L(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});rw.displayName=nw;var nh="MenuItemIndicator",[ow,ok]=po(nh,{checked:!1}),sw=f.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=ok(nh,n);return i.jsx(Et,{present:r||gl(s.checked)||s.checked===!0,children:i.jsx(B.span,{...o,ref:t,"data-state":rh(s.checked)})})});sw.displayName=nh;var sk="MenuSeparator",iw=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.jsx(B.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});iw.displayName=sk;var ik="MenuArrow",aw=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=nc(n);return i.jsx(Px,{...o,...r,ref:t})});aw.displayName=ik;var ak="MenuSub",[lO,lw]=po(ak),Hs="MenuSubTrigger",cw=f.forwardRef((e,t)=>{const n=mo(Hs,e.__scopeMenu),r=Vi(Hs,e.__scopeMenu),o=lw(Hs,e.__scopeMenu),s=Jf(Hs,e.__scopeMenu),a=f.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=s,u={__scopeMenu:e.__scopeMenu},d=f.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return f.useEffect(()=>d,[d]),f.useEffect(()=>{const h=l.current;return()=>{window.clearTimeout(h),c(null)}},[l,c]),i.jsx(Xf,{asChild:!0,...u,children:i.jsx(Zx,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":fw(n.open),...e,ref:Ul(t,o.onTriggerChange),onClick:h=>{var p;(p=e.onClick)==null||p.call(e,h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:L(e.onPointerMove,Ni(h=>{s.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:L(e.onPointerLeave,Ni(h=>{var w,m;d();const p=(w=n.content)==null?void 0:w.getBoundingClientRect();if(p){const y=(m=n.content)==null?void 0:m.dataset.side,S=y==="right",g=S?-5:5,v=p[S?"left":"right"],x=p[S?"right":"left"];s.onPointerGraceIntentChange({area:[{x:h.clientX+g,y:h.clientY},{x:v,y:p.top},{x,y:p.top},{x,y:p.bottom},{x:v,y:p.bottom}],side:y}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(h),h.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:L(e.onKeyDown,h=>{var w;const p=s.searchRef.current!=="";e.disabled||p&&h.key===" "||W2[r.dir].includes(h.key)&&(n.onOpenChange(!0),(w=n.content)==null||w.focus(),h.preventDefault())})})})});cw.displayName=Hs;var uw="MenuSubContent",dw=f.forwardRef((e,t)=>{const n=Kx(Dt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=mo(Dt,e.__scopeMenu),a=Vi(Dt,e.__scopeMenu),l=lw(uw,e.__scopeMenu),c=f.useRef(null),u=J(t,c);return i.jsx(bi.Provider,{scope:e.__scopeMenu,children:i.jsx(Et,{present:r||s.open,children:i.jsx(bi.Slot,{scope:e.__scopeMenu,children:i.jsx(eh,{id:l.contentId,"aria-labelledby":l.triggerId,...o,ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var h;a.isUsingKeyboardRef.current&&((h=c.current)==null||h.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:L(e.onFocusOutside,d=>{d.target!==l.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:L(e.onEscapeKeyDown,d=>{a.onClose(),d.preventDefault()}),onKeyDown:L(e.onKeyDown,d=>{var w;const h=d.currentTarget.contains(d.target),p=U2[a.dir].includes(d.key);h&&p&&(s.onOpenChange(!1),(w=l.trigger)==null||w.focus(),d.preventDefault())})})})})})});dw.displayName=uw;function fw(e){return e?"open":"closed"}function gl(e){return e==="indeterminate"}function rh(e){return gl(e)?"indeterminate":e?"checked":"unchecked"}function lk(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ck(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function uk(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=ck(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const c=a.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function dk(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const l=t[s],c=t[a],u=l.x,d=l.y,h=c.x,p=c.y;d>r!=p>r&&n<(h-u)*(r-d)/(p-d)+u&&(o=!o)}return o}function fk(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return dk(n,t)}function Ni(e){return t=>t.pointerType==="mouse"?e(t):void 0}var hk=qx,pk=Xf,mk=Gx,vk=Yx,gk=th,yk=Xx,xk=rc,wk=Jx,Sk=tw,Ck=rw,jk=sw,bk=iw,Nk=aw,Ek=cw,Rk=dw,oc="DropdownMenu",[Pk]=Lt(oc,[Vx]),at=Vx(),[kk,hw]=Pk(oc),pw=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:a,modal:l=!0}=e,c=at(t),u=f.useRef(null),[d,h]=io({prop:o,defaultProp:s??!1,onChange:a,caller:oc});return i.jsx(kk,{scope:t,triggerId:vn(),triggerRef:u,contentId:vn(),open:d,onOpenChange:h,onOpenToggle:f.useCallback(()=>h(p=>!p),[h]),modal:l,children:i.jsx(hk,{...c,open:d,onOpenChange:h,dir:r,modal:l,children:n})})};pw.displayName=oc;var mw="DropdownMenuTrigger",vw=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=hw(mw,n),a=at(n);return i.jsx(pk,{asChild:!0,...a,children:i.jsx(B.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Ul(t,s.triggerRef),onPointerDown:L(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(s.onOpenToggle(),s.open||l.preventDefault())}),onKeyDown:L(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&s.onOpenToggle(),l.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});vw.displayName=mw;var _k="DropdownMenuPortal",gw=e=>{const{__scopeDropdownMenu:t,...n}=e,r=at(t);return i.jsx(mk,{...r,...n})};gw.displayName=_k;var yw="DropdownMenuContent",xw=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hw(yw,n),s=at(n),a=f.useRef(!1);return i.jsx(vk,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:L(e.onCloseAutoFocus,l=>{var c;a.current||(c=o.triggerRef.current)==null||c.focus(),a.current=!1,l.preventDefault()}),onInteractOutside:L(e.onInteractOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;(!o.modal||d)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});xw.displayName=yw;var Tk="DropdownMenuGroup",Mk=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.jsx(gk,{...o,...r,ref:t})});Mk.displayName=Tk;var Ok="DropdownMenuLabel",ww=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.jsx(yk,{...o,...r,ref:t})});ww.displayName=Ok;var Dk="DropdownMenuItem",Sw=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.jsx(xk,{...o,...r,ref:t})});Sw.displayName=Dk;var Ik="DropdownMenuCheckboxItem",Cw=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.jsx(wk,{...o,...r,ref:t})});Cw.displayName=Ik;var Ak="DropdownMenuRadioGroup",Lk=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.jsx(Sk,{...o,...r,ref:t})});Lk.displayName=Ak;var Fk="DropdownMenuRadioItem",jw=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.jsx(Ck,{...o,...r,ref:t})});jw.displayName=Fk;var $k="DropdownMenuItemIndicator",bw=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.jsx(jk,{...o,...r,ref:t})});bw.displayName=$k;var zk="DropdownMenuSeparator",Nw=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.jsx(bk,{...o,...r,ref:t})});Nw.displayName=zk;var Wk="DropdownMenuArrow",Uk=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.jsx(Nk,{...o,...r,ref:t})});Uk.displayName=Wk;var Bk="DropdownMenuSubTrigger",Ew=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.jsx(Ek,{...o,...r,ref:t})});Ew.displayName=Bk;var Hk="DropdownMenuSubContent",Rw=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=at(n);return i.jsx(Rk,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Rw.displayName=Hk;var Vk=pw,Qk=vw,qk=gw,Pw=xw,kw=ww,_w=Sw,Tw=Cw,Mw=jw,Ow=bw,Dw=Nw,Iw=Ew,Aw=Rw;function ws(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Kk=["color"],Lw=f.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=ws(e,Kk);return f.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),f.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Gk=["color"],Fw=f.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=ws(e,Gk);return f.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),f.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Yk=["color"],Xk=f.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=ws(e,Yk);return f.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),f.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Zk=["color"],Jk=f.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=ws(e,Zk);return f.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),f.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),e_=["color"],t_=f.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=ws(e,e_);return f.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),f.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),n_=["color"],r_=f.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=ws(e,n_);return f.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),f.createElement("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:r}))});const ym=Vk,xm=Qk,o_=f.forwardRef(({className:e,inset:t,children:n,...r},o)=>i.jsxs(Iw,{ref:o,className:U("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,i.jsx(Xk,{className:"ml-auto"})]}));o_.displayName=Iw.displayName;const s_=f.forwardRef(({className:e,...t},n)=>i.jsx(Aw,{ref:n,className:U("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));s_.displayName=Aw.displayName;const wd=f.forwardRef(({className:e,sideOffset:t=4,...n},r)=>i.jsx(qk,{children:i.jsx(Pw,{ref:r,sideOffset:t,className:U("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...n})}));wd.displayName=Pw.displayName;const Xn=f.forwardRef(({className:e,inset:t,...n},r)=>i.jsx(_w,{ref:r,className:U("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));Xn.displayName=_w.displayName;const i_=f.forwardRef(({className:e,children:t,checked:n,...r},o)=>i.jsxs(Tw,{ref:o,className:U("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[i.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(Ow,{children:i.jsx(Lw,{className:"h-4 w-4"})})}),t]}));i_.displayName=Tw.displayName;const a_=f.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(Mw,{ref:r,className:U("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[i.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(Ow,{children:i.jsx(r_,{className:"h-2 w-2 fill-current"})})}),t]}));a_.displayName=Mw.displayName;const Sd=f.forwardRef(({className:e,inset:t,...n},r)=>i.jsx(kw,{ref:r,className:U("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Sd.displayName=kw.displayName;const Vs=f.forwardRef(({className:e,...t},n)=>i.jsx(Dw,{ref:n,className:U("-mx-1 my-1 h-px bg-muted",e),...t}));Vs.displayName=Dw.displayName;function $w(){const[e,t]=f.useState(()=>localStorage.getItem("theme")||"light");return f.useEffect(()=>{document.documentElement.className=e,localStorage.setItem("theme",e)},[e]),{theme:e,setTheme:t,toggleTheme:()=>{t(r=>r==="light"?"dark":"light")}}}function l_(){const[e,t]=f.useState(!1),{theme:n,toggleTheme:r}=$w(),[o,s]=f.useState(!1),{refetch:a}=rt({queryKey:["stats"],queryFn:()=>Be.getStats(1)}),l=async()=>{s(!0),await a(),setTimeout(()=>s(!1),1e3)},c=async()=>{confirm("Are you sure you want to clear all captured data?")&&(await Be.clearData(),await a())};return i.jsxs("div",{className:"flex h-screen overflow-hidden",children:[i.jsx("div",{className:U("hidden md:flex h-full bg-background border-r transition-all duration-300",e?"w-16":"w-64"),children:i.jsx(IE,{collapsed:e,className:"w-full"})}),i.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[i.jsx("header",{className:"bg-background border-b px-6 py-3",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsx(ve,{variant:"ghost",size:"icon",onClick:()=>t(!e),className:"hidden md:flex",children:e?i.jsx(Qp,{className:"h-5 w-5"}):i.jsx(xE,{className:"h-5 w-5"})}),i.jsx(ve,{variant:"ghost",size:"icon",className:"md:hidden",children:i.jsx(Qp,{className:"h-5 w-5"})}),i.jsxs("div",{className:"relative w-96 hidden lg:block",children:[i.jsx(Ly,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-muted-foreground h-4 w-4"}),i.jsx(hr,{placeholder:"Search endpoints, queries, errors...",className:"pl-10 w-full"})]})]}),i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsxs(Ne,{variant:"outline",className:"hidden sm:flex items-center gap-1",children:[i.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"}),"Connected"]}),i.jsx(ve,{variant:"ghost",size:"icon",onClick:l,title:"Refresh data",children:i.jsx(Lf,{className:U("h-4 w-4",o&&"animate-spin")})}),i.jsx(ve,{variant:"ghost",size:"icon",onClick:c,title:"Clear all data",children:i.jsx(kE,{className:"h-4 w-4"})}),i.jsx(ve,{variant:"ghost",size:"icon",onClick:r,title:"Toggle theme",children:n==="light"?i.jsx(Ay,{className:"h-4 w-4"}):i.jsx($y,{className:"h-4 w-4"})}),i.jsxs(ym,{children:[i.jsx(xm,{asChild:!0,children:i.jsxs(ve,{variant:"ghost",size:"icon",className:"relative",children:[i.jsx(vE,{className:"h-4 w-4"}),i.jsx("span",{className:"absolute top-1 right-1 h-2 w-2 bg-red-500 rounded-full"})]})}),i.jsxs(wd,{align:"end",className:"w-80",children:[i.jsx(Sd,{children:"Notifications"}),i.jsx(Vs,{}),i.jsx(Xn,{children:i.jsxs("div",{className:"flex flex-col space-y-1",children:[i.jsx("p",{className:"text-sm font-medium",children:"High error rate detected"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Error rate exceeded 5% in the last 5 minutes"})]})}),i.jsx(Xn,{children:i.jsxs("div",{className:"flex flex-col space-y-1",children:[i.jsx("p",{className:"text-sm font-medium",children:"Slow query warning"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"3 queries took longer than 1000ms"})]})}),i.jsx(Vs,{}),i.jsx(Xn,{className:"text-center",children:"View all notifications"})]})]}),i.jsxs(ym,{children:[i.jsx(xm,{asChild:!0,children:i.jsx(ve,{variant:"ghost",size:"icon",className:"relative",children:i.jsx(Zy,{className:"h-8 w-8",children:i.jsx(Jy,{children:"AD"})})})}),i.jsxs(wd,{align:"end",children:[i.jsx(Sd,{children:"My Account"}),i.jsx(Vs,{}),i.jsxs(Xn,{children:[i.jsx(TE,{className:"mr-2 h-4 w-4"}),"Profile"]}),i.jsxs(Xn,{children:[i.jsx(Fy,{className:"mr-2 h-4 w-4"}),"Settings"]}),i.jsxs(Xn,{children:[i.jsx(jE,{className:"mr-2 h-4 w-4"}),"Help & Support"]}),i.jsx(Vs,{}),i.jsxs(Xn,{children:[i.jsx(EE,{className:"mr-2 h-4 w-4"}),"Log out"]})]})]})]})]})}),i.jsx("main",{className:"flex-1 overflow-auto bg-muted/10",children:i.jsx("div",{className:"p-6",children:i.jsx(qb,{})})})]})]})}const ne=f.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:U("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));ne.displayName="Card";const re=f.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:U("flex flex-col space-y-1.5 p-6",e),...t}));re.displayName="CardHeader";const oe=f.forwardRef(({className:e,...t},n)=>i.jsx("h3",{ref:n,className:U("text-2xl font-semibold leading-none tracking-tight",e),...t}));oe.displayName="CardTitle";const _e=f.forwardRef(({className:e,...t},n)=>i.jsx("p",{ref:n,className:U("text-sm text-muted-foreground",e),...t}));_e.displayName="CardDescription";const se=f.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:U("p-6 pt-0",e),...t}));se.displayName="CardContent";const c_=f.forwardRef(({className:e,...t},n)=>i.jsx("div",{ref:n,className:U("flex items-center p-6 pt-0",e),...t}));c_.displayName="CardFooter";var oh="Progress",sh=100,[u_]=Lt(oh),[d_,f_]=u_(oh),zw=f.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:s=h_,...a}=e;(o||o===0)&&!wm(o)&&console.error(p_(`${o}`,"Progress"));const l=wm(o)?o:sh;r!==null&&!Sm(r,l)&&console.error(m_(`${r}`,"Progress"));const c=Sm(r,l)?r:null,u=yl(c)?s(c,l):void 0;return i.jsx(d_,{scope:n,value:c,max:l,children:i.jsx(B.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":yl(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":Bw(c,l),"data-value":c??void 0,"data-max":l,...a,ref:t})})});zw.displayName=oh;var Ww="ProgressIndicator",Uw=f.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=f_(Ww,n);return i.jsx(B.div,{"data-state":Bw(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});Uw.displayName=Ww;function h_(e,t){return`${Math.round(e/t*100)}%`}function Bw(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function yl(e){return typeof e=="number"}function wm(e){return yl(e)&&!isNaN(e)&&e>0}function Sm(e,t){return yl(e)&&!isNaN(e)&&e<=t&&e>=0}function p_(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${sh}\`.`}function m_(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
260
|
-
- a positive number
|
|
261
|
-
- less than the value passed to \`max\` (or ${sh} if no \`max\` prop is set)
|
|
262
|
-
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
263
|
-
|
|
264
|
-
Defaulting to \`null\`.`}var Hw=zw,v_=Uw;const Ei=f.forwardRef(({className:e,value:t,...n},r)=>i.jsx(Hw,{ref:r,className:U("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:i.jsx(v_,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Ei.displayName=Hw.displayName;function Cd(e,[t,n]){return Math.min(n,Math.max(t,e))}function Vw(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Qw=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),g_="VisuallyHidden",y_=f.forwardRef((e,t)=>i.jsx(B.span,{...e,ref:t,style:{...Qw,...e.style}}));y_.displayName=g_;var x_=[" ","Enter","ArrowUp","ArrowDown"],w_=[" ","Enter"],lo="Select",[sc,ic,S_]=zf(lo),[Ss]=Lt(lo,[S_,Xl]),ac=Xl(),[C_,Tr]=Ss(lo),[j_,b_]=Ss(lo),qw=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:l,onValueChange:c,dir:u,name:d,autoComplete:h,disabled:p,required:w,form:m}=e,y=ac(t),[S,g]=f.useState(null),[v,x]=f.useState(null),[C,j]=f.useState(!1),E=Wi(u),[N,R]=io({prop:r,defaultProp:o??!1,onChange:s,caller:lo}),[T,P]=io({prop:a,defaultProp:l,onChange:c,caller:lo}),O=f.useRef(null),D=S?m||!!S.closest("form"):!0,[V,Q]=f.useState(new Set),ae=Array.from(V).map(z=>z.props.value).join(";");return i.jsx(Nx,{...y,children:i.jsxs(C_,{required:w,scope:t,trigger:S,onTriggerChange:g,valueNode:v,onValueNodeChange:x,valueNodeHasChildren:C,onValueNodeHasChildrenChange:j,contentId:vn(),value:T,onValueChange:P,open:N,onOpenChange:R,dir:E,triggerPointerDownPosRef:O,disabled:p,children:[i.jsx(sc.Provider,{scope:t,children:i.jsx(j_,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(z=>{Q(G=>new Set(G).add(z))},[]),onNativeOptionRemove:f.useCallback(z=>{Q(G=>{const k=new Set(G);return k.delete(z),k})},[]),children:n})}),D?i.jsxs(g0,{"aria-hidden":!0,required:w,tabIndex:-1,name:d,autoComplete:h,value:T,onChange:z=>P(z.target.value),disabled:p,form:m,children:[T===void 0?i.jsx("option",{value:""}):null,Array.from(V)]},ae):null]})})};qw.displayName=lo;var Kw="SelectTrigger",Gw=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=ac(n),a=Tr(Kw,n),l=a.disabled||r,c=J(t,a.onTriggerChange),u=ic(n),d=f.useRef("touch"),[h,p,w]=x0(y=>{const S=u().filter(x=>!x.disabled),g=S.find(x=>x.value===a.value),v=w0(S,y,g);v!==void 0&&a.onValueChange(v.value)}),m=y=>{l||(a.onOpenChange(!0),w()),y&&(a.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return i.jsx(Ex,{asChild:!0,...s,children:i.jsx(B.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":y0(a.value)?"":void 0,...o,ref:c,onClick:L(o.onClick,y=>{y.currentTarget.focus(),d.current!=="mouse"&&m(y)}),onPointerDown:L(o.onPointerDown,y=>{d.current=y.pointerType;const S=y.target;S.hasPointerCapture(y.pointerId)&&S.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(m(y),y.preventDefault())}),onKeyDown:L(o.onKeyDown,y=>{const S=h.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&p(y.key),!(S&&y.key===" ")&&x_.includes(y.key)&&(m(),y.preventDefault())})})})});Gw.displayName=Kw;var Yw="SelectValue",Xw=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...l}=e,c=Tr(Yw,n),{onValueNodeHasChildrenChange:u}=c,d=s!==void 0,h=J(t,c.onValueNodeChange);return Ie(()=>{u(d)},[u,d]),i.jsx(B.span,{...l,ref:h,style:{pointerEvents:"none"},children:y0(c.value)?i.jsx(i.Fragment,{children:a}):s})});Xw.displayName=Yw;var N_="SelectIcon",Zw=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.jsx(B.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Zw.displayName=N_;var E_="SelectPortal",Jw=e=>i.jsx(Zl,{asChild:!0,...e});Jw.displayName=E_;var co="SelectContent",e0=f.forwardRef((e,t)=>{const n=Tr(co,e.__scopeSelect),[r,o]=f.useState();if(Ie(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?hs.createPortal(i.jsx(t0,{scope:e.__scopeSelect,children:i.jsx(sc.Slot,{scope:e.__scopeSelect,children:i.jsx("div",{children:e.children})})}),s):null}return i.jsx(n0,{...e,ref:t})});e0.displayName=co;var zt=10,[t0,Mr]=Ss(co),R_="SelectContentImpl",P_=oo("SelectContent.RemoveScroll"),n0=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:p,collisionPadding:w,sticky:m,hideWhenDetached:y,avoidCollisions:S,...g}=e,v=Tr(co,n),[x,C]=f.useState(null),[j,E]=f.useState(null),N=J(t,$=>C($)),[R,T]=f.useState(null),[P,O]=f.useState(null),D=ic(n),[V,Q]=f.useState(!1),ae=f.useRef(!1);f.useEffect(()=>{if(x)return Yf(x)},[x]),Wf();const z=f.useCallback($=>{const[he,...ge]=D().map(me=>me.ref.current),[ue]=ge.slice(-1),pe=document.activeElement;for(const me of $)if(me===pe||(me==null||me.scrollIntoView({block:"nearest"}),me===he&&j&&(j.scrollTop=0),me===ue&&j&&(j.scrollTop=j.scrollHeight),me==null||me.focus(),document.activeElement!==pe))return},[D,j]),G=f.useCallback(()=>z([R,x]),[z,R,x]);f.useEffect(()=>{V&&G()},[V,G]);const{onOpenChange:k,triggerPointerDownPosRef:_}=v;f.useEffect(()=>{if(x){let $={x:0,y:0};const he=ue=>{var pe,me;$={x:Math.abs(Math.round(ue.pageX)-(((pe=_.current)==null?void 0:pe.x)??0)),y:Math.abs(Math.round(ue.pageY)-(((me=_.current)==null?void 0:me.y)??0))}},ge=ue=>{$.x<=10&&$.y<=10?ue.preventDefault():x.contains(ue.target)||k(!1),document.removeEventListener("pointermove",he),_.current=null};return _.current!==null&&(document.addEventListener("pointermove",he),document.addEventListener("pointerup",ge,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",he),document.removeEventListener("pointerup",ge,{capture:!0})}}},[x,k,_]),f.useEffect(()=>{const $=()=>k(!1);return window.addEventListener("blur",$),window.addEventListener("resize",$),()=>{window.removeEventListener("blur",$),window.removeEventListener("resize",$)}},[k]);const[I,W]=x0($=>{const he=D().filter(pe=>!pe.disabled),ge=he.find(pe=>pe.ref.current===document.activeElement),ue=w0(he,$,ge);ue&&setTimeout(()=>ue.ref.current.focus())}),te=f.useCallback(($,he,ge)=>{const ue=!ae.current&&!ge;(v.value!==void 0&&v.value===he||ue)&&(T($),ue&&(ae.current=!0))},[v.value]),lt=f.useCallback(()=>x==null?void 0:x.focus(),[x]),Oe=f.useCallback(($,he,ge)=>{const ue=!ae.current&&!ge;(v.value!==void 0&&v.value===he||ue)&&O($)},[v.value]),vt=r==="popper"?jd:r0,Te=vt===jd?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:h,collisionBoundary:p,collisionPadding:w,sticky:m,hideWhenDetached:y,avoidCollisions:S}:{};return i.jsx(t0,{scope:n,content:x,viewport:j,onViewportChange:E,itemRefCallback:te,selectedItem:R,onItemLeave:lt,itemTextRefCallback:Oe,focusSelectedItem:G,selectedItemText:P,position:r,isPositioned:V,searchRef:I,children:i.jsx(tc,{as:P_,allowPinchZoom:!0,children:i.jsx(Ql,{asChild:!0,trapped:v.open,onMountAutoFocus:$=>{$.preventDefault()},onUnmountAutoFocus:L(o,$=>{var he;(he=v.trigger)==null||he.focus({preventScroll:!0}),$.preventDefault()}),children:i.jsx(Vl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:$=>$.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:i.jsx(vt,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:$=>$.preventDefault(),...g,...Te,onPlaced:()=>Q(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:L(g.onKeyDown,$=>{const he=$.ctrlKey||$.altKey||$.metaKey;if($.key==="Tab"&&$.preventDefault(),!he&&$.key.length===1&&W($.key),["ArrowUp","ArrowDown","Home","End"].includes($.key)){let ue=D().filter(pe=>!pe.disabled).map(pe=>pe.ref.current);if(["ArrowUp","End"].includes($.key)&&(ue=ue.slice().reverse()),["ArrowUp","ArrowDown"].includes($.key)){const pe=$.target,me=ue.indexOf(pe);ue=ue.slice(me+1)}setTimeout(()=>z(ue)),$.preventDefault()}})})})})})})});n0.displayName=R_;var k_="SelectItemAlignedPosition",r0=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Tr(co,n),a=Mr(co,n),[l,c]=f.useState(null),[u,d]=f.useState(null),h=J(t,N=>d(N)),p=ic(n),w=f.useRef(!1),m=f.useRef(!0),{viewport:y,selectedItem:S,selectedItemText:g,focusSelectedItem:v}=a,x=f.useCallback(()=>{if(s.trigger&&s.valueNode&&l&&u&&y&&S&&g){const N=s.trigger.getBoundingClientRect(),R=u.getBoundingClientRect(),T=s.valueNode.getBoundingClientRect(),P=g.getBoundingClientRect();if(s.dir!=="rtl"){const pe=P.left-R.left,me=T.left-pe,gt=N.left-me,nn=N.width+gt,js=Math.max(nn,R.width),bs=window.innerWidth-zt,Ns=Cd(me,[zt,Math.max(zt,bs-js)]);l.style.minWidth=nn+"px",l.style.left=Ns+"px"}else{const pe=R.right-P.right,me=window.innerWidth-T.right-pe,gt=window.innerWidth-N.right-me,nn=N.width+gt,js=Math.max(nn,R.width),bs=window.innerWidth-zt,Ns=Cd(me,[zt,Math.max(zt,bs-js)]);l.style.minWidth=nn+"px",l.style.right=Ns+"px"}const O=p(),D=window.innerHeight-zt*2,V=y.scrollHeight,Q=window.getComputedStyle(u),ae=parseInt(Q.borderTopWidth,10),z=parseInt(Q.paddingTop,10),G=parseInt(Q.borderBottomWidth,10),k=parseInt(Q.paddingBottom,10),_=ae+z+V+k+G,I=Math.min(S.offsetHeight*5,_),W=window.getComputedStyle(y),te=parseInt(W.paddingTop,10),lt=parseInt(W.paddingBottom,10),Oe=N.top+N.height/2-zt,vt=D-Oe,Te=S.offsetHeight/2,$=S.offsetTop+Te,he=ae+z+$,ge=_-he;if(he<=Oe){const pe=O.length>0&&S===O[O.length-1].ref.current;l.style.bottom="0px";const me=u.clientHeight-y.offsetTop-y.offsetHeight,gt=Math.max(vt,Te+(pe?lt:0)+me+G),nn=he+gt;l.style.height=nn+"px"}else{const pe=O.length>0&&S===O[0].ref.current;l.style.top="0px";const gt=Math.max(Oe,ae+y.offsetTop+(pe?te:0)+Te)+ge;l.style.height=gt+"px",y.scrollTop=he-Oe+y.offsetTop}l.style.margin=`${zt}px 0`,l.style.minHeight=I+"px",l.style.maxHeight=D+"px",r==null||r(),requestAnimationFrame(()=>w.current=!0)}},[p,s.trigger,s.valueNode,l,u,y,S,g,s.dir,r]);Ie(()=>x(),[x]);const[C,j]=f.useState();Ie(()=>{u&&j(window.getComputedStyle(u).zIndex)},[u]);const E=f.useCallback(N=>{N&&m.current===!0&&(x(),v==null||v(),m.current=!1)},[x,v]);return i.jsx(T_,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:w,onScrollButtonChange:E,children:i.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:i.jsx(B.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});r0.displayName=k_;var __="SelectPopperPosition",jd=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=zt,...s}=e,a=ac(n);return i.jsx(Rx,{...a,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});jd.displayName=__;var[T_,ih]=Ss(co,{}),bd="SelectViewport",o0=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Mr(bd,n),a=ih(bd,n),l=J(t,s.onViewportChange),c=f.useRef(0);return i.jsxs(i.Fragment,{children:[i.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),i.jsx(sc.Slot,{scope:n,children:i.jsx(B.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:L(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:p}=a;if(p!=null&&p.current&&h){const w=Math.abs(c.current-d.scrollTop);if(w>0){const m=window.innerHeight-zt*2,y=parseFloat(h.style.minHeight),S=parseFloat(h.style.height),g=Math.max(y,S);if(g<m){const v=g+w,x=Math.min(m,v),C=v-x;h.style.height=x+"px",h.style.bottom==="0px"&&(d.scrollTop=C>0?C:0,h.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});o0.displayName=bd;var s0="SelectGroup",[M_,O_]=Ss(s0),D_=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=vn();return i.jsx(M_,{scope:n,id:o,children:i.jsx(B.div,{role:"group","aria-labelledby":o,...r,ref:t})})});D_.displayName=s0;var i0="SelectLabel",a0=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=O_(i0,n);return i.jsx(B.div,{id:o.id,...r,ref:t})});a0.displayName=i0;var xl="SelectItem",[I_,l0]=Ss(xl),c0=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,l=Tr(xl,n),c=Mr(xl,n),u=l.value===r,[d,h]=f.useState(s??""),[p,w]=f.useState(!1),m=J(t,v=>{var x;return(x=c.itemRefCallback)==null?void 0:x.call(c,v,r,o)}),y=vn(),S=f.useRef("touch"),g=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.jsx(I_,{scope:n,value:r,disabled:o,textId:y,isSelected:u,onItemTextChange:f.useCallback(v=>{h(x=>x||((v==null?void 0:v.textContent)??"").trim())},[]),children:i.jsx(sc.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:i.jsx(B.div,{role:"option","aria-labelledby":y,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:m,onFocus:L(a.onFocus,()=>w(!0)),onBlur:L(a.onBlur,()=>w(!1)),onClick:L(a.onClick,()=>{S.current!=="mouse"&&g()}),onPointerUp:L(a.onPointerUp,()=>{S.current==="mouse"&&g()}),onPointerDown:L(a.onPointerDown,v=>{S.current=v.pointerType}),onPointerMove:L(a.onPointerMove,v=>{var x;S.current=v.pointerType,o?(x=c.onItemLeave)==null||x.call(c):S.current==="mouse"&&v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:L(a.onPointerLeave,v=>{var x;v.currentTarget===document.activeElement&&((x=c.onItemLeave)==null||x.call(c))}),onKeyDown:L(a.onKeyDown,v=>{var C;((C=c.searchRef)==null?void 0:C.current)!==""&&v.key===" "||(w_.includes(v.key)&&g(),v.key===" "&&v.preventDefault())})})})})});c0.displayName=xl;var Qs="SelectItemText",u0=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Tr(Qs,n),l=Mr(Qs,n),c=l0(Qs,n),u=b_(Qs,n),[d,h]=f.useState(null),p=J(t,g=>h(g),c.onItemTextChange,g=>{var v;return(v=l.itemTextRefCallback)==null?void 0:v.call(l,g,c.value,c.disabled)}),w=d==null?void 0:d.textContent,m=f.useMemo(()=>i.jsx("option",{value:c.value,disabled:c.disabled,children:w},c.value),[c.disabled,c.value,w]),{onNativeOptionAdd:y,onNativeOptionRemove:S}=u;return Ie(()=>(y(m),()=>S(m)),[y,S,m]),i.jsxs(i.Fragment,{children:[i.jsx(B.span,{id:c.textId,...s,ref:p}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?hs.createPortal(s.children,a.valueNode):null]})});u0.displayName=Qs;var d0="SelectItemIndicator",f0=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l0(d0,n).isSelected?i.jsx(B.span,{"aria-hidden":!0,...r,ref:t}):null});f0.displayName=d0;var Nd="SelectScrollUpButton",h0=f.forwardRef((e,t)=>{const n=Mr(Nd,e.__scopeSelect),r=ih(Nd,e.__scopeSelect),[o,s]=f.useState(!1),a=J(t,r.onScrollButtonChange);return Ie(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollTop>0;s(u)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.jsx(m0,{...e,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});h0.displayName=Nd;var Ed="SelectScrollDownButton",p0=f.forwardRef((e,t)=>{const n=Mr(Ed,e.__scopeSelect),r=ih(Ed,e.__scopeSelect),[o,s]=f.useState(!1),a=J(t,r.onScrollButtonChange);return Ie(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;s(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.jsx(m0,{...e,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});p0.displayName=Ed;var m0=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Mr("SelectScrollButton",n),a=f.useRef(null),l=ic(n),c=f.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return f.useEffect(()=>()=>c(),[c]),Ie(()=>{var d;const u=l().find(h=>h.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),i.jsx(B.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:L(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:L(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:L(o.onPointerLeave,()=>{c()})})}),A_="SelectSeparator",v0=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.jsx(B.div,{"aria-hidden":!0,...r,ref:t})});v0.displayName=A_;var Rd="SelectArrow",L_=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ac(n),s=Tr(Rd,n),a=Mr(Rd,n);return s.open&&a.position==="popper"?i.jsx(Px,{...o,...r,ref:t}):null});L_.displayName=Rd;var F_="SelectBubbleInput",g0=f.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=f.useRef(null),s=J(r,o),a=Vw(t);return f.useEffect(()=>{const l=o.current;if(!l)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==t&&d){const h=new Event("change",{bubbles:!0});d.call(l,t),l.dispatchEvent(h)}},[a,t]),i.jsx(B.select,{...n,style:{...Qw,...n.style},ref:s,defaultValue:t})});g0.displayName=F_;function y0(e){return e===""||e===void 0}function x0(e){const t=Ue(e),n=f.useRef(""),r=f.useRef(0),o=f.useCallback(a=>{const l=n.current+a;t(l),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(l)},[t]),s=f.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function w0(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=$_(e,Math.max(s,0));o.length===1&&(a=a.filter(u=>u!==n));const c=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function $_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var z_=qw,S0=Gw,W_=Xw,U_=Zw,B_=Jw,C0=e0,H_=o0,j0=a0,b0=c0,V_=u0,Q_=f0,N0=h0,E0=p0,R0=v0;const Mn=z_,On=W_,fn=f.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(S0,{ref:r,className:U("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,i.jsx(U_,{asChild:!0,children:i.jsx(Fw,{className:"h-4 w-4 opacity-50"})})]}));fn.displayName=S0.displayName;const P0=f.forwardRef(({className:e,...t},n)=>i.jsx(N0,{ref:n,className:U("flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(Jk,{className:"h-4 w-4"})}));P0.displayName=N0.displayName;const k0=f.forwardRef(({className:e,...t},n)=>i.jsx(E0,{ref:n,className:U("flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(Fw,{className:"h-4 w-4"})}));k0.displayName=E0.displayName;const hn=f.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>i.jsx(B_,{children:i.jsxs(C0,{ref:o,className:U("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[i.jsx(P0,{}),i.jsx(H_,{className:U("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),i.jsx(k0,{})]})}));hn.displayName=C0.displayName;const q_=f.forwardRef(({className:e,...t},n)=>i.jsx(j0,{ref:n,className:U("px-2 py-1.5 text-sm font-semibold",e),...t}));q_.displayName=j0.displayName;const K=f.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(b0,{ref:r,className:U("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[i.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(Q_,{children:i.jsx(Lw,{className:"h-4 w-4"})})}),i.jsx(V_,{children:t})]}));K.displayName=b0.displayName;const K_=f.forwardRef(({className:e,...t},n)=>i.jsx(R0,{ref:n,className:U("-mx-1 my-1 h-px bg-muted",e),...t}));K_.displayName=R0.displayName;const _0=6048e5,G_=864e5,Cm=Symbol.for("constructDateFrom");function Rr(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Cm in e?e[Cm](t):e instanceof Date?new e.constructor(t):new Date(t)}function en(e,t){return Rr(t||e,e)}let Y_={};function lc(){return Y_}function Ri(e,t){var l,c,u,d;const n=lc(),r=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,o=en(e,t==null?void 0:t.in),s=o.getDay(),a=(s<r?7:0)+s-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function wl(e,t){return Ri(e,{...t,weekStartsOn:1})}function T0(e,t){const n=en(e,t==null?void 0:t.in),r=n.getFullYear(),o=Rr(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=wl(o),a=Rr(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const l=wl(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function jm(e){const t=en(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function X_(e,...t){const n=Rr.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function bm(e,t){const n=en(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Z_(e,t,n){const[r,o]=X_(n==null?void 0:n.in,e,t),s=bm(r),a=bm(o),l=+s-jm(s),c=+a-jm(a);return Math.round((l-c)/G_)}function J_(e,t){const n=T0(e,t),r=Rr(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),wl(r)}function eT(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function tT(e){return!(!eT(e)&&typeof e!="number"||isNaN(+en(e)))}function nT(e,t){const n=en(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const rT={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},oT=(e,t,n)=>{let r;const o=rT[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function nu(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const sT={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},iT={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},aT={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},lT={date:nu({formats:sT,defaultWidth:"full"}),time:nu({formats:iT,defaultWidth:"full"}),dateTime:nu({formats:aT,defaultWidth:"full"})},cT={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},uT=(e,t,n,r)=>cT[e];function Ls(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):a;o=e.formattingValues[l]||e.formattingValues[a]}else{const a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[a]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const dT={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},fT={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},hT={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},pT={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},mT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},vT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},gT=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},yT={ordinalNumber:gT,era:Ls({values:dT,defaultWidth:"wide"}),quarter:Ls({values:fT,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ls({values:hT,defaultWidth:"wide"}),day:Ls({values:pT,defaultWidth:"wide"}),dayPeriod:Ls({values:mT,defaultWidth:"wide",formattingValues:vT,defaultFormattingWidth:"wide"})};function Fs(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const a=s[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?wT(l,h=>h.test(a)):xT(l,h=>h.test(a));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(a.length);return{value:u,rest:d}}}function xT(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function wT(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function ST(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const l=t.slice(o.length);return{value:a,rest:l}}}const CT=/^(\d+)(th|st|nd|rd)?/i,jT=/\d+/i,bT={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},NT={any:[/^b/i,/^(a|c)/i]},ET={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},RT={any:[/1/i,/2/i,/3/i,/4/i]},PT={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},kT={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},_T={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},TT={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},MT={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},OT={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},DT={ordinalNumber:ST({matchPattern:CT,parsePattern:jT,valueCallback:e=>parseInt(e,10)}),era:Fs({matchPatterns:bT,defaultMatchWidth:"wide",parsePatterns:NT,defaultParseWidth:"any"}),quarter:Fs({matchPatterns:ET,defaultMatchWidth:"wide",parsePatterns:RT,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Fs({matchPatterns:PT,defaultMatchWidth:"wide",parsePatterns:kT,defaultParseWidth:"any"}),day:Fs({matchPatterns:_T,defaultMatchWidth:"wide",parsePatterns:TT,defaultParseWidth:"any"}),dayPeriod:Fs({matchPatterns:MT,defaultMatchWidth:"any",parsePatterns:OT,defaultParseWidth:"any"})},IT={code:"en-US",formatDistance:oT,formatLong:lT,formatRelative:uT,localize:yT,match:DT,options:{weekStartsOn:0,firstWeekContainsDate:1}};function AT(e,t){const n=en(e,t==null?void 0:t.in);return Z_(n,nT(n))+1}function LT(e,t){const n=en(e,t==null?void 0:t.in),r=+wl(n)-+J_(n);return Math.round(r/_0)+1}function M0(e,t){var d,h,p,w;const n=en(e,t==null?void 0:t.in),r=n.getFullYear(),o=lc(),s=(t==null?void 0:t.firstWeekContainsDate)??((h=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??o.firstWeekContainsDate??((w=(p=o.locale)==null?void 0:p.options)==null?void 0:w.firstWeekContainsDate)??1,a=Rr((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const l=Ri(a,t),c=Rr((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,s),c.setHours(0,0,0,0);const u=Ri(c,t);return+n>=+l?r+1:+n>=+u?r:r-1}function FT(e,t){var l,c,u,d;const n=lc(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,o=M0(e,t),s=Rr((t==null?void 0:t.in)||e,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),Ri(s,t)}function $T(e,t){const n=en(e,t==null?void 0:t.in),r=+Ri(n,t)-+FT(n,t);return Math.round(r/_0)+1}function de(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Kn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return de(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):de(n+1,2)},d(e,t){return de(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return de(e.getHours()%12||12,t.length)},H(e,t){return de(e.getHours(),t.length)},m(e,t){return de(e.getMinutes(),t.length)},s(e,t){return de(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return de(o,t.length)}},wo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Nm={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Kn.y(e,t)},Y:function(e,t,n,r){const o=M0(e,r),s=o>0?o:1-o;if(t==="YY"){const a=s%100;return de(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):de(s,t.length)},R:function(e,t){const n=T0(e);return de(n,t.length)},u:function(e,t){const n=e.getFullYear();return de(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return de(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return de(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Kn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return de(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=$T(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):de(o,t.length)},I:function(e,t,n){const r=LT(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):de(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Kn.d(e,t)},D:function(e,t,n){const r=AT(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):de(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return de(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return de(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return de(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=wo.noon:r===0?o=wo.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=wo.evening:r>=12?o=wo.afternoon:r>=4?o=wo.morning:o=wo.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Kn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Kn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):de(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):de(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Kn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Kn.s(e,t)},S:function(e,t){return Kn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Rm(r);case"XXXX":case"XX":return Ir(r);case"XXXXX":case"XXX":default:return Ir(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Rm(r);case"xxxx":case"xx":return Ir(r);case"xxxxx":case"xxx":default:return Ir(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Em(r,":");case"OOOO":default:return"GMT"+Ir(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Em(r,":");case"zzzz":default:return"GMT"+Ir(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return de(r,t.length)},T:function(e,t,n){return de(+e,t.length)}};function Em(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+t+de(s,2)}function Rm(e,t){return e%60===0?(e>0?"-":"+")+de(Math.abs(e)/60,2):Ir(e,t)}function Ir(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=de(Math.trunc(r/60),2),s=de(r%60,2);return n+o+t+s}const Pm=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},O0=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},zT=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Pm(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",Pm(r,t)).replace("{{time}}",O0(o,t))},WT={p:O0,P:zT},UT=/^D+$/,BT=/^Y+$/,HT=["D","DD","YY","YYYY"];function VT(e){return UT.test(e)}function QT(e){return BT.test(e)}function qT(e,t,n){const r=KT(e,t,n);if(console.warn(r),HT.includes(e))throw new RangeError(r)}function KT(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const GT=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,YT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,XT=/^'([^]*?)'?$/,ZT=/''/g,JT=/[a-zA-Z]/;function $a(e,t,n){var d,h,p,w;const r=lc(),o=r.locale??IT,s=r.firstWeekContainsDate??((h=(d=r.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,a=r.weekStartsOn??((w=(p=r.locale)==null?void 0:p.options)==null?void 0:w.weekStartsOn)??0,l=en(e,n==null?void 0:n.in);if(!tT(l))throw new RangeError("Invalid time value");let c=t.match(YT).map(m=>{const y=m[0];if(y==="p"||y==="P"){const S=WT[y];return S(m,o.formatLong)}return m}).join("").match(GT).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const y=m[0];if(y==="'")return{isToken:!1,value:eM(m)};if(Nm[y])return{isToken:!0,value:m};if(y.match(JT))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:m}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const u={firstWeekContainsDate:s,weekStartsOn:a,locale:o};return c.map(m=>{if(!m.isToken)return m.value;const y=m.value;(QT(y)||VT(y))&&qT(y,t,String(e));const S=Nm[y[0]];return S(l,y,o.localize,u)}).join("")}function eM(e){const t=e.match(XT);return t?t[1].replace(ZT,"'"):e}const D0=f.createContext(void 0);function tM({children:e}){const[t,n]=f.useState(!1),[r,o]=f.useState(null),[s,a]=f.useState(null),l=(u,d)=>{o(u),a(d),n(!0)},c=()=>{n(!1),setTimeout(()=>{o(null),a(null)},300)};return i.jsx(D0.Provider,{value:{openDetail:l,closeDetail:c,isOpen:t,detailType:r,detailId:s},children:e})}function Cs(){const e=f.useContext(D0);if(!e)throw new Error("useDetailDrawer must be used within a DetailDrawerProvider");return e}function I0({requests:e,queries:t,exceptions:n,stats:r}){return f.useMemo(()=>{const o=(e==null?void 0:e.length)||0,s=(e==null?void 0:e.filter(j=>j.status_code&&j.status_code>=200&&j.status_code<300).length)||0,a=(e==null?void 0:e.filter(j=>j.status_code&&j.status_code>=400).length)||0,l=(e==null?void 0:e.filter(j=>j.duration_ms&&j.duration_ms>500).length)||0,c=o>0?a/o*100:0,u=100-c,d=(e==null?void 0:e.map(j=>j.duration_ms||0).filter(j=>j>0))||[],h=nM(d),p=d.length>0?d.reduce((j,E)=>j+E,0)/d.length:0,w=(t==null?void 0:t.length)||0,m=(t==null?void 0:t.filter(j=>j.duration_ms&&j.duration_ms>100).length)||0,y=(t==null?void 0:t.map(j=>j.duration_ms||0).filter(j=>j>0))||[],S=y.length>0?y.reduce((j,E)=>j+E,0)/y.length:0,g=(n==null?void 0:n.length)||0,v=e?rM(e):[],x=(r==null?void 0:r.requests_per_minute)||0,C=x/60;return{totalRequests:o,successfulRequests:s,failedRequests:a,slowRequests:l,errorRate:c,successRate:u,avgResponseTime:p,responseTimePercentiles:h,totalQueries:w,slowQueries:m,avgQueryTime:S,totalExceptions:g,endpointMetrics:v,requestsPerMinute:x,requestsPerSecond:C,responseTimes:d,queryTimes:y}},[e,t,n,r])}function nM(e){if(!e||e.length===0)return{p50:0,p95:0,p99:0};const t=[...e].sort((s,a)=>s-a),n=Math.floor(t.length*.5),r=Math.floor(t.length*.95),o=Math.floor(t.length*.99);return{p50:t[n]||0,p95:t[r]||0,p99:t[o]||0}}function rM(e){const t=e.reduce((n,r)=>{const o=r.path;return n[o]||(n[o]={count:0,totalTime:0,errors:0,successCount:0,methods:new Set}),n[o].count++,n[o].totalTime+=r.duration_ms||0,n[o].methods.add(r.method),r.status_code&&r.status_code>=400?n[o].errors++:r.status_code&&r.status_code>=200&&r.status_code<300&&n[o].successCount++,n},{});return Object.entries(t).map(([n,r])=>({name:n,avgResponseTime:Math.round(r.totalTime/r.count),calls:r.count,errors:r.errors,successRate:r.count>0?(r.successCount/r.count*100).toFixed(1):"0.0",methods:Array.from(r.methods).join(", ")})).sort((n,r)=>r.calls-n.calls).slice(0,20)}function Rt(e){return e?e<1e3?`${e.toFixed(0)}ms`:`${(e/1e3).toFixed(2)}s`:"0ms"}function km(e){return e?e.toLocaleString():"0"}function oM(e){return e?e>=200&&e<300?"success":e>=300&&e<400?"secondary":e>=400&&e<500?"warning":e>=500?"destructive":"outline":"outline"}function sM(){const[e,t]=f.useState(1),[n]=f.useState(!0),{openDetail:r}=Cs(),{data:o,refetch:s}=rt({queryKey:["stats",e],queryFn:()=>Be.getStats(e),refetchInterval:n?5e3:!1}),{data:a,refetch:l}=rt({queryKey:["recent-requests"],queryFn:()=>Be.getRequests({limit:100}),refetchInterval:n?5e3:!1}),{data:c,refetch:u}=rt({queryKey:["slow-queries"],queryFn:()=>Be.getQueries({slow_only:!0,limit:10,slow_threshold:100}),refetchInterval:n?1e4:!1}),{data:d,refetch:h}=rt({queryKey:["recent-exceptions"],queryFn:()=>Be.getExceptions({limit:5}),refetchInterval:n?1e4:!1}),p=I0({requests:a,queries:null,exceptions:d,stats:o}),w=async()=>{await Promise.all([s(),l(),u(),h()])};return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:"Dashboard Overview"}),i.jsx("p",{className:"text-muted-foreground",children:"Real-time monitoring and performance metrics for your FastAPI application"})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs(Mn,{value:e.toString(),onValueChange:m=>t(parseInt(m)),children:[i.jsx(fn,{className:"w-32",children:i.jsx(On,{})}),i.jsxs(hn,{children:[i.jsx(K,{value:"1",children:"Last Hour"}),i.jsx(K,{value:"24",children:"Last 24 Hours"}),i.jsx(K,{value:"168",children:"Last 7 Days"})]})]}),i.jsx(ve,{variant:"outline",size:"icon",onClick:w,children:i.jsx(Lf,{className:"h-4 w-4"})})]})]}),i.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:[i.jsxs(ne,{children:[i.jsxs(re,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[i.jsx(oe,{className:"text-sm font-medium",children:"Total Requests"}),i.jsx(Dy,{className:"h-4 w-4 text-muted-foreground"})]}),i.jsxs(se,{children:[i.jsx("div",{className:"text-2xl font-bold",children:(o==null?void 0:o.total_requests)||0}),i.jsx("div",{className:"flex items-center text-xs text-muted-foreground",children:i.jsxs("span",{children:[p.requestsPerMinute.toFixed(1)||0," req/min"]})})]})]}),i.jsxs(ne,{children:[i.jsxs(re,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[i.jsx(oe,{className:"text-sm font-medium",children:"Avg Response Time"}),i.jsx(Af,{className:"h-4 w-4 text-muted-foreground"})]}),i.jsxs(se,{children:[i.jsx("div",{className:"text-2xl font-bold",children:Rt(p.avgResponseTime)}),i.jsx("div",{className:"flex items-center text-xs text-muted-foreground",children:p.avgResponseTime<100?i.jsxs(i.Fragment,{children:[i.jsx(_E,{className:"mr-1 h-3 w-3 text-green-500"}),i.jsx("span",{className:"text-green-500",children:"Fast"})]}):i.jsxs(i.Fragment,{children:[i.jsx(Ff,{className:"mr-1 h-3 w-3 text-yellow-500"}),i.jsx("span",{className:"text-yellow-500",children:"Could be faster"})]})})]})]}),i.jsxs(ne,{children:[i.jsxs(re,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[i.jsx(oe,{className:"text-sm font-medium",children:"Database Queries"}),i.jsx(Hl,{className:"h-4 w-4 text-muted-foreground"})]}),i.jsxs(se,{children:[i.jsx("div",{className:"text-2xl font-bold",children:(o==null?void 0:o.total_queries)||0}),i.jsx("div",{className:"flex items-center text-xs text-muted-foreground",children:o!=null&&o.slow_queries?i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"text-yellow-500",children:o.slow_queries}),i.jsx("span",{className:"ml-1",children:"slow queries detected"})]}):i.jsx("span",{className:"text-green-500",children:"All queries fast"})})]})]}),i.jsxs(ne,{children:[i.jsxs(re,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[i.jsx(oe,{className:"text-sm font-medium",children:"Exceptions"}),i.jsx(so,{className:"h-4 w-4 text-muted-foreground"})]}),i.jsxs(se,{children:[i.jsx("div",{className:"text-2xl font-bold",children:(o==null?void 0:o.total_exceptions)||0}),i.jsx("div",{className:"flex items-center text-xs text-muted-foreground",children:(o==null?void 0:o.total_exceptions)===0?i.jsx("span",{className:"text-green-500",children:"All systems operational"}):i.jsxs(i.Fragment,{children:[i.jsx(pa,{className:"mr-1 h-3 w-3 text-red-500"}),i.jsx("span",{className:"text-red-500",children:"Needs attention"})]})})]})]})]}),o&&i.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsx(oe,{children:"Success Rate"}),i.jsxs(_e,{children:["Based on last ",p.totalRequests," requests"]})]}),i.jsx(se,{children:i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("span",{className:"text-2xl font-bold",children:[p.successRate.toFixed(1),"%"]}),i.jsx(Ne,{variant:p.successRate>=95?"default":p.successRate>=90?"secondary":"destructive",children:p.successRate>=95?"Excellent":p.successRate>=90?"Good":"Poor"})]}),i.jsx(Ei,{value:p.successRate,className:"h-2"}),p.failedRequests>0&&i.jsxs("p",{className:"text-xs text-muted-foreground",children:[p.failedRequests," errors out of"," ",p.totalRequests," requests"]})]})})]}),i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsx(oe,{children:"Query Performance"}),i.jsx(_e,{children:"Average database query time"})]}),i.jsx(se,{children:i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-2xl font-bold",children:o.avg_query_time?`${o.avg_query_time.toFixed(0)}ms`:"0ms"}),i.jsx(Ne,{variant:!o.avg_query_time||o.avg_query_time<50?"default":o.avg_query_time<100?"secondary":"destructive",children:!o.avg_query_time||o.avg_query_time<50?"Fast":o.avg_query_time<100?"Normal":"Slow"})]}),i.jsx(Ei,{value:o.avg_query_time?Math.min(o.avg_query_time/200*100,100):0,className:"h-2"})]})})]})]}),i.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx(oe,{children:"Recent Requests"}),i.jsx(ve,{variant:"ghost",size:"sm",asChild:!0,children:i.jsxs(Xr,{to:"/requests",children:["View all",i.jsx(pa,{className:"ml-1 h-3 w-3"})]})})]}),i.jsx(_e,{children:"Latest HTTP requests to your API"})]}),i.jsx(se,{children:i.jsxs("div",{className:"space-y-4",children:[a==null?void 0:a.slice(0,5).map(m=>i.jsxs("div",{className:"flex items-center justify-between cursor-pointer hover:bg-muted/50 p-2 rounded-md transition-colors",onClick:()=>r("request",m.request_id),children:[i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsx(Ne,{variant:oM(m.status_code),children:m.status_code||"pending"}),i.jsxs("div",{children:[i.jsxs("p",{className:"text-sm font-medium",children:[m.method," ",m.path]}),i.jsx("p",{className:"text-xs text-muted-foreground",children:$a(new Date(m.created_at),"HH:mm:ss")})]})]}),i.jsxs("div",{className:"text-right",children:[i.jsx("p",{className:"text-sm font-medium",children:Rt(m.duration_ms)}),m.query_count>0&&i.jsxs("p",{className:"text-xs text-muted-foreground",children:[m.query_count," queries"]})]})]},m.id)),(!a||a.length===0)&&i.jsx("p",{className:"text-center text-muted-foreground py-4",children:"No requests yet"})]})})]}),i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx(oe,{children:"Slow Queries"}),i.jsx(ve,{variant:"ghost",size:"sm",asChild:!0,children:i.jsxs(Xr,{to:"/database",children:["View all",i.jsx(pa,{className:"ml-1 h-3 w-3"})]})})]}),i.jsx(_e,{children:"Database queries taking longer than expected"})]}),i.jsx(se,{children:i.jsxs("div",{className:"space-y-4",children:[c==null?void 0:c.slice(0,5).map(m=>i.jsxs("div",{className:"space-y-2 cursor-pointer hover:bg-muted/50 p-2 rounded-md transition-colors",onClick:()=>r("request",m.request_id),children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("code",{className:"text-xs bg-muted px-2 py-1 rounded truncate max-w-[300px]",children:[m.sql.substring(0,50),"..."]}),i.jsx(Ne,{variant:"destructive",children:Rt(m.duration_ms)})]}),i.jsx("p",{className:"text-xs text-muted-foreground",children:$a(new Date(m.created_at),"HH:mm:ss")})]},m.id)),(!c||c.length===0)&&i.jsx("p",{className:"text-center text-muted-foreground py-4",children:"No slow queries detected"})]})})]})]}),d&&d.length>0&&i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx(oe,{children:"Recent Exceptions"}),i.jsx(ve,{variant:"ghost",size:"sm",asChild:!0,children:i.jsxs(Xr,{to:"/exceptions",children:["View all",i.jsx(pa,{className:"ml-1 h-3 w-3"})]})})]}),i.jsx(_e,{children:"Errors and exceptions caught in your application"})]}),i.jsx(se,{children:i.jsx("div",{className:"space-y-4",children:d.slice(0,3).map(m=>i.jsxs("div",{className:"space-y-2 p-4 border rounded-lg cursor-pointer hover:bg-muted/50 transition-colors",onClick:()=>r("request",m.request_id),children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx(Ne,{variant:"destructive",children:m.exception_type}),i.jsx("span",{className:"text-xs text-muted-foreground",children:$a(new Date(m.created_at),"HH:mm:ss")})]}),m.exception_value&&i.jsx("p",{className:"text-sm",children:m.exception_value}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Click to view full traceback and request details"})]},m.id))})})]})]})}var iM="Label",A0=f.forwardRef((e,t)=>i.jsx(B.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));A0.displayName=iM;var L0=A0;const aM=Bl("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ee=f.forwardRef(({className:e,...t},n)=>i.jsx(L0,{ref:n,className:U(aM(),e),...t}));ee.displayName=L0.displayName;var cc="Tabs",[lM]=Lt(cc,[Jl]),F0=Jl(),[cM,ah]=lM(cc),$0=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:a="horizontal",dir:l,activationMode:c="automatic",...u}=e,d=Wi(l),[h,p]=io({prop:r,onChange:o,defaultProp:s??"",caller:cc});return i.jsx(cM,{scope:n,baseId:vn(),value:h,onValueChange:p,orientation:a,dir:d,activationMode:c,children:i.jsx(B.div,{dir:d,"data-orientation":a,...u,ref:t})})});$0.displayName=cc;var z0="TabsList",W0=f.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=ah(z0,n),a=F0(n);return i.jsx(Dx,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:r,children:i.jsx(B.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});W0.displayName=z0;var U0="TabsTrigger",B0=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,a=ah(U0,n),l=F0(n),c=Q0(a.baseId,r),u=q0(a.baseId,r),d=r===a.value;return i.jsx(Ix,{asChild:!0,...l,focusable:!o,active:d,children:i.jsx(B.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...s,ref:t,onMouseDown:L(e.onMouseDown,h=>{!o&&h.button===0&&h.ctrlKey===!1?a.onValueChange(r):h.preventDefault()}),onKeyDown:L(e.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&a.onValueChange(r)}),onFocus:L(e.onFocus,()=>{const h=a.activationMode!=="manual";!d&&!o&&h&&a.onValueChange(r)})})})});B0.displayName=U0;var H0="TabsContent",V0=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...a}=e,l=ah(H0,n),c=Q0(l.baseId,r),u=q0(l.baseId,r),d=r===l.value,h=f.useRef(d);return f.useEffect(()=>{const p=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(p)},[]),i.jsx(Et,{present:o||d,children:({present:p})=>i.jsx(B.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!p,id:u,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:p&&s})})});V0.displayName=H0;function Q0(e,t){return`${e}-trigger-${t}`}function q0(e,t){return`${e}-content-${t}`}var uM=$0,K0=W0,G0=B0,Y0=V0;const uc=uM,Qi=f.forwardRef(({className:e,...t},n)=>i.jsx(K0,{ref:n,className:U("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Qi.displayName=K0.displayName;const Le=f.forwardRef(({className:e,...t},n)=>i.jsx(G0,{ref:n,className:U("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Le.displayName=G0.displayName;const Ze=f.forwardRef(({className:e,...t},n)=>i.jsx(Y0,{ref:n,className:U("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Ze.displayName=Y0.displayName;function dM(){const[e,t]=f.useState(""),[n,r]=f.useState("all"),[o,s]=f.useState("all"),[a,l]=f.useState("all"),{openDetail:c}=Cs(),{data:u,refetch:d}=rt({queryKey:["all-requests",e,n,o],queryFn:()=>Be.getRequests({limit:200,search:e||void 0,status_code:n!=="all"?y(n):void 0,method:o!=="all"?o:void 0}),refetchInterval:5e3}),h=(u==null?void 0:u.filter(j=>j.status_code&&j.status_code>=200&&j.status_code<300).length)||0,p=(u==null?void 0:u.filter(j=>j.status_code&&j.status_code>=400).length)||0,w=(u==null?void 0:u.filter(j=>j.duration_ms&&j.duration_ms>500).length)||0,m=a==="all"?u:a==="successful"?u==null?void 0:u.filter(j=>j.status_code&&j.status_code>=200&&j.status_code<300):a==="failed"?u==null?void 0:u.filter(j=>j.status_code&&j.status_code>=400):a==="slow"?u==null?void 0:u.filter(j=>j.duration_ms&&j.duration_ms>500):u,y=j=>{switch(j){case"2xx":return 200;case"3xx":return 300;case"4xx":return 400;case"5xx":return 500;default:return}},S=j=>j?j>=200&&j<300?"success":j>=300&&j<400?"secondary":j>=400&&j<500?"warning":j>=500?"destructive":"outline":"outline",g=j=>{switch(j){case"GET":return"secondary";case"POST":return"default";case"PUT":return"default";case"DELETE":return"destructive";default:return"outline"}},v=j=>j?j<1e3?`${j.toFixed(0)}ms`:`${(j/1e3).toFixed(2)}s`:"0ms",x=()=>{d()},C=()=>{if(m){const j=JSON.stringify(m,null,2),E=new Blob([j],{type:"application/json"}),N=URL.createObjectURL(E),R=document.createElement("a");R.href=N,R.download=`requests-${new Date().toISOString()}.json`,R.click()}};return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:"HTTP Requests"}),i.jsx("p",{className:"text-muted-foreground",children:"Monitor and analyze all incoming HTTP requests to your application"})]}),i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsx(oe,{children:"Filters"}),i.jsx(_e,{children:"Filter and search through request logs"})]}),i.jsx(se,{children:i.jsxs("div",{className:"grid gap-4 md:grid-cols-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(ee,{htmlFor:"search",children:"Search"}),i.jsxs("div",{className:"relative",children:[i.jsx(Ly,{className:"absolute left-2 top-2.5 h-4 w-4 text-muted-foreground"}),i.jsx(hr,{id:"search",placeholder:"Search by path, IP...",className:"pl-8",value:e,onChange:j=>t(j.target.value)})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(ee,{htmlFor:"status",children:"Status Code"}),i.jsxs(Mn,{value:n,onValueChange:r,children:[i.jsx(fn,{id:"status",children:i.jsx(On,{placeholder:"All status codes"})}),i.jsxs(hn,{children:[i.jsx(K,{value:"all",children:"All status codes"}),i.jsx(K,{value:"2xx",children:"2xx Success"}),i.jsx(K,{value:"3xx",children:"3xx Redirect"}),i.jsx(K,{value:"4xx",children:"4xx Client Error"}),i.jsx(K,{value:"5xx",children:"5xx Server Error"})]})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(ee,{htmlFor:"method",children:"Method"}),i.jsxs(Mn,{value:o,onValueChange:s,children:[i.jsx(fn,{id:"method",children:i.jsx(On,{placeholder:"All methods"})}),i.jsxs(hn,{children:[i.jsx(K,{value:"all",children:"All methods"}),i.jsx(K,{value:"GET",children:"GET"}),i.jsx(K,{value:"POST",children:"POST"}),i.jsx(K,{value:"PUT",children:"PUT"}),i.jsx(K,{value:"PATCH",children:"PATCH"}),i.jsx(K,{value:"DELETE",children:"DELETE"})]})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(ee,{children:" "}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(ve,{variant:"outline",size:"icon",onClick:()=>d(),children:i.jsx(Lf,{className:"h-4 w-4"})}),i.jsx(ve,{variant:"outline",size:"icon",onClick:C,children:i.jsx(SE,{className:"h-4 w-4"})}),i.jsxs(ve,{onClick:x,children:[i.jsx(CE,{className:"mr-2 h-4 w-4"}),"Apply Filters"]})]})]})]})})]}),i.jsxs(uc,{value:a,onValueChange:l,className:"space-y-4",children:[i.jsxs(Qi,{children:[i.jsxs(Le,{value:"all",children:["All Requests",u&&u.length>0&&i.jsx(Ne,{variant:"outline",className:"ml-2",children:u.length})]}),i.jsxs(Le,{value:"successful",children:["Successful",h>0&&i.jsx(Ne,{variant:"outline",className:"ml-2",children:h})]}),i.jsxs(Le,{value:"failed",children:["Failed",p>0&&i.jsx(Ne,{variant:"destructive",className:"ml-2",children:p})]}),i.jsxs(Le,{value:"slow",children:["Slow",w>0&&i.jsx(Ne,{variant:"secondary",className:"ml-2",children:w})]})]}),i.jsx(Ze,{value:a,className:"space-y-4",children:i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsxs(oe,{children:[a==="all"&&"All Requests",a==="successful"&&"Successful Requests",a==="failed"&&"Failed Requests",a==="slow"&&"Slow Requests"]}),i.jsxs(_e,{children:[a==="all"&&"Complete list of all HTTP requests",a==="successful"&&"Requests that completed successfully (2xx status codes)",a==="failed"&&"Requests that resulted in errors (4xx and 5xx status codes)",a==="slow"&&"Requests that took longer than 500ms"]})]}),i.jsx(se,{children:i.jsxs("div",{className:"space-y-2",children:[m==null?void 0:m.map(j=>i.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg hover:bg-muted/50 cursor-pointer transition-colors",onClick:()=>c("request",j.request_id),children:[i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsx(Ne,{variant:g(j.method),children:j.method}),i.jsxs("div",{className:"flex flex-col",children:[i.jsx("span",{className:"font-mono text-sm",children:j.path}),i.jsxs("div",{className:"flex items-center space-x-2 text-xs text-muted-foreground",children:[i.jsx("span",{children:new Date(j.created_at).toLocaleTimeString()}),j.query_count>0&&i.jsxs(i.Fragment,{children:[i.jsx("span",{children:"•"}),i.jsxs("span",{children:[j.query_count," queries"]})]}),j.has_exception&&i.jsxs(i.Fragment,{children:[i.jsx("span",{children:"•"}),i.jsx("span",{className:"text-destructive",children:"Exception"})]})]})]})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[j.status_code&&i.jsx(Ne,{variant:S(j.status_code),children:j.status_code}),j.duration_ms&&i.jsx("span",{className:"text-sm text-muted-foreground",children:v(j.duration_ms)})]})]},j.id)),(!m||m.length===0)&&i.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:[a==="all"&&"No requests captured yet",a==="successful"&&"No successful requests",a==="failed"&&"No failed requests",a==="slow"&&"No slow requests"]})]})})]})})]})]})}function fM(){const[e,t]=f.useState("1h"),[n,r]=f.useState(5e3),{openDetail:o}=Cs(),s=e==="1h"?1:e==="24h"?24:168,{data:a}=rt({queryKey:["performance-stats",e],queryFn:()=>Be.getStats(s),refetchInterval:n}),{data:l}=rt({queryKey:["performance-requests",e],queryFn:()=>Be.getRequests({limit:100}),refetchInterval:n}),{data:c}=rt({queryKey:["performance-queries",e],queryFn:()=>Be.getQueries({limit:100}),refetchInterval:n}),{data:u}=rt({queryKey:["performance-exceptions",e],queryFn:()=>Be.getExceptions({limit:100}),refetchInterval:n}),d=I0({requests:l,queries:c,exceptions:u,stats:a}),h=[{label:"Success Rate",value:d.successRate/100,status:d.successRate>=99?"excellent":d.successRate>=95?"good":d.successRate>=90?"warning":"critical",description:`Based on ${d.totalRequests} recent requests`},{label:"Avg Response Time",value:d.avgResponseTime?d.avgResponseTime/1e3:0,status:!d.avgResponseTime||d.avgResponseTime<100?"excellent":d.avgResponseTime<300?"good":d.avgResponseTime<1e3?"warning":"critical",description:Rt(d.avgResponseTime)},{label:"Error Rate",value:d.errorRate/100,status:d.errorRate<=1?"excellent":d.errorRate<=2?"good":d.errorRate<=5?"warning":"critical",description:`${d.errorRate.toFixed(1)}% of requests failed`},{label:"Query Performance",value:d.avgQueryTime?(100-Math.min(d.avgQueryTime/100*100,100))/100:1,status:!d.avgQueryTime||d.avgQueryTime<50?"excellent":d.avgQueryTime<100?"good":d.avgQueryTime<200?"warning":"critical",description:Rt(d.avgQueryTime)}],p=m=>{switch(m){case"excellent":return"text-green-500";case"good":return"text-blue-500";case"warning":return"text-yellow-500";case"critical":return"text-red-500";default:return"text-gray-500"}},w=m=>{switch(m){case"excellent":return i.jsx(gE,{className:"h-4 w-4 text-green-500"});case"good":return i.jsx(Ff,{className:"h-4 w-4 text-blue-500"});case"warning":return i.jsx(so,{className:"h-4 w-4 text-yellow-500"});case"critical":return i.jsx(so,{className:"h-4 w-4 text-red-500"});default:return null}};return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:"Performance Monitoring"}),i.jsx("p",{className:"text-muted-foreground",children:"Track application performance metrics and identify bottlenecks"})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs(Mn,{value:e,onValueChange:t,children:[i.jsx(fn,{className:"w-32",children:i.jsx(On,{})}),i.jsxs(hn,{children:[i.jsx(K,{value:"1h",children:"Last Hour"}),i.jsx(K,{value:"24h",children:"Last 24 Hours"}),i.jsx(K,{value:"7d",children:"Last 7 Days"})]})]}),i.jsxs(Mn,{value:n.toString(),onValueChange:m=>r(parseInt(m)),children:[i.jsx(fn,{className:"w-40",children:i.jsx(On,{})}),i.jsxs(hn,{children:[i.jsx(K,{value:"5000",children:"Refresh: 5s"}),i.jsx(K,{value:"10000",children:"Refresh: 10s"}),i.jsx(K,{value:"30000",children:"Refresh: 30s"}),i.jsx(K,{value:"0",children:"Refresh: Off"})]})]})]})]}),i.jsx("div",{className:"grid gap-4 md:grid-cols-4",children:h.map(m=>i.jsxs(ne,{children:[i.jsxs(re,{className:"pb-2",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx(oe,{className:"text-sm font-medium",children:m.label}),w(m.status)]}),i.jsx(_e,{className:"text-xs",children:m.description})]}),i.jsxs(se,{children:[i.jsx("div",{className:"flex items-baseline gap-2",children:i.jsx("span",{className:`text-2xl font-bold ${p(m.status)}`,children:m.label.includes("Rate")?`${(m.value*100).toFixed(1)}%`:m.label==="Avg Response Time"?Rt(d.avgResponseTime):m.label==="Query Performance"?`${(m.value*100).toFixed(0)}%`:m.value.toFixed(2)})}),i.jsx(Ei,{value:m.value*100,className:"mt-2 h-2"})]})]},m.label))}),i.jsxs(uc,{defaultValue:"overview",className:"space-y-4",children:[i.jsxs(Qi,{children:[i.jsx(Le,{value:"overview",children:"Overview"}),i.jsx(Le,{value:"endpoints",children:"Endpoints"}),i.jsx(Le,{value:"queries",children:"Database"}),i.jsx(Le,{value:"errors",children:"Error Analysis"})]}),i.jsxs(Ze,{value:"overview",className:"space-y-4",children:[i.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[i.jsxs(ne,{children:[i.jsx(re,{children:i.jsx(oe,{className:"text-base",children:"Response Time"})}),i.jsxs(se,{className:"space-y-2",children:[i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"P50 (Median)"}),i.jsx("span",{className:"font-medium",children:Rt(d.responseTimePercentiles.p50)})]}),i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"P95"}),i.jsx("span",{className:"font-medium",children:Rt(d.responseTimePercentiles.p95)})]}),i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"P99"}),i.jsx("span",{className:"font-medium",children:Rt(d.responseTimePercentiles.p99)})]})]})]}),i.jsxs(ne,{children:[i.jsx(re,{children:i.jsx(oe,{className:"text-base",children:"Throughput"})}),i.jsxs(se,{className:"space-y-2",children:[i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Requests/sec"}),i.jsx("span",{className:"font-medium",children:d.requestsPerSecond.toFixed(1)})]}),i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Total Requests"}),i.jsx("span",{className:"font-medium",children:km(a==null?void 0:a.total_requests)})]}),i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Total Queries"}),i.jsx("span",{className:"font-medium",children:km(a==null?void 0:a.total_queries)})]})]})]}),i.jsxs(ne,{children:[i.jsx(re,{children:i.jsx(oe,{className:"text-base",children:"Error Rates"})}),i.jsxs(se,{className:"space-y-2",children:[i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Failed Requests"}),i.jsx("span",{className:"font-medium",children:d.failedRequests})]}),i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Error Rate"}),i.jsxs("span",{className:"font-medium",children:[d.errorRate.toFixed(1),"%"]})]}),i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Exceptions"}),i.jsx("span",{className:"font-medium",children:d.totalExceptions})]})]})]})]}),i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsx(oe,{children:"Metrics Summary"}),i.jsx(_e,{children:"Real-time performance metrics based on recent activity"})]}),i.jsx(se,{children:i.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-sm",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-muted-foreground",children:"Sample Size"}),i.jsxs("p",{className:"font-medium",children:[d.totalRequests," requests"]})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-muted-foreground",children:"Success Rate"}),i.jsxs("p",{className:"font-medium text-green-500",children:[d.successRate.toFixed(1),"%"]})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-muted-foreground",children:"Avg Response"}),i.jsx("p",{className:"font-medium",children:Rt(d.avgResponseTime)})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-muted-foreground",children:"Slow Requests"}),i.jsx("p",{className:"font-medium",children:d.slowRequests})]})]})})]})]}),i.jsx(Ze,{value:"endpoints",className:"space-y-4",children:i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsx(oe,{children:"Endpoint Performance Metrics"}),i.jsx(_e,{children:"Detailed performance breakdown by API endpoint"})]}),i.jsx(se,{children:i.jsxs("div",{className:"space-y-4",children:[d.endpointMetrics.map(m=>i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("code",{className:"text-sm font-mono",children:m.name}),i.jsxs(Ne,{variant:"outline",children:[m.calls," calls"]}),m.errors>0&&i.jsxs(Ne,{variant:"destructive",children:[m.errors," errors"]}),i.jsxs(Ne,{variant:"secondary",children:[m.successRate,"% success"]})]}),i.jsxs("span",{className:"text-sm font-medium",children:[m.avgResponseTime,"ms avg"]})]}),i.jsx(Ei,{value:Math.min(m.avgResponseTime/500*100,100),className:"h-2"})]},m.name)),d.endpointMetrics.length===0&&i.jsx("p",{className:"text-center text-muted-foreground py-4",children:"No endpoint data available"})]})})]})}),i.jsx(Ze,{value:"queries",className:"space-y-4",children:i.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[i.jsxs(ne,{children:[i.jsx(re,{children:i.jsx(oe,{children:"Query Statistics"})}),i.jsxs(se,{className:"space-y-2",children:[i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Total Queries"}),i.jsx("span",{className:"font-medium",children:d.totalQueries})]}),i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Slow Queries"}),i.jsx("span",{className:"font-medium text-yellow-500",children:d.slowQueries})]}),i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Avg Query Time"}),i.jsx("span",{className:"font-medium",children:Rt(d.avgQueryTime)})]})]})]}),i.jsxs(ne,{children:[i.jsx(re,{children:i.jsx(oe,{children:"Slow Queries"})}),i.jsx(se,{children:i.jsxs("div",{className:"space-y-2",children:[c==null?void 0:c.filter(m=>m.duration_ms&&m.duration_ms>100).slice(0,5).map(m=>i.jsxs("div",{className:"text-xs cursor-pointer hover:bg-muted/50 p-2 rounded",onClick:()=>o("request",m.request_id),children:[i.jsx("code",{className:"block truncate",children:m.sql}),i.jsx("span",{className:"text-muted-foreground",children:Rt(m.duration_ms)})]},m.id)),(!c||c.filter(m=>m.duration_ms&&m.duration_ms>100).length===0)&&i.jsx("p",{className:"text-center text-muted-foreground py-4",children:"No slow queries detected"})]})})]})]})}),i.jsx(Ze,{value:"errors",className:"space-y-4",children:i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsx(oe,{children:"Error Analysis"}),i.jsx(_e,{children:"Breakdown of errors and exceptions"})]}),i.jsxs(se,{children:[i.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4 mb-4",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Total Errors"}),i.jsx("p",{className:"text-2xl font-bold",children:d.failedRequests})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Error Rate"}),i.jsxs("p",{className:"text-2xl font-bold text-red-500",children:[d.errorRate.toFixed(1),"%"]})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-muted-foreground",children:"Exceptions"}),i.jsx("p",{className:"text-2xl font-bold",children:d.totalExceptions})]})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsx("h4",{className:"text-sm font-medium",children:"Recent Exceptions"}),u==null?void 0:u.slice(0,10).map(m=>i.jsxs("div",{className:"p-3 border rounded-lg cursor-pointer hover:bg-muted/50",onClick:()=>o("request",m.request_id),children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx(Ne,{variant:"destructive",children:m.exception_type}),i.jsx("span",{className:"text-xs text-muted-foreground",children:new Date(m.created_at).toLocaleString()})]}),m.exception_value&&i.jsx("p",{className:"text-sm mt-1",children:m.exception_value})]},m.id)),(!u||u.length===0)&&i.jsx("p",{className:"text-center text-muted-foreground py-4",children:"No exceptions captured"})]})]})]})})]})]})}var dc="Switch",[hM]=Lt(dc),[pM,mM]=hM(dc),X0=f.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:s,required:a,disabled:l,value:c="on",onCheckedChange:u,form:d,...h}=e,[p,w]=f.useState(null),m=J(t,x=>w(x)),y=f.useRef(!1),S=p?d||!!p.closest("form"):!0,[g,v]=io({prop:o,defaultProp:s??!1,onChange:u,caller:dc});return i.jsxs(pM,{scope:n,checked:g,disabled:l,children:[i.jsx(B.button,{type:"button",role:"switch","aria-checked":g,"aria-required":a,"data-state":t1(g),"data-disabled":l?"":void 0,disabled:l,value:c,...h,ref:m,onClick:L(e.onClick,x=>{v(C=>!C),S&&(y.current=x.isPropagationStopped(),y.current||x.stopPropagation())})}),S&&i.jsx(e1,{control:p,bubbles:!y.current,name:r,value:c,checked:g,required:a,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})});X0.displayName=dc;var Z0="SwitchThumb",J0=f.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=mM(Z0,n);return i.jsx(B.span,{"data-state":t1(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});J0.displayName=Z0;var vM="SwitchBubbleInput",e1=f.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const a=f.useRef(null),l=J(a,s),c=Vw(n),u=mx(t);return f.useEffect(()=>{const d=a.current;if(!d)return;const h=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(h,"checked").set;if(c!==n&&w){const m=new Event("click",{bubbles:r});w.call(d,n),d.dispatchEvent(m)}},[c,n,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:l,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});e1.displayName=vM;function t1(e){return e?"checked":"unchecked"}var n1=X0,gM=J0;const $e=f.forwardRef(({className:e,...t},n)=>i.jsx(n1,{className:U("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:i.jsx(gM,{className:U("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));$e.displayName=n1.displayName;var yM="Separator",_m="horizontal",xM=["horizontal","vertical"],r1=f.forwardRef((e,t)=>{const{decorative:n,orientation:r=_m,...o}=e,s=wM(r)?r:_m,l=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return i.jsx(B.div,{"data-orientation":s,...l,...o,ref:t})});r1.displayName=yM;function wM(e){return xM.includes(e)}var o1=r1;const er=f.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>i.jsx(o1,{ref:o,decorative:n,orientation:t,className:U("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));er.displayName=o1.displayName;function SM(){var g,v,x,C,j,E;const{theme:e,setTheme:t}=$w(),[n,r]=f.useState(!0),[o,s]=f.useState(!1),[a,l]=f.useState(!0),[c,u]=f.useState("5"),[d,h]=f.useState("30"),[p,w]=f.useState("100"),{data:m}=rt({queryKey:["settings-stats"],queryFn:()=>Be.getStats(24*7),refetchInterval:3e4}),y=async()=>{confirm("Are you sure you want to clear all captured data?")&&(await Be.clearData(),window.location.reload())},S=async()=>{const N=parseInt(d);confirm(`Are you sure you want to clear data older than ${N} days?`)&&(await Be.clearData(N*24),window.location.reload())};return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:"Settings"}),i.jsx("p",{className:"text-muted-foreground",children:"Manage your dashboard preferences and configuration"})]}),i.jsxs(uc,{defaultValue:"general",className:"space-y-4",children:[i.jsxs(Qi,{className:"grid w-full grid-cols-5",children:[i.jsx(Le,{value:"general",children:"General"}),i.jsx(Le,{value:"notifications",children:"Notifications"}),i.jsx(Le,{value:"performance",children:"Performance"}),i.jsx(Le,{value:"security",children:"Security"}),i.jsx(Le,{value:"data",children:"Data Management"})]}),i.jsxs(Ze,{value:"general",className:"space-y-4",children:[i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsx(oe,{children:"Appearance"}),i.jsx(_e,{children:"Customize the look and feel of your dashboard"})]}),i.jsxs(se,{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"space-y-0.5",children:[i.jsx(ee,{children:"Theme"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Choose between light and dark mode"})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs(ve,{variant:e==="light"?"default":"outline",size:"sm",onClick:()=>t("light"),children:[i.jsx($y,{className:"mr-2 h-4 w-4"}),"Light"]}),i.jsxs(ve,{variant:e==="dark"?"default":"outline",size:"sm",onClick:()=>t("dark"),children:[i.jsx(Ay,{className:"mr-2 h-4 w-4"}),"Dark"]})]})]}),i.jsx(er,{}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(ee,{htmlFor:"language",children:"Language"}),i.jsxs(Mn,{defaultValue:"en",children:[i.jsx(fn,{id:"language",children:i.jsx(On,{})}),i.jsxs(hn,{children:[i.jsx(K,{value:"en",children:"English"}),i.jsx(K,{value:"es",children:"Español"}),i.jsx(K,{value:"fr",children:"Français"}),i.jsx(K,{value:"de",children:"Deutsch"}),i.jsx(K,{value:"ja",children:"日本語"})]})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(ee,{htmlFor:"timezone",children:"Timezone"}),i.jsxs(Mn,{defaultValue:"utc",children:[i.jsx(fn,{id:"timezone",children:i.jsx(On,{})}),i.jsxs(hn,{children:[i.jsx(K,{value:"utc",children:"UTC"}),i.jsx(K,{value:"est",children:"Eastern Time"}),i.jsx(K,{value:"pst",children:"Pacific Time"}),i.jsx(K,{value:"cet",children:"Central European Time"})]})]})]})]})]}),i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsx(oe,{children:"Dashboard Behavior"}),i.jsx(_e,{children:"Configure how the dashboard behaves"})]}),i.jsxs(se,{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"space-y-0.5",children:[i.jsx(ee,{htmlFor:"auto-refresh",children:"Auto Refresh"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Automatically refresh data at regular intervals"})]}),i.jsx($e,{id:"auto-refresh",checked:a,onCheckedChange:l})]}),a&&i.jsxs("div",{className:"space-y-2",children:[i.jsx(ee,{htmlFor:"refresh-interval",children:"Refresh Interval"}),i.jsxs(Mn,{value:c,onValueChange:u,children:[i.jsx(fn,{id:"refresh-interval",children:i.jsx(On,{})}),i.jsxs(hn,{children:[i.jsx(K,{value:"5",children:"5 seconds"}),i.jsx(K,{value:"10",children:"10 seconds"}),i.jsx(K,{value:"30",children:"30 seconds"}),i.jsx(K,{value:"60",children:"1 minute"})]})]})]})]})]})]}),i.jsx(Ze,{value:"notifications",className:"space-y-4",children:i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsx(oe,{children:"Notification Preferences"}),i.jsx(_e,{children:"Choose how you want to be notified about important events"})]}),i.jsxs(se,{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx(RE,{className:"h-4 w-4 text-muted-foreground"}),i.jsxs("div",{className:"space-y-0.5",children:[i.jsx(ee,{htmlFor:"email-notifications",children:"Email Notifications"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive alerts via email"})]})]}),i.jsx($e,{id:"email-notifications",checked:n,onCheckedChange:r})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx(PE,{className:"h-4 w-4 text-muted-foreground"}),i.jsxs("div",{className:"space-y-0.5",children:[i.jsx(ee,{htmlFor:"push-notifications",children:"Push Notifications"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive alerts in your browser"})]})]}),i.jsx($e,{id:"push-notifications",checked:o,onCheckedChange:s})]}),i.jsx(er,{}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(ee,{children:"Alert Triggers"}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx($e,{defaultChecked:!0}),i.jsx(ee,{className:"font-normal",children:"High error rate (>5%)"})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx($e,{defaultChecked:!0}),i.jsx(ee,{className:"font-normal",children:"Slow response time (>1000ms)"})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx($e,{}),i.jsx(ee,{className:"font-normal",children:"Database connection failures"})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx($e,{defaultChecked:!0}),i.jsx(ee,{className:"font-normal",children:"Unhandled exceptions"})]})]})]})]})]})}),i.jsxs(Ze,{value:"performance",className:"space-y-4",children:[i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsx(oe,{children:"Performance Thresholds"}),i.jsx(_e,{children:"Define what constitutes slow performance in your application"})]}),i.jsxs(se,{className:"space-y-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(ee,{htmlFor:"slow-query",children:"Slow Query Threshold (ms)"}),i.jsx(hr,{id:"slow-query",type:"number",value:p,onChange:N=>w(N.target.value)}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Queries taking longer than this will be marked as slow"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(ee,{htmlFor:"slow-request",children:"Slow Request Threshold (ms)"}),i.jsx(hr,{id:"slow-request",type:"number",defaultValue:"500"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Requests taking longer than this will be marked as slow"})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(ee,{htmlFor:"error-rate",children:"Error Rate Alert (%)"}),i.jsx(hr,{id:"error-rate",type:"number",defaultValue:"5"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Alert when error rate exceeds this percentage"})]})]})]}),i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsx(oe,{children:"Monitoring Configuration"}),i.jsx(_e,{children:"Configure what data to collect and monitor"})]}),i.jsxs(se,{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx(ee,{htmlFor:"collect-headers",children:"Collect Request Headers"}),i.jsx($e,{id:"collect-headers",defaultChecked:!0})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx(ee,{htmlFor:"collect-body",children:"Collect Request Body"}),i.jsx($e,{id:"collect-body",defaultChecked:!0})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx(ee,{htmlFor:"collect-response",children:"Collect Response Body"}),i.jsx($e,{id:"collect-response"})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx(ee,{htmlFor:"track-user",children:"Track User Sessions"}),i.jsx($e,{id:"track-user",defaultChecked:!0})]})]})]})]}),i.jsx(Ze,{value:"security",className:"space-y-4",children:i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsx(oe,{children:"Security Settings"}),i.jsx(_e,{children:"Manage security and privacy settings"})]}),i.jsxs(se,{className:"space-y-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(ee,{htmlFor:"api-key",children:"API Key"}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(hr,{id:"api-key",type:"password",value:"••••••••••••••••••••",readOnly:!0,disabled:!0}),i.jsxs(ve,{variant:"outline",disabled:!0,children:[i.jsx(NE,{className:"mr-2 h-4 w-4"}),"Not Available"]})]}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"API key management is not available in the current version"})]}),i.jsx(er,{}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(ee,{children:"Data Privacy"}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx($e,{defaultChecked:!0}),i.jsx(ee,{className:"font-normal",children:"Mask sensitive data"})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx($e,{defaultChecked:!0}),i.jsx(ee,{className:"font-normal",children:"Encrypt stored data"})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx($e,{}),i.jsx(ee,{className:"font-normal",children:"Enable audit logging"})]})]})]}),i.jsx(er,{}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(ee,{children:"Access Control"}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm",children:"Require authentication"}),i.jsx($e,{defaultChecked:!0})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm",children:"Enable two-factor authentication"}),i.jsx($e,{})]})]})]})]})]})}),i.jsxs(Ze,{value:"data",className:"space-y-4",children:[i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsx(oe,{children:"Data Retention"}),i.jsx(_e,{children:"Configure how long to keep monitoring data"})]}),i.jsxs(se,{className:"space-y-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(ee,{htmlFor:"retention",children:"Data Retention Period"}),i.jsxs(Mn,{value:d,onValueChange:h,children:[i.jsx(fn,{id:"retention",children:i.jsx(On,{})}),i.jsxs(hn,{children:[i.jsx(K,{value:"7",children:"7 days"}),i.jsx(K,{value:"14",children:"14 days"}),i.jsx(K,{value:"30",children:"30 days"}),i.jsx(K,{value:"60",children:"60 days"}),i.jsx(K,{value:"90",children:"90 days"})]})]}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Data older than this will be automatically deleted"})]}),i.jsx(er,{}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(ee,{children:"Data Management Actions"}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs(ve,{variant:"outline",className:"w-full justify-start",disabled:!0,children:[i.jsx(Hl,{className:"mr-2 h-4 w-4"}),"Export All Data (Coming Soon)"]}),i.jsxs(ve,{variant:"outline",className:"w-full justify-start",onClick:S,children:[i.jsx(so,{className:"mr-2 h-4 w-4"}),"Clear Old Data"]}),i.jsxs(ve,{variant:"destructive",className:"w-full justify-start",onClick:y,children:[i.jsx(so,{className:"mr-2 h-4 w-4"}),"Clear All Data"]})]})]})]})]}),i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsx(oe,{children:"Database Status"}),i.jsx(_e,{children:"Current database usage and statistics"})]}),i.jsxs(se,{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm text-muted-foreground",children:"Total Requests"}),i.jsx("span",{className:"font-medium",children:((g=m==null?void 0:m.total_requests)==null?void 0:g.toLocaleString())||0})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm text-muted-foreground",children:"Total Queries"}),i.jsx("span",{className:"font-medium",children:((v=m==null?void 0:m.total_queries)==null?void 0:v.toLocaleString())||0})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm text-muted-foreground",children:"Total Exceptions"}),i.jsx("span",{className:"font-medium",children:((x=m==null?void 0:m.total_exceptions)==null?void 0:x.toLocaleString())||0})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm text-muted-foreground",children:"Slow Queries"}),i.jsx("span",{className:"font-medium",children:((C=m==null?void 0:m.slow_queries)==null?void 0:C.toLocaleString())||0})]}),i.jsx(er,{}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm text-muted-foreground",children:"Average Response Time"}),i.jsxs("span",{className:"font-medium",children:[((j=m==null?void 0:m.avg_response_time)==null?void 0:j.toFixed(0))||0,"ms"]})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm text-muted-foreground",children:"Requests Per Minute"}),i.jsx("span",{className:"font-medium",children:((E=m==null?void 0:m.requests_per_minute)==null?void 0:E.toFixed(1))||0})]})]})]})]})]})]})}var fc="Dialog",[s1]=Lt(fc),[CM,tn]=s1(fc),i1=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,l=f.useRef(null),c=f.useRef(null),[u,d]=io({prop:r,defaultProp:o??!1,onChange:s,caller:fc});return i.jsx(CM,{scope:t,triggerRef:l,contentRef:c,contentId:vn(),titleId:vn(),descriptionId:vn(),open:u,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(h=>!h),[d]),modal:a,children:n})};i1.displayName=fc;var a1="DialogTrigger",jM=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tn(a1,n),s=J(t,o.triggerRef);return i.jsx(B.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":uh(o.open),...r,ref:s,onClick:L(e.onClick,o.onOpenToggle)})});jM.displayName=a1;var lh="DialogPortal",[bM,l1]=s1(lh,{forceMount:void 0}),c1=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=tn(lh,t);return i.jsx(bM,{scope:t,forceMount:n,children:f.Children.map(r,a=>i.jsx(Et,{present:n||s.open,children:i.jsx(Zl,{asChild:!0,container:o,children:a})}))})};c1.displayName=lh;var Sl="DialogOverlay",u1=f.forwardRef((e,t)=>{const n=l1(Sl,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=tn(Sl,e.__scopeDialog);return s.modal?i.jsx(Et,{present:r||s.open,children:i.jsx(EM,{...o,ref:t})}):null});u1.displayName=Sl;var NM=oo("DialogOverlay.RemoveScroll"),EM=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tn(Sl,n);return i.jsx(tc,{as:NM,allowPinchZoom:!0,shards:[o.contentRef],children:i.jsx(B.div,{"data-state":uh(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),uo="DialogContent",d1=f.forwardRef((e,t)=>{const n=l1(uo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=tn(uo,e.__scopeDialog);return i.jsx(Et,{present:r||s.open,children:s.modal?i.jsx(RM,{...o,ref:t}):i.jsx(PM,{...o,ref:t})})});d1.displayName=uo;var RM=f.forwardRef((e,t)=>{const n=tn(uo,e.__scopeDialog),r=f.useRef(null),o=J(t,n.contentRef,r);return f.useEffect(()=>{const s=r.current;if(s)return Yf(s)},[]),i.jsx(f1,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&s.preventDefault()}),onFocusOutside:L(e.onFocusOutside,s=>s.preventDefault())})}),PM=f.forwardRef((e,t)=>{const n=tn(uo,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return i.jsx(f1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,l;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),f1=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,l=tn(uo,n),c=f.useRef(null),u=J(t,c);return Wf(),i.jsxs(i.Fragment,{children:[i.jsx(Ql,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:i.jsx(Vl,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":uh(l.open),...a,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(kM,{titleId:l.titleId}),i.jsx(TM,{contentRef:c,descriptionId:l.descriptionId})]})]})}),ch="DialogTitle",h1=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tn(ch,n);return i.jsx(B.h2,{id:o.titleId,...r,ref:t})});h1.displayName=ch;var p1="DialogDescription",m1=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tn(p1,n);return i.jsx(B.p,{id:o.descriptionId,...r,ref:t})});m1.displayName=p1;var v1="DialogClose",g1=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tn(v1,n);return i.jsx(B.button,{type:"button",...r,ref:t,onClick:L(e.onClick,()=>o.onOpenChange(!1))})});g1.displayName=v1;function uh(e){return e?"open":"closed"}var y1="DialogTitleWarning",[cO,x1]=AE(y1,{contentName:uo,titleName:ch,docsSlug:"dialog"}),kM=({titleId:e})=>{const t=x1(y1),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
265
|
-
|
|
266
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
267
|
-
|
|
268
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},_M="DialogDescriptionWarning",TM=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${x1(_M).contentName}}.`;return f.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},MM=i1,OM=c1,w1=u1,S1=d1,C1=h1,j1=m1,DM=g1;const IM=MM,AM=OM,b1=f.forwardRef(({className:e,...t},n)=>i.jsx(w1,{className:U("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));b1.displayName=w1.displayName;const LM=Bl("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),N1=f.forwardRef(({side:e="right",className:t,children:n,...r},o)=>i.jsxs(AM,{children:[i.jsx(b1,{}),i.jsxs(S1,{ref:o,className:U(LM({side:e}),t),...r,children:[i.jsxs(DM,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[i.jsx(t_,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));N1.displayName=S1.displayName;const E1=({className:e,...t})=>i.jsx("div",{className:U("flex flex-col space-y-2 text-center sm:text-left",e),...t});E1.displayName="SheetHeader";const R1=f.forwardRef(({className:e,...t},n)=>i.jsx(C1,{ref:n,className:U("text-lg font-semibold text-foreground",e),...t}));R1.displayName=C1.displayName;const FM=f.forwardRef(({className:e,...t},n)=>i.jsx(j1,{ref:n,className:U("text-sm text-muted-foreground",e),...t}));FM.displayName=j1.displayName;function $M(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var dh="ScrollArea",[P1]=Lt(dh),[zM,Ft]=P1(dh),k1=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:s=600,...a}=e,[l,c]=f.useState(null),[u,d]=f.useState(null),[h,p]=f.useState(null),[w,m]=f.useState(null),[y,S]=f.useState(null),[g,v]=f.useState(0),[x,C]=f.useState(0),[j,E]=f.useState(!1),[N,R]=f.useState(!1),T=J(t,O=>c(O)),P=Wi(o);return i.jsx(zM,{scope:n,type:r,dir:P,scrollHideDelay:s,scrollArea:l,viewport:u,onViewportChange:d,content:h,onContentChange:p,scrollbarX:w,onScrollbarXChange:m,scrollbarXEnabled:j,onScrollbarXEnabledChange:E,scrollbarY:y,onScrollbarYChange:S,scrollbarYEnabled:N,onScrollbarYEnabledChange:R,onCornerWidthChange:v,onCornerHeightChange:C,children:i.jsx(B.div,{dir:P,...a,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});k1.displayName=dh;var _1="ScrollAreaViewport",T1=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...s}=e,a=Ft(_1,n),l=f.useRef(null),c=J(t,l,a.onViewportChange);return i.jsxs(i.Fragment,{children:[i.jsx("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:o}),i.jsx(B.div,{"data-radix-scroll-area-viewport":"",...s,ref:c,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style},children:i.jsx("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});T1.displayName=_1;var wn="ScrollAreaScrollbar",fh=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ft(wn,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:a}=o,l=e.orientation==="horizontal";return f.useEffect(()=>(l?s(!0):a(!0),()=>{l?s(!1):a(!1)}),[l,s,a]),o.type==="hover"?i.jsx(WM,{...r,ref:t,forceMount:n}):o.type==="scroll"?i.jsx(UM,{...r,ref:t,forceMount:n}):o.type==="auto"?i.jsx(M1,{...r,ref:t,forceMount:n}):o.type==="always"?i.jsx(hh,{...r,ref:t}):null});fh.displayName=wn;var WM=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ft(wn,e.__scopeScrollArea),[s,a]=f.useState(!1);return f.useEffect(()=>{const l=o.scrollArea;let c=0;if(l){const u=()=>{window.clearTimeout(c),a(!0)},d=()=>{c=window.setTimeout(()=>a(!1),o.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",d),()=>{window.clearTimeout(c),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),i.jsx(Et,{present:n||s,children:i.jsx(M1,{"data-state":s?"visible":"hidden",...r,ref:t})})}),UM=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ft(wn,e.__scopeScrollArea),s=e.orientation==="horizontal",a=pc(()=>c("SCROLL_END"),100),[l,c]=$M("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 f.useEffect(()=>{if(l==="idle"){const u=window.setTimeout(()=>c("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,o.scrollHideDelay,c]),f.useEffect(()=>{const u=o.viewport,d=s?"scrollLeft":"scrollTop";if(u){let h=u[d];const p=()=>{const w=u[d];h!==w&&(c("SCROLL"),a()),h=w};return u.addEventListener("scroll",p),()=>u.removeEventListener("scroll",p)}},[o.viewport,s,c,a]),i.jsx(Et,{present:n||l!=="hidden",children:i.jsx(hh,{"data-state":l==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:L(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:L(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),M1=f.forwardRef((e,t)=>{const n=Ft(wn,e.__scopeScrollArea),{forceMount:r,...o}=e,[s,a]=f.useState(!1),l=e.orientation==="horizontal",c=pc(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;a(l?u:d)}},10);return cs(n.viewport,c),cs(n.content,c),i.jsx(Et,{present:r||s,children:i.jsx(hh,{"data-state":s?"visible":"hidden",...o,ref:t})})}),hh=f.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=Ft(wn,e.__scopeScrollArea),s=f.useRef(null),a=f.useRef(0),[l,c]=f.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=L1(l.viewport,l.content),d={...r,sizes:l,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:p=>s.current=p,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:p=>a.current=p};function h(p,w){return KM(p,a.current,l,w)}return n==="horizontal"?i.jsx(BM,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const p=o.viewport.scrollLeft,w=Tm(p,l,o.dir);s.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollLeft=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollLeft=h(p,o.dir))}}):n==="vertical"?i.jsx(HM,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const p=o.viewport.scrollTop,w=Tm(p,l);s.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollTop=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollTop=h(p))}}):null}),BM=f.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=Ft(wn,e.__scopeScrollArea),[a,l]=f.useState(),c=f.useRef(null),u=J(t,c,s.onScrollbarXChange);return f.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),i.jsx(D1,{"data-orientation":"horizontal",...o,ref:u,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":hc(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,h)=>{if(s.viewport){const p=s.viewport.scrollLeft+d.deltaX;e.onWheelScroll(p),$1(p,h)&&d.preventDefault()}},onResize:()=>{c.current&&s.viewport&&a&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:jl(a.paddingLeft),paddingEnd:jl(a.paddingRight)}})}})}),HM=f.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=Ft(wn,e.__scopeScrollArea),[a,l]=f.useState(),c=f.useRef(null),u=J(t,c,s.onScrollbarYChange);return f.useEffect(()=>{c.current&&l(getComputedStyle(c.current))},[c]),i.jsx(D1,{"data-orientation":"vertical",...o,ref:u,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":hc(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,h)=>{if(s.viewport){const p=s.viewport.scrollTop+d.deltaY;e.onWheelScroll(p),$1(p,h)&&d.preventDefault()}},onResize:()=>{c.current&&s.viewport&&a&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:jl(a.paddingTop),paddingEnd:jl(a.paddingBottom)}})}})}),[VM,O1]=P1(wn),D1=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:s,onThumbPointerUp:a,onThumbPointerDown:l,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:d,onResize:h,...p}=e,w=Ft(wn,n),[m,y]=f.useState(null),S=J(t,T=>y(T)),g=f.useRef(null),v=f.useRef(""),x=w.viewport,C=r.content-r.viewport,j=Ue(d),E=Ue(c),N=pc(h,10);function R(T){if(g.current){const P=T.clientX-g.current.left,O=T.clientY-g.current.top;u({x:P,y:O})}}return f.useEffect(()=>{const T=P=>{const O=P.target;(m==null?void 0:m.contains(O))&&j(P,C)};return document.addEventListener("wheel",T,{passive:!1}),()=>document.removeEventListener("wheel",T,{passive:!1})},[x,m,C,j]),f.useEffect(E,[r,E]),cs(m,N),cs(w.content,N),i.jsx(VM,{scope:n,scrollbar:m,hasThumb:o,onThumbChange:Ue(s),onThumbPointerUp:Ue(a),onThumbPositionChange:E,onThumbPointerDown:Ue(l),children:i.jsx(B.div,{...p,ref:S,style:{position:"absolute",...p.style},onPointerDown:L(e.onPointerDown,T=>{T.button===0&&(T.target.setPointerCapture(T.pointerId),g.current=m.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),R(T))}),onPointerMove:L(e.onPointerMove,R),onPointerUp:L(e.onPointerUp,T=>{const P=T.target;P.hasPointerCapture(T.pointerId)&&P.releasePointerCapture(T.pointerId),document.body.style.webkitUserSelect=v.current,w.viewport&&(w.viewport.style.scrollBehavior=""),g.current=null})})})}),Cl="ScrollAreaThumb",I1=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=O1(Cl,e.__scopeScrollArea);return i.jsx(Et,{present:n||o.hasThumb,children:i.jsx(QM,{ref:t,...r})})}),QM=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,s=Ft(Cl,n),a=O1(Cl,n),{onThumbPositionChange:l}=a,c=J(t,h=>a.onThumbChange(h)),u=f.useRef(void 0),d=pc(()=>{u.current&&(u.current(),u.current=void 0)},100);return f.useEffect(()=>{const h=s.viewport;if(h){const p=()=>{if(d(),!u.current){const w=GM(h,l);u.current=w,l()}};return l(),h.addEventListener("scroll",p),()=>h.removeEventListener("scroll",p)}},[s.viewport,d,l]),i.jsx(B.div,{"data-state":a.hasThumb?"visible":"hidden",...o,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:L(e.onPointerDownCapture,h=>{const w=h.target.getBoundingClientRect(),m=h.clientX-w.left,y=h.clientY-w.top;a.onThumbPointerDown({x:m,y})}),onPointerUp:L(e.onPointerUp,a.onThumbPointerUp)})});I1.displayName=Cl;var ph="ScrollAreaCorner",A1=f.forwardRef((e,t)=>{const n=Ft(ph,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?i.jsx(qM,{...e,ref:t}):null});A1.displayName=ph;var qM=f.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=Ft(ph,n),[s,a]=f.useState(0),[l,c]=f.useState(0),u=!!(s&&l);return cs(o.scrollbarX,()=>{var h;const d=((h=o.scrollbarX)==null?void 0:h.offsetHeight)||0;o.onCornerHeightChange(d),c(d)}),cs(o.scrollbarY,()=>{var h;const d=((h=o.scrollbarY)==null?void 0:h.offsetWidth)||0;o.onCornerWidthChange(d),a(d)}),u?i.jsx(B.div,{...r,ref:t,style:{width:s,height:l,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function jl(e){return e?parseInt(e,10):0}function L1(e,t){const n=e/t;return isNaN(n)?0:n}function hc(e){const t=L1(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function KM(e,t,n,r="ltr"){const o=hc(n),s=o/2,a=t||s,l=o-a,c=n.scrollbar.paddingStart+a,u=n.scrollbar.size-n.scrollbar.paddingEnd-l,d=n.content-n.viewport,h=r==="ltr"?[0,d]:[d*-1,0];return F1([c,u],h)(e)}function Tm(e,t,n="ltr"){const r=hc(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-o,a=t.content-t.viewport,l=s-r,c=n==="ltr"?[0,a]:[a*-1,0],u=Cd(e,c);return F1([0,a],[0,l])(u)}function F1(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function $1(e,t){return e>0&&e<t}var GM=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const s={left:e.scrollLeft,top:e.scrollTop},a=n.left!==s.left,l=n.top!==s.top;(a||l)&&t(),n=s,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function pc(e,t){const n=Ue(e),r=f.useRef(0);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),f.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function cs(e,t){const n=Ue(t);Ie(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var z1=k1,YM=T1,XM=A1;const bn=f.forwardRef(({className:e,children:t,...n},r)=>i.jsxs(z1,{ref:r,className:U("relative overflow-hidden",e),...n,children:[i.jsx(YM,{className:"h-full w-full rounded-[inherit]",children:t}),i.jsx(W1,{}),i.jsx(XM,{})]}));bn.displayName=z1.displayName;const W1=f.forwardRef(({className:e,orientation:t="vertical",...n},r)=>i.jsx(fh,{ref:r,orientation:t,className:U("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:i.jsx(I1,{className:"relative flex-1 rounded-full bg-border"})}));W1.displayName=fh.displayName;function ZM({open:e,onOpenChange:t,type:n,id:r}){const[o,s]=f.useState(null),{data:a}=rt({queryKey:["request-detail",r],queryFn:()=>r&&n==="request"?Be.getRequestDetail(r):null,enabled:!!r&&n==="request"}),l=(m,y)=>{navigator.clipboard.writeText(m),s(y),setTimeout(()=>s(null),2e3)},c=m=>m?m>=200&&m<300?"default":m>=300&&m<400?"secondary":m>=400&&m<500?"warning":"destructive":"secondary",u=m=>m?m<1e3?`${m}ms`:`${(m/1e3).toFixed(2)}s`:"0ms",d=m=>{if(!m)return null;try{return JSON.stringify(m,null,2)}catch{return String(m)}},h=()=>a?i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(Ne,{variant:c(a.status_code),children:a.status_code||"pending"}),i.jsx("span",{className:"font-mono text-sm",children:a.method}),i.jsx("span",{className:"text-sm text-muted-foreground",children:a.path})]}),i.jsx(Ne,{variant:"outline",children:u(a.duration_ms)})]}),i.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[i.jsxs("div",{className:"space-y-1",children:[i.jsx("p",{className:"text-muted-foreground",children:"Timestamp"}),i.jsx("p",{className:"font-medium",children:$a(new Date(a.created_at),"PPpp")})]}),i.jsxs("div",{className:"space-y-1",children:[i.jsx("p",{className:"text-muted-foreground",children:"Client IP"}),i.jsx("p",{className:"font-medium",children:a.client_ip||"Unknown"})]}),i.jsxs("div",{className:"space-y-1",children:[i.jsx("p",{className:"text-muted-foreground",children:"Request ID"}),i.jsx("p",{className:"font-mono text-xs",children:a.request_id})]}),i.jsxs("div",{className:"space-y-1",children:[i.jsx("p",{className:"text-muted-foreground",children:"URL"}),i.jsx("p",{className:"font-mono text-xs break-all",children:a.url})]})]})]}),i.jsx(er,{}),i.jsxs(uc,{defaultValue:"headers",className:"w-full",children:[i.jsxs(Qi,{className:"grid w-full grid-cols-5",children:[i.jsx(Le,{value:"headers",children:"Headers"}),i.jsx(Le,{value:"body",children:"Body"}),i.jsx(Le,{value:"response",children:"Response"}),i.jsxs(Le,{value:"queries",children:["Queries"," ",a.queries.length>0&&`(${a.queries.length})`]}),i.jsxs(Le,{value:"errors",children:["Errors"," ",a.exceptions.length>0&&`(${a.exceptions.length})`]})]}),i.jsxs(Ze,{value:"headers",className:"space-y-4 mt-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("h4",{className:"text-sm font-medium",children:"Request Headers"}),i.jsxs(ve,{size:"sm",variant:"ghost",onClick:()=>l(d(a.headers)||"","req-headers"),children:[i.jsx(ma,{className:"h-3 w-3 mr-1"}),o==="req-headers"?"Copied!":"Copy"]})]}),i.jsx(bn,{className:"h-[200px] rounded-md border p-3",children:i.jsx("pre",{className:"text-xs",children:d(a.headers)||"No headers"})})]}),a.response_headers&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("h4",{className:"text-sm font-medium",children:"Response Headers"}),i.jsxs(ve,{size:"sm",variant:"ghost",onClick:()=>l(d(a.response_headers)||"","res-headers"),children:[i.jsx(ma,{className:"h-3 w-3 mr-1"}),o==="res-headers"?"Copied!":"Copy"]})]}),i.jsx(bn,{className:"h-[200px] rounded-md border p-3",children:i.jsx("pre",{className:"text-xs",children:d(a.response_headers)||"No response headers"})})]})]}),i.jsxs(Ze,{value:"body",className:"space-y-4 mt-4",children:[a.query_params&&Object.keys(a.query_params).length>0&&i.jsxs("div",{className:"space-y-2",children:[i.jsx("h4",{className:"text-sm font-medium",children:"Query Parameters"}),i.jsx(bn,{className:"h-[100px] rounded-md border p-3",children:i.jsx("pre",{className:"text-xs",children:d(a.query_params)})})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("h4",{className:"text-sm font-medium",children:"Request Body"}),i.jsxs(ve,{size:"sm",variant:"ghost",onClick:()=>l(a.body||"","body"),children:[i.jsx(ma,{className:"h-3 w-3 mr-1"}),o==="body"?"Copied!":"Copy"]})]}),i.jsx(bn,{className:"h-[300px] rounded-md border p-3",children:i.jsx("pre",{className:"text-xs",children:a.body||"No request body"})})]})]}),i.jsx(Ze,{value:"response",className:"space-y-4 mt-4",children:i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("h4",{className:"text-sm font-medium",children:"Response Body"}),i.jsxs(ve,{size:"sm",variant:"ghost",onClick:()=>l(a.response_body||"","response"),children:[i.jsx(ma,{className:"h-3 w-3 mr-1"}),o==="response"?"Copied!":"Copy"]})]}),i.jsx(bn,{className:"h-[400px] rounded-md border p-3",children:i.jsx("pre",{className:"text-xs",children:a.response_body||"No response body"})})]})}),i.jsx(Ze,{value:"queries",className:"space-y-4 mt-4",children:a.queries.length===0?i.jsx("p",{className:"text-center text-muted-foreground py-8",children:"No queries executed"}):i.jsx("div",{className:"space-y-3",children:a.queries.map((m,y)=>i.jsxs(ne,{children:[i.jsx(re,{className:"py-3",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs(oe,{className:"text-sm",children:["Query #",y+1]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(Ne,{variant:"outline",children:u(m.duration_ms)}),m.rows_affected!==null&&i.jsxs(Ne,{variant:"secondary",children:[m.rows_affected," rows"]})]})]})}),i.jsx(se,{children:i.jsxs("div",{className:"space-y-2",children:[i.jsx(bn,{className:"h-[100px] rounded-md border p-2",children:i.jsx("pre",{className:"text-xs",children:m.sql})}),m.parameters&&m.parameters.length>0&&i.jsxs("div",{children:[i.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Parameters:"}),i.jsx("code",{className:"text-xs bg-muted px-2 py-1 rounded",children:JSON.stringify(m.parameters)})]})]})})]},m.id))})}),i.jsx(Ze,{value:"errors",className:"space-y-4 mt-4",children:a.exceptions.length===0?i.jsx("p",{className:"text-center text-muted-foreground py-8",children:"No exceptions occurred"}):i.jsx("div",{className:"space-y-3",children:a.exceptions.map(m=>i.jsxs(ne,{className:"border-destructive",children:[i.jsx(re,{className:"py-3",children:i.jsx("div",{className:"flex items-center justify-between",children:i.jsxs(oe,{className:"text-sm flex items-center gap-2",children:[i.jsx(so,{className:"h-4 w-4 text-destructive"}),m.exception_type]})})}),i.jsx(se,{children:i.jsxs("div",{className:"space-y-2",children:[m.exception_value&&i.jsx("p",{className:"text-sm",children:m.exception_value}),i.jsx(bn,{className:"h-[200px] rounded-md border border-destructive/20 p-2",children:i.jsx("pre",{className:"text-xs text-destructive",children:m.traceback})})]})})]},m.id))})})]})]}):null,p=()=>!r||n!=="query"?null:i.jsx("div",{className:"space-y-4",children:i.jsx("p",{className:"text-muted-foreground",children:"Query details view"})}),w=()=>!r||n!=="exception"?null:i.jsx("div",{className:"space-y-4",children:i.jsx("p",{className:"text-muted-foreground",children:"Exception details view"})});return i.jsx(IM,{open:e,onOpenChange:t,children:i.jsx(N1,{side:"bottom",className:"h-[80vh] p-0",children:i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsx(E1,{className:"px-6 py-4 border-b",children:i.jsxs(R1,{className:"flex items-center justify-between",children:[i.jsxs("span",{children:[n==="request"&&"Request Details",n==="query"&&"Query Details",n==="exception"&&"Exception Details"]}),i.jsx(ve,{variant:"ghost",size:"icon",onClick:()=>t(!1),children:i.jsx(yE,{className:"h-4 w-4"})})]})}),i.jsxs(bn,{className:"flex-1 px-6 py-4",children:[n==="request"&&h(),n==="query"&&p(),n==="exception"&&w()]})]})})})}function U1(e){const t=typeof e=="string"?new Date(e):e,r=new Date().getTime()-t.getTime(),o=Math.floor(r/1e3),s=Math.floor(o/60),a=Math.floor(s/60);return o<60?`${o}s ago`:s<60?`${s}m ago`:a<24?`${a}h ago`:t.toLocaleDateString()+" "+t.toLocaleTimeString()}function JM(){const[e,t]=f.useState(!1),[n,r]=f.useState(100),{openDetail:o}=Cs(),{data:s,isLoading:a}=rt({queryKey:["queries",e,n],queryFn:()=>Be.getQueries({limit:100,slow_only:e,slow_threshold:n}),refetchInterval:5e3});if(a)return i.jsx("div",{className:"text-center py-8",children:"Loading queries..."});const l=u=>u?u<1e3?`${u.toFixed(0)}ms`:`${(u/1e3).toFixed(2)}s`:"0ms",c=u=>u?u<50?"success":u<100?"secondary":u<500?"warning":"destructive":"secondary";return i.jsxs("div",{className:"space-y-4",children:[i.jsx("div",{className:"flex items-center justify-between p-4 border rounded-lg",children:i.jsxs("div",{className:"flex items-center space-x-4",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx($e,{id:"slow-only",checked:e,onCheckedChange:t}),i.jsx(ee,{htmlFor:"slow-only",children:"Show slow queries only"})]}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx(ee,{htmlFor:"threshold",children:"Slow threshold (ms):"}),i.jsx(hr,{id:"threshold",type:"number",value:n,onChange:u=>r(Number(u.target.value)),className:"w-24"})]})]})}),i.jsxs("div",{className:"space-y-2",children:[s==null?void 0:s.map(u=>i.jsx("div",{className:"p-4 border rounded-lg hover:bg-muted/50 cursor-pointer transition-colors",onClick:()=>o("request",u.request_id),children:i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-start justify-between",children:[i.jsx("div",{className:"flex-1 mr-4",children:i.jsx("code",{className:"text-xs bg-muted px-2 py-1 rounded block overflow-x-auto",children:u.sql})}),i.jsx(Ne,{variant:c(u.duration_ms),children:l(u.duration_ms)})]}),i.jsxs("div",{className:"flex items-center space-x-4 text-xs text-muted-foreground",children:[i.jsxs("div",{className:"flex items-center space-x-1",children:[i.jsx(Af,{className:"h-3 w-3"}),i.jsx("span",{children:U1(u.created_at)})]}),u.rows_affected!==null&&i.jsxs("div",{className:"flex items-center space-x-1",children:[i.jsx(Hl,{className:"h-3 w-3"}),i.jsxs("span",{children:[u.rows_affected," rows"]})]}),u.connection_name&&i.jsx("span",{className:"font-mono",children:u.connection_name}),u.duration_ms&&u.duration_ms>n&&i.jsxs("div",{className:"flex items-center space-x-1",children:[i.jsx(Iy,{className:"h-3 w-3 text-yellow-500"}),i.jsx("span",{className:"text-yellow-500",children:"Slow"})]})]}),u.parameters&&u.parameters.length>0&&i.jsxs("div",{className:"text-xs",children:[i.jsx("span",{className:"text-muted-foreground",children:"Parameters: "}),i.jsx("code",{className:"bg-muted px-1 rounded",children:JSON.stringify(u.parameters)})]})]})},u.id)),(s==null?void 0:s.length)===0&&i.jsx("div",{className:"text-center py-8 text-muted-foreground",children:e?"No slow queries found":"No queries captured yet"})]})]})}function eO(){const{openDetail:e}=Cs(),{data:t,isLoading:n}=rt({queryKey:["exceptions"],queryFn:()=>Be.getExceptions({limit:100}),refetchInterval:5e3});return n?i.jsx("div",{className:"text-center py-8",children:"Loading exceptions..."}):i.jsxs("div",{className:"space-y-2",children:[t==null?void 0:t.map(r=>i.jsx("div",{className:"p-4 border border-destructive/50 rounded-lg hover:bg-muted/50 cursor-pointer transition-colors",onClick:()=>e("request",r.request_id),children:i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-start justify-between",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx(Iy,{className:"h-4 w-4 text-destructive"}),i.jsx(Ne,{variant:"destructive",children:r.exception_type})]}),i.jsx(wE,{className:"h-4 w-4 text-muted-foreground"})]}),r.exception_value&&i.jsx("p",{className:"text-sm",children:r.exception_value}),i.jsxs("div",{className:"flex items-center space-x-2 text-xs text-muted-foreground",children:[i.jsx(Af,{className:"h-3 w-3"}),i.jsx("span",{children:U1(r.created_at)})]}),i.jsxs("details",{className:"text-xs",children:[i.jsx("summary",{className:"cursor-pointer text-muted-foreground hover:text-foreground",children:"View traceback preview"}),i.jsx("pre",{className:"mt-2 p-2 bg-muted rounded overflow-x-auto max-h-40 text-destructive",children:r.traceback})]})]})},r.id)),(t==null?void 0:t.length)===0&&i.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No exceptions captured yet"})]})}const tO=new Uj({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}}),nO="/__radar/";function rO(){return i.jsx(Hj,{client:tO,children:i.jsxs(tM,{children:[i.jsx(yN,{basename:nO,children:i.jsx(Gb,{children:i.jsxs(jn,{path:"/",element:i.jsx(l_,{}),children:[i.jsx(jn,{index:!0,element:i.jsx(sM,{})}),i.jsx(jn,{path:"requests",element:i.jsx(dM,{})}),i.jsx(jn,{path:"performance",element:i.jsx(fM,{})}),i.jsx(jn,{path:"database",element:i.jsx(sO,{})}),i.jsx(jn,{path:"exceptions",element:i.jsx(iO,{})}),i.jsx(jn,{path:"settings",element:i.jsx(SM,{})}),i.jsx(jn,{path:"*",element:i.jsx(Qb,{to:"/",replace:!0})})]})})}),i.jsx(oO,{})]})})}function oO(){const{isOpen:e,closeDetail:t,detailType:n,detailId:r}=Cs();return i.jsx(ZM,{open:e,onOpenChange:t,type:n,id:r})}function sO(){return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:"Database Monitoring"}),i.jsx("p",{className:"text-muted-foreground",children:"Track SQL queries and database performance"})]}),i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsx(oe,{children:"SQL Queries"}),i.jsx(_e,{children:"All database queries executed by your application"})]}),i.jsx(se,{children:i.jsx(JM,{})})]})]})}function iO(){return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-3xl font-bold tracking-tight",children:"Exception Tracking"}),i.jsx("p",{className:"text-muted-foreground",children:"Monitor and debug application exceptions"})]}),i.jsxs(ne,{children:[i.jsxs(re,{children:[i.jsx(oe,{children:"Exceptions"}),i.jsx(_e,{children:"All exceptions caught during request processing"})]}),i.jsx(se,{children:i.jsx(eO,{})})]})]})}ru.createRoot(document.getElementById("root")).render(i.jsx(Nn.StrictMode,{children:i.jsx(rO,{})}));
|