@ai-sdk/devtools 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/index-CltCAda7.css +1 -0
- package/dist/client/assets/index-DgZG5_rI.js +220 -0
- package/dist/client/index.html +2 -2
- package/dist/index.js +91 -9
- package/package.json +3 -3
- package/src/integration.ts +4 -3
- package/src/middleware.ts +13 -6
- package/src/serialize.ts +111 -0
- package/src/viewer/client/components/media-components.tsx +127 -0
- package/src/viewer/client/components/message-components.tsx +34 -4
- package/src/viewer/client/components/output-components.tsx +26 -6
- package/src/viewer/client/components/shared-components.tsx +25 -4
- package/src/viewer/client/components/step-card.tsx +5 -2
- package/src/viewer/client/components/trace-timeline.tsx +16 -4
- package/src/viewer/client/media.ts +440 -0
- package/src/viewer/client/types.ts +19 -1
- package/src/viewer/client/utils.ts +44 -0
- package/dist/client/assets/index-Beo4T2zg.js +0 -200
- package/dist/client/assets/index-CIZI8r26.css +0 -1
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
function Sx(l,r){for(var o=0;o<r.length;o++){const i=r[o];if(typeof i!="string"&&!Array.isArray(i)){for(const u in i)if(u!=="default"&&!(u in l)){const f=Object.getOwnPropertyDescriptor(i,u);f&&Object.defineProperty(l,u,f.get?f:{enumerable:!0,get:()=>i[u]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))i(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&i(m)}).observe(document,{childList:!0,subtree:!0});function o(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function i(u){if(u.ep)return;u.ep=!0;const f=o(u);fetch(u.href,f)}})();function Bg(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Hu={exports:{}},lo={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var qp;function wx(){if(qp)return lo;qp=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(i,u,f){var m=null;if(f!==void 0&&(m=""+f),u.key!==void 0&&(m=""+u.key),"key"in u){f={};for(var p in u)p!=="key"&&(f[p]=u[p])}else f=u;return u=f.ref,{$$typeof:l,type:i,key:m,ref:u!==void 0?u:null,props:f}}return lo.Fragment=r,lo.jsx=o,lo.jsxs=o,lo}var Vp;function Tx(){return Vp||(Vp=1,Hu.exports=wx()),Hu.exports}var d=Tx(),ku={exports:{}},ao={},Bu={exports:{}},Yu={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Gp;function Ex(){return Gp||(Gp=1,(function(l){function r(O,X){var W=O.length;O.push(X);e:for(;0<W;){var re=W-1>>>1,P=O[re];if(0<u(P,X))O[re]=X,O[W]=P,W=re;else break e}}function o(O){return O.length===0?null:O[0]}function i(O){if(O.length===0)return null;var X=O[0],W=O.pop();if(W!==X){O[0]=W;e:for(var re=0,P=O.length,A=P>>>1;re<A;){var G=2*(re+1)-1,ne=O[G],oe=G+1,fe=O[oe];if(0>u(ne,W))oe<P&&0>u(fe,ne)?(O[re]=fe,O[oe]=W,re=oe):(O[re]=ne,O[G]=W,re=G);else if(oe<P&&0>u(fe,W))O[re]=fe,O[oe]=W,re=oe;else break e}}return X}function u(O,X){var W=O.sortIndex-X.sortIndex;return W!==0?W:O.id-X.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var m=Date,p=m.now();l.unstable_now=function(){return m.now()-p}}var v=[],g=[],b=1,y=null,w=3,T=!1,j=!1,E=!1,_=!1,M=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function L(O){for(var X=o(g);X!==null;){if(X.callback===null)i(g);else if(X.startTime<=O)i(g),X.sortIndex=X.expirationTime,r(v,X);else break;X=o(g)}}function F(O){if(E=!1,L(O),!j)if(o(v)!==null)j=!0,te||(te=!0,ae());else{var X=o(g);X!==null&&le(F,X.startTime-O)}}var te=!1,B=-1,N=5,z=-1;function $(){return _?!0:!(l.unstable_now()-z<N)}function ee(){if(_=!1,te){var O=l.unstable_now();z=O;var X=!0;try{e:{j=!1,E&&(E=!1,U(B),B=-1),T=!0;var W=w;try{t:{for(L(O),y=o(v);y!==null&&!(y.expirationTime>O&&$());){var re=y.callback;if(typeof re=="function"){y.callback=null,w=y.priorityLevel;var P=re(y.expirationTime<=O);if(O=l.unstable_now(),typeof P=="function"){y.callback=P,L(O),X=!0;break t}y===o(v)&&i(v),L(O)}else i(v);y=o(v)}if(y!==null)X=!0;else{var A=o(g);A!==null&&le(F,A.startTime-O),X=!1}}break e}finally{y=null,w=W,T=!1}X=void 0}}finally{X?ae():te=!1}}}var ae;if(typeof q=="function")ae=function(){q(ee)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,I=J.port2;J.port1.onmessage=ee,ae=function(){I.postMessage(null)}}else ae=function(){M(ee,0)};function le(O,X){B=M(function(){O(l.unstable_now())},X)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(O){O.callback=null},l.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<O?Math.floor(1e3/O):5},l.unstable_getCurrentPriorityLevel=function(){return w},l.unstable_next=function(O){switch(w){case 1:case 2:case 3:var X=3;break;default:X=w}var W=w;w=X;try{return O()}finally{w=W}},l.unstable_requestPaint=function(){_=!0},l.unstable_runWithPriority=function(O,X){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var W=w;w=O;try{return X()}finally{w=W}},l.unstable_scheduleCallback=function(O,X,W){var re=l.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?re+W:re):W=re,O){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=W+P,O={id:b++,callback:X,priorityLevel:O,startTime:W,expirationTime:P,sortIndex:-1},W>re?(O.sortIndex=W,r(g,O),o(v)===null&&O===o(g)&&(E?(U(B),B=-1):E=!0,le(F,W-re))):(O.sortIndex=P,r(v,O),j||T||(j=!0,te||(te=!0,ae()))),O},l.unstable_shouldYield=$,l.unstable_wrapCallback=function(O){var X=w;return function(){var W=w;w=X;try{return O.apply(this,arguments)}finally{w=W}}}})(Yu)),Yu}var Xp;function Cx(){return Xp||(Xp=1,Bu.exports=Ex()),Bu.exports}var qu={exports:{}},xe={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Qp;function Ax(){if(Qp)return xe;Qp=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),w=Symbol.iterator;function T(A){return A===null||typeof A!="object"?null:(A=w&&A[w]||A["@@iterator"],typeof A=="function"?A:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,_={};function M(A,G,ne){this.props=A,this.context=G,this.refs=_,this.updater=ne||j}M.prototype.isReactComponent={},M.prototype.setState=function(A,G){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,G,"setState")},M.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function U(){}U.prototype=M.prototype;function q(A,G,ne){this.props=A,this.context=G,this.refs=_,this.updater=ne||j}var L=q.prototype=new U;L.constructor=q,E(L,M.prototype),L.isPureReactComponent=!0;var F=Array.isArray;function te(){}var B={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function z(A,G,ne){var oe=ne.ref;return{$$typeof:l,type:A,key:G,ref:oe!==void 0?oe:null,props:ne}}function $(A,G){return z(A.type,G,A.props)}function ee(A){return typeof A=="object"&&A!==null&&A.$$typeof===l}function ae(A){var G={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ne){return G[ne]})}var J=/\/+/g;function I(A,G){return typeof A=="object"&&A!==null&&A.key!=null?ae(""+A.key):G.toString(36)}function le(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(te,te):(A.status="pending",A.then(function(G){A.status==="pending"&&(A.status="fulfilled",A.value=G)},function(G){A.status==="pending"&&(A.status="rejected",A.reason=G)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function O(A,G,ne,oe,fe){var me=typeof A;(me==="undefined"||me==="boolean")&&(A=null);var be=!1;if(A===null)be=!0;else switch(me){case"bigint":case"string":case"number":be=!0;break;case"object":switch(A.$$typeof){case l:case r:be=!0;break;case b:return be=A._init,O(be(A._payload),G,ne,oe,fe)}}if(be)return fe=fe(A),be=oe===""?"."+I(A,0):oe,F(fe)?(ne="",be!=null&&(ne=be.replace(J,"$&/")+"/"),O(fe,G,ne,"",function(xt){return xt})):fe!=null&&(ee(fe)&&(fe=$(fe,ne+(fe.key==null||A&&A.key===fe.key?"":(""+fe.key).replace(J,"$&/")+"/")+be)),G.push(fe)),1;be=0;var qe=oe===""?".":oe+":";if(F(A))for(var ye=0;ye<A.length;ye++)oe=A[ye],me=qe+I(oe,ye),be+=O(oe,G,ne,me,fe);else if(ye=T(A),typeof ye=="function")for(A=ye.call(A),ye=0;!(oe=A.next()).done;)oe=oe.value,me=qe+I(oe,ye++),be+=O(oe,G,ne,me,fe);else if(me==="object"){if(typeof A.then=="function")return O(le(A),G,ne,oe,fe);throw G=String(A),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return be}function X(A,G,ne){if(A==null)return A;var oe=[],fe=0;return O(A,oe,"","",function(me){return G.call(ne,me,fe++)}),oe}function W(A){if(A._status===-1){var G=A._result;G=G(),G.then(function(ne){(A._status===0||A._status===-1)&&(A._status=1,A._result=ne)},function(ne){(A._status===0||A._status===-1)&&(A._status=2,A._result=ne)}),A._status===-1&&(A._status=0,A._result=G)}if(A._status===1)return A._result.default;throw A._result}var re=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},P={map:X,forEach:function(A,G,ne){X(A,function(){G.apply(this,arguments)},ne)},count:function(A){var G=0;return X(A,function(){G++}),G},toArray:function(A){return X(A,function(G){return G})||[]},only:function(A){if(!ee(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return xe.Activity=y,xe.Children=P,xe.Component=M,xe.Fragment=o,xe.Profiler=u,xe.PureComponent=q,xe.StrictMode=i,xe.Suspense=v,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,xe.__COMPILER_RUNTIME={__proto__:null,c:function(A){return B.H.useMemoCache(A)}},xe.cache=function(A){return function(){return A.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(A,G,ne){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var oe=E({},A.props),fe=A.key;if(G!=null)for(me in G.key!==void 0&&(fe=""+G.key),G)!N.call(G,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&G.ref===void 0||(oe[me]=G[me]);var me=arguments.length-2;if(me===1)oe.children=ne;else if(1<me){for(var be=Array(me),qe=0;qe<me;qe++)be[qe]=arguments[qe+2];oe.children=be}return z(A.type,fe,oe)},xe.createContext=function(A){return A={$$typeof:m,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},xe.createElement=function(A,G,ne){var oe,fe={},me=null;if(G!=null)for(oe in G.key!==void 0&&(me=""+G.key),G)N.call(G,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(fe[oe]=G[oe]);var be=arguments.length-2;if(be===1)fe.children=ne;else if(1<be){for(var qe=Array(be),ye=0;ye<be;ye++)qe[ye]=arguments[ye+2];fe.children=qe}if(A&&A.defaultProps)for(oe in be=A.defaultProps,be)fe[oe]===void 0&&(fe[oe]=be[oe]);return z(A,me,fe)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(A){return{$$typeof:p,render:A}},xe.isValidElement=ee,xe.lazy=function(A){return{$$typeof:b,_payload:{_status:-1,_result:A},_init:W}},xe.memo=function(A,G){return{$$typeof:g,type:A,compare:G===void 0?null:G}},xe.startTransition=function(A){var G=B.T,ne={};B.T=ne;try{var oe=A(),fe=B.S;fe!==null&&fe(ne,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(te,re)}catch(me){re(me)}finally{G!==null&&ne.types!==null&&(G.types=ne.types),B.T=G}},xe.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},xe.use=function(A){return B.H.use(A)},xe.useActionState=function(A,G,ne){return B.H.useActionState(A,G,ne)},xe.useCallback=function(A,G){return B.H.useCallback(A,G)},xe.useContext=function(A){return B.H.useContext(A)},xe.useDebugValue=function(){},xe.useDeferredValue=function(A,G){return B.H.useDeferredValue(A,G)},xe.useEffect=function(A,G){return B.H.useEffect(A,G)},xe.useEffectEvent=function(A){return B.H.useEffectEvent(A)},xe.useId=function(){return B.H.useId()},xe.useImperativeHandle=function(A,G,ne){return B.H.useImperativeHandle(A,G,ne)},xe.useInsertionEffect=function(A,G){return B.H.useInsertionEffect(A,G)},xe.useLayoutEffect=function(A,G){return B.H.useLayoutEffect(A,G)},xe.useMemo=function(A,G){return B.H.useMemo(A,G)},xe.useOptimistic=function(A,G){return B.H.useOptimistic(A,G)},xe.useReducer=function(A,G,ne){return B.H.useReducer(A,G,ne)},xe.useRef=function(A){return B.H.useRef(A)},xe.useState=function(A){return B.H.useState(A)},xe.useSyncExternalStore=function(A,G,ne){return B.H.useSyncExternalStore(A,G,ne)},xe.useTransition=function(){return B.H.useTransition()},xe.version="19.2.6",xe}var Zp;function bf(){return Zp||(Zp=1,qu.exports=Ax()),qu.exports}var Vu={exports:{}},bt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var $p;function Nx(){if($p)return bt;$p=1;var l=bf();function r(v){var g="https://react.dev/errors/"+v;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var i={d:{f:o,r:function(){throw Error(r(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(v,g,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:y==null?null:""+y,children:v,containerInfo:g,implementation:b}}var m=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(v,g){if(v==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,bt.createPortal=function(v,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(r(299));return f(v,g,null,b)},bt.flushSync=function(v){var g=m.T,b=i.p;try{if(m.T=null,i.p=2,v)return v()}finally{m.T=g,i.p=b,i.d.f()}},bt.preconnect=function(v,g){typeof v=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,i.d.C(v,g))},bt.prefetchDNS=function(v){typeof v=="string"&&i.d.D(v)},bt.preinit=function(v,g){if(typeof v=="string"&&g&&typeof g.as=="string"){var b=g.as,y=p(b,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,T=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?i.d.S(v,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:y,integrity:w,fetchPriority:T}):b==="script"&&i.d.X(v,{crossOrigin:y,integrity:w,fetchPriority:T,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},bt.preinitModule=function(v,g){if(typeof v=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=p(g.as,g.crossOrigin);i.d.M(v,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&i.d.M(v)},bt.preload=function(v,g){if(typeof v=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,y=p(b,g.crossOrigin);i.d.L(v,b,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},bt.preloadModule=function(v,g){if(typeof v=="string")if(g){var b=p(g.as,g.crossOrigin);i.d.m(v,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else i.d.m(v)},bt.requestFormReset=function(v){i.d.r(v)},bt.unstable_batchedUpdates=function(v,g){return v(g)},bt.useFormState=function(v,g,b){return m.H.useFormState(v,g,b)},bt.useFormStatus=function(){return m.H.useHostTransitionStatus()},bt.version="19.2.6",bt}var Kp;function Yg(){if(Kp)return Vu.exports;Kp=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),Vu.exports=Nx(),Vu.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Wp;function jx(){if(Wp)return ao;Wp=1;var l=Cx(),r=bf(),o=Yg();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(f(e)!==e)throw Error(i(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(i(188));return t!==e?null:e}for(var n=e,a=t;;){var s=n.return;if(s===null)break;var c=s.alternate;if(c===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===n)return v(s),e;if(c===a)return v(s),t;c=c.sibling}throw Error(i(188))}if(n.return!==a.return)n=s,a=c;else{for(var h=!1,x=s.child;x;){if(x===n){h=!0,n=s,a=c;break}if(x===a){h=!0,a=s,n=c;break}x=x.sibling}if(!h){for(x=c.child;x;){if(x===n){h=!0,n=c,a=s;break}if(x===a){h=!0,a=c,n=s;break}x=x.sibling}if(!h)throw Error(i(189))}}if(n.alternate!==a)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,w=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),q=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function ae(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var J=Symbol.for("react.client.reference");function I(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===J?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case M:return"Profiler";case _:return"StrictMode";case F:return"Suspense";case te:return"SuspenseList";case z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case q:return e.displayName||"Context";case U:return(e._context.displayName||"Context")+".Consumer";case L:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B:return t=e.displayName||null,t!==null?t:I(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return I(e(t))}catch{}}return null}var le=Array.isArray,O=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},re=[],P=-1;function A(e){return{current:e}}function G(e){0>P||(e.current=re[P],re[P]=null,P--)}function ne(e,t){P++,re[P]=e.current,e.current=t}var oe=A(null),fe=A(null),me=A(null),be=A(null);function qe(e,t){switch(ne(me,t),ne(fe,e),ne(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=fp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(oe),ne(oe,e)}function ye(){G(oe),G(fe),G(me)}function xt(e){e.memoizedState!==null&&ne(be,e);var t=oe.current,n=fp(t,e.type);t!==n&&(ne(fe,e),ne(oe,n))}function ot(e){fe.current===e&&(G(oe),G(fe)),be.current===e&&(G(be),Ir._currentValue=W)}var Nt,St;function he(e){if(Nt===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Nt=t&&t[1]||"",St=-1<n.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Nt+e+St}var In=!1;function el(e,t){if(!e||In)return"";In=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(V){var Y=V}Reflect.construct(e,[],K)}else{try{K.call()}catch(V){Y=V}e.call(K.prototype)}}else{try{throw Error()}catch(V){Y=V}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(V){if(V&&Y&&typeof V.stack=="string")return[V.stack,Y.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),h=c[0],x=c[1];if(h&&x){var C=h.split(`
|
|
44
|
+
`),k=x.split(`
|
|
45
|
+
`);for(s=a=0;a<C.length&&!C[a].includes("DetermineComponentFrameRoot");)a++;for(;s<k.length&&!k[s].includes("DetermineComponentFrameRoot");)s++;if(a===C.length||s===k.length)for(a=C.length-1,s=k.length-1;1<=a&&0<=s&&C[a]!==k[s];)s--;for(;1<=a&&0<=s;a--,s--)if(C[a]!==k[s]){if(a!==1||s!==1)do if(a--,s--,0>s||C[a]!==k[s]){var Q=`
|
|
46
|
+
`+C[a].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),Q}while(1<=a&&0<=s);break}}}finally{In=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?he(n):""}function zl(e,t){switch(e.tag){case 26:case 27:case 5:return he(e.type);case 16:return he("Lazy");case 13:return e.child!==t&&t!==null?he("Suspense Fallback"):he("Suspense");case 19:return he("SuspenseList");case 0:case 15:return el(e.type,!1);case 11:return el(e.type.render,!1);case 1:return el(e.type,!0);case 31:return he("Activity");default:return""}}function ua(e){try{var t="",n=null;do t+=zl(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var hn=Object.prototype.hasOwnProperty,pn=l.unstable_scheduleCallback,fa=l.unstable_cancelCallback,Ss=l.unstable_shouldYield,Dl=l.unstable_requestPaint,wt=l.unstable_now,yo=l.unstable_getCurrentPriorityLevel,bo=l.unstable_ImmediatePriority,xo=l.unstable_UserBlockingPriority,On=l.unstable_NormalPriority,ws=l.unstable_LowPriority,dr=l.unstable_IdlePriority,Ts=l.log,Ll=l.unstable_setDisableYieldValue,tl=null,Tt=null;function gn(e){if(typeof Ts=="function"&&Ll(e),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(tl,e)}catch{}}var Et=Math.clz32?Math.clz32:ve,Es=Math.log,Cs=Math.LN2;function ve(e){return e>>>=0,e===0?32:31-(Es(e)/Cs|0)|0}var Oe=256,ze=262144,Ee=4194304;function Le(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function it(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var s=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var x=a&134217727;return x!==0?(a=x&~c,a!==0?s=Le(a):(h&=x,h!==0?s=Le(h):n||(n=x&~e,n!==0&&(s=Le(n))))):(x=a&~c,x!==0?s=Le(x):h!==0?s=Le(h):n||(n=a&~e,n!==0&&(s=Le(n)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:s}function Pe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function vn(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function jt(){var e=Ee;return Ee<<=1,(Ee&62914560)===0&&(Ee=4194304),e}function rn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Rt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $t(e,t,n,a,s,c){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var x=e.entanglements,C=e.expirationTimes,k=e.hiddenUpdates;for(n=h&~n;0<n;){var Q=31-Et(n),K=1<<Q;x[Q]=0,C[Q]=-1;var Y=k[Q];if(Y!==null)for(k[Q]=null,Q=0;Q<Y.length;Q++){var V=Y[Q];V!==null&&(V.lane&=-536870913)}n&=~K}a!==0&&Ul(e,a,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function Ul(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Et(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function mr(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Et(n),s=1<<a;s&t|e[a]&t&&(e[a]|=t),n&=~s}}function Kf(e,t){var n=t&-t;return n=(n&42)!==0?1:As(n),(n&(e.suspendedLanes|t))!==0?0:n}function As(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ns(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Wf(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Dp(e.type))}function Jf(e,t){var n=X.p;try{return X.p=e,t()}finally{X.p=n}}var nl=Math.random().toString(36).slice(2),ht="__reactFiber$"+nl,Ot="__reactProps$"+nl,da="__reactContainer$"+nl,js="__reactEvents$"+nl,uy="__reactListeners$"+nl,fy="__reactHandles$"+nl,Pf="__reactResources$"+nl,hr="__reactMarker$"+nl;function Rs(e){delete e[ht],delete e[Ot],delete e[js],delete e[uy],delete e[fy]}function ma(e){var t=e[ht];if(t)return t;for(var n=e.parentNode;n;){if(t=n[da]||n[ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=yp(e);e!==null;){if(n=e[ht])return n;e=yp(e)}return t}e=n,n=e.parentNode}return null}function ha(e){if(e=e[ht]||e[da]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function pr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function pa(e){var t=e[Pf];return t||(t=e[Pf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ft(e){e[hr]=!0}var Ff=new Set,If={};function Hl(e,t){ga(e,t),ga(e+"Capture",t)}function ga(e,t){for(If[e]=t,e=0;e<t.length;e++)Ff.add(t[e])}var dy=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ed={},td={};function my(e){return hn.call(td,e)?!0:hn.call(ed,e)?!1:dy.test(e)?td[e]=!0:(ed[e]=!0,!1)}function So(e,t,n){if(my(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function wo(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Mn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hy(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var s=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(h){n=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Os(e){if(!e._valueTracker){var t=nd(e)?"checked":"value";e._valueTracker=hy(e,t,""+e[t])}}function ld(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=nd(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function To(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var py=/[\n"\\]/g;function Wt(e){return e.replace(py,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ms(e,t,n,a,s,c,h,x){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Kt(t)):e.value!==""+Kt(t)&&(e.value=""+Kt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?_s(e,h,Kt(t)):n!=null?_s(e,h,Kt(n)):a!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Kt(x):e.removeAttribute("name")}function ad(e,t,n,a,s,c,h,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Os(e);return}n=n!=null?""+Kt(n):"",t=t!=null?""+Kt(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=x?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Os(e)}function _s(e,t,n){t==="number"&&To(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function va(e,t,n,a){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Kt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,a&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function rd(e,t,n){if(t!=null&&(t=""+Kt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Kt(n):""}function od(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(i(92));if(le(a)){if(1<a.length)throw Error(i(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Kt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Os(e)}function ya(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gy=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function id(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||gy.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function sd(e,t,n){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var s in t)a=t[s],t.hasOwnProperty(s)&&n[s]!==a&&id(e,s,a)}else for(var c in t)t.hasOwnProperty(c)&&id(e,c,t[c])}function zs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vy=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),yy=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Eo(e){return yy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function _n(){}var Ds=null;function Ls(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ba=null,xa=null;function cd(e){var t=ha(e);if(t&&(e=t.stateNode)){var n=e[Ot]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ms(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Wt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var s=a[Ot]||null;if(!s)throw Error(i(90));Ms(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&ld(a)}break e;case"textarea":rd(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&va(e,!!n.multiple,t,!1)}}}var Us=!1;function ud(e,t,n){if(Us)return e(t,n);Us=!0;try{var a=e(t);return a}finally{if(Us=!1,(ba!==null||xa!==null)&&(fi(),ba&&(t=ba,e=xa,xa=ba=null,cd(t),e)))for(t=0;t<e.length;t++)cd(e[t])}}function gr(e,t){var n=e.stateNode;if(n===null)return null;var a=n[Ot]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(i(231,t,typeof n));return n}var zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hs=!1;if(zn)try{var vr={};Object.defineProperty(vr,"passive",{get:function(){Hs=!0}}),window.addEventListener("test",vr,vr),window.removeEventListener("test",vr,vr)}catch{Hs=!1}var ll=null,ks=null,Co=null;function fd(){if(Co)return Co;var e,t=ks,n=t.length,a,s="value"in ll?ll.value:ll.textContent,c=s.length;for(e=0;e<n&&t[e]===s[e];e++);var h=n-e;for(a=1;a<=h&&t[n-a]===s[c-a];a++);return Co=s.slice(e,1<a?1-a:void 0)}function Ao(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 No(){return!0}function dd(){return!1}function Mt(e){function t(n,a,s,c,h){this._reactName=n,this._targetInst=s,this.type=a,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?No:dd,this.isPropagationStopped=dd,this}return y(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=No)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=No)},persist:function(){},isPersistent:No}),t}var kl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jo=Mt(kl),yr=y({},kl,{view:0,detail:0}),by=Mt(yr),Bs,Ys,br,Ro=y({},yr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vs,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!==br&&(br&&e.type==="mousemove"?(Bs=e.screenX-br.screenX,Ys=e.screenY-br.screenY):Ys=Bs=0,br=e),Bs)},movementY:function(e){return"movementY"in e?e.movementY:Ys}}),md=Mt(Ro),xy=y({},Ro,{dataTransfer:0}),Sy=Mt(xy),wy=y({},yr,{relatedTarget:0}),qs=Mt(wy),Ty=y({},kl,{animationName:0,elapsedTime:0,pseudoElement:0}),Ey=Mt(Ty),Cy=y({},kl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ay=Mt(Cy),Ny=y({},kl,{data:0}),hd=Mt(Ny),jy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ry={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"},Oy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function My(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Oy[e])?!!t[e]:!1}function Vs(){return My}var _y=y({},yr,{key:function(e){if(e.key){var t=jy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ao(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ry[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vs,charCode:function(e){return e.type==="keypress"?Ao(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ao(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zy=Mt(_y),Dy=y({},Ro,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pd=Mt(Dy),Ly=y({},yr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vs}),Uy=Mt(Ly),Hy=y({},kl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ky=Mt(Hy),By=y({},Ro,{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}),Yy=Mt(By),qy=y({},kl,{newState:0,oldState:0}),Vy=Mt(qy),Gy=[9,13,27,32],Gs=zn&&"CompositionEvent"in window,xr=null;zn&&"documentMode"in document&&(xr=document.documentMode);var Xy=zn&&"TextEvent"in window&&!xr,gd=zn&&(!Gs||xr&&8<xr&&11>=xr),vd=" ",yd=!1;function bd(e,t){switch(e){case"keyup":return Gy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sa=!1;function Qy(e,t){switch(e){case"compositionend":return xd(t);case"keypress":return t.which!==32?null:(yd=!0,vd);case"textInput":return e=t.data,e===vd&&yd?null:e;default:return null}}function Zy(e,t){if(Sa)return e==="compositionend"||!Gs&&bd(e,t)?(e=fd(),Co=ks=ll=null,Sa=!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 gd&&t.locale!=="ko"?null:t.data;default:return null}}var $y={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 Sd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$y[e.type]:t==="textarea"}function wd(e,t,n,a){ba?xa?xa.push(a):xa=[a]:ba=a,t=yi(t,"onChange"),0<t.length&&(n=new jo("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Sr=null,wr=null;function Ky(e){ap(e,0)}function Oo(e){var t=pr(e);if(ld(t))return e}function Td(e,t){if(e==="change")return t}var Ed=!1;if(zn){var Xs;if(zn){var Qs="oninput"in document;if(!Qs){var Cd=document.createElement("div");Cd.setAttribute("oninput","return;"),Qs=typeof Cd.oninput=="function"}Xs=Qs}else Xs=!1;Ed=Xs&&(!document.documentMode||9<document.documentMode)}function Ad(){Sr&&(Sr.detachEvent("onpropertychange",Nd),wr=Sr=null)}function Nd(e){if(e.propertyName==="value"&&Oo(wr)){var t=[];wd(t,wr,e,Ls(e)),ud(Ky,t)}}function Wy(e,t,n){e==="focusin"?(Ad(),Sr=t,wr=n,Sr.attachEvent("onpropertychange",Nd)):e==="focusout"&&Ad()}function Jy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Oo(wr)}function Py(e,t){if(e==="click")return Oo(t)}function Fy(e,t){if(e==="input"||e==="change")return Oo(t)}function Iy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:Iy;function Tr(e,t){if(Ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var s=n[a];if(!hn.call(t,s)||!Ht(e[s],t[s]))return!1}return!0}function jd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rd(e,t){var n=jd(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=jd(n)}}function Od(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Od(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Md(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=To(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=To(e.document)}return t}function Zs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var eb=zn&&"documentMode"in document&&11>=document.documentMode,wa=null,$s=null,Er=null,Ks=!1;function _d(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ks||wa==null||wa!==To(a)||(a=wa,"selectionStart"in a&&Zs(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Er&&Tr(Er,a)||(Er=a,a=yi($s,"onSelect"),0<a.length&&(t=new jo("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=wa)))}function Bl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ta={animationend:Bl("Animation","AnimationEnd"),animationiteration:Bl("Animation","AnimationIteration"),animationstart:Bl("Animation","AnimationStart"),transitionrun:Bl("Transition","TransitionRun"),transitionstart:Bl("Transition","TransitionStart"),transitioncancel:Bl("Transition","TransitionCancel"),transitionend:Bl("Transition","TransitionEnd")},Ws={},zd={};zn&&(zd=document.createElement("div").style,"AnimationEvent"in window||(delete Ta.animationend.animation,delete Ta.animationiteration.animation,delete Ta.animationstart.animation),"TransitionEvent"in window||delete Ta.transitionend.transition);function Yl(e){if(Ws[e])return Ws[e];if(!Ta[e])return e;var t=Ta[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in zd)return Ws[e]=t[n];return e}var Dd=Yl("animationend"),Ld=Yl("animationiteration"),Ud=Yl("animationstart"),tb=Yl("transitionrun"),nb=Yl("transitionstart"),lb=Yl("transitioncancel"),Hd=Yl("transitionend"),kd=new Map,Js="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Js.push("scrollEnd");function on(e,t){kd.set(e,t),Hl(t,[e])}var Mo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Jt=[],Ea=0,Ps=0;function _o(){for(var e=Ea,t=Ps=Ea=0;t<e;){var n=Jt[t];Jt[t++]=null;var a=Jt[t];Jt[t++]=null;var s=Jt[t];Jt[t++]=null;var c=Jt[t];if(Jt[t++]=null,a!==null&&s!==null){var h=a.pending;h===null?s.next=s:(s.next=h.next,h.next=s),a.pending=s}c!==0&&Bd(n,s,c)}}function zo(e,t,n,a){Jt[Ea++]=e,Jt[Ea++]=t,Jt[Ea++]=n,Jt[Ea++]=a,Ps|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Fs(e,t,n,a){return zo(e,t,n,a),Do(e)}function ql(e,t){return zo(e,null,null,t),Do(e)}function Bd(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var s=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-Et(n),e=c.hiddenUpdates,a=e[s],a===null?e[s]=[t]:a.push(t),t.lane=n|536870912),c):null}function Do(e){if(50<Zr)throw Zr=0,iu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ca={};function ab(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,n,a){return new ab(e,t,n,a)}function Is(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dn(e,t){var n=e.alternate;return n===null?(n=kt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Yd(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Lo(e,t,n,a,s,c){var h=0;if(a=e,typeof e=="function")Is(e)&&(h=1);else if(typeof e=="string")h=cx(e,n,oe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case z:return e=kt(31,n,t,s),e.elementType=z,e.lanes=c,e;case E:return Vl(n.children,s,c,t);case _:h=8,s|=24;break;case M:return e=kt(12,n,t,s|2),e.elementType=M,e.lanes=c,e;case F:return e=kt(13,n,t,s),e.elementType=F,e.lanes=c,e;case te:return e=kt(19,n,t,s),e.elementType=te,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q:h=10;break e;case U:h=9;break e;case L:h=11;break e;case B:h=14;break e;case N:h=16,a=null;break e}h=29,n=Error(i(130,e===null?"null":typeof e,"")),a=null}return t=kt(h,n,t,s),t.elementType=e,t.type=a,t.lanes=c,t}function Vl(e,t,n,a){return e=kt(7,e,a,t),e.lanes=n,e}function ec(e,t,n){return e=kt(6,e,null,t),e.lanes=n,e}function qd(e){var t=kt(18,null,null,0);return t.stateNode=e,t}function tc(e,t,n){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Vd=new WeakMap;function Pt(e,t){if(typeof e=="object"&&e!==null){var n=Vd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:ua(t)},Vd.set(e,t),t)}return{value:e,source:t,stack:ua(t)}}var Aa=[],Na=0,Uo=null,Cr=0,Ft=[],It=0,al=null,yn=1,bn="";function Ln(e,t){Aa[Na++]=Cr,Aa[Na++]=Uo,Uo=e,Cr=t}function Gd(e,t,n){Ft[It++]=yn,Ft[It++]=bn,Ft[It++]=al,al=e;var a=yn;e=bn;var s=32-Et(a)-1;a&=~(1<<s),n+=1;var c=32-Et(t)+s;if(30<c){var h=s-s%5;c=(a&(1<<h)-1).toString(32),a>>=h,s-=h,yn=1<<32-Et(t)+s|n<<s|a,bn=c+e}else yn=1<<c|n<<s|a,bn=e}function nc(e){e.return!==null&&(Ln(e,1),Gd(e,1,0))}function lc(e){for(;e===Uo;)Uo=Aa[--Na],Aa[Na]=null,Cr=Aa[--Na],Aa[Na]=null;for(;e===al;)al=Ft[--It],Ft[It]=null,bn=Ft[--It],Ft[It]=null,yn=Ft[--It],Ft[It]=null}function Xd(e,t){Ft[It++]=yn,Ft[It++]=bn,Ft[It++]=al,yn=t.id,bn=t.overflow,al=e}var pt=null,Ge=null,Re=!1,rl=null,en=!1,ac=Error(i(519));function ol(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ar(Pt(t,e)),ac}function Qd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[ht]=e,t[Ot]=a,n){case"dialog":Ae("cancel",t),Ae("close",t);break;case"iframe":case"object":case"embed":Ae("load",t);break;case"video":case"audio":for(n=0;n<Kr.length;n++)Ae(Kr[n],t);break;case"source":Ae("error",t);break;case"img":case"image":case"link":Ae("error",t),Ae("load",t);break;case"details":Ae("toggle",t);break;case"input":Ae("invalid",t),ad(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ae("invalid",t);break;case"textarea":Ae("invalid",t),od(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||sp(t.textContent,n)?(a.popover!=null&&(Ae("beforetoggle",t),Ae("toggle",t)),a.onScroll!=null&&Ae("scroll",t),a.onScrollEnd!=null&&Ae("scrollend",t),a.onClick!=null&&(t.onclick=_n),t=!0):t=!1,t||ol(e,!0)}function Zd(e){for(pt=e.return;pt;)switch(pt.tag){case 5:case 31:case 13:en=!1;return;case 27:case 3:en=!0;return;default:pt=pt.return}}function ja(e){if(e!==pt)return!1;if(!Re)return Zd(e),Re=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||wu(e.type,e.memoizedProps)),n=!n),n&&Ge&&ol(e),Zd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Ge=vp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Ge=vp(e)}else t===27?(t=Ge,xl(e.type)?(e=Nu,Nu=null,Ge=e):Ge=t):Ge=pt?nn(e.stateNode.nextSibling):null;return!0}function Gl(){Ge=pt=null,Re=!1}function rc(){var e=rl;return e!==null&&(Lt===null?Lt=e:Lt.push.apply(Lt,e),rl=null),e}function Ar(e){rl===null?rl=[e]:rl.push(e)}var oc=A(null),Xl=null,Un=null;function il(e,t,n){ne(oc,t._currentValue),t._currentValue=n}function Hn(e){e._currentValue=oc.current,G(oc)}function ic(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function sc(e,t,n,a){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var h=s.child;c=c.firstContext;e:for(;c!==null;){var x=c;c=s;for(var C=0;C<t.length;C++)if(x.context===t[C]){c.lanes|=n,x=c.alternate,x!==null&&(x.lanes|=n),ic(c.return,n,e),a||(h=null);break e}c=x.next}}else if(s.tag===18){if(h=s.return,h===null)throw Error(i(341));h.lanes|=n,c=h.alternate,c!==null&&(c.lanes|=n),ic(h,n,e),h=null}else h=s.child;if(h!==null)h.return=s;else for(h=s;h!==null;){if(h===e){h=null;break}if(s=h.sibling,s!==null){s.return=h.return,h=s;break}h=h.return}s=h}}function Ra(e,t,n,a){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var h=s.alternate;if(h===null)throw Error(i(387));if(h=h.memoizedProps,h!==null){var x=s.type;Ht(s.pendingProps.value,h.value)||(e!==null?e.push(x):e=[x])}}else if(s===be.current){if(h=s.alternate,h===null)throw Error(i(387));h.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Ir):e=[Ir])}s=s.return}e!==null&&sc(t,e,n,a),t.flags|=262144}function Ho(e){for(e=e.firstContext;e!==null;){if(!Ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ql(e){Xl=e,Un=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function gt(e){return $d(Xl,e)}function ko(e,t){return Xl===null&&Ql(e),$d(e,t)}function $d(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Un===null){if(e===null)throw Error(i(308));Un=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Un=Un.next=t;return n}var rb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},ob=l.unstable_scheduleCallback,ib=l.unstable_NormalPriority,tt={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cc(){return{controller:new rb,data:new Map,refCount:0}}function Nr(e){e.refCount--,e.refCount===0&&ob(ib,function(){e.controller.abort()})}var jr=null,uc=0,Oa=0,Ma=null;function sb(e,t){if(jr===null){var n=jr=[];uc=0,Oa=mu(),Ma={status:"pending",value:void 0,then:function(a){n.push(a)}}}return uc++,t.then(Kd,Kd),t}function Kd(){if(--uc===0&&jr!==null){Ma!==null&&(Ma.status="fulfilled");var e=jr;jr=null,Oa=0,Ma=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function cb(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}var Wd=O.S;O.S=function(e,t){_h=wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&sb(e,t),Wd!==null&&Wd(e,t)};var Zl=A(null);function fc(){var e=Zl.current;return e!==null?e:Ve.pooledCache}function Bo(e,t){t===null?ne(Zl,Zl.current):ne(Zl,t.pool)}function Jd(){var e=fc();return e===null?null:{parent:tt._currentValue,pool:e}}var _a=Error(i(460)),dc=Error(i(474)),Yo=Error(i(542)),qo={then:function(){}};function Pd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Fd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(_n,_n),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,em(e),e;default:if(typeof t.status=="string")t.then(_n,_n);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=a}},function(a){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,em(e),e}throw Kl=t,_a}}function $l(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Kl=n,_a):n}}var Kl=null;function Id(){if(Kl===null)throw Error(i(459));var e=Kl;return Kl=null,e}function em(e){if(e===_a||e===Yo)throw Error(i(483))}var za=null,Rr=0;function Vo(e){var t=Rr;return Rr+=1,za===null&&(za=[]),Fd(za,e,t)}function Or(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Go(e,t){throw t.$$typeof===w?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function tm(e){function t(D,R){if(e){var H=D.deletions;H===null?(D.deletions=[R],D.flags|=16):H.push(R)}}function n(D,R){if(!e)return null;for(;R!==null;)t(D,R),R=R.sibling;return null}function a(D){for(var R=new Map;D!==null;)D.key!==null?R.set(D.key,D):R.set(D.index,D),D=D.sibling;return R}function s(D,R){return D=Dn(D,R),D.index=0,D.sibling=null,D}function c(D,R,H){return D.index=H,e?(H=D.alternate,H!==null?(H=H.index,H<R?(D.flags|=67108866,R):H):(D.flags|=67108866,R)):(D.flags|=1048576,R)}function h(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function x(D,R,H,Z){return R===null||R.tag!==6?(R=ec(H,D.mode,Z),R.return=D,R):(R=s(R,H),R.return=D,R)}function C(D,R,H,Z){var pe=H.type;return pe===E?Q(D,R,H.props.children,Z,H.key):R!==null&&(R.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===N&&$l(pe)===R.type)?(R=s(R,H.props),Or(R,H),R.return=D,R):(R=Lo(H.type,H.key,H.props,null,D.mode,Z),Or(R,H),R.return=D,R)}function k(D,R,H,Z){return R===null||R.tag!==4||R.stateNode.containerInfo!==H.containerInfo||R.stateNode.implementation!==H.implementation?(R=tc(H,D.mode,Z),R.return=D,R):(R=s(R,H.children||[]),R.return=D,R)}function Q(D,R,H,Z,pe){return R===null||R.tag!==7?(R=Vl(H,D.mode,Z,pe),R.return=D,R):(R=s(R,H),R.return=D,R)}function K(D,R,H){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=ec(""+R,D.mode,H),R.return=D,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case T:return H=Lo(R.type,R.key,R.props,null,D.mode,H),Or(H,R),H.return=D,H;case j:return R=tc(R,D.mode,H),R.return=D,R;case N:return R=$l(R),K(D,R,H)}if(le(R)||ae(R))return R=Vl(R,D.mode,H,null),R.return=D,R;if(typeof R.then=="function")return K(D,Vo(R),H);if(R.$$typeof===q)return K(D,ko(D,R),H);Go(D,R)}return null}function Y(D,R,H,Z){var pe=R!==null?R.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return pe!==null?null:x(D,R,""+H,Z);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case T:return H.key===pe?C(D,R,H,Z):null;case j:return H.key===pe?k(D,R,H,Z):null;case N:return H=$l(H),Y(D,R,H,Z)}if(le(H)||ae(H))return pe!==null?null:Q(D,R,H,Z,null);if(typeof H.then=="function")return Y(D,R,Vo(H),Z);if(H.$$typeof===q)return Y(D,R,ko(D,H),Z);Go(D,H)}return null}function V(D,R,H,Z,pe){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return D=D.get(H)||null,x(R,D,""+Z,pe);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case T:return D=D.get(Z.key===null?H:Z.key)||null,C(R,D,Z,pe);case j:return D=D.get(Z.key===null?H:Z.key)||null,k(R,D,Z,pe);case N:return Z=$l(Z),V(D,R,H,Z,pe)}if(le(Z)||ae(Z))return D=D.get(H)||null,Q(R,D,Z,pe,null);if(typeof Z.then=="function")return V(D,R,H,Vo(Z),pe);if(Z.$$typeof===q)return V(D,R,H,ko(R,Z),pe);Go(R,Z)}return null}function ue(D,R,H,Z){for(var pe=null,Me=null,de=R,we=R=0,je=null;de!==null&&we<H.length;we++){de.index>we?(je=de,de=null):je=de.sibling;var _e=Y(D,de,H[we],Z);if(_e===null){de===null&&(de=je);break}e&&de&&_e.alternate===null&&t(D,de),R=c(_e,R,we),Me===null?pe=_e:Me.sibling=_e,Me=_e,de=je}if(we===H.length)return n(D,de),Re&&Ln(D,we),pe;if(de===null){for(;we<H.length;we++)de=K(D,H[we],Z),de!==null&&(R=c(de,R,we),Me===null?pe=de:Me.sibling=de,Me=de);return Re&&Ln(D,we),pe}for(de=a(de);we<H.length;we++)je=V(de,D,we,H[we],Z),je!==null&&(e&&je.alternate!==null&&de.delete(je.key===null?we:je.key),R=c(je,R,we),Me===null?pe=je:Me.sibling=je,Me=je);return e&&de.forEach(function(Cl){return t(D,Cl)}),Re&&Ln(D,we),pe}function ge(D,R,H,Z){if(H==null)throw Error(i(151));for(var pe=null,Me=null,de=R,we=R=0,je=null,_e=H.next();de!==null&&!_e.done;we++,_e=H.next()){de.index>we?(je=de,de=null):je=de.sibling;var Cl=Y(D,de,_e.value,Z);if(Cl===null){de===null&&(de=je);break}e&&de&&Cl.alternate===null&&t(D,de),R=c(Cl,R,we),Me===null?pe=Cl:Me.sibling=Cl,Me=Cl,de=je}if(_e.done)return n(D,de),Re&&Ln(D,we),pe;if(de===null){for(;!_e.done;we++,_e=H.next())_e=K(D,_e.value,Z),_e!==null&&(R=c(_e,R,we),Me===null?pe=_e:Me.sibling=_e,Me=_e);return Re&&Ln(D,we),pe}for(de=a(de);!_e.done;we++,_e=H.next())_e=V(de,D,we,_e.value,Z),_e!==null&&(e&&_e.alternate!==null&&de.delete(_e.key===null?we:_e.key),R=c(_e,R,we),Me===null?pe=_e:Me.sibling=_e,Me=_e);return e&&de.forEach(function(xx){return t(D,xx)}),Re&&Ln(D,we),pe}function Ye(D,R,H,Z){if(typeof H=="object"&&H!==null&&H.type===E&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case T:e:{for(var pe=H.key;R!==null;){if(R.key===pe){if(pe=H.type,pe===E){if(R.tag===7){n(D,R.sibling),Z=s(R,H.props.children),Z.return=D,D=Z;break e}}else if(R.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===N&&$l(pe)===R.type){n(D,R.sibling),Z=s(R,H.props),Or(Z,H),Z.return=D,D=Z;break e}n(D,R);break}else t(D,R);R=R.sibling}H.type===E?(Z=Vl(H.props.children,D.mode,Z,H.key),Z.return=D,D=Z):(Z=Lo(H.type,H.key,H.props,null,D.mode,Z),Or(Z,H),Z.return=D,D=Z)}return h(D);case j:e:{for(pe=H.key;R!==null;){if(R.key===pe)if(R.tag===4&&R.stateNode.containerInfo===H.containerInfo&&R.stateNode.implementation===H.implementation){n(D,R.sibling),Z=s(R,H.children||[]),Z.return=D,D=Z;break e}else{n(D,R);break}else t(D,R);R=R.sibling}Z=tc(H,D.mode,Z),Z.return=D,D=Z}return h(D);case N:return H=$l(H),Ye(D,R,H,Z)}if(le(H))return ue(D,R,H,Z);if(ae(H)){if(pe=ae(H),typeof pe!="function")throw Error(i(150));return H=pe.call(H),ge(D,R,H,Z)}if(typeof H.then=="function")return Ye(D,R,Vo(H),Z);if(H.$$typeof===q)return Ye(D,R,ko(D,H),Z);Go(D,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,R!==null&&R.tag===6?(n(D,R.sibling),Z=s(R,H),Z.return=D,D=Z):(n(D,R),Z=ec(H,D.mode,Z),Z.return=D,D=Z),h(D)):n(D,R)}return function(D,R,H,Z){try{Rr=0;var pe=Ye(D,R,H,Z);return za=null,pe}catch(de){if(de===_a||de===Yo)throw de;var Me=kt(29,de,null,D.mode);return Me.lanes=Z,Me.return=D,Me}finally{}}}var Wl=tm(!0),nm=tm(!1),sl=!1;function mc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function cl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ul(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(De&2)!==0){var s=a.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),a.pending=t,t=Do(e),Bd(e,null,n),t}return zo(e,a,t,n),Do(e)}function Mr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,mr(e,n)}}function pc(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?s=c=h:c=c.next=h,n=n.next}while(n!==null);c===null?s=c=t:c=c.next=t}else s=c=t;n={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var gc=!1;function _r(){if(gc){var e=Ma;if(e!==null)throw e}}function zr(e,t,n,a){gc=!1;var s=e.updateQueue;sl=!1;var c=s.firstBaseUpdate,h=s.lastBaseUpdate,x=s.shared.pending;if(x!==null){s.shared.pending=null;var C=x,k=C.next;C.next=null,h===null?c=k:h.next=k,h=C;var Q=e.alternate;Q!==null&&(Q=Q.updateQueue,x=Q.lastBaseUpdate,x!==h&&(x===null?Q.firstBaseUpdate=k:x.next=k,Q.lastBaseUpdate=C))}if(c!==null){var K=s.baseState;h=0,Q=k=C=null,x=c;do{var Y=x.lane&-536870913,V=Y!==x.lane;if(V?(Ne&Y)===Y:(a&Y)===Y){Y!==0&&Y===Oa&&(gc=!0),Q!==null&&(Q=Q.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ue=e,ge=x;Y=t;var Ye=n;switch(ge.tag){case 1:if(ue=ge.payload,typeof ue=="function"){K=ue.call(Ye,K,Y);break e}K=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=ge.payload,Y=typeof ue=="function"?ue.call(Ye,K,Y):ue,Y==null)break e;K=y({},K,Y);break e;case 2:sl=!0}}Y=x.callback,Y!==null&&(e.flags|=64,V&&(e.flags|=8192),V=s.callbacks,V===null?s.callbacks=[Y]:V.push(Y))}else V={lane:Y,tag:x.tag,payload:x.payload,callback:x.callback,next:null},Q===null?(k=Q=V,C=K):Q=Q.next=V,h|=Y;if(x=x.next,x===null){if(x=s.shared.pending,x===null)break;V=x,x=V.next,V.next=null,s.lastBaseUpdate=V,s.shared.pending=null}}while(!0);Q===null&&(C=K),s.baseState=C,s.firstBaseUpdate=k,s.lastBaseUpdate=Q,c===null&&(s.shared.lanes=0),pl|=h,e.lanes=h,e.memoizedState=K}}function lm(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function am(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)lm(n[e],t)}var Da=A(null),Xo=A(0);function rm(e,t){e=Zn,ne(Xo,e),ne(Da,t),Zn=e|t.baseLanes}function vc(){ne(Xo,Zn),ne(Da,Da.current)}function yc(){Zn=Xo.current,G(Da),G(Xo)}var Bt=A(null),tn=null;function fl(e){var t=e.alternate;ne(Fe,Fe.current&1),ne(Bt,e),tn===null&&(t===null||Da.current!==null||t.memoizedState!==null)&&(tn=e)}function bc(e){ne(Fe,Fe.current),ne(Bt,e),tn===null&&(tn=e)}function om(e){e.tag===22?(ne(Fe,Fe.current),ne(Bt,e),tn===null&&(tn=e)):dl()}function dl(){ne(Fe,Fe.current),ne(Bt,Bt.current)}function Yt(e){G(Bt),tn===e&&(tn=null),G(Fe)}var Fe=A(0);function Qo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Cu(n)||Au(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var kn=0,Se=null,ke=null,nt=null,Zo=!1,La=!1,Jl=!1,$o=0,Dr=0,Ua=null,ub=0;function $e(){throw Error(i(321))}function xc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ht(e[n],t[n]))return!1;return!0}function Sc(e,t,n,a,s,c){return kn=c,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Gm:Uc,Jl=!1,c=n(a,s),Jl=!1,La&&(c=sm(t,n,a,s)),im(e),c}function im(e){O.H=Hr;var t=ke!==null&&ke.next!==null;if(kn=0,nt=ke=Se=null,Zo=!1,Dr=0,Ua=null,t)throw Error(i(300));e===null||lt||(e=e.dependencies,e!==null&&Ho(e)&&(lt=!0))}function sm(e,t,n,a){Se=e;var s=0;do{if(La&&(Ua=null),Dr=0,La=!1,25<=s)throw Error(i(301));if(s+=1,nt=ke=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}O.H=Xm,c=t(n,a)}while(La);return c}function fb(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?Lr(t):t,e=e.useState()[0],(ke!==null?ke.memoizedState:null)!==e&&(Se.flags|=1024),t}function wc(){var e=$o!==0;return $o=0,e}function Tc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ec(e){if(Zo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Zo=!1}kn=0,nt=ke=Se=null,La=!1,Dr=$o=0,Ua=null}function Ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?Se.memoizedState=nt=e:nt=nt.next=e,nt}function Ie(){if(ke===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=ke.next;var t=nt===null?Se.memoizedState:nt.next;if(t!==null)nt=t,ke=e;else{if(e===null)throw Se.alternate===null?Error(i(467)):Error(i(310));ke=e,e={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},nt===null?Se.memoizedState=nt=e:nt=nt.next=e}return nt}function Ko(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Lr(e){var t=Dr;return Dr+=1,Ua===null&&(Ua=[]),e=Fd(Ua,e,t),t=Se,(nt===null?t.memoizedState:nt.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Gm:Uc),e}function Wo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Lr(e);if(e.$$typeof===q)return gt(e)}throw Error(i(438,String(e)))}function Cc(e){var t=null,n=Se.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=Se.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ko(),Se.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=$;return t.index++,n}function Bn(e,t){return typeof t=="function"?t(e):t}function Jo(e){var t=Ie();return Ac(t,ke,e)}function Ac(e,t,n){var a=e.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=n;var s=e.baseQueue,c=a.pending;if(c!==null){if(s!==null){var h=s.next;s.next=c.next,c.next=h}t.baseQueue=s=c,a.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var x=h=null,C=null,k=t,Q=!1;do{var K=k.lane&-536870913;if(K!==k.lane?(Ne&K)===K:(kn&K)===K){var Y=k.revertLane;if(Y===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),K===Oa&&(Q=!0);else if((kn&Y)===Y){k=k.next,Y===Oa&&(Q=!0);continue}else K={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},C===null?(x=C=K,h=c):C=C.next=K,Se.lanes|=Y,pl|=Y;K=k.action,Jl&&n(c,K),c=k.hasEagerState?k.eagerState:n(c,K)}else Y={lane:K,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},C===null?(x=C=Y,h=c):C=C.next=Y,Se.lanes|=K,pl|=K;k=k.next}while(k!==null&&k!==t);if(C===null?h=c:C.next=x,!Ht(c,e.memoizedState)&&(lt=!0,Q&&(n=Ma,n!==null)))throw n;e.memoizedState=c,e.baseState=h,e.baseQueue=C,a.lastRenderedState=c}return s===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Nc(e){var t=Ie(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var a=n.dispatch,s=n.pending,c=t.memoizedState;if(s!==null){n.pending=null;var h=s=s.next;do c=e(c,h.action),h=h.next;while(h!==s);Ht(c,t.memoizedState)||(lt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function cm(e,t,n){var a=Se,s=Ie(),c=Re;if(c){if(n===void 0)throw Error(i(407));n=n()}else n=t();var h=!Ht((ke||s).memoizedState,n);if(h&&(s.memoizedState=n,lt=!0),s=s.queue,Oc(dm.bind(null,a,s,e),[e]),s.getSnapshot!==t||h||nt!==null&&nt.memoizedState.tag&1){if(a.flags|=2048,Ha(9,{destroy:void 0},fm.bind(null,a,s,n,t),null),Ve===null)throw Error(i(349));c||(kn&127)!==0||um(a,t,n)}return n}function um(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t=Ko(),Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function fm(e,t,n,a){t.value=n,t.getSnapshot=a,mm(t)&&hm(e)}function dm(e,t,n){return n(function(){mm(t)&&hm(e)})}function mm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ht(e,n)}catch{return!0}}function hm(e){var t=ql(e,2);t!==null&&Ut(t,e,2)}function jc(e){var t=Ct();if(typeof e=="function"){var n=e;if(e=n(),Jl){gn(!0);try{n()}finally{gn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:e},t}function pm(e,t,n,a){return e.baseState=n,Ac(e,ke,typeof a=="function"?a:Bn)}function db(e,t,n,a,s){if(Io(e))throw Error(i(485));if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};O.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,gm(t,c)):(c.next=n.next,t.pending=n.next=c)}}function gm(e,t){var n=t.action,a=t.payload,s=e.state;if(t.isTransition){var c=O.T,h={};O.T=h;try{var x=n(s,a),C=O.S;C!==null&&C(h,x),vm(e,t,x)}catch(k){Rc(e,t,k)}finally{c!==null&&h.types!==null&&(c.types=h.types),O.T=c}}else try{c=n(s,a),vm(e,t,c)}catch(k){Rc(e,t,k)}}function vm(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){ym(e,t,a)},function(a){return Rc(e,t,a)}):ym(e,t,n)}function ym(e,t,n){t.status="fulfilled",t.value=n,bm(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,gm(e,n)))}function Rc(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,bm(t),t=t.next;while(t!==a)}e.action=null}function bm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function xm(e,t){return t}function Sm(e,t){if(Re){var n=Ve.formState;if(n!==null){e:{var a=Se;if(Re){if(Ge){t:{for(var s=Ge,c=en;s.nodeType!==8;){if(!c){s=null;break t}if(s=nn(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){Ge=nn(s.nextSibling),a=s.data==="F!";break e}}ol(a)}a=!1}a&&(t=n[0])}}return n=Ct(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xm,lastRenderedState:t},n.queue=a,n=Ym.bind(null,Se,a),a.dispatch=n,a=jc(!1),c=Lc.bind(null,Se,!1,a.queue),a=Ct(),s={state:t,dispatch:null,action:e,pending:null},a.queue=s,n=db.bind(null,Se,s,c,n),s.dispatch=n,a.memoizedState=e,[t,n,!1]}function wm(e){var t=Ie();return Tm(t,ke,e)}function Tm(e,t,n){if(t=Ac(e,t,xm)[0],e=Jo(Bn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Lr(t)}catch(h){throw h===_a?Yo:h}else a=t;t=Ie();var s=t.queue,c=s.dispatch;return n!==t.memoizedState&&(Se.flags|=2048,Ha(9,{destroy:void 0},mb.bind(null,s,n),null)),[a,c,e]}function mb(e,t){e.action=t}function Em(e){var t=Ie(),n=ke;if(n!==null)return Tm(t,n,e);Ie(),t=t.memoizedState,n=Ie();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Ha(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=Se.updateQueue,t===null&&(t=Ko(),Se.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Cm(){return Ie().memoizedState}function Po(e,t,n,a){var s=Ct();Se.flags|=e,s.memoizedState=Ha(1|t,{destroy:void 0},n,a===void 0?null:a)}function Fo(e,t,n,a){var s=Ie();a=a===void 0?null:a;var c=s.memoizedState.inst;ke!==null&&a!==null&&xc(a,ke.memoizedState.deps)?s.memoizedState=Ha(t,c,n,a):(Se.flags|=e,s.memoizedState=Ha(1|t,c,n,a))}function Am(e,t){Po(8390656,8,e,t)}function Oc(e,t){Fo(2048,8,e,t)}function hb(e){Se.flags|=4;var t=Se.updateQueue;if(t===null)t=Ko(),Se.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Nm(e){var t=Ie().memoizedState;return hb({ref:t,nextImpl:e}),function(){if((De&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function jm(e,t){return Fo(4,2,e,t)}function Rm(e,t){return Fo(4,4,e,t)}function Om(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Mm(e,t,n){n=n!=null?n.concat([e]):null,Fo(4,4,Om.bind(null,t,e),n)}function Mc(){}function _m(e,t){var n=Ie();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&xc(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function zm(e,t){var n=Ie();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&xc(t,a[1]))return a[0];if(a=e(),Jl){gn(!0);try{e()}finally{gn(!1)}}return n.memoizedState=[a,t],a}function _c(e,t,n){return n===void 0||(kn&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Dh(),Se.lanes|=e,pl|=e,n)}function Dm(e,t,n,a){return Ht(n,t)?n:Da.current!==null?(e=_c(e,n,a),Ht(e,t)||(lt=!0),e):(kn&42)===0||(kn&1073741824)!==0&&(Ne&261930)===0?(lt=!0,e.memoizedState=n):(e=Dh(),Se.lanes|=e,pl|=e,t)}function Lm(e,t,n,a,s){var c=X.p;X.p=c!==0&&8>c?c:8;var h=O.T,x={};O.T=x,Lc(e,!1,t,n);try{var C=s(),k=O.S;if(k!==null&&k(x,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var Q=cb(C,a);Ur(e,t,Q,Gt(e))}else Ur(e,t,a,Gt(e))}catch(K){Ur(e,t,{then:function(){},status:"rejected",reason:K},Gt())}finally{X.p=c,h!==null&&x.types!==null&&(h.types=x.types),O.T=h}}function pb(){}function zc(e,t,n,a){if(e.tag!==5)throw Error(i(476));var s=Um(e).queue;Lm(e,s,t,W,n===null?pb:function(){return Hm(e),n(a)})}function Um(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:W},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Hm(e){var t=Um(e);t.next===null&&(t=e.alternate.memoizedState),Ur(e,t.next.queue,{},Gt())}function Dc(){return gt(Ir)}function km(){return Ie().memoizedState}function Bm(){return Ie().memoizedState}function gb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Gt();e=cl(n);var a=ul(t,e,n);a!==null&&(Ut(a,t,n),Mr(a,t,n)),t={cache:cc()},e.payload=t;return}t=t.return}}function vb(e,t,n){var a=Gt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Io(e)?qm(t,n):(n=Fs(e,t,n,a),n!==null&&(Ut(n,e,a),Vm(n,t,a)))}function Ym(e,t,n){var a=Gt();Ur(e,t,n,a)}function Ur(e,t,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Io(e))qm(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,x=c(h,n);if(s.hasEagerState=!0,s.eagerState=x,Ht(x,h))return zo(e,t,s,0),Ve===null&&_o(),!1}catch{}finally{}if(n=Fs(e,t,s,a),n!==null)return Ut(n,e,a),Vm(n,t,a),!0}return!1}function Lc(e,t,n,a){if(a={lane:2,revertLane:mu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Io(e)){if(t)throw Error(i(479))}else t=Fs(e,n,a,2),t!==null&&Ut(t,e,2)}function Io(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function qm(e,t){La=Zo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vm(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,mr(e,n)}}var Hr={readContext:gt,use:Wo,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useLayoutEffect:$e,useInsertionEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useSyncExternalStore:$e,useId:$e,useHostTransitionStatus:$e,useFormState:$e,useActionState:$e,useOptimistic:$e,useMemoCache:$e,useCacheRefresh:$e};Hr.useEffectEvent=$e;var Gm={readContext:gt,use:Wo,useCallback:function(e,t){return Ct().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:Am,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Po(4194308,4,Om.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Po(4194308,4,e,t)},useInsertionEffect:function(e,t){Po(4,2,e,t)},useMemo:function(e,t){var n=Ct();t=t===void 0?null:t;var a=e();if(Jl){gn(!0);try{e()}finally{gn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Ct();if(n!==void 0){var s=n(t);if(Jl){gn(!0);try{n(t)}finally{gn(!1)}}}else s=t;return a.memoizedState=a.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=vb.bind(null,Se,e),[a.memoizedState,e]},useRef:function(e){var t=Ct();return e={current:e},t.memoizedState=e},useState:function(e){e=jc(e);var t=e.queue,n=Ym.bind(null,Se,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Mc,useDeferredValue:function(e,t){var n=Ct();return _c(n,e,t)},useTransition:function(){var e=jc(!1);return e=Lm.bind(null,Se,e.queue,!0,!1),Ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=Se,s=Ct();if(Re){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Ve===null)throw Error(i(349));(Ne&127)!==0||um(a,t,n)}s.memoizedState=n;var c={value:n,getSnapshot:t};return s.queue=c,Am(dm.bind(null,a,c,e),[e]),a.flags|=2048,Ha(9,{destroy:void 0},fm.bind(null,a,c,n,t),null),n},useId:function(){var e=Ct(),t=Ve.identifierPrefix;if(Re){var n=bn,a=yn;n=(a&~(1<<32-Et(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=$o++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=ub++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Dc,useFormState:Sm,useActionState:Sm,useOptimistic:function(e){var t=Ct();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Lc.bind(null,Se,!0,n),n.dispatch=t,[e,t]},useMemoCache:Cc,useCacheRefresh:function(){return Ct().memoizedState=gb.bind(null,Se)},useEffectEvent:function(e){var t=Ct(),n={impl:e};return t.memoizedState=n,function(){if((De&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Uc={readContext:gt,use:Wo,useCallback:_m,useContext:gt,useEffect:Oc,useImperativeHandle:Mm,useInsertionEffect:jm,useLayoutEffect:Rm,useMemo:zm,useReducer:Jo,useRef:Cm,useState:function(){return Jo(Bn)},useDebugValue:Mc,useDeferredValue:function(e,t){var n=Ie();return Dm(n,ke.memoizedState,e,t)},useTransition:function(){var e=Jo(Bn)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:Lr(e),t]},useSyncExternalStore:cm,useId:km,useHostTransitionStatus:Dc,useFormState:wm,useActionState:wm,useOptimistic:function(e,t){var n=Ie();return pm(n,ke,e,t)},useMemoCache:Cc,useCacheRefresh:Bm};Uc.useEffectEvent=Nm;var Xm={readContext:gt,use:Wo,useCallback:_m,useContext:gt,useEffect:Oc,useImperativeHandle:Mm,useInsertionEffect:jm,useLayoutEffect:Rm,useMemo:zm,useReducer:Nc,useRef:Cm,useState:function(){return Nc(Bn)},useDebugValue:Mc,useDeferredValue:function(e,t){var n=Ie();return ke===null?_c(n,e,t):Dm(n,ke.memoizedState,e,t)},useTransition:function(){var e=Nc(Bn)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:Lr(e),t]},useSyncExternalStore:cm,useId:km,useHostTransitionStatus:Dc,useFormState:Em,useActionState:Em,useOptimistic:function(e,t){var n=Ie();return ke!==null?pm(n,ke,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Cc,useCacheRefresh:Bm};Xm.useEffectEvent=Nm;function Hc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var kc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Gt(),s=cl(a);s.payload=t,n!=null&&(s.callback=n),t=ul(e,s,a),t!==null&&(Ut(t,e,a),Mr(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Gt(),s=cl(a);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=ul(e,s,a),t!==null&&(Ut(t,e,a),Mr(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gt(),a=cl(n);a.tag=2,t!=null&&(a.callback=t),t=ul(e,a,n),t!==null&&(Ut(t,e,n),Mr(t,e,n))}};function Qm(e,t,n,a,s,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,h):t.prototype&&t.prototype.isPureReactComponent?!Tr(n,a)||!Tr(s,c):!0}function Zm(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&kc.enqueueReplaceState(t,t.state,null)}function Pl(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=y({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}function $m(e){Mo(e)}function Km(e){console.error(e)}function Wm(e){Mo(e)}function ei(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Jm(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Bc(e,t,n){return n=cl(n),n.tag=3,n.payload={element:null},n.callback=function(){ei(e,t)},n}function Pm(e){return e=cl(e),e.tag=3,e}function Fm(e,t,n,a){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var c=a.value;e.payload=function(){return s(c)},e.callback=function(){Jm(t,n,a)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Jm(t,n,a),typeof s!="function"&&(gl===null?gl=new Set([this]):gl.add(this));var x=a.stack;this.componentDidCatch(a.value,{componentStack:x!==null?x:""})})}function yb(e,t,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Ra(t,n,s,!0),n=Bt.current,n!==null){switch(n.tag){case 31:case 13:return tn===null?di():n.alternate===null&&Ke===0&&(Ke=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===qo?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),uu(e,a,s)),!1;case 22:return n.flags|=65536,a===qo?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),uu(e,a,s)),!1}throw Error(i(435,n.tag))}return uu(e,a,s),di(),!1}if(Re)return t=Bt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,a!==ac&&(e=Error(i(422),{cause:a}),Ar(Pt(e,n)))):(a!==ac&&(t=Error(i(423),{cause:a}),Ar(Pt(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,a=Pt(a,n),s=Bc(e.stateNode,a,s),pc(e,s),Ke!==4&&(Ke=2)),!1;var c=Error(i(520),{cause:a});if(c=Pt(c,n),Qr===null?Qr=[c]:Qr.push(c),Ke!==4&&(Ke=2),t===null)return!0;a=Pt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=Bc(n.stateNode,a,e),pc(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(gl===null||!gl.has(c))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Pm(s),Fm(s,e,n,a),pc(n,s),!1}n=n.return}while(n!==null);return!1}var Yc=Error(i(461)),lt=!1;function vt(e,t,n,a){t.child=e===null?nm(t,null,n,a):Wl(t,e.child,n,a)}function Im(e,t,n,a,s){n=n.render;var c=t.ref;if("ref"in a){var h={};for(var x in a)x!=="ref"&&(h[x]=a[x])}else h=a;return Ql(t),a=Sc(e,t,n,h,c,s),x=wc(),e!==null&&!lt?(Tc(e,t,s),Yn(e,t,s)):(Re&&x&&nc(t),t.flags|=1,vt(e,t,a,s),t.child)}function eh(e,t,n,a,s){if(e===null){var c=n.type;return typeof c=="function"&&!Is(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,th(e,t,c,a,s)):(e=Lo(n.type,null,a,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Kc(e,s)){var h=c.memoizedProps;if(n=n.compare,n=n!==null?n:Tr,n(h,a)&&e.ref===t.ref)return Yn(e,t,s)}return t.flags|=1,e=Dn(c,a),e.ref=t.ref,e.return=t,t.child=e}function th(e,t,n,a,s){if(e!==null){var c=e.memoizedProps;if(Tr(c,a)&&e.ref===t.ref)if(lt=!1,t.pendingProps=a=c,Kc(e,s))(e.flags&131072)!==0&&(lt=!0);else return t.lanes=e.lanes,Yn(e,t,s)}return qc(e,t,n,a,s)}function nh(e,t,n,a){var s=a.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(a=t.child=e.child,s=0;a!==null;)s=s|a.lanes|a.childLanes,a=a.sibling;a=s&~c}else a=0,t.child=null;return lh(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Bo(t,c!==null?c.cachePool:null),c!==null?rm(t,c):vc(),om(t);else return a=t.lanes=536870912,lh(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(Bo(t,c.cachePool),rm(t,c),dl(),t.memoizedState=null):(e!==null&&Bo(t,null),vc(),dl());return vt(e,t,s,n),t.child}function kr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function lh(e,t,n,a,s){var c=fc();return c=c===null?null:{parent:tt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&Bo(t,null),vc(),om(t),e!==null&&Ra(e,t,a,!0),t.childLanes=s,null}function ti(e,t){return t=li({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ah(e,t,n){return Wl(t,e.child,null,n),e=ti(t,t.pendingProps),e.flags|=2,Yt(t),t.memoizedState=null,e}function bb(e,t,n){var a=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Re){if(a.mode==="hidden")return e=ti(t,a),t.lanes=536870912,kr(null,e);if(bc(t),(e=Ge)?(e=gp(e,en),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:al!==null?{id:yn,overflow:bn}:null,retryLane:536870912,hydrationErrors:null},n=qd(e),n.return=t,t.child=n,pt=t,Ge=null)):e=null,e===null)throw ol(t);return t.lanes=536870912,null}return ti(t,a)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(bc(t),s)if(t.flags&256)t.flags&=-257,t=ah(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(lt||Ra(e,t,n,!1),s=(n&e.childLanes)!==0,lt||s){if(a=Ve,a!==null&&(h=Kf(a,n),h!==0&&h!==c.retryLane))throw c.retryLane=h,ql(e,h),Ut(a,e,h),Yc;di(),t=ah(e,t,n)}else e=c.treeContext,Ge=nn(h.nextSibling),pt=t,Re=!0,rl=null,en=!1,e!==null&&Xd(t,e),t=ti(t,a),t.flags|=4096;return t}return e=Dn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ni(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function qc(e,t,n,a,s){return Ql(t),n=Sc(e,t,n,a,void 0,s),a=wc(),e!==null&&!lt?(Tc(e,t,s),Yn(e,t,s)):(Re&&a&&nc(t),t.flags|=1,vt(e,t,n,s),t.child)}function rh(e,t,n,a,s,c){return Ql(t),t.updateQueue=null,n=sm(t,a,n,s),im(e),a=wc(),e!==null&&!lt?(Tc(e,t,c),Yn(e,t,c)):(Re&&a&&nc(t),t.flags|=1,vt(e,t,n,c),t.child)}function oh(e,t,n,a,s){if(Ql(t),t.stateNode===null){var c=Ca,h=n.contextType;typeof h=="object"&&h!==null&&(c=gt(h)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=kc,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},mc(t),h=n.contextType,c.context=typeof h=="object"&&h!==null?gt(h):Ca,c.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Hc(t,n,h,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&kc.enqueueReplaceState(c,c.state,null),zr(t,a,c,s),_r(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var x=t.memoizedProps,C=Pl(n,x);c.props=C;var k=c.context,Q=n.contextType;h=Ca,typeof Q=="object"&&Q!==null&&(h=gt(Q));var K=n.getDerivedStateFromProps;Q=typeof K=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,Q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||k!==h)&&Zm(t,c,a,h),sl=!1;var Y=t.memoizedState;c.state=Y,zr(t,a,c,s),_r(),k=t.memoizedState,x||Y!==k||sl?(typeof K=="function"&&(Hc(t,n,K,a),k=t.memoizedState),(C=sl||Qm(t,n,C,a,Y,k,h))?(Q||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=k),c.props=a,c.state=k,c.context=h,a=C):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,hc(e,t),h=t.memoizedProps,Q=Pl(n,h),c.props=Q,K=t.pendingProps,Y=c.context,k=n.contextType,C=Ca,typeof k=="object"&&k!==null&&(C=gt(k)),x=n.getDerivedStateFromProps,(k=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==K||Y!==C)&&Zm(t,c,a,C),sl=!1,Y=t.memoizedState,c.state=Y,zr(t,a,c,s),_r();var V=t.memoizedState;h!==K||Y!==V||sl||e!==null&&e.dependencies!==null&&Ho(e.dependencies)?(typeof x=="function"&&(Hc(t,n,x,a),V=t.memoizedState),(Q=sl||Qm(t,n,Q,a,Y,V,C)||e!==null&&e.dependencies!==null&&Ho(e.dependencies))?(k||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,V,C),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,V,C)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&Y===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&Y===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=V),c.props=a,c.state=V,c.context=C,a=Q):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&Y===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&Y===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,ni(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=Wl(t,e.child,null,s),t.child=Wl(t,null,n,s)):vt(e,t,n,s),t.memoizedState=c.state,e=t.child):e=Yn(e,t,s),e}function ih(e,t,n,a){return Gl(),t.flags|=256,vt(e,t,n,a),t.child}var Vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(e){return{baseLanes:e,cachePool:Jd()}}function Xc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Vt),e}function sh(e,t,n){var a=t.pendingProps,s=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(Fe.current&2)!==0),h&&(s=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Re){if(s?fl(t):dl(),(e=Ge)?(e=gp(e,en),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:al!==null?{id:yn,overflow:bn}:null,retryLane:536870912,hydrationErrors:null},n=qd(e),n.return=t,t.child=n,pt=t,Ge=null)):e=null,e===null)throw ol(t);return Au(e)?t.lanes=32:t.lanes=536870912,null}var x=a.children;return a=a.fallback,s?(dl(),s=t.mode,x=li({mode:"hidden",children:x},s),a=Vl(a,s,n,null),x.return=t,a.return=t,x.sibling=a,t.child=x,a=t.child,a.memoizedState=Gc(n),a.childLanes=Xc(e,h,n),t.memoizedState=Vc,kr(null,a)):(fl(t),Qc(t,x))}var C=e.memoizedState;if(C!==null&&(x=C.dehydrated,x!==null)){if(c)t.flags&256?(fl(t),t.flags&=-257,t=Zc(e,t,n)):t.memoizedState!==null?(dl(),t.child=e.child,t.flags|=128,t=null):(dl(),x=a.fallback,s=t.mode,a=li({mode:"visible",children:a.children},s),x=Vl(x,s,n,null),x.flags|=2,a.return=t,x.return=t,a.sibling=x,t.child=a,Wl(t,e.child,null,n),a=t.child,a.memoizedState=Gc(n),a.childLanes=Xc(e,h,n),t.memoizedState=Vc,t=kr(null,a));else if(fl(t),Au(x)){if(h=x.nextSibling&&x.nextSibling.dataset,h)var k=h.dgst;h=k,a=Error(i(419)),a.stack="",a.digest=h,Ar({value:a,source:null,stack:null}),t=Zc(e,t,n)}else if(lt||Ra(e,t,n,!1),h=(n&e.childLanes)!==0,lt||h){if(h=Ve,h!==null&&(a=Kf(h,n),a!==0&&a!==C.retryLane))throw C.retryLane=a,ql(e,a),Ut(h,e,a),Yc;Cu(x)||di(),t=Zc(e,t,n)}else Cu(x)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,Ge=nn(x.nextSibling),pt=t,Re=!0,rl=null,en=!1,e!==null&&Xd(t,e),t=Qc(t,a.children),t.flags|=4096);return t}return s?(dl(),x=a.fallback,s=t.mode,C=e.child,k=C.sibling,a=Dn(C,{mode:"hidden",children:a.children}),a.subtreeFlags=C.subtreeFlags&65011712,k!==null?x=Dn(k,x):(x=Vl(x,s,n,null),x.flags|=2),x.return=t,a.return=t,a.sibling=x,t.child=a,kr(null,a),a=t.child,x=e.child.memoizedState,x===null?x=Gc(n):(s=x.cachePool,s!==null?(C=tt._currentValue,s=s.parent!==C?{parent:C,pool:C}:s):s=Jd(),x={baseLanes:x.baseLanes|n,cachePool:s}),a.memoizedState=x,a.childLanes=Xc(e,h,n),t.memoizedState=Vc,kr(e.child,a)):(fl(t),n=e.child,e=n.sibling,n=Dn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function Qc(e,t){return t=li({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function li(e,t){return e=kt(22,e,null,t),e.lanes=0,e}function Zc(e,t,n){return Wl(t,e.child,null,n),e=Qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ch(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ic(e.return,t,n)}function $c(e,t,n,a,s,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:s,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=n,h.tailMode=s,h.treeForkCount=c)}function uh(e,t,n){var a=t.pendingProps,s=a.revealOrder,c=a.tail;a=a.children;var h=Fe.current,x=(h&2)!==0;if(x?(h=h&1|2,t.flags|=128):h&=1,ne(Fe,h),vt(e,t,a,n),a=Re?Cr:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ch(e,n,t);else if(e.tag===19)ch(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Qo(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),$c(t,!1,s,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Qo(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}$c(t,!0,n,null,c,a);break;case"together":$c(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Yn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),pl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ra(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Dn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Dn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Kc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ho(e)))}function xb(e,t,n){switch(t.tag){case 3:qe(t,t.stateNode.containerInfo),il(t,tt,e.memoizedState.cache),Gl();break;case 27:case 5:xt(t);break;case 4:qe(t,t.stateNode.containerInfo);break;case 10:il(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,bc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(fl(t),t.flags|=128,null):(n&t.child.childLanes)!==0?sh(e,t,n):(fl(t),e=Yn(e,t,n),e!==null?e.sibling:null);fl(t);break;case 19:var s=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Ra(e,t,n,!1),a=(n&t.childLanes)!==0),s){if(a)return uh(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ne(Fe,Fe.current),a)break;return null;case 22:return t.lanes=0,nh(e,t,n,t.pendingProps);case 24:il(t,tt,e.memoizedState.cache)}return Yn(e,t,n)}function fh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)lt=!0;else{if(!Kc(e,n)&&(t.flags&128)===0)return lt=!1,xb(e,t,n);lt=(e.flags&131072)!==0}else lt=!1,Re&&(t.flags&1048576)!==0&&Gd(t,Cr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=$l(t.elementType),t.type=e,typeof e=="function")Is(e)?(a=Pl(e,a),t.tag=1,t=oh(null,t,e,a,n)):(t.tag=0,t=qc(null,t,e,a,n));else{if(e!=null){var s=e.$$typeof;if(s===L){t.tag=11,t=Im(null,t,e,a,n);break e}else if(s===B){t.tag=14,t=eh(null,t,e,a,n);break e}}throw t=I(e)||e,Error(i(306,t,""))}}return t;case 0:return qc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,s=Pl(a,t.pendingProps),oh(e,t,a,s,n);case 3:e:{if(qe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));a=t.pendingProps;var c=t.memoizedState;s=c.element,hc(e,t),zr(t,a,null,n);var h=t.memoizedState;if(a=h.cache,il(t,tt,a),a!==c.cache&&sc(t,[tt],n,!0),_r(),a=h.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=ih(e,t,a,n);break e}else if(a!==s){s=Pt(Error(i(424)),t),Ar(s),t=ih(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ge=nn(e.firstChild),pt=t,Re=!0,rl=null,en=!0,n=nm(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Gl(),a===s){t=Yn(e,t,n);break e}vt(e,t,a,n)}t=t.child}return t;case 26:return ni(e,t),e===null?(n=wp(t.type,null,t.pendingProps,null))?t.memoizedState=n:Re||(n=t.type,e=t.pendingProps,a=bi(me.current).createElement(n),a[ht]=t,a[Ot]=e,yt(a,n,e),ft(a),t.stateNode=a):t.memoizedState=wp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xt(t),e===null&&Re&&(a=t.stateNode=bp(t.type,t.pendingProps,me.current),pt=t,en=!0,s=Ge,xl(t.type)?(Nu=s,Ge=nn(a.firstChild)):Ge=s),vt(e,t,t.pendingProps.children,n),ni(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((s=a=Ge)&&(a=Jb(a,t.type,t.pendingProps,en),a!==null?(t.stateNode=a,pt=t,Ge=nn(a.firstChild),en=!1,s=!0):s=!1),s||ol(t)),xt(t),s=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,a=c.children,wu(s,c)?a=null:h!==null&&wu(s,h)&&(t.flags|=32),t.memoizedState!==null&&(s=Sc(e,t,fb,null,null,n),Ir._currentValue=s),ni(e,t),vt(e,t,a,n),t.child;case 6:return e===null&&Re&&((e=n=Ge)&&(n=Pb(n,t.pendingProps,en),n!==null?(t.stateNode=n,pt=t,Ge=null,e=!0):e=!1),e||ol(t)),null;case 13:return sh(e,t,n);case 4:return qe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Wl(t,null,a,n):vt(e,t,a,n),t.child;case 11:return Im(e,t,t.type,t.pendingProps,n);case 7:return vt(e,t,t.pendingProps,n),t.child;case 8:return vt(e,t,t.pendingProps.children,n),t.child;case 12:return vt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,il(t,t.type,a.value),vt(e,t,a.children,n),t.child;case 9:return s=t.type._context,a=t.pendingProps.children,Ql(t),s=gt(s),a=a(s),t.flags|=1,vt(e,t,a,n),t.child;case 14:return eh(e,t,t.type,t.pendingProps,n);case 15:return th(e,t,t.type,t.pendingProps,n);case 19:return uh(e,t,n);case 31:return bb(e,t,n);case 22:return nh(e,t,n,t.pendingProps);case 24:return Ql(t),a=gt(tt),e===null?(s=fc(),s===null&&(s=Ve,c=cc(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=n),s=c),t.memoizedState={parent:a,cache:s},mc(t),il(t,tt,s)):((e.lanes&n)!==0&&(hc(e,t),zr(t,null,null,n),_r()),s=e.memoizedState,c=t.memoizedState,s.parent!==a?(s={parent:a,cache:a},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),il(t,tt,a)):(a=c.cache,il(t,tt,a),a!==s.cache&&sc(t,[tt],n,!0))),vt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function qn(e){e.flags|=4}function Wc(e,t,n,a,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(kh())e.flags|=8192;else throw Kl=qo,dc}else e.flags&=-16777217}function dh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Np(t))if(kh())e.flags|=8192;else throw Kl=qo,dc}function ai(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?jt():536870912,e.lanes|=t,qa|=t)}function Br(e,t){if(!Re)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Sb(e,t,n){var a=t.pendingProps;switch(lc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Hn(tt),ye(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ja(t)?qn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rc())),Xe(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(qn(t),c!==null?(Xe(t),dh(t,c)):(Xe(t),Wc(t,s,null,a,n))):c?c!==e.memoizedState?(qn(t),Xe(t),dh(t,c)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&qn(t),Xe(t),Wc(t,s,e,a,n)),null;case 27:if(ot(t),n=me.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&qn(t);else{if(!a){if(t.stateNode===null)throw Error(i(166));return Xe(t),null}e=oe.current,ja(t)?Qd(t):(e=bp(s,a,n),t.stateNode=e,qn(t))}return Xe(t),null;case 5:if(ot(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&qn(t);else{if(!a){if(t.stateNode===null)throw Error(i(166));return Xe(t),null}if(c=oe.current,ja(t))Qd(t);else{var h=bi(me.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(s,{is:a.is}):h.createElement(s)}}c[ht]=t,c[Ot]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(yt(c,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&qn(t)}}return Xe(t),Wc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&qn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(i(166));if(e=me.current,ja(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,s=pt,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}e[ht]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||sp(e.nodeValue,n)),e||ol(t,!0)}else e=bi(e).createTextNode(a),e[ht]=t,t.stateNode=e}return Xe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=ja(t),n!==null){if(e===null){if(!a)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[ht]=t}else Gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else n=rc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Yt(t),t):(Yt(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Xe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=ja(t),a!==null&&a.dehydrated!==null){if(e===null){if(!s)throw Error(i(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(i(317));s[ht]=t}else Gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),s=!1}else s=rc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Yt(t),t):(Yt(t),null)}return Yt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==s&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ai(t,t.updateQueue),Xe(t),null);case 4:return ye(),e===null&&vu(t.stateNode.containerInfo),Xe(t),null;case 10:return Hn(t.type),Xe(t),null;case 19:if(G(Fe),a=t.memoizedState,a===null)return Xe(t),null;if(s=(t.flags&128)!==0,c=a.rendering,c===null)if(s)Br(a,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Qo(e),c!==null){for(t.flags|=128,Br(a,!1),e=c.updateQueue,t.updateQueue=e,ai(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Yd(n,e),n=n.sibling;return ne(Fe,Fe.current&1|2),Re&&Ln(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&wt()>ci&&(t.flags|=128,s=!0,Br(a,!1),t.lanes=4194304)}else{if(!s)if(e=Qo(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,ai(t,e),Br(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!Re)return Xe(t),null}else 2*wt()-a.renderingStartTime>ci&&n!==536870912&&(t.flags|=128,s=!0,Br(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=wt(),e.sibling=null,n=Fe.current,ne(Fe,s?n&1|2:n&1),Re&&Ln(t,a.treeForkCount),e):(Xe(t),null);case 22:case 23:return Yt(t),yc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),n=t.updateQueue,n!==null&&ai(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&G(Zl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Hn(tt),Xe(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function wb(e,t){switch(lc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hn(tt),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ot(t),null;case 31:if(t.memoizedState!==null){if(Yt(t),t.alternate===null)throw Error(i(340));Gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Yt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Fe),null;case 4:return ye(),null;case 10:return Hn(t.type),null;case 22:case 23:return Yt(t),yc(),e!==null&&G(Zl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Hn(tt),null;case 25:return null;default:return null}}function mh(e,t){switch(lc(t),t.tag){case 3:Hn(tt),ye();break;case 26:case 27:case 5:ot(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&Yt(t);break;case 13:Yt(t);break;case 19:G(Fe);break;case 10:Hn(t.type);break;case 22:case 23:Yt(t),yc(),e!==null&&G(Zl);break;case 24:Hn(tt)}}function Yr(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&e)===e){a=void 0;var c=n.create,h=n.inst;a=c(),h.destroy=a}n=n.next}while(n!==s)}}catch(x){He(t,t.return,x)}}function ml(e,t,n){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var c=s.next;a=c;do{if((a.tag&e)===e){var h=a.inst,x=h.destroy;if(x!==void 0){h.destroy=void 0,s=t;var C=n,k=x;try{k()}catch(Q){He(s,C,Q)}}}a=a.next}while(a!==c)}}catch(Q){He(t,t.return,Q)}}function hh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{am(t,n)}catch(a){He(e,e.return,a)}}}function ph(e,t,n){n.props=Pl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){He(e,t,a)}}function qr(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(s){He(e,t,s)}}function xn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){He(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){He(e,t,s)}else n.current=null}function gh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(s){He(e,e.return,s)}}function Jc(e,t,n){try{var a=e.stateNode;Xb(a,e.type,n,t),a[Ot]=t}catch(s){He(e,e.return,s)}}function vh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&xl(e.type)||e.tag===4}function Pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&xl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_n));else if(a!==4&&(a===27&&xl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Fc(e,t,n),e=e.sibling;e!==null;)Fc(e,t,n),e=e.sibling}function ri(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&xl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ri(e,t,n),e=e.sibling;e!==null;)ri(e,t,n),e=e.sibling}function yh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);yt(t,a,n),t[ht]=e,t[Ot]=n}catch(c){He(e,e.return,c)}}var Vn=!1,at=!1,Ic=!1,bh=typeof WeakSet=="function"?WeakSet:Set,dt=null;function Tb(e,t){if(e=e.containerInfo,xu=Ai,e=Md(e),Zs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var s=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,x=-1,C=-1,k=0,Q=0,K=e,Y=null;t:for(;;){for(var V;K!==n||s!==0&&K.nodeType!==3||(x=h+s),K!==c||a!==0&&K.nodeType!==3||(C=h+a),K.nodeType===3&&(h+=K.nodeValue.length),(V=K.firstChild)!==null;)Y=K,K=V;for(;;){if(K===e)break t;if(Y===n&&++k===s&&(x=h),Y===c&&++Q===a&&(C=h),(V=K.nextSibling)!==null)break;K=Y,Y=K.parentNode}K=V}n=x===-1||C===-1?null:{start:x,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for(Su={focusedElem:e,selectionRange:n},Ai=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){switch(t=dt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,s=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var ue=Pl(n.type,s);e=a.getSnapshotBeforeUpdate(ue,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(ge){He(n,n.return,ge)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Eu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Eu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,dt=e;break}dt=t.return}}function xh(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Xn(e,n),a&4&&Yr(5,n);break;case 1:if(Xn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){He(n,n.return,h)}else{var s=Pl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){He(n,n.return,h)}}a&64&&hh(n),a&512&&qr(n,n.return);break;case 3:if(Xn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{am(e,t)}catch(h){He(n,n.return,h)}}break;case 27:t===null&&a&4&&yh(n);case 26:case 5:Xn(e,n),t===null&&a&4&&gh(n),a&512&&qr(n,n.return);break;case 12:Xn(e,n);break;case 31:Xn(e,n),a&4&&Th(e,n);break;case 13:Xn(e,n),a&4&&Eh(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=_b.bind(null,n),Fb(e,n))));break;case 22:if(a=n.memoizedState!==null||Vn,!a){t=t!==null&&t.memoizedState!==null||at,s=Vn;var c=at;Vn=a,(at=t)&&!c?Qn(e,n,(n.subtreeFlags&8772)!==0):Xn(e,n),Vn=s,at=c}break;case 30:break;default:Xn(e,n)}}function Sh(e){var t=e.alternate;t!==null&&(e.alternate=null,Sh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Rs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Qe=null,_t=!1;function Gn(e,t,n){for(n=n.child;n!==null;)wh(e,t,n),n=n.sibling}function wh(e,t,n){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(tl,n)}catch{}switch(n.tag){case 26:at||xn(n,t),Gn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:at||xn(n,t);var a=Qe,s=_t;xl(n.type)&&(Qe=n.stateNode,_t=!1),Gn(e,t,n),Jr(n.stateNode),Qe=a,_t=s;break;case 5:at||xn(n,t);case 6:if(a=Qe,s=_t,Qe=null,Gn(e,t,n),Qe=a,_t=s,Qe!==null)if(_t)try{(Qe.nodeType===9?Qe.body:Qe.nodeName==="HTML"?Qe.ownerDocument.body:Qe).removeChild(n.stateNode)}catch(c){He(n,t,c)}else try{Qe.removeChild(n.stateNode)}catch(c){He(n,t,c)}break;case 18:Qe!==null&&(_t?(e=Qe,hp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Wa(e)):hp(Qe,n.stateNode));break;case 4:a=Qe,s=_t,Qe=n.stateNode.containerInfo,_t=!0,Gn(e,t,n),Qe=a,_t=s;break;case 0:case 11:case 14:case 15:ml(2,n,t),at||ml(4,n,t),Gn(e,t,n);break;case 1:at||(xn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&ph(n,t,a)),Gn(e,t,n);break;case 21:Gn(e,t,n);break;case 22:at=(a=at)||n.memoizedState!==null,Gn(e,t,n),at=a;break;default:Gn(e,t,n)}}function Th(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wa(e)}catch(n){He(t,t.return,n)}}}function Eh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wa(e)}catch(n){He(t,t.return,n)}}function Eb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new bh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new bh),t;default:throw Error(i(435,e.tag))}}function oi(e,t){var n=Eb(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var s=zb.bind(null,e,a);a.then(s,s)}})}function zt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var s=n[a],c=e,h=t,x=h;e:for(;x!==null;){switch(x.tag){case 27:if(xl(x.type)){Qe=x.stateNode,_t=!1;break e}break;case 5:Qe=x.stateNode,_t=!1;break e;case 3:case 4:Qe=x.stateNode.containerInfo,_t=!0;break e}x=x.return}if(Qe===null)throw Error(i(160));wh(c,h,s),Qe=null,_t=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ch(t,e),t=t.sibling}var sn=null;function Ch(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:zt(t,e),Dt(e),a&4&&(ml(3,e,e.return),Yr(3,e),ml(5,e,e.return));break;case 1:zt(t,e),Dt(e),a&512&&(at||n===null||xn(n,n.return)),a&64&&Vn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var s=sn;if(zt(t,e),Dt(e),a&512&&(at||n===null||xn(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(a){case"title":c=s.getElementsByTagName("title")[0],(!c||c[hr]||c[ht]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(a),s.head.insertBefore(c,s.querySelector("head > title"))),yt(c,a,n),c[ht]=e,ft(c),a=c;break e;case"link":var h=Cp("link","href",s).get(a+(n.href||""));if(h){for(var x=0;x<h.length;x++)if(c=h[x],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(x,1);break t}}c=s.createElement(a),yt(c,a,n),s.head.appendChild(c);break;case"meta":if(h=Cp("meta","content",s).get(a+(n.content||""))){for(x=0;x<h.length;x++)if(c=h[x],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(x,1);break t}}c=s.createElement(a),yt(c,a,n),s.head.appendChild(c);break;default:throw Error(i(468,a))}c[ht]=e,ft(c),a=c}e.stateNode=a}else Ap(s,e.type,e.stateNode);else e.stateNode=Ep(s,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?Ap(s,e.type,e.stateNode):Ep(s,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Jc(e,e.memoizedProps,n.memoizedProps)}break;case 27:zt(t,e),Dt(e),a&512&&(at||n===null||xn(n,n.return)),n!==null&&a&4&&Jc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(zt(t,e),Dt(e),a&512&&(at||n===null||xn(n,n.return)),e.flags&32){s=e.stateNode;try{ya(s,"")}catch(ue){He(e,e.return,ue)}}a&4&&e.stateNode!=null&&(s=e.memoizedProps,Jc(e,s,n!==null?n.memoizedProps:s)),a&1024&&(Ic=!0);break;case 6:if(zt(t,e),Dt(e),a&4){if(e.stateNode===null)throw Error(i(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(ue){He(e,e.return,ue)}}break;case 3:if(wi=null,s=sn,sn=xi(t.containerInfo),zt(t,e),sn=s,Dt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Wa(t.containerInfo)}catch(ue){He(e,e.return,ue)}Ic&&(Ic=!1,Ah(e));break;case 4:a=sn,sn=xi(e.stateNode.containerInfo),zt(t,e),Dt(e),sn=a;break;case 12:zt(t,e),Dt(e);break;case 31:zt(t,e),Dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,oi(e,a)));break;case 13:zt(t,e),Dt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(si=wt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,oi(e,a)));break;case 22:s=e.memoizedState!==null;var C=n!==null&&n.memoizedState!==null,k=Vn,Q=at;if(Vn=k||s,at=Q||C,zt(t,e),at=Q,Vn=k,Dt(e),a&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||C||Vn||at||Fl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){C=n=t;try{if(c=C.stateNode,s)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{x=C.stateNode;var K=C.memoizedProps.style,Y=K!=null&&K.hasOwnProperty("display")?K.display:null;x.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch(ue){He(C,C.return,ue)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=s?"":C.memoizedProps}catch(ue){He(C,C.return,ue)}}}else if(t.tag===18){if(n===null){C=t;try{var V=C.stateNode;s?pp(V,!0):pp(C.stateNode,!1)}catch(ue){He(C,C.return,ue)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,oi(e,n))));break;case 19:zt(t,e),Dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,oi(e,a)));break;case 30:break;case 21:break;default:zt(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(vh(a)){n=a;break}a=a.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var s=n.stateNode,c=Pc(e);ri(e,c,s);break;case 5:var h=n.stateNode;n.flags&32&&(ya(h,""),n.flags&=-33);var x=Pc(e);ri(e,x,h);break;case 3:case 4:var C=n.stateNode.containerInfo,k=Pc(e);Fc(e,k,C);break;default:throw Error(i(161))}}catch(Q){He(e,e.return,Q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ah(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ah(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Xn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)xh(e,t.alternate,t),t=t.sibling}function Fl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ml(4,t,t.return),Fl(t);break;case 1:xn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&ph(t,t.return,n),Fl(t);break;case 27:Jr(t.stateNode);case 26:case 5:xn(t,t.return),Fl(t);break;case 22:t.memoizedState===null&&Fl(t);break;case 30:Fl(t);break;default:Fl(t)}e=e.sibling}}function Qn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,s=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Qn(s,c,n),Yr(4,c);break;case 1:if(Qn(s,c,n),a=c,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(k){He(a,a.return,k)}if(a=c,s=a.updateQueue,s!==null){var x=a.stateNode;try{var C=s.shared.hiddenCallbacks;if(C!==null)for(s.shared.hiddenCallbacks=null,s=0;s<C.length;s++)lm(C[s],x)}catch(k){He(a,a.return,k)}}n&&h&64&&hh(c),qr(c,c.return);break;case 27:yh(c);case 26:case 5:Qn(s,c,n),n&&a===null&&h&4&&gh(c),qr(c,c.return);break;case 12:Qn(s,c,n);break;case 31:Qn(s,c,n),n&&h&4&&Th(s,c);break;case 13:Qn(s,c,n),n&&h&4&&Eh(s,c);break;case 22:c.memoizedState===null&&Qn(s,c,n),qr(c,c.return);break;case 30:break;default:Qn(s,c,n)}t=t.sibling}}function eu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Nr(n))}function tu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Nr(e))}function cn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Nh(e,t,n,a),t=t.sibling}function Nh(e,t,n,a){var s=t.flags;switch(t.tag){case 0:case 11:case 15:cn(e,t,n,a),s&2048&&Yr(9,t);break;case 1:cn(e,t,n,a);break;case 3:cn(e,t,n,a),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Nr(e)));break;case 12:if(s&2048){cn(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,x=c.onPostCommit;typeof x=="function"&&x(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){He(t,t.return,C)}}else cn(e,t,n,a);break;case 31:cn(e,t,n,a);break;case 13:cn(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?cn(e,t,n,a):Vr(e,t):c._visibility&2?cn(e,t,n,a):(c._visibility|=2,ka(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),s&2048&&eu(h,t);break;case 24:cn(e,t,n,a),s&2048&&tu(t.alternate,t);break;default:cn(e,t,n,a)}}function ka(e,t,n,a,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,x=n,C=a,k=h.flags;switch(h.tag){case 0:case 11:case 15:ka(c,h,x,C,s),Yr(8,h);break;case 23:break;case 22:var Q=h.stateNode;h.memoizedState!==null?Q._visibility&2?ka(c,h,x,C,s):Vr(c,h):(Q._visibility|=2,ka(c,h,x,C,s)),s&&k&2048&&eu(h.alternate,h);break;case 24:ka(c,h,x,C,s),s&&k&2048&&tu(h.alternate,h);break;default:ka(c,h,x,C,s)}t=t.sibling}}function Vr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,s=a.flags;switch(a.tag){case 22:Vr(n,a),s&2048&&eu(a.alternate,a);break;case 24:Vr(n,a),s&2048&&tu(a.alternate,a);break;default:Vr(n,a)}t=t.sibling}}var Gr=8192;function Ba(e,t,n){if(e.subtreeFlags&Gr)for(e=e.child;e!==null;)jh(e,t,n),e=e.sibling}function jh(e,t,n){switch(e.tag){case 26:Ba(e,t,n),e.flags&Gr&&e.memoizedState!==null&&ux(n,sn,e.memoizedState,e.memoizedProps);break;case 5:Ba(e,t,n);break;case 3:case 4:var a=sn;sn=xi(e.stateNode.containerInfo),Ba(e,t,n),sn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Gr,Gr=16777216,Ba(e,t,n),Gr=a):Ba(e,t,n));break;default:Ba(e,t,n)}}function Rh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Xr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];dt=a,Mh(a,e)}Rh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Oh(e),e=e.sibling}function Oh(e){switch(e.tag){case 0:case 11:case 15:Xr(e),e.flags&2048&&ml(9,e,e.return);break;case 3:Xr(e);break;case 12:Xr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ii(e)):Xr(e);break;default:Xr(e)}}function ii(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];dt=a,Mh(a,e)}Rh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ml(8,t,t.return),ii(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ii(t));break;default:ii(t)}e=e.sibling}}function Mh(e,t){for(;dt!==null;){var n=dt;switch(n.tag){case 0:case 11:case 15:ml(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Nr(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,dt=a;else e:for(n=e;dt!==null;){a=dt;var s=a.sibling,c=a.return;if(Sh(a),a===n){dt=null;break e}if(s!==null){s.return=c,dt=s;break e}dt=c}}}var Cb={getCacheForType:function(e){var t=gt(tt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return gt(tt).controller.signal}},Ab=typeof WeakMap=="function"?WeakMap:Map,De=0,Ve=null,Ce=null,Ne=0,Ue=0,qt=null,hl=!1,Ya=!1,nu=!1,Zn=0,Ke=0,pl=0,Il=0,lu=0,Vt=0,qa=0,Qr=null,Lt=null,au=!1,si=0,_h=0,ci=1/0,ui=null,gl=null,st=0,vl=null,Va=null,$n=0,ru=0,ou=null,zh=null,Zr=0,iu=null;function Gt(){return(De&2)!==0&&Ne!==0?Ne&-Ne:O.T!==null?mu():Wf()}function Dh(){if(Vt===0)if((Ne&536870912)===0||Re){var e=ze;ze<<=1,(ze&3932160)===0&&(ze=262144),Vt=e}else Vt=536870912;return e=Bt.current,e!==null&&(e.flags|=32),Vt}function Ut(e,t,n){(e===Ve&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)&&(Ga(e,0),yl(e,Ne,Vt,!1)),Rt(e,n),((De&2)===0||e!==Ve)&&(e===Ve&&((De&2)===0&&(Il|=n),Ke===4&&yl(e,Ne,Vt,!1)),Sn(e))}function Lh(e,t,n){if((De&6)!==0)throw Error(i(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Pe(e,t),s=a?Rb(e,t):cu(e,t,!0),c=a;do{if(s===0){Ya&&!a&&yl(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Nb(n)){s=cu(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var x=e;s=Qr;var C=x.current.memoizedState.isDehydrated;if(C&&(Ga(x,h).flags|=256),h=cu(x,h,!1),h!==2){if(nu&&!C){x.errorRecoveryDisabledLanes|=c,Il|=c,s=4;break e}c=Lt,Lt=s,c!==null&&(Lt===null?Lt=c:Lt.push.apply(Lt,c))}s=h}if(c=!1,s!==2)continue}}if(s===1){Ga(e,0),yl(e,t,0,!0);break}e:{switch(a=e,c=s,c){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:yl(a,t,Vt,!hl);break e;case 2:Lt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(s=si+300-wt(),10<s)){if(yl(a,t,Vt,!hl),it(a,0,!0)!==0)break e;$n=t,a.timeoutHandle=dp(Uh.bind(null,a,n,Lt,ui,au,t,Vt,Il,qa,hl,c,"Throttled",-0,0),s);break e}Uh(a,n,Lt,ui,au,t,Vt,Il,qa,hl,c,null,-0,0)}}break}while(!0);Sn(e)}function Uh(e,t,n,a,s,c,h,x,C,k,Q,K,Y,V){if(e.timeoutHandle=-1,K=t.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_n},jh(t,c,K);var ue=(c&62914560)===c?si-wt():(c&4194048)===c?_h-wt():0;if(ue=fx(K,ue),ue!==null){$n=c,e.cancelPendingCommit=ue(Xh.bind(null,e,t,c,n,a,s,h,x,C,Q,K,null,Y,V)),yl(e,c,h,!k);return}}Xh(e,t,c,n,a,s,h,x,C)}function Nb(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var s=n[a],c=s.getSnapshot;s=s.value;try{if(!Ht(c(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yl(e,t,n,a){t&=~lu,t&=~Il,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var s=t;0<s;){var c=31-Et(s),h=1<<c;a[c]=-1,s&=~h}n!==0&&Ul(e,n,t)}function fi(){return(De&6)===0?($r(0),!1):!0}function su(){if(Ce!==null){if(Ue===0)var e=Ce.return;else e=Ce,Un=Xl=null,Ec(e),za=null,Rr=0,e=Ce;for(;e!==null;)mh(e.alternate,e),e=e.return;Ce=null}}function Ga(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,$b(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),$n=0,su(),Ve=e,Ce=n=Dn(e.current,null),Ne=t,Ue=0,qt=null,hl=!1,Ya=Pe(e,t),nu=!1,qa=Vt=lu=Il=pl=Ke=0,Lt=Qr=null,au=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var s=31-Et(a),c=1<<s;t|=e[s],a&=~c}return Zn=t,_o(),n}function Hh(e,t){Se=null,O.H=Hr,t===_a||t===Yo?(t=Id(),Ue=3):t===dc?(t=Id(),Ue=4):Ue=t===Yc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,qt=t,Ce===null&&(Ke=1,ei(e,Pt(t,e.current)))}function kh(){var e=Bt.current;return e===null?!0:(Ne&4194048)===Ne?tn===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===tn:!1}function Bh(){var e=O.H;return O.H=Hr,e===null?Hr:e}function Yh(){var e=O.A;return O.A=Cb,e}function di(){Ke=4,hl||(Ne&4194048)!==Ne&&Bt.current!==null||(Ya=!0),(pl&134217727)===0&&(Il&134217727)===0||Ve===null||yl(Ve,Ne,Vt,!1)}function cu(e,t,n){var a=De;De|=2;var s=Bh(),c=Yh();(Ve!==e||Ne!==t)&&(ui=null,Ga(e,t)),t=!1;var h=Ke;e:do try{if(Ue!==0&&Ce!==null){var x=Ce,C=qt;switch(Ue){case 8:su(),h=6;break e;case 3:case 2:case 9:case 6:Bt.current===null&&(t=!0);var k=Ue;if(Ue=0,qt=null,Xa(e,x,C,k),n&&Ya){h=0;break e}break;default:k=Ue,Ue=0,qt=null,Xa(e,x,C,k)}}jb(),h=Ke;break}catch(Q){Hh(e,Q)}while(!0);return t&&e.shellSuspendCounter++,Un=Xl=null,De=a,O.H=s,O.A=c,Ce===null&&(Ve=null,Ne=0,_o()),h}function jb(){for(;Ce!==null;)qh(Ce)}function Rb(e,t){var n=De;De|=2;var a=Bh(),s=Yh();Ve!==e||Ne!==t?(ui=null,ci=wt()+500,Ga(e,t)):Ya=Pe(e,t);e:do try{if(Ue!==0&&Ce!==null){t=Ce;var c=qt;t:switch(Ue){case 1:Ue=0,qt=null,Xa(e,t,c,1);break;case 2:case 9:if(Pd(c)){Ue=0,qt=null,Vh(t);break}t=function(){Ue!==2&&Ue!==9||Ve!==e||(Ue=7),Sn(e)},c.then(t,t);break e;case 3:Ue=7;break e;case 4:Ue=5;break e;case 7:Pd(c)?(Ue=0,qt=null,Vh(t)):(Ue=0,qt=null,Xa(e,t,c,7));break;case 5:var h=null;switch(Ce.tag){case 26:h=Ce.memoizedState;case 5:case 27:var x=Ce;if(h?Np(h):x.stateNode.complete){Ue=0,qt=null;var C=x.sibling;if(C!==null)Ce=C;else{var k=x.return;k!==null?(Ce=k,mi(k)):Ce=null}break t}}Ue=0,qt=null,Xa(e,t,c,5);break;case 6:Ue=0,qt=null,Xa(e,t,c,6);break;case 8:su(),Ke=6;break e;default:throw Error(i(462))}}Ob();break}catch(Q){Hh(e,Q)}while(!0);return Un=Xl=null,O.H=a,O.A=s,De=n,Ce!==null?0:(Ve=null,Ne=0,_o(),Ke)}function Ob(){for(;Ce!==null&&!Ss();)qh(Ce)}function qh(e){var t=fh(e.alternate,e,Zn);e.memoizedProps=e.pendingProps,t===null?mi(e):Ce=t}function Vh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=rh(n,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=rh(n,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:Ec(t);default:mh(n,t),t=Ce=Yd(t,Zn),t=fh(n,t,Zn)}e.memoizedProps=e.pendingProps,t===null?mi(e):Ce=t}function Xa(e,t,n,a){Un=Xl=null,Ec(t),za=null,Rr=0;var s=t.return;try{if(yb(e,s,t,n,Ne)){Ke=1,ei(e,Pt(n,e.current)),Ce=null;return}}catch(c){if(s!==null)throw Ce=s,c;Ke=1,ei(e,Pt(n,e.current)),Ce=null;return}t.flags&32768?(Re||a===1?e=!0:Ya||(Ne&536870912)!==0?e=!1:(hl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Bt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Gh(t,e)):mi(t)}function mi(e){var t=e;do{if((t.flags&32768)!==0){Gh(t,hl);return}e=t.return;var n=Sb(t.alternate,t,Zn);if(n!==null){Ce=n;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);Ke===0&&(Ke=5)}function Gh(e,t){do{var n=wb(e.alternate,e);if(n!==null){n.flags&=32767,Ce=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=n}while(e!==null);Ke=6,Ce=null}function Xh(e,t,n,a,s,c,h,x,C){e.cancelPendingCommit=null;do hi();while(st!==0);if((De&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(c=t.lanes|t.childLanes,c|=Ps,$t(e,n,c,h,x,C),e===Ve&&(Ce=Ve=null,Ne=0),Va=t,vl=e,$n=n,ru=c,ou=s,zh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Db(On,function(){return Wh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null,s=X.p,X.p=2,h=De,De|=4;try{Tb(e,t,n)}finally{De=h,X.p=s,O.T=a}}st=1,Qh(),Zh(),$h()}}function Qh(){if(st===1){st=0;var e=vl,t=Va,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=O.T,O.T=null;var a=X.p;X.p=2;var s=De;De|=4;try{Ch(t,e);var c=Su,h=Md(e.containerInfo),x=c.focusedElem,C=c.selectionRange;if(h!==x&&x&&x.ownerDocument&&Od(x.ownerDocument.documentElement,x)){if(C!==null&&Zs(x)){var k=C.start,Q=C.end;if(Q===void 0&&(Q=k),"selectionStart"in x)x.selectionStart=k,x.selectionEnd=Math.min(Q,x.value.length);else{var K=x.ownerDocument||document,Y=K&&K.defaultView||window;if(Y.getSelection){var V=Y.getSelection(),ue=x.textContent.length,ge=Math.min(C.start,ue),Ye=C.end===void 0?ge:Math.min(C.end,ue);!V.extend&&ge>Ye&&(h=Ye,Ye=ge,ge=h);var D=Rd(x,ge),R=Rd(x,Ye);if(D&&R&&(V.rangeCount!==1||V.anchorNode!==D.node||V.anchorOffset!==D.offset||V.focusNode!==R.node||V.focusOffset!==R.offset)){var H=K.createRange();H.setStart(D.node,D.offset),V.removeAllRanges(),ge>Ye?(V.addRange(H),V.extend(R.node,R.offset)):(H.setEnd(R.node,R.offset),V.addRange(H))}}}}for(K=[],V=x;V=V.parentNode;)V.nodeType===1&&K.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<K.length;x++){var Z=K[x];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Ai=!!xu,Su=xu=null}finally{De=s,X.p=a,O.T=n}}e.current=t,st=2}}function Zh(){if(st===2){st=0;var e=vl,t=Va,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=O.T,O.T=null;var a=X.p;X.p=2;var s=De;De|=4;try{xh(e,t.alternate,t)}finally{De=s,X.p=a,O.T=n}}st=3}}function $h(){if(st===4||st===3){st=0,Dl();var e=vl,t=Va,n=$n,a=zh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?st=5:(st=0,Va=vl=null,Kh(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(gl=null),Ns(n),t=t.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(tl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,s=X.p,X.p=2,O.T=null;try{for(var c=e.onRecoverableError,h=0;h<a.length;h++){var x=a[h];c(x.value,{componentStack:x.stack})}}finally{O.T=t,X.p=s}}($n&3)!==0&&hi(),Sn(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?e===iu?Zr++:(Zr=0,iu=e):Zr=0,$r(0)}}function Kh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Nr(t)))}function hi(){return Qh(),Zh(),$h(),Wh()}function Wh(){if(st!==5)return!1;var e=vl,t=ru;ru=0;var n=Ns($n),a=O.T,s=X.p;try{X.p=32>n?32:n,O.T=null,n=ou,ou=null;var c=vl,h=$n;if(st=0,Va=vl=null,$n=0,(De&6)!==0)throw Error(i(331));var x=De;if(De|=4,Oh(c.current),Nh(c,c.current,h,n),De=x,$r(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(tl,c)}catch{}return!0}finally{X.p=s,O.T=a,Kh(e,t)}}function Jh(e,t,n){t=Pt(n,t),t=Bc(e.stateNode,t,2),e=ul(e,t,2),e!==null&&(Rt(e,2),Sn(e))}function He(e,t,n){if(e.tag===3)Jh(e,e,n);else for(;t!==null;){if(t.tag===3){Jh(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(gl===null||!gl.has(a))){e=Pt(n,e),n=Pm(2),a=ul(t,n,2),a!==null&&(Fm(n,a,t,e),Rt(a,2),Sn(a));break}}t=t.return}}function uu(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Ab;var s=new Set;a.set(t,s)}else s=a.get(t),s===void 0&&(s=new Set,a.set(t,s));s.has(n)||(nu=!0,s.add(n),e=Mb.bind(null,e,t,n),t.then(e,e))}function Mb(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ve===e&&(Ne&n)===n&&(Ke===4||Ke===3&&(Ne&62914560)===Ne&&300>wt()-si?(De&2)===0&&Ga(e,0):lu|=n,qa===Ne&&(qa=0)),Sn(e)}function Ph(e,t){t===0&&(t=jt()),e=ql(e,t),e!==null&&(Rt(e,t),Sn(e))}function _b(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ph(e,n)}function zb(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(i(314))}a!==null&&a.delete(t),Ph(e,n)}function Db(e,t){return pn(e,t)}var pi=null,Qa=null,fu=!1,gi=!1,du=!1,bl=0;function Sn(e){e!==Qa&&e.next===null&&(Qa===null?pi=Qa=e:Qa=Qa.next=e),gi=!0,fu||(fu=!0,Ub())}function $r(e,t){if(!du&&gi){du=!0;do for(var n=!1,a=pi;a!==null;){if(e!==0){var s=a.pendingLanes;if(s===0)var c=0;else{var h=a.suspendedLanes,x=a.pingedLanes;c=(1<<31-Et(42|e)+1)-1,c&=s&~(h&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,tp(a,c))}else c=Ne,c=it(a,a===Ve?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Pe(a,c)||(n=!0,tp(a,c));a=a.next}while(n);du=!1}}function Lb(){Fh()}function Fh(){gi=fu=!1;var e=0;bl!==0&&Zb()&&(e=bl);for(var t=wt(),n=null,a=pi;a!==null;){var s=a.next,c=Ih(a,t);c===0?(a.next=null,n===null?pi=s:n.next=s,s===null&&(Qa=n)):(n=a,(e!==0||(c&3)!==0)&&(gi=!0)),a=s}st!==0&&st!==5||$r(e),bl!==0&&(bl=0)}function Ih(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Et(c),x=1<<h,C=s[h];C===-1?((x&n)===0||(x&a)!==0)&&(s[h]=vn(x,t)):C<=t&&(e.expiredLanes|=x),c&=~x}if(t=Ve,n=Ne,n=it(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&fa(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Pe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&fa(a),Ns(n)){case 2:case 8:n=xo;break;case 32:n=On;break;case 268435456:n=dr;break;default:n=On}return a=ep.bind(null,e),n=pn(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&fa(a),e.callbackPriority=2,e.callbackNode=null,2}function ep(e,t){if(st!==0&&st!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(hi()&&e.callbackNode!==n)return null;var a=Ne;return a=it(e,e===Ve?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Lh(e,a,t),Ih(e,wt()),e.callbackNode!=null&&e.callbackNode===n?ep.bind(null,e):null)}function tp(e,t){if(hi())return null;Lh(e,t,!0)}function Ub(){Kb(function(){(De&6)!==0?pn(bo,Lb):Fh()})}function mu(){if(bl===0){var e=Oa;e===0&&(e=Oe,Oe<<=1,(Oe&261888)===0&&(Oe=256)),bl=e}return bl}function np(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Eo(""+e)}function lp(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Hb(e,t,n,a,s){if(t==="submit"&&n&&n.stateNode===s){var c=np((s[Ot]||null).action),h=a.submitter;h&&(t=(t=h[Ot]||null)?np(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var x=new jo("action","action",null,a,s);e.push({event:x,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(bl!==0){var C=h?lp(s,h):new FormData(s);zc(n,{pending:!0,data:C,method:s.method,action:c},null,C)}}else typeof c=="function"&&(x.preventDefault(),C=h?lp(s,h):new FormData(s),zc(n,{pending:!0,data:C,method:s.method,action:c},c,C))},currentTarget:s}]})}}for(var hu=0;hu<Js.length;hu++){var pu=Js[hu],kb=pu.toLowerCase(),Bb=pu[0].toUpperCase()+pu.slice(1);on(kb,"on"+Bb)}on(Dd,"onAnimationEnd"),on(Ld,"onAnimationIteration"),on(Ud,"onAnimationStart"),on("dblclick","onDoubleClick"),on("focusin","onFocus"),on("focusout","onBlur"),on(tb,"onTransitionRun"),on(nb,"onTransitionStart"),on(lb,"onTransitionCancel"),on(Hd,"onTransitionEnd"),ga("onMouseEnter",["mouseout","mouseover"]),ga("onMouseLeave",["mouseout","mouseover"]),ga("onPointerEnter",["pointerout","pointerover"]),ga("onPointerLeave",["pointerout","pointerover"]),Hl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kr="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(" "),Yb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kr));function ap(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],s=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var h=a.length-1;0<=h;h--){var x=a[h],C=x.instance,k=x.currentTarget;if(x=x.listener,C!==c&&s.isPropagationStopped())break e;c=x,s.currentTarget=k;try{c(s)}catch(Q){Mo(Q)}s.currentTarget=null,c=C}else for(h=0;h<a.length;h++){if(x=a[h],C=x.instance,k=x.currentTarget,x=x.listener,C!==c&&s.isPropagationStopped())break e;c=x,s.currentTarget=k;try{c(s)}catch(Q){Mo(Q)}s.currentTarget=null,c=C}}}}function Ae(e,t){var n=t[js];n===void 0&&(n=t[js]=new Set);var a=e+"__bubble";n.has(a)||(rp(t,e,2,!1),n.add(a))}function gu(e,t,n){var a=0;t&&(a|=4),rp(n,e,a,t)}var vi="_reactListening"+Math.random().toString(36).slice(2);function vu(e){if(!e[vi]){e[vi]=!0,Ff.forEach(function(n){n!=="selectionchange"&&(Yb.has(n)||gu(n,!1,e),gu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vi]||(t[vi]=!0,gu("selectionchange",!1,t))}}function rp(e,t,n,a){switch(Dp(t)){case 2:var s=hx;break;case 8:s=px;break;default:s=_u}n=s.bind(null,t,n,e),s=void 0,!Hs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),a?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function yu(e,t,n,a,s){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var h=a.tag;if(h===3||h===4){var x=a.stateNode.containerInfo;if(x===s)break;if(h===4)for(h=a.return;h!==null;){var C=h.tag;if((C===3||C===4)&&h.stateNode.containerInfo===s)return;h=h.return}for(;x!==null;){if(h=ma(x),h===null)return;if(C=h.tag,C===5||C===6||C===26||C===27){a=c=h;continue e}x=x.parentNode}}a=a.return}ud(function(){var k=c,Q=Ls(n),K=[];e:{var Y=kd.get(e);if(Y!==void 0){var V=jo,ue=e;switch(e){case"keypress":if(Ao(n)===0)break e;case"keydown":case"keyup":V=zy;break;case"focusin":ue="focus",V=qs;break;case"focusout":ue="blur",V=qs;break;case"beforeblur":case"afterblur":V=qs;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":V=md;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=Sy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=Uy;break;case Dd:case Ld:case Ud:V=Ey;break;case Hd:V=ky;break;case"scroll":case"scrollend":V=by;break;case"wheel":V=Yy;break;case"copy":case"cut":case"paste":V=Ay;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=pd;break;case"toggle":case"beforetoggle":V=Vy}var ge=(t&4)!==0,Ye=!ge&&(e==="scroll"||e==="scrollend"),D=ge?Y!==null?Y+"Capture":null:Y;ge=[];for(var R=k,H;R!==null;){var Z=R;if(H=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||H===null||D===null||(Z=gr(R,D),Z!=null&&ge.push(Wr(R,Z,H))),Ye)break;R=R.return}0<ge.length&&(Y=new V(Y,ue,null,n,Q),K.push({event:Y,listeners:ge}))}}if((t&7)===0){e:{if(Y=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",Y&&n!==Ds&&(ue=n.relatedTarget||n.fromElement)&&(ma(ue)||ue[da]))break e;if((V||Y)&&(Y=Q.window===Q?Q:(Y=Q.ownerDocument)?Y.defaultView||Y.parentWindow:window,V?(ue=n.relatedTarget||n.toElement,V=k,ue=ue?ma(ue):null,ue!==null&&(Ye=f(ue),ge=ue.tag,ue!==Ye||ge!==5&&ge!==27&&ge!==6)&&(ue=null)):(V=null,ue=k),V!==ue)){if(ge=md,Z="onMouseLeave",D="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(ge=pd,Z="onPointerLeave",D="onPointerEnter",R="pointer"),Ye=V==null?Y:pr(V),H=ue==null?Y:pr(ue),Y=new ge(Z,R+"leave",V,n,Q),Y.target=Ye,Y.relatedTarget=H,Z=null,ma(Q)===k&&(ge=new ge(D,R+"enter",ue,n,Q),ge.target=H,ge.relatedTarget=Ye,Z=ge),Ye=Z,V&&ue)t:{for(ge=qb,D=V,R=ue,H=0,Z=D;Z;Z=ge(Z))H++;Z=0;for(var pe=R;pe;pe=ge(pe))Z++;for(;0<H-Z;)D=ge(D),H--;for(;0<Z-H;)R=ge(R),Z--;for(;H--;){if(D===R||R!==null&&D===R.alternate){ge=D;break t}D=ge(D),R=ge(R)}ge=null}else ge=null;V!==null&&op(K,Y,V,ge,!1),ue!==null&&Ye!==null&&op(K,Ye,ue,ge,!0)}}e:{if(Y=k?pr(k):window,V=Y.nodeName&&Y.nodeName.toLowerCase(),V==="select"||V==="input"&&Y.type==="file")var Me=Td;else if(Sd(Y))if(Ed)Me=Fy;else{Me=Jy;var de=Wy}else V=Y.nodeName,!V||V.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?k&&zs(k.elementType)&&(Me=Td):Me=Py;if(Me&&(Me=Me(e,k))){wd(K,Me,n,Q);break e}de&&de(e,Y,k),e==="focusout"&&k&&Y.type==="number"&&k.memoizedProps.value!=null&&_s(Y,"number",Y.value)}switch(de=k?pr(k):window,e){case"focusin":(Sd(de)||de.contentEditable==="true")&&(wa=de,$s=k,Er=null);break;case"focusout":Er=$s=wa=null;break;case"mousedown":Ks=!0;break;case"contextmenu":case"mouseup":case"dragend":Ks=!1,_d(K,n,Q);break;case"selectionchange":if(eb)break;case"keydown":case"keyup":_d(K,n,Q)}var we;if(Gs)e:{switch(e){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else Sa?bd(e,n)&&(je="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(je="onCompositionStart");je&&(gd&&n.locale!=="ko"&&(Sa||je!=="onCompositionStart"?je==="onCompositionEnd"&&Sa&&(we=fd()):(ll=Q,ks="value"in ll?ll.value:ll.textContent,Sa=!0)),de=yi(k,je),0<de.length&&(je=new hd(je,e,null,n,Q),K.push({event:je,listeners:de}),we?je.data=we:(we=xd(n),we!==null&&(je.data=we)))),(we=Xy?Qy(e,n):Zy(e,n))&&(je=yi(k,"onBeforeInput"),0<je.length&&(de=new hd("onBeforeInput","beforeinput",null,n,Q),K.push({event:de,listeners:je}),de.data=we)),Hb(K,e,k,n,Q)}ap(K,t)})}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function yi(e,t){for(var n=t+"Capture",a=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=gr(e,n),s!=null&&a.unshift(Wr(e,s,c)),s=gr(e,t),s!=null&&a.push(Wr(e,s,c))),e.tag===3)return a;e=e.return}return[]}function qb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function op(e,t,n,a,s){for(var c=t._reactName,h=[];n!==null&&n!==a;){var x=n,C=x.alternate,k=x.stateNode;if(x=x.tag,C!==null&&C===a)break;x!==5&&x!==26&&x!==27||k===null||(C=k,s?(k=gr(n,c),k!=null&&h.unshift(Wr(n,k,C))):s||(k=gr(n,c),k!=null&&h.push(Wr(n,k,C)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var Vb=/\r\n?/g,Gb=/\u0000|\uFFFD/g;function ip(e){return(typeof e=="string"?e:""+e).replace(Vb,`
|
|
49
|
+
`).replace(Gb,"")}function sp(e,t){return t=ip(t),ip(e)===t}function Be(e,t,n,a,s,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ya(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ya(e,""+a);break;case"className":wo(e,"class",a);break;case"tabIndex":wo(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":wo(e,n,a);break;case"style":sd(e,a,c);break;case"data":if(t!=="object"){wo(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Eo(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&Be(e,t,"name",s.name,s,null),Be(e,t,"formEncType",s.formEncType,s,null),Be(e,t,"formMethod",s.formMethod,s,null),Be(e,t,"formTarget",s.formTarget,s,null)):(Be(e,t,"encType",s.encType,s,null),Be(e,t,"method",s.method,s,null),Be(e,t,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Eo(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=_n);break;case"onScroll":a!=null&&Ae("scroll",e);break;case"onScrollEnd":a!=null&&Ae("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(i(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Eo(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Ae("beforetoggle",e),Ae("toggle",e),So(e,"popover",a);break;case"xlinkActuate":Mn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Mn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Mn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Mn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Mn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Mn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Mn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Mn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Mn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":So(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=vy.get(n)||n,So(e,n,a))}}function bu(e,t,n,a,s,c){switch(n){case"style":sd(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(i(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=n}}break;case"children":typeof a=="string"?ya(e,a):(typeof a=="number"||typeof a=="bigint")&&ya(e,""+a);break;case"onScroll":a!=null&&Ae("scroll",e);break;case"onScrollEnd":a!=null&&Ae("scrollend",e);break;case"onClick":a!=null&&(e.onclick=_n);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!If.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),c=e[Ot]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,s);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):So(e,n,a)}}}function yt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ae("error",e),Ae("load",e);var a=!1,s=!1,c;for(c in n)if(n.hasOwnProperty(c)){var h=n[c];if(h!=null)switch(c){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Be(e,t,c,h,n,null)}}s&&Be(e,t,"srcSet",n.srcSet,n,null),a&&Be(e,t,"src",n.src,n,null);return;case"input":Ae("invalid",e);var x=c=h=s=null,C=null,k=null;for(a in n)if(n.hasOwnProperty(a)){var Q=n[a];if(Q!=null)switch(a){case"name":s=Q;break;case"type":h=Q;break;case"checked":C=Q;break;case"defaultChecked":k=Q;break;case"value":c=Q;break;case"defaultValue":x=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,t));break;default:Be(e,t,a,Q,n,null)}}ad(e,c,x,C,k,h,s,!1);return;case"select":Ae("invalid",e),a=h=c=null;for(s in n)if(n.hasOwnProperty(s)&&(x=n[s],x!=null))switch(s){case"value":c=x;break;case"defaultValue":h=x;break;case"multiple":a=x;default:Be(e,t,s,x,n,null)}t=c,n=h,e.multiple=!!a,t!=null?va(e,!!a,t,!1):n!=null&&va(e,!!a,n,!0);return;case"textarea":Ae("invalid",e),c=s=a=null;for(h in n)if(n.hasOwnProperty(h)&&(x=n[h],x!=null))switch(h){case"value":a=x;break;case"defaultValue":s=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(i(91));break;default:Be(e,t,h,x,n,null)}od(e,a,s,c);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Be(e,t,C,a,n,null)}return;case"dialog":Ae("beforetoggle",e),Ae("toggle",e),Ae("cancel",e),Ae("close",e);break;case"iframe":case"object":Ae("load",e);break;case"video":case"audio":for(a=0;a<Kr.length;a++)Ae(Kr[a],e);break;case"image":Ae("error",e),Ae("load",e);break;case"details":Ae("toggle",e);break;case"embed":case"source":case"link":Ae("error",e),Ae("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in n)if(n.hasOwnProperty(k)&&(a=n[k],a!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Be(e,t,k,a,n,null)}return;default:if(zs(t)){for(Q in n)n.hasOwnProperty(Q)&&(a=n[Q],a!==void 0&&bu(e,t,Q,a,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(a=n[x],a!=null&&Be(e,t,x,a,n,null))}function Xb(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,c=null,h=null,x=null,C=null,k=null,Q=null;for(V in n){var K=n[V];if(n.hasOwnProperty(V)&&K!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":C=K;default:a.hasOwnProperty(V)||Be(e,t,V,null,a,K)}}for(var Y in a){var V=a[Y];if(K=n[Y],a.hasOwnProperty(Y)&&(V!=null||K!=null))switch(Y){case"type":c=V;break;case"name":s=V;break;case"checked":k=V;break;case"defaultChecked":Q=V;break;case"value":h=V;break;case"defaultValue":x=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,t));break;default:V!==K&&Be(e,t,Y,V,a,K)}}Ms(e,h,x,C,k,Q,c,s);return;case"select":V=h=x=Y=null;for(c in n)if(C=n[c],n.hasOwnProperty(c)&&C!=null)switch(c){case"value":break;case"multiple":V=C;default:a.hasOwnProperty(c)||Be(e,t,c,null,a,C)}for(s in a)if(c=a[s],C=n[s],a.hasOwnProperty(s)&&(c!=null||C!=null))switch(s){case"value":Y=c;break;case"defaultValue":x=c;break;case"multiple":h=c;default:c!==C&&Be(e,t,s,c,a,C)}t=x,n=h,a=V,Y!=null?va(e,!!n,Y,!1):!!a!=!!n&&(t!=null?va(e,!!n,t,!0):va(e,!!n,n?[]:"",!1));return;case"textarea":V=Y=null;for(x in n)if(s=n[x],n.hasOwnProperty(x)&&s!=null&&!a.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Be(e,t,x,null,a,s)}for(h in a)if(s=a[h],c=n[h],a.hasOwnProperty(h)&&(s!=null||c!=null))switch(h){case"value":Y=s;break;case"defaultValue":V=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(i(91));break;default:s!==c&&Be(e,t,h,s,a,c)}rd(e,Y,V);return;case"option":for(var ue in n)if(Y=n[ue],n.hasOwnProperty(ue)&&Y!=null&&!a.hasOwnProperty(ue))switch(ue){case"selected":e.selected=!1;break;default:Be(e,t,ue,null,a,Y)}for(C in a)if(Y=a[C],V=n[C],a.hasOwnProperty(C)&&Y!==V&&(Y!=null||V!=null))switch(C){case"selected":e.selected=Y&&typeof Y!="function"&&typeof Y!="symbol";break;default:Be(e,t,C,Y,a,V)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ge in n)Y=n[ge],n.hasOwnProperty(ge)&&Y!=null&&!a.hasOwnProperty(ge)&&Be(e,t,ge,null,a,Y);for(k in a)if(Y=a[k],V=n[k],a.hasOwnProperty(k)&&Y!==V&&(Y!=null||V!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:Be(e,t,k,Y,a,V)}return;default:if(zs(t)){for(var Ye in n)Y=n[Ye],n.hasOwnProperty(Ye)&&Y!==void 0&&!a.hasOwnProperty(Ye)&&bu(e,t,Ye,void 0,a,Y);for(Q in a)Y=a[Q],V=n[Q],!a.hasOwnProperty(Q)||Y===V||Y===void 0&&V===void 0||bu(e,t,Q,Y,a,V);return}}for(var D in n)Y=n[D],n.hasOwnProperty(D)&&Y!=null&&!a.hasOwnProperty(D)&&Be(e,t,D,null,a,Y);for(K in a)Y=a[K],V=n[K],!a.hasOwnProperty(K)||Y===V||Y==null&&V==null||Be(e,t,K,Y,a,V)}function cp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Qb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var s=n[a],c=s.transferSize,h=s.initiatorType,x=s.duration;if(c&&x&&cp(h)){for(h=0,x=s.responseEnd,a+=1;a<n.length;a++){var C=n[a],k=C.startTime;if(k>x)break;var Q=C.transferSize,K=C.initiatorType;Q&&cp(K)&&(C=C.responseEnd,h+=Q*(C<x?1:(x-k)/(C-k)))}if(--a,t+=8*(c+h)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var xu=null,Su=null;function bi(e){return e.nodeType===9?e:e.ownerDocument}function up(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function fp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function wu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Tu=null;function Zb(){var e=window.event;return e&&e.type==="popstate"?e===Tu?!1:(Tu=e,!0):(Tu=null,!1)}var dp=typeof setTimeout=="function"?setTimeout:void 0,$b=typeof clearTimeout=="function"?clearTimeout:void 0,mp=typeof Promise=="function"?Promise:void 0,Kb=typeof queueMicrotask=="function"?queueMicrotask:typeof mp<"u"?function(e){return mp.resolve(null).then(e).catch(Wb)}:dp;function Wb(e){setTimeout(function(){throw e})}function xl(e){return e==="head"}function hp(e,t){var n=t,a=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(s),Wa(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Jr(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Jr(n);for(var c=n.firstChild;c;){var h=c.nextSibling,x=c.nodeName;c[hr]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=h}}else n==="body"&&Jr(e.ownerDocument.body);n=s}while(n);Wa(t)}function pp(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Eu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Eu(n),Rs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Jb(e,t,n,a){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[hr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=nn(e.nextSibling),e===null)break}return null}function Pb(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=nn(e.nextSibling),e===null))return null;return e}function gp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=nn(e.nextSibling),e===null))return null;return e}function Cu(e){return e.data==="$?"||e.data==="$~"}function Au(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Fb(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function nn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Nu=null;function vp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return nn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function yp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function bp(e,t,n){switch(t=bi(n),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Jr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Rs(e)}var ln=new Map,xp=new Set;function xi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Kn=X.d;X.d={f:Ib,r:ex,D:tx,C:nx,L:lx,m:ax,X:ox,S:rx,M:ix};function Ib(){var e=Kn.f(),t=fi();return e||t}function ex(e){var t=ha(e);t!==null&&t.tag===5&&t.type==="form"?Hm(t):Kn.r(e)}var Za=typeof document>"u"?null:document;function Sp(e,t,n){var a=Za;if(a&&typeof t=="string"&&t){var s=Wt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),xp.has(s)||(xp.add(s),e={rel:e,crossOrigin:n,href:t},a.querySelector(s)===null&&(t=a.createElement("link"),yt(t,"link",e),ft(t),a.head.appendChild(t)))}}function tx(e){Kn.D(e),Sp("dns-prefetch",e,null)}function nx(e,t){Kn.C(e,t),Sp("preconnect",e,t)}function lx(e,t,n){Kn.L(e,t,n);var a=Za;if(a&&e&&t){var s='link[rel="preload"][as="'+Wt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Wt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Wt(n.imageSizes)+'"]')):s+='[href="'+Wt(e)+'"]';var c=s;switch(t){case"style":c=$a(e);break;case"script":c=Ka(e)}ln.has(c)||(e=y({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ln.set(c,e),a.querySelector(s)!==null||t==="style"&&a.querySelector(Pr(c))||t==="script"&&a.querySelector(Fr(c))||(t=a.createElement("link"),yt(t,"link",e),ft(t),a.head.appendChild(t)))}}function ax(e,t){Kn.m(e,t);var n=Za;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Wt(a)+'"][href="'+Wt(e)+'"]',c=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ka(e)}if(!ln.has(c)&&(e=y({rel:"modulepreload",href:e},t),ln.set(c,e),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Fr(c)))return}a=n.createElement("link"),yt(a,"link",e),ft(a),n.head.appendChild(a)}}}function rx(e,t,n){Kn.S(e,t,n);var a=Za;if(a&&e){var s=pa(a).hoistableStyles,c=$a(e);t=t||"default";var h=s.get(c);if(!h){var x={loading:0,preload:null};if(h=a.querySelector(Pr(c)))x.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ln.get(c))&&ju(e,n);var C=h=a.createElement("link");ft(C),yt(C,"link",e),C._p=new Promise(function(k,Q){C.onload=k,C.onerror=Q}),C.addEventListener("load",function(){x.loading|=1}),C.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Si(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:x},s.set(c,h)}}}function ox(e,t){Kn.X(e,t);var n=Za;if(n&&e){var a=pa(n).hoistableScripts,s=Ka(e),c=a.get(s);c||(c=n.querySelector(Fr(s)),c||(e=y({src:e,async:!0},t),(t=ln.get(s))&&Ru(e,t),c=n.createElement("script"),ft(c),yt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(s,c))}}function ix(e,t){Kn.M(e,t);var n=Za;if(n&&e){var a=pa(n).hoistableScripts,s=Ka(e),c=a.get(s);c||(c=n.querySelector(Fr(s)),c||(e=y({src:e,async:!0,type:"module"},t),(t=ln.get(s))&&Ru(e,t),c=n.createElement("script"),ft(c),yt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(s,c))}}function wp(e,t,n,a){var s=(s=me.current)?xi(s):null;if(!s)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=$a(n.href),n=pa(s).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=$a(n.href);var c=pa(s).hoistableStyles,h=c.get(e);if(h||(s=s.ownerDocument||s,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=s.querySelector(Pr(e)))&&!c._p&&(h.instance=c,h.state.loading=5),ln.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ln.set(e,n),c||sx(s,e,n,h.state))),t&&a===null)throw Error(i(528,""));return h}if(t&&a!==null)throw Error(i(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ka(n),n=pa(s).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function $a(e){return'href="'+Wt(e)+'"'}function Pr(e){return'link[rel="stylesheet"]['+e+"]"}function Tp(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function sx(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),yt(t,"link",n),ft(t),e.head.appendChild(t))}function Ka(e){return'[src="'+Wt(e)+'"]'}function Fr(e){return"script[async]"+e}function Ep(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Wt(n.href)+'"]');if(a)return t.instance=a,ft(a),a;var s=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ft(a),yt(a,"style",s),Si(a,n.precedence,e),t.instance=a;case"stylesheet":s=$a(n.href);var c=e.querySelector(Pr(s));if(c)return t.state.loading|=4,t.instance=c,ft(c),c;a=Tp(n),(s=ln.get(s))&&ju(a,s),c=(e.ownerDocument||e).createElement("link"),ft(c);var h=c;return h._p=new Promise(function(x,C){h.onload=x,h.onerror=C}),yt(c,"link",a),t.state.loading|=4,Si(c,n.precedence,e),t.instance=c;case"script":return c=Ka(n.src),(s=e.querySelector(Fr(c)))?(t.instance=s,ft(s),s):(a=n,(s=ln.get(c))&&(a=y({},n),Ru(a,s)),e=e.ownerDocument||e,s=e.createElement("script"),ft(s),yt(s,"link",a),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Si(a,n.precedence,e));return t.instance}function Si(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,c=s,h=0;h<a.length;h++){var x=a[h];if(x.dataset.precedence===t)c=x;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function ju(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ru(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var wi=null;function Cp(e,t,n){if(wi===null){var a=new Map,s=wi=new Map;s.set(n,a)}else s=wi,a=s.get(n),a||(a=new Map,s.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var c=n[s];if(!(c[hr]||c[ht]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var x=a.get(h);x?x.push(c):a.set(h,[c])}}return a}function Ap(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function cx(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Np(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ux(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=$a(a.href),c=t.querySelector(Pr(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ti.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,ft(c);return}c=t.ownerDocument||t,a=Tp(a),(s=ln.get(s))&&ju(a,s),c=c.createElement("link"),ft(c);var h=c;h._p=new Promise(function(x,C){h.onload=x,h.onerror=C}),yt(c,"link",a),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Ti.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Ou=0;function fx(e,t){return e.stylesheets&&e.count===0&&Ci(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Ci(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Ou===0&&(Ou=62500*Qb());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ci(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Ou?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function Ti(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ci(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ei=null;function Ci(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ei=new Map,t.forEach(dx,e),Ei=null,Ti.call(e))}function dx(e,t){if(!(t.state.loading&4)){var n=Ei.get(e);if(n)var a=n.get(null);else{n=new Map,Ei.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var h=s[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),a=h)}a&&n.set(null,a)}s=t.instance,h=s.getAttribute("data-precedence"),c=n.get(h)||a,c===a&&n.set(null,s),n.set(h,s),this.count++,a=Ti.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Ir={$$typeof:q,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function mx(e,t,n,a,s,c,h,x,C){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=rn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rn(0),this.hiddenUpdates=rn(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function jp(e,t,n,a,s,c,h,x,C,k,Q,K){return e=new mx(e,t,n,h,C,k,Q,K,x),t=1,c===!0&&(t|=24),c=kt(3,null,null,t),e.current=c,c.stateNode=e,t=cc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},mc(c),e}function Rp(e){return e?(e=Ca,e):Ca}function Op(e,t,n,a,s,c){s=Rp(s),a.context===null?a.context=s:a.pendingContext=s,a=cl(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=ul(e,a,t),n!==null&&(Ut(n,e,t),Mr(n,e,t))}function Mp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Mu(e,t){Mp(e,t),(e=e.alternate)&&Mp(e,t)}function _p(e){if(e.tag===13||e.tag===31){var t=ql(e,67108864);t!==null&&Ut(t,e,67108864),Mu(e,67108864)}}function zp(e){if(e.tag===13||e.tag===31){var t=Gt();t=As(t);var n=ql(e,t);n!==null&&Ut(n,e,t),Mu(e,t)}}var Ai=!0;function hx(e,t,n,a){var s=O.T;O.T=null;var c=X.p;try{X.p=2,_u(e,t,n,a)}finally{X.p=c,O.T=s}}function px(e,t,n,a){var s=O.T;O.T=null;var c=X.p;try{X.p=8,_u(e,t,n,a)}finally{X.p=c,O.T=s}}function _u(e,t,n,a){if(Ai){var s=zu(a);if(s===null)yu(e,t,a,Ni,n),Lp(e,a);else if(vx(s,e,t,n,a))a.stopPropagation();else if(Lp(e,a),t&4&&-1<gx.indexOf(e)){for(;s!==null;){var c=ha(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=Le(c.pendingLanes);if(h!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;h;){var C=1<<31-Et(h);x.entanglements[1]|=C,h&=~C}Sn(c),(De&6)===0&&(ci=wt()+500,$r(0))}}break;case 31:case 13:x=ql(c,2),x!==null&&Ut(x,c,2),fi(),Mu(c,2)}if(c=zu(a),c===null&&yu(e,t,a,Ni,n),c===s)break;s=c}s!==null&&a.stopPropagation()}else yu(e,t,a,null,n)}}function zu(e){return e=Ls(e),Du(e)}var Ni=null;function Du(e){if(Ni=null,e=ma(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(t),e!==null)return e;e=null}else if(n===31){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ni=e,null}function Dp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(yo()){case bo:return 2;case xo:return 8;case On:case ws:return 32;case dr:return 268435456;default:return 32}default:return 32}}var Lu=!1,Sl=null,wl=null,Tl=null,eo=new Map,to=new Map,El=[],gx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Lp(e,t){switch(e){case"focusin":case"focusout":Sl=null;break;case"dragenter":case"dragleave":wl=null;break;case"mouseover":case"mouseout":Tl=null;break;case"pointerover":case"pointerout":eo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":to.delete(t.pointerId)}}function no(e,t,n,a,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[s]},t!==null&&(t=ha(t),t!==null&&_p(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function vx(e,t,n,a,s){switch(t){case"focusin":return Sl=no(Sl,e,t,n,a,s),!0;case"dragenter":return wl=no(wl,e,t,n,a,s),!0;case"mouseover":return Tl=no(Tl,e,t,n,a,s),!0;case"pointerover":var c=s.pointerId;return eo.set(c,no(eo.get(c)||null,e,t,n,a,s)),!0;case"gotpointercapture":return c=s.pointerId,to.set(c,no(to.get(c)||null,e,t,n,a,s)),!0}return!1}function Up(e){var t=ma(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,Jf(e.priority,function(){zp(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,Jf(e.priority,function(){zp(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 ji(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=zu(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Ds=a,n.target.dispatchEvent(a),Ds=null}else return t=ha(n),t!==null&&_p(t),e.blockedOn=n,!1;t.shift()}return!0}function Hp(e,t,n){ji(e)&&n.delete(t)}function yx(){Lu=!1,Sl!==null&&ji(Sl)&&(Sl=null),wl!==null&&ji(wl)&&(wl=null),Tl!==null&&ji(Tl)&&(Tl=null),eo.forEach(Hp),to.forEach(Hp)}function Ri(e,t){e.blockedOn===t&&(e.blockedOn=null,Lu||(Lu=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,yx)))}var Oi=null;function kp(e){Oi!==e&&(Oi=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Oi===e&&(Oi=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],s=e[t+2];if(typeof a!="function"){if(Du(a||n)===null)continue;break}var c=ha(n);c!==null&&(e.splice(t,3),t-=3,zc(c,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function Wa(e){function t(C){return Ri(C,e)}Sl!==null&&Ri(Sl,e),wl!==null&&Ri(wl,e),Tl!==null&&Ri(Tl,e),eo.forEach(t),to.forEach(t);for(var n=0;n<El.length;n++){var a=El[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<El.length&&(n=El[0],n.blockedOn===null);)Up(n),n.blockedOn===null&&El.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],c=n[a+1],h=s[Ot]||null;if(typeof c=="function")h||kp(n);else if(h){var x=null;if(c&&c.hasAttribute("formAction")){if(s=c,h=c[Ot]||null)x=h.formAction;else if(Du(s)!==null)continue}else x=h.action;typeof x=="function"?n[a+1]=x:(n.splice(a,3),a-=3),kp(n)}}}function Bp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return s=h})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Uu(e){this._internalRoot=e}Mi.prototype.render=Uu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current,a=Gt();Op(n,a,e,t,null,null)},Mi.prototype.unmount=Uu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Op(e.current,2,null,e,null,null),fi(),t[da]=null}};function Mi(e){this._internalRoot=e}Mi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Wf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<El.length&&t!==0&&t<El[n].priority;n++);El.splice(n,0,e),n===0&&Up(e)}};var Yp=r.version;if(Yp!=="19.2.6")throw Error(i(527,Yp,"19.2.6"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=g(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var bx={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _i=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_i.isDisabled&&_i.supportsFiber)try{tl=_i.inject(bx),Tt=_i}catch{}}return ao.createRoot=function(e,t){if(!u(e))throw Error(i(299));var n=!1,a="",s=$m,c=Km,h=Wm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=jp(e,1,!1,null,null,n,a,null,s,c,h,Bp),e[da]=t.current,vu(e),new Uu(t)},ao.hydrateRoot=function(e,t,n){if(!u(e))throw Error(i(299));var a=!1,s="",c=$m,h=Km,x=Wm,C=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),t=jp(e,1,!0,t,n??null,a,s,C,c,h,x,Bp),t.context=Rp(null),n=t.current,a=Gt(),a=As(a),s=cl(a),s.callback=null,ul(n,s,a),n=a,t.current.lanes=n,Rt(t,n),Sn(t),e[da]=t.current,vu(e),new Mi(t)},ao.version="19.2.6",ao}var Jp;function Rx(){if(Jp)return ku.exports;Jp=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),ku.exports=jx(),ku.exports}var Ox=Rx(),S=bf();const ie=Bg(S),xf=Sx({__proto__:null,default:ie},[S]);/**
|
|
50
|
+
* @license lucide-react v0.556.0 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const Mx=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_x=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,i)=>i?i.toUpperCase():o.toLowerCase()),Pp=l=>{const r=_x(l);return r.charAt(0).toUpperCase()+r.slice(1)},qg=(...l)=>l.filter((r,o,i)=>!!r&&r.trim()!==""&&i.indexOf(r)===o).join(" ").trim(),zx=l=>{for(const r in l)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
|
|
55
|
+
* @license lucide-react v0.556.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/var Dx={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"};/**
|
|
60
|
+
* @license lucide-react v0.556.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const Lx=S.forwardRef(({color:l="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:u="",children:f,iconNode:m,...p},v)=>S.createElement("svg",{ref:v,...Dx,width:r,height:r,stroke:l,strokeWidth:i?Number(o)*24/Number(r):o,className:qg("lucide",u),...!f&&!zx(p)&&{"aria-hidden":"true"},...p},[...m.map(([g,b])=>S.createElement(g,b)),...Array.isArray(f)?f:[f]]));/**
|
|
65
|
+
* @license lucide-react v0.556.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const et=(l,r)=>{const o=S.forwardRef(({className:i,...u},f)=>S.createElement(Lx,{ref:f,iconNode:r,className:qg(`lucide-${Mx(Pp(l))}`,`lucide-${l}`,i),...u}));return o.displayName=Pp(l),o};/**
|
|
70
|
+
* @license lucide-react v0.556.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/const Ux=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],co=et("brain",Ux);/**
|
|
75
|
+
* @license lucide-react v0.556.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const Hx=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],kx=et("chart-column",Hx);/**
|
|
80
|
+
* @license lucide-react v0.556.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const Bx=[["path",{d:"M6 5h12",key:"fvfigv"}],["path",{d:"M4 12h10",key:"oujl3d"}],["path",{d:"M12 19h8",key:"baeox8"}]],Yx=et("chart-no-axes-gantt",Bx);/**
|
|
85
|
+
* @license lucide-react v0.556.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const qx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Vg=et("check",qx);/**
|
|
90
|
+
* @license lucide-react v0.556.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const Vx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Gx=et("chevron-down",Vx);/**
|
|
95
|
+
* @license lucide-react v0.556.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const Xx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ml=et("chevron-right",Xx);/**
|
|
100
|
+
* @license lucide-react v0.556.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const Qx=[["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"}]],cs=et("circle-alert",Qx);/**
|
|
105
|
+
* @license lucide-react v0.556.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const Zx=[["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"}]],Gg=et("copy",Zx);/**
|
|
110
|
+
* @license lucide-react v0.556.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const $x=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Kx=et("download",$x);/**
|
|
115
|
+
* @license lucide-react v0.556.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const Wx=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Jx=et("external-link",Wx);/**
|
|
120
|
+
* @license lucide-react v0.556.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const Px=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],Fx=et("file",Px);/**
|
|
125
|
+
* @license lucide-react v0.556.0 - ISC
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the ISC license.
|
|
128
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/const Ix=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],e1=et("image",Ix);/**
|
|
130
|
+
* @license lucide-react v0.556.0 - ISC
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the ISC license.
|
|
133
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/const t1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],uo=et("loader-circle",t1);/**
|
|
135
|
+
* @license lucide-react v0.556.0 - ISC
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the ISC license.
|
|
138
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/const n1=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],rr=et("message-square",n1);/**
|
|
140
|
+
* @license lucide-react v0.556.0 - ISC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the ISC license.
|
|
143
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/const l1=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],a1=et("moon",l1);/**
|
|
145
|
+
* @license lucide-react v0.556.0 - ISC
|
|
146
|
+
*
|
|
147
|
+
* This source code is licensed under the ISC license.
|
|
148
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
+
*/const r1=[["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"}]],o1=et("refresh-cw",r1);/**
|
|
150
|
+
* @license lucide-react v0.556.0 - ISC
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the ISC license.
|
|
153
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/const i1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],s1=et("settings",i1);/**
|
|
155
|
+
* @license lucide-react v0.556.0 - ISC
|
|
156
|
+
*
|
|
157
|
+
* This source code is licensed under the ISC license.
|
|
158
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
+
*/const c1=[["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"}]],u1=et("sun",c1);/**
|
|
160
|
+
* @license lucide-react v0.556.0 - ISC
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the ISC license.
|
|
163
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
+
*/const f1=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],d1=et("trash-2",f1);/**
|
|
165
|
+
* @license lucide-react v0.556.0 - ISC
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the ISC license.
|
|
168
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/const m1=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],aa=et("wrench",m1);/**
|
|
170
|
+
* @license lucide-react v0.556.0 - ISC
|
|
171
|
+
*
|
|
172
|
+
* This source code is licensed under the ISC license.
|
|
173
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
+
*/const h1=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Xg=et("zap",h1),p1=()=>d.jsxs("svg",{width:"55.28888888888889",height:"16",viewBox:"0 0 311 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M2.97269 86L32.6687 3.64H51.1127L80.8087 86H65.0327L58.1887 66.512H25.5927L18.7487 86H2.97269ZM30.0007 53.636H53.7807L41.9487 18.836L30.0007 53.636ZM130.894 3.64V16.748H117.67V72.892H131.59V86H88.5544V72.892H102.59V16.748H89.2504V3.64H130.894Z",fill:"currentColor"}),d.jsx("rect",{x:"153",y:"7.5",width:"154",height:"75",rx:"37.5",stroke:"currentColor",strokeWidth:"8"}),d.jsx("path",{d:"M183.603 51.8472C184.393 56.468 187.677 59.508 193.088 59.508C197.222 59.508 200.019 57.8664 199.958 54.7048C199.897 51.5432 197.222 49.7192 190.473 48.0776C181.11 45.828 175.091 42.0584 175.091 35.1272C175.091 27.284 181.657 22.3592 191.507 22.3592C201.113 22.3592 207.68 28.2568 208.713 36.9512L199.472 37.4376C198.985 32.8776 195.824 30.02 191.264 30.02C187.251 30.02 184.393 32.0872 184.576 35.2488C184.697 38.8968 188.953 40.1128 193.574 41.268C203.241 43.396 209.382 47.5304 209.382 54.4008C209.382 62.6088 202.147 67.2296 192.845 67.2296C182.326 67.2296 174.909 61.3928 174.301 52.2728L183.603 51.8472ZM226.773 23.332C240.757 23.332 248.601 31.1144 248.601 44.9768C248.601 58.7784 240.879 66.5 227.138 66.5H211.877V23.332H226.773ZM221.119 58.7176H226.773C235.164 58.7176 239.177 54.2792 239.177 44.916C239.177 35.5528 235.164 31.1144 226.773 31.1144H221.119V58.7176ZM250.431 23.332H259.672V42.18L275.359 23.332H286.12L270.252 42.3624L287.093 66.5H276.575L264.172 48.564L259.672 53.7928V66.5H250.431V23.332Z",fill:"currentColor"})]});function Fp(l,r){if(typeof l=="function")return l(r);l!=null&&(l.current=r)}function Sf(...l){return r=>{let o=!1;const i=l.map(u=>{const f=Fp(u,r);return!o&&typeof f=="function"&&(o=!0),f});if(o)return()=>{for(let u=0;u<i.length;u++){const f=i[u];typeof f=="function"?f():Fp(l[u],null)}}}}function mt(...l){return S.useCallback(Sf(...l),l)}var g1=Symbol.for("react.lazy"),Pi=xf[" use ".trim().toString()];function v1(l){return typeof l=="object"&&l!==null&&"then"in l}function Qg(l){return l!=null&&typeof l=="object"&&"$$typeof"in l&&l.$$typeof===g1&&"_payload"in l&&v1(l._payload)}function y1(l){const r=b1(l),o=S.forwardRef((i,u)=>{let{children:f,...m}=i;Qg(f)&&typeof Pi=="function"&&(f=Pi(f._payload));const p=S.Children.toArray(f),v=p.find(S1);if(v){const g=v.props.children,b=p.map(y=>y===v?S.Children.count(g)>1?S.Children.only(null):S.isValidElement(g)?g.props.children:null:y);return d.jsx(r,{...m,ref:u,children:S.isValidElement(g)?S.cloneElement(g,void 0,b):null})}return d.jsx(r,{...m,ref:u,children:f})});return o.displayName=`${l}.Slot`,o}var Zg=y1("Slot");function b1(l){const r=S.forwardRef((o,i)=>{let{children:u,...f}=o;if(Qg(u)&&typeof Pi=="function"&&(u=Pi(u._payload)),S.isValidElement(u)){const m=T1(u),p=w1(f,u.props);return u.type!==S.Fragment&&(p.ref=i?Sf(i,m):m),S.cloneElement(u,p)}return S.Children.count(u)>1?S.Children.only(null):null});return r.displayName=`${l}.SlotClone`,r}var x1=Symbol("radix.slottable");function S1(l){return S.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===x1}function w1(l,r){const o={...r};for(const i in r){const u=l[i],f=r[i];/^on[A-Z]/.test(i)?u&&f?o[i]=(...p)=>{const v=f(...p);return u(...p),v}:u&&(o[i]=u):i==="style"?o[i]={...u,...f}:i==="className"&&(o[i]=[u,f].filter(Boolean).join(" "))}return{...l,...o}}function T1(l){var i,u;let r=(i=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?l.ref:(r=(u=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:u.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?l.props.ref:l.props.ref||l.ref)}function $g(l){var r,o,i="";if(typeof l=="string"||typeof l=="number")i+=l;else if(typeof l=="object")if(Array.isArray(l)){var u=l.length;for(r=0;r<u;r++)l[r]&&(o=$g(l[r]))&&(i&&(i+=" "),i+=o)}else for(o in l)l[o]&&(i&&(i+=" "),i+=o);return i}function Kg(){for(var l,r,o=0,i="",u=arguments.length;o<u;o++)(l=arguments[o])&&(r=$g(l))&&(i&&(i+=" "),i+=r);return i}const Ip=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,eg=Kg,Wg=(l,r)=>o=>{var i;if((r==null?void 0:r.variants)==null)return eg(l,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:u,defaultVariants:f}=r,m=Object.keys(u).map(g=>{const b=o==null?void 0:o[g],y=f==null?void 0:f[g];if(b===null)return null;const w=Ip(b)||Ip(y);return u[g][w]}),p=o&&Object.entries(o).reduce((g,b)=>{let[y,w]=b;return w===void 0||(g[y]=w),g},{}),v=r==null||(i=r.compoundVariants)===null||i===void 0?void 0:i.reduce((g,b)=>{let{class:y,className:w,...T}=b;return Object.entries(T).every(j=>{let[E,_]=j;return Array.isArray(_)?_.includes({...f,...p}[E]):{...f,...p}[E]===_})?[...g,y,w]:g},[]);return eg(l,m,v,o==null?void 0:o.class,o==null?void 0:o.className)},E1=(l,r)=>{const o=new Array(l.length+r.length);for(let i=0;i<l.length;i++)o[i]=l[i];for(let i=0;i<r.length;i++)o[l.length+i]=r[i];return o},C1=(l,r)=>({classGroupId:l,validator:r}),Jg=(l=new Map,r=null,o)=>({nextPart:l,validators:r,classGroupId:o}),Fi="-",tg=[],A1="arbitrary..",N1=l=>{const r=R1(l),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=l;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return j1(m);const p=m.split(Fi),v=p[0]===""&&p.length>1?1:0;return Pg(p,v,r)},getConflictingClassGroupIds:(m,p)=>{if(p){const v=i[m],g=o[m];return v?g?E1(g,v):v:g||tg}return o[m]||tg}}},Pg=(l,r,o)=>{if(l.length-r===0)return o.classGroupId;const u=l[r],f=o.nextPart.get(u);if(f){const g=Pg(l,r+1,f);if(g)return g}const m=o.validators;if(m===null)return;const p=r===0?l.join(Fi):l.slice(r).join(Fi),v=m.length;for(let g=0;g<v;g++){const b=m[g];if(b.validator(p))return b.classGroupId}},j1=l=>l.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=l.slice(1,-1),o=r.indexOf(":"),i=r.slice(0,o);return i?A1+i:void 0})(),R1=l=>{const{theme:r,classGroups:o}=l;return O1(o,r)},O1=(l,r)=>{const o=Jg();for(const i in l){const u=l[i];wf(u,o,i,r)}return o},wf=(l,r,o,i)=>{const u=l.length;for(let f=0;f<u;f++){const m=l[f];M1(m,r,o,i)}},M1=(l,r,o,i)=>{if(typeof l=="string"){_1(l,r,o);return}if(typeof l=="function"){z1(l,r,o,i);return}D1(l,r,o,i)},_1=(l,r,o)=>{const i=l===""?r:Fg(r,l);i.classGroupId=o},z1=(l,r,o,i)=>{if(L1(l)){wf(l(i),r,o,i);return}r.validators===null&&(r.validators=[]),r.validators.push(C1(o,l))},D1=(l,r,o,i)=>{const u=Object.entries(l),f=u.length;for(let m=0;m<f;m++){const[p,v]=u[m];wf(v,Fg(r,p),o,i)}},Fg=(l,r)=>{let o=l;const i=r.split(Fi),u=i.length;for(let f=0;f<u;f++){const m=i[f];let p=o.nextPart.get(m);p||(p=Jg(),o.nextPart.set(m,p)),o=p}return o},L1=l=>"isThemeGetter"in l&&l.isThemeGetter===!0,U1=l=>{if(l<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),i=Object.create(null);const u=(f,m)=>{o[f]=m,r++,r>l&&(r=0,i=o,o=Object.create(null))};return{get(f){let m=o[f];if(m!==void 0)return m;if((m=i[f])!==void 0)return u(f,m),m},set(f,m){f in o?o[f]=m:u(f,m)}}},of="!",ng=":",H1=[],lg=(l,r,o,i,u)=>({modifiers:l,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:i,isExternal:u}),k1=l=>{const{prefix:r,experimentalParseClassName:o}=l;let i=u=>{const f=[];let m=0,p=0,v=0,g;const b=u.length;for(let E=0;E<b;E++){const _=u[E];if(m===0&&p===0){if(_===ng){f.push(u.slice(v,E)),v=E+1;continue}if(_==="/"){g=E;continue}}_==="["?m++:_==="]"?m--:_==="("?p++:_===")"&&p--}const y=f.length===0?u:u.slice(v);let w=y,T=!1;y.endsWith(of)?(w=y.slice(0,-1),T=!0):y.startsWith(of)&&(w=y.slice(1),T=!0);const j=g&&g>v?g-v:void 0;return lg(f,T,w,j)};if(r){const u=r+ng,f=i;i=m=>m.startsWith(u)?f(m.slice(u.length)):lg(H1,!1,m,void 0,!0)}if(o){const u=i;i=f=>o({className:f,parseClassName:u})}return i},B1=l=>{const r=new Map;return l.orderSensitiveModifiers.forEach((o,i)=>{r.set(o,1e6+i)}),o=>{const i=[];let u=[];for(let f=0;f<o.length;f++){const m=o[f],p=m[0]==="[",v=r.has(m);p||v?(u.length>0&&(u.sort(),i.push(...u),u=[]),i.push(m)):u.push(m)}return u.length>0&&(u.sort(),i.push(...u)),i}},Y1=l=>({cache:U1(l.cacheSize),parseClassName:k1(l),sortModifiers:B1(l),postfixLookupClassGroupIds:q1(l),...N1(l)}),q1=l=>{const r=Object.create(null),o=l.postfixLookupClassGroups;if(o)for(let i=0;i<o.length;i++)r[o[i]]=!0;return r},V1=/\s+/,G1=(l,r)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:u,sortModifiers:f,postfixLookupClassGroupIds:m}=r,p=[],v=l.trim().split(V1);let g="";for(let b=v.length-1;b>=0;b-=1){const y=v[b],{isExternal:w,modifiers:T,hasImportantModifier:j,baseClassName:E,maybePostfixModifierPosition:_}=o(y);if(w){g=y+(g.length>0?" "+g:g);continue}let M=!!_,U;if(M){const B=E.substring(0,_);U=i(B);const N=U&&m[U]?i(E):void 0;N&&N!==U&&(U=N,M=!1)}else U=i(E);if(!U){if(!M){g=y+(g.length>0?" "+g:g);continue}if(U=i(E),!U){g=y+(g.length>0?" "+g:g);continue}M=!1}const q=T.length===0?"":T.length===1?T[0]:f(T).join(":"),L=j?q+of:q,F=L+U;if(p.indexOf(F)>-1)continue;p.push(F);const te=u(U,M);for(let B=0;B<te.length;++B){const N=te[B];p.push(L+N)}g=y+(g.length>0?" "+g:g)}return g},X1=(...l)=>{let r=0,o,i,u="";for(;r<l.length;)(o=l[r++])&&(i=Ig(o))&&(u&&(u+=" "),u+=i);return u},Ig=l=>{if(typeof l=="string")return l;let r,o="";for(let i=0;i<l.length;i++)l[i]&&(r=Ig(l[i]))&&(o&&(o+=" "),o+=r);return o},Q1=(l,...r)=>{let o,i,u,f;const m=v=>{const g=r.reduce((b,y)=>y(b),l());return o=Y1(g),i=o.cache.get,u=o.cache.set,f=p,p(v)},p=v=>{const g=i(v);if(g)return g;const b=G1(v,o);return u(v,b),b};return f=m,(...v)=>f(X1(...v))},Z1=[],ct=l=>{const r=o=>o[l]||Z1;return r.isThemeGetter=!0,r},ev=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,tv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$1=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,K1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,W1=/\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$/,J1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,P1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,F1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Al=l=>$1.test(l),Te=l=>!!l&&!Number.isNaN(Number(l)),wn=l=>!!l&&Number.isInteger(Number(l)),Gu=l=>l.endsWith("%")&&Te(l.slice(0,-1)),Wn=l=>K1.test(l),nv=()=>!0,I1=l=>W1.test(l)&&!J1.test(l),Tf=()=>!1,eS=l=>P1.test(l),tS=l=>F1.test(l),nS=l=>!se(l)&&!ce(l),lS=l=>l.startsWith("@container")&&(l[10]==="/"&&l[11]!==void 0||l[11]==="s"&&l[16]!==void 0&&l.startsWith("-size/",10)||l[11]==="n"&&l[18]!==void 0&&l.startsWith("-normal/",10)),aS=l=>_l(l,rv,Tf),se=l=>ev.test(l),ea=l=>_l(l,ov,I1),ag=l=>_l(l,dS,Te),rS=l=>_l(l,sv,nv),oS=l=>_l(l,iv,Tf),rg=l=>_l(l,lv,Tf),iS=l=>_l(l,av,tS),zi=l=>_l(l,cv,eS),ce=l=>tv.test(l),ro=l=>ca(l,ov),sS=l=>ca(l,iv),og=l=>ca(l,lv),cS=l=>ca(l,rv),uS=l=>ca(l,av),Di=l=>ca(l,cv,!0),fS=l=>ca(l,sv,!0),_l=(l,r,o)=>{const i=ev.exec(l);return i?i[1]?r(i[1]):o(i[2]):!1},ca=(l,r,o=!1)=>{const i=tv.exec(l);return i?i[1]?r(i[1]):o:!1},lv=l=>l==="position"||l==="percentage",av=l=>l==="image"||l==="url",rv=l=>l==="length"||l==="size"||l==="bg-size",ov=l=>l==="length",dS=l=>l==="number",iv=l=>l==="family-name",sv=l=>l==="number"||l==="weight",cv=l=>l==="shadow",mS=()=>{const l=ct("color"),r=ct("font"),o=ct("text"),i=ct("font-weight"),u=ct("tracking"),f=ct("leading"),m=ct("breakpoint"),p=ct("container"),v=ct("spacing"),g=ct("radius"),b=ct("shadow"),y=ct("inset-shadow"),w=ct("text-shadow"),T=ct("drop-shadow"),j=ct("blur"),E=ct("perspective"),_=ct("aspect"),M=ct("ease"),U=ct("animate"),q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...L(),ce,se],te=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],N=()=>[ce,se,v],z=()=>[Al,"full","auto",...N()],$=()=>[wn,"none","subgrid",ce,se],ee=()=>["auto",{span:["full",wn,ce,se]},wn,ce,se],ae=()=>[wn,"auto",ce,se],J=()=>["auto","min","max","fr",ce,se],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],le=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...N()],X=()=>[Al,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],W=()=>[Al,"screen","full","dvw","lvw","svw","min","max","fit",...N()],re=()=>[Al,"screen","full","lh","dvh","lvh","svh","min","max","fit",...N()],P=()=>[l,ce,se],A=()=>[...L(),og,rg,{position:[ce,se]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ne=()=>["auto","cover","contain",cS,aS,{size:[ce,se]}],oe=()=>[Gu,ro,ea],fe=()=>["","none","full",g,ce,se],me=()=>["",Te,ro,ea],be=()=>["solid","dashed","dotted","double"],qe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>[Te,Gu,og,rg],xt=()=>["","none",j,ce,se],ot=()=>["none",Te,ce,se],Nt=()=>["none",Te,ce,se],St=()=>[Te,ce,se],he=()=>[Al,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Wn],breakpoint:[Wn],color:[nv],container:[Wn],"drop-shadow":[Wn],ease:["in","out","in-out"],font:[nS],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Wn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Wn],shadow:[Wn],spacing:["px",Te],text:[Wn],"text-shadow":[Wn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Al,se,ce,_]}],container:["container"],"container-type":[{"@container":["","normal","size",ce,se]}],"container-named":[lS],columns:[{columns:[Te,se,ce,p]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"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"],sr:["sr-only","not-sr-only"],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:F()}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[wn,"auto",ce,se]}],basis:[{basis:[Al,"full","auto",p,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,Al,"auto","initial","none",se]}],grow:[{grow:["",Te,ce,se]}],shrink:[{shrink:["",Te,ce,se]}],order:[{order:[wn,"first","last","none",ce,se]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pbs:[{pbs:N()}],pbe:[{pbe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...re()]}],"min-block-size":[{"min-block":["auto",...re()]}],"max-block-size":[{"max-block":["none",...re()]}],w:[{w:[p,"screen",...X()]}],"min-w":[{"min-w":[p,"screen","none",...X()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[m]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",o,ro,ea]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,fS,rS]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Gu,se]}],"font-family":[{font:[sS,oS,r]}],"font-features":[{"font-features":[se]}],"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:[u,ce,se]}],"line-clamp":[{"line-clamp":[Te,"none",ce,ag]}],leading:[{leading:[f,...N()]}],"list-image":[{"list-image":["none",ce,se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",ce,ea]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Te,"auto",ce,se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"tab-size":[{tab:[wn,ce,se]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,se]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce,se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},wn,ce,se],radial:["",ce,se],conic:[wn,ce,se]},uS,iS]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:fe()}],"rounded-s":[{"rounded-s":fe()}],"rounded-e":[{"rounded-e":fe()}],"rounded-t":[{"rounded-t":fe()}],"rounded-r":[{"rounded-r":fe()}],"rounded-b":[{"rounded-b":fe()}],"rounded-l":[{"rounded-l":fe()}],"rounded-ss":[{"rounded-ss":fe()}],"rounded-se":[{"rounded-se":fe()}],"rounded-ee":[{"rounded-ee":fe()}],"rounded-es":[{"rounded-es":fe()}],"rounded-tl":[{"rounded-tl":fe()}],"rounded-tr":[{"rounded-tr":fe()}],"rounded-br":[{"rounded-br":fe()}],"rounded-bl":[{"rounded-bl":fe()}],"border-w":[{border:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-bs":[{"border-bs":me()}],"border-w-be":[{"border-be":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,ce,se]}],"outline-w":[{outline:["",Te,ro,ea]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",b,Di,zi]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",y,Di,zi]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Te,ea]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",w,Di,zi]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Te,ce,se]}],"mix-blend":[{"mix-blend":[...qe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":qe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[ce,se]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":L()}],"mask-image-conic-pos":[{"mask-conic":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,se]}],filter:[{filter:["","none",ce,se]}],blur:[{blur:xt()}],brightness:[{brightness:[Te,ce,se]}],contrast:[{contrast:[Te,ce,se]}],"drop-shadow":[{"drop-shadow":["","none",T,Di,zi]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",Te,ce,se]}],"hue-rotate":[{"hue-rotate":[Te,ce,se]}],invert:[{invert:["",Te,ce,se]}],saturate:[{saturate:[Te,ce,se]}],sepia:[{sepia:["",Te,ce,se]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,se]}],"backdrop-blur":[{"backdrop-blur":xt()}],"backdrop-brightness":[{"backdrop-brightness":[Te,ce,se]}],"backdrop-contrast":[{"backdrop-contrast":[Te,ce,se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,ce,se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,ce,se]}],"backdrop-invert":[{"backdrop-invert":["",Te,ce,se]}],"backdrop-opacity":[{"backdrop-opacity":[Te,ce,se]}],"backdrop-saturate":[{"backdrop-saturate":[Te,ce,se]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,ce,se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",ce,se]}],ease:[{ease:["linear","initial",M,ce,se]}],delay:[{delay:[Te,ce,se]}],animate:[{animate:["none",U,ce,se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ce,se]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:ot()}],"rotate-x":[{"rotate-x":ot()}],"rotate-y":[{"rotate-y":ot()}],"rotate-z":[{"rotate-z":ot()}],scale:[{scale:Nt()}],"scale-x":[{"scale-x":Nt()}],"scale-y":[{"scale-y":Nt()}],"scale-z":[{"scale-z":Nt()}],"scale-3d":["scale-3d"],skew:[{skew:St()}],"skew-x":[{"skew-x":St()}],"skew-y":[{"skew-y":St()}],transform:[{transform:[ce,se,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":["translate-none"],zoom:[{zoom:[wn,ce,se]}],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",ce,se]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mbs":[{"scroll-mbs":N()}],"scroll-mbe":[{"scroll-mbe":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pbs":[{"scroll-pbs":N()}],"scroll-pbe":[{"scroll-pbe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",ce,se]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[Te,ro,ea,ag]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},hS=Q1(mS);function Nn(...l){return hS(Kg(l))}const pS=Wg("inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function sf({className:l,variant:r,size:o,asChild:i=!1,...u}){const f=i?Zg:"button";return d.jsx(f,{"data-slot":"button",className:Nn(pS({variant:r,size:o,className:l})),...u})}const gS=Wg("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function cf({className:l,variant:r,asChild:o=!1,...i}){const u=o?Zg:"span";return d.jsx(u,{"data-slot":"badge",className:Nn(gS({variant:r}),l),...i})}var Ef=Yg();const vS=Bg(Ef);function uv(l){const r=yS(l),o=S.forwardRef((i,u)=>{const{children:f,...m}=i,p=S.Children.toArray(f),v=p.find(xS);if(v){const g=v.props.children,b=p.map(y=>y===v?S.Children.count(g)>1?S.Children.only(null):S.isValidElement(g)?g.props.children:null:y);return d.jsx(r,{...m,ref:u,children:S.isValidElement(g)?S.cloneElement(g,void 0,b):null})}return d.jsx(r,{...m,ref:u,children:f})});return o.displayName=`${l}.Slot`,o}function yS(l){const r=S.forwardRef((o,i)=>{const{children:u,...f}=o;if(S.isValidElement(u)){const m=wS(u),p=SS(f,u.props);return u.type!==S.Fragment&&(p.ref=i?Sf(i,m):m),S.cloneElement(u,p)}return S.Children.count(u)>1?S.Children.only(null):null});return r.displayName=`${l}.SlotClone`,r}var fv=Symbol("radix.slottable");function bS(l){const r=({children:o})=>d.jsx(d.Fragment,{children:o});return r.displayName=`${l}.Slottable`,r.__radixId=fv,r}function xS(l){return S.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===fv}function SS(l,r){const o={...r};for(const i in r){const u=l[i],f=r[i];/^on[A-Z]/.test(i)?u&&f?o[i]=(...p)=>{const v=f(...p);return u(...p),v}:u&&(o[i]=u):i==="style"?o[i]={...u,...f}:i==="className"&&(o[i]=[u,f].filter(Boolean).join(" "))}return{...l,...o}}function wS(l){var i,u;let r=(i=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?l.ref:(r=(u=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:u.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?l.props.ref:l.props.ref||l.ref)}var TS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Je=TS.reduce((l,r)=>{const o=uv(`Primitive.${r}`),i=S.forwardRef((u,f)=>{const{asChild:m,...p}=u,v=m?o:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(v,{...p,ref:f})});return i.displayName=`Primitive.${r}`,{...l,[r]:i}},{});function ES(l,r){l&&Ef.flushSync(()=>l.dispatchEvent(r))}var An=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{};function CS(l,r){return S.useReducer((o,i)=>r[o][i]??o,l)}var dn=l=>{const{present:r,children:o}=l,i=AS(r),u=typeof o=="function"?o({present:i.isPresent}):S.Children.only(o),f=mt(i.ref,NS(u));return typeof o=="function"||i.isPresent?S.cloneElement(u,{ref:f}):null};dn.displayName="Presence";function AS(l){const[r,o]=S.useState(),i=S.useRef(null),u=S.useRef(l),f=S.useRef("none"),m=l?"mounted":"unmounted",[p,v]=CS(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const g=Li(i.current);f.current=p==="mounted"?g:"none"},[p]),An(()=>{const g=i.current,b=u.current;if(b!==l){const w=f.current,T=Li(g);l?v("MOUNT"):T==="none"||(g==null?void 0:g.display)==="none"?v("UNMOUNT"):v(b&&w!==T?"ANIMATION_OUT":"UNMOUNT"),u.current=l}},[l,v]),An(()=>{if(r){let g;const b=r.ownerDocument.defaultView??window,y=T=>{const E=Li(i.current).includes(CSS.escape(T.animationName));if(T.target===r&&E&&(v("ANIMATION_END"),!u.current)){const _=r.style.animationFillMode;r.style.animationFillMode="forwards",g=b.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=_)})}},w=T=>{T.target===r&&(f.current=Li(i.current))};return r.addEventListener("animationstart",w),r.addEventListener("animationcancel",y),r.addEventListener("animationend",y),()=>{b.clearTimeout(g),r.removeEventListener("animationstart",w),r.removeEventListener("animationcancel",y),r.removeEventListener("animationend",y)}}else v("ANIMATION_END")},[r,v]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:S.useCallback(g=>{i.current=g?getComputedStyle(g):null,o(g)},[])}}function Li(l){return(l==null?void 0:l.animationName)||"none"}function NS(l){var i,u;let r=(i=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?l.ref:(r=(u=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:u.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?l.props.ref:l.props.ref||l.ref)}function jS(l,r){const o=S.createContext(r),i=f=>{const{children:m,...p}=f,v=S.useMemo(()=>p,Object.values(p));return d.jsx(o.Provider,{value:v,children:m})};i.displayName=l+"Provider";function u(f){const m=S.useContext(o);if(m)return m;if(r!==void 0)return r;throw new Error(`\`${f}\` must be used within \`${l}\``)}return[i,u]}function ho(l,r=[]){let o=[];function i(f,m){const p=S.createContext(m),v=o.length;o=[...o,m];const g=y=>{var M;const{scope:w,children:T,...j}=y,E=((M=w==null?void 0:w[l])==null?void 0:M[v])||p,_=S.useMemo(()=>j,Object.values(j));return d.jsx(E.Provider,{value:_,children:T})};g.displayName=f+"Provider";function b(y,w){var E;const T=((E=w==null?void 0:w[l])==null?void 0:E[v])||p,j=S.useContext(T);if(j)return j;if(m!==void 0)return m;throw new Error(`\`${y}\` must be used within \`${f}\``)}return[g,b]}const u=()=>{const f=o.map(m=>S.createContext(m));return function(p){const v=(p==null?void 0:p[l])||f;return S.useMemo(()=>({[`__scope${l}`]:{...p,[l]:v}}),[p,v])}};return u.scopeName=l,[i,RS(u,...r)]}function RS(...l){const r=l[0];if(l.length===1)return r;const o=()=>{const i=l.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const m=i.reduce((p,{useScope:v,scopeName:g})=>{const y=v(f)[`__scope${g}`];return{...p,...y}},{});return S.useMemo(()=>({[`__scope${r.scopeName}`]:m}),[m])}};return o.scopeName=r.scopeName,o}function Qt(l){const r=S.useRef(l);return S.useEffect(()=>{r.current=l}),S.useMemo(()=>(...o)=>{var i;return(i=r.current)==null?void 0:i.call(r,...o)},[])}var OS=S.createContext(void 0);function MS(l){const r=S.useContext(OS);return l||r||"ltr"}function _S(l,[r,o]){return Math.min(o,Math.max(r,l))}function We(l,r,{checkForDefaultPrevented:o=!0}={}){return function(u){if(l==null||l(u),o===!1||!u.defaultPrevented)return r==null?void 0:r(u)}}function zS(l,r){return S.useReducer((o,i)=>r[o][i]??o,l)}var Cf="ScrollArea",[dv]=ho(Cf),[DS,an]=dv(Cf),mv=S.forwardRef((l,r)=>{const{__scopeScrollArea:o,type:i="hover",dir:u,scrollHideDelay:f=600,...m}=l,[p,v]=S.useState(null),[g,b]=S.useState(null),[y,w]=S.useState(null),[T,j]=S.useState(null),[E,_]=S.useState(null),[M,U]=S.useState(0),[q,L]=S.useState(0),[F,te]=S.useState(!1),[B,N]=S.useState(!1),z=mt(r,ee=>v(ee)),$=MS(u);return d.jsx(DS,{scope:o,type:i,dir:$,scrollHideDelay:f,scrollArea:p,viewport:g,onViewportChange:b,content:y,onContentChange:w,scrollbarX:T,onScrollbarXChange:j,scrollbarXEnabled:F,onScrollbarXEnabledChange:te,scrollbarY:E,onScrollbarYChange:_,scrollbarYEnabled:B,onScrollbarYEnabledChange:N,onCornerWidthChange:U,onCornerHeightChange:L,children:d.jsx(Je.div,{dir:$,...m,ref:z,style:{position:"relative","--radix-scroll-area-corner-width":M+"px","--radix-scroll-area-corner-height":q+"px",...l.style}})})});mv.displayName=Cf;var hv="ScrollAreaViewport",pv=S.forwardRef((l,r)=>{const{__scopeScrollArea:o,children:i,nonce:u,...f}=l,m=an(hv,o),p=S.useRef(null),v=mt(r,p,m.onViewportChange);return d.jsxs(d.Fragment,{children:[d.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:u}),d.jsx(Je.div,{"data-radix-scroll-area-viewport":"",...f,ref:v,style:{overflowX:m.scrollbarXEnabled?"scroll":"hidden",overflowY:m.scrollbarYEnabled?"scroll":"hidden",...l.style},children:d.jsx("div",{ref:m.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});pv.displayName=hv;var jn="ScrollAreaScrollbar",gv=S.forwardRef((l,r)=>{const{forceMount:o,...i}=l,u=an(jn,l.__scopeScrollArea),{onScrollbarXEnabledChange:f,onScrollbarYEnabledChange:m}=u,p=l.orientation==="horizontal";return S.useEffect(()=>(p?f(!0):m(!0),()=>{p?f(!1):m(!1)}),[p,f,m]),u.type==="hover"?d.jsx(LS,{...i,ref:r,forceMount:o}):u.type==="scroll"?d.jsx(US,{...i,ref:r,forceMount:o}):u.type==="auto"?d.jsx(vv,{...i,ref:r,forceMount:o}):u.type==="always"?d.jsx(Af,{...i,ref:r}):null});gv.displayName=jn;var LS=S.forwardRef((l,r)=>{const{forceMount:o,...i}=l,u=an(jn,l.__scopeScrollArea),[f,m]=S.useState(!1);return S.useEffect(()=>{const p=u.scrollArea;let v=0;if(p){const g=()=>{window.clearTimeout(v),m(!0)},b=()=>{v=window.setTimeout(()=>m(!1),u.scrollHideDelay)};return p.addEventListener("pointerenter",g),p.addEventListener("pointerleave",b),()=>{window.clearTimeout(v),p.removeEventListener("pointerenter",g),p.removeEventListener("pointerleave",b)}}},[u.scrollArea,u.scrollHideDelay]),d.jsx(dn,{present:o||f,children:d.jsx(vv,{"data-state":f?"visible":"hidden",...i,ref:r})})}),US=S.forwardRef((l,r)=>{const{forceMount:o,...i}=l,u=an(jn,l.__scopeScrollArea),f=l.orientation==="horizontal",m=fs(()=>v("SCROLL_END"),100),[p,v]=zS("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 S.useEffect(()=>{if(p==="idle"){const g=window.setTimeout(()=>v("HIDE"),u.scrollHideDelay);return()=>window.clearTimeout(g)}},[p,u.scrollHideDelay,v]),S.useEffect(()=>{const g=u.viewport,b=f?"scrollLeft":"scrollTop";if(g){let y=g[b];const w=()=>{const T=g[b];y!==T&&(v("SCROLL"),m()),y=T};return g.addEventListener("scroll",w),()=>g.removeEventListener("scroll",w)}},[u.viewport,f,v,m]),d.jsx(dn,{present:o||p!=="hidden",children:d.jsx(Af,{"data-state":p==="hidden"?"hidden":"visible",...i,ref:r,onPointerEnter:We(l.onPointerEnter,()=>v("POINTER_ENTER")),onPointerLeave:We(l.onPointerLeave,()=>v("POINTER_LEAVE"))})})}),vv=S.forwardRef((l,r)=>{const o=an(jn,l.__scopeScrollArea),{forceMount:i,...u}=l,[f,m]=S.useState(!1),p=l.orientation==="horizontal",v=fs(()=>{if(o.viewport){const g=o.viewport.offsetWidth<o.viewport.scrollWidth,b=o.viewport.offsetHeight<o.viewport.scrollHeight;m(p?g:b)}},10);return or(o.viewport,v),or(o.content,v),d.jsx(dn,{present:i||f,children:d.jsx(Af,{"data-state":f?"visible":"hidden",...u,ref:r})})}),Af=S.forwardRef((l,r)=>{const{orientation:o="vertical",...i}=l,u=an(jn,l.__scopeScrollArea),f=S.useRef(null),m=S.useRef(0),[p,v]=S.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=wv(p.viewport,p.content),b={...i,sizes:p,onSizesChange:v,hasThumb:g>0&&g<1,onThumbChange:w=>f.current=w,onThumbPointerUp:()=>m.current=0,onThumbPointerDown:w=>m.current=w};function y(w,T){return VS(w,m.current,p,T)}return o==="horizontal"?d.jsx(HS,{...b,ref:r,onThumbPositionChange:()=>{if(u.viewport&&f.current){const w=u.viewport.scrollLeft,T=ig(w,p,u.dir);f.current.style.transform=`translate3d(${T}px, 0, 0)`}},onWheelScroll:w=>{u.viewport&&(u.viewport.scrollLeft=w)},onDragScroll:w=>{u.viewport&&(u.viewport.scrollLeft=y(w,u.dir))}}):o==="vertical"?d.jsx(kS,{...b,ref:r,onThumbPositionChange:()=>{if(u.viewport&&f.current){const w=u.viewport.scrollTop,T=ig(w,p);f.current.style.transform=`translate3d(0, ${T}px, 0)`}},onWheelScroll:w=>{u.viewport&&(u.viewport.scrollTop=w)},onDragScroll:w=>{u.viewport&&(u.viewport.scrollTop=y(w))}}):null}),HS=S.forwardRef((l,r)=>{const{sizes:o,onSizesChange:i,...u}=l,f=an(jn,l.__scopeScrollArea),[m,p]=S.useState(),v=S.useRef(null),g=mt(r,v,f.onScrollbarXChange);return S.useEffect(()=>{v.current&&p(getComputedStyle(v.current))},[v]),d.jsx(bv,{"data-orientation":"horizontal",...u,ref:g,sizes:o,style:{bottom:0,left:f.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:f.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":us(o)+"px",...l.style},onThumbPointerDown:b=>l.onThumbPointerDown(b.x),onDragScroll:b=>l.onDragScroll(b.x),onWheelScroll:(b,y)=>{if(f.viewport){const w=f.viewport.scrollLeft+b.deltaX;l.onWheelScroll(w),Ev(w,y)&&b.preventDefault()}},onResize:()=>{v.current&&f.viewport&&m&&i({content:f.viewport.scrollWidth,viewport:f.viewport.offsetWidth,scrollbar:{size:v.current.clientWidth,paddingStart:es(m.paddingLeft),paddingEnd:es(m.paddingRight)}})}})}),kS=S.forwardRef((l,r)=>{const{sizes:o,onSizesChange:i,...u}=l,f=an(jn,l.__scopeScrollArea),[m,p]=S.useState(),v=S.useRef(null),g=mt(r,v,f.onScrollbarYChange);return S.useEffect(()=>{v.current&&p(getComputedStyle(v.current))},[v]),d.jsx(bv,{"data-orientation":"vertical",...u,ref:g,sizes:o,style:{top:0,right:f.dir==="ltr"?0:void 0,left:f.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":us(o)+"px",...l.style},onThumbPointerDown:b=>l.onThumbPointerDown(b.y),onDragScroll:b=>l.onDragScroll(b.y),onWheelScroll:(b,y)=>{if(f.viewport){const w=f.viewport.scrollTop+b.deltaY;l.onWheelScroll(w),Ev(w,y)&&b.preventDefault()}},onResize:()=>{v.current&&f.viewport&&m&&i({content:f.viewport.scrollHeight,viewport:f.viewport.offsetHeight,scrollbar:{size:v.current.clientHeight,paddingStart:es(m.paddingTop),paddingEnd:es(m.paddingBottom)}})}})}),[BS,yv]=dv(jn),bv=S.forwardRef((l,r)=>{const{__scopeScrollArea:o,sizes:i,hasThumb:u,onThumbChange:f,onThumbPointerUp:m,onThumbPointerDown:p,onThumbPositionChange:v,onDragScroll:g,onWheelScroll:b,onResize:y,...w}=l,T=an(jn,o),[j,E]=S.useState(null),_=mt(r,z=>E(z)),M=S.useRef(null),U=S.useRef(""),q=T.viewport,L=i.content-i.viewport,F=Qt(b),te=Qt(v),B=fs(y,10);function N(z){if(M.current){const $=z.clientX-M.current.left,ee=z.clientY-M.current.top;g({x:$,y:ee})}}return S.useEffect(()=>{const z=$=>{const ee=$.target;(j==null?void 0:j.contains(ee))&&F($,L)};return document.addEventListener("wheel",z,{passive:!1}),()=>document.removeEventListener("wheel",z,{passive:!1})},[q,j,L,F]),S.useEffect(te,[i,te]),or(j,B),or(T.content,B),d.jsx(BS,{scope:o,scrollbar:j,hasThumb:u,onThumbChange:Qt(f),onThumbPointerUp:Qt(m),onThumbPositionChange:te,onThumbPointerDown:Qt(p),children:d.jsx(Je.div,{...w,ref:_,style:{position:"absolute",...w.style},onPointerDown:We(l.onPointerDown,z=>{z.button===0&&(z.target.setPointerCapture(z.pointerId),M.current=j.getBoundingClientRect(),U.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",T.viewport&&(T.viewport.style.scrollBehavior="auto"),N(z))}),onPointerMove:We(l.onPointerMove,N),onPointerUp:We(l.onPointerUp,z=>{const $=z.target;$.hasPointerCapture(z.pointerId)&&$.releasePointerCapture(z.pointerId),document.body.style.webkitUserSelect=U.current,T.viewport&&(T.viewport.style.scrollBehavior=""),M.current=null})})})}),Ii="ScrollAreaThumb",xv=S.forwardRef((l,r)=>{const{forceMount:o,...i}=l,u=yv(Ii,l.__scopeScrollArea);return d.jsx(dn,{present:o||u.hasThumb,children:d.jsx(YS,{ref:r,...i})})}),YS=S.forwardRef((l,r)=>{const{__scopeScrollArea:o,style:i,...u}=l,f=an(Ii,o),m=yv(Ii,o),{onThumbPositionChange:p}=m,v=mt(r,y=>m.onThumbChange(y)),g=S.useRef(void 0),b=fs(()=>{g.current&&(g.current(),g.current=void 0)},100);return S.useEffect(()=>{const y=f.viewport;if(y){const w=()=>{if(b(),!g.current){const T=GS(y,p);g.current=T,p()}};return p(),y.addEventListener("scroll",w),()=>y.removeEventListener("scroll",w)}},[f.viewport,b,p]),d.jsx(Je.div,{"data-state":m.hasThumb?"visible":"hidden",...u,ref:v,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:We(l.onPointerDownCapture,y=>{const T=y.target.getBoundingClientRect(),j=y.clientX-T.left,E=y.clientY-T.top;m.onThumbPointerDown({x:j,y:E})}),onPointerUp:We(l.onPointerUp,m.onThumbPointerUp)})});xv.displayName=Ii;var Nf="ScrollAreaCorner",Sv=S.forwardRef((l,r)=>{const o=an(Nf,l.__scopeScrollArea),i=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&i?d.jsx(qS,{...l,ref:r}):null});Sv.displayName=Nf;var qS=S.forwardRef((l,r)=>{const{__scopeScrollArea:o,...i}=l,u=an(Nf,o),[f,m]=S.useState(0),[p,v]=S.useState(0),g=!!(f&&p);return or(u.scrollbarX,()=>{var y;const b=((y=u.scrollbarX)==null?void 0:y.offsetHeight)||0;u.onCornerHeightChange(b),v(b)}),or(u.scrollbarY,()=>{var y;const b=((y=u.scrollbarY)==null?void 0:y.offsetWidth)||0;u.onCornerWidthChange(b),m(b)}),g?d.jsx(Je.div,{...i,ref:r,style:{width:f,height:p,position:"absolute",right:u.dir==="ltr"?0:void 0,left:u.dir==="rtl"?0:void 0,bottom:0,...l.style}}):null});function es(l){return l?parseInt(l,10):0}function wv(l,r){const o=l/r;return isNaN(o)?0:o}function us(l){const r=wv(l.viewport,l.content),o=l.scrollbar.paddingStart+l.scrollbar.paddingEnd,i=(l.scrollbar.size-o)*r;return Math.max(i,18)}function VS(l,r,o,i="ltr"){const u=us(o),f=u/2,m=r||f,p=u-m,v=o.scrollbar.paddingStart+m,g=o.scrollbar.size-o.scrollbar.paddingEnd-p,b=o.content-o.viewport,y=i==="ltr"?[0,b]:[b*-1,0];return Tv([v,g],y)(l)}function ig(l,r,o="ltr"){const i=us(r),u=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,f=r.scrollbar.size-u,m=r.content-r.viewport,p=f-i,v=o==="ltr"?[0,m]:[m*-1,0],g=_S(l,v);return Tv([0,m],[0,p])(g)}function Tv(l,r){return o=>{if(l[0]===l[1]||r[0]===r[1])return r[0];const i=(r[1]-r[0])/(l[1]-l[0]);return r[0]+i*(o-l[0])}}function Ev(l,r){return l>0&&l<r}var GS=(l,r=()=>{})=>{let o={left:l.scrollLeft,top:l.scrollTop},i=0;return(function u(){const f={left:l.scrollLeft,top:l.scrollTop},m=o.left!==f.left,p=o.top!==f.top;(m||p)&&r(),o=f,i=window.requestAnimationFrame(u)})(),()=>window.cancelAnimationFrame(i)};function fs(l,r){const o=Qt(l),i=S.useRef(0);return S.useEffect(()=>()=>window.clearTimeout(i.current),[]),S.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(o,r)},[o,r])}function or(l,r){const o=Qt(r);An(()=>{let i=0;if(l){const u=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(o)});return u.observe(l),()=>{window.cancelAnimationFrame(i),u.unobserve(l)}}},[l,o])}var XS=mv,QS=pv,ZS=Sv;function sg({className:l,children:r,...o}){return d.jsxs(XS,{"data-slot":"scroll-area",className:Nn("relative",l),...o,children:[d.jsx(QS,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:r}),d.jsx($S,{}),d.jsx(ZS,{})]})}function $S({className:l,orientation:r="vertical",...o}){return d.jsx(gv,{"data-slot":"scroll-area-scrollbar",orientation:r,className:Nn("flex touch-none p-px transition-colors select-none",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",l),...o,children:d.jsx(xv,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}function KS(l,r=globalThis==null?void 0:globalThis.document){const o=Qt(l);S.useEffect(()=>{const i=u=>{u.key==="Escape"&&o(u)};return r.addEventListener("keydown",i,{capture:!0}),()=>r.removeEventListener("keydown",i,{capture:!0})},[o,r])}var WS="DismissableLayer",uf="dismissableLayer.update",JS="dismissableLayer.pointerDownOutside",PS="dismissableLayer.focusOutside",cg,Cv=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jf=S.forwardRef((l,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:m,onDismiss:p,...v}=l,g=S.useContext(Cv),[b,y]=S.useState(null),w=(b==null?void 0:b.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,T]=S.useState({}),j=mt(r,B=>y(B)),E=Array.from(g.layers),[_]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),M=E.indexOf(_),U=b?E.indexOf(b):-1,q=g.layersWithOutsidePointerEventsDisabled.size>0,L=U>=M,F=e2(B=>{const N=B.target,z=[...g.branches].some($=>$.contains(N));!L||z||(u==null||u(B),m==null||m(B),B.defaultPrevented||p==null||p())},w),te=t2(B=>{const N=B.target;[...g.branches].some($=>$.contains(N))||(f==null||f(B),m==null||m(B),B.defaultPrevented||p==null||p())},w);return KS(B=>{U===g.layers.size-1&&(i==null||i(B),!B.defaultPrevented&&p&&(B.preventDefault(),p()))},w),S.useEffect(()=>{if(b)return o&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(cg=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(b)),g.layers.add(b),ug(),()=>{o&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=cg)}},[b,w,o,g]),S.useEffect(()=>()=>{b&&(g.layers.delete(b),g.layersWithOutsidePointerEventsDisabled.delete(b),ug())},[b,g]),S.useEffect(()=>{const B=()=>T({});return document.addEventListener(uf,B),()=>document.removeEventListener(uf,B)},[]),d.jsx(Je.div,{...v,ref:j,style:{pointerEvents:q?L?"auto":"none":void 0,...l.style},onFocusCapture:We(l.onFocusCapture,te.onFocusCapture),onBlurCapture:We(l.onBlurCapture,te.onBlurCapture),onPointerDownCapture:We(l.onPointerDownCapture,F.onPointerDownCapture)})});jf.displayName=WS;var FS="DismissableLayerBranch",IS=S.forwardRef((l,r)=>{const o=S.useContext(Cv),i=S.useRef(null),u=mt(r,i);return S.useEffect(()=>{const f=i.current;if(f)return o.branches.add(f),()=>{o.branches.delete(f)}},[o.branches]),d.jsx(Je.div,{...l,ref:u})});IS.displayName=FS;function e2(l,r=globalThis==null?void 0:globalThis.document){const o=Qt(l),i=S.useRef(!1),u=S.useRef(()=>{});return S.useEffect(()=>{const f=p=>{if(p.target&&!i.current){let v=function(){Av(JS,o,g,{discrete:!0})};const g={originalEvent:p};p.pointerType==="touch"?(r.removeEventListener("click",u.current),u.current=v,r.addEventListener("click",u.current,{once:!0})):v()}else r.removeEventListener("click",u.current);i.current=!1},m=window.setTimeout(()=>{r.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(m),r.removeEventListener("pointerdown",f),r.removeEventListener("click",u.current)}},[r,o]),{onPointerDownCapture:()=>i.current=!0}}function t2(l,r=globalThis==null?void 0:globalThis.document){const o=Qt(l),i=S.useRef(!1);return S.useEffect(()=>{const u=f=>{f.target&&!i.current&&Av(PS,o,{originalEvent:f},{discrete:!1})};return r.addEventListener("focusin",u),()=>r.removeEventListener("focusin",u)},[r,o]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function ug(){const l=new CustomEvent(uf);document.dispatchEvent(l)}function Av(l,r,o,{discrete:i}){const u=o.originalEvent.target,f=new CustomEvent(l,{bubbles:!1,cancelable:!0,detail:o});r&&u.addEventListener(l,r,{once:!0}),i?ES(u,f):u.dispatchEvent(f)}var n2=xf[" useId ".trim().toString()]||(()=>{}),l2=0;function so(l){const[r,o]=S.useState(n2());return An(()=>{o(i=>i??String(l2++))},[l]),r?`radix-${r}`:""}const a2=["top","right","bottom","left"],jl=Math.min,Xt=Math.max,ts=Math.round,Ui=Math.floor,Cn=l=>({x:l,y:l}),r2={left:"right",right:"left",bottom:"top",top:"bottom"};function ff(l,r,o){return Xt(l,jl(r,o))}function Jn(l,r){return typeof l=="function"?l(r):l}function Pn(l){return l.split("-")[0]}function cr(l){return l.split("-")[1]}function Rf(l){return l==="x"?"y":"x"}function Of(l){return l==="y"?"height":"width"}function En(l){const r=l[0];return r==="t"||r==="b"?"y":"x"}function Mf(l){return Rf(En(l))}function o2(l,r,o){o===void 0&&(o=!1);const i=cr(l),u=Mf(l),f=Of(u);let m=u==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[f]>r.floating[f]&&(m=ns(m)),[m,ns(m)]}function i2(l){const r=ns(l);return[df(l),r,df(r)]}function df(l){return l.includes("start")?l.replace("start","end"):l.replace("end","start")}const fg=["left","right"],dg=["right","left"],s2=["top","bottom"],c2=["bottom","top"];function u2(l,r,o){switch(l){case"top":case"bottom":return o?r?dg:fg:r?fg:dg;case"left":case"right":return r?s2:c2;default:return[]}}function f2(l,r,o,i){const u=cr(l);let f=u2(Pn(l),o==="start",i);return u&&(f=f.map(m=>m+"-"+u),r&&(f=f.concat(f.map(df)))),f}function ns(l){const r=Pn(l);return r2[r]+l.slice(r.length)}function d2(l){return{top:0,right:0,bottom:0,left:0,...l}}function Nv(l){return typeof l!="number"?d2(l):{top:l,right:l,bottom:l,left:l}}function ls(l){const{x:r,y:o,width:i,height:u}=l;return{width:i,height:u,top:o,left:r,right:r+i,bottom:o+u,x:r,y:o}}function mg(l,r,o){let{reference:i,floating:u}=l;const f=En(r),m=Mf(r),p=Of(m),v=Pn(r),g=f==="y",b=i.x+i.width/2-u.width/2,y=i.y+i.height/2-u.height/2,w=i[p]/2-u[p]/2;let T;switch(v){case"top":T={x:b,y:i.y-u.height};break;case"bottom":T={x:b,y:i.y+i.height};break;case"right":T={x:i.x+i.width,y};break;case"left":T={x:i.x-u.width,y};break;default:T={x:i.x,y:i.y}}switch(cr(r)){case"start":T[m]-=w*(o&&g?-1:1);break;case"end":T[m]+=w*(o&&g?-1:1);break}return T}async function m2(l,r){var o;r===void 0&&(r={});const{x:i,y:u,platform:f,rects:m,elements:p,strategy:v}=l,{boundary:g="clippingAncestors",rootBoundary:b="viewport",elementContext:y="floating",altBoundary:w=!1,padding:T=0}=Jn(r,l),j=Nv(T),_=p[w?y==="floating"?"reference":"floating":y],M=ls(await f.getClippingRect({element:(o=await(f.isElement==null?void 0:f.isElement(_)))==null||o?_:_.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(p.floating)),boundary:g,rootBoundary:b,strategy:v})),U=y==="floating"?{x:i,y:u,width:m.floating.width,height:m.floating.height}:m.reference,q=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p.floating)),L=await(f.isElement==null?void 0:f.isElement(q))?await(f.getScale==null?void 0:f.getScale(q))||{x:1,y:1}:{x:1,y:1},F=ls(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:U,offsetParent:q,strategy:v}):U);return{top:(M.top-F.top+j.top)/L.y,bottom:(F.bottom-M.bottom+j.bottom)/L.y,left:(M.left-F.left+j.left)/L.x,right:(F.right-M.right+j.right)/L.x}}const h2=50,p2=async(l,r,o)=>{const{placement:i="bottom",strategy:u="absolute",middleware:f=[],platform:m}=o,p=m.detectOverflow?m:{...m,detectOverflow:m2},v=await(m.isRTL==null?void 0:m.isRTL(r));let g=await m.getElementRects({reference:l,floating:r,strategy:u}),{x:b,y}=mg(g,i,v),w=i,T=0;const j={};for(let E=0;E<f.length;E++){const _=f[E];if(!_)continue;const{name:M,fn:U}=_,{x:q,y:L,data:F,reset:te}=await U({x:b,y,initialPlacement:i,placement:w,strategy:u,middlewareData:j,rects:g,platform:p,elements:{reference:l,floating:r}});b=q??b,y=L??y,j[M]={...j[M],...F},te&&T<h2&&(T++,typeof te=="object"&&(te.placement&&(w=te.placement),te.rects&&(g=te.rects===!0?await m.getElementRects({reference:l,floating:r,strategy:u}):te.rects),{x:b,y}=mg(g,w,v)),E=-1)}return{x:b,y,placement:w,strategy:u,middlewareData:j}},g2=l=>({name:"arrow",options:l,async fn(r){const{x:o,y:i,placement:u,rects:f,platform:m,elements:p,middlewareData:v}=r,{element:g,padding:b=0}=Jn(l,r)||{};if(g==null)return{};const y=Nv(b),w={x:o,y:i},T=Mf(u),j=Of(T),E=await m.getDimensions(g),_=T==="y",M=_?"top":"left",U=_?"bottom":"right",q=_?"clientHeight":"clientWidth",L=f.reference[j]+f.reference[T]-w[T]-f.floating[j],F=w[T]-f.reference[T],te=await(m.getOffsetParent==null?void 0:m.getOffsetParent(g));let B=te?te[q]:0;(!B||!await(m.isElement==null?void 0:m.isElement(te)))&&(B=p.floating[q]||f.floating[j]);const N=L/2-F/2,z=B/2-E[j]/2-1,$=jl(y[M],z),ee=jl(y[U],z),ae=$,J=B-E[j]-ee,I=B/2-E[j]/2+N,le=ff(ae,I,J),O=!v.arrow&&cr(u)!=null&&I!==le&&f.reference[j]/2-(I<ae?$:ee)-E[j]/2<0,X=O?I<ae?I-ae:I-J:0;return{[T]:w[T]+X,data:{[T]:le,centerOffset:I-le-X,...O&&{alignmentOffset:X}},reset:O}}}),v2=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(r){var o,i;const{placement:u,middlewareData:f,rects:m,initialPlacement:p,platform:v,elements:g}=r,{mainAxis:b=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:E=!0,..._}=Jn(l,r);if((o=f.arrow)!=null&&o.alignmentOffset)return{};const M=Pn(u),U=En(p),q=Pn(p)===p,L=await(v.isRTL==null?void 0:v.isRTL(g.floating)),F=w||(q||!E?[ns(p)]:i2(p)),te=j!=="none";!w&&te&&F.push(...f2(p,E,j,L));const B=[p,...F],N=await v.detectOverflow(r,_),z=[];let $=((i=f.flip)==null?void 0:i.overflows)||[];if(b&&z.push(N[M]),y){const I=o2(u,m,L);z.push(N[I[0]],N[I[1]])}if($=[...$,{placement:u,overflows:z}],!z.every(I=>I<=0)){var ee,ae;const I=(((ee=f.flip)==null?void 0:ee.index)||0)+1,le=B[I];if(le&&(!(y==="alignment"?U!==En(le):!1)||$.every(W=>En(W.placement)===U?W.overflows[0]>0:!0)))return{data:{index:I,overflows:$},reset:{placement:le}};let O=(ae=$.filter(X=>X.overflows[0]<=0).sort((X,W)=>X.overflows[1]-W.overflows[1])[0])==null?void 0:ae.placement;if(!O)switch(T){case"bestFit":{var J;const X=(J=$.filter(W=>{if(te){const re=En(W.placement);return re===U||re==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(re=>re>0).reduce((re,P)=>re+P,0)]).sort((W,re)=>W[1]-re[1])[0])==null?void 0:J[0];X&&(O=X);break}case"initialPlacement":O=p;break}if(u!==O)return{reset:{placement:O}}}return{}}}};function hg(l,r){return{top:l.top-r.height,right:l.right-r.width,bottom:l.bottom-r.height,left:l.left-r.width}}function pg(l){return a2.some(r=>l[r]>=0)}const y2=function(l){return l===void 0&&(l={}),{name:"hide",options:l,async fn(r){const{rects:o,platform:i}=r,{strategy:u="referenceHidden",...f}=Jn(l,r);switch(u){case"referenceHidden":{const m=await i.detectOverflow(r,{...f,elementContext:"reference"}),p=hg(m,o.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:pg(p)}}}case"escaped":{const m=await i.detectOverflow(r,{...f,altBoundary:!0}),p=hg(m,o.floating);return{data:{escapedOffsets:p,escaped:pg(p)}}}default:return{}}}}},jv=new Set(["left","top"]);async function b2(l,r){const{placement:o,platform:i,elements:u}=l,f=await(i.isRTL==null?void 0:i.isRTL(u.floating)),m=Pn(o),p=cr(o),v=En(o)==="y",g=jv.has(m)?-1:1,b=f&&v?-1:1,y=Jn(r,l);let{mainAxis:w,crossAxis:T,alignmentAxis:j}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return p&&typeof j=="number"&&(T=p==="end"?j*-1:j),v?{x:T*b,y:w*g}:{x:w*g,y:T*b}}const x2=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(r){var o,i;const{x:u,y:f,placement:m,middlewareData:p}=r,v=await b2(r,l);return m===((o=p.offset)==null?void 0:o.placement)&&(i=p.arrow)!=null&&i.alignmentOffset?{}:{x:u+v.x,y:f+v.y,data:{...v,placement:m}}}}},S2=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(r){const{x:o,y:i,placement:u,platform:f}=r,{mainAxis:m=!0,crossAxis:p=!1,limiter:v={fn:M=>{let{x:U,y:q}=M;return{x:U,y:q}}},...g}=Jn(l,r),b={x:o,y:i},y=await f.detectOverflow(r,g),w=En(Pn(u)),T=Rf(w);let j=b[T],E=b[w];if(m){const M=T==="y"?"top":"left",U=T==="y"?"bottom":"right",q=j+y[M],L=j-y[U];j=ff(q,j,L)}if(p){const M=w==="y"?"top":"left",U=w==="y"?"bottom":"right",q=E+y[M],L=E-y[U];E=ff(q,E,L)}const _=v.fn({...r,[T]:j,[w]:E});return{..._,data:{x:_.x-o,y:_.y-i,enabled:{[T]:m,[w]:p}}}}}},w2=function(l){return l===void 0&&(l={}),{options:l,fn(r){const{x:o,y:i,placement:u,rects:f,middlewareData:m}=r,{offset:p=0,mainAxis:v=!0,crossAxis:g=!0}=Jn(l,r),b={x:o,y:i},y=En(u),w=Rf(y);let T=b[w],j=b[y];const E=Jn(p,r),_=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(v){const q=w==="y"?"height":"width",L=f.reference[w]-f.floating[q]+_.mainAxis,F=f.reference[w]+f.reference[q]-_.mainAxis;T<L?T=L:T>F&&(T=F)}if(g){var M,U;const q=w==="y"?"width":"height",L=jv.has(Pn(u)),F=f.reference[y]-f.floating[q]+(L&&((M=m.offset)==null?void 0:M[y])||0)+(L?0:_.crossAxis),te=f.reference[y]+f.reference[q]+(L?0:((U=m.offset)==null?void 0:U[y])||0)-(L?_.crossAxis:0);j<F?j=F:j>te&&(j=te)}return{[w]:T,[y]:j}}}},T2=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(r){var o,i;const{placement:u,rects:f,platform:m,elements:p}=r,{apply:v=()=>{},...g}=Jn(l,r),b=await m.detectOverflow(r,g),y=Pn(u),w=cr(u),T=En(u)==="y",{width:j,height:E}=f.floating;let _,M;y==="top"||y==="bottom"?(_=y,M=w===(await(m.isRTL==null?void 0:m.isRTL(p.floating))?"start":"end")?"left":"right"):(M=y,_=w==="end"?"top":"bottom");const U=E-b.top-b.bottom,q=j-b.left-b.right,L=jl(E-b[_],U),F=jl(j-b[M],q),te=!r.middlewareData.shift;let B=L,N=F;if((o=r.middlewareData.shift)!=null&&o.enabled.x&&(N=q),(i=r.middlewareData.shift)!=null&&i.enabled.y&&(B=U),te&&!w){const $=Xt(b.left,0),ee=Xt(b.right,0),ae=Xt(b.top,0),J=Xt(b.bottom,0);T?N=j-2*($!==0||ee!==0?$+ee:Xt(b.left,b.right)):B=E-2*(ae!==0||J!==0?ae+J:Xt(b.top,b.bottom))}await v({...r,availableWidth:N,availableHeight:B});const z=await m.getDimensions(p.floating);return j!==z.width||E!==z.height?{reset:{rects:!0}}:{}}}};function ds(){return typeof window<"u"}function ur(l){return Rv(l)?(l.nodeName||"").toLowerCase():"#document"}function Zt(l){var r;return(l==null||(r=l.ownerDocument)==null?void 0:r.defaultView)||window}function Rn(l){var r;return(r=(Rv(l)?l.ownerDocument:l.document)||window.document)==null?void 0:r.documentElement}function Rv(l){return ds()?l instanceof Node||l instanceof Zt(l).Node:!1}function un(l){return ds()?l instanceof Element||l instanceof Zt(l).Element:!1}function Fn(l){return ds()?l instanceof HTMLElement||l instanceof Zt(l).HTMLElement:!1}function gg(l){return!ds()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Zt(l).ShadowRoot}function po(l){const{overflow:r,overflowX:o,overflowY:i,display:u}=fn(l);return/auto|scroll|overlay|hidden|clip/.test(r+i+o)&&u!=="inline"&&u!=="contents"}function E2(l){return/^(table|td|th)$/.test(ur(l))}function ms(l){try{if(l.matches(":popover-open"))return!0}catch{}try{return l.matches(":modal")}catch{return!1}}const C2=/transform|translate|scale|rotate|perspective|filter/,A2=/paint|layout|strict|content/,ta=l=>!!l&&l!=="none";let Xu;function _f(l){const r=un(l)?fn(l):l;return ta(r.transform)||ta(r.translate)||ta(r.scale)||ta(r.rotate)||ta(r.perspective)||!zf()&&(ta(r.backdropFilter)||ta(r.filter))||C2.test(r.willChange||"")||A2.test(r.contain||"")}function N2(l){let r=Rl(l);for(;Fn(r)&&!ir(r);){if(_f(r))return r;if(ms(r))return null;r=Rl(r)}return null}function zf(){return Xu==null&&(Xu=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Xu}function ir(l){return/^(html|body|#document)$/.test(ur(l))}function fn(l){return Zt(l).getComputedStyle(l)}function hs(l){return un(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function Rl(l){if(ur(l)==="html")return l;const r=l.assignedSlot||l.parentNode||gg(l)&&l.host||Rn(l);return gg(r)?r.host:r}function Ov(l){const r=Rl(l);return ir(r)?l.ownerDocument?l.ownerDocument.body:l.body:Fn(r)&&po(r)?r:Ov(r)}function fo(l,r,o){var i;r===void 0&&(r=[]),o===void 0&&(o=!0);const u=Ov(l),f=u===((i=l.ownerDocument)==null?void 0:i.body),m=Zt(u);if(f){const p=mf(m);return r.concat(m,m.visualViewport||[],po(u)?u:[],p&&o?fo(p):[])}else return r.concat(u,fo(u,[],o))}function mf(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}function Mv(l){const r=fn(l);let o=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const u=Fn(l),f=u?l.offsetWidth:o,m=u?l.offsetHeight:i,p=ts(o)!==f||ts(i)!==m;return p&&(o=f,i=m),{width:o,height:i,$:p}}function Df(l){return un(l)?l:l.contextElement}function Ia(l){const r=Df(l);if(!Fn(r))return Cn(1);const o=r.getBoundingClientRect(),{width:i,height:u,$:f}=Mv(r);let m=(f?ts(o.width):o.width)/i,p=(f?ts(o.height):o.height)/u;return(!m||!Number.isFinite(m))&&(m=1),(!p||!Number.isFinite(p))&&(p=1),{x:m,y:p}}const j2=Cn(0);function _v(l){const r=Zt(l);return!zf()||!r.visualViewport?j2:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function R2(l,r,o){return r===void 0&&(r=!1),!o||r&&o!==Zt(l)?!1:r}function ra(l,r,o,i){r===void 0&&(r=!1),o===void 0&&(o=!1);const u=l.getBoundingClientRect(),f=Df(l);let m=Cn(1);r&&(i?un(i)&&(m=Ia(i)):m=Ia(l));const p=R2(f,o,i)?_v(f):Cn(0);let v=(u.left+p.x)/m.x,g=(u.top+p.y)/m.y,b=u.width/m.x,y=u.height/m.y;if(f){const w=Zt(f),T=i&&un(i)?Zt(i):i;let j=w,E=mf(j);for(;E&&i&&T!==j;){const _=Ia(E),M=E.getBoundingClientRect(),U=fn(E),q=M.left+(E.clientLeft+parseFloat(U.paddingLeft))*_.x,L=M.top+(E.clientTop+parseFloat(U.paddingTop))*_.y;v*=_.x,g*=_.y,b*=_.x,y*=_.y,v+=q,g+=L,j=Zt(E),E=mf(j)}}return ls({width:b,height:y,x:v,y:g})}function ps(l,r){const o=hs(l).scrollLeft;return r?r.left+o:ra(Rn(l)).left+o}function zv(l,r){const o=l.getBoundingClientRect(),i=o.left+r.scrollLeft-ps(l,o),u=o.top+r.scrollTop;return{x:i,y:u}}function O2(l){let{elements:r,rect:o,offsetParent:i,strategy:u}=l;const f=u==="fixed",m=Rn(i),p=r?ms(r.floating):!1;if(i===m||p&&f)return o;let v={scrollLeft:0,scrollTop:0},g=Cn(1);const b=Cn(0),y=Fn(i);if((y||!y&&!f)&&((ur(i)!=="body"||po(m))&&(v=hs(i)),y)){const T=ra(i);g=Ia(i),b.x=T.x+i.clientLeft,b.y=T.y+i.clientTop}const w=m&&!y&&!f?zv(m,v):Cn(0);return{width:o.width*g.x,height:o.height*g.y,x:o.x*g.x-v.scrollLeft*g.x+b.x+w.x,y:o.y*g.y-v.scrollTop*g.y+b.y+w.y}}function M2(l){return Array.from(l.getClientRects())}function _2(l){const r=Rn(l),o=hs(l),i=l.ownerDocument.body,u=Xt(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),f=Xt(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let m=-o.scrollLeft+ps(l);const p=-o.scrollTop;return fn(i).direction==="rtl"&&(m+=Xt(r.clientWidth,i.clientWidth)-u),{width:u,height:f,x:m,y:p}}const vg=25;function z2(l,r){const o=Zt(l),i=Rn(l),u=o.visualViewport;let f=i.clientWidth,m=i.clientHeight,p=0,v=0;if(u){f=u.width,m=u.height;const b=zf();(!b||b&&r==="fixed")&&(p=u.offsetLeft,v=u.offsetTop)}const g=ps(i);if(g<=0){const b=i.ownerDocument,y=b.body,w=getComputedStyle(y),T=b.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,j=Math.abs(i.clientWidth-y.clientWidth-T);j<=vg&&(f-=j)}else g<=vg&&(f+=g);return{width:f,height:m,x:p,y:v}}function D2(l,r){const o=ra(l,!0,r==="fixed"),i=o.top+l.clientTop,u=o.left+l.clientLeft,f=Fn(l)?Ia(l):Cn(1),m=l.clientWidth*f.x,p=l.clientHeight*f.y,v=u*f.x,g=i*f.y;return{width:m,height:p,x:v,y:g}}function yg(l,r,o){let i;if(r==="viewport")i=z2(l,o);else if(r==="document")i=_2(Rn(l));else if(un(r))i=D2(r,o);else{const u=_v(l);i={x:r.x-u.x,y:r.y-u.y,width:r.width,height:r.height}}return ls(i)}function Dv(l,r){const o=Rl(l);return o===r||!un(o)||ir(o)?!1:fn(o).position==="fixed"||Dv(o,r)}function L2(l,r){const o=r.get(l);if(o)return o;let i=fo(l,[],!1).filter(p=>un(p)&&ur(p)!=="body"),u=null;const f=fn(l).position==="fixed";let m=f?Rl(l):l;for(;un(m)&&!ir(m);){const p=fn(m),v=_f(m);!v&&p.position==="fixed"&&(u=null),(f?!v&&!u:!v&&p.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||po(m)&&!v&&Dv(l,m))?i=i.filter(b=>b!==m):u=p,m=Rl(m)}return r.set(l,i),i}function U2(l){let{element:r,boundary:o,rootBoundary:i,strategy:u}=l;const m=[...o==="clippingAncestors"?ms(r)?[]:L2(r,this._c):[].concat(o),i],p=yg(r,m[0],u);let v=p.top,g=p.right,b=p.bottom,y=p.left;for(let w=1;w<m.length;w++){const T=yg(r,m[w],u);v=Xt(T.top,v),g=jl(T.right,g),b=jl(T.bottom,b),y=Xt(T.left,y)}return{width:g-y,height:b-v,x:y,y:v}}function H2(l){const{width:r,height:o}=Mv(l);return{width:r,height:o}}function k2(l,r,o){const i=Fn(r),u=Rn(r),f=o==="fixed",m=ra(l,!0,f,r);let p={scrollLeft:0,scrollTop:0};const v=Cn(0);function g(){v.x=ps(u)}if(i||!i&&!f)if((ur(r)!=="body"||po(u))&&(p=hs(r)),i){const T=ra(r,!0,f,r);v.x=T.x+r.clientLeft,v.y=T.y+r.clientTop}else u&&g();f&&!i&&u&&g();const b=u&&!i&&!f?zv(u,p):Cn(0),y=m.left+p.scrollLeft-v.x-b.x,w=m.top+p.scrollTop-v.y-b.y;return{x:y,y:w,width:m.width,height:m.height}}function Qu(l){return fn(l).position==="static"}function bg(l,r){if(!Fn(l)||fn(l).position==="fixed")return null;if(r)return r(l);let o=l.offsetParent;return Rn(l)===o&&(o=o.ownerDocument.body),o}function Lv(l,r){const o=Zt(l);if(ms(l))return o;if(!Fn(l)){let u=Rl(l);for(;u&&!ir(u);){if(un(u)&&!Qu(u))return u;u=Rl(u)}return o}let i=bg(l,r);for(;i&&E2(i)&&Qu(i);)i=bg(i,r);return i&&ir(i)&&Qu(i)&&!_f(i)?o:i||N2(l)||o}const B2=async function(l){const r=this.getOffsetParent||Lv,o=this.getDimensions,i=await o(l.floating);return{reference:k2(l.reference,await r(l.floating),l.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Y2(l){return fn(l).direction==="rtl"}const q2={convertOffsetParentRelativeRectToViewportRelativeRect:O2,getDocumentElement:Rn,getClippingRect:U2,getOffsetParent:Lv,getElementRects:B2,getClientRects:M2,getDimensions:H2,getScale:Ia,isElement:un,isRTL:Y2};function Uv(l,r){return l.x===r.x&&l.y===r.y&&l.width===r.width&&l.height===r.height}function V2(l,r){let o=null,i;const u=Rn(l);function f(){var p;clearTimeout(i),(p=o)==null||p.disconnect(),o=null}function m(p,v){p===void 0&&(p=!1),v===void 0&&(v=1),f();const g=l.getBoundingClientRect(),{left:b,top:y,width:w,height:T}=g;if(p||r(),!w||!T)return;const j=Ui(y),E=Ui(u.clientWidth-(b+w)),_=Ui(u.clientHeight-(y+T)),M=Ui(b),q={rootMargin:-j+"px "+-E+"px "+-_+"px "+-M+"px",threshold:Xt(0,jl(1,v))||1};let L=!0;function F(te){const B=te[0].intersectionRatio;if(B!==v){if(!L)return m();B?m(!1,B):i=setTimeout(()=>{m(!1,1e-7)},1e3)}B===1&&!Uv(g,l.getBoundingClientRect())&&m(),L=!1}try{o=new IntersectionObserver(F,{...q,root:u.ownerDocument})}catch{o=new IntersectionObserver(F,q)}o.observe(l)}return m(!0),f}function G2(l,r,o,i){i===void 0&&(i={});const{ancestorScroll:u=!0,ancestorResize:f=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:v=!1}=i,g=Df(l),b=u||f?[...g?fo(g):[],...r?fo(r):[]]:[];b.forEach(M=>{u&&M.addEventListener("scroll",o,{passive:!0}),f&&M.addEventListener("resize",o)});const y=g&&p?V2(g,o):null;let w=-1,T=null;m&&(T=new ResizeObserver(M=>{let[U]=M;U&&U.target===g&&T&&r&&(T.unobserve(r),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var q;(q=T)==null||q.observe(r)})),o()}),g&&!v&&T.observe(g),r&&T.observe(r));let j,E=v?ra(l):null;v&&_();function _(){const M=ra(l);E&&!Uv(E,M)&&o(),E=M,j=requestAnimationFrame(_)}return o(),()=>{var M;b.forEach(U=>{u&&U.removeEventListener("scroll",o),f&&U.removeEventListener("resize",o)}),y==null||y(),(M=T)==null||M.disconnect(),T=null,v&&cancelAnimationFrame(j)}}const X2=x2,Q2=S2,Z2=v2,$2=T2,K2=y2,xg=g2,W2=w2,J2=(l,r,o)=>{const i=new Map,u={platform:q2,...o},f={...u.platform,_c:i};return p2(l,r,{...u,platform:f})};var P2=typeof document<"u",F2=function(){},Gi=P2?S.useLayoutEffect:F2;function as(l,r){if(l===r)return!0;if(typeof l!=typeof r)return!1;if(typeof l=="function"&&l.toString()===r.toString())return!0;let o,i,u;if(l&&r&&typeof l=="object"){if(Array.isArray(l)){if(o=l.length,o!==r.length)return!1;for(i=o;i--!==0;)if(!as(l[i],r[i]))return!1;return!0}if(u=Object.keys(l),o=u.length,o!==Object.keys(r).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(r,u[i]))return!1;for(i=o;i--!==0;){const f=u[i];if(!(f==="_owner"&&l.$$typeof)&&!as(l[f],r[f]))return!1}return!0}return l!==l&&r!==r}function Hv(l){return typeof window>"u"?1:(l.ownerDocument.defaultView||window).devicePixelRatio||1}function Sg(l,r){const o=Hv(l);return Math.round(r*o)/o}function Zu(l){const r=S.useRef(l);return Gi(()=>{r.current=l}),r}function I2(l){l===void 0&&(l={});const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:u,elements:{reference:f,floating:m}={},transform:p=!0,whileElementsMounted:v,open:g}=l,[b,y]=S.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[w,T]=S.useState(i);as(w,i)||T(i);const[j,E]=S.useState(null),[_,M]=S.useState(null),U=S.useCallback(W=>{W!==te.current&&(te.current=W,E(W))},[]),q=S.useCallback(W=>{W!==B.current&&(B.current=W,M(W))},[]),L=f||j,F=m||_,te=S.useRef(null),B=S.useRef(null),N=S.useRef(b),z=v!=null,$=Zu(v),ee=Zu(u),ae=Zu(g),J=S.useCallback(()=>{if(!te.current||!B.current)return;const W={placement:r,strategy:o,middleware:w};ee.current&&(W.platform=ee.current),J2(te.current,B.current,W).then(re=>{const P={...re,isPositioned:ae.current!==!1};I.current&&!as(N.current,P)&&(N.current=P,Ef.flushSync(()=>{y(P)}))})},[w,r,o,ee,ae]);Gi(()=>{g===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,y(W=>({...W,isPositioned:!1})))},[g]);const I=S.useRef(!1);Gi(()=>(I.current=!0,()=>{I.current=!1}),[]),Gi(()=>{if(L&&(te.current=L),F&&(B.current=F),L&&F){if($.current)return $.current(L,F,J);J()}},[L,F,J,$,z]);const le=S.useMemo(()=>({reference:te,floating:B,setReference:U,setFloating:q}),[U,q]),O=S.useMemo(()=>({reference:L,floating:F}),[L,F]),X=S.useMemo(()=>{const W={position:o,left:0,top:0};if(!O.floating)return W;const re=Sg(O.floating,b.x),P=Sg(O.floating,b.y);return p?{...W,transform:"translate("+re+"px, "+P+"px)",...Hv(O.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:re,top:P}},[o,p,O.floating,b.x,b.y]);return S.useMemo(()=>({...b,update:J,refs:le,elements:O,floatingStyles:X}),[b,J,le,O,X])}const ew=l=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:l,fn(o){const{element:i,padding:u}=typeof l=="function"?l(o):l;return i&&r(i)?i.current!=null?xg({element:i.current,padding:u}).fn(o):{}:i?xg({element:i,padding:u}).fn(o):{}}}},tw=(l,r)=>{const o=X2(l);return{name:o.name,fn:o.fn,options:[l,r]}},nw=(l,r)=>{const o=Q2(l);return{name:o.name,fn:o.fn,options:[l,r]}},lw=(l,r)=>({fn:W2(l).fn,options:[l,r]}),aw=(l,r)=>{const o=Z2(l);return{name:o.name,fn:o.fn,options:[l,r]}},rw=(l,r)=>{const o=$2(l);return{name:o.name,fn:o.fn,options:[l,r]}},ow=(l,r)=>{const o=K2(l);return{name:o.name,fn:o.fn,options:[l,r]}},iw=(l,r)=>{const o=ew(l);return{name:o.name,fn:o.fn,options:[l,r]}};var sw="Arrow",kv=S.forwardRef((l,r)=>{const{children:o,width:i=10,height:u=5,...f}=l;return d.jsx(Je.svg,{...f,ref:r,width:i,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:l.asChild?o:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});kv.displayName=sw;var cw=kv;function uw(l){const[r,o]=S.useState(void 0);return An(()=>{if(l){o({width:l.offsetWidth,height:l.offsetHeight});const i=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let m,p;if("borderBoxSize"in f){const v=f.borderBoxSize,g=Array.isArray(v)?v[0]:v;m=g.inlineSize,p=g.blockSize}else m=l.offsetWidth,p=l.offsetHeight;o({width:m,height:p})});return i.observe(l,{box:"border-box"}),()=>i.unobserve(l)}else o(void 0)},[l]),r}var Lf="Popper",[Bv,Yv]=ho(Lf),[fw,qv]=Bv(Lf),Vv=l=>{const{__scopePopper:r,children:o}=l,[i,u]=S.useState(null);return d.jsx(fw,{scope:r,anchor:i,onAnchorChange:u,children:o})};Vv.displayName=Lf;var Gv="PopperAnchor",Xv=S.forwardRef((l,r)=>{const{__scopePopper:o,virtualRef:i,...u}=l,f=qv(Gv,o),m=S.useRef(null),p=mt(r,m),v=S.useRef(null);return S.useEffect(()=>{const g=v.current;v.current=(i==null?void 0:i.current)||m.current,g!==v.current&&f.onAnchorChange(v.current)}),i?null:d.jsx(Je.div,{...u,ref:p})});Xv.displayName=Gv;var Uf="PopperContent",[dw,mw]=Bv(Uf),Qv=S.forwardRef((l,r)=>{var be,qe,ye,xt,ot,Nt;const{__scopePopper:o,side:i="bottom",sideOffset:u=0,align:f="center",alignOffset:m=0,arrowPadding:p=0,avoidCollisions:v=!0,collisionBoundary:g=[],collisionPadding:b=0,sticky:y="partial",hideWhenDetached:w=!1,updatePositionStrategy:T="optimized",onPlaced:j,...E}=l,_=qv(Uf,o),[M,U]=S.useState(null),q=mt(r,St=>U(St)),[L,F]=S.useState(null),te=uw(L),B=(te==null?void 0:te.width)??0,N=(te==null?void 0:te.height)??0,z=i+(f!=="center"?"-"+f:""),$=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},ee=Array.isArray(g)?g:[g],ae=ee.length>0,J={padding:$,boundary:ee.filter(pw),altBoundary:ae},{refs:I,floatingStyles:le,placement:O,isPositioned:X,middlewareData:W}=I2({strategy:"fixed",placement:z,whileElementsMounted:(...St)=>G2(...St,{animationFrame:T==="always"}),elements:{reference:_.anchor},middleware:[tw({mainAxis:u+N,alignmentAxis:m}),v&&nw({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?lw():void 0,...J}),v&&aw({...J}),rw({...J,apply:({elements:St,rects:he,availableWidth:In,availableHeight:el})=>{const{width:zl,height:ua}=he.reference,hn=St.floating.style;hn.setProperty("--radix-popper-available-width",`${In}px`),hn.setProperty("--radix-popper-available-height",`${el}px`),hn.setProperty("--radix-popper-anchor-width",`${zl}px`),hn.setProperty("--radix-popper-anchor-height",`${ua}px`)}}),L&&iw({element:L,padding:p}),gw({arrowWidth:B,arrowHeight:N}),w&&ow({strategy:"referenceHidden",...J})]}),[re,P]=Kv(O),A=Qt(j);An(()=>{X&&(A==null||A())},[X,A]);const G=(be=W.arrow)==null?void 0:be.x,ne=(qe=W.arrow)==null?void 0:qe.y,oe=((ye=W.arrow)==null?void 0:ye.centerOffset)!==0,[fe,me]=S.useState();return An(()=>{M&&me(window.getComputedStyle(M).zIndex)},[M]),d.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...le,transform:X?le.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fe,"--radix-popper-transform-origin":[(xt=W.transformOrigin)==null?void 0:xt.x,(ot=W.transformOrigin)==null?void 0:ot.y].join(" "),...((Nt=W.hide)==null?void 0:Nt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:l.dir,children:d.jsx(dw,{scope:o,placedSide:re,onArrowChange:F,arrowX:G,arrowY:ne,shouldHideArrow:oe,children:d.jsx(Je.div,{"data-side":re,"data-align":P,...E,ref:q,style:{...E.style,animation:X?void 0:"none"}})})})});Qv.displayName=Uf;var Zv="PopperArrow",hw={top:"bottom",right:"left",bottom:"top",left:"right"},$v=S.forwardRef(function(r,o){const{__scopePopper:i,...u}=r,f=mw(Zv,i),m=hw[f.placedSide];return d.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[m]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:d.jsx(cw,{...u,ref:o,style:{...u.style,display:"block"}})})});$v.displayName=Zv;function pw(l){return l!==null}var gw=l=>({name:"transformOrigin",options:l,fn(r){var _,M,U;const{placement:o,rects:i,middlewareData:u}=r,m=((_=u.arrow)==null?void 0:_.centerOffset)!==0,p=m?0:l.arrowWidth,v=m?0:l.arrowHeight,[g,b]=Kv(o),y={start:"0%",center:"50%",end:"100%"}[b],w=(((M=u.arrow)==null?void 0:M.x)??0)+p/2,T=(((U=u.arrow)==null?void 0:U.y)??0)+v/2;let j="",E="";return g==="bottom"?(j=m?y:`${w}px`,E=`${-v}px`):g==="top"?(j=m?y:`${w}px`,E=`${i.floating.height+v}px`):g==="right"?(j=`${-v}px`,E=m?y:`${T}px`):g==="left"&&(j=`${i.floating.width+v}px`,E=m?y:`${T}px`),{data:{x:j,y:E}}}});function Kv(l){const[r,o="center"]=l.split("-");return[r,o]}var vw=Vv,yw=Xv,bw=Qv,xw=$v,Sw="Portal",Hf=S.forwardRef((l,r)=>{var p;const{container:o,...i}=l,[u,f]=S.useState(!1);An(()=>f(!0),[]);const m=o||u&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return m?vS.createPortal(d.jsx(Je.div,{...i,ref:r}),m):null});Hf.displayName=Sw;var ww=xf[" useInsertionEffect ".trim().toString()]||An;function kf({prop:l,defaultProp:r,onChange:o=()=>{},caller:i}){const[u,f,m]=Tw({defaultProp:r,onChange:o}),p=l!==void 0,v=p?l:u;{const b=S.useRef(l!==void 0);S.useEffect(()=>{const y=b.current;y!==p&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),b.current=p},[p,i])}const g=S.useCallback(b=>{var y;if(p){const w=Ew(b)?b(l):b;w!==l&&((y=m.current)==null||y.call(m,w))}else f(b)},[p,l,f,m]);return[v,g]}function Tw({defaultProp:l,onChange:r}){const[o,i]=S.useState(l),u=S.useRef(o),f=S.useRef(r);return ww(()=>{f.current=r},[r]),S.useEffect(()=>{var m;u.current!==o&&((m=f.current)==null||m.call(f,o),u.current=o)},[o,u]),[o,i,f]}function Ew(l){return typeof l=="function"}var Cw=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"}),Aw="VisuallyHidden",Wv=S.forwardRef((l,r)=>d.jsx(Je.span,{...l,ref:r,style:{...Cw,...l.style}}));Wv.displayName=Aw;var Nw=Wv,[gs]=ho("Tooltip",[Yv]),vs=Yv(),Jv="TooltipProvider",jw=700,hf="tooltip.open",[Rw,Bf]=gs(Jv),Pv=l=>{const{__scopeTooltip:r,delayDuration:o=jw,skipDelayDuration:i=300,disableHoverableContent:u=!1,children:f}=l,m=S.useRef(!0),p=S.useRef(!1),v=S.useRef(0);return S.useEffect(()=>{const g=v.current;return()=>window.clearTimeout(g)},[]),d.jsx(Rw,{scope:r,isOpenDelayedRef:m,delayDuration:o,onOpen:S.useCallback(()=>{window.clearTimeout(v.current),m.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>m.current=!0,i)},[i]),isPointerInTransitRef:p,onPointerInTransitChange:S.useCallback(g=>{p.current=g},[]),disableHoverableContent:u,children:f})};Pv.displayName=Jv;var mo="Tooltip",[Ow,go]=gs(mo),Fv=l=>{const{__scopeTooltip:r,children:o,open:i,defaultOpen:u,onOpenChange:f,disableHoverableContent:m,delayDuration:p}=l,v=Bf(mo,l.__scopeTooltip),g=vs(r),[b,y]=S.useState(null),w=so(),T=S.useRef(0),j=m??v.disableHoverableContent,E=p??v.delayDuration,_=S.useRef(!1),[M,U]=kf({prop:i,defaultProp:u??!1,onChange:B=>{B?(v.onOpen(),document.dispatchEvent(new CustomEvent(hf))):v.onClose(),f==null||f(B)},caller:mo}),q=S.useMemo(()=>M?_.current?"delayed-open":"instant-open":"closed",[M]),L=S.useCallback(()=>{window.clearTimeout(T.current),T.current=0,_.current=!1,U(!0)},[U]),F=S.useCallback(()=>{window.clearTimeout(T.current),T.current=0,U(!1)},[U]),te=S.useCallback(()=>{window.clearTimeout(T.current),T.current=window.setTimeout(()=>{_.current=!0,U(!0),T.current=0},E)},[E,U]);return S.useEffect(()=>()=>{T.current&&(window.clearTimeout(T.current),T.current=0)},[]),d.jsx(vw,{...g,children:d.jsx(Ow,{scope:r,contentId:w,open:M,stateAttribute:q,trigger:b,onTriggerChange:y,onTriggerEnter:S.useCallback(()=>{v.isOpenDelayedRef.current?te():L()},[v.isOpenDelayedRef,te,L]),onTriggerLeave:S.useCallback(()=>{j?F():(window.clearTimeout(T.current),T.current=0)},[F,j]),onOpen:L,onClose:F,disableHoverableContent:j,children:o})})};Fv.displayName=mo;var pf="TooltipTrigger",Iv=S.forwardRef((l,r)=>{const{__scopeTooltip:o,...i}=l,u=go(pf,o),f=Bf(pf,o),m=vs(o),p=S.useRef(null),v=mt(r,p,u.onTriggerChange),g=S.useRef(!1),b=S.useRef(!1),y=S.useCallback(()=>g.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),d.jsx(yw,{asChild:!0,...m,children:d.jsx(Je.button,{"aria-describedby":u.open?u.contentId:void 0,"data-state":u.stateAttribute,...i,ref:v,onPointerMove:We(l.onPointerMove,w=>{w.pointerType!=="touch"&&!b.current&&!f.isPointerInTransitRef.current&&(u.onTriggerEnter(),b.current=!0)}),onPointerLeave:We(l.onPointerLeave,()=>{u.onTriggerLeave(),b.current=!1}),onPointerDown:We(l.onPointerDown,()=>{u.open&&u.onClose(),g.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:We(l.onFocus,()=>{g.current||u.onOpen()}),onBlur:We(l.onBlur,u.onClose),onClick:We(l.onClick,u.onClose)})})});Iv.displayName=pf;var Yf="TooltipPortal",[Mw,_w]=gs(Yf,{forceMount:void 0}),e0=l=>{const{__scopeTooltip:r,forceMount:o,children:i,container:u}=l,f=go(Yf,r);return d.jsx(Mw,{scope:r,forceMount:o,children:d.jsx(dn,{present:o||f.open,children:d.jsx(Hf,{asChild:!0,container:u,children:i})})})};e0.displayName=Yf;var sr="TooltipContent",t0=S.forwardRef((l,r)=>{const o=_w(sr,l.__scopeTooltip),{forceMount:i=o.forceMount,side:u="top",...f}=l,m=go(sr,l.__scopeTooltip);return d.jsx(dn,{present:i||m.open,children:m.disableHoverableContent?d.jsx(n0,{side:u,...f,ref:r}):d.jsx(zw,{side:u,...f,ref:r})})}),zw=S.forwardRef((l,r)=>{const o=go(sr,l.__scopeTooltip),i=Bf(sr,l.__scopeTooltip),u=S.useRef(null),f=mt(r,u),[m,p]=S.useState(null),{trigger:v,onClose:g}=o,b=u.current,{onPointerInTransitChange:y}=i,w=S.useCallback(()=>{p(null),y(!1)},[y]),T=S.useCallback((j,E)=>{const _=j.currentTarget,M={x:j.clientX,y:j.clientY},U=kw(M,_.getBoundingClientRect()),q=Bw(M,U),L=Yw(E.getBoundingClientRect()),F=Vw([...q,...L]);p(F),y(!0)},[y]);return S.useEffect(()=>()=>w(),[w]),S.useEffect(()=>{if(v&&b){const j=_=>T(_,b),E=_=>T(_,v);return v.addEventListener("pointerleave",j),b.addEventListener("pointerleave",E),()=>{v.removeEventListener("pointerleave",j),b.removeEventListener("pointerleave",E)}}},[v,b,T,w]),S.useEffect(()=>{if(m){const j=E=>{const _=E.target,M={x:E.clientX,y:E.clientY},U=(v==null?void 0:v.contains(_))||(b==null?void 0:b.contains(_)),q=!qw(M,m);U?w():q&&(w(),g())};return document.addEventListener("pointermove",j),()=>document.removeEventListener("pointermove",j)}},[v,b,m,g,w]),d.jsx(n0,{...l,ref:f})}),[Dw,Lw]=gs(mo,{isInside:!1}),Uw=bS("TooltipContent"),n0=S.forwardRef((l,r)=>{const{__scopeTooltip:o,children:i,"aria-label":u,onEscapeKeyDown:f,onPointerDownOutside:m,...p}=l,v=go(sr,o),g=vs(o),{onClose:b}=v;return S.useEffect(()=>(document.addEventListener(hf,b),()=>document.removeEventListener(hf,b)),[b]),S.useEffect(()=>{if(v.trigger){const y=w=>{const T=w.target;T!=null&&T.contains(v.trigger)&&b()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[v.trigger,b]),d.jsx(jf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:y=>y.preventDefault(),onDismiss:b,children:d.jsxs(bw,{"data-state":v.stateAttribute,...g,...p,ref:r,style:{...p.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(Uw,{children:i}),d.jsx(Dw,{scope:o,isInside:!0,children:d.jsx(Nw,{id:v.contentId,role:"tooltip",children:u||i})})]})})});t0.displayName=sr;var l0="TooltipArrow",Hw=S.forwardRef((l,r)=>{const{__scopeTooltip:o,...i}=l,u=vs(o);return Lw(l0,o).isInside?null:d.jsx(xw,{...u,...i,ref:r})});Hw.displayName=l0;function kw(l,r){const o=Math.abs(r.top-l.y),i=Math.abs(r.bottom-l.y),u=Math.abs(r.right-l.x),f=Math.abs(r.left-l.x);switch(Math.min(o,i,u,f)){case f:return"left";case u:return"right";case o:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function Bw(l,r,o=5){const i=[];switch(r){case"top":i.push({x:l.x-o,y:l.y+o},{x:l.x+o,y:l.y+o});break;case"bottom":i.push({x:l.x-o,y:l.y-o},{x:l.x+o,y:l.y-o});break;case"left":i.push({x:l.x+o,y:l.y-o},{x:l.x+o,y:l.y+o});break;case"right":i.push({x:l.x-o,y:l.y-o},{x:l.x-o,y:l.y+o});break}return i}function Yw(l){const{top:r,right:o,bottom:i,left:u}=l;return[{x:u,y:r},{x:o,y:r},{x:o,y:i},{x:u,y:i}]}function qw(l,r){const{x:o,y:i}=l;let u=!1;for(let f=0,m=r.length-1;f<r.length;m=f++){const p=r[f],v=r[m],g=p.x,b=p.y,y=v.x,w=v.y;b>i!=w>i&&o<(y-g)*(i-b)/(w-b)+g&&(u=!u)}return u}function Vw(l){const r=l.slice();return r.sort((o,i)=>o.x<i.x?-1:o.x>i.x?1:o.y<i.y?-1:o.y>i.y?1:0),Gw(r)}function Gw(l){if(l.length<=1)return l.slice();const r=[];for(let i=0;i<l.length;i++){const u=l[i];for(;r.length>=2;){const f=r[r.length-1],m=r[r.length-2];if((f.x-m.x)*(u.y-m.y)>=(f.y-m.y)*(u.x-m.x))r.pop();else break}r.push(u)}r.pop();const o=[];for(let i=l.length-1;i>=0;i--){const u=l[i];for(;o.length>=2;){const f=o[o.length-1],m=o[o.length-2];if((f.x-m.x)*(u.y-m.y)>=(f.y-m.y)*(u.x-m.x))o.pop();else break}o.push(u)}return o.pop(),r.length===1&&o.length===1&&r[0].x===o[0].x&&r[0].y===o[0].y?r:r.concat(o)}var Xw=Pv,Qw=Fv,Zw=Iv,$w=e0,Kw=t0;function Ww({delayDuration:l=0,...r}){return d.jsx(Xw,{"data-slot":"tooltip-provider",delayDuration:l,...r})}function er({...l}){return d.jsx(Ww,{children:d.jsx(Qw,{"data-slot":"tooltip",...l})})}function tr({...l}){return d.jsx(Zw,{"data-slot":"tooltip-trigger",...l})}function nr({className:l,sideOffset:r=4,children:o,...i}){return d.jsx($w,{children:d.jsx(Kw,{"data-slot":"tooltip-content",sideOffset:r,className:Nn("bg-background text-foreground border border-border animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",l),...i,children:o})})}function Jw(l){const r=l.reduce((f,m)=>(f[m.toolName]=(f[m.toolName]||0)+1,f),{}),o=Object.keys(r),i=f=>{const m=r[f]??0;return m>1?`${f} (x${m})`:f},u=o.map(i);return o.length===1&&o[0]?{label:i(o[0]),details:""}:o.length===2?{label:`${i(o[0])}, ${i(o[1])}`,details:u.join(", ")}:{label:`${i(o[0])}, ${i(o[1])}, ...`,details:u.join(", ")}}function wg(l,r=30){return l.length<=r?l:l.slice(0,r).trim()+"…"}function Pw(l){return(l==null?void 0:l.filter(r=>r.role==="tool").flatMap(r=>Array.isArray(r.content)?r.content.filter(o=>o.type==="tool-result"):[]))??[]}function a0(l,r=[]){var u,f;const o=[...Pw((u=l==null?void 0:l.response)==null?void 0:u.messages),...(l==null?void 0:l.toolResults)??[],...r.filter(m=>m.type==="tool-result"),...((f=l==null?void 0:l.content)==null?void 0:f.filter(m=>m.type==="tool-result"))??[]],i=new Set;return o.filter(m=>m.toolCallId==null?!0:i.has(m.toolCallId)?!1:(i.add(m.toolCallId),!0))}function Tg(l){const{content:r}=l;if(typeof r=="string")return r;if(Array.isArray(r)){const o=r.find(i=>i.type==="text");return(o==null?void 0:o.text)??null}return null}function Fw(l,r){const o=l==null?void 0:l.prompt;if(!Array.isArray(o))return null;if(r){const p=o.filter(g=>g.role==="user"),v=p[p.length-1];if(v){const g=Tg(v);if(g)return{type:"user",label:`"${wg(g)}"`,fullText:g}}return null}const i=o.filter(p=>p.role==="tool");if(i.length>0){const p=i[i.length-1],v={},g=p==null?void 0:p.content;if(Array.isArray(g))for(const T of g)T.type==="tool-result"&&"toolName"in T&&T.toolName&&(v[T.toolName]=(v[T.toolName]||0)+1);const b=Object.keys(v);if(b.length===0)return{type:"tool",label:"tool result"};const y=T=>{const j=v[T];return j!=null&&j>1?`${T} (x${j})`:T},w=b.map(y);return b.length===1?{type:"tool",label:y(b[0])}:b.length===2?{type:"tool",label:`${y(b[0])}, ${y(b[1])}`,toolDetails:w.join(", ")}:{type:"tool",label:`${y(b[0])}, ${y(b[1])}, ...`,toolDetails:w.join(", ")}}const u=o.filter(p=>p.role==="user"),f=u[u.length-1];if(!f)return null;const m=Tg(f);return m?{type:"user",label:`"${wg(m)}"`,fullText:m}:null}function Iw(l,r){var i,u;if(r)return{type:"error",icon:"alert",label:"Error"};if((typeof(l==null?void 0:l.finishReason)=="string"?l.finishReason:typeof(l==null?void 0:l.finishReason)=="object"?(i=l.finishReason)==null?void 0:i.unified:void 0)==="tool-calls"){const f=(l==null?void 0:l.toolCalls)||(((u=l==null?void 0:l.content)==null?void 0:u.filter(v=>v.type==="tool-call"))??[]),{label:m,details:p}=Jw(f);return{type:"tool-calls",icon:"wrench",label:m,toolDetails:p||void 0}}return{type:"response",icon:"message",label:"Response"}}function Ol(l){if(typeof l=="string")try{return JSON.parse(l)}catch{return l}return l}function rs(l){return l==null?{total:0}:typeof l=="number"?{total:l}:typeof l=="object"?{total:"total"in l&&typeof l.total=="number"?l.total:0,...typeof l.noCache=="number"&&{noCache:l.noCache},...typeof l.cacheRead=="number"&&{cacheRead:l.cacheRead},...typeof l.cacheWrite=="number"&&{cacheWrite:l.cacheWrite}}:{total:0}}function os(l){return l==null?{total:0}:typeof l=="number"?{total:l}:typeof l=="object"?{total:"total"in l&&typeof l.total=="number"?l.total:0,...typeof l.text=="number"&&{text:l.text},...typeof l.reasoning=="number"&&{reasoning:l.reasoning}}:{total:0}}function r0(l){const{total:r,cacheRead:o}=l;return o&&o>0?`${r} (${o} cached)`:String(r)}function o0(l){const{total:r,reasoning:o}=l;return o&&o>0?`${r} (${o} reasoning)`:String(r)}function i0(l,r=40){if(!l||typeof l!="object")return"";const o=Object.entries(l);if(o.length===0)return"";const i=(v,g=20)=>v===null?"null":v===void 0?"undefined":typeof v=="object"?Array.isArray(v)?`[${v.length}]`:"{…}":typeof v=="string"?v.length>g?`"${v.slice(0,g)}…"`:`"${v}"`:String(v),u=o[0];if(!u)return"";const[f,m]=u,p=`${f}: ${i(m)}`;return o.length===1?`{ ${p} }`:`{ ${p}, … }`}function eT(l){if(!l||typeof l!="object")return"";const r=Object.entries(l);if(r.length===0)return"";const o=(p,v=20)=>p===null?"null":p===void 0?"undefined":typeof p=="object"?Array.isArray(p)?`[${p.length}]`:"{…}":typeof p=="string"?p.length>v?`"${p.slice(0,v)}…"`:`"${p}"`:String(p),i=r[0];if(!i)return"";const[u,f]=i,m=`${u}: ${o(f)}`;return r.length===1?`{ ${m} }`:`{ ${m}, … }`}function tT(l){if(l===null)return"null";if(l===void 0)return"undefined";if(typeof l=="string")return l.length>30?`"${l.slice(0,30)}…"`:`"${l}"`;if(Array.isArray(l))return`[${l.length}]`;if(typeof l=="object"){const r=Object.entries(l);if(r.length===0)return"{}";const o=r[0];if(!o)return"{…}";const[i,u]=o;let f;return typeof u=="string"&&u.length>15?f=`"${u.slice(0,15)}…"`:typeof u=="string"?f=`"${u}"`:typeof u=="object"?f=Array.isArray(u)?`[${u.length}]`:"{…}":f=String(u),r.length===1?`{ ${i}: ${f} }`:`{ ${i}: ${f}, … }`}return String(l)}const nT={step:"bg-info","child-run":"bg-agent",thinking:"bg-warning","tool-call":"bg-tool",text:"bg-success",error:"bg-danger"},lT={step:"bg-info/20","child-run":"bg-agent/20",thinking:"bg-warning/20","tool-call":"bg-tool/20",text:"bg-success/20",error:"bg-danger/20"};function aT(l,r){const o=[],i=new Date(l.run.started_at).getTime(),u=(f,m,p,v)=>{var g,b;for(const y of f){const T=new Date(y.started_at).getTime()-i,j=y.duration_ms??0,E=T+j,_=r(y.usage),M=r(y.output),U=v||y.model_id||"LLM call",q=v?y.model_id:void 0,L=(M==null?void 0:M.content)??[],F=L.length>0||y.error,te=_?{input:typeof _.inputTokens=="number"?_.inputTokens:((g=_.inputTokens)==null?void 0:g.total)??0,output:typeof _.outputTokens=="number"?_.outputTokens:((b=_.outputTokens)==null?void 0:b.total)??0}:void 0;if(o.push({id:y.id,stepId:y.id,label:U,sublabel:F?q:y.duration_ms===null&&!y.error?"streaming...":q||"Response",startMs:T,durationMs:j,depth:m,kind:"step",tokens:te,modelId:y.model_id,isInProgress:y.duration_ms===null&&!y.error}),!F){const I=p.filter(le=>le.run.parent_step_id===y.id);for(const le of I)u(le.steps,m+1,le.childRuns??[],le.run.function_id);continue}const N=[...p.filter(I=>I.run.parent_step_id===y.id)].sort((I,le)=>new Date(I.run.started_at).getTime()-new Date(le.run.started_at).getTime()),z=L.filter(I=>I.type==="tool-call"),$=new Map,ee=[];if(z.length>0&&N.length>0){let I=0;for(const le of z){const O=le.toolCallId;if(!O)continue;if(L.find(W=>W.type==="tool-result"&&"toolCallId"in W&&W.toolCallId===O)&&I<N.length){const W=N[I];if(W){const re=$.get(O)??[];re.push(W),$.set(O,re),I++}}}for(let le=I;le<N.length;le++){const O=N[le];O&&ee.push(O)}}else ee.push(...N);const ae=[];for(const I of z){const le=I.toolCallId;if(!le)continue;const O=$.get(le)??[];if(O.length>0){const X=Math.min(...O.map(re=>new Date(re.run.started_at).getTime()-i)),W=Math.max(...O.map(re=>{const P=new Date(re.run.started_at).getTime()-i,A=re.steps.reduce((G,ne)=>G+(ne.duration_ms||0),0);return P+A}));ae.push({toolCallId:le,startMs:X,endMs:W})}}let J=T;for(const I of L)if(I.type==="reasoning"||I.type==="thinking"){const le=I.text||I.thinking||I.reasoning||"",O=ae.length>0?Math.min(...ae.map(re=>re.startMs)):E,X=Math.max(J,O),W=Math.max(0,X-J);o.push({id:`${y.id}-thinking-${I.toolCallId||J}`,stepId:y.id,label:"Thinking",sublabel:le.length>50?le.slice(0,50)+"...":le,startMs:J,durationMs:W,depth:m+1,kind:"thinking",thinkingText:le}),J=J+W}else if(I.type==="tool-call"){const le=I.toolName||"unknown",O=I.input??I.args,X=O&&typeof O=="object"?Object.entries(O).slice(0,3).map(([,G])=>{const ne=typeof G=="string"?G:JSON.stringify(G)??String(G);return ne.length>30?ne.slice(0,30)+"…":ne}).join(", "):typeof O=="string"?O.slice(0,60):"",W=$.get(I.toolCallId??"")??[],re=ae.find(G=>G.toolCallId===I.toolCallId);let P,A;re?(P=re.startMs,A=re.endMs-re.startMs):(P=J,A=0),o.push({id:`${y.id}-tool-${I.toolCallId||J}`,stepId:y.id,label:le,sublabel:X?`(${X})`:void 0,startMs:P,durationMs:A,depth:m+1,kind:"tool-call",toolCallId:I.toolCallId});for(const G of W)u(G.steps,m+2,G.childRuns??[],G.run.function_id);J=Math.max(J,P+A)}else if(I.type==="text"){const le=I.text||"",O=Math.max(0,E-J);o.push({id:`${y.id}-text-${J}`,stepId:y.id,label:"Text",sublabel:le.length>60?le.slice(0,60)+"...":le,startMs:J,durationMs:O,depth:m+1,kind:"text",textContent:le}),J=J+O}if(y.error){const I=Math.max(0,E-J);o.push({id:`${y.id}-error`,stepId:y.id,label:"Error",sublabel:y.error.length>60?y.error.slice(0,60)+"...":y.error,startMs:J,durationMs:I,depth:m+1,kind:"error"})}for(const I of ee)u(I.steps,m+1,I.childRuns??[],I.run.function_id)}};return u(l.steps,0,l.childRuns??[],l.run.function_id),o}var $u="focusScope.autoFocusOnMount",Ku="focusScope.autoFocusOnUnmount",Eg={bubbles:!1,cancelable:!0},rT="FocusScope",s0=S.forwardRef((l,r)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:u,onUnmountAutoFocus:f,...m}=l,[p,v]=S.useState(null),g=Qt(u),b=Qt(f),y=S.useRef(null),w=mt(r,E=>v(E)),T=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(i){let E=function(q){if(T.paused||!p)return;const L=q.target;p.contains(L)?y.current=L:Nl(y.current,{select:!0})},_=function(q){if(T.paused||!p)return;const L=q.relatedTarget;L!==null&&(p.contains(L)||Nl(y.current,{select:!0}))},M=function(q){if(document.activeElement===document.body)for(const F of q)F.removedNodes.length>0&&Nl(p)};document.addEventListener("focusin",E),document.addEventListener("focusout",_);const U=new MutationObserver(M);return p&&U.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",_),U.disconnect()}}},[i,p,T.paused]),S.useEffect(()=>{if(p){Ag.add(T);const E=document.activeElement;if(!p.contains(E)){const M=new CustomEvent($u,Eg);p.addEventListener($u,g),p.dispatchEvent(M),M.defaultPrevented||(oT(fT(c0(p)),{select:!0}),document.activeElement===E&&Nl(p))}return()=>{p.removeEventListener($u,g),setTimeout(()=>{const M=new CustomEvent(Ku,Eg);p.addEventListener(Ku,b),p.dispatchEvent(M),M.defaultPrevented||Nl(E??document.body,{select:!0}),p.removeEventListener(Ku,b),Ag.remove(T)},0)}}},[p,g,b,T]);const j=S.useCallback(E=>{if(!o&&!i||T.paused)return;const _=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,M=document.activeElement;if(_&&M){const U=E.currentTarget,[q,L]=iT(U);q&&L?!E.shiftKey&&M===L?(E.preventDefault(),o&&Nl(q,{select:!0})):E.shiftKey&&M===q&&(E.preventDefault(),o&&Nl(L,{select:!0})):M===U&&E.preventDefault()}},[o,i,T.paused]);return d.jsx(Je.div,{tabIndex:-1,...m,ref:w,onKeyDown:j})});s0.displayName=rT;function oT(l,{select:r=!1}={}){const o=document.activeElement;for(const i of l)if(Nl(i,{select:r}),document.activeElement!==o)return}function iT(l){const r=c0(l),o=Cg(r,l),i=Cg(r.reverse(),l);return[o,i]}function c0(l){const r=[],o=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const u=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||u?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)r.push(o.currentNode);return r}function Cg(l,r){for(const o of l)if(!sT(o,{upTo:r}))return o}function sT(l,{upTo:r}){if(getComputedStyle(l).visibility==="hidden")return!0;for(;l;){if(r!==void 0&&l===r)return!1;if(getComputedStyle(l).display==="none")return!0;l=l.parentElement}return!1}function cT(l){return l instanceof HTMLInputElement&&"select"in l}function Nl(l,{select:r=!1}={}){if(l&&l.focus){const o=document.activeElement;l.focus({preventScroll:!0}),l!==o&&cT(l)&&r&&l.select()}}var Ag=uT();function uT(){let l=[];return{add(r){const o=l[0];r!==o&&(o==null||o.pause()),l=Ng(l,r),l.unshift(r)},remove(r){var o;l=Ng(l,r),(o=l[0])==null||o.resume()}}}function Ng(l,r){const o=[...l],i=o.indexOf(r);return i!==-1&&o.splice(i,1),o}function fT(l){return l.filter(r=>r.tagName!=="A")}var Wu=0;function dT(){S.useEffect(()=>{const l=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",l[0]??jg()),document.body.insertAdjacentElement("beforeend",l[1]??jg()),Wu++,()=>{Wu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Wu--}},[])}function jg(){const l=document.createElement("span");return l.setAttribute("data-radix-focus-guard",""),l.tabIndex=0,l.style.outline="none",l.style.opacity="0",l.style.position="fixed",l.style.pointerEvents="none",l}var Tn=function(){return Tn=Object.assign||function(r){for(var o,i=1,u=arguments.length;i<u;i++){o=arguments[i];for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(r[f]=o[f])}return r},Tn.apply(this,arguments)};function u0(l,r){var o={};for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&r.indexOf(i)<0&&(o[i]=l[i]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,i=Object.getOwnPropertySymbols(l);u<i.length;u++)r.indexOf(i[u])<0&&Object.prototype.propertyIsEnumerable.call(l,i[u])&&(o[i[u]]=l[i[u]]);return o}function mT(l,r,o){if(o||arguments.length===2)for(var i=0,u=r.length,f;i<u;i++)(f||!(i in r))&&(f||(f=Array.prototype.slice.call(r,0,i)),f[i]=r[i]);return l.concat(f||Array.prototype.slice.call(r))}var Xi="right-scroll-bar-position",Qi="width-before-scroll-bar",hT="with-scroll-bars-hidden",pT="--removed-body-scroll-bar-size";function Ju(l,r){return typeof l=="function"?l(r):l&&(l.current=r),l}function gT(l,r){var o=S.useState(function(){return{value:l,callback:r,facade:{get current(){return o.value},set current(i){var u=o.value;u!==i&&(o.value=i,o.callback(i,u))}}}})[0];return o.callback=r,o.facade}var vT=typeof window<"u"?S.useLayoutEffect:S.useEffect,Rg=new WeakMap;function yT(l,r){var o=gT(null,function(i){return l.forEach(function(u){return Ju(u,i)})});return vT(function(){var i=Rg.get(o);if(i){var u=new Set(i),f=new Set(l),m=o.current;u.forEach(function(p){f.has(p)||Ju(p,null)}),f.forEach(function(p){u.has(p)||Ju(p,m)})}Rg.set(o,l)},[l]),o}function bT(l){return l}function xT(l,r){r===void 0&&(r=bT);var o=[],i=!1,u={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:l},useMedium:function(f){var m=r(f,i);return o.push(m),function(){o=o.filter(function(p){return p!==m})}},assignSyncMedium:function(f){for(i=!0;o.length;){var m=o;o=[],m.forEach(f)}o={push:function(p){return f(p)},filter:function(){return o}}},assignMedium:function(f){i=!0;var m=[];if(o.length){var p=o;o=[],p.forEach(f),m=o}var v=function(){var b=m;m=[],b.forEach(f)},g=function(){return Promise.resolve().then(v)};g(),o={push:function(b){m.push(b),g()},filter:function(b){return m=m.filter(b),o}}}};return u}function ST(l){l===void 0&&(l={});var r=xT(null);return r.options=Tn({async:!0,ssr:!1},l),r}var f0=function(l){var r=l.sideCar,o=u0(l,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=r.read();if(!i)throw new Error("Sidecar medium not found");return S.createElement(i,Tn({},o))};f0.isSideCarExport=!0;function wT(l,r){return l.useMedium(r),f0}var d0=ST(),Pu=function(){},ys=S.forwardRef(function(l,r){var o=S.useRef(null),i=S.useState({onScrollCapture:Pu,onWheelCapture:Pu,onTouchMoveCapture:Pu}),u=i[0],f=i[1],m=l.forwardProps,p=l.children,v=l.className,g=l.removeScrollBar,b=l.enabled,y=l.shards,w=l.sideCar,T=l.noRelative,j=l.noIsolation,E=l.inert,_=l.allowPinchZoom,M=l.as,U=M===void 0?"div":M,q=l.gapMode,L=u0(l,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=w,te=yT([o,r]),B=Tn(Tn({},L),u);return S.createElement(S.Fragment,null,b&&S.createElement(F,{sideCar:d0,removeScrollBar:g,shards:y,noRelative:T,noIsolation:j,inert:E,setCallbacks:f,allowPinchZoom:!!_,lockRef:o,gapMode:q}),m?S.cloneElement(S.Children.only(p),Tn(Tn({},B),{ref:te})):S.createElement(U,Tn({},B,{className:v,ref:te}),p))});ys.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ys.classNames={fullWidth:Qi,zeroRight:Xi};var TT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ET(){if(!document)return null;var l=document.createElement("style");l.type="text/css";var r=TT();return r&&l.setAttribute("nonce",r),l}function CT(l,r){l.styleSheet?l.styleSheet.cssText=r:l.appendChild(document.createTextNode(r))}function AT(l){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(l)}var NT=function(){var l=0,r=null;return{add:function(o){l==0&&(r=ET())&&(CT(r,o),AT(r)),l++},remove:function(){l--,!l&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},jT=function(){var l=NT();return function(r,o){S.useEffect(function(){return l.add(r),function(){l.remove()}},[r&&o])}},m0=function(){var l=jT(),r=function(o){var i=o.styles,u=o.dynamic;return l(i,u),null};return r},RT={left:0,top:0,right:0,gap:0},Fu=function(l){return parseInt(l||"",10)||0},OT=function(l){var r=window.getComputedStyle(document.body),o=r[l==="padding"?"paddingLeft":"marginLeft"],i=r[l==="padding"?"paddingTop":"marginTop"],u=r[l==="padding"?"paddingRight":"marginRight"];return[Fu(o),Fu(i),Fu(u)]},MT=function(l){if(l===void 0&&(l="margin"),typeof window>"u")return RT;var r=OT(l),o=document.documentElement.clientWidth,i=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,i-o+r[2]-r[0])}},_T=m0(),lr="data-scroll-locked",zT=function(l,r,o,i){var u=l.left,f=l.top,m=l.right,p=l.gap;return o===void 0&&(o="margin"),`
|
|
175
|
+
.`.concat(hT,` {
|
|
176
|
+
overflow: hidden `).concat(i,`;
|
|
177
|
+
padding-right: `).concat(p,"px ").concat(i,`;
|
|
178
|
+
}
|
|
179
|
+
body[`).concat(lr,`] {
|
|
180
|
+
overflow: hidden `).concat(i,`;
|
|
181
|
+
overscroll-behavior: contain;
|
|
182
|
+
`).concat([r&&"position: relative ".concat(i,";"),o==="margin"&&`
|
|
183
|
+
padding-left: `.concat(u,`px;
|
|
184
|
+
padding-top: `).concat(f,`px;
|
|
185
|
+
padding-right: `).concat(m,`px;
|
|
186
|
+
margin-left:0;
|
|
187
|
+
margin-top:0;
|
|
188
|
+
margin-right: `).concat(p,"px ").concat(i,`;
|
|
189
|
+
`),o==="padding"&&"padding-right: ".concat(p,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.`).concat(Xi,` {
|
|
193
|
+
right: `).concat(p,"px ").concat(i,`;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.`).concat(Qi,` {
|
|
197
|
+
margin-right: `).concat(p,"px ").concat(i,`;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.`).concat(Xi," .").concat(Xi,` {
|
|
201
|
+
right: 0 `).concat(i,`;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.`).concat(Qi," .").concat(Qi,` {
|
|
205
|
+
margin-right: 0 `).concat(i,`;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
body[`).concat(lr,`] {
|
|
209
|
+
`).concat(pT,": ").concat(p,`px;
|
|
210
|
+
}
|
|
211
|
+
`)},Og=function(){var l=parseInt(document.body.getAttribute(lr)||"0",10);return isFinite(l)?l:0},DT=function(){S.useEffect(function(){return document.body.setAttribute(lr,(Og()+1).toString()),function(){var l=Og()-1;l<=0?document.body.removeAttribute(lr):document.body.setAttribute(lr,l.toString())}},[])},LT=function(l){var r=l.noRelative,o=l.noImportant,i=l.gapMode,u=i===void 0?"margin":i;DT();var f=S.useMemo(function(){return MT(u)},[u]);return S.createElement(_T,{styles:zT(f,!r,u,o?"":"!important")})},gf=!1;if(typeof window<"u")try{var Hi=Object.defineProperty({},"passive",{get:function(){return gf=!0,!0}});window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{gf=!1}var Ja=gf?{passive:!1}:!1,UT=function(l){return l.tagName==="TEXTAREA"},h0=function(l,r){if(!(l instanceof Element))return!1;var o=window.getComputedStyle(l);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!UT(l)&&o[r]==="visible")},HT=function(l){return h0(l,"overflowY")},kT=function(l){return h0(l,"overflowX")},Mg=function(l,r){var o=r.ownerDocument,i=r;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var u=p0(l,i);if(u){var f=g0(l,i),m=f[1],p=f[2];if(m>p)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},BT=function(l){var r=l.scrollTop,o=l.scrollHeight,i=l.clientHeight;return[r,o,i]},YT=function(l){var r=l.scrollLeft,o=l.scrollWidth,i=l.clientWidth;return[r,o,i]},p0=function(l,r){return l==="v"?HT(r):kT(r)},g0=function(l,r){return l==="v"?BT(r):YT(r)},qT=function(l,r){return l==="h"&&r==="rtl"?-1:1},VT=function(l,r,o,i,u){var f=qT(l,window.getComputedStyle(r).direction),m=f*i,p=o.target,v=r.contains(p),g=!1,b=m>0,y=0,w=0;do{if(!p)break;var T=g0(l,p),j=T[0],E=T[1],_=T[2],M=E-_-f*j;(j||M)&&p0(l,p)&&(y+=M,w+=j);var U=p.parentNode;p=U&&U.nodeType===Node.DOCUMENT_FRAGMENT_NODE?U.host:U}while(!v&&p!==document.body||v&&(r.contains(p)||r===p));return(b&&Math.abs(y)<1||!b&&Math.abs(w)<1)&&(g=!0),g},ki=function(l){return"changedTouches"in l?[l.changedTouches[0].clientX,l.changedTouches[0].clientY]:[0,0]},_g=function(l){return[l.deltaX,l.deltaY]},zg=function(l){return l&&"current"in l?l.current:l},GT=function(l,r){return l[0]===r[0]&&l[1]===r[1]},XT=function(l){return`
|
|
212
|
+
.block-interactivity-`.concat(l,` {pointer-events: none;}
|
|
213
|
+
.allow-interactivity-`).concat(l,` {pointer-events: all;}
|
|
214
|
+
`)},QT=0,Pa=[];function ZT(l){var r=S.useRef([]),o=S.useRef([0,0]),i=S.useRef(),u=S.useState(QT++)[0],f=S.useState(m0)[0],m=S.useRef(l);S.useEffect(function(){m.current=l},[l]),S.useEffect(function(){if(l.inert){document.body.classList.add("block-interactivity-".concat(u));var E=mT([l.lockRef.current],(l.shards||[]).map(zg),!0).filter(Boolean);return E.forEach(function(_){return _.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),E.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(u))})}}},[l.inert,l.lockRef.current,l.shards]);var p=S.useCallback(function(E,_){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!m.current.allowPinchZoom;var M=ki(E),U=o.current,q="deltaX"in E?E.deltaX:U[0]-M[0],L="deltaY"in E?E.deltaY:U[1]-M[1],F,te=E.target,B=Math.abs(q)>Math.abs(L)?"h":"v";if("touches"in E&&B==="h"&&te.type==="range")return!1;var N=window.getSelection(),z=N&&N.anchorNode,$=z?z===te||z.contains(te):!1;if($)return!1;var ee=Mg(B,te);if(!ee)return!0;if(ee?F=B:(F=B==="v"?"h":"v",ee=Mg(B,te)),!ee)return!1;if(!i.current&&"changedTouches"in E&&(q||L)&&(i.current=F),!F)return!0;var ae=i.current||F;return VT(ae,_,E,ae==="h"?q:L)},[]),v=S.useCallback(function(E){var _=E;if(!(!Pa.length||Pa[Pa.length-1]!==f)){var M="deltaY"in _?_g(_):ki(_),U=r.current.filter(function(F){return F.name===_.type&&(F.target===_.target||_.target===F.shadowParent)&>(F.delta,M)})[0];if(U&&U.should){_.cancelable&&_.preventDefault();return}if(!U){var q=(m.current.shards||[]).map(zg).filter(Boolean).filter(function(F){return F.contains(_.target)}),L=q.length>0?p(_,q[0]):!m.current.noIsolation;L&&_.cancelable&&_.preventDefault()}}},[]),g=S.useCallback(function(E,_,M,U){var q={name:E,delta:_,target:M,should:U,shadowParent:$T(M)};r.current.push(q),setTimeout(function(){r.current=r.current.filter(function(L){return L!==q})},1)},[]),b=S.useCallback(function(E){o.current=ki(E),i.current=void 0},[]),y=S.useCallback(function(E){g(E.type,_g(E),E.target,p(E,l.lockRef.current))},[]),w=S.useCallback(function(E){g(E.type,ki(E),E.target,p(E,l.lockRef.current))},[]);S.useEffect(function(){return Pa.push(f),l.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:w}),document.addEventListener("wheel",v,Ja),document.addEventListener("touchmove",v,Ja),document.addEventListener("touchstart",b,Ja),function(){Pa=Pa.filter(function(E){return E!==f}),document.removeEventListener("wheel",v,Ja),document.removeEventListener("touchmove",v,Ja),document.removeEventListener("touchstart",b,Ja)}},[]);var T=l.removeScrollBar,j=l.inert;return S.createElement(S.Fragment,null,j?S.createElement(f,{styles:XT(u)}):null,T?S.createElement(LT,{noRelative:l.noRelative,gapMode:l.gapMode}):null)}function $T(l){for(var r=null;l!==null;)l instanceof ShadowRoot&&(r=l.host,l=l.host),l=l.parentNode;return r}const KT=wT(d0,ZT);var v0=S.forwardRef(function(l,r){return S.createElement(ys,Tn({},l,{ref:r,sideCar:KT}))});v0.classNames=ys.classNames;var WT=function(l){if(typeof document>"u")return null;var r=Array.isArray(l)?l[0]:l;return r.ownerDocument.body},Fa=new WeakMap,Bi=new WeakMap,Yi={},Iu=0,y0=function(l){return l&&(l.host||y0(l.parentNode))},JT=function(l,r){return r.map(function(o){if(l.contains(o))return o;var i=y0(o);return i&&l.contains(i)?i:(console.error("aria-hidden",o,"in not contained inside",l,". Doing nothing"),null)}).filter(function(o){return!!o})},PT=function(l,r,o,i){var u=JT(r,Array.isArray(l)?l:[l]);Yi[o]||(Yi[o]=new WeakMap);var f=Yi[o],m=[],p=new Set,v=new Set(u),g=function(y){!y||p.has(y)||(p.add(y),g(y.parentNode))};u.forEach(g);var b=function(y){!y||v.has(y)||Array.prototype.forEach.call(y.children,function(w){if(p.has(w))b(w);else try{var T=w.getAttribute(i),j=T!==null&&T!=="false",E=(Fa.get(w)||0)+1,_=(f.get(w)||0)+1;Fa.set(w,E),f.set(w,_),m.push(w),E===1&&j&&Bi.set(w,!0),_===1&&w.setAttribute(o,"true"),j||w.setAttribute(i,"true")}catch(M){console.error("aria-hidden: cannot operate on ",w,M)}})};return b(r),p.clear(),Iu++,function(){m.forEach(function(y){var w=Fa.get(y)-1,T=f.get(y)-1;Fa.set(y,w),f.set(y,T),w||(Bi.has(y)||y.removeAttribute(i),Bi.delete(y)),T||y.removeAttribute(o)}),Iu--,Iu||(Fa=new WeakMap,Fa=new WeakMap,Bi=new WeakMap,Yi={})}},FT=function(l,r,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(l)?l:[l]),u=WT(l);return u?(i.push.apply(i,Array.from(u.querySelectorAll("[aria-live], script"))),PT(i,u,o,"aria-hidden")):function(){return null}},bs="Dialog",[b0]=ho(bs),[IT,mn]=b0(bs),x0=l=>{const{__scopeDialog:r,children:o,open:i,defaultOpen:u,onOpenChange:f,modal:m=!0}=l,p=S.useRef(null),v=S.useRef(null),[g,b]=kf({prop:i,defaultProp:u??!1,onChange:f,caller:bs});return d.jsx(IT,{scope:r,triggerRef:p,contentRef:v,contentId:so(),titleId:so(),descriptionId:so(),open:g,onOpenChange:b,onOpenToggle:S.useCallback(()=>b(y=>!y),[b]),modal:m,children:o})};x0.displayName=bs;var S0="DialogTrigger",w0=S.forwardRef((l,r)=>{const{__scopeDialog:o,...i}=l,u=mn(S0,o),f=mt(r,u.triggerRef);return d.jsx(Je.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":Gf(u.open),...i,ref:f,onClick:We(l.onClick,u.onOpenToggle)})});w0.displayName=S0;var qf="DialogPortal",[eE,T0]=b0(qf,{forceMount:void 0}),E0=l=>{const{__scopeDialog:r,forceMount:o,children:i,container:u}=l,f=mn(qf,r);return d.jsx(eE,{scope:r,forceMount:o,children:S.Children.map(i,m=>d.jsx(dn,{present:o||f.open,children:d.jsx(Hf,{asChild:!0,container:u,children:m})}))})};E0.displayName=qf;var is="DialogOverlay",C0=S.forwardRef((l,r)=>{const o=T0(is,l.__scopeDialog),{forceMount:i=o.forceMount,...u}=l,f=mn(is,l.__scopeDialog);return f.modal?d.jsx(dn,{present:i||f.open,children:d.jsx(nE,{...u,ref:r})}):null});C0.displayName=is;var tE=uv("DialogOverlay.RemoveScroll"),nE=S.forwardRef((l,r)=>{const{__scopeDialog:o,...i}=l,u=mn(is,o);return d.jsx(v0,{as:tE,allowPinchZoom:!0,shards:[u.contentRef],children:d.jsx(Je.div,{"data-state":Gf(u.open),...i,ref:r,style:{pointerEvents:"auto",...i.style}})})}),oa="DialogContent",A0=S.forwardRef((l,r)=>{const o=T0(oa,l.__scopeDialog),{forceMount:i=o.forceMount,...u}=l,f=mn(oa,l.__scopeDialog);return d.jsx(dn,{present:i||f.open,children:f.modal?d.jsx(lE,{...u,ref:r}):d.jsx(aE,{...u,ref:r})})});A0.displayName=oa;var lE=S.forwardRef((l,r)=>{const o=mn(oa,l.__scopeDialog),i=S.useRef(null),u=mt(r,o.contentRef,i);return S.useEffect(()=>{const f=i.current;if(f)return FT(f)},[]),d.jsx(N0,{...l,ref:u,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:We(l.onCloseAutoFocus,f=>{var m;f.preventDefault(),(m=o.triggerRef.current)==null||m.focus()}),onPointerDownOutside:We(l.onPointerDownOutside,f=>{const m=f.detail.originalEvent,p=m.button===0&&m.ctrlKey===!0;(m.button===2||p)&&f.preventDefault()}),onFocusOutside:We(l.onFocusOutside,f=>f.preventDefault())})}),aE=S.forwardRef((l,r)=>{const o=mn(oa,l.__scopeDialog),i=S.useRef(!1),u=S.useRef(!1);return d.jsx(N0,{...l,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var m,p;(m=l.onCloseAutoFocus)==null||m.call(l,f),f.defaultPrevented||(i.current||(p=o.triggerRef.current)==null||p.focus(),f.preventDefault()),i.current=!1,u.current=!1},onInteractOutside:f=>{var v,g;(v=l.onInteractOutside)==null||v.call(l,f),f.defaultPrevented||(i.current=!0,f.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const m=f.target;((g=o.triggerRef.current)==null?void 0:g.contains(m))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&u.current&&f.preventDefault()}})}),N0=S.forwardRef((l,r)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:f,...m}=l,p=mn(oa,o),v=S.useRef(null),g=mt(r,v);return dT(),d.jsxs(d.Fragment,{children:[d.jsx(s0,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:u,onUnmountAutoFocus:f,children:d.jsx(jf,{role:"dialog",id:p.contentId,"aria-describedby":p.descriptionId,"aria-labelledby":p.titleId,"data-state":Gf(p.open),...m,ref:g,onDismiss:()=>p.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(iE,{titleId:p.titleId}),d.jsx(cE,{contentRef:v,descriptionId:p.descriptionId})]})]})}),Vf="DialogTitle",j0=S.forwardRef((l,r)=>{const{__scopeDialog:o,...i}=l,u=mn(Vf,o);return d.jsx(Je.h2,{id:u.titleId,...i,ref:r})});j0.displayName=Vf;var R0="DialogDescription",rE=S.forwardRef((l,r)=>{const{__scopeDialog:o,...i}=l,u=mn(R0,o);return d.jsx(Je.p,{id:u.descriptionId,...i,ref:r})});rE.displayName=R0;var O0="DialogClose",oE=S.forwardRef((l,r)=>{const{__scopeDialog:o,...i}=l,u=mn(O0,o);return d.jsx(Je.button,{type:"button",...i,ref:r,onClick:We(l.onClick,()=>u.onOpenChange(!1))})});oE.displayName=O0;function Gf(l){return l?"open":"closed"}var M0="DialogTitleWarning",[jC,_0]=jS(M0,{contentName:oa,titleName:Vf,docsSlug:"dialog"}),iE=({titleId:l})=>{const r=_0(M0),o=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
|
|
215
|
+
|
|
216
|
+
If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
217
|
+
|
|
218
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return S.useEffect(()=>{l&&(document.getElementById(l)||console.error(o))},[o,l]),null},sE="DialogDescriptionWarning",cE=({contentRef:l,descriptionId:r})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_0(sE).contentName}}.`;return S.useEffect(()=>{var f;const u=(f=l.current)==null?void 0:f.getAttribute("aria-describedby");r&&u&&(document.getElementById(r)||console.warn(i))},[i,l,r]),null},uE=x0,fE=w0,dE=E0,mE=C0,hE=A0,pE=j0;function gE(l){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r.appendChild(o),o.styleSheet?o.styleSheet.cssText=l:o.appendChild(document.createTextNode(l))}const z0=ie.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),vo=()=>{const l=ie.useContext(z0);if(!l)throw new Error("useDrawerContext must be used within a Drawer.Root");return l};gE(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
|
|
219
|
+
[data-state=closed]
|
|
220
|
+
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function vE(){const l=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(l)&&/Mobile/.test(l)||/FxiOS/.test(l))}function yE(){return Xf(/^Mac/)}function bE(){return Xf(/^iPhone/)}function Dg(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function xE(){return Xf(/^iPad/)||yE()&&navigator.maxTouchPoints>1}function D0(){return bE()||xE()}function Xf(l){return typeof window<"u"&&window.navigator!=null?l.test(window.navigator.platform):void 0}const SE=24,wE=typeof window<"u"?S.useLayoutEffect:S.useEffect;function Lg(...l){return(...r)=>{for(let o of l)typeof o=="function"&&o(...r)}}const ef=typeof document<"u"&&window.visualViewport;function Ug(l){let r=window.getComputedStyle(l);return/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY)}function L0(l){for(Ug(l)&&(l=l.parentElement);l&&!Ug(l);)l=l.parentElement;return l||document.scrollingElement||document.documentElement}const TE=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let qi=0,tf;function EE(l={}){let{isDisabled:r}=l;wE(()=>{if(!r)return qi++,qi===1&&D0()&&(tf=CE()),()=>{qi--,qi===0&&(tf==null||tf())}},[r])}function CE(){let l,r=0,o=y=>{l=L0(y.target),!(l===document.documentElement&&l===document.body)&&(r=y.changedTouches[0].pageY)},i=y=>{if(!l||l===document.documentElement||l===document.body){y.preventDefault();return}let w=y.changedTouches[0].pageY,T=l.scrollTop,j=l.scrollHeight-l.clientHeight;j!==0&&((T<=0&&w>r||T>=j&&w<r)&&y.preventDefault(),r=w)},u=y=>{let w=y.target;vf(w)&&w!==document.activeElement&&(y.preventDefault(),w.style.transform="translateY(-2000px)",w.focus(),requestAnimationFrame(()=>{w.style.transform=""}))},f=y=>{let w=y.target;vf(w)&&(w.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{w.style.transform="",ef&&(ef.height<window.innerHeight?requestAnimationFrame(()=>{Hg(w)}):ef.addEventListener("resize",()=>Hg(w),{once:!0}))}))},m=()=>{window.scrollTo(0,0)},p=window.pageXOffset,v=window.pageYOffset,g=Lg(AE(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let b=Lg(oo(document,"touchstart",o,{passive:!1,capture:!0}),oo(document,"touchmove",i,{passive:!1,capture:!0}),oo(document,"touchend",u,{passive:!1,capture:!0}),oo(document,"focus",f,!0),oo(window,"scroll",m));return()=>{g(),b(),window.scrollTo(p,v)}}function AE(l,r,o){let i=l.style[r];return l.style[r]=o,()=>{l.style[r]=i}}function oo(l,r,o,i){return l.addEventListener(r,o,i),()=>{l.removeEventListener(r,o,i)}}function Hg(l){let r=document.scrollingElement||document.documentElement;for(;l&&l!==r;){let o=L0(l);if(o!==document.documentElement&&o!==document.body&&o!==l){let i=o.getBoundingClientRect().top,u=l.getBoundingClientRect().top,f=l.getBoundingClientRect().bottom;const m=o.getBoundingClientRect().bottom+SE;f>m&&(o.scrollTop+=u-i)}l=o.parentElement}}function vf(l){return l instanceof HTMLInputElement&&!TE.has(l.type)||l instanceof HTMLTextAreaElement||l instanceof HTMLElement&&l.isContentEditable}function NE(l,r){typeof l=="function"?l(r):l!=null&&(l.current=r)}function jE(...l){return r=>l.forEach(o=>NE(o,r))}function U0(...l){return S.useCallback(jE(...l),l)}const H0=new WeakMap;function ut(l,r,o=!1){if(!l||!(l instanceof HTMLElement))return;let i={};Object.entries(r).forEach(([u,f])=>{if(u.startsWith("--")){l.style.setProperty(u,f);return}i[u]=l.style[u],l.style[u]=f}),!o&&H0.set(l,i)}function RE(l,r){if(!l||!(l instanceof HTMLElement))return;let o=H0.get(l);o&&(l.style[r]=o[r])}const rt=l=>{switch(l){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return l}};function Vi(l,r){if(!l)return null;const o=window.getComputedStyle(l),i=o.transform||o.webkitTransform||o.mozTransform;let u=i.match(/^matrix3d\((.+)\)$/);return u?parseFloat(u[1].split(", ")[rt(r)?13:12]):(u=i.match(/^matrix\((.+)\)$/),u?parseFloat(u[1].split(", ")[rt(r)?5:4]):null)}function OE(l){return 8*(Math.log(l+1)-2)}function nf(l,r){if(!l)return()=>{};const o=l.style.cssText;return Object.assign(l.style,r),()=>{l.style.cssText=o}}function ME(...l){return(...r)=>{for(const o of l)typeof o=="function"&&o(...r)}}const Ze={DURATION:.5,EASE:[.32,.72,0,1]},k0=.4,_E=.25,zE=100,B0=8,na=16,yf=26,lf="vaul-dragging";function Y0(l){const r=ie.useRef(l);return ie.useEffect(()=>{r.current=l}),ie.useMemo(()=>(...o)=>r.current==null?void 0:r.current.call(r,...o),[])}function DE({defaultProp:l,onChange:r}){const o=ie.useState(l),[i]=o,u=ie.useRef(i),f=Y0(r);return ie.useEffect(()=>{u.current!==i&&(f(i),u.current=i)},[i,u,f]),o}function q0({prop:l,defaultProp:r,onChange:o=()=>{}}){const[i,u]=DE({defaultProp:r,onChange:o}),f=l!==void 0,m=f?l:i,p=Y0(o),v=ie.useCallback(g=>{if(f){const y=typeof g=="function"?g(l):g;y!==l&&p(y)}else u(g)},[f,l,u,p]);return[m,v]}function LE({activeSnapPointProp:l,setActiveSnapPointProp:r,snapPoints:o,drawerRef:i,overlayRef:u,fadeFromIndex:f,onSnapPointChange:m,direction:p="bottom",container:v,snapToSequentialPoint:g}){const[b,y]=q0({prop:l,defaultProp:o==null?void 0:o[0],onChange:r}),[w,T]=ie.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);ie.useEffect(()=>{function B(){T({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",B),()=>window.removeEventListener("resize",B)},[]);const j=ie.useMemo(()=>b===(o==null?void 0:o[o.length-1])||null,[o,b]),E=ie.useMemo(()=>{var B;return(B=o==null?void 0:o.findIndex(N=>N===b))!=null?B:null},[o,b]),_=o&&o.length>0&&(f||f===0)&&!Number.isNaN(f)&&o[f]===b||!o,M=ie.useMemo(()=>{const B=v?{width:v.getBoundingClientRect().width,height:v.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var N;return(N=o==null?void 0:o.map(z=>{const $=typeof z=="string";let ee=0;if($&&(ee=parseInt(z,10)),rt(p)){const J=$?ee:w?z*B.height:0;return w?p==="bottom"?B.height-J:-B.height+J:J}const ae=$?ee:w?z*B.width:0;return w?p==="right"?B.width-ae:-B.width+ae:ae}))!=null?N:[]},[o,w,v]),U=ie.useMemo(()=>E!==null?M==null?void 0:M[E]:null,[M,E]),q=ie.useCallback(B=>{var N;const z=(N=M==null?void 0:M.findIndex($=>$===B))!=null?N:null;m(z),ut(i.current,{transition:`transform ${Ze.DURATION}s cubic-bezier(${Ze.EASE.join(",")})`,transform:rt(p)?`translate3d(0, ${B}px, 0)`:`translate3d(${B}px, 0, 0)`}),M&&z!==M.length-1&&f!==void 0&&z!==f&&z<f?ut(u.current,{transition:`opacity ${Ze.DURATION}s cubic-bezier(${Ze.EASE.join(",")})`,opacity:"0"}):ut(u.current,{transition:`opacity ${Ze.DURATION}s cubic-bezier(${Ze.EASE.join(",")})`,opacity:"1"}),y(o==null?void 0:o[Math.max(z,0)])},[i.current,o,M,f,u,y]);ie.useEffect(()=>{if(b||l){var B;const N=(B=o==null?void 0:o.findIndex(z=>z===l||z===b))!=null?B:-1;M&&N!==-1&&typeof M[N]=="number"&&q(M[N])}},[b,l,o,M,q]);function L({draggedDistance:B,closeDrawer:N,velocity:z,dismissible:$}){if(f===void 0)return;const ee=p==="bottom"||p==="right"?(U??0)-B:(U??0)+B,ae=E===f-1,J=E===0,I=B>0;if(ae&&ut(u.current,{transition:`opacity ${Ze.DURATION}s cubic-bezier(${Ze.EASE.join(",")})`}),!g&&z>2&&!I){$?N():q(M[0]);return}if(!g&&z>2&&I&&M&&o){q(M[o.length-1]);return}const le=M==null?void 0:M.reduce((X,W)=>typeof X!="number"||typeof W!="number"?X:Math.abs(W-ee)<Math.abs(X-ee)?W:X),O=rt(p)?window.innerHeight:window.innerWidth;if(z>k0&&Math.abs(B)<O*.4){const X=I?1:-1;if(X>0&&j&&o){q(M[o.length-1]);return}if(J&&X<0&&$&&N(),E===null)return;q(M[E+X]);return}q(le)}function F({draggedDistance:B}){if(U===null)return;const N=p==="bottom"||p==="right"?U-B:U+B;(p==="bottom"||p==="right")&&N<M[M.length-1]||(p==="top"||p==="left")&&N>M[M.length-1]||ut(i.current,{transform:rt(p)?`translate3d(0, ${N}px, 0)`:`translate3d(${N}px, 0, 0)`})}function te(B,N){if(!o||typeof E!="number"||!M||f===void 0)return null;const z=E===f-1;if(E>=f&&N)return 0;if(z&&!N)return 1;if(!_&&!z)return null;const ee=z?E+1:E-1,ae=z?M[ee]-M[ee-1]:M[ee+1]-M[ee],J=B/Math.abs(ae);return z?1-J:J}return{isLastSnapPoint:j,activeSnapPoint:b,shouldFade:_,getPercentageDragged:te,setActiveSnapPoint:y,activeSnapPointIndex:E,onRelease:L,onDrag:F,snapPointsOffset:M}}const UE=()=>()=>{};function HE(){const{direction:l,isOpen:r,shouldScaleBackground:o,setBackgroundColorOnScale:i,noBodyStyles:u}=vo(),f=ie.useRef(null),m=S.useMemo(()=>document.body.style.backgroundColor,[]);function p(){return(window.innerWidth-yf)/window.innerWidth}ie.useEffect(()=>{if(r&&o){f.current&&clearTimeout(f.current);const v=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!v)return;ME(i&&!u?nf(document.body,{background:"black"}):UE,nf(v,{transformOrigin:rt(l)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${Ze.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ze.EASE.join(",")})`}));const g=nf(v,{borderRadius:`${B0}px`,overflow:"hidden",...rt(l)?{transform:`scale(${p()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${p()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{g(),f.current=window.setTimeout(()=>{m?document.body.style.background=m:document.body.style.removeProperty("background")},Ze.DURATION*1e3)}}},[r,o,m])}let io=null;function kE({isOpen:l,modal:r,nested:o,hasBeenOpened:i,preventScrollRestoration:u,noBodyStyles:f}){const[m,p]=ie.useState(()=>typeof window<"u"?window.location.href:""),v=ie.useRef(0),g=ie.useCallback(()=>{if(Dg()&&io===null&&l&&!f){io={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:y,innerHeight:w}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-v.current}px`,left:`${-y}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const T=w-window.innerHeight;T&&v.current>=w&&(document.body.style.top=`${-(v.current+T)}px`)}),300)}},[l]),b=ie.useCallback(()=>{if(Dg()&&io!==null&&!f){const y=-parseInt(document.body.style.top,10),w=-parseInt(document.body.style.left,10);Object.assign(document.body.style,io),window.requestAnimationFrame(()=>{if(u&&m!==window.location.href){p(window.location.href);return}window.scrollTo(w,y)}),io=null}},[m]);return ie.useEffect(()=>{function y(){v.current=window.scrollY}return y(),window.addEventListener("scroll",y),()=>{window.removeEventListener("scroll",y)}},[]),ie.useEffect(()=>{if(r)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||b()}},[r,b]),ie.useEffect(()=>{o||!i||(l?(!window.matchMedia("(display-mode: standalone)").matches&&g(),r||window.setTimeout(()=>{b()},500)):b())},[l,i,m,r,o,g,b]),{restorePositionSetting:b}}function BE({open:l,onOpenChange:r,children:o,onDrag:i,onRelease:u,snapPoints:f,shouldScaleBackground:m=!1,setBackgroundColorOnScale:p=!0,closeThreshold:v=_E,scrollLockTimeout:g=zE,dismissible:b=!0,handleOnly:y=!1,fadeFromIndex:w=f&&f.length-1,activeSnapPoint:T,setActiveSnapPoint:j,fixed:E,modal:_=!0,onClose:M,nested:U,noBodyStyles:q=!1,direction:L="bottom",defaultOpen:F=!1,disablePreventScroll:te=!0,snapToSequentialPoint:B=!1,preventScrollRestoration:N=!1,repositionInputs:z=!0,onAnimationEnd:$,container:ee,autoFocus:ae=!1}){var J,I;const[le=!1,O]=q0({defaultProp:F,prop:l,onChange:ve=>{r==null||r(ve),!ve&&!U&&xo(),setTimeout(()=>{$==null||$(ve)},Ze.DURATION*1e3),ve&&!_&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),ve||(document.body.style.pointerEvents="auto")}}),[X,W]=ie.useState(!1),[re,P]=ie.useState(!1),[A,G]=ie.useState(!1),ne=ie.useRef(null),oe=ie.useRef(null),fe=ie.useRef(null),me=ie.useRef(null),be=ie.useRef(null),qe=ie.useRef(!1),ye=ie.useRef(null),xt=ie.useRef(0),ot=ie.useRef(!1),Nt=ie.useRef(!F),St=ie.useRef(0),he=ie.useRef(null),In=ie.useRef(((J=he.current)==null?void 0:J.getBoundingClientRect().height)||0),el=ie.useRef(((I=he.current)==null?void 0:I.getBoundingClientRect().width)||0),zl=ie.useRef(0),ua=ie.useCallback(ve=>{f&&ve===Dl.length-1&&(oe.current=new Date)},[]),{activeSnapPoint:hn,activeSnapPointIndex:pn,setActiveSnapPoint:fa,onRelease:Ss,snapPointsOffset:Dl,onDrag:wt,shouldFade:yo,getPercentageDragged:bo}=LE({snapPoints:f,activeSnapPointProp:T,setActiveSnapPointProp:j,drawerRef:he,fadeFromIndex:w,overlayRef:ne,onSnapPointChange:ua,direction:L,container:ee,snapToSequentialPoint:B});EE({isDisabled:!le||re||!_||A||!X||!z||!te});const{restorePositionSetting:xo}=kE({isOpen:le,modal:_,nested:U??!1,hasBeenOpened:X,preventScrollRestoration:N,noBodyStyles:q});function On(){return(window.innerWidth-yf)/window.innerWidth}function ws(ve){var Oe,ze;!b&&!f||he.current&&!he.current.contains(ve.target)||(In.current=((Oe=he.current)==null?void 0:Oe.getBoundingClientRect().height)||0,el.current=((ze=he.current)==null?void 0:ze.getBoundingClientRect().width)||0,P(!0),fe.current=new Date,D0()&&window.addEventListener("touchend",()=>qe.current=!1,{once:!0}),ve.target.setPointerCapture(ve.pointerId),xt.current=rt(L)?ve.pageY:ve.pageX)}function dr(ve,Oe){var ze;let Ee=ve;const Le=(ze=window.getSelection())==null?void 0:ze.toString(),it=he.current?Vi(he.current,L):null,Pe=new Date;if(Ee.tagName==="SELECT"||Ee.hasAttribute("data-vaul-no-drag")||Ee.closest("[data-vaul-no-drag]"))return!1;if(L==="right"||L==="left")return!0;if(oe.current&&Pe.getTime()-oe.current.getTime()<500)return!1;if(it!==null&&(L==="bottom"?it>0:it<0))return!0;if(Le&&Le.length>0)return!1;if(be.current&&Pe.getTime()-be.current.getTime()<g&&it===0||Oe)return be.current=Pe,!1;for(;Ee;){if(Ee.scrollHeight>Ee.clientHeight){if(Ee.scrollTop!==0)return be.current=new Date,!1;if(Ee.getAttribute("role")==="dialog")return!0}Ee=Ee.parentNode}return!0}function Ts(ve){if(he.current&&re){const Oe=L==="bottom"||L==="right"?1:-1,ze=(xt.current-(rt(L)?ve.pageY:ve.pageX))*Oe,Ee=ze>0,Le=f&&!b&&!Ee;if(Le&&pn===0)return;const it=Math.abs(ze),Pe=document.querySelector("[data-vaul-drawer-wrapper]"),vn=L==="bottom"||L==="top"?In.current:el.current;let jt=it/vn;const rn=bo(it,Ee);if(rn!==null&&(jt=rn),Le&&jt>=1||!qe.current&&!dr(ve.target,Ee))return;if(he.current.classList.add(lf),qe.current=!0,ut(he.current,{transition:"none"}),ut(ne.current,{transition:"none"}),f&&wt({draggedDistance:ze}),Ee&&!f){const $t=OE(ze),Ul=Math.min($t*-1,0)*Oe;ut(he.current,{transform:rt(L)?`translate3d(0, ${Ul}px, 0)`:`translate3d(${Ul}px, 0, 0)`});return}const Rt=1-jt;if((yo||w&&pn===w-1)&&(i==null||i(ve,jt),ut(ne.current,{opacity:`${Rt}`,transition:"none"},!0)),Pe&&ne.current&&m){const $t=Math.min(On()+jt*(1-On()),1),Ul=8-jt*8,mr=Math.max(0,14-jt*14);ut(Pe,{borderRadius:`${Ul}px`,transform:rt(L)?`scale(${$t}) translate3d(0, ${mr}px, 0)`:`scale(${$t}) translate3d(${mr}px, 0, 0)`,transition:"none"},!0)}if(!f){const $t=it*Oe;ut(he.current,{transform:rt(L)?`translate3d(0, ${$t}px, 0)`:`translate3d(${$t}px, 0, 0)`})}}}ie.useEffect(()=>{window.requestAnimationFrame(()=>{Nt.current=!0})},[]),ie.useEffect(()=>{var ve;function Oe(){if(!he.current||!z)return;const ze=document.activeElement;if(vf(ze)||ot.current){var Ee;const Le=((Ee=window.visualViewport)==null?void 0:Ee.height)||0,it=window.innerHeight;let Pe=it-Le;const vn=he.current.getBoundingClientRect().height||0,jt=vn>it*.8;zl.current||(zl.current=vn);const rn=he.current.getBoundingClientRect().top;if(Math.abs(St.current-Pe)>60&&(ot.current=!ot.current),f&&f.length>0&&Dl&&pn){const Rt=Dl[pn]||0;Pe+=Rt}if(St.current=Pe,vn>Le||ot.current){const Rt=he.current.getBoundingClientRect().height;let $t=Rt;Rt>Le&&($t=Le-(jt?rn:yf)),E?he.current.style.height=`${Rt-Math.max(Pe,0)}px`:he.current.style.height=`${Math.max($t,Le-rn)}px`}else vE()||(he.current.style.height=`${zl.current}px`);f&&f.length>0&&!ot.current?he.current.style.bottom="0px":he.current.style.bottom=`${Math.max(Pe,0)}px`}}return(ve=window.visualViewport)==null||ve.addEventListener("resize",Oe),()=>{var ze;return(ze=window.visualViewport)==null?void 0:ze.removeEventListener("resize",Oe)}},[pn,f,Dl]);function Ll(ve){Tt(),M==null||M(),ve||O(!1),setTimeout(()=>{f&&fa(f[0])},Ze.DURATION*1e3)}function tl(){if(!he.current)return;const ve=document.querySelector("[data-vaul-drawer-wrapper]"),Oe=Vi(he.current,L);ut(he.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${Ze.DURATION}s cubic-bezier(${Ze.EASE.join(",")})`}),ut(ne.current,{transition:`opacity ${Ze.DURATION}s cubic-bezier(${Ze.EASE.join(",")})`,opacity:"1"}),m&&Oe&&Oe>0&&le&&ut(ve,{borderRadius:`${B0}px`,overflow:"hidden",...rt(L)?{transform:`scale(${On()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${On()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${Ze.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Ze.EASE.join(",")})`},!0)}function Tt(){!re||!he.current||(he.current.classList.remove(lf),qe.current=!1,P(!1),me.current=new Date)}function gn(ve){if(!re||!he.current)return;he.current.classList.remove(lf),qe.current=!1,P(!1),me.current=new Date;const Oe=Vi(he.current,L);if(!ve||!dr(ve.target,!1)||!Oe||Number.isNaN(Oe)||fe.current===null)return;const ze=me.current.getTime()-fe.current.getTime(),Ee=xt.current-(rt(L)?ve.pageY:ve.pageX),Le=Math.abs(Ee)/ze;if(Le>.05&&(G(!0),setTimeout(()=>{G(!1)},200)),f){Ss({draggedDistance:Ee*(L==="bottom"||L==="right"?1:-1),closeDrawer:Ll,velocity:Le,dismissible:b}),u==null||u(ve,!0);return}if(L==="bottom"||L==="right"?Ee>0:Ee<0){tl(),u==null||u(ve,!0);return}if(Le>k0){Ll(),u==null||u(ve,!1);return}var it;const Pe=Math.min((it=he.current.getBoundingClientRect().height)!=null?it:0,window.innerHeight);var vn;const jt=Math.min((vn=he.current.getBoundingClientRect().width)!=null?vn:0,window.innerWidth),rn=L==="left"||L==="right";if(Math.abs(Oe)>=(rn?jt:Pe)*v){Ll(),u==null||u(ve,!1);return}u==null||u(ve,!0),tl()}ie.useEffect(()=>(le&&(ut(document.documentElement,{scrollBehavior:"auto"}),oe.current=new Date),()=>{RE(document.documentElement,"scrollBehavior")}),[le]);function Et(ve){const Oe=ve?(window.innerWidth-na)/window.innerWidth:1,ze=ve?-na:0;ye.current&&window.clearTimeout(ye.current),ut(he.current,{transition:`transform ${Ze.DURATION}s cubic-bezier(${Ze.EASE.join(",")})`,transform:rt(L)?`scale(${Oe}) translate3d(0, ${ze}px, 0)`:`scale(${Oe}) translate3d(${ze}px, 0, 0)`}),!ve&&he.current&&(ye.current=setTimeout(()=>{const Ee=Vi(he.current,L);ut(he.current,{transition:"none",transform:rt(L)?`translate3d(0, ${Ee}px, 0)`:`translate3d(${Ee}px, 0, 0)`})},500))}function Es(ve,Oe){if(Oe<0)return;const ze=(window.innerWidth-na)/window.innerWidth,Ee=ze+Oe*(1-ze),Le=-na+Oe*na;ut(he.current,{transform:rt(L)?`scale(${Ee}) translate3d(0, ${Le}px, 0)`:`scale(${Ee}) translate3d(${Le}px, 0, 0)`,transition:"none"})}function Cs(ve,Oe){const ze=rt(L)?window.innerHeight:window.innerWidth,Ee=Oe?(ze-na)/ze:1,Le=Oe?-na:0;Oe&&ut(he.current,{transition:`transform ${Ze.DURATION}s cubic-bezier(${Ze.EASE.join(",")})`,transform:rt(L)?`scale(${Ee}) translate3d(0, ${Le}px, 0)`:`scale(${Ee}) translate3d(${Le}px, 0, 0)`})}return ie.useEffect(()=>{_||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[_]),ie.createElement(uE,{defaultOpen:F,onOpenChange:ve=>{!b&&!ve||(ve?W(!0):Ll(!0),O(ve))},open:le},ie.createElement(z0.Provider,{value:{activeSnapPoint:hn,snapPoints:f,setActiveSnapPoint:fa,drawerRef:he,overlayRef:ne,onOpenChange:r,onPress:ws,onRelease:gn,onDrag:Ts,dismissible:b,shouldAnimate:Nt,handleOnly:y,isOpen:le,isDragging:re,shouldFade:yo,closeDrawer:Ll,onNestedDrag:Es,onNestedOpenChange:Et,onNestedRelease:Cs,keyboardIsOpen:ot,modal:_,snapPointsOffset:Dl,activeSnapPointIndex:pn,direction:L,shouldScaleBackground:m,setBackgroundColorOnScale:p,noBodyStyles:q,container:ee,autoFocus:ae}},o))}const V0=ie.forwardRef(function({...l},r){const{overlayRef:o,snapPoints:i,onRelease:u,shouldFade:f,isOpen:m,modal:p,shouldAnimate:v}=vo(),g=U0(r,o),b=i&&i.length>0;if(!p)return null;const y=ie.useCallback(w=>u(w),[u]);return ie.createElement(mE,{onMouseUp:y,ref:g,"data-vaul-overlay":"","data-vaul-snap-points":m&&b?"true":"false","data-vaul-snap-points-overlay":m&&f?"true":"false","data-vaul-animate":v!=null&&v.current?"true":"false",...l})});V0.displayName="Drawer.Overlay";const G0=ie.forwardRef(function({onPointerDownOutside:l,style:r,onOpenAutoFocus:o,...i},u){const{drawerRef:f,onPress:m,onRelease:p,onDrag:v,keyboardIsOpen:g,snapPointsOffset:b,activeSnapPointIndex:y,modal:w,isOpen:T,direction:j,snapPoints:E,container:_,handleOnly:M,shouldAnimate:U,autoFocus:q}=vo(),[L,F]=ie.useState(!1),te=U0(u,f),B=ie.useRef(null),N=ie.useRef(null),z=ie.useRef(!1),$=E&&E.length>0;HE();const ee=(J,I,le=0)=>{if(z.current)return!0;const O=Math.abs(J.y),X=Math.abs(J.x),W=X>O,re=["bottom","right"].includes(I)?1:-1;if(I==="left"||I==="right"){if(!(J.x*re<0)&&X>=0&&X<=le)return W}else if(!(J.y*re<0)&&O>=0&&O<=le)return!W;return z.current=!0,!0};ie.useEffect(()=>{$&&window.requestAnimationFrame(()=>{F(!0)})},[]);function ae(J){B.current=null,z.current=!1,p(J)}return ie.createElement(hE,{"data-vaul-drawer-direction":j,"data-vaul-drawer":"","data-vaul-delayed-snap-points":L?"true":"false","data-vaul-snap-points":T&&$?"true":"false","data-vaul-custom-container":_?"true":"false","data-vaul-animate":U!=null&&U.current?"true":"false",...i,ref:te,style:b&&b.length>0?{"--snap-point-height":`${b[y??0]}px`,...r}:r,onPointerDown:J=>{M||(i.onPointerDown==null||i.onPointerDown.call(i,J),B.current={x:J.pageX,y:J.pageY},m(J))},onOpenAutoFocus:J=>{o==null||o(J),q||J.preventDefault()},onPointerDownOutside:J=>{if(l==null||l(J),!w||J.defaultPrevented){J.preventDefault();return}g.current&&(g.current=!1)},onFocusOutside:J=>{if(!w){J.preventDefault();return}},onPointerMove:J=>{if(N.current=J,M||(i.onPointerMove==null||i.onPointerMove.call(i,J),!B.current))return;const I=J.pageY-B.current.y,le=J.pageX-B.current.x,O=J.pointerType==="touch"?10:2;ee({x:le,y:I},j,O)?v(J):(Math.abs(le)>O||Math.abs(I)>O)&&(B.current=null)},onPointerUp:J=>{i.onPointerUp==null||i.onPointerUp.call(i,J),B.current=null,z.current=!1,p(J)},onPointerOut:J=>{i.onPointerOut==null||i.onPointerOut.call(i,J),ae(N.current)},onContextMenu:J=>{i.onContextMenu==null||i.onContextMenu.call(i,J),N.current&&ae(N.current)}})});G0.displayName="Drawer.Content";const YE=250,qE=120,VE=ie.forwardRef(function({preventCycle:l=!1,children:r,...o},i){const{closeDrawer:u,isDragging:f,snapPoints:m,activeSnapPoint:p,setActiveSnapPoint:v,dismissible:g,handleOnly:b,isOpen:y,onPress:w,onDrag:T}=vo(),j=ie.useRef(null),E=ie.useRef(!1);function _(){if(E.current){q();return}window.setTimeout(()=>{M()},qE)}function M(){if(f||l||E.current){q();return}if(q(),!m||m.length===0){g||u();return}if(p===m[m.length-1]&&g){u();return}const F=m.findIndex(B=>B===p);if(F===-1)return;const te=m[F+1];v(te)}function U(){j.current=window.setTimeout(()=>{E.current=!0},YE)}function q(){j.current&&window.clearTimeout(j.current),E.current=!1}return ie.createElement("div",{onClick:_,onPointerCancel:q,onPointerDown:L=>{b&&w(L),U()},onPointerMove:L=>{b&&T(L)},ref:i,"data-vaul-drawer-visible":y?"true":"false","data-vaul-handle":"","aria-hidden":"true",...o},ie.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},r))});VE.displayName="Drawer.Handle";function GE(l){const r=vo(),{container:o=r.container,...i}=l;return ie.createElement(dE,{container:o,...i})}const fr={Root:BE,Content:G0,Overlay:V0,Trigger:fE,Portal:GE,Title:pE};function Zi({...l}){return d.jsx(fr.Root,{"data-slot":"drawer",...l})}function $i({...l}){return d.jsx(fr.Trigger,{"data-slot":"drawer-trigger",...l})}function XE({...l}){return d.jsx(fr.Portal,{"data-slot":"drawer-portal",...l})}function QE({className:l,...r}){return d.jsx(fr.Overlay,{"data-slot":"drawer-overlay",className:Nn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",l),...r})}function Ki({className:l,children:r,...o}){return d.jsxs(XE,{"data-slot":"drawer-portal",children:[d.jsx(QE,{}),d.jsxs(fr.Content,{"data-slot":"drawer-content",className:Nn("group/drawer-content bg-background fixed z-50 flex h-auto flex-col","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:border-l","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",l),...o,children:[d.jsx("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),r]})]})}function Wi({className:l,...r}){return d.jsx("div",{"data-slot":"drawer-header",className:Nn("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",l),...r})}function Ji({className:l,...r}){return d.jsx(fr.Title,{"data-slot":"drawer-title",className:Nn("text-foreground font-semibold",l),...r})}const ZE={maxCount:8,maxDepth:12,maxInlineBytes:5*1024*1024,maxNodes:1e3},X0=new Set(["audio/m4a","audio/mp3","audio/mp4","audio/mpeg","audio/ogg","audio/wav","audio/webm","image/avif","image/bmp","image/gif","image/jpeg","image/png","image/webp","image/x-icon","video/mp4","video/ogg","video/webm"]),$E={avif:"image/avif",bmp:"image/bmp",gif:"image/gif",ico:"image/x-icon",jpeg:"image/jpeg",jpg:"image/jpeg",m4a:"audio/mp4",mp3:"audio/mpeg",mp4:"video/mp4",oga:"audio/ogg",ogg:"audio/ogg",ogv:"video/ogg",png:"image/png",wav:"audio/wav",webm:"video/webm",webp:"image/webp"};function la(l){return l!=null&&typeof l=="object"&&!Array.isArray(l)}function af(l){const r=l.toLowerCase().split("/")[0];return r==="image"||r==="audio"||r==="video"?r:"file"}function KE(l,r=16){const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[];let u=0,f=0;for(const m of l){if(m==="=")break;const p=o.indexOf(m);if(p===-1)return[];if(u=u<<6|p,f+=6,f>=8&&(f-=8,i.push(u>>f&255),i.length>=r))break}return i}function At(l,r,o=0){return r.every((i,u)=>l[o+u]===i)}function WE({data:l,mediaType:r}){const o=r.toLowerCase();if(X0.has(o))return o;const i=KE(l);if(o==="image"){if(At(i,[137,80,78,71]))return"image/png";if(At(i,[255,216,255]))return"image/jpeg";if(At(i,[71,73,70,56]))return"image/gif";if(At(i,[82,73,70,70])&&At(i,[87,69,66,80],8))return"image/webp";if(At(i,[66,77]))return"image/bmp"}if(o==="audio"){if(At(i,[73,68,51])||i[0]===255&&i[1]!=null&&(i[1]&224)===224)return"audio/mpeg";if(At(i,[82,73,70,70])&&At(i,[87,65,86,69],8))return"audio/wav";if(At(i,[79,103,103,83]))return"audio/ogg";if(At(i,[26,69,223,163]))return"audio/webm";if(At(i,[102,116,121,112],4))return"audio/mp4"}if(o==="video"){if(At(i,[79,103,103,83]))return"video/ogg";if(At(i,[26,69,223,163]))return"video/webm";if(At(i,[102,116,121,112],4))return"video/mp4"}}function JE(l){var r;if(typeof l=="string")try{const o=(r=new URL(l).pathname.split(".").pop())==null?void 0:r.toLowerCase();return o==null?void 0:$E[o]}catch{return}}function kg(l){if(l.length===0||l.length%4!==0||!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(l))return;const r=l.endsWith("==")?2:l.endsWith("=")?1:0;return l.length/4*3-r}function ar({source:l,mediaType:r,maxInlineBytes:o}){var i;if(typeof l!="string")return{};if(l.startsWith("data:")){const u=/^data:([^;,]+);base64,(.*)$/i.exec(l),f=(i=u==null?void 0:u[1])==null?void 0:i.toLowerCase(),m=(u==null?void 0:u[2])==null?void 0:kg(u[2]),p=r.toLowerCase().split("/")[0];return f==null||m==null||f!==r.toLowerCase()&&f.split("/")[0]!==p||!X0.has(f)?{}:m>o?{unavailableReason:`Inline preview exceeds the ${o}-byte limit.`}:{source:l,sourceType:"inline"}}try{const u=new URL(l);return(u.protocol==="http:"||u.protocol==="https:")&&u.username===""&&u.password===""?{source:u.toString(),sourceType:"remote"}:{}}catch{const u=WE({data:l,mediaType:r}),f=kg(l);return u==null||f==null?{}:f>o?{unavailableReason:`Inline preview exceeds the ${o}-byte limit.`}:{source:`data:${u};base64,${l}`,sourceType:"inline"}}}function PE(l,r){const o=la(l.file)?l.file:void 0,i=typeof l.mediaType=="string"?l.mediaType:typeof(o==null?void 0:o.mediaType)=="string"?o.mediaType:void 0;if(i==null)return{};const u=l.data;if(la(u))return u.type==="data"?ar({source:u.data,mediaType:i,maxInlineBytes:r}):u.type==="url"?ar({source:u.url,mediaType:i,maxInlineBytes:r}):{};const f=(o==null?void 0:o.base64)??(o==null?void 0:o.base64Data)??(o==null?void 0:o.uint8Array)??(o==null?void 0:o.uint8ArrayData);return ar({source:u??f,mediaType:i,maxInlineBytes:r})}function FE(l,r){if(!(!la(l)||typeof l.type!="string")){if(l.type==="file"||l.type==="reasoning-file"){const o=la(l.file)?l.file:void 0,i=typeof l.mediaType=="string"?l.mediaType:typeof(o==null?void 0:o.mediaType)=="string"?o.mediaType:void 0;return i==null?void 0:{filename:typeof l.filename=="string"?l.filename:typeof(o==null?void 0:o.filename)=="string"?o.filename:void 0,kind:af(i),mediaType:i,...PE(l,r)}}if(l.type==="image"){const o=typeof l.mediaType=="string"?l.mediaType:"image/png",i=l.image,u=la(i)&&i.type==="url"?i.url:la(i)&&i.type==="data"?i.data:i;return{kind:"image",mediaType:o,...ar({source:u,mediaType:o,maxInlineBytes:r})}}if(l.type==="media"||l.type==="file-data"||l.type==="image-data"){const o=typeof l.mediaType=="string"?l.mediaType:l.type==="image-data"?"image/png":void 0;return o==null?void 0:{filename:typeof l.filename=="string"?l.filename:void 0,kind:af(o),mediaType:o,...ar({source:l.data,mediaType:o,maxInlineBytes:r})}}if(l.type==="image-url"||l.type==="file-url"){const o=typeof l.mediaType=="string"?l.mediaType:l.type==="image-url"?"image":JE(l.url)??"application/octet-stream";return{filename:typeof l.filename=="string"?l.filename:void 0,kind:af(o),mediaType:o,...ar({source:l.url,mediaType:o,maxInlineBytes:r})}}}}function Q0(l,r={}){const o={...ZE,...r},i=[],u=new WeakSet,f=[{value:l,depth:0}];let m=0;for(;f.length>0&&i.length<o.maxCount&&m<o.maxNodes;){const{value:p,depth:v}=f.pop();m++;const g=FE(p,o.maxInlineBytes);if(g!=null){i.push(g);continue}if(v>=o.maxDepth||p==null||typeof p!="object"||u.has(p))continue;u.add(p);const b=Array.isArray(p)?p:la(p)?Object.values(p):[];for(let y=b.length-1;y>=0;y--)f.push({value:b[y],depth:v+1})}return i}const rf={crossOrigin:"anonymous",referrerPolicy:"no-referrer"};function Z0({data:l}){const r=Q0(l);return r.length===0?null:d.jsx("div",{className:"grid gap-2 sm:grid-cols-2",children:r.map((o,i)=>d.jsx(IE,{preview:o},i))})}function IE({preview:l}){const[r,o]=S.useState(!1),i=l.source!=null&&(l.kind==="image"||l.kind==="audio"||l.kind==="video"),u=i&&(l.sourceType==="inline"||r),f=l.filename??`${l.kind} preview`;return d.jsxs("div",{className:"overflow-hidden rounded-md border border-border bg-background",children:[d.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-2.5 py-2",children:[l.kind==="image"?d.jsx(e1,{className:"size-3.5 text-info","aria-hidden":"true"}):d.jsx(Fx,{className:"size-3.5 text-info","aria-hidden":"true"}),d.jsx("span",{className:"min-w-0 flex-1 truncate text-xs font-medium",children:f}),d.jsx("span",{className:"text-[10px] font-mono text-muted-foreground",children:l.mediaType})]}),u&&l.kind==="image"&&d.jsx("img",{alt:f,className:"max-h-72 w-full bg-muted/30 object-contain",decoding:"async",loading:"lazy",src:l.source,...rf}),u&&l.kind==="audio"&&d.jsx("audio",{className:"w-full p-2",controls:!0,preload:"none",src:l.source,...rf}),u&&l.kind==="video"&&d.jsx("video",{className:"max-h-72 w-full bg-muted/30",controls:!0,preload:"metadata",src:l.source,...rf}),d.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-2",children:[i&&l.sourceType==="remote"&&!r&&d.jsx("button",{className:"text-xs font-medium text-info hover:underline",onClick:()=>o(!0),type:"button",children:"Load preview"}),l.source!=null&&d.jsxs("a",{className:"ml-auto inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground",download:l.sourceType==="inline"?l.filename:void 0,href:l.source,rel:"noreferrer",target:"_blank",children:[l.sourceType==="inline"?d.jsx(Kx,{className:"size-3","aria-hidden":"true"}):d.jsx(Jx,{className:"size-3","aria-hidden":"true"}),l.sourceType==="inline"?"Download":"Open"]}),l.source==null&&d.jsx("span",{className:"text-xs text-muted-foreground",children:l.unavailableReason??"Preview unavailable; inspect the JSON metadata below."})]})]})}function ia({data:l,compact:r=!1,size:o="sm",maxStringLength:i}){const[u,f]=S.useState(!1),m=i==null?void 0:(y,w)=>typeof w=="string"&&w.length>i?`${w.slice(0,i)}… [${w.length-i} characters omitted from the viewer]`:w,p=JSON.stringify(l,m,2),v=r&&p.length>200?JSON.stringify(l,m):p,g={sm:"text-xs",base:"text-sm",lg:"text-base"},b=async()=>{await navigator.clipboard.writeText(p),f(!0),setTimeout(()=>f(!1),2e3)};return d.jsxs("div",{className:"relative group",children:[d.jsx("button",{onClick:b,className:"absolute top-1.5 right-1.5 p-1.5 rounded-md border border-border bg-background opacity-0 group-hover:opacity-100 transition-opacity z-10",title:"Copy to clipboard",children:u?d.jsx(Vg,{className:"size-3 text-success"}):d.jsx(Gg,{className:"size-3 text-muted-foreground"})}),d.jsx("pre",{className:`font-mono ${g[o]} text-muted-foreground whitespace-pre-wrap wrap-break-words bg-background rounded p-2 ${r?"overflow-hidden max-h-20":""}`,children:v})]})}function sa({data:l}){return d.jsxs("div",{className:"space-y-3",children:[d.jsx(Z0,{data:l}),d.jsx(ia,{data:l,maxStringLength:16*1024})]})}function eC({rawRequest:l,rawResponse:r,rawChunks:o,isStream:i}){const[u,f]=S.useState(!1),[m,p]=S.useState("parsed");if(!l&&!r)return null;const v=i&&o;return d.jsxs("div",{className:"border-t border-border",children:[d.jsxs("button",{className:"w-full flex items-center gap-2 px-4 py-2.5 text-[11px] text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors",onClick:()=>f(!u),children:[d.jsx(Ml,{className:`size-3 transition-transform ${u?"rotate-90":""}`}),d.jsx("span",{className:"font-medium tracking-wider uppercase",children:"Request / Response"})]}),u&&d.jsxs("div",{className:"grid grid-cols-2 gap-4 px-4 pb-4",children:[l&&d.jsxs("div",{className:"flex flex-col",children:[d.jsx("div",{className:"flex items-end mb-2 h-7",children:d.jsx("span",{className:"text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:"Request"})}),d.jsx("div",{className:"max-h-[400px] overflow-auto rounded-md border border-border",children:d.jsx(ia,{data:Ol(l)})})]}),(r||o)&&d.jsxs("div",{className:"flex flex-col",children:[d.jsxs("div",{className:"flex justify-between items-end mb-2 h-7",children:[d.jsx("span",{className:"text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:i?"Stream":"Response"}),v&&d.jsxs("div",{className:"inline-flex rounded-md border border-border bg-muted/30 p-0.5",children:[d.jsx("button",{onClick:()=>p("parsed"),className:`px-2 py-0.5 text-[10px] font-medium rounded transition-colors ${m==="parsed"?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:"AI SDK"}),d.jsx("button",{onClick:()=>p("raw"),className:`px-2 py-0.5 text-[10px] font-medium rounded transition-colors ${m==="raw"?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:"Provider"})]})]}),d.jsx("div",{className:"max-h-[400px] overflow-auto rounded-md border border-border",children:d.jsx(ia,{data:Ol(v&&m==="raw"?o:r)})})]})]})]})}function tC({usage:l}){const r=rs(l==null?void 0:l.inputTokens),o=os(l==null?void 0:l.outputTokens);return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[d.jsxs("div",{className:"p-4 rounded-lg border border-border bg-card",children:[d.jsx("div",{className:"mb-2 text-xs font-medium tracking-wider uppercase text-muted-foreground",children:"Input Tokens"}),d.jsx("div",{className:"text-2xl font-semibold",children:r.total}),(r.cacheRead!==void 0||r.cacheWrite!==void 0)&&d.jsxs("div",{className:"mt-3 space-y-1 text-sm text-muted-foreground",children:[r.cacheRead!==void 0&&d.jsxs("div",{className:"flex justify-between",children:[d.jsx("span",{children:"Cache read"}),d.jsx("span",{className:"font-mono",children:r.cacheRead})]}),r.cacheWrite!==void 0&&d.jsxs("div",{className:"flex justify-between",children:[d.jsx("span",{children:"Cache write"}),d.jsx("span",{className:"font-mono",children:r.cacheWrite})]}),r.noCache!==void 0&&d.jsxs("div",{className:"flex justify-between",children:[d.jsx("span",{children:"No cache"}),d.jsx("span",{className:"font-mono",children:r.noCache})]})]})]}),d.jsxs("div",{className:"p-4 rounded-lg border border-border bg-card",children:[d.jsx("div",{className:"mb-2 text-xs font-medium tracking-wider uppercase text-muted-foreground",children:"Output Tokens"}),d.jsx("div",{className:"text-2xl font-semibold",children:o.total}),(o.text!==void 0||o.reasoning!==void 0)&&d.jsxs("div",{className:"mt-3 space-y-1 text-sm text-muted-foreground",children:[o.text!==void 0&&d.jsxs("div",{className:"flex justify-between",children:[d.jsx("span",{children:"Text"}),d.jsx("span",{className:"font-mono",children:o.text})]}),o.reasoning!==void 0&&d.jsxs("div",{className:"flex justify-between",children:[d.jsx("span",{children:"Reasoning"}),d.jsx("span",{className:"font-mono",children:o.reasoning})]})]})]})]}),(l==null?void 0:l.raw)!=null&&d.jsxs("div",{children:[d.jsx("div",{className:"mb-2 text-xs font-medium tracking-wider uppercase text-muted-foreground",children:"Raw Provider Usage"}),d.jsx(ia,{data:l.raw,size:"sm"})]}),d.jsxs("div",{children:[d.jsx("div",{className:"mb-2 text-xs font-medium tracking-wider uppercase text-muted-foreground",children:"Full Usage Object"}),d.jsx(ia,{data:l,size:"sm"})]})]})}function $0({input:l,output:r,raw:o}){const i=l.noCache!==void 0||l.cacheRead!==void 0||l.cacheWrite!==void 0,u=r.text!==void 0||r.reasoning!==void 0;return i||u?d.jsxs("div",{className:"space-y-2 text-xs",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"mb-1 font-medium",children:["Input: ",l.total]}),l.cacheRead!==void 0&&d.jsxs("div",{className:"ml-2 text-muted-foreground",children:["Cache read: ",l.cacheRead]}),l.cacheWrite!==void 0&&d.jsxs("div",{className:"ml-2 text-muted-foreground",children:["Cache write: ",l.cacheWrite]})]}),d.jsxs("div",{children:[d.jsxs("div",{className:"mb-1 font-medium",children:["Output: ",r.total]}),r.text!==void 0&&d.jsxs("div",{className:"ml-2 text-muted-foreground",children:["Text: ",r.text]}),r.reasoning!==void 0&&d.jsxs("div",{className:"ml-2 text-muted-foreground",children:["Reasoning: ",r.reasoning]})]}),o!==void 0&&d.jsx("div",{className:"pt-1 mt-1 border-t border-border",children:d.jsxs("div",{className:"text-muted-foreground/70 font-mono text-[10px] max-w-[200px] truncate",children:["Raw: ",JSON.stringify(o)]})})]}):d.jsxs("div",{className:"text-xs",children:[d.jsxs("div",{children:["Input: ",l.total]}),d.jsxs("div",{children:["Output: ",r.total]})]})}function K0({content:l}){const[r,o]=S.useState(!1),i=l.length>200?l.slice(0,200)+"…":l;return d.jsxs("div",{className:"overflow-hidden rounded-md border border-warning/30",children:[d.jsxs("button",{className:"flex gap-2 items-center px-3 py-2 w-full transition-colors bg-warning/10 hover:bg-warning/20",onClick:()=>o(!r),children:[d.jsx(Ml,{className:`size-3 text-warning transition-transform shrink-0 ${r?"rotate-90":""}`}),d.jsx(co,{className:"text-warning size-3 shrink-0"}),d.jsx("span",{className:"text-xs font-medium text-warning",children:"Thinking"}),!r&&d.jsx("span",{className:"text-[11px] text-warning truncate ml-1",children:i})]}),r&&d.jsx("div",{className:"p-3 border-t bg-card/50 border-warning/30",children:d.jsx("div",{className:"text-xs leading-relaxed whitespace-pre-wrap text-foreground/80",children:l})})]})}function W0({content:l,defaultExpanded:r=!1,isSystem:o=!1}){const[i,u]=S.useState(r),[f,m]=S.useState(!1),p=l.length>200?l.slice(0,200)+"…":l,v=o?"border-info/30":"border-border",g=o?"bg-info/10":"bg-muted/30",b=o?"hover:bg-info/20":"hover:bg-muted/50",y=o?"text-info":"text-muted-foreground",w=o?"text-info":"text-foreground",T=async j=>{j.stopPropagation(),await navigator.clipboard.writeText(l),m(!0),setTimeout(()=>m(!1),2e3)};return d.jsxs("div",{className:`overflow-hidden rounded-md border ${v}`,children:[d.jsxs("button",{className:`flex gap-2 items-center px-3 py-2 w-full transition-colors ${g} ${b}`,onClick:()=>u(!i),children:[d.jsx(Ml,{className:`size-3 ${y} transition-transform shrink-0 ${i?"rotate-90":""}`}),d.jsx(rr,{className:`size-3 ${y} shrink-0`}),d.jsx("span",{className:`text-xs font-medium ${w}`,children:"Text"}),!i&&d.jsx("span",{className:`text-[11px] ${o?"text-info":"text-muted-foreground"} truncate ml-1`,children:p})]}),i&&d.jsxs("div",{className:`relative p-3 border-t bg-card/50 ${v} group`,children:[d.jsx("button",{onClick:T,className:"absolute top-1.5 right-1.5 p-1.5 rounded-md border border-border bg-background opacity-0 group-hover:opacity-100 transition-opacity z-10",title:"Copy to clipboard",children:f?d.jsx(Vg,{className:"size-3 text-success"}):d.jsx(Gg,{className:"size-3 text-muted-foreground"})}),d.jsx("div",{className:"overflow-y-auto max-h-60 text-xs leading-relaxed whitespace-pre-wrap text-foreground",children:l})]})]})}function nC({tool:l}){const[r,o]=S.useState(!1),i=l.parameters||l.description;return d.jsxs("div",{className:"overflow-hidden rounded-md border border-border bg-background",children:[d.jsxs("button",{className:"w-full flex items-center justify-between p-2.5 hover:bg-accent/50 transition-colors",onClick:()=>o(!r),children:[d.jsx("span",{className:"font-mono text-sm text-tool",children:l.name}),i&&d.jsx(Ml,{className:`size-3 text-muted-foreground transition-transform ${r?"rotate-90":""}`})]}),!r&&l.description&&d.jsx("div",{className:"px-2.5 pb-2",children:d.jsx("p",{className:"text-[11px] text-muted-foreground truncate",children:l.description})}),r&&i&&d.jsxs("div",{className:"px-2.5 pb-2.5 border-t border-border",children:[l.description&&d.jsx("p",{className:`pt-2 text-xs text-muted-foreground ${l.parameters?"mb-2":""}`,children:l.description}),l.parameters&&d.jsx(ia,{data:l.parameters,compact:!0})]})]})}function lC({toolName:l,toolCallId:r,data:o}){const[i,u]=S.useState(!1),f=typeof o=="string"?Ol(o):o;return d.jsxs("div",{className:"overflow-hidden rounded-md border border-tool/30",children:[d.jsxs("button",{className:"flex gap-2 items-center px-3 py-2 w-full transition-colors bg-tool/10 hover:bg-tool/20",onClick:()=>u(!i),children:[d.jsx(Ml,{className:`size-3 text-tool transition-transform shrink-0 ${i?"rotate-90":""}`}),d.jsx(aa,{className:"size-3 text-tool shrink-0"}),d.jsx("span",{className:"font-mono text-xs font-medium text-tool",children:l}),!i&&f!=null&&typeof f=="object"&&!Array.isArray(f)&&d.jsx("span",{className:"text-[11px] font-mono text-tool truncate",children:i0(f)}),r&&d.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/60 ml-auto shrink-0",children:r})]}),i&&d.jsx("div",{className:"p-3 border-t bg-card/50 border-tool/30",children:d.jsx(sa,{data:f})})]})}function aC({toolName:l,toolCallId:r,data:o}){const[i,u]=S.useState(!1);return d.jsxs("div",{className:"overflow-hidden rounded-md border border-success/30",children:[d.jsxs("button",{className:"flex gap-2 items-center px-3 py-2 w-full transition-colors bg-success/10 hover:bg-success/20",onClick:()=>u(!i),children:[d.jsx(Ml,{className:`size-3 text-success transition-transform shrink-0 ${i?"rotate-90":""}`}),d.jsx("span",{className:"text-xs font-medium text-success",children:"Result"}),l&&d.jsx("span",{className:"text-[11px] font-mono text-muted-foreground",children:l}),r&&d.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/60 ml-auto shrink-0",children:r})]}),i&&d.jsx("div",{className:"p-3 border-t bg-card/50 border-success/30",children:d.jsx(sa,{data:o})})]})}function rC({modelId:l,provider:r,input:o,providerOptions:i,usage:u}){var p,v;const f=((p=o==null?void 0:o.tools)==null?void 0:p.length)??0,m=[];if((o==null?void 0:o.temperature)!=null&&m.push({label:"temp",value:String(o.temperature)}),(o==null?void 0:o.maxOutputTokens)!=null&&m.push({label:"max tokens",value:String(o.maxOutputTokens)}),(o==null?void 0:o.topP)!=null&&m.push({label:"topP",value:String(o.topP)}),(o==null?void 0:o.topK)!=null&&m.push({label:"topK",value:String(o.topK)}),(o==null?void 0:o.toolChoice)!=null){const g=typeof o.toolChoice=="string"?o.toolChoice:o.toolChoice.type;m.push({label:"tool choice",value:g})}return d.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 bg-muted/20 border-b border-border text-[11px] text-muted-foreground",children:[r&&d.jsx("span",{className:"px-1.5 py-0.5 rounded bg-sidebar-primary/10 text-sidebar-primary text-[10px] font-medium",children:r}),d.jsx("span",{className:"font-mono",children:l}),m.length>0&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-muted-foreground/30",children:"·"}),m.map((g,b)=>d.jsxs("span",{children:[g.label,": ",d.jsx("span",{className:"text-foreground",children:g.value}),b<m.length-1&&d.jsx("span",{className:"mx-1 text-muted-foreground/30",children:"·"})]},b))]}),f>0&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-muted-foreground/30",children:"·"}),d.jsxs(Zi,{direction:"right",children:[d.jsx($i,{asChild:!0,children:d.jsxs("button",{className:"inline-flex gap-1 items-center transition-colors cursor-pointer hover:text-foreground",children:[d.jsx(aa,{className:"size-3"}),f," available ",f===1?"tool":"tools"]})}),d.jsxs(Ki,{className:"h-full w-[800px] sm:max-w-[800px] overflow-hidden",children:[d.jsx(Wi,{className:"border-b border-border shrink-0",children:d.jsxs(Ji,{children:["Available Tools (",f,")"]})}),d.jsx("div",{className:"overflow-y-auto flex-1 p-4",children:d.jsx("div",{className:"space-y-3",children:(v=o==null?void 0:o.tools)==null?void 0:v.map((g,b)=>d.jsx(nC,{tool:g},b))})})]})]})]}),i&&Object.keys(i).length>0&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-muted-foreground/30",children:"·"}),d.jsxs(Zi,{direction:"right",children:[d.jsx($i,{asChild:!0,children:d.jsxs("button",{className:"inline-flex gap-1 items-center transition-colors cursor-pointer hover:text-foreground",children:[d.jsx(s1,{className:"size-3"}),"Provider options"]})}),d.jsxs(Ki,{className:"h-full w-[800px] sm:max-w-[800px] overflow-hidden",children:[d.jsx(Wi,{className:"border-b border-border shrink-0",children:d.jsx(Ji,{children:"Provider Options"})}),d.jsx("div",{className:"overflow-y-auto flex-1 p-4",children:d.jsx(ia,{data:i,size:"lg"})})]})]})]}),u&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"text-muted-foreground/30",children:"·"}),d.jsxs(Zi,{direction:"right",children:[d.jsx($i,{asChild:!0,children:d.jsxs("button",{className:"inline-flex gap-1 items-center transition-colors cursor-pointer hover:text-foreground",children:[d.jsx(kx,{className:"size-3"}),"Usage"]})}),d.jsxs(Ki,{className:"h-full w-[800px] sm:max-w-[800px] overflow-hidden",children:[d.jsx(Wi,{className:"border-b border-border shrink-0",children:d.jsx(Ji,{children:"Token Usage"})}),d.jsx("div",{className:"overflow-y-auto flex-1 p-4",children:d.jsx(tC,{usage:u})})]})]})]})]})}function J0({className:l,...r}){return d.jsx("div",{"data-slot":"card",className:Nn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",l),...r})}var xs="Collapsible",[oC]=ho(xs),[iC,Qf]=oC(xs),P0=S.forwardRef((l,r)=>{const{__scopeCollapsible:o,open:i,defaultOpen:u,disabled:f,onOpenChange:m,...p}=l,[v,g]=kf({prop:i,defaultProp:u??!1,onChange:m,caller:xs});return d.jsx(iC,{scope:o,disabled:f,contentId:so(),open:v,onOpenToggle:S.useCallback(()=>g(b=>!b),[g]),children:d.jsx(Je.div,{"data-state":$f(v),"data-disabled":f?"":void 0,...p,ref:r})})});P0.displayName=xs;var F0="CollapsibleTrigger",I0=S.forwardRef((l,r)=>{const{__scopeCollapsible:o,...i}=l,u=Qf(F0,o);return d.jsx(Je.button,{type:"button","aria-controls":u.contentId,"aria-expanded":u.open||!1,"data-state":$f(u.open),"data-disabled":u.disabled?"":void 0,disabled:u.disabled,...i,ref:r,onClick:We(l.onClick,u.onOpenToggle)})});I0.displayName=F0;var Zf="CollapsibleContent",ey=S.forwardRef((l,r)=>{const{forceMount:o,...i}=l,u=Qf(Zf,l.__scopeCollapsible);return d.jsx(dn,{present:o||u.open,children:({present:f})=>d.jsx(sC,{...i,ref:r,present:f})})});ey.displayName=Zf;var sC=S.forwardRef((l,r)=>{const{__scopeCollapsible:o,present:i,children:u,...f}=l,m=Qf(Zf,o),[p,v]=S.useState(i),g=S.useRef(null),b=mt(r,g),y=S.useRef(0),w=y.current,T=S.useRef(0),j=T.current,E=m.open||p,_=S.useRef(E),M=S.useRef(void 0);return S.useEffect(()=>{const U=requestAnimationFrame(()=>_.current=!1);return()=>cancelAnimationFrame(U)},[]),An(()=>{const U=g.current;if(U){M.current=M.current||{transitionDuration:U.style.transitionDuration,animationName:U.style.animationName},U.style.transitionDuration="0s",U.style.animationName="none";const q=U.getBoundingClientRect();y.current=q.height,T.current=q.width,_.current||(U.style.transitionDuration=M.current.transitionDuration,U.style.animationName=M.current.animationName),v(i)}},[m.open,i]),d.jsx(Je.div,{"data-state":$f(m.open),"data-disabled":m.disabled?"":void 0,id:m.contentId,hidden:!E,...f,ref:b,style:{"--radix-collapsible-content-height":w?`${w}px`:void 0,"--radix-collapsible-content-width":j?`${j}px`:void 0,...l.style},children:E&&u})});function $f(l){return l?"open":"closed"}var cC=P0;function uC({...l}){return d.jsx(cC,{"data-slot":"collapsible",...l})}function fC({...l}){return d.jsx(I0,{"data-slot":"collapsible-trigger",...l})}function dC({...l}){return d.jsx(ey,{"data-slot":"collapsible-content",...l})}function mC({input:l}){const r=(l==null?void 0:l.prompt)??[],o=r.length,i=r.slice(-2),u=Math.max(0,o-2);return d.jsxs(Zi,{direction:"right",children:[d.jsx($i,{asChild:!0,children:d.jsxs("button",{className:"w-full h-full text-left p-4 hover:bg-accent/30 transition-colors cursor-pointer flex flex-col justify-start",children:[d.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-wider text-muted-foreground mb-3",children:"Input"}),d.jsxs("div",{className:"space-y-3",children:[u>0&&d.jsxs("div",{className:"text-[11px] text-muted-foreground/60 text-center py-1.5 rounded-md bg-muted/30",children:["+ ",u," previous"," ",u===1?"message":"messages"]}),i.map((f,m)=>d.jsx(hC,{message:f,index:u+m+1},m)),o===0&&d.jsx("p",{className:"text-sm text-muted-foreground",children:"No messages"})]})]})}),d.jsxs(Ki,{className:"h-full w-[800px] sm:max-w-[800px] overflow-hidden",children:[d.jsx(Wi,{className:"border-b border-border shrink-0",children:d.jsxs(Ji,{children:["All Messages (",o,")"]})}),d.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:d.jsx("div",{className:"space-y-3",children:r.map((f,m)=>d.jsx(pC,{message:f,index:m+1},m))})})]})]})}function ty(l){return typeof l=="string"?l:Array.isArray(l)?l.filter(r=>r.type==="text").map(r=>r.text).join(""):""}function ny(l){return Array.isArray(l)?l.filter(r=>r.type==="tool-call"):[]}function ly(l){return Array.isArray(l)?l.filter(r=>r.type==="tool-result"):[]}function ay(l){return Array.isArray(l)?l.filter(r=>r.type==="thinking"||r.type==="reasoning").map(r=>r.thinking||r.text||r.reasoning||"").join(""):""}function ry(l){return Array.isArray(l)?l.filter(r=>r.type!=="tool-call"&&r.type!=="tool-result"&&Q0(r).length>0):[]}function hC({message:l,index:r}){const{role:o,content:i}=l,u={user:"User",assistant:"Assistant",system:"System",tool:"Tool"},f=ty(i),m=ny(i),p=ly(i),v=ay(i),g=ry(i).length,b=(f?1:0)+(v?1:0)+m.length+p.length+g;return d.jsxs("div",{className:"rounded-md border border-border/50 bg-background/50 p-2.5 space-y-2",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[r&&d.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/50",children:r}),d.jsx("span",{className:"text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:u[o]||o}),b>1&&d.jsxs("span",{className:"text-[10px] text-muted-foreground/60",children:[b," parts"]})]}),v&&d.jsx("div",{className:"text-xs text-warning",children:"[thinking]"}),f&&d.jsx("div",{className:"text-xs text-foreground/90 line-clamp-3",children:f}),g>0&&d.jsxs("div",{className:"text-[11px] text-muted-foreground",children:[g," media ",g===1?"part":"parts"]}),m.length>0&&d.jsxs("div",{className:"space-y-1",children:[m.slice(0,3).map((y,w)=>{const T=y.args??y.input,j=typeof T=="string"?Ol(T):T??{};return d.jsxs("div",{className:"text-[11px] font-mono text-muted-foreground truncate",children:[y.toolName,"(",eT(j),")"]},w)}),m.length>3&&d.jsxs("div",{className:"text-[11px] text-muted-foreground/60",children:["+",m.length-3," more tool"," ",m.length-3===1?"call":"calls"]})]}),p.length>0&&d.jsxs("div",{className:"space-y-1",children:[p.slice(0,3).map((y,w)=>{const T=y.result??y.output??y,j=tT(T);return d.jsxs("div",{className:"text-[11px] font-mono text-muted-foreground truncate",children:[y.toolName||"tool","(…) => ",j]},w)}),p.length>3&&d.jsxs("div",{className:"text-[11px] text-muted-foreground/60",children:["+",p.length-3," more tool"," ",p.length-3===1?"result":"results"]})]}),!f&&!v&&m.length===0&&p.length===0&&g===0&&d.jsx("div",{className:"text-[11px] text-muted-foreground italic",children:"Empty message"})]})}function pC({message:l,index:r}){const{role:o,content:i}=l,u={user:"User",assistant:"Assistant",system:"System",tool:"Tool"},f=ty(i),m=ny(i),p=ly(i),v=ay(i),g=ry(i),b=g.length,y=(f?1:0)+(v?1:0)+m.length+p.length+b;return d.jsxs("div",{className:"rounded-md border border-border/50 bg-background/50 p-3 space-y-2",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[r&&d.jsx("span",{className:"text-[10px] font-mono text-muted-foreground/50",children:r}),d.jsx("span",{className:"text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:u[o]||o}),y>1&&d.jsxs("span",{className:"text-[10px] text-muted-foreground/60",children:[y," parts"]})]}),v&&d.jsx(K0,{content:v}),f&&d.jsx(W0,{content:f,defaultExpanded:!v&&m.length===0&&p.length===0,isSystem:o==="system"}),g.length>0&&d.jsx(sa,{data:g}),m.length>0&&d.jsx("div",{className:"space-y-2",children:m.map((w,T)=>d.jsx(lC,{toolName:w.toolName,toolCallId:w.toolCallId,data:w.args??w.input},T))}),p.length>0&&d.jsx("div",{className:"space-y-2",children:p.map((w,T)=>d.jsx(aC,{toolName:w.toolName,toolCallId:w.toolCallId,data:w.result??w.output??w},T))}),!f&&!v&&m.length===0&&p.length===0&&b===0&&d.jsx("div",{className:"text-[11px] text-muted-foreground italic",children:"Empty message"})]})}function gC({output:l,fallbackToolResults:r=[]}){var b,y,w,T;const o=a0(l,r),i=j=>o.find(E=>E.type==="tool-result"&&"toolCallId"in E&&E.toolCallId===j),u=(l==null?void 0:l.toolCalls)||(((b=l==null?void 0:l.content)==null?void 0:b.filter(j=>j.type==="tool-call"))??[]),f=(l==null?void 0:l.textParts)||(((y=l==null?void 0:l.content)==null?void 0:y.filter(j=>j.type==="text"))??[]),m=(l==null?void 0:l.reasoningParts)||(((w=l==null?void 0:l.content)==null?void 0:w.filter(j=>j.type==="thinking"||j.type==="reasoning"))??[]),p=f.map(j=>j.text).join(""),v=m.map(j=>j.text||j.thinking||j.reasoning||"").join(""),g=p&&!v&&u.length===0;return d.jsxs("div",{className:"space-y-3",children:[v&&d.jsx(K0,{content:v}),p&&d.jsx(W0,{content:p,defaultExpanded:!!g}),d.jsx(Z0,{data:(T=l==null?void 0:l.content)==null?void 0:T.filter(j=>j.type==="file"||j.type==="reasoning-file"||j.type==="image")}),u.map((j,E)=>{const _=j.toolCallId?i(j.toolCallId):void 0;return d.jsx(vC,{toolName:j.toolName,args:j.args??j.input,result:(_==null?void 0:_.output)??(_==null?void 0:_.result)},E)})]})}function vC({toolName:l,args:r,result:o}){const[i,u]=S.useState(!1),f=typeof r=="string"?Ol(r):r,m=typeof o=="string"?Ol(o):o;return d.jsxs("div",{className:"rounded-md border border-tool/30 overflow-hidden",children:[d.jsxs("button",{className:"w-full flex items-center gap-2 px-3 py-2 bg-tool/10 hover:bg-tool/20 transition-colors",onClick:()=>u(!i),children:[d.jsx(Ml,{className:`size-3 text-tool transition-transform shrink-0 ${i?"rotate-90":""}`}),d.jsx(aa,{className:"size-3 text-tool shrink-0"}),d.jsx("span",{className:"text-xs font-mono font-medium text-tool",children:l}),!i&&f&&typeof f=="object"&&!Array.isArray(f)&&d.jsx("span",{className:"text-[11px] font-mono text-tool truncate",children:i0(f)})]}),i&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"p-3 bg-card/50 border-t border-tool/30",children:[d.jsx("div",{className:"text-[10px] font-medium uppercase tracking-wider text-muted-foreground mb-2",children:"Input"}),d.jsx(sa,{data:f})]}),m!=null&&d.jsxs("div",{className:"p-3 border-t border-border bg-success/5",children:[d.jsx("div",{className:"text-[10px] font-medium uppercase tracking-wider text-success mb-2",children:"Output"}),d.jsx(sa,{data:m})]})]})]})}function oy({step:l,index:r,steps:o,isRunInProgress:i,expandedSteps:u,toggleStep:f,parseJson:m,formatDuration:p,childRuns:v,depth:g}){const b=u.has(l.id),w=r===o.length-1&&i,T=m(l.input),j=m(l.output),E=m(l.usage),_=Iw(j,l.error),U=Fw(T,r===0);return d.jsx(uC,{open:b,onOpenChange:()=>f(l.id),children:d.jsxs(J0,{className:`overflow-hidden py-0 gap-0 ${w?"ring-2 ring-info/50 ring-offset-1 ring-offset-background":""}`,children:[d.jsx(fC,{asChild:!0,children:d.jsxs("button",{className:`w-full flex items-center justify-between px-4 py-3 text-left transition-colors hover:bg-accent/50 ${b?"border-b border-border":""}`,children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("span",{className:"text-xs text-muted-foreground font-mono w-4",children:l.step_number}),d.jsxs("div",{className:"flex items-center gap-2",children:[U&&d.jsxs(d.Fragment,{children:[U.type==="user"?d.jsx(rr,{className:"size-3.5 text-muted-foreground"}):d.jsx(aa,{className:"size-3.5 text-muted-foreground"}),U.fullText||U.toolDetails?d.jsxs(er,{children:[d.jsx(tr,{asChild:!0,children:d.jsx("span",{className:`text-sm text-muted-foreground ${U.type==="tool"?"font-mono":""}`,children:U.label})}),d.jsx(nr,{side:"bottom",className:"max-w-sm max-h-40 overflow-hidden",children:d.jsx("span",{className:"line-clamp-6",children:U.fullText||U.toolDetails})})]}):d.jsx("span",{className:`text-sm text-muted-foreground ${U.type==="tool"?"font-mono":""}`,children:U.label}),d.jsx("span",{className:"text-muted-foreground/50 mx-1",children:"→"})]}),_.icon==="wrench"&&d.jsx(aa,{className:"size-3.5 text-muted-foreground"}),_.icon==="message"&&d.jsx(rr,{className:"size-3.5 text-muted-foreground"}),_.icon==="alert"&&d.jsx(cs,{className:"size-3.5 text-destructive"}),_.toolDetails?d.jsxs(er,{children:[d.jsx(tr,{asChild:!0,children:d.jsx("span",{className:"text-sm font-medium font-mono",children:_.label})}),d.jsx(nr,{children:_.toolDetails})]}):d.jsx("span",{className:`text-sm font-medium ${_.icon==="wrench"?"font-mono":""}`,children:_.label})]})]}),d.jsxs("div",{className:"flex items-center gap-4",children:[w?d.jsxs("span",{className:"text-[11px] text-info font-medium flex items-center gap-1.5",children:[d.jsx(uo,{className:"size-3 animate-spin"}),"streaming"]}):d.jsx("span",{className:"text-[11px] text-muted-foreground font-mono",children:p(l.duration_ms)}),E&&d.jsxs(er,{children:[d.jsx(tr,{asChild:!0,children:d.jsxs("span",{className:"text-[11px] font-mono text-muted-foreground cursor-help",children:[r0(rs(E.inputTokens))," ",d.jsx("span",{className:"text-muted-foreground/50",children:"→"})," ",o0(os(E.outputTokens))]})}),d.jsx(nr,{children:d.jsx($0,{input:rs(E.inputTokens),output:os(E.outputTokens),raw:E.raw})})]}),d.jsx(Gx,{className:`size-4 text-muted-foreground transition-transform ${b?"rotate-180":""}`})]})]})}),d.jsx(dC,{children:d.jsx(iy,{step:l,index:r,steps:o,isRunInProgress:i,parseJson:m,formatDuration:p,childRuns:v,expandedSteps:u,toggleStep:f,depth:g})})]})})}function iy({step:l,index:r,steps:o,isRunInProgress:i,parseJson:u,formatDuration:f,childRuns:m,expandedSteps:p,toggleStep:v,depth:g}){var U,q;const y=r===o.length-1&&i,w=u(l.input),T=u(l.output),j=u(l.usage),E=o[r+1],_=E?u(E.input):null,M=((q=(U=_==null?void 0:_.prompt)==null?void 0:U.filter(L=>L.role==="tool"))==null?void 0:q.flatMap(L=>Array.isArray(L.content)?L.content:[]))??[];return d.jsxs(d.Fragment,{children:[d.jsx(rC,{modelId:l.model_id,provider:l.provider,input:w,providerOptions:u(l.provider_options),usage:j}),d.jsxs("div",{className:"grid grid-cols-2 divide-x divide-border",children:[d.jsx("div",{className:"bg-card/50",children:d.jsx(mC,{input:w})}),d.jsxs("div",{className:"p-4 bg-background min-h-full",children:[d.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-wider text-muted-foreground mb-3",children:"Output"}),l.error?d.jsx("div",{className:"p-3 rounded-md bg-destructive/10 border border-destructive/30 text-sm text-destructive-foreground font-mono",children:l.error}):T?d.jsx(gC,{output:T,fallbackToolResults:M}):y?d.jsxs("div",{className:"flex items-center gap-2 text-sm text-info",children:[d.jsx(uo,{className:"size-4 animate-spin"}),d.jsx("span",{children:"Waiting for response..."})]}):d.jsx("p",{className:"text-sm text-muted-foreground",children:"No output"})]})]}),m.length>0&&p&&v&&d.jsx(yC,{childRuns:m,expandedSteps:p,toggleStep:v,parseJson:u,formatDuration:f,depth:g}),d.jsx(eC,{rawRequest:l.raw_request,rawResponse:l.raw_response,rawChunks:l.raw_chunks,isStream:l.type==="stream"})]})}function yC({childRuns:l,expandedSteps:r,toggleStep:o,parseJson:i,formatDuration:u,depth:f}){return d.jsxs("div",{className:"border-t border-border bg-muted/10",children:[d.jsxs("div",{className:"px-4 py-2 flex items-center gap-2",children:[d.jsx("div",{className:"h-px flex-1 bg-border"}),d.jsxs("span",{className:"text-[10px] font-medium uppercase tracking-wider text-muted-foreground shrink-0",children:["Sub-agent ",l.length===1?"call":"calls"," (",l.length,")"]}),d.jsx("div",{className:"h-px flex-1 bg-border"})]}),d.jsx("div",{className:"px-4 pb-3 flex flex-col gap-2",children:l.map(m=>d.jsx(bC,{childRun:m,expandedSteps:r,toggleStep:o,parseJson:i,formatDuration:u,depth:f+1},m.run.id))})]})}function bC({childRun:l,expandedSteps:r,toggleStep:o,parseJson:i,formatDuration:u,depth:f}){var E;const[m,p]=S.useState(!1),v=l.steps[0],g=v?i(v.input):null,y=[...(g==null?void 0:g.prompt)??[]].reverse().find(_=>_.role==="user");let w="Sub-agent call";if(y){const _=typeof y.content=="string"?y.content:Array.isArray(y.content)&&((E=y.content.find(M=>M.type==="text"))==null?void 0:E.text)||"";w=_.length>60?_.slice(0,60)+"...":_}const T=l.steps.reduce((_,M)=>_+(M.duration_ms||0),0),j=v==null?void 0:v.model_id;return d.jsxs("div",{className:"rounded-md border border-agent/30 overflow-hidden",children:[d.jsxs("button",{className:"w-full flex items-center gap-2 px-3 py-2 bg-agent/10 hover:bg-agent/15 transition-colors",onClick:()=>p(!m),children:[d.jsx(Ml,{className:`size-3 text-agent transition-transform shrink-0 ${m?"rotate-90":""}`}),d.jsx(co,{className:"size-3 text-agent shrink-0"}),d.jsx("span",{className:"text-xs font-medium text-agent truncate",children:w}),d.jsxs("span",{className:"ml-auto flex items-center gap-3 shrink-0",children:[j&&d.jsx("span",{className:"text-[10px] font-mono text-muted-foreground",children:j}),d.jsxs("span",{className:"text-[10px] text-muted-foreground",children:[l.steps.length," ",l.steps.length===1?"step":"steps"]}),d.jsx("span",{className:"text-[10px] font-mono text-muted-foreground",children:u(T)}),l.run.isInProgress&&d.jsx(uo,{className:"size-3 text-info animate-spin"})]})]}),m&&d.jsx("div",{className:"border-t border-agent/20 bg-background/50 p-3 flex flex-col gap-2",children:l.steps.map((_,M)=>{const U=(l.childRuns??[]).filter(q=>q.run.parent_step_id===_.id);return d.jsx(oy,{step:_,index:M,steps:l.steps,isRunInProgress:l.run.isInProgress??!1,expandedSteps:r,toggleStep:o,parseJson:i,formatDuration:u,childRuns:U,depth:f},_.id)})})]})}function xC({runDetail:l,parseJson:r,formatDuration:o}){const[i,u]=S.useState(null),[f,m]=S.useState(280),p=S.useRef(!1),v=S.useMemo(()=>aT(l,r),[l,r]),g=S.useMemo(()=>{const N=[];function z($,ee){N.push(...$);for(const ae of ee)z(ae.steps,ae.childRuns??[])}return z(l.steps,l.childRuns??[]),N},[l]),b=S.useMemo(()=>{const N=[];function z($){for(const ee of $)N.push(ee),z(ee.childRuns??[])}return z(l.childRuns??[]),N},[l]),y=S.useCallback(N=>{N.preventDefault(),N.stopPropagation(),p.current=!0;const z=N.clientX,$=f,ee=J=>{if(!p.current)return;const I=Math.min(Math.max($+(J.clientX-z),120),600);m(I)},ae=()=>{p.current=!1,document.removeEventListener("mousemove",ee),document.removeEventListener("mouseup",ae),document.body.style.cursor="",document.body.style.userSelect=""};document.addEventListener("mousemove",ee),document.addEventListener("mouseup",ae),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[f]);if(v.length===0)return null;const w=Math.max(...v.map(N=>N.startMs+N.durationMs),1),T=5,j=Array.from({length:T+1},(N,z)=>{const $=w/T*z;return{ms:$,label:$<1e3?`${Math.round($)}ms`:`${($/1e3).toFixed(1)}s`}}),E=28,_=N=>{u(z=>z===N?null:N)},M=i?v.find(N=>N.id===i):null,U=(M==null?void 0:M.stepId)??i,q=U?g.find(N=>N.id===U):null,L=q?(()=>{if(l.steps.find(z=>z.id===q.id))return l.steps.findIndex(z=>z.id===q.id);const N=b.find(z=>z.steps.some($=>$.id===q.id));return(N==null?void 0:N.steps.findIndex(z=>z.id===q.id))??0})():0,F=q?(()=>{if(l.steps.find(z=>z.id===q.id))return l.steps;const N=b.find(z=>z.steps.some($=>$.id===q.id));return(N==null?void 0:N.steps)??l.steps})():l.steps,te=q?b.filter(N=>N.run.parent_step_id===q.id):[],B=N=>{switch(N){case"child-run":return d.jsx(co,{className:"size-3 text-agent shrink-0"});case"thinking":return d.jsx(co,{className:"size-3 text-warning shrink-0"});case"tool-call":return d.jsx(aa,{className:"size-3 text-tool shrink-0"});case"text":return d.jsx(rr,{className:"size-3 text-success shrink-0"});case"error":return d.jsx(cs,{className:"size-3 text-danger shrink-0"});default:return d.jsx(Xg,{className:"size-3 text-info shrink-0"})}};return d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"rounded-lg border border-border bg-card overflow-hidden",children:[d.jsxs("div",{className:"px-4 py-2 border-b border-border bg-muted/20 flex items-center justify-between",children:[d.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wider text-muted-foreground",children:"Trace Timeline"}),d.jsx("span",{className:"text-[11px] font-mono text-muted-foreground",children:o(w)})]}),d.jsx("div",{className:"overflow-x-auto",children:d.jsxs("div",{style:{minWidth:f+400},children:[d.jsxs("div",{className:"flex border-b border-border/50",style:{height:22},children:[d.jsx("div",{style:{width:f,minWidth:f},className:"shrink-0"}),d.jsx("div",{className:"w-1 shrink-0 cursor-col-resize hover:bg-primary/30",onMouseDown:y}),d.jsx("div",{className:"flex-1 relative",children:j.map((N,z)=>d.jsx("span",{className:"absolute text-[9px] font-mono text-muted-foreground -translate-x-1/2",style:{left:`${N.ms/w*100}%`,top:5},children:N.label},z))})]}),v.map(N=>{const z=N.startMs/w*100,$=Math.max(N.durationMs/w*100,.3),ee=i===N.id;return d.jsxs("div",{className:`flex items-center border-b border-border/30 transition-colors cursor-pointer ${ee?"bg-accent":"hover:bg-accent/30"}`,style:{height:E},onClick:()=>_(N.id),children:[d.jsxs("div",{className:"shrink-0 flex items-center gap-1.5 px-2 overflow-hidden",style:{width:f,minWidth:f,paddingLeft:8+N.depth*16},children:[B(N.kind),d.jsx("span",{className:"text-[11px] font-mono text-foreground truncate",children:N.label}),N.sublabel&&d.jsx("span",{className:"text-[10px] text-muted-foreground truncate",children:N.sublabel}),d.jsx("span",{className:"ml-auto text-[10px] font-mono text-muted-foreground shrink-0 pl-1",children:o(N.durationMs||null)}),N.tokens&&d.jsxs("span",{className:"text-[9px] font-mono text-muted-foreground shrink-0",children:[N.tokens.input,"→",N.tokens.output]})]}),d.jsx("div",{className:"w-1 shrink-0 cursor-col-resize hover:bg-primary/30 self-stretch",onMouseDown:y}),d.jsxs("div",{className:"flex-1 relative h-full",children:[j.map((ae,J)=>d.jsx("div",{className:"absolute top-0 bottom-0 border-l border-border/20",style:{left:`${ae.ms/w*100}%`}},J)),d.jsxs(er,{children:[d.jsx(tr,{asChild:!0,children:d.jsx("div",{className:"absolute top-1 bottom-1 flex items-center cursor-pointer",style:{left:`${z}%`,width:`${$}%`,minWidth:3},children:d.jsx("div",{className:`h-full w-full rounded-sm ${ee?"ring-2 ring-foreground/50 ring-offset-1 ring-offset-background":""} ${N.isInProgress?`${lT[N.kind]} animate-pulse`:nT[N.kind]}`})})}),d.jsx(nr,{side:"top",className:"max-w-xs",children:d.jsxs("div",{className:"text-xs space-y-1",children:[d.jsx("div",{className:"font-medium",children:N.label}),N.sublabel&&d.jsx("div",{className:"text-muted-foreground",children:N.sublabel}),N.modelId&&N.modelId!==N.label&&d.jsx("div",{className:"text-muted-foreground font-mono",children:N.modelId}),d.jsxs("div",{className:"text-muted-foreground font-mono",children:[o(N.durationMs||null),N.tokens&&d.jsxs("span",{className:"ml-2",children:[N.tokens.input," in → ",N.tokens.output," ","out"]})]}),d.jsxs("div",{className:"text-muted-foreground pt-0.5",children:["Click to ",ee?"deselect":"view details"]})]})})]})]})]},N.id)})]})})]}),q&&M&&d.jsxs(J0,{className:"overflow-hidden py-0 gap-0",children:[d.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5 bg-muted/20 border-b border-border",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[B(M.kind),d.jsxs("span",{className:"text-xs text-muted-foreground font-mono",children:["Step ",L+1]}),M.kind!=="step"&&d.jsx(cf,{variant:"secondary",className:"text-[10px] h-5 capitalize",children:M.kind}),d.jsx("span",{className:"text-xs font-medium font-mono",children:M.label}),q.provider&&d.jsx("span",{className:"px-1.5 py-0.5 rounded bg-sidebar-primary/10 text-sidebar-primary text-[10px] font-medium",children:q.provider})]}),d.jsx("button",{onClick:()=>u(null),className:"text-[11px] text-muted-foreground hover:text-foreground transition-colors",children:"Deselect"})]}),d.jsx(SC,{span:M,step:q,stepIndex:L,steps:F,runDetail:l,parseJson:r,formatDuration:o,childRuns:te})]})]})}function SC({span:l,step:r,stepIndex:o,steps:i,runDetail:u,parseJson:f,formatDuration:m,childRuns:p}){var b;const v=f(r.output),g=(v==null?void 0:v.content)??[];if(l.kind==="tool-call"&&l.toolCallId){const y=g.find(L=>L.type==="tool-call"&&"toolCallId"in L&&L.toolCallId===l.toolCallId),w=i[o+1],T=w?f(w.input):null,j=((b=T==null?void 0:T.prompt)==null?void 0:b.filter(L=>L.role==="tool").flatMap(L=>Array.isArray(L.content)?L.content:[]))??[],E=a0(v,j).find(L=>L.type==="tool-result"&&"toolCallId"in L&&L.toolCallId===l.toolCallId),_=(y==null?void 0:y.input)??(y==null?void 0:y.args),M=typeof _=="string"?Ol(_):_,U=(E==null?void 0:E.output)??(E==null?void 0:E.result),q=typeof U=="string"?Ol(U):U;return d.jsxs("div",{className:"p-4 space-y-4",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[d.jsx(aa,{className:"size-4 text-tool"}),d.jsx("span",{className:"text-sm font-mono font-medium text-tool",children:l.label})]}),M!=null&&d.jsxs("div",{children:[d.jsx("h4",{className:"text-[11px] font-semibold uppercase tracking-wider text-muted-foreground mb-2",children:"Input"}),d.jsx(sa,{data:M})]}),q!=null&&d.jsxs("div",{children:[d.jsx("h4",{className:"text-[11px] font-semibold uppercase tracking-wider text-success mb-2",children:"Output"}),d.jsx(sa,{data:q})]}),!M&&!q&&d.jsx("p",{className:"text-sm text-muted-foreground",children:"No data available for this tool call."})]})}return l.kind==="thinking"&&l.thinkingText?d.jsxs("div",{className:"p-4 space-y-2",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[d.jsx(co,{className:"size-4 text-warning"}),d.jsx("span",{className:"text-sm font-medium text-warning",children:"Thinking"})]}),d.jsx("div",{className:"text-sm text-foreground/80 leading-relaxed whitespace-pre-wrap rounded-md border border-warning/20 bg-warning/5 p-3",children:l.thinkingText})]}):l.kind==="text"&&l.textContent?d.jsxs("div",{className:"p-4 space-y-2",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[d.jsx(rr,{className:"size-4 text-success"}),d.jsx("span",{className:"text-sm font-medium text-success",children:"Text Response"})]}),d.jsx("div",{className:"text-sm text-foreground/80 leading-relaxed whitespace-pre-wrap rounded-md border border-border bg-background p-3",children:l.textContent})]}):l.kind==="error"?d.jsxs("div",{className:"p-4 space-y-2",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[d.jsx(cs,{className:"size-4 text-danger"}),d.jsx("span",{className:"text-sm font-medium text-danger",children:"Error"})]}),d.jsx("div",{className:"text-sm text-destructive-foreground font-mono whitespace-pre-wrap rounded-md border border-destructive/30 bg-destructive/10 p-3",children:r.error})]}):d.jsx(iy,{step:r,index:o,steps:i,isRunInProgress:u.run.isInProgress??!1,parseJson:f,formatDuration:m,childRuns:p,depth:0})}function wC({theme:l,onThemeChange:r}){const o=l==="dark"?"light":"dark",i=`Switch to ${o} theme`;return d.jsxs(sf,{variant:"ghost",size:"icon-sm",type:"button","aria-label":"Use light theme","aria-pressed":l==="light",title:i,onClick:()=>r(o),children:[l==="dark"?d.jsx(u1,{className:"size-3.5"}):d.jsx(a1,{className:"size-3.5"}),d.jsx("span",{className:"sr-only",children:"Use light theme"})]})}const sy="ai-sdk-devtools-theme";function TC(l){try{const r=l==null?void 0:l.getItem(sy);return r==="light"||r==="dark"?r:"dark"}catch{return"dark"}}function cy(l,r){r.dataset.theme=l,r.classList.toggle("dark",l==="dark"),r.style.colorScheme=l}function EC({theme:l,root:r,storage:o}){cy(l,r);try{o==null||o.setItem(sy,l)}catch{}}function CC({root:l,storage:r}){const o=TC(r);return cy(o,l),o}function AC({initialTheme:l,storage:r}){const[o,i]=S.useState([]),[u,f]=S.useState(null),[m,p]=S.useState(new Set),[v,g]=S.useState(!0),[b,y]=S.useState(!1),[w,T]=S.useState(l),j=z=>{EC({theme:z,root:document.documentElement,storage:r}),T(z)},E=async()=>{try{const $=await(await fetch("/api/runs")).json();i($)}catch(z){console.error("Failed to fetch runs:",z)}finally{g(!1)}},_=async()=>{await fetch("/api/clear",{method:"POST"}),i([]),f(null)};S.useEffect(()=>{E()},[]),S.useEffect(()=>{let z=null,$=null;const ee=()=>{z=new EventSource("/api/events"),z.addEventListener("connected",()=>{console.log("[DevTools] Connected to real-time updates")}),z.addEventListener("update",()=>{E(),u&&fetch(`/api/runs/${u.run.id}`).then(ae=>ae.json()).then(ae=>{ae&&!ae.error&&f(ae)}).catch(()=>{})}),z.addEventListener("heartbeat",()=>{}),z.onerror=()=>{console.log("[DevTools] SSE connection lost, reconnecting..."),z==null||z.close(),$=setTimeout(ee,2e3)}};return ee(),()=>{z==null||z.close(),$&&clearTimeout($)}},[u==null?void 0:u.run.id]);const M=async z=>{const ee=await(await fetch(`/api/runs/${z}`)).json();f(ee),p(new Set)},U=z=>{p($=>{const ee=new Set($);return ee.has(z)?ee.delete(z):ee.add(z),ee})},q=z=>z===null?"-":z<1e3?`${z}ms`:`${(z/1e3).toFixed(2)}s`,L=z=>{if(!z)return null;try{return JSON.parse(z)}catch{return z}},F=z=>{var J,I;const $=z[0];if(!$)return"Empty run";const ee=L($.input),ae=(J=ee==null?void 0:ee.prompt)==null?void 0:J.find(le=>le.role==="user");if(ae){const le=typeof ae.content=="string"?ae.content:Array.isArray(ae.content)&&((I=ae.content.find(O=>O.type==="text"))==null?void 0:I.text)||"";return le.slice(0,50)+(le.length>50?"...":"")}return"No user message"},te=z=>z.some($=>$.error),B=z=>z.reduce(($,ee)=>$+(ee.duration_ms||0),0),N=z=>z.reduce(($,ee)=>{const ae=L(ee.usage),J=rs(ae==null?void 0:ae.inputTokens),I=os(ae==null?void 0:ae.outputTokens),le={total:$.input.total+J.total};($.input.noCache!==void 0||J.noCache!==void 0)&&(le.noCache=($.input.noCache??0)+(J.noCache??0)),($.input.cacheRead!==void 0||J.cacheRead!==void 0)&&(le.cacheRead=($.input.cacheRead??0)+(J.cacheRead??0)),($.input.cacheWrite!==void 0||J.cacheWrite!==void 0)&&(le.cacheWrite=($.input.cacheWrite??0)+(J.cacheWrite??0));const O={total:$.output.total+I.total};return($.output.text!==void 0||I.text!==void 0)&&(O.text=($.output.text??0)+(I.text??0)),($.output.reasoning!==void 0||I.reasoning!==void 0)&&(O.reasoning=($.output.reasoning??0)+(I.reasoning??0)),{input:le,output:O}},{input:{total:0},output:{total:0}});return d.jsxs("div",{className:"flex flex-col h-screen bg-background",children:[d.jsxs("header",{className:"flex justify-between items-center px-5 py-3 border-b border-border bg-card",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(p1,{}),d.jsx("span",{className:"text-base font-medium text-muted-foreground",children:"DevTools"})]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx(wC,{theme:w,onThemeChange:j}),d.jsxs(sf,{variant:"ghost",size:"sm",onClick:E,className:"h-8 px-3 text-xs",children:[d.jsx(o1,{className:"size-3.5"}),"Refresh"]}),d.jsxs(sf,{variant:"ghost",size:"sm",onClick:_,className:"h-8 px-3 text-xs text-destructive-foreground hover:bg-destructive/20",children:[d.jsx(d1,{className:"size-3.5"}),"Clear"]})]})]}),d.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[d.jsxs("aside",{className:"w-[300px] border-r border-border bg-sidebar flex flex-col",children:[d.jsx("div",{className:"px-4 py-3 border-b border-border",children:d.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wider text-muted-foreground",children:"Runs"})}),d.jsx(sg,{className:"flex-1 overflow-hidden",children:v?d.jsx("p",{className:"p-4 text-muted-foreground text-sm",children:"Loading..."}):o.length===0?d.jsx("p",{className:"p-4 text-muted-foreground text-sm",children:"No runs yet"}):d.jsx("div",{children:o.map(z=>{const $=(u==null?void 0:u.run.id)===z.id;return d.jsxs("button",{className:`w-full text-left px-4 py-3 border-b border-border/50 transition-colors ${$?"bg-accent":"hover:bg-accent/50"}`,onClick:()=>M(z.id),children:[d.jsxs("div",{className:"flex items-start gap-2 mb-1.5 min-w-0",children:[z.isInProgress?d.jsx(uo,{className:"size-3.5 text-info mt-0.5 shrink-0 animate-spin"}):z.hasError?d.jsx(cs,{className:"size-3.5 text-destructive-foreground mt-0.5 shrink-0"}):d.jsx(rr,{className:"size-3.5 text-muted-foreground mt-0.5 shrink-0"}),d.jsxs("div",{className:"min-w-0",children:[z.function_id&&d.jsx("span",{className:"text-[11px] font-mono text-sidebar-primary block truncate",children:z.function_id}),d.jsx("span",{className:"text-[13px] text-foreground leading-tight line-clamp-1 break-all",children:z.firstMessage||"Loading..."})]})]}),d.jsxs("div",{className:"flex items-center gap-2 ml-5.5 text-[11px] text-muted-foreground",children:[z.type&&d.jsxs("span",{className:`flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-medium ${z.type==="stream"?"bg-info/15 text-info":"bg-success/15 text-success"}`,children:[z.type==="stream"&&d.jsx(Xg,{className:"size-2.5"}),z.type]}),d.jsxs("span",{children:[z.stepCount," ",z.stepCount===1?"step":"steps"]}),d.jsx("span",{children:"·"}),d.jsx("span",{className:"font-mono",children:new Date(z.started_at).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]})]},z.id)})})})]}),d.jsx("main",{className:"flex-1 overflow-hidden",children:d.jsx(sg,{className:"h-full",children:u?d.jsxs("div",{className:"p-5",children:[d.jsxs("div",{className:"flex items-center justify-between mb-5",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("h2",{className:"text-sm font-medium text-foreground",children:F(u.steps)}),u.run.isInProgress&&d.jsxs(cf,{variant:"secondary",className:"text-[10px] h-5 gap-1.5 bg-info/15 text-info border-info/30",children:[d.jsx(uo,{className:"size-3 animate-spin"}),"In Progress"]}),te(u.steps)&&d.jsx(cf,{variant:"destructive",className:"text-[10px] h-5",children:"Error"})]}),d.jsxs("div",{className:"flex items-center text-xs text-muted-foreground",children:[d.jsxs("span",{children:[u.steps.length," steps"]}),d.jsx("span",{className:"px-3 text-muted-foreground/30",children:"·"}),d.jsx("span",{className:"font-mono",children:q(B(u.steps))}),d.jsx("span",{className:"px-3 text-muted-foreground/30",children:"·"}),d.jsxs(er,{children:[d.jsx(tr,{asChild:!0,children:d.jsxs("span",{className:"font-mono cursor-help",children:["input:"," ",r0(N(u.steps).input)," ",d.jsx("span",{className:"text-muted-foreground/50",children:"→"})," ","output:"," ",o0(N(u.steps).output)]})}),d.jsx(nr,{children:d.jsx($0,{input:N(u.steps).input,output:N(u.steps).output})})]}),d.jsx("span",{className:"px-3 text-muted-foreground/30",children:"·"}),d.jsx("span",{children:new Date(u.run.started_at).toLocaleString()}),d.jsx("span",{className:"px-3 text-muted-foreground/30",children:"·"}),d.jsxs(er,{children:[d.jsx(tr,{asChild:!0,children:d.jsxs("button",{onClick:()=>y(z=>!z),className:`inline-flex items-center gap-1.5 px-2 py-1 rounded-md text-[11px] font-medium transition-colors ${b?"bg-accent text-foreground":"text-muted-foreground hover:text-foreground hover:bg-accent/50"}`,children:[d.jsx(Yx,{className:"size-3.5"}),"Timeline"]})}),d.jsx(nr,{children:b?"Switch to steps view":"Switch to timeline view"})]})]})]}),b?d.jsx(xC,{runDetail:u,parseJson:L,formatDuration:q}):d.jsx("div",{className:"flex flex-col gap-3",children:u.steps.map((z,$)=>{const ee=(u.childRuns??[]).filter(ae=>ae.run.parent_step_id===z.id);return d.jsx(oy,{step:z,index:$,steps:u.steps,isRunInProgress:u.run.isInProgress??!1,expandedSteps:m,toggleStep:U,parseJson:L,formatDuration:q,childRuns:ee,depth:0},z.id)})})]}):d.jsx("div",{className:"flex items-center justify-center min-h-[calc(100vh-57px)] text-muted-foreground",children:d.jsx("p",{className:"text-sm",children:"Select a run to view details"})})})})]})]})}let ss;try{ss=window.localStorage}catch{ss=void 0}const NC=CC({root:document.documentElement,storage:ss});Ox.createRoot(document.getElementById("root")).render(d.jsx(AC,{initialTheme:NC,storage:ss}));
|