cntx-ui 3.1.2 → 3.1.4
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/README.md +9 -0
- package/dist/bin/cntx-ui.js +7 -2
- package/dist/lib/api-router.js +119 -0
- package/dist/lib/artifact-manager.js +147 -0
- package/dist/lib/bundle-manager.js +4 -0
- package/dist/lib/database-manager.js +48 -0
- package/dist/lib/mcp-server.js +42 -0
- package/dist/lib/semantic-splitter.js +9 -1
- package/dist/lib/simple-vector-store.js +15 -4
- package/dist/server.js +65 -29
- package/package.json +2 -1
- package/web/dist/assets/index-CZ-DWr8c.css +1 -0
- package/web/dist/assets/index-DAunWqbX.js +344 -0
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-8QXMnXVq.js +0 -1968
- package/web/dist/assets/index-DJi03HLz.css +0 -1
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
var Hy=t=>{throw TypeError(t)};var Hd=(t,a,i)=>a.has(t)||Hy("Cannot "+i);var D=(t,a,i)=>(Hd(t,a,"read from private field"),i?i.call(t):a.get(t)),xe=(t,a,i)=>a.has(t)?Hy("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(t):a.set(t,i),de=(t,a,i,l)=>(Hd(t,a,"write to private field"),l?l.call(t,i):a.set(t,i),i),Ce=(t,a,i)=>(Hd(t,a,"access private method"),i);var yc=(t,a,i,l)=>({set _(o){de(t,a,o,i)},get _(){return D(t,a,l)}});function qE(t,a){for(var i=0;i<a.length;i++){const l=a[i];if(typeof l!="string"&&!Array.isArray(l)){for(const o in l)if(o!=="default"&&!(o in t)){const u=Object.getOwnPropertyDescriptor(l,o);u&&Object.defineProperty(t,o,u.get?u:{enumerable:!0,get:()=>l[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&l(f)}).observe(document,{childList:!0,subtree:!0});function i(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function l(o){if(o.ep)return;o.ep=!0;const u=i(o);fetch(o.href,u)}})();function Dx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Bd={exports:{}},bs={};/**
|
|
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 By;function PE(){if(By)return bs;By=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(l,o,u){var f=null;if(u!==void 0&&(f=""+u),o.key!==void 0&&(f=""+o.key),"key"in o){u={};for(var h in o)h!=="key"&&(u[h]=o[h])}else u=o;return o=u.ref,{$$typeof:t,type:l,key:f,ref:o!==void 0?o:null,props:u}}return bs.Fragment=a,bs.jsx=i,bs.jsxs=i,bs}var qy;function VE(){return qy||(qy=1,Bd.exports=PE()),Bd.exports}var m=VE(),qd={exports:{}},_e={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Py;function GE(){if(Py)return _e;Py=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;function x(j){return j===null||typeof j!="object"?null:(j=y&&j[y]||j["@@iterator"],typeof j=="function"?j:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,N={};function E(j,I,le){this.props=j,this.context=I,this.refs=N,this.updater=le||S}E.prototype.isReactComponent={},E.prototype.setState=function(j,I){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,I,"setState")},E.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function A(){}A.prototype=E.prototype;function z(j,I,le){this.props=j,this.context=I,this.refs=N,this.updater=le||S}var R=z.prototype=new A;R.constructor=z,M(R,E.prototype),R.isPureReactComponent=!0;var H=Array.isArray,k={H:null,A:null,T:null,S:null,V:null},q=Object.prototype.hasOwnProperty;function V(j,I,le,Q,J,ue){return le=ue.ref,{$$typeof:t,type:j,key:I,ref:le!==void 0?le:null,props:ue}}function G(j,I){return V(j.type,I,void 0,void 0,void 0,j.props)}function ae(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function fe(j){var I={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(le){return I[le]})}var B=/\/+/g;function ee(j,I){return typeof j=="object"&&j!==null&&j.key!=null?fe(""+j.key):I.toString(36)}function oe(){}function C(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(oe,oe):(j.status="pending",j.then(function(I){j.status==="pending"&&(j.status="fulfilled",j.value=I)},function(I){j.status==="pending"&&(j.status="rejected",j.reason=I)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function F(j,I,le,Q,J){var ue=typeof j;(ue==="undefined"||ue==="boolean")&&(j=null);var se=!1;if(j===null)se=!0;else switch(ue){case"bigint":case"string":case"number":se=!0;break;case"object":switch(j.$$typeof){case t:case a:se=!0;break;case v:return se=j._init,F(se(j._payload),I,le,Q,J)}}if(se)return J=J(j),se=Q===""?"."+ee(j,0):Q,H(J)?(le="",se!=null&&(le=se.replace(B,"$&/")+"/"),F(J,I,le,"",function(ge){return ge})):J!=null&&(ae(J)&&(J=G(J,le+(J.key==null||j&&j.key===J.key?"":(""+J.key).replace(B,"$&/")+"/")+se)),I.push(J)),1;se=0;var W=Q===""?".":Q+":";if(H(j))for(var ce=0;ce<j.length;ce++)Q=j[ce],ue=W+ee(Q,ce),se+=F(Q,I,le,ue,J);else if(ce=x(j),typeof ce=="function")for(j=ce.call(j),ce=0;!(Q=j.next()).done;)Q=Q.value,ue=W+ee(Q,ce++),se+=F(Q,I,le,ue,J);else if(ue==="object"){if(typeof j.then=="function")return F(C(j),I,le,Q,J);throw I=String(j),Error("Objects are not valid as a React child (found: "+(I==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":I)+"). If you meant to render a collection of children, use an array instead.")}return se}function _(j,I,le){if(j==null)return j;var Q=[],J=0;return F(j,Q,"","",function(ue){return I.call(le,ue,J++)}),Q}function P(j){if(j._status===-1){var I=j._result;I=I(),I.then(function(le){(j._status===0||j._status===-1)&&(j._status=1,j._result=le)},function(le){(j._status===0||j._status===-1)&&(j._status=2,j._result=le)}),j._status===-1&&(j._status=0,j._result=I)}if(j._status===1)return j._result.default;throw j._result}var L=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var I=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(I))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)};function re(){}return _e.Children={map:_,forEach:function(j,I,le){_(j,function(){I.apply(this,arguments)},le)},count:function(j){var I=0;return _(j,function(){I++}),I},toArray:function(j){return _(j,function(I){return I})||[]},only:function(j){if(!ae(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},_e.Component=E,_e.Fragment=i,_e.Profiler=o,_e.PureComponent=z,_e.StrictMode=l,_e.Suspense=g,_e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,_e.__COMPILER_RUNTIME={__proto__:null,c:function(j){return k.H.useMemoCache(j)}},_e.cache=function(j){return function(){return j.apply(null,arguments)}},_e.cloneElement=function(j,I,le){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var Q=M({},j.props),J=j.key,ue=void 0;if(I!=null)for(se in I.ref!==void 0&&(ue=void 0),I.key!==void 0&&(J=""+I.key),I)!q.call(I,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&I.ref===void 0||(Q[se]=I[se]);var se=arguments.length-2;if(se===1)Q.children=le;else if(1<se){for(var W=Array(se),ce=0;ce<se;ce++)W[ce]=arguments[ce+2];Q.children=W}return V(j.type,J,void 0,void 0,ue,Q)},_e.createContext=function(j){return j={$$typeof:f,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:u,_context:j},j},_e.createElement=function(j,I,le){var Q,J={},ue=null;if(I!=null)for(Q in I.key!==void 0&&(ue=""+I.key),I)q.call(I,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(J[Q]=I[Q]);var se=arguments.length-2;if(se===1)J.children=le;else if(1<se){for(var W=Array(se),ce=0;ce<se;ce++)W[ce]=arguments[ce+2];J.children=W}if(j&&j.defaultProps)for(Q in se=j.defaultProps,se)J[Q]===void 0&&(J[Q]=se[Q]);return V(j,ue,void 0,void 0,null,J)},_e.createRef=function(){return{current:null}},_e.forwardRef=function(j){return{$$typeof:h,render:j}},_e.isValidElement=ae,_e.lazy=function(j){return{$$typeof:v,_payload:{_status:-1,_result:j},_init:P}},_e.memo=function(j,I){return{$$typeof:p,type:j,compare:I===void 0?null:I}},_e.startTransition=function(j){var I=k.T,le={};k.T=le;try{var Q=j(),J=k.S;J!==null&&J(le,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(re,L)}catch(ue){L(ue)}finally{k.T=I}},_e.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},_e.use=function(j){return k.H.use(j)},_e.useActionState=function(j,I,le){return k.H.useActionState(j,I,le)},_e.useCallback=function(j,I){return k.H.useCallback(j,I)},_e.useContext=function(j){return k.H.useContext(j)},_e.useDebugValue=function(){},_e.useDeferredValue=function(j,I){return k.H.useDeferredValue(j,I)},_e.useEffect=function(j,I,le){var Q=k.H;if(typeof le=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Q.useEffect(j,I)},_e.useId=function(){return k.H.useId()},_e.useImperativeHandle=function(j,I,le){return k.H.useImperativeHandle(j,I,le)},_e.useInsertionEffect=function(j,I){return k.H.useInsertionEffect(j,I)},_e.useLayoutEffect=function(j,I){return k.H.useLayoutEffect(j,I)},_e.useMemo=function(j,I){return k.H.useMemo(j,I)},_e.useOptimistic=function(j,I){return k.H.useOptimistic(j,I)},_e.useReducer=function(j,I,le){return k.H.useReducer(j,I,le)},_e.useRef=function(j){return k.H.useRef(j)},_e.useState=function(j){return k.H.useState(j)},_e.useSyncExternalStore=function(j,I,le){return k.H.useSyncExternalStore(j,I,le)},_e.useTransition=function(){return k.H.useTransition()},_e.version="19.1.0",_e}var Vy;function am(){return Vy||(Vy=1,qd.exports=GE()),qd.exports}var w=am();const Fa=Dx(w),rm=qE({__proto__:null,default:Fa},[w]);var Pd={exports:{}},ws={},Vd={exports:{}},Gd={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Gy;function YE(){return Gy||(Gy=1,function(t){function a(_,P){var L=_.length;_.push(P);e:for(;0<L;){var re=L-1>>>1,j=_[re];if(0<o(j,P))_[re]=P,_[L]=j,L=re;else break e}}function i(_){return _.length===0?null:_[0]}function l(_){if(_.length===0)return null;var P=_[0],L=_.pop();if(L!==P){_[0]=L;e:for(var re=0,j=_.length,I=j>>>1;re<I;){var le=2*(re+1)-1,Q=_[le],J=le+1,ue=_[J];if(0>o(Q,L))J<j&&0>o(ue,Q)?(_[re]=ue,_[J]=L,re=J):(_[re]=Q,_[le]=L,re=le);else if(J<j&&0>o(ue,L))_[re]=ue,_[J]=L,re=J;else break e}}return P}function o(_,P){var L=_.sortIndex-P.sortIndex;return L!==0?L:_.id-P.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var f=Date,h=f.now();t.unstable_now=function(){return f.now()-h}}var g=[],p=[],v=1,y=null,x=3,S=!1,M=!1,N=!1,E=!1,A=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function H(_){for(var P=i(p);P!==null;){if(P.callback===null)l(p);else if(P.startTime<=_)l(p),P.sortIndex=P.expirationTime,a(g,P);else break;P=i(p)}}function k(_){if(N=!1,H(_),!M)if(i(g)!==null)M=!0,q||(q=!0,ee());else{var P=i(p);P!==null&&F(k,P.startTime-_)}}var q=!1,V=-1,G=5,ae=-1;function fe(){return E?!0:!(t.unstable_now()-ae<G)}function B(){if(E=!1,q){var _=t.unstable_now();ae=_;var P=!0;try{e:{M=!1,N&&(N=!1,z(V),V=-1),S=!0;var L=x;try{t:{for(H(_),y=i(g);y!==null&&!(y.expirationTime>_&&fe());){var re=y.callback;if(typeof re=="function"){y.callback=null,x=y.priorityLevel;var j=re(y.expirationTime<=_);if(_=t.unstable_now(),typeof j=="function"){y.callback=j,H(_),P=!0;break t}y===i(g)&&l(g),H(_)}else l(g);y=i(g)}if(y!==null)P=!0;else{var I=i(p);I!==null&&F(k,I.startTime-_),P=!1}}break e}finally{y=null,x=L,S=!1}P=void 0}}finally{P?ee():q=!1}}}var ee;if(typeof R=="function")ee=function(){R(B)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,C=oe.port2;oe.port1.onmessage=B,ee=function(){C.postMessage(null)}}else ee=function(){A(B,0)};function F(_,P){V=A(function(){_(t.unstable_now())},P)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(_){_.callback=null},t.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<_?Math.floor(1e3/_):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_next=function(_){switch(x){case 1:case 2:case 3:var P=3;break;default:P=x}var L=x;x=P;try{return _()}finally{x=L}},t.unstable_requestPaint=function(){E=!0},t.unstable_runWithPriority=function(_,P){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var L=x;x=_;try{return P()}finally{x=L}},t.unstable_scheduleCallback=function(_,P,L){var re=t.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?re+L:re):L=re,_){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=L+j,_={id:v++,callback:P,priorityLevel:_,startTime:L,expirationTime:j,sortIndex:-1},L>re?(_.sortIndex=L,a(p,_),i(g)===null&&_===i(p)&&(N?(z(V),V=-1):N=!0,F(k,L-re))):(_.sortIndex=j,a(g,_),M||S||(M=!0,q||(q=!0,ee()))),_},t.unstable_shouldYield=fe,t.unstable_wrapCallback=function(_){var P=x;return function(){var L=x;x=P;try{return _.apply(this,arguments)}finally{x=L}}}}(Gd)),Gd}var Yy;function QE(){return Yy||(Yy=1,Vd.exports=YE()),Vd.exports}var Yd={exports:{}},Ct={};/**
|
|
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 Qy;function XE(){if(Qy)return Ct;Qy=1;var t=am();function a(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var l={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(g,p,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:g,containerInfo:p,implementation:v}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Ct.createPortal=function(g,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return u(g,p,null,v)},Ct.flushSync=function(g){var p=f.T,v=l.p;try{if(f.T=null,l.p=2,g)return g()}finally{f.T=p,l.p=v,l.d.f()}},Ct.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,l.d.C(g,p))},Ct.prefetchDNS=function(g){typeof g=="string"&&l.d.D(g)},Ct.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var v=p.as,y=h(v,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?l.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:S}):v==="script"&&l.d.X(g,{crossOrigin:y,integrity:x,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ct.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=h(p.as,p.crossOrigin);l.d.M(g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&l.d.M(g)},Ct.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,y=h(v,p.crossOrigin);l.d.L(g,v,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ct.preloadModule=function(g,p){if(typeof g=="string")if(p){var v=h(p.as,p.crossOrigin);l.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else l.d.m(g)},Ct.requestFormReset=function(g){l.d.r(g)},Ct.unstable_batchedUpdates=function(g,p){return g(p)},Ct.useFormState=function(g,p,v){return f.H.useFormState(g,p,v)},Ct.useFormStatus=function(){return f.H.useHostTransitionStatus()},Ct.version="19.1.0",Ct}var Xy;function kx(){if(Xy)return Yd.exports;Xy=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),Yd.exports=XE(),Yd.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 $y;function $E(){if($y)return ws;$y=1;var t=QE(),a=am(),i=kx();function l(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var n=e,r=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(r=n.return),e=n.return;while(e)}return n.tag===3?r:null}function f(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(u(e)!==e)throw Error(l(188))}function g(e){var n=e.alternate;if(!n){if(n=u(e),n===null)throw Error(l(188));return n!==e?null:e}for(var r=e,s=n;;){var c=r.return;if(c===null)break;var d=c.alternate;if(d===null){if(s=c.return,s!==null){r=s;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===r)return h(c),e;if(d===s)return h(c),n;d=d.sibling}throw Error(l(188))}if(r.return!==s.return)r=c,s=d;else{for(var b=!1,T=c.child;T;){if(T===r){b=!0,r=c,s=d;break}if(T===s){b=!0,s=c,r=d;break}T=T.sibling}if(!b){for(T=d.child;T;){if(T===r){b=!0,r=d,s=c;break}if(T===s){b=!0,s=d,r=c;break}T=T.sibling}if(!b)throw Error(l(189))}}if(r.alternate!==s)throw Error(l(190))}if(r.tag!==3)throw Error(l(188));return r.stateNode.current===r?e:n}function p(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=p(e),n!==null)return n;e=e.sibling}return null}var v=Object.assign,y=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),z=Symbol.for("react.consumer"),R=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),fe=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=B&&e[B]||e["@@iterator"],typeof e=="function"?e:null)}var oe=Symbol.for("react.client.reference");function C(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case E:return"Profiler";case N:return"StrictMode";case k:return"Suspense";case q:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case R:return(e.displayName||"Context")+".Provider";case z:return(e._context.displayName||"Context")+".Consumer";case H:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return n=e.displayName||null,n!==null?n:C(e.type)||"Memo";case G:n=e._payload,e=e._init;try{return C(e(n))}catch{}}return null}var F=Array.isArray,_=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L={pending:!1,data:null,method:null,action:null},re=[],j=-1;function I(e){return{current:e}}function le(e){0>j||(e.current=re[j],re[j]=null,j--)}function Q(e,n){j++,re[j]=e.current,e.current=n}var J=I(null),ue=I(null),se=I(null),W=I(null);function ce(e,n){switch(Q(se,n),Q(ue,e),Q(J,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?dy(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=dy(n),e=hy(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}le(J),Q(J,e)}function ge(){le(J),le(ue),le(se)}function ye(e){e.memoizedState!==null&&Q(W,e);var n=J.current,r=hy(n,e.type);n!==r&&(Q(ue,e),Q(J,r))}function Se(e){ue.current===e&&(le(J),le(ue)),W.current===e&&(le(W),ps._currentValue=L)}var Ee=Object.prototype.hasOwnProperty,Ae=t.unstable_scheduleCallback,Ke=t.unstable_cancelCallback,Yt=t.unstable_shouldYield,sn=t.unstable_requestPaint,st=t.unstable_now,pt=t.unstable_getCurrentPriorityLevel,On=t.unstable_ImmediatePriority,to=t.unstable_UserBlockingPriority,zn=t.unstable_NormalPriority,no=t.unstable_LowPriority,ao=t.unstable_IdlePriority,SS=t.log,ES=t.unstable_setDisableYieldValue,El=null,Qt=null;function Ea(e){if(typeof SS=="function"&&ES(e),Qt&&typeof Qt.setStrictMode=="function")try{Qt.setStrictMode(El,e)}catch{}}var Xt=Math.clz32?Math.clz32:_S,NS=Math.log,TS=Math.LN2;function _S(e){return e>>>=0,e===0?32:31-(NS(e)/TS|0)|0}var ro=256,io=4194304;function hr(e){var n=e&42;if(n!==0)return n;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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 lo(e,n,r){var s=e.pendingLanes;if(s===0)return 0;var c=0,d=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var T=s&134217727;return T!==0?(s=T&~d,s!==0?c=hr(s):(b&=T,b!==0?c=hr(b):r||(r=T&~e,r!==0&&(c=hr(r))))):(T=s&~d,T!==0?c=hr(T):b!==0?c=hr(b):r||(r=s&~e,r!==0&&(c=hr(r)))),c===0?0:n!==0&&n!==c&&(n&d)===0&&(d=c&-c,r=n&-n,d>=r||d===32&&(r&4194048)!==0)?n:c}function Nl(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function AS(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 Km(){var e=ro;return ro<<=1,(ro&4194048)===0&&(ro=256),e}function Im(){var e=io;return io<<=1,(io&62914560)===0&&(io=4194304),e}function _u(e){for(var n=[],r=0;31>r;r++)n.push(e);return n}function Tl(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function CS(e,n,r,s,c,d){var b=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var T=e.entanglements,O=e.expirationTimes,$=e.hiddenUpdates;for(r=b&~r;0<r;){var te=31-Xt(r),ie=1<<te;T[te]=0,O[te]=-1;var K=$[te];if(K!==null)for($[te]=null,te=0;te<K.length;te++){var Z=K[te];Z!==null&&(Z.lane&=-536870913)}r&=~ie}s!==0&&Zm(e,s,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(b&~n))}function Zm(e,n,r){e.pendingLanes|=n,e.suspendedLanes&=~n;var s=31-Xt(n);e.entangledLanes|=n,e.entanglements[s]=e.entanglements[s]|1073741824|r&4194090}function Jm(e,n){var r=e.entangledLanes|=n;for(e=e.entanglements;r;){var s=31-Xt(r),c=1<<s;c&n|e[s]&n&&(e[s]|=n),r&=~c}}function Au(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 Cu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Wm(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:Oy(e.type))}function MS(e,n){var r=P.p;try{return P.p=e,n()}finally{P.p=r}}var Na=Math.random().toString(36).slice(2),_t="__reactFiber$"+Na,kt="__reactProps$"+Na,Jr="__reactContainer$"+Na,Mu="__reactEvents$"+Na,jS="__reactListeners$"+Na,RS="__reactHandles$"+Na,ep="__reactResources$"+Na,_l="__reactMarker$"+Na;function ju(e){delete e[_t],delete e[kt],delete e[Mu],delete e[jS],delete e[RS]}function Wr(e){var n=e[_t];if(n)return n;for(var r=e.parentNode;r;){if(n=r[Jr]||r[_t]){if(r=n.alternate,n.child!==null||r!==null&&r.child!==null)for(e=vy(e);e!==null;){if(r=e[_t])return r;e=vy(e)}return n}e=r,r=e.parentNode}return null}function ei(e){if(e=e[_t]||e[Jr]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function Al(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(l(33))}function ti(e){var n=e[ep];return n||(n=e[ep]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function gt(e){e[_l]=!0}var tp=new Set,np={};function mr(e,n){ni(e,n),ni(e+"Capture",n)}function ni(e,n){for(np[e]=n,e=0;e<n.length;e++)tp.add(n[e])}var OS=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]*$"),ap={},rp={};function zS(e){return Ee.call(rp,e)?!0:Ee.call(ap,e)?!1:OS.test(e)?rp[e]=!0:(ap[e]=!0,!1)}function so(e,n,r){if(zS(n))if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+r)}}function oo(e,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+r)}}function Zn(e,n,r,s){if(s===null)e.removeAttribute(r);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(n,r,""+s)}}var Ru,ip;function ai(e){if(Ru===void 0)try{throw Error()}catch(r){var n=r.stack.trim().match(/\n( *(at )?)/);Ru=n&&n[1]||"",ip=-1<r.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Ru+e+ip}var Ou=!1;function zu(e,n){if(!e||Ou)return"";Ou=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(Z){var K=Z}Reflect.construct(e,[],ie)}else{try{ie.call()}catch(Z){K=Z}e.call(ie.prototype)}}else{try{throw Error()}catch(Z){K=Z}(ie=e())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(Z){if(Z&&K&&typeof Z.stack=="string")return[Z.stack,K.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=s.DetermineComponentFrameRoot(),b=d[0],T=d[1];if(b&&T){var O=b.split(`
|
|
44
|
+
`),$=T.split(`
|
|
45
|
+
`);for(c=s=0;s<O.length&&!O[s].includes("DetermineComponentFrameRoot");)s++;for(;c<$.length&&!$[c].includes("DetermineComponentFrameRoot");)c++;if(s===O.length||c===$.length)for(s=O.length-1,c=$.length-1;1<=s&&0<=c&&O[s]!==$[c];)c--;for(;1<=s&&0<=c;s--,c--)if(O[s]!==$[c]){if(s!==1||c!==1)do if(s--,c--,0>c||O[s]!==$[c]){var te=`
|
|
46
|
+
`+O[s].replace(" at new "," at ");return e.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",e.displayName)),te}while(1<=s&&0<=c);break}}}finally{Ou=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?ai(r):""}function DS(e){switch(e.tag){case 26:case 27:case 5:return ai(e.type);case 16:return ai("Lazy");case 13:return ai("Suspense");case 19:return ai("SuspenseList");case 0:case 15:return zu(e.type,!1);case 11:return zu(e.type.render,!1);case 1:return zu(e.type,!0);case 31:return ai("Activity");default:return""}}function lp(e){try{var n="";do n+=DS(e),e=e.return;while(e);return n}catch(r){return`
|
|
47
|
+
Error generating stack: `+r.message+`
|
|
48
|
+
`+r.stack}}function on(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sp(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function kS(e){var n=sp(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),s=""+e[n];if(!e.hasOwnProperty(n)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var c=r.get,d=r.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return c.call(this)},set:function(b){s=""+b,d.call(this,b)}}),Object.defineProperty(e,n,{enumerable:r.enumerable}),{getValue:function(){return s},setValue:function(b){s=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function co(e){e._valueTracker||(e._valueTracker=kS(e))}function op(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var r=n.getValue(),s="";return e&&(s=sp(e)?e.checked?"true":"false":e.value),e=s,e!==r?(n.setValue(e),!0):!1}function uo(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 LS=/[\n"\\]/g;function cn(e){return e.replace(LS,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Du(e,n,r,s,c,d,b,T){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+on(n)):e.value!==""+on(n)&&(e.value=""+on(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?ku(e,b,on(n)):r!=null?ku(e,b,on(r)):s!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?e.name=""+on(T):e.removeAttribute("name")}function cp(e,n,r,s,c,d,b,T){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),n!=null||r!=null){if(!(d!=="submit"&&d!=="reset"||n!=null))return;r=r!=null?""+on(r):"",n=n!=null?""+on(n):r,T||n===e.value||(e.value=n),e.defaultValue=n}s=s??c,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=T?e.checked:!!s,e.defaultChecked=!!s,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b)}function ku(e,n,r){n==="number"&&uo(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function ri(e,n,r,s){if(e=e.options,n){n={};for(var c=0;c<r.length;c++)n["$"+r[c]]=!0;for(r=0;r<e.length;r++)c=n.hasOwnProperty("$"+e[r].value),e[r].selected!==c&&(e[r].selected=c),c&&s&&(e[r].defaultSelected=!0)}else{for(r=""+on(r),n=null,c=0;c<e.length;c++){if(e[c].value===r){e[c].selected=!0,s&&(e[c].defaultSelected=!0);return}n!==null||e[c].disabled||(n=e[c])}n!==null&&(n.selected=!0)}}function up(e,n,r){if(n!=null&&(n=""+on(n),n!==e.value&&(e.value=n),r==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=r!=null?""+on(r):""}function fp(e,n,r,s){if(n==null){if(s!=null){if(r!=null)throw Error(l(92));if(F(s)){if(1<s.length)throw Error(l(93));s=s[0]}r=s}r==null&&(r=""),n=r}r=on(n),e.defaultValue=r,s=e.textContent,s===r&&s!==""&&s!==null&&(e.value=s)}function ii(e,n){if(n){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=n;return}}e.textContent=n}var US=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 dp(e,n,r){var s=n.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?s?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":s?e.setProperty(n,r):typeof r!="number"||r===0||US.has(n)?n==="float"?e.cssFloat=r:e[n]=(""+r).trim():e[n]=r+"px"}function hp(e,n,r){if(n!=null&&typeof n!="object")throw Error(l(62));if(e=e.style,r!=null){for(var s in r)!r.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var c in n)s=n[c],n.hasOwnProperty(c)&&r[c]!==s&&dp(e,c,s)}else for(var d in n)n.hasOwnProperty(d)&&dp(e,d,n[d])}function Lu(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 HS=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"]]),BS=/^[\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 fo(e){return BS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Uu=null;function Hu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var li=null,si=null;function mp(e){var n=ei(e);if(n&&(e=n.stateNode)){var r=e[kt]||null;e:switch(e=n.stateNode,n.type){case"input":if(Du(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),n=r.name,r.type==="radio"&&n!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+cn(""+n)+'"][type="radio"]'),n=0;n<r.length;n++){var s=r[n];if(s!==e&&s.form===e.form){var c=s[kt]||null;if(!c)throw Error(l(90));Du(s,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(n=0;n<r.length;n++)s=r[n],s.form===e.form&&op(s)}break e;case"textarea":up(e,r.value,r.defaultValue);break e;case"select":n=r.value,n!=null&&ri(e,!!r.multiple,n,!1)}}}var Bu=!1;function pp(e,n,r){if(Bu)return e(n,r);Bu=!0;try{var s=e(n);return s}finally{if(Bu=!1,(li!==null||si!==null)&&(Zo(),li&&(n=li,e=si,si=li=null,mp(n),e)))for(n=0;n<e.length;n++)mp(e[n])}}function Cl(e,n){var r=e.stateNode;if(r===null)return null;var s=r[kt]||null;if(s===null)return null;r=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(l(231,n,typeof r));return r}var Jn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qu=!1;if(Jn)try{var Ml={};Object.defineProperty(Ml,"passive",{get:function(){qu=!0}}),window.addEventListener("test",Ml,Ml),window.removeEventListener("test",Ml,Ml)}catch{qu=!1}var Ta=null,Pu=null,ho=null;function gp(){if(ho)return ho;var e,n=Pu,r=n.length,s,c="value"in Ta?Ta.value:Ta.textContent,d=c.length;for(e=0;e<r&&n[e]===c[e];e++);var b=r-e;for(s=1;s<=b&&n[r-s]===c[d-s];s++);return ho=c.slice(e,1<s?1-s:void 0)}function mo(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function po(){return!0}function vp(){return!1}function Lt(e){function n(r,s,c,d,b){this._reactName=r,this._targetInst=c,this.type=s,this.nativeEvent=d,this.target=b,this.currentTarget=null;for(var T in e)e.hasOwnProperty(T)&&(r=e[T],this[T]=r?r(d):d[T]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?po:vp,this.isPropagationStopped=vp,this}return v(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=po)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=po)},persist:function(){},isPersistent:po}),n}var pr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},go=Lt(pr),jl=v({},pr,{view:0,detail:0}),qS=Lt(jl),Vu,Gu,Rl,vo=v({},jl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qu,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!==Rl&&(Rl&&e.type==="mousemove"?(Vu=e.screenX-Rl.screenX,Gu=e.screenY-Rl.screenY):Gu=Vu=0,Rl=e),Vu)},movementY:function(e){return"movementY"in e?e.movementY:Gu}}),yp=Lt(vo),PS=v({},vo,{dataTransfer:0}),VS=Lt(PS),GS=v({},jl,{relatedTarget:0}),Yu=Lt(GS),YS=v({},pr,{animationName:0,elapsedTime:0,pseudoElement:0}),QS=Lt(YS),XS=v({},pr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$S=Lt(XS),FS=v({},pr,{data:0}),xp=Lt(FS),KS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},IS={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"},ZS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function JS(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=ZS[e])?!!n[e]:!1}function Qu(){return JS}var WS=v({},jl,{key:function(e){if(e.key){var n=KS[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=mo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?IS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qu,charCode:function(e){return e.type==="keypress"?mo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?mo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),e2=Lt(WS),t2=v({},vo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bp=Lt(t2),n2=v({},jl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qu}),a2=Lt(n2),r2=v({},pr,{propertyName:0,elapsedTime:0,pseudoElement:0}),i2=Lt(r2),l2=v({},vo,{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}),s2=Lt(l2),o2=v({},pr,{newState:0,oldState:0}),c2=Lt(o2),u2=[9,13,27,32],Xu=Jn&&"CompositionEvent"in window,Ol=null;Jn&&"documentMode"in document&&(Ol=document.documentMode);var f2=Jn&&"TextEvent"in window&&!Ol,wp=Jn&&(!Xu||Ol&&8<Ol&&11>=Ol),Sp=" ",Ep=!1;function Np(e,n){switch(e){case"keyup":return u2.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oi=!1;function d2(e,n){switch(e){case"compositionend":return Tp(n);case"keypress":return n.which!==32?null:(Ep=!0,Sp);case"textInput":return e=n.data,e===Sp&&Ep?null:e;default:return null}}function h2(e,n){if(oi)return e==="compositionend"||!Xu&&Np(e,n)?(e=gp(),ho=Pu=Ta=null,oi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return wp&&n.locale!=="ko"?null:n.data;default:return null}}var m2={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 _p(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!m2[e.type]:n==="textarea"}function Ap(e,n,r,s){li?si?si.push(s):si=[s]:li=s,n=ac(n,"onChange"),0<n.length&&(r=new go("onChange","change",null,r,s),e.push({event:r,listeners:n}))}var zl=null,Dl=null;function p2(e){sy(e,0)}function yo(e){var n=Al(e);if(op(n))return e}function Cp(e,n){if(e==="change")return n}var Mp=!1;if(Jn){var $u;if(Jn){var Fu="oninput"in document;if(!Fu){var jp=document.createElement("div");jp.setAttribute("oninput","return;"),Fu=typeof jp.oninput=="function"}$u=Fu}else $u=!1;Mp=$u&&(!document.documentMode||9<document.documentMode)}function Rp(){zl&&(zl.detachEvent("onpropertychange",Op),Dl=zl=null)}function Op(e){if(e.propertyName==="value"&&yo(Dl)){var n=[];Ap(n,Dl,e,Hu(e)),pp(p2,n)}}function g2(e,n,r){e==="focusin"?(Rp(),zl=n,Dl=r,zl.attachEvent("onpropertychange",Op)):e==="focusout"&&Rp()}function v2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yo(Dl)}function y2(e,n){if(e==="click")return yo(n)}function x2(e,n){if(e==="input"||e==="change")return yo(n)}function b2(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var $t=typeof Object.is=="function"?Object.is:b2;function kl(e,n){if($t(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var r=Object.keys(e),s=Object.keys(n);if(r.length!==s.length)return!1;for(s=0;s<r.length;s++){var c=r[s];if(!Ee.call(n,c)||!$t(e[c],n[c]))return!1}return!0}function zp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dp(e,n){var r=zp(e);e=0;for(var s;r;){if(r.nodeType===3){if(s=e+r.textContent.length,e<=n&&s>=n)return{node:r,offset:n-e};e=s}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=zp(r)}}function kp(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?kp(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Lp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=uo(e.document);n instanceof e.HTMLIFrameElement;){try{var r=typeof n.contentWindow.location.href=="string"}catch{r=!1}if(r)e=n.contentWindow;else break;n=uo(e.document)}return n}function Ku(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var w2=Jn&&"documentMode"in document&&11>=document.documentMode,ci=null,Iu=null,Ll=null,Zu=!1;function Up(e,n,r){var s=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Zu||ci==null||ci!==uo(s)||(s=ci,"selectionStart"in s&&Ku(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Ll&&kl(Ll,s)||(Ll=s,s=ac(Iu,"onSelect"),0<s.length&&(n=new go("onSelect","select",null,n,r),e.push({event:n,listeners:s}),n.target=ci)))}function gr(e,n){var r={};return r[e.toLowerCase()]=n.toLowerCase(),r["Webkit"+e]="webkit"+n,r["Moz"+e]="moz"+n,r}var ui={animationend:gr("Animation","AnimationEnd"),animationiteration:gr("Animation","AnimationIteration"),animationstart:gr("Animation","AnimationStart"),transitionrun:gr("Transition","TransitionRun"),transitionstart:gr("Transition","TransitionStart"),transitioncancel:gr("Transition","TransitionCancel"),transitionend:gr("Transition","TransitionEnd")},Ju={},Hp={};Jn&&(Hp=document.createElement("div").style,"AnimationEvent"in window||(delete ui.animationend.animation,delete ui.animationiteration.animation,delete ui.animationstart.animation),"TransitionEvent"in window||delete ui.transitionend.transition);function vr(e){if(Ju[e])return Ju[e];if(!ui[e])return e;var n=ui[e],r;for(r in n)if(n.hasOwnProperty(r)&&r in Hp)return Ju[e]=n[r];return e}var Bp=vr("animationend"),qp=vr("animationiteration"),Pp=vr("animationstart"),S2=vr("transitionrun"),E2=vr("transitionstart"),N2=vr("transitioncancel"),Vp=vr("transitionend"),Gp=new Map,Wu="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(" ");Wu.push("scrollEnd");function bn(e,n){Gp.set(e,n),mr(n,[e])}var Yp=new WeakMap;function un(e,n){if(typeof e=="object"&&e!==null){var r=Yp.get(e);return r!==void 0?r:(n={value:e,source:n,stack:lp(n)},Yp.set(e,n),n)}return{value:e,source:n,stack:lp(n)}}var fn=[],fi=0,ef=0;function xo(){for(var e=fi,n=ef=fi=0;n<e;){var r=fn[n];fn[n++]=null;var s=fn[n];fn[n++]=null;var c=fn[n];fn[n++]=null;var d=fn[n];if(fn[n++]=null,s!==null&&c!==null){var b=s.pending;b===null?c.next=c:(c.next=b.next,b.next=c),s.pending=c}d!==0&&Qp(r,c,d)}}function bo(e,n,r,s){fn[fi++]=e,fn[fi++]=n,fn[fi++]=r,fn[fi++]=s,ef|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function tf(e,n,r,s){return bo(e,n,r,s),wo(e)}function di(e,n){return bo(e,null,null,n),wo(e)}function Qp(e,n,r){e.lanes|=r;var s=e.alternate;s!==null&&(s.lanes|=r);for(var c=!1,d=e.return;d!==null;)d.childLanes|=r,s=d.alternate,s!==null&&(s.childLanes|=r),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(c=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,c&&n!==null&&(c=31-Xt(r),e=d.hiddenUpdates,s=e[c],s===null?e[c]=[n]:s.push(n),n.lane=r|536870912),d):null}function wo(e){if(50<ss)throw ss=0,od=null,Error(l(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var hi={};function T2(e,n,r,s){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ft(e,n,r,s){return new T2(e,n,r,s)}function nf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wn(e,n){var r=e.alternate;return r===null?(r=Ft(e.tag,n,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=n,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,n=e.dependencies,r.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function Xp(e,n){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,n=r.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function So(e,n,r,s,c,d){var b=0;if(s=e,typeof e=="function")nf(e)&&(b=1);else if(typeof e=="string")b=AE(e,r,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Ft(31,r,n,c),e.elementType=ae,e.lanes=d,e;case M:return yr(r.children,c,d,n);case N:b=8,c|=24;break;case E:return e=Ft(12,r,n,c|2),e.elementType=E,e.lanes=d,e;case k:return e=Ft(13,r,n,c),e.elementType=k,e.lanes=d,e;case q:return e=Ft(19,r,n,c),e.elementType=q,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case A:case R:b=10;break e;case z:b=9;break e;case H:b=11;break e;case V:b=14;break e;case G:b=16,s=null;break e}b=29,r=Error(l(130,e===null?"null":typeof e,"")),s=null}return n=Ft(b,r,n,c),n.elementType=e,n.type=s,n.lanes=d,n}function yr(e,n,r,s){return e=Ft(7,e,s,n),e.lanes=r,e}function af(e,n,r){return e=Ft(6,e,null,n),e.lanes=r,e}function rf(e,n,r){return n=Ft(4,e.children!==null?e.children:[],e.key,n),n.lanes=r,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var mi=[],pi=0,Eo=null,No=0,dn=[],hn=0,xr=null,ea=1,ta="";function br(e,n){mi[pi++]=No,mi[pi++]=Eo,Eo=e,No=n}function $p(e,n,r){dn[hn++]=ea,dn[hn++]=ta,dn[hn++]=xr,xr=e;var s=ea;e=ta;var c=32-Xt(s)-1;s&=~(1<<c),r+=1;var d=32-Xt(n)+c;if(30<d){var b=c-c%5;d=(s&(1<<b)-1).toString(32),s>>=b,c-=b,ea=1<<32-Xt(n)+c|r<<c|s,ta=d+e}else ea=1<<d|r<<c|s,ta=e}function lf(e){e.return!==null&&(br(e,1),$p(e,1,0))}function sf(e){for(;e===Eo;)Eo=mi[--pi],mi[pi]=null,No=mi[--pi],mi[pi]=null;for(;e===xr;)xr=dn[--hn],dn[hn]=null,ta=dn[--hn],dn[hn]=null,ea=dn[--hn],dn[hn]=null}var jt=null,et=null,qe=!1,wr=null,Dn=!1,of=Error(l(519));function Sr(e){var n=Error(l(418,""));throw Bl(un(n,e)),of}function Fp(e){var n=e.stateNode,r=e.type,s=e.memoizedProps;switch(n[_t]=e,n[kt]=s,r){case"dialog":De("cancel",n),De("close",n);break;case"iframe":case"object":case"embed":De("load",n);break;case"video":case"audio":for(r=0;r<cs.length;r++)De(cs[r],n);break;case"source":De("error",n);break;case"img":case"image":case"link":De("error",n),De("load",n);break;case"details":De("toggle",n);break;case"input":De("invalid",n),cp(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),co(n);break;case"select":De("invalid",n);break;case"textarea":De("invalid",n),fp(n,s.value,s.defaultValue,s.children),co(n)}r=s.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||n.textContent===""+r||s.suppressHydrationWarning===!0||fy(n.textContent,r)?(s.popover!=null&&(De("beforetoggle",n),De("toggle",n)),s.onScroll!=null&&De("scroll",n),s.onScrollEnd!=null&&De("scrollend",n),s.onClick!=null&&(n.onclick=rc),n=!0):n=!1,n||Sr(e)}function Kp(e){for(jt=e.return;jt;)switch(jt.tag){case 5:case 13:Dn=!1;return;case 27:case 3:Dn=!0;return;default:jt=jt.return}}function Ul(e){if(e!==jt)return!1;if(!qe)return Kp(e),qe=!0,!1;var n=e.tag,r;if((r=n!==3&&n!==27)&&((r=n===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||Nd(e.type,e.memoizedProps)),r=!r),r&&et&&Sr(e),Kp(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8)if(r=e.data,r==="/$"){if(n===0){et=Sn(e.nextSibling);break e}n--}else r!=="$"&&r!=="$!"&&r!=="$?"||n++;e=e.nextSibling}et=null}}else n===27?(n=et,Pa(e.type)?(e=Cd,Cd=null,et=e):et=n):et=jt?Sn(e.stateNode.nextSibling):null;return!0}function Hl(){et=jt=null,qe=!1}function Ip(){var e=wr;return e!==null&&(Bt===null?Bt=e:Bt.push.apply(Bt,e),wr=null),e}function Bl(e){wr===null?wr=[e]:wr.push(e)}var cf=I(null),Er=null,na=null;function _a(e,n,r){Q(cf,n._currentValue),n._currentValue=r}function aa(e){e._currentValue=cf.current,le(cf)}function uf(e,n,r){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===r)break;e=e.return}}function ff(e,n,r,s){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var b=c.child;d=d.firstContext;e:for(;d!==null;){var T=d;d=c;for(var O=0;O<n.length;O++)if(T.context===n[O]){d.lanes|=r,T=d.alternate,T!==null&&(T.lanes|=r),uf(d.return,r,e),s||(b=null);break e}d=T.next}}else if(c.tag===18){if(b=c.return,b===null)throw Error(l(341));b.lanes|=r,d=b.alternate,d!==null&&(d.lanes|=r),uf(b,r,e),b=null}else b=c.child;if(b!==null)b.return=c;else for(b=c;b!==null;){if(b===e){b=null;break}if(c=b.sibling,c!==null){c.return=b.return,b=c;break}b=b.return}c=b}}function ql(e,n,r,s){e=null;for(var c=n,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var b=c.alternate;if(b===null)throw Error(l(387));if(b=b.memoizedProps,b!==null){var T=c.type;$t(c.pendingProps.value,b.value)||(e!==null?e.push(T):e=[T])}}else if(c===W.current){if(b=c.alternate,b===null)throw Error(l(387));b.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(ps):e=[ps])}c=c.return}e!==null&&ff(n,e,r,s),n.flags|=262144}function To(e){for(e=e.firstContext;e!==null;){if(!$t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Nr(e){Er=e,na=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function At(e){return Zp(Er,e)}function _o(e,n){return Er===null&&Nr(e),Zp(e,n)}function Zp(e,n){var r=n._currentValue;if(n={context:n,memoizedValue:r,next:null},na===null){if(e===null)throw Error(l(308));na=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else na=na.next=n;return r}var _2=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(r,s){e.push(s)}};this.abort=function(){n.aborted=!0,e.forEach(function(r){return r()})}},A2=t.unstable_scheduleCallback,C2=t.unstable_NormalPriority,ut={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function df(){return{controller:new _2,data:new Map,refCount:0}}function Pl(e){e.refCount--,e.refCount===0&&A2(C2,function(){e.controller.abort()})}var Vl=null,hf=0,gi=0,vi=null;function M2(e,n){if(Vl===null){var r=Vl=[];hf=0,gi=pd(),vi={status:"pending",value:void 0,then:function(s){r.push(s)}}}return hf++,n.then(Jp,Jp),n}function Jp(){if(--hf===0&&Vl!==null){vi!==null&&(vi.status="fulfilled");var e=Vl;Vl=null,gi=0,vi=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function j2(e,n){var r=[],s={status:"pending",value:null,reason:null,then:function(c){r.push(c)}};return e.then(function(){s.status="fulfilled",s.value=n;for(var c=0;c<r.length;c++)(0,r[c])(n)},function(c){for(s.status="rejected",s.reason=c,c=0;c<r.length;c++)(0,r[c])(void 0)}),s}var Wp=_.S;_.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&M2(e,n),Wp!==null&&Wp(e,n)};var Tr=I(null);function mf(){var e=Tr.current;return e!==null?e:Ie.pooledCache}function Ao(e,n){n===null?Q(Tr,Tr.current):Q(Tr,n.pool)}function eg(){var e=mf();return e===null?null:{parent:ut._currentValue,pool:e}}var Gl=Error(l(460)),tg=Error(l(474)),Co=Error(l(542)),pf={then:function(){}};function ng(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Mo(){}function ag(e,n,r){switch(r=e[r],r===void 0?e.push(n):r!==n&&(n.then(Mo,Mo),n=r),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,ig(e),e;default:if(typeof n.status=="string")n.then(Mo,Mo);else{if(e=Ie,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=n,e.status="pending",e.then(function(s){if(n.status==="pending"){var c=n;c.status="fulfilled",c.value=s}},function(s){if(n.status==="pending"){var c=n;c.status="rejected",c.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,ig(e),e}throw Yl=n,Gl}}var Yl=null;function rg(){if(Yl===null)throw Error(l(459));var e=Yl;return Yl=null,e}function ig(e){if(e===Gl||e===Co)throw Error(l(483))}var Aa=!1;function gf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vf(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ca(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ma(e,n,r){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ve&2)!==0){var c=s.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),s.pending=n,n=wo(e),Qp(e,null,r),n}return bo(e,s,n,r),wo(e)}function Ql(e,n,r){if(n=n.updateQueue,n!==null&&(n=n.shared,(r&4194048)!==0)){var s=n.lanes;s&=e.pendingLanes,r|=s,n.lanes=r,Jm(e,r)}}function yf(e,n){var r=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,r===s)){var c=null,d=null;if(r=r.firstBaseUpdate,r!==null){do{var b={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};d===null?c=d=b:d=d.next=b,r=r.next}while(r!==null);d===null?c=d=n:d=d.next=n}else c=d=n;r={baseState:s.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:s.shared,callbacks:s.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=n:e.next=n,r.lastBaseUpdate=n}var xf=!1;function Xl(){if(xf){var e=vi;if(e!==null)throw e}}function $l(e,n,r,s){xf=!1;var c=e.updateQueue;Aa=!1;var d=c.firstBaseUpdate,b=c.lastBaseUpdate,T=c.shared.pending;if(T!==null){c.shared.pending=null;var O=T,$=O.next;O.next=null,b===null?d=$:b.next=$,b=O;var te=e.alternate;te!==null&&(te=te.updateQueue,T=te.lastBaseUpdate,T!==b&&(T===null?te.firstBaseUpdate=$:T.next=$,te.lastBaseUpdate=O))}if(d!==null){var ie=c.baseState;b=0,te=$=O=null,T=d;do{var K=T.lane&-536870913,Z=K!==T.lane;if(Z?(Le&K)===K:(s&K)===K){K!==0&&K===gi&&(xf=!0),te!==null&&(te=te.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var Ne=e,be=T;K=n;var $e=r;switch(be.tag){case 1:if(Ne=be.payload,typeof Ne=="function"){ie=Ne.call($e,ie,K);break e}ie=Ne;break e;case 3:Ne.flags=Ne.flags&-65537|128;case 0:if(Ne=be.payload,K=typeof Ne=="function"?Ne.call($e,ie,K):Ne,K==null)break e;ie=v({},ie,K);break e;case 2:Aa=!0}}K=T.callback,K!==null&&(e.flags|=64,Z&&(e.flags|=8192),Z=c.callbacks,Z===null?c.callbacks=[K]:Z.push(K))}else Z={lane:K,tag:T.tag,payload:T.payload,callback:T.callback,next:null},te===null?($=te=Z,O=ie):te=te.next=Z,b|=K;if(T=T.next,T===null){if(T=c.shared.pending,T===null)break;Z=T,T=Z.next,Z.next=null,c.lastBaseUpdate=Z,c.shared.pending=null}}while(!0);te===null&&(O=ie),c.baseState=O,c.firstBaseUpdate=$,c.lastBaseUpdate=te,d===null&&(c.shared.lanes=0),Ua|=b,e.lanes=b,e.memoizedState=ie}}function lg(e,n){if(typeof e!="function")throw Error(l(191,e));e.call(n)}function sg(e,n){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)lg(r[e],n)}var yi=I(null),jo=I(0);function og(e,n){e=ua,Q(jo,e),Q(yi,n),ua=e|n.baseLanes}function bf(){Q(jo,ua),Q(yi,yi.current)}function wf(){ua=jo.current,le(yi),le(jo)}var ja=0,Me=null,Qe=null,ot=null,Ro=!1,xi=!1,_r=!1,Oo=0,Fl=0,bi=null,R2=0;function rt(){throw Error(l(321))}function Sf(e,n){if(n===null)return!1;for(var r=0;r<n.length&&r<e.length;r++)if(!$t(e[r],n[r]))return!1;return!0}function Ef(e,n,r,s,c,d){return ja=d,Me=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,_.H=e===null||e.memoizedState===null?Qg:Xg,_r=!1,d=r(s,c),_r=!1,xi&&(d=ug(n,r,s,c)),cg(e),d}function cg(e){_.H=Ho;var n=Qe!==null&&Qe.next!==null;if(ja=0,ot=Qe=Me=null,Ro=!1,Fl=0,bi=null,n)throw Error(l(300));e===null||vt||(e=e.dependencies,e!==null&&To(e)&&(vt=!0))}function ug(e,n,r,s){Me=e;var c=0;do{if(xi&&(bi=null),Fl=0,xi=!1,25<=c)throw Error(l(301));if(c+=1,ot=Qe=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}_.H=H2,d=n(r,s)}while(xi);return d}function O2(){var e=_.H,n=e.useState()[0];return n=typeof n.then=="function"?Kl(n):n,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(Me.flags|=1024),n}function Nf(){var e=Oo!==0;return Oo=0,e}function Tf(e,n,r){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~r}function _f(e){if(Ro){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Ro=!1}ja=0,ot=Qe=Me=null,xi=!1,Fl=Oo=0,bi=null}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?Me.memoizedState=ot=e:ot=ot.next=e,ot}function ct(){if(Qe===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var n=ot===null?Me.memoizedState:ot.next;if(n!==null)ot=n,Qe=e;else{if(e===null)throw Me.alternate===null?Error(l(467)):Error(l(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},ot===null?Me.memoizedState=ot=e:ot=ot.next=e}return ot}function Af(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kl(e){var n=Fl;return Fl+=1,bi===null&&(bi=[]),e=ag(bi,e,n),n=Me,(ot===null?n.memoizedState:ot.next)===null&&(n=n.alternate,_.H=n===null||n.memoizedState===null?Qg:Xg),e}function zo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Kl(e);if(e.$$typeof===R)return At(e)}throw Error(l(438,String(e)))}function Cf(e){var n=null,r=Me.updateQueue;if(r!==null&&(n=r.memoCache),n==null){var s=Me.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(c){return c.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),r===null&&(r=Af(),Me.updateQueue=r),r.memoCache=n,r=n.data[n.index],r===void 0)for(r=n.data[n.index]=Array(e),s=0;s<e;s++)r[s]=fe;return n.index++,r}function ra(e,n){return typeof n=="function"?n(e):n}function Do(e){var n=ct();return Mf(n,Qe,e)}function Mf(e,n,r){var s=e.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=r;var c=e.baseQueue,d=s.pending;if(d!==null){if(c!==null){var b=c.next;c.next=d.next,d.next=b}n.baseQueue=c=d,s.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{n=c.next;var T=b=null,O=null,$=n,te=!1;do{var ie=$.lane&-536870913;if(ie!==$.lane?(Le&ie)===ie:(ja&ie)===ie){var K=$.revertLane;if(K===0)O!==null&&(O=O.next={lane:0,revertLane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),ie===gi&&(te=!0);else if((ja&K)===K){$=$.next,K===gi&&(te=!0);continue}else ie={lane:0,revertLane:$.revertLane,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},O===null?(T=O=ie,b=d):O=O.next=ie,Me.lanes|=K,Ua|=K;ie=$.action,_r&&r(d,ie),d=$.hasEagerState?$.eagerState:r(d,ie)}else K={lane:ie,revertLane:$.revertLane,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},O===null?(T=O=K,b=d):O=O.next=K,Me.lanes|=ie,Ua|=ie;$=$.next}while($!==null&&$!==n);if(O===null?b=d:O.next=T,!$t(d,e.memoizedState)&&(vt=!0,te&&(r=vi,r!==null)))throw r;e.memoizedState=d,e.baseState=b,e.baseQueue=O,s.lastRenderedState=d}return c===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function jf(e){var n=ct(),r=n.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=e;var s=r.dispatch,c=r.pending,d=n.memoizedState;if(c!==null){r.pending=null;var b=c=c.next;do d=e(d,b.action),b=b.next;while(b!==c);$t(d,n.memoizedState)||(vt=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),r.lastRenderedState=d}return[d,s]}function fg(e,n,r){var s=Me,c=ct(),d=qe;if(d){if(r===void 0)throw Error(l(407));r=r()}else r=n();var b=!$t((Qe||c).memoizedState,r);b&&(c.memoizedState=r,vt=!0),c=c.queue;var T=mg.bind(null,s,c,e);if(Il(2048,8,T,[e]),c.getSnapshot!==n||b||ot!==null&&ot.memoizedState.tag&1){if(s.flags|=2048,wi(9,ko(),hg.bind(null,s,c,r,n),null),Ie===null)throw Error(l(349));d||(ja&124)!==0||dg(s,n,r)}return r}function dg(e,n,r){e.flags|=16384,e={getSnapshot:n,value:r},n=Me.updateQueue,n===null?(n=Af(),Me.updateQueue=n,n.stores=[e]):(r=n.stores,r===null?n.stores=[e]:r.push(e))}function hg(e,n,r,s){n.value=r,n.getSnapshot=s,pg(n)&&gg(e)}function mg(e,n,r){return r(function(){pg(n)&&gg(e)})}function pg(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!$t(e,r)}catch{return!0}}function gg(e){var n=di(e,2);n!==null&&Wt(n,e,2)}function Rf(e){var n=Ut();if(typeof e=="function"){var r=e;if(e=r(),_r){Ea(!0);try{r()}finally{Ea(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:e},n}function vg(e,n,r,s){return e.baseState=r,Mf(e,Qe,typeof s=="function"?s:ra)}function z2(e,n,r,s,c){if(Uo(e))throw Error(l(485));if(e=n.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){d.listeners.push(b)}};_.T!==null?r(!0):d.isTransition=!1,s(d),r=n.pending,r===null?(d.next=n.pending=d,yg(n,d)):(d.next=r.next,n.pending=r.next=d)}}function yg(e,n){var r=n.action,s=n.payload,c=e.state;if(n.isTransition){var d=_.T,b={};_.T=b;try{var T=r(c,s),O=_.S;O!==null&&O(b,T),xg(e,n,T)}catch($){Of(e,n,$)}finally{_.T=d}}else try{d=r(c,s),xg(e,n,d)}catch($){Of(e,n,$)}}function xg(e,n,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(s){bg(e,n,s)},function(s){return Of(e,n,s)}):bg(e,n,r)}function bg(e,n,r){n.status="fulfilled",n.value=r,wg(n),e.state=r,n=e.pending,n!==null&&(r=n.next,r===n?e.pending=null:(r=r.next,n.next=r,yg(e,r)))}function Of(e,n,r){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=r,wg(n),n=n.next;while(n!==s)}e.action=null}function wg(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Sg(e,n){return n}function Eg(e,n){if(qe){var r=Ie.formState;if(r!==null){e:{var s=Me;if(qe){if(et){t:{for(var c=et,d=Dn;c.nodeType!==8;){if(!d){c=null;break t}if(c=Sn(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){et=Sn(c.nextSibling),s=c.data==="F!";break e}}Sr(s)}s=!1}s&&(n=r[0])}}return r=Ut(),r.memoizedState=r.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sg,lastRenderedState:n},r.queue=s,r=Vg.bind(null,Me,s),s.dispatch=r,s=Rf(!1),d=Uf.bind(null,Me,!1,s.queue),s=Ut(),c={state:n,dispatch:null,action:e,pending:null},s.queue=c,r=z2.bind(null,Me,c,d,r),c.dispatch=r,s.memoizedState=e,[n,r,!1]}function Ng(e){var n=ct();return Tg(n,Qe,e)}function Tg(e,n,r){if(n=Mf(e,n,Sg)[0],e=Do(ra)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=Kl(n)}catch(b){throw b===Gl?Co:b}else s=n;n=ct();var c=n.queue,d=c.dispatch;return r!==n.memoizedState&&(Me.flags|=2048,wi(9,ko(),D2.bind(null,c,r),null)),[s,d,e]}function D2(e,n){e.action=n}function _g(e){var n=ct(),r=Qe;if(r!==null)return Tg(n,r,e);ct(),n=n.memoizedState,r=ct();var s=r.queue.dispatch;return r.memoizedState=e,[n,s,!1]}function wi(e,n,r,s){return e={tag:e,create:r,deps:s,inst:n,next:null},n=Me.updateQueue,n===null&&(n=Af(),Me.updateQueue=n),r=n.lastEffect,r===null?n.lastEffect=e.next=e:(s=r.next,r.next=e,e.next=s,n.lastEffect=e),e}function ko(){return{destroy:void 0,resource:void 0}}function Ag(){return ct().memoizedState}function Lo(e,n,r,s){var c=Ut();s=s===void 0?null:s,Me.flags|=e,c.memoizedState=wi(1|n,ko(),r,s)}function Il(e,n,r,s){var c=ct();s=s===void 0?null:s;var d=c.memoizedState.inst;Qe!==null&&s!==null&&Sf(s,Qe.memoizedState.deps)?c.memoizedState=wi(n,d,r,s):(Me.flags|=e,c.memoizedState=wi(1|n,d,r,s))}function Cg(e,n){Lo(8390656,8,e,n)}function Mg(e,n){Il(2048,8,e,n)}function jg(e,n){return Il(4,2,e,n)}function Rg(e,n){return Il(4,4,e,n)}function Og(e,n){if(typeof n=="function"){e=e();var r=n(e);return function(){typeof r=="function"?r():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function zg(e,n,r){r=r!=null?r.concat([e]):null,Il(4,4,Og.bind(null,n,e),r)}function zf(){}function Dg(e,n){var r=ct();n=n===void 0?null:n;var s=r.memoizedState;return n!==null&&Sf(n,s[1])?s[0]:(r.memoizedState=[e,n],e)}function kg(e,n){var r=ct();n=n===void 0?null:n;var s=r.memoizedState;if(n!==null&&Sf(n,s[1]))return s[0];if(s=e(),_r){Ea(!0);try{e()}finally{Ea(!1)}}return r.memoizedState=[s,n],s}function Df(e,n,r){return r===void 0||(ja&1073741824)!==0?e.memoizedState=n:(e.memoizedState=r,e=Hv(),Me.lanes|=e,Ua|=e,r)}function Lg(e,n,r,s){return $t(r,n)?r:yi.current!==null?(e=Df(e,r,s),$t(e,n)||(vt=!0),e):(ja&42)===0?(vt=!0,e.memoizedState=r):(e=Hv(),Me.lanes|=e,Ua|=e,n)}function Ug(e,n,r,s,c){var d=P.p;P.p=d!==0&&8>d?d:8;var b=_.T,T={};_.T=T,Uf(e,!1,n,r);try{var O=c(),$=_.S;if($!==null&&$(T,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var te=j2(O,s);Zl(e,n,te,Jt(e))}else Zl(e,n,s,Jt(e))}catch(ie){Zl(e,n,{then:function(){},status:"rejected",reason:ie},Jt())}finally{P.p=d,_.T=b}}function k2(){}function kf(e,n,r,s){if(e.tag!==5)throw Error(l(476));var c=Hg(e).queue;Ug(e,c,n,L,r===null?k2:function(){return Bg(e),r(s)})}function Hg(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:L,baseState:L,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:L},next:null};var r={};return n.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:r},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Bg(e){var n=Hg(e).next.queue;Zl(e,n,{},Jt())}function Lf(){return At(ps)}function qg(){return ct().memoizedState}function Pg(){return ct().memoizedState}function L2(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=Jt();e=Ca(r);var s=Ma(n,e,r);s!==null&&(Wt(s,n,r),Ql(s,n,r)),n={cache:df()},e.payload=n;return}n=n.return}}function U2(e,n,r){var s=Jt();r={lane:s,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null},Uo(e)?Gg(n,r):(r=tf(e,n,r,s),r!==null&&(Wt(r,e,s),Yg(r,n,s)))}function Vg(e,n,r){var s=Jt();Zl(e,n,r,s)}function Zl(e,n,r,s){var c={lane:s,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(Uo(e))Gg(n,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var b=n.lastRenderedState,T=d(b,r);if(c.hasEagerState=!0,c.eagerState=T,$t(T,b))return bo(e,n,c,0),Ie===null&&xo(),!1}catch{}finally{}if(r=tf(e,n,c,s),r!==null)return Wt(r,e,s),Yg(r,n,s),!0}return!1}function Uf(e,n,r,s){if(s={lane:2,revertLane:pd(),action:s,hasEagerState:!1,eagerState:null,next:null},Uo(e)){if(n)throw Error(l(479))}else n=tf(e,r,s,2),n!==null&&Wt(n,e,2)}function Uo(e){var n=e.alternate;return e===Me||n!==null&&n===Me}function Gg(e,n){xi=Ro=!0;var r=e.pending;r===null?n.next=n:(n.next=r.next,r.next=n),e.pending=n}function Yg(e,n,r){if((r&4194048)!==0){var s=n.lanes;s&=e.pendingLanes,r|=s,n.lanes=r,Jm(e,r)}}var Ho={readContext:At,use:zo,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt},Qg={readContext:At,use:zo,useCallback:function(e,n){return Ut().memoizedState=[e,n===void 0?null:n],e},useContext:At,useEffect:Cg,useImperativeHandle:function(e,n,r){r=r!=null?r.concat([e]):null,Lo(4194308,4,Og.bind(null,n,e),r)},useLayoutEffect:function(e,n){return Lo(4194308,4,e,n)},useInsertionEffect:function(e,n){Lo(4,2,e,n)},useMemo:function(e,n){var r=Ut();n=n===void 0?null:n;var s=e();if(_r){Ea(!0);try{e()}finally{Ea(!1)}}return r.memoizedState=[s,n],s},useReducer:function(e,n,r){var s=Ut();if(r!==void 0){var c=r(n);if(_r){Ea(!0);try{r(n)}finally{Ea(!1)}}}else c=n;return s.memoizedState=s.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},s.queue=e,e=e.dispatch=U2.bind(null,Me,e),[s.memoizedState,e]},useRef:function(e){var n=Ut();return e={current:e},n.memoizedState=e},useState:function(e){e=Rf(e);var n=e.queue,r=Vg.bind(null,Me,n);return n.dispatch=r,[e.memoizedState,r]},useDebugValue:zf,useDeferredValue:function(e,n){var r=Ut();return Df(r,e,n)},useTransition:function(){var e=Rf(!1);return e=Ug.bind(null,Me,e.queue,!0,!1),Ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,r){var s=Me,c=Ut();if(qe){if(r===void 0)throw Error(l(407));r=r()}else{if(r=n(),Ie===null)throw Error(l(349));(Le&124)!==0||dg(s,n,r)}c.memoizedState=r;var d={value:r,getSnapshot:n};return c.queue=d,Cg(mg.bind(null,s,d,e),[e]),s.flags|=2048,wi(9,ko(),hg.bind(null,s,d,r,n),null),r},useId:function(){var e=Ut(),n=Ie.identifierPrefix;if(qe){var r=ta,s=ea;r=(s&~(1<<32-Xt(s)-1)).toString(32)+r,n="«"+n+"R"+r,r=Oo++,0<r&&(n+="H"+r.toString(32)),n+="»"}else r=R2++,n="«"+n+"r"+r.toString(32)+"»";return e.memoizedState=n},useHostTransitionStatus:Lf,useFormState:Eg,useActionState:Eg,useOptimistic:function(e){var n=Ut();n.memoizedState=n.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=r,n=Uf.bind(null,Me,!0,r),r.dispatch=n,[e,n]},useMemoCache:Cf,useCacheRefresh:function(){return Ut().memoizedState=L2.bind(null,Me)}},Xg={readContext:At,use:zo,useCallback:Dg,useContext:At,useEffect:Mg,useImperativeHandle:zg,useInsertionEffect:jg,useLayoutEffect:Rg,useMemo:kg,useReducer:Do,useRef:Ag,useState:function(){return Do(ra)},useDebugValue:zf,useDeferredValue:function(e,n){var r=ct();return Lg(r,Qe.memoizedState,e,n)},useTransition:function(){var e=Do(ra)[0],n=ct().memoizedState;return[typeof e=="boolean"?e:Kl(e),n]},useSyncExternalStore:fg,useId:qg,useHostTransitionStatus:Lf,useFormState:Ng,useActionState:Ng,useOptimistic:function(e,n){var r=ct();return vg(r,Qe,e,n)},useMemoCache:Cf,useCacheRefresh:Pg},H2={readContext:At,use:zo,useCallback:Dg,useContext:At,useEffect:Mg,useImperativeHandle:zg,useInsertionEffect:jg,useLayoutEffect:Rg,useMemo:kg,useReducer:jf,useRef:Ag,useState:function(){return jf(ra)},useDebugValue:zf,useDeferredValue:function(e,n){var r=ct();return Qe===null?Df(r,e,n):Lg(r,Qe.memoizedState,e,n)},useTransition:function(){var e=jf(ra)[0],n=ct().memoizedState;return[typeof e=="boolean"?e:Kl(e),n]},useSyncExternalStore:fg,useId:qg,useHostTransitionStatus:Lf,useFormState:_g,useActionState:_g,useOptimistic:function(e,n){var r=ct();return Qe!==null?vg(r,Qe,e,n):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Cf,useCacheRefresh:Pg},Si=null,Jl=0;function Bo(e){var n=Jl;return Jl+=1,Si===null&&(Si=[]),ag(Si,e,n)}function Wl(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function qo(e,n){throw n.$$typeof===y?Error(l(525)):(e=Object.prototype.toString.call(n),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function $g(e){var n=e._init;return n(e._payload)}function Fg(e){function n(Y,U){if(e){var X=Y.deletions;X===null?(Y.deletions=[U],Y.flags|=16):X.push(U)}}function r(Y,U){if(!e)return null;for(;U!==null;)n(Y,U),U=U.sibling;return null}function s(Y){for(var U=new Map;Y!==null;)Y.key!==null?U.set(Y.key,Y):U.set(Y.index,Y),Y=Y.sibling;return U}function c(Y,U){return Y=Wn(Y,U),Y.index=0,Y.sibling=null,Y}function d(Y,U,X){return Y.index=X,e?(X=Y.alternate,X!==null?(X=X.index,X<U?(Y.flags|=67108866,U):X):(Y.flags|=67108866,U)):(Y.flags|=1048576,U)}function b(Y){return e&&Y.alternate===null&&(Y.flags|=67108866),Y}function T(Y,U,X,ne){return U===null||U.tag!==6?(U=af(X,Y.mode,ne),U.return=Y,U):(U=c(U,X),U.return=Y,U)}function O(Y,U,X,ne){var he=X.type;return he===M?te(Y,U,X.props.children,ne,X.key):U!==null&&(U.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===G&&$g(he)===U.type)?(U=c(U,X.props),Wl(U,X),U.return=Y,U):(U=So(X.type,X.key,X.props,null,Y.mode,ne),Wl(U,X),U.return=Y,U)}function $(Y,U,X,ne){return U===null||U.tag!==4||U.stateNode.containerInfo!==X.containerInfo||U.stateNode.implementation!==X.implementation?(U=rf(X,Y.mode,ne),U.return=Y,U):(U=c(U,X.children||[]),U.return=Y,U)}function te(Y,U,X,ne,he){return U===null||U.tag!==7?(U=yr(X,Y.mode,ne,he),U.return=Y,U):(U=c(U,X),U.return=Y,U)}function ie(Y,U,X){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=af(""+U,Y.mode,X),U.return=Y,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case x:return X=So(U.type,U.key,U.props,null,Y.mode,X),Wl(X,U),X.return=Y,X;case S:return U=rf(U,Y.mode,X),U.return=Y,U;case G:var ne=U._init;return U=ne(U._payload),ie(Y,U,X)}if(F(U)||ee(U))return U=yr(U,Y.mode,X,null),U.return=Y,U;if(typeof U.then=="function")return ie(Y,Bo(U),X);if(U.$$typeof===R)return ie(Y,_o(Y,U),X);qo(Y,U)}return null}function K(Y,U,X,ne){var he=U!==null?U.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return he!==null?null:T(Y,U,""+X,ne);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case x:return X.key===he?O(Y,U,X,ne):null;case S:return X.key===he?$(Y,U,X,ne):null;case G:return he=X._init,X=he(X._payload),K(Y,U,X,ne)}if(F(X)||ee(X))return he!==null?null:te(Y,U,X,ne,null);if(typeof X.then=="function")return K(Y,U,Bo(X),ne);if(X.$$typeof===R)return K(Y,U,_o(Y,X),ne);qo(Y,X)}return null}function Z(Y,U,X,ne,he){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return Y=Y.get(X)||null,T(U,Y,""+ne,he);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case x:return Y=Y.get(ne.key===null?X:ne.key)||null,O(U,Y,ne,he);case S:return Y=Y.get(ne.key===null?X:ne.key)||null,$(U,Y,ne,he);case G:var Oe=ne._init;return ne=Oe(ne._payload),Z(Y,U,X,ne,he)}if(F(ne)||ee(ne))return Y=Y.get(X)||null,te(U,Y,ne,he,null);if(typeof ne.then=="function")return Z(Y,U,X,Bo(ne),he);if(ne.$$typeof===R)return Z(Y,U,X,_o(U,ne),he);qo(U,ne)}return null}function Ne(Y,U,X,ne){for(var he=null,Oe=null,ve=U,we=U=0,xt=null;ve!==null&&we<X.length;we++){ve.index>we?(xt=ve,ve=null):xt=ve.sibling;var Be=K(Y,ve,X[we],ne);if(Be===null){ve===null&&(ve=xt);break}e&&ve&&Be.alternate===null&&n(Y,ve),U=d(Be,U,we),Oe===null?he=Be:Oe.sibling=Be,Oe=Be,ve=xt}if(we===X.length)return r(Y,ve),qe&&br(Y,we),he;if(ve===null){for(;we<X.length;we++)ve=ie(Y,X[we],ne),ve!==null&&(U=d(ve,U,we),Oe===null?he=ve:Oe.sibling=ve,Oe=ve);return qe&&br(Y,we),he}for(ve=s(ve);we<X.length;we++)xt=Z(ve,Y,we,X[we],ne),xt!==null&&(e&&xt.alternate!==null&&ve.delete(xt.key===null?we:xt.key),U=d(xt,U,we),Oe===null?he=xt:Oe.sibling=xt,Oe=xt);return e&&ve.forEach(function(Xa){return n(Y,Xa)}),qe&&br(Y,we),he}function be(Y,U,X,ne){if(X==null)throw Error(l(151));for(var he=null,Oe=null,ve=U,we=U=0,xt=null,Be=X.next();ve!==null&&!Be.done;we++,Be=X.next()){ve.index>we?(xt=ve,ve=null):xt=ve.sibling;var Xa=K(Y,ve,Be.value,ne);if(Xa===null){ve===null&&(ve=xt);break}e&&ve&&Xa.alternate===null&&n(Y,ve),U=d(Xa,U,we),Oe===null?he=Xa:Oe.sibling=Xa,Oe=Xa,ve=xt}if(Be.done)return r(Y,ve),qe&&br(Y,we),he;if(ve===null){for(;!Be.done;we++,Be=X.next())Be=ie(Y,Be.value,ne),Be!==null&&(U=d(Be,U,we),Oe===null?he=Be:Oe.sibling=Be,Oe=Be);return qe&&br(Y,we),he}for(ve=s(ve);!Be.done;we++,Be=X.next())Be=Z(ve,Y,we,Be.value,ne),Be!==null&&(e&&Be.alternate!==null&&ve.delete(Be.key===null?we:Be.key),U=d(Be,U,we),Oe===null?he=Be:Oe.sibling=Be,Oe=Be);return e&&ve.forEach(function(BE){return n(Y,BE)}),qe&&br(Y,we),he}function $e(Y,U,X,ne){if(typeof X=="object"&&X!==null&&X.type===M&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case x:e:{for(var he=X.key;U!==null;){if(U.key===he){if(he=X.type,he===M){if(U.tag===7){r(Y,U.sibling),ne=c(U,X.props.children),ne.return=Y,Y=ne;break e}}else if(U.elementType===he||typeof he=="object"&&he!==null&&he.$$typeof===G&&$g(he)===U.type){r(Y,U.sibling),ne=c(U,X.props),Wl(ne,X),ne.return=Y,Y=ne;break e}r(Y,U);break}else n(Y,U);U=U.sibling}X.type===M?(ne=yr(X.props.children,Y.mode,ne,X.key),ne.return=Y,Y=ne):(ne=So(X.type,X.key,X.props,null,Y.mode,ne),Wl(ne,X),ne.return=Y,Y=ne)}return b(Y);case S:e:{for(he=X.key;U!==null;){if(U.key===he)if(U.tag===4&&U.stateNode.containerInfo===X.containerInfo&&U.stateNode.implementation===X.implementation){r(Y,U.sibling),ne=c(U,X.children||[]),ne.return=Y,Y=ne;break e}else{r(Y,U);break}else n(Y,U);U=U.sibling}ne=rf(X,Y.mode,ne),ne.return=Y,Y=ne}return b(Y);case G:return he=X._init,X=he(X._payload),$e(Y,U,X,ne)}if(F(X))return Ne(Y,U,X,ne);if(ee(X)){if(he=ee(X),typeof he!="function")throw Error(l(150));return X=he.call(X),be(Y,U,X,ne)}if(typeof X.then=="function")return $e(Y,U,Bo(X),ne);if(X.$$typeof===R)return $e(Y,U,_o(Y,X),ne);qo(Y,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,U!==null&&U.tag===6?(r(Y,U.sibling),ne=c(U,X),ne.return=Y,Y=ne):(r(Y,U),ne=af(X,Y.mode,ne),ne.return=Y,Y=ne),b(Y)):r(Y,U)}return function(Y,U,X,ne){try{Jl=0;var he=$e(Y,U,X,ne);return Si=null,he}catch(ve){if(ve===Gl||ve===Co)throw ve;var Oe=Ft(29,ve,null,Y.mode);return Oe.lanes=ne,Oe.return=Y,Oe}finally{}}}var Ei=Fg(!0),Kg=Fg(!1),mn=I(null),kn=null;function Ra(e){var n=e.alternate;Q(ft,ft.current&1),Q(mn,e),kn===null&&(n===null||yi.current!==null||n.memoizedState!==null)&&(kn=e)}function Ig(e){if(e.tag===22){if(Q(ft,ft.current),Q(mn,e),kn===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(kn=e)}}else Oa()}function Oa(){Q(ft,ft.current),Q(mn,mn.current)}function ia(e){le(mn),kn===e&&(kn=null),le(ft)}var ft=I(0);function Po(e){for(var n=e;n!==null;){if(n.tag===13){var r=n.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||Ad(r)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Hf(e,n,r,s){n=e.memoizedState,r=r(s,n),r=r==null?n:v({},n,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Bf={enqueueSetState:function(e,n,r){e=e._reactInternals;var s=Jt(),c=Ca(s);c.payload=n,r!=null&&(c.callback=r),n=Ma(e,c,s),n!==null&&(Wt(n,e,s),Ql(n,e,s))},enqueueReplaceState:function(e,n,r){e=e._reactInternals;var s=Jt(),c=Ca(s);c.tag=1,c.payload=n,r!=null&&(c.callback=r),n=Ma(e,c,s),n!==null&&(Wt(n,e,s),Ql(n,e,s))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var r=Jt(),s=Ca(r);s.tag=2,n!=null&&(s.callback=n),n=Ma(e,s,r),n!==null&&(Wt(n,e,r),Ql(n,e,r))}};function Zg(e,n,r,s,c,d,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,d,b):n.prototype&&n.prototype.isPureReactComponent?!kl(r,s)||!kl(c,d):!0}function Jg(e,n,r,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(r,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(r,s),n.state!==e&&Bf.enqueueReplaceState(n,n.state,null)}function Ar(e,n){var r=n;if("ref"in n){r={};for(var s in n)s!=="ref"&&(r[s]=n[s])}if(e=e.defaultProps){r===n&&(r=v({},r));for(var c in e)r[c]===void 0&&(r[c]=e[c])}return r}var Vo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Wg(e){Vo(e)}function ev(e){console.error(e)}function tv(e){Vo(e)}function Go(e,n){try{var r=e.onUncaughtError;r(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function nv(e,n,r){try{var s=e.onCaughtError;s(r.value,{componentStack:r.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function qf(e,n,r){return r=Ca(r),r.tag=3,r.payload={element:null},r.callback=function(){Go(e,n)},r}function av(e){return e=Ca(e),e.tag=3,e}function rv(e,n,r,s){var c=r.type.getDerivedStateFromError;if(typeof c=="function"){var d=s.value;e.payload=function(){return c(d)},e.callback=function(){nv(n,r,s)}}var b=r.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){nv(n,r,s),typeof c!="function"&&(Ha===null?Ha=new Set([this]):Ha.add(this));var T=s.stack;this.componentDidCatch(s.value,{componentStack:T!==null?T:""})})}function B2(e,n,r,s,c){if(r.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=r.alternate,n!==null&&ql(n,r,c,!0),r=mn.current,r!==null){switch(r.tag){case 13:return kn===null?ud():r.alternate===null&&tt===0&&(tt=3),r.flags&=-257,r.flags|=65536,r.lanes=c,s===pf?r.flags|=16384:(n=r.updateQueue,n===null?r.updateQueue=new Set([s]):n.add(s),dd(e,s,c)),!1;case 22:return r.flags|=65536,s===pf?r.flags|=16384:(n=r.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},r.updateQueue=n):(r=n.retryQueue,r===null?n.retryQueue=new Set([s]):r.add(s)),dd(e,s,c)),!1}throw Error(l(435,r.tag))}return dd(e,s,c),ud(),!1}if(qe)return n=mn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=c,s!==of&&(e=Error(l(422),{cause:s}),Bl(un(e,r)))):(s!==of&&(n=Error(l(423),{cause:s}),Bl(un(n,r))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,s=un(s,r),c=qf(e.stateNode,s,c),yf(e,c),tt!==4&&(tt=2)),!1;var d=Error(l(520),{cause:s});if(d=un(d,r),ls===null?ls=[d]:ls.push(d),tt!==4&&(tt=2),n===null)return!0;s=un(s,r),r=n;do{switch(r.tag){case 3:return r.flags|=65536,e=c&-c,r.lanes|=e,e=qf(r.stateNode,s,e),yf(r,e),!1;case 1:if(n=r.type,d=r.stateNode,(r.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Ha===null||!Ha.has(d))))return r.flags|=65536,c&=-c,r.lanes|=c,c=av(c),rv(c,e,r,s),yf(r,c),!1}r=r.return}while(r!==null);return!1}var iv=Error(l(461)),vt=!1;function wt(e,n,r,s){n.child=e===null?Kg(n,null,r,s):Ei(n,e.child,r,s)}function lv(e,n,r,s,c){r=r.render;var d=n.ref;if("ref"in s){var b={};for(var T in s)T!=="ref"&&(b[T]=s[T])}else b=s;return Nr(n),s=Ef(e,n,r,b,d,c),T=Nf(),e!==null&&!vt?(Tf(e,n,c),la(e,n,c)):(qe&&T&&lf(n),n.flags|=1,wt(e,n,s,c),n.child)}function sv(e,n,r,s,c){if(e===null){var d=r.type;return typeof d=="function"&&!nf(d)&&d.defaultProps===void 0&&r.compare===null?(n.tag=15,n.type=d,ov(e,n,d,s,c)):(e=So(r.type,null,s,n,n.mode,c),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,!Ff(e,c)){var b=d.memoizedProps;if(r=r.compare,r=r!==null?r:kl,r(b,s)&&e.ref===n.ref)return la(e,n,c)}return n.flags|=1,e=Wn(d,s),e.ref=n.ref,e.return=n,n.child=e}function ov(e,n,r,s,c){if(e!==null){var d=e.memoizedProps;if(kl(d,s)&&e.ref===n.ref)if(vt=!1,n.pendingProps=s=d,Ff(e,c))(e.flags&131072)!==0&&(vt=!0);else return n.lanes=e.lanes,la(e,n,c)}return Pf(e,n,r,s,c)}function cv(e,n,r){var s=n.pendingProps,c=s.children,d=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((n.flags&128)!==0){if(s=d!==null?d.baseLanes|r:r,e!==null){for(c=n.child=e.child,d=0;c!==null;)d=d|c.lanes|c.childLanes,c=c.sibling;n.childLanes=d&~s}else n.childLanes=0,n.child=null;return uv(e,n,s,r)}if((r&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ao(n,d!==null?d.cachePool:null),d!==null?og(n,d):bf(),Ig(n);else return n.lanes=n.childLanes=536870912,uv(e,n,d!==null?d.baseLanes|r:r,r)}else d!==null?(Ao(n,d.cachePool),og(n,d),Oa(),n.memoizedState=null):(e!==null&&Ao(n,null),bf(),Oa());return wt(e,n,c,r),n.child}function uv(e,n,r,s){var c=mf();return c=c===null?null:{parent:ut._currentValue,pool:c},n.memoizedState={baseLanes:r,cachePool:c},e!==null&&Ao(n,null),bf(),Ig(n),e!==null&&ql(e,n,s,!0),null}function Yo(e,n){var r=n.ref;if(r===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(l(284));(e===null||e.ref!==r)&&(n.flags|=4194816)}}function Pf(e,n,r,s,c){return Nr(n),r=Ef(e,n,r,s,void 0,c),s=Nf(),e!==null&&!vt?(Tf(e,n,c),la(e,n,c)):(qe&&s&&lf(n),n.flags|=1,wt(e,n,r,c),n.child)}function fv(e,n,r,s,c,d){return Nr(n),n.updateQueue=null,r=ug(n,s,r,c),cg(e),s=Nf(),e!==null&&!vt?(Tf(e,n,d),la(e,n,d)):(qe&&s&&lf(n),n.flags|=1,wt(e,n,r,d),n.child)}function dv(e,n,r,s,c){if(Nr(n),n.stateNode===null){var d=hi,b=r.contextType;typeof b=="object"&&b!==null&&(d=At(b)),d=new r(s,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Bf,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=s,d.state=n.memoizedState,d.refs={},gf(n),b=r.contextType,d.context=typeof b=="object"&&b!==null?At(b):hi,d.state=n.memoizedState,b=r.getDerivedStateFromProps,typeof b=="function"&&(Hf(n,r,b,s),d.state=n.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(b=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),b!==d.state&&Bf.enqueueReplaceState(d,d.state,null),$l(n,s,d,c),Xl(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(e===null){d=n.stateNode;var T=n.memoizedProps,O=Ar(r,T);d.props=O;var $=d.context,te=r.contextType;b=hi,typeof te=="object"&&te!==null&&(b=At(te));var ie=r.getDerivedStateFromProps;te=typeof ie=="function"||typeof d.getSnapshotBeforeUpdate=="function",T=n.pendingProps!==T,te||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(T||$!==b)&&Jg(n,d,s,b),Aa=!1;var K=n.memoizedState;d.state=K,$l(n,s,d,c),Xl(),$=n.memoizedState,T||K!==$||Aa?(typeof ie=="function"&&(Hf(n,r,ie,s),$=n.memoizedState),(O=Aa||Zg(n,r,O,s,K,$,b))?(te||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(n.flags|=4194308)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=$),d.props=s,d.state=$,d.context=b,s=O):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{d=n.stateNode,vf(e,n),b=n.memoizedProps,te=Ar(r,b),d.props=te,ie=n.pendingProps,K=d.context,$=r.contextType,O=hi,typeof $=="object"&&$!==null&&(O=At($)),T=r.getDerivedStateFromProps,($=typeof T=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b!==ie||K!==O)&&Jg(n,d,s,O),Aa=!1,K=n.memoizedState,d.state=K,$l(n,s,d,c),Xl();var Z=n.memoizedState;b!==ie||K!==Z||Aa||e!==null&&e.dependencies!==null&&To(e.dependencies)?(typeof T=="function"&&(Hf(n,r,T,s),Z=n.memoizedState),(te=Aa||Zg(n,r,te,s,K,Z,O)||e!==null&&e.dependencies!==null&&To(e.dependencies))?($||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(s,Z,O),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(s,Z,O)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||b===e.memoizedProps&&K===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&K===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=Z),d.props=s,d.state=Z,d.context=O,s=te):(typeof d.componentDidUpdate!="function"||b===e.memoizedProps&&K===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&K===e.memoizedState||(n.flags|=1024),s=!1)}return d=s,Yo(e,n),s=(n.flags&128)!==0,d||s?(d=n.stateNode,r=s&&typeof r.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,e!==null&&s?(n.child=Ei(n,e.child,null,c),n.child=Ei(n,null,r,c)):wt(e,n,r,c),n.memoizedState=d.state,e=n.child):e=la(e,n,c),e}function hv(e,n,r,s){return Hl(),n.flags|=256,wt(e,n,r,s),n.child}var Vf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gf(e){return{baseLanes:e,cachePool:eg()}}function Yf(e,n,r){return e=e!==null?e.childLanes&~r:0,n&&(e|=pn),e}function mv(e,n,r){var s=n.pendingProps,c=!1,d=(n.flags&128)!==0,b;if((b=d)||(b=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),b&&(c=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(qe){if(c?Ra(n):Oa(),qe){var T=et,O;if(O=T){e:{for(O=T,T=Dn;O.nodeType!==8;){if(!T){T=null;break e}if(O=Sn(O.nextSibling),O===null){T=null;break e}}T=O}T!==null?(n.memoizedState={dehydrated:T,treeContext:xr!==null?{id:ea,overflow:ta}:null,retryLane:536870912,hydrationErrors:null},O=Ft(18,null,null,0),O.stateNode=T,O.return=n,n.child=O,jt=n,et=null,O=!0):O=!1}O||Sr(n)}if(T=n.memoizedState,T!==null&&(T=T.dehydrated,T!==null))return Ad(T)?n.lanes=32:n.lanes=536870912,null;ia(n)}return T=s.children,s=s.fallback,c?(Oa(),c=n.mode,T=Qo({mode:"hidden",children:T},c),s=yr(s,c,r,null),T.return=n,s.return=n,T.sibling=s,n.child=T,c=n.child,c.memoizedState=Gf(r),c.childLanes=Yf(e,b,r),n.memoizedState=Vf,s):(Ra(n),Qf(n,T))}if(O=e.memoizedState,O!==null&&(T=O.dehydrated,T!==null)){if(d)n.flags&256?(Ra(n),n.flags&=-257,n=Xf(e,n,r)):n.memoizedState!==null?(Oa(),n.child=e.child,n.flags|=128,n=null):(Oa(),c=s.fallback,T=n.mode,s=Qo({mode:"visible",children:s.children},T),c=yr(c,T,r,null),c.flags|=2,s.return=n,c.return=n,s.sibling=c,n.child=s,Ei(n,e.child,null,r),s=n.child,s.memoizedState=Gf(r),s.childLanes=Yf(e,b,r),n.memoizedState=Vf,n=c);else if(Ra(n),Ad(T)){if(b=T.nextSibling&&T.nextSibling.dataset,b)var $=b.dgst;b=$,s=Error(l(419)),s.stack="",s.digest=b,Bl({value:s,source:null,stack:null}),n=Xf(e,n,r)}else if(vt||ql(e,n,r,!1),b=(r&e.childLanes)!==0,vt||b){if(b=Ie,b!==null&&(s=r&-r,s=(s&42)!==0?1:Au(s),s=(s&(b.suspendedLanes|r))!==0?0:s,s!==0&&s!==O.retryLane))throw O.retryLane=s,di(e,s),Wt(b,e,s),iv;T.data==="$?"||ud(),n=Xf(e,n,r)}else T.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=O.treeContext,et=Sn(T.nextSibling),jt=n,qe=!0,wr=null,Dn=!1,e!==null&&(dn[hn++]=ea,dn[hn++]=ta,dn[hn++]=xr,ea=e.id,ta=e.overflow,xr=n),n=Qf(n,s.children),n.flags|=4096);return n}return c?(Oa(),c=s.fallback,T=n.mode,O=e.child,$=O.sibling,s=Wn(O,{mode:"hidden",children:s.children}),s.subtreeFlags=O.subtreeFlags&65011712,$!==null?c=Wn($,c):(c=yr(c,T,r,null),c.flags|=2),c.return=n,s.return=n,s.sibling=c,n.child=s,s=c,c=n.child,T=e.child.memoizedState,T===null?T=Gf(r):(O=T.cachePool,O!==null?($=ut._currentValue,O=O.parent!==$?{parent:$,pool:$}:O):O=eg(),T={baseLanes:T.baseLanes|r,cachePool:O}),c.memoizedState=T,c.childLanes=Yf(e,b,r),n.memoizedState=Vf,s):(Ra(n),r=e.child,e=r.sibling,r=Wn(r,{mode:"visible",children:s.children}),r.return=n,r.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=r,n.memoizedState=null,r)}function Qf(e,n){return n=Qo({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Qo(e,n){return e=Ft(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Xf(e,n,r){return Ei(n,e.child,null,r),e=Qf(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function pv(e,n,r){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),uf(e.return,n,r)}function $f(e,n,r,s,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:r,tailMode:c}:(d.isBackwards=n,d.rendering=null,d.renderingStartTime=0,d.last=s,d.tail=r,d.tailMode=c)}function gv(e,n,r){var s=n.pendingProps,c=s.revealOrder,d=s.tail;if(wt(e,n,s.children,r),s=ft.current,(s&2)!==0)s=s&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pv(e,r,n);else if(e.tag===19)pv(e,r,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}switch(Q(ft,s),c){case"forwards":for(r=n.child,c=null;r!==null;)e=r.alternate,e!==null&&Po(e)===null&&(c=r),r=r.sibling;r=c,r===null?(c=n.child,n.child=null):(c=r.sibling,r.sibling=null),$f(n,!1,c,r,d);break;case"backwards":for(r=null,c=n.child,n.child=null;c!==null;){if(e=c.alternate,e!==null&&Po(e)===null){n.child=c;break}e=c.sibling,c.sibling=r,r=c,c=e}$f(n,!0,r,null,d);break;case"together":$f(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function la(e,n,r){if(e!==null&&(n.dependencies=e.dependencies),Ua|=n.lanes,(r&n.childLanes)===0)if(e!==null){if(ql(e,n,r,!1),(r&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(l(153));if(n.child!==null){for(e=n.child,r=Wn(e,e.pendingProps),n.child=r,r.return=n;e.sibling!==null;)e=e.sibling,r=r.sibling=Wn(e,e.pendingProps),r.return=n;r.sibling=null}return n.child}function Ff(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&To(e)))}function q2(e,n,r){switch(n.tag){case 3:ce(n,n.stateNode.containerInfo),_a(n,ut,e.memoizedState.cache),Hl();break;case 27:case 5:ye(n);break;case 4:ce(n,n.stateNode.containerInfo);break;case 10:_a(n,n.type,n.memoizedProps.value);break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(Ra(n),n.flags|=128,null):(r&n.child.childLanes)!==0?mv(e,n,r):(Ra(n),e=la(e,n,r),e!==null?e.sibling:null);Ra(n);break;case 19:var c=(e.flags&128)!==0;if(s=(r&n.childLanes)!==0,s||(ql(e,n,r,!1),s=(r&n.childLanes)!==0),c){if(s)return gv(e,n,r);n.flags|=128}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Q(ft,ft.current),s)break;return null;case 22:case 23:return n.lanes=0,cv(e,n,r);case 24:_a(n,ut,e.memoizedState.cache)}return la(e,n,r)}function vv(e,n,r){if(e!==null)if(e.memoizedProps!==n.pendingProps)vt=!0;else{if(!Ff(e,r)&&(n.flags&128)===0)return vt=!1,q2(e,n,r);vt=(e.flags&131072)!==0}else vt=!1,qe&&(n.flags&1048576)!==0&&$p(n,No,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var s=n.elementType,c=s._init;if(s=c(s._payload),n.type=s,typeof s=="function")nf(s)?(e=Ar(s,e),n.tag=1,n=dv(null,n,s,e,r)):(n.tag=0,n=Pf(null,n,s,e,r));else{if(s!=null){if(c=s.$$typeof,c===H){n.tag=11,n=lv(null,n,s,e,r);break e}else if(c===V){n.tag=14,n=sv(null,n,s,e,r);break e}}throw n=C(s)||s,Error(l(306,n,""))}}return n;case 0:return Pf(e,n,n.type,n.pendingProps,r);case 1:return s=n.type,c=Ar(s,n.pendingProps),dv(e,n,s,c,r);case 3:e:{if(ce(n,n.stateNode.containerInfo),e===null)throw Error(l(387));s=n.pendingProps;var d=n.memoizedState;c=d.element,vf(e,n),$l(n,s,null,r);var b=n.memoizedState;if(s=b.cache,_a(n,ut,s),s!==d.cache&&ff(n,[ut],r,!0),Xl(),s=b.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=hv(e,n,s,r);break e}else if(s!==c){c=un(Error(l(424)),n),Bl(c),n=hv(e,n,s,r);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(et=Sn(e.firstChild),jt=n,qe=!0,wr=null,Dn=!0,r=Kg(n,null,s,r),n.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(Hl(),s===c){n=la(e,n,r);break e}wt(e,n,s,r)}n=n.child}return n;case 26:return Yo(e,n),e===null?(r=wy(n.type,null,n.pendingProps,null))?n.memoizedState=r:qe||(r=n.type,e=n.pendingProps,s=ic(se.current).createElement(r),s[_t]=n,s[kt]=e,Et(s,r,e),gt(s),n.stateNode=s):n.memoizedState=wy(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return ye(n),e===null&&qe&&(s=n.stateNode=yy(n.type,n.pendingProps,se.current),jt=n,Dn=!0,c=et,Pa(n.type)?(Cd=c,et=Sn(s.firstChild)):et=c),wt(e,n,n.pendingProps.children,r),Yo(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&qe&&((c=s=et)&&(s=mE(s,n.type,n.pendingProps,Dn),s!==null?(n.stateNode=s,jt=n,et=Sn(s.firstChild),Dn=!1,c=!0):c=!1),c||Sr(n)),ye(n),c=n.type,d=n.pendingProps,b=e!==null?e.memoizedProps:null,s=d.children,Nd(c,d)?s=null:b!==null&&Nd(c,b)&&(n.flags|=32),n.memoizedState!==null&&(c=Ef(e,n,O2,null,null,r),ps._currentValue=c),Yo(e,n),wt(e,n,s,r),n.child;case 6:return e===null&&qe&&((e=r=et)&&(r=pE(r,n.pendingProps,Dn),r!==null?(n.stateNode=r,jt=n,et=null,e=!0):e=!1),e||Sr(n)),null;case 13:return mv(e,n,r);case 4:return ce(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=Ei(n,null,s,r):wt(e,n,s,r),n.child;case 11:return lv(e,n,n.type,n.pendingProps,r);case 7:return wt(e,n,n.pendingProps,r),n.child;case 8:return wt(e,n,n.pendingProps.children,r),n.child;case 12:return wt(e,n,n.pendingProps.children,r),n.child;case 10:return s=n.pendingProps,_a(n,n.type,s.value),wt(e,n,s.children,r),n.child;case 9:return c=n.type._context,s=n.pendingProps.children,Nr(n),c=At(c),s=s(c),n.flags|=1,wt(e,n,s,r),n.child;case 14:return sv(e,n,n.type,n.pendingProps,r);case 15:return ov(e,n,n.type,n.pendingProps,r);case 19:return gv(e,n,r);case 31:return s=n.pendingProps,r=n.mode,s={mode:s.mode,children:s.children},e===null?(r=Qo(s,r),r.ref=n.ref,n.child=r,r.return=n,n=r):(r=Wn(e.child,s),r.ref=n.ref,n.child=r,r.return=n,n=r),n;case 22:return cv(e,n,r);case 24:return Nr(n),s=At(ut),e===null?(c=mf(),c===null&&(c=Ie,d=df(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=r),c=d),n.memoizedState={parent:s,cache:c},gf(n),_a(n,ut,c)):((e.lanes&r)!==0&&(vf(e,n),$l(n,null,null,r),Xl()),c=e.memoizedState,d=n.memoizedState,c.parent!==s?(c={parent:s,cache:s},n.memoizedState=c,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=c),_a(n,ut,s)):(s=d.cache,_a(n,ut,s),s!==c.cache&&ff(n,[ut],r,!0))),wt(e,n,n.pendingProps.children,r),n.child;case 29:throw n.pendingProps}throw Error(l(156,n.tag))}function sa(e){e.flags|=4}function yv(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!_y(n)){if(n=mn.current,n!==null&&((Le&4194048)===Le?kn!==null:(Le&62914560)!==Le&&(Le&536870912)===0||n!==kn))throw Yl=pf,tg;e.flags|=8192}}function Xo(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Im():536870912,e.lanes|=n,Ai|=n)}function es(e,n){if(!qe)switch(e.tailMode){case"hidden":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Je(e){var n=e.alternate!==null&&e.alternate.child===e.child,r=0,s=0;if(n)for(var c=e.child;c!==null;)r|=c.lanes|c.childLanes,s|=c.subtreeFlags&65011712,s|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)r|=c.lanes|c.childLanes,s|=c.subtreeFlags,s|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=s,e.childLanes=r,n}function P2(e,n,r){var s=n.pendingProps;switch(sf(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(n),null;case 1:return Je(n),null;case 3:return r=n.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),aa(ut),ge(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ul(n)?sa(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ip())),Je(n),null;case 26:return r=n.memoizedState,e===null?(sa(n),r!==null?(Je(n),yv(n,r)):(Je(n),n.flags&=-16777217)):r?r!==e.memoizedState?(sa(n),Je(n),yv(n,r)):(Je(n),n.flags&=-16777217):(e.memoizedProps!==s&&sa(n),Je(n),n.flags&=-16777217),null;case 27:Se(n),r=se.current;var c=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==s&&sa(n);else{if(!s){if(n.stateNode===null)throw Error(l(166));return Je(n),null}e=J.current,Ul(n)?Fp(n):(e=yy(c,s,r),n.stateNode=e,sa(n))}return Je(n),null;case 5:if(Se(n),r=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&sa(n);else{if(!s){if(n.stateNode===null)throw Error(l(166));return Je(n),null}if(e=J.current,Ul(n))Fp(n);else{switch(c=ic(se.current),e){case 1:e=c.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:e=c.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":e=c.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":e=c.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof s.is=="string"?c.createElement("select",{is:s.is}):c.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?c.createElement(r,{is:s.is}):c.createElement(r)}}e[_t]=n,e[kt]=s;e:for(c=n.child;c!==null;){if(c.tag===5||c.tag===6)e.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===n)break e;for(;c.sibling===null;){if(c.return===null||c.return===n)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}n.stateNode=e;e:switch(Et(e,r,s),r){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&sa(n)}}return Je(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==s&&sa(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(l(166));if(e=se.current,Ul(n)){if(e=n.stateNode,r=n.memoizedProps,s=null,c=jt,c!==null)switch(c.tag){case 27:case 5:s=c.memoizedProps}e[_t]=n,e=!!(e.nodeValue===r||s!==null&&s.suppressHydrationWarning===!0||fy(e.nodeValue,r)),e||Sr(n)}else e=ic(e).createTextNode(s),e[_t]=n,n.stateNode=e}return Je(n),null;case 13:if(s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Ul(n),s!==null&&s.dehydrated!==null){if(e===null){if(!c)throw Error(l(318));if(c=n.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(l(317));c[_t]=n}else Hl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Je(n),c=!1}else c=Ip(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return n.flags&256?(ia(n),n):(ia(n),null)}if(ia(n),(n.flags&128)!==0)return n.lanes=r,n;if(r=s!==null,e=e!==null&&e.memoizedState!==null,r){s=n.child,c=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(c=s.alternate.memoizedState.cachePool.pool);var d=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),d!==c&&(s.flags|=2048)}return r!==e&&r&&(n.child.flags|=8192),Xo(n,n.updateQueue),Je(n),null;case 4:return ge(),e===null&&xd(n.stateNode.containerInfo),Je(n),null;case 10:return aa(n.type),Je(n),null;case 19:if(le(ft),c=n.memoizedState,c===null)return Je(n),null;if(s=(n.flags&128)!==0,d=c.rendering,d===null)if(s)es(c,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(d=Po(e),d!==null){for(n.flags|=128,es(c,!1),e=d.updateQueue,n.updateQueue=e,Xo(n,e),n.subtreeFlags=0,e=r,r=n.child;r!==null;)Xp(r,e),r=r.sibling;return Q(ft,ft.current&1|2),n.child}e=e.sibling}c.tail!==null&&st()>Ko&&(n.flags|=128,s=!0,es(c,!1),n.lanes=4194304)}else{if(!s)if(e=Po(d),e!==null){if(n.flags|=128,s=!0,e=e.updateQueue,n.updateQueue=e,Xo(n,e),es(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!qe)return Je(n),null}else 2*st()-c.renderingStartTime>Ko&&r!==536870912&&(n.flags|=128,s=!0,es(c,!1),n.lanes=4194304);c.isBackwards?(d.sibling=n.child,n.child=d):(e=c.last,e!==null?e.sibling=d:n.child=d,c.last=d)}return c.tail!==null?(n=c.tail,c.rendering=n,c.tail=n.sibling,c.renderingStartTime=st(),n.sibling=null,e=ft.current,Q(ft,s?e&1|2:e&1),n):(Je(n),null);case 22:case 23:return ia(n),wf(),s=n.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(r&536870912)!==0&&(n.flags&128)===0&&(Je(n),n.subtreeFlags&6&&(n.flags|=8192)):Je(n),r=n.updateQueue,r!==null&&Xo(n,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==r&&(n.flags|=2048),e!==null&&le(Tr),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),aa(ut),Je(n),null;case 25:return null;case 30:return null}throw Error(l(156,n.tag))}function V2(e,n){switch(sf(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return aa(ut),ge(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Se(n),null;case 13:if(ia(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(l(340));Hl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return le(ft),null;case 4:return ge(),null;case 10:return aa(n.type),null;case 22:case 23:return ia(n),wf(),e!==null&&le(Tr),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return aa(ut),null;case 25:return null;default:return null}}function xv(e,n){switch(sf(n),n.tag){case 3:aa(ut),ge();break;case 26:case 27:case 5:Se(n);break;case 4:ge();break;case 13:ia(n);break;case 19:le(ft);break;case 10:aa(n.type);break;case 22:case 23:ia(n),wf(),e!==null&&le(Tr);break;case 24:aa(ut)}}function ts(e,n){try{var r=n.updateQueue,s=r!==null?r.lastEffect:null;if(s!==null){var c=s.next;r=c;do{if((r.tag&e)===e){s=void 0;var d=r.create,b=r.inst;s=d(),b.destroy=s}r=r.next}while(r!==c)}}catch(T){Fe(n,n.return,T)}}function za(e,n,r){try{var s=n.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var d=c.next;s=d;do{if((s.tag&e)===e){var b=s.inst,T=b.destroy;if(T!==void 0){b.destroy=void 0,c=n;var O=r,$=T;try{$()}catch(te){Fe(c,O,te)}}}s=s.next}while(s!==d)}}catch(te){Fe(n,n.return,te)}}function bv(e){var n=e.updateQueue;if(n!==null){var r=e.stateNode;try{sg(n,r)}catch(s){Fe(e,e.return,s)}}}function wv(e,n,r){r.props=Ar(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(s){Fe(e,n,s)}}function ns(e,n){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof r=="function"?e.refCleanup=r(s):r.current=s}}catch(c){Fe(e,n,c)}}function Ln(e,n){var r=e.ref,s=e.refCleanup;if(r!==null)if(typeof s=="function")try{s()}catch(c){Fe(e,n,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(c){Fe(e,n,c)}else r.current=null}function Sv(e){var n=e.type,r=e.memoizedProps,s=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":r.autoFocus&&s.focus();break e;case"img":r.src?s.src=r.src:r.srcSet&&(s.srcset=r.srcSet)}}catch(c){Fe(e,e.return,c)}}function Kf(e,n,r){try{var s=e.stateNode;cE(s,e.type,r,n),s[kt]=n}catch(c){Fe(e,e.return,c)}}function Ev(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Pa(e.type)||e.tag===4}function If(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ev(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&&Pa(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 Zf(e,n,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,n):(n=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,n.appendChild(e),r=r._reactRootContainer,r!=null||n.onclick!==null||(n.onclick=rc));else if(s!==4&&(s===27&&Pa(e.type)&&(r=e.stateNode,n=null),e=e.child,e!==null))for(Zf(e,n,r),e=e.sibling;e!==null;)Zf(e,n,r),e=e.sibling}function $o(e,n,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?r.insertBefore(e,n):r.appendChild(e);else if(s!==4&&(s===27&&Pa(e.type)&&(r=e.stateNode),e=e.child,e!==null))for($o(e,n,r),e=e.sibling;e!==null;)$o(e,n,r),e=e.sibling}function Nv(e){var n=e.stateNode,r=e.memoizedProps;try{for(var s=e.type,c=n.attributes;c.length;)n.removeAttributeNode(c[0]);Et(n,s,r),n[_t]=e,n[kt]=r}catch(d){Fe(e,e.return,d)}}var oa=!1,it=!1,Jf=!1,Tv=typeof WeakSet=="function"?WeakSet:Set,yt=null;function G2(e,n){if(e=e.containerInfo,Sd=fc,e=Lp(e),Ku(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var s=r.getSelection&&r.getSelection();if(s&&s.rangeCount!==0){r=s.anchorNode;var c=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{r.nodeType,d.nodeType}catch{r=null;break e}var b=0,T=-1,O=-1,$=0,te=0,ie=e,K=null;t:for(;;){for(var Z;ie!==r||c!==0&&ie.nodeType!==3||(T=b+c),ie!==d||s!==0&&ie.nodeType!==3||(O=b+s),ie.nodeType===3&&(b+=ie.nodeValue.length),(Z=ie.firstChild)!==null;)K=ie,ie=Z;for(;;){if(ie===e)break t;if(K===r&&++$===c&&(T=b),K===d&&++te===s&&(O=b),(Z=ie.nextSibling)!==null)break;ie=K,K=ie.parentNode}ie=Z}r=T===-1||O===-1?null:{start:T,end:O}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ed={focusedElem:e,selectionRange:r},fc=!1,yt=n;yt!==null;)if(n=yt,e=n.child,(n.subtreeFlags&1024)!==0&&e!==null)e.return=n,yt=e;else for(;yt!==null;){switch(n=yt,d=n.alternate,e=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,r=n,c=d.memoizedProps,d=d.memoizedState,s=r.stateNode;try{var Ne=Ar(r.type,c,r.elementType===r.type);e=s.getSnapshotBeforeUpdate(Ne,d),s.__reactInternalSnapshotBeforeUpdate=e}catch(be){Fe(r,r.return,be)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,r=e.nodeType,r===9)_d(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":_d(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(l(163))}if(e=n.sibling,e!==null){e.return=n.return,yt=e;break}yt=n.return}}function _v(e,n,r){var s=r.flags;switch(r.tag){case 0:case 11:case 15:Da(e,r),s&4&&ts(5,r);break;case 1:if(Da(e,r),s&4)if(e=r.stateNode,n===null)try{e.componentDidMount()}catch(b){Fe(r,r.return,b)}else{var c=Ar(r.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(c,n,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Fe(r,r.return,b)}}s&64&&bv(r),s&512&&ns(r,r.return);break;case 3:if(Da(e,r),s&64&&(e=r.updateQueue,e!==null)){if(n=null,r.child!==null)switch(r.child.tag){case 27:case 5:n=r.child.stateNode;break;case 1:n=r.child.stateNode}try{sg(e,n)}catch(b){Fe(r,r.return,b)}}break;case 27:n===null&&s&4&&Nv(r);case 26:case 5:Da(e,r),n===null&&s&4&&Sv(r),s&512&&ns(r,r.return);break;case 12:Da(e,r);break;case 13:Da(e,r),s&4&&Mv(e,r),s&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=J2.bind(null,r),gE(e,r))));break;case 22:if(s=r.memoizedState!==null||oa,!s){n=n!==null&&n.memoizedState!==null||it,c=oa;var d=it;oa=s,(it=n)&&!d?ka(e,r,(r.subtreeFlags&8772)!==0):Da(e,r),oa=c,it=d}break;case 30:break;default:Da(e,r)}}function Av(e){var n=e.alternate;n!==null&&(e.alternate=null,Av(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&ju(n)),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 Ze=null,Ht=!1;function ca(e,n,r){for(r=r.child;r!==null;)Cv(e,n,r),r=r.sibling}function Cv(e,n,r){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(El,r)}catch{}switch(r.tag){case 26:it||Ln(r,n),ca(e,n,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:it||Ln(r,n);var s=Ze,c=Ht;Pa(r.type)&&(Ze=r.stateNode,Ht=!1),ca(e,n,r),fs(r.stateNode),Ze=s,Ht=c;break;case 5:it||Ln(r,n);case 6:if(s=Ze,c=Ht,Ze=null,ca(e,n,r),Ze=s,Ht=c,Ze!==null)if(Ht)try{(Ze.nodeType===9?Ze.body:Ze.nodeName==="HTML"?Ze.ownerDocument.body:Ze).removeChild(r.stateNode)}catch(d){Fe(r,n,d)}else try{Ze.removeChild(r.stateNode)}catch(d){Fe(r,n,d)}break;case 18:Ze!==null&&(Ht?(e=Ze,gy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),xs(e)):gy(Ze,r.stateNode));break;case 4:s=Ze,c=Ht,Ze=r.stateNode.containerInfo,Ht=!0,ca(e,n,r),Ze=s,Ht=c;break;case 0:case 11:case 14:case 15:it||za(2,r,n),it||za(4,r,n),ca(e,n,r);break;case 1:it||(Ln(r,n),s=r.stateNode,typeof s.componentWillUnmount=="function"&&wv(r,n,s)),ca(e,n,r);break;case 21:ca(e,n,r);break;case 22:it=(s=it)||r.memoizedState!==null,ca(e,n,r),it=s;break;default:ca(e,n,r)}}function Mv(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{xs(e)}catch(r){Fe(n,n.return,r)}}function Y2(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Tv),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Tv),n;default:throw Error(l(435,e.tag))}}function Wf(e,n){var r=Y2(e);n.forEach(function(s){var c=W2.bind(null,e,s);r.has(s)||(r.add(s),s.then(c,c))})}function Kt(e,n){var r=n.deletions;if(r!==null)for(var s=0;s<r.length;s++){var c=r[s],d=e,b=n,T=b;e:for(;T!==null;){switch(T.tag){case 27:if(Pa(T.type)){Ze=T.stateNode,Ht=!1;break e}break;case 5:Ze=T.stateNode,Ht=!1;break e;case 3:case 4:Ze=T.stateNode.containerInfo,Ht=!0;break e}T=T.return}if(Ze===null)throw Error(l(160));Cv(d,b,c),Ze=null,Ht=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)jv(n,e),n=n.sibling}var wn=null;function jv(e,n){var r=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Kt(n,e),It(e),s&4&&(za(3,e,e.return),ts(3,e),za(5,e,e.return));break;case 1:Kt(n,e),It(e),s&512&&(it||r===null||Ln(r,r.return)),s&64&&oa&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?s:r.concat(s))));break;case 26:var c=wn;if(Kt(n,e),It(e),s&512&&(it||r===null||Ln(r,r.return)),s&4){var d=r!==null?r.memoizedState:null;if(s=e.memoizedState,r===null)if(s===null)if(e.stateNode===null){e:{s=e.type,r=e.memoizedProps,c=c.ownerDocument||c;t:switch(s){case"title":d=c.getElementsByTagName("title")[0],(!d||d[_l]||d[_t]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(s),c.head.insertBefore(d,c.querySelector("head > title"))),Et(d,s,r),d[_t]=e,gt(d),s=d;break e;case"link":var b=Ny("link","href",c).get(s+(r.href||""));if(b){for(var T=0;T<b.length;T++)if(d=b[T],d.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&d.getAttribute("rel")===(r.rel==null?null:r.rel)&&d.getAttribute("title")===(r.title==null?null:r.title)&&d.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){b.splice(T,1);break t}}d=c.createElement(s),Et(d,s,r),c.head.appendChild(d);break;case"meta":if(b=Ny("meta","content",c).get(s+(r.content||""))){for(T=0;T<b.length;T++)if(d=b[T],d.getAttribute("content")===(r.content==null?null:""+r.content)&&d.getAttribute("name")===(r.name==null?null:r.name)&&d.getAttribute("property")===(r.property==null?null:r.property)&&d.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&d.getAttribute("charset")===(r.charSet==null?null:r.charSet)){b.splice(T,1);break t}}d=c.createElement(s),Et(d,s,r),c.head.appendChild(d);break;default:throw Error(l(468,s))}d[_t]=e,gt(d),s=d}e.stateNode=s}else Ty(c,e.type,e.stateNode);else e.stateNode=Ey(c,s,e.memoizedProps);else d!==s?(d===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):d.count--,s===null?Ty(c,e.type,e.stateNode):Ey(c,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Kf(e,e.memoizedProps,r.memoizedProps)}break;case 27:Kt(n,e),It(e),s&512&&(it||r===null||Ln(r,r.return)),r!==null&&s&4&&Kf(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Kt(n,e),It(e),s&512&&(it||r===null||Ln(r,r.return)),e.flags&32){c=e.stateNode;try{ii(c,"")}catch(Z){Fe(e,e.return,Z)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,Kf(e,c,r!==null?r.memoizedProps:c)),s&1024&&(Jf=!0);break;case 6:if(Kt(n,e),It(e),s&4){if(e.stateNode===null)throw Error(l(162));s=e.memoizedProps,r=e.stateNode;try{r.nodeValue=s}catch(Z){Fe(e,e.return,Z)}}break;case 3:if(oc=null,c=wn,wn=lc(n.containerInfo),Kt(n,e),wn=c,It(e),s&4&&r!==null&&r.memoizedState.isDehydrated)try{xs(n.containerInfo)}catch(Z){Fe(e,e.return,Z)}Jf&&(Jf=!1,Rv(e));break;case 4:s=wn,wn=lc(e.stateNode.containerInfo),Kt(n,e),It(e),wn=s;break;case 12:Kt(n,e),It(e);break;case 13:Kt(n,e),It(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(id=st()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Wf(e,s)));break;case 22:c=e.memoizedState!==null;var O=r!==null&&r.memoizedState!==null,$=oa,te=it;if(oa=$||c,it=te||O,Kt(n,e),it=te,oa=$,It(e),s&8192)e:for(n=e.stateNode,n._visibility=c?n._visibility&-2:n._visibility|1,c&&(r===null||O||oa||it||Cr(e)),r=null,n=e;;){if(n.tag===5||n.tag===26){if(r===null){O=r=n;try{if(d=O.stateNode,c)b=d.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{T=O.stateNode;var ie=O.memoizedProps.style,K=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;T.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(Z){Fe(O,O.return,Z)}}}else if(n.tag===6){if(r===null){O=n;try{O.stateNode.nodeValue=c?"":O.memoizedProps}catch(Z){Fe(O,O.return,Z)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;r===n&&(r=null),n=n.return}r===n&&(r=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=e.updateQueue,s!==null&&(r=s.retryQueue,r!==null&&(s.retryQueue=null,Wf(e,r))));break;case 19:Kt(n,e),It(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Wf(e,s)));break;case 30:break;case 21:break;default:Kt(n,e),It(e)}}function It(e){var n=e.flags;if(n&2){try{for(var r,s=e.return;s!==null;){if(Ev(s)){r=s;break}s=s.return}if(r==null)throw Error(l(160));switch(r.tag){case 27:var c=r.stateNode,d=If(e);$o(e,d,c);break;case 5:var b=r.stateNode;r.flags&32&&(ii(b,""),r.flags&=-33);var T=If(e);$o(e,T,b);break;case 3:case 4:var O=r.stateNode.containerInfo,$=If(e);Zf(e,$,O);break;default:throw Error(l(161))}}catch(te){Fe(e,e.return,te)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Rv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Rv(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Da(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)_v(e,n.alternate,n),n=n.sibling}function Cr(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:za(4,n,n.return),Cr(n);break;case 1:Ln(n,n.return);var r=n.stateNode;typeof r.componentWillUnmount=="function"&&wv(n,n.return,r),Cr(n);break;case 27:fs(n.stateNode);case 26:case 5:Ln(n,n.return),Cr(n);break;case 22:n.memoizedState===null&&Cr(n);break;case 30:Cr(n);break;default:Cr(n)}e=e.sibling}}function ka(e,n,r){for(r=r&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,c=e,d=n,b=d.flags;switch(d.tag){case 0:case 11:case 15:ka(c,d,r),ts(4,d);break;case 1:if(ka(c,d,r),s=d,c=s.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch($){Fe(s,s.return,$)}if(s=d,c=s.updateQueue,c!==null){var T=s.stateNode;try{var O=c.shared.hiddenCallbacks;if(O!==null)for(c.shared.hiddenCallbacks=null,c=0;c<O.length;c++)lg(O[c],T)}catch($){Fe(s,s.return,$)}}r&&b&64&&bv(d),ns(d,d.return);break;case 27:Nv(d);case 26:case 5:ka(c,d,r),r&&s===null&&b&4&&Sv(d),ns(d,d.return);break;case 12:ka(c,d,r);break;case 13:ka(c,d,r),r&&b&4&&Mv(c,d);break;case 22:d.memoizedState===null&&ka(c,d,r),ns(d,d.return);break;case 30:break;default:ka(c,d,r)}n=n.sibling}}function ed(e,n){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&Pl(r))}function td(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Pl(e))}function Un(e,n,r,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Ov(e,n,r,s),n=n.sibling}function Ov(e,n,r,s){var c=n.flags;switch(n.tag){case 0:case 11:case 15:Un(e,n,r,s),c&2048&&ts(9,n);break;case 1:Un(e,n,r,s);break;case 3:Un(e,n,r,s),c&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Pl(e)));break;case 12:if(c&2048){Un(e,n,r,s),e=n.stateNode;try{var d=n.memoizedProps,b=d.id,T=d.onPostCommit;typeof T=="function"&&T(b,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){Fe(n,n.return,O)}}else Un(e,n,r,s);break;case 13:Un(e,n,r,s);break;case 23:break;case 22:d=n.stateNode,b=n.alternate,n.memoizedState!==null?d._visibility&2?Un(e,n,r,s):as(e,n):d._visibility&2?Un(e,n,r,s):(d._visibility|=2,Ni(e,n,r,s,(n.subtreeFlags&10256)!==0)),c&2048&&ed(b,n);break;case 24:Un(e,n,r,s),c&2048&&td(n.alternate,n);break;default:Un(e,n,r,s)}}function Ni(e,n,r,s,c){for(c=c&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var d=e,b=n,T=r,O=s,$=b.flags;switch(b.tag){case 0:case 11:case 15:Ni(d,b,T,O,c),ts(8,b);break;case 23:break;case 22:var te=b.stateNode;b.memoizedState!==null?te._visibility&2?Ni(d,b,T,O,c):as(d,b):(te._visibility|=2,Ni(d,b,T,O,c)),c&&$&2048&&ed(b.alternate,b);break;case 24:Ni(d,b,T,O,c),c&&$&2048&&td(b.alternate,b);break;default:Ni(d,b,T,O,c)}n=n.sibling}}function as(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var r=e,s=n,c=s.flags;switch(s.tag){case 22:as(r,s),c&2048&&ed(s.alternate,s);break;case 24:as(r,s),c&2048&&td(s.alternate,s);break;default:as(r,s)}n=n.sibling}}var rs=8192;function Ti(e){if(e.subtreeFlags&rs)for(e=e.child;e!==null;)zv(e),e=e.sibling}function zv(e){switch(e.tag){case 26:Ti(e),e.flags&rs&&e.memoizedState!==null&&ME(wn,e.memoizedState,e.memoizedProps);break;case 5:Ti(e);break;case 3:case 4:var n=wn;wn=lc(e.stateNode.containerInfo),Ti(e),wn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=rs,rs=16777216,Ti(e),rs=n):Ti(e));break;default:Ti(e)}}function Dv(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function is(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];yt=s,Lv(s,e)}Dv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kv(e),e=e.sibling}function kv(e){switch(e.tag){case 0:case 11:case 15:is(e),e.flags&2048&&za(9,e,e.return);break;case 3:is(e);break;case 12:is(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Fo(e)):is(e);break;default:is(e)}}function Fo(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];yt=s,Lv(s,e)}Dv(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:za(8,n,n.return),Fo(n);break;case 22:r=n.stateNode,r._visibility&2&&(r._visibility&=-3,Fo(n));break;default:Fo(n)}e=e.sibling}}function Lv(e,n){for(;yt!==null;){var r=yt;switch(r.tag){case 0:case 11:case 15:za(8,r,n);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var s=r.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Pl(r.memoizedState.cache)}if(s=r.child,s!==null)s.return=r,yt=s;else e:for(r=e;yt!==null;){s=yt;var c=s.sibling,d=s.return;if(Av(s),s===r){yt=null;break e}if(c!==null){c.return=d,yt=c;break e}yt=d}}}var Q2={getCacheForType:function(e){var n=At(ut),r=n.data.get(e);return r===void 0&&(r=e(),n.data.set(e,r)),r}},X2=typeof WeakMap=="function"?WeakMap:Map,Ve=0,Ie=null,ze=null,Le=0,Ge=0,Zt=null,La=!1,_i=!1,nd=!1,ua=0,tt=0,Ua=0,Mr=0,ad=0,pn=0,Ai=0,ls=null,Bt=null,rd=!1,id=0,Ko=1/0,Io=null,Ha=null,St=0,Ba=null,Ci=null,Mi=0,ld=0,sd=null,Uv=null,ss=0,od=null;function Jt(){if((Ve&2)!==0&&Le!==0)return Le&-Le;if(_.T!==null){var e=gi;return e!==0?e:pd()}return Wm()}function Hv(){pn===0&&(pn=(Le&536870912)===0||qe?Km():536870912);var e=mn.current;return e!==null&&(e.flags|=32),pn}function Wt(e,n,r){(e===Ie&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(ji(e,0),qa(e,Le,pn,!1)),Tl(e,r),((Ve&2)===0||e!==Ie)&&(e===Ie&&((Ve&2)===0&&(Mr|=r),tt===4&&qa(e,Le,pn,!1)),Hn(e))}function Bv(e,n,r){if((Ve&6)!==0)throw Error(l(327));var s=!r&&(n&124)===0&&(n&e.expiredLanes)===0||Nl(e,n),c=s?K2(e,n):fd(e,n,!0),d=s;do{if(c===0){_i&&!s&&qa(e,n,0,!1);break}else{if(r=e.current.alternate,d&&!$2(r)){c=fd(e,n,!1),d=!1;continue}if(c===2){if(d=n,e.errorRecoveryDisabledLanes&d)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var T=e;c=ls;var O=T.current.memoizedState.isDehydrated;if(O&&(ji(T,b).flags|=256),b=fd(T,b,!1),b!==2){if(nd&&!O){T.errorRecoveryDisabledLanes|=d,Mr|=d,c=4;break e}d=Bt,Bt=c,d!==null&&(Bt===null?Bt=d:Bt.push.apply(Bt,d))}c=b}if(d=!1,c!==2)continue}}if(c===1){ji(e,0),qa(e,n,0,!0);break}e:{switch(s=e,d=c,d){case 0:case 1:throw Error(l(345));case 4:if((n&4194048)!==n)break;case 6:qa(s,n,pn,!La);break e;case 2:Bt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((n&62914560)===n&&(c=id+300-st(),10<c)){if(qa(s,n,pn,!La),lo(s,0,!0)!==0)break e;s.timeoutHandle=my(qv.bind(null,s,r,Bt,Io,rd,n,pn,Mr,Ai,La,d,2,-0,0),c);break e}qv(s,r,Bt,Io,rd,n,pn,Mr,Ai,La,d,0,-0,0)}}break}while(!0);Hn(e)}function qv(e,n,r,s,c,d,b,T,O,$,te,ie,K,Z){if(e.timeoutHandle=-1,ie=n.subtreeFlags,(ie&8192||(ie&16785408)===16785408)&&(ms={stylesheets:null,count:0,unsuspend:CE},zv(n),ie=jE(),ie!==null)){e.cancelPendingCommit=ie($v.bind(null,e,n,d,r,s,c,b,T,O,te,1,K,Z)),qa(e,d,b,!$);return}$v(e,n,d,r,s,c,b,T,O)}function $2(e){for(var n=e;;){var r=n.tag;if((r===0||r===11||r===15)&&n.flags&16384&&(r=n.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var s=0;s<r.length;s++){var c=r[s],d=c.getSnapshot;c=c.value;try{if(!$t(d(),c))return!1}catch{return!1}}if(r=n.child,n.subtreeFlags&16384&&r!==null)r.return=n,n=r;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function qa(e,n,r,s){n&=~ad,n&=~Mr,e.suspendedLanes|=n,e.pingedLanes&=~n,s&&(e.warmLanes|=n),s=e.expirationTimes;for(var c=n;0<c;){var d=31-Xt(c),b=1<<d;s[d]=-1,c&=~b}r!==0&&Zm(e,r,n)}function Zo(){return(Ve&6)===0?(os(0),!1):!0}function cd(){if(ze!==null){if(Ge===0)var e=ze.return;else e=ze,na=Er=null,_f(e),Si=null,Jl=0,e=ze;for(;e!==null;)xv(e.alternate,e),e=e.return;ze=null}}function ji(e,n){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,fE(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),cd(),Ie=e,ze=r=Wn(e.current,null),Le=n,Ge=0,Zt=null,La=!1,_i=Nl(e,n),nd=!1,Ai=pn=ad=Mr=Ua=tt=0,Bt=ls=null,rd=!1,(n&8)!==0&&(n|=n&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=n;0<s;){var c=31-Xt(s),d=1<<c;n|=e[c],s&=~d}return ua=n,xo(),r}function Pv(e,n){Me=null,_.H=Ho,n===Gl||n===Co?(n=rg(),Ge=3):n===tg?(n=rg(),Ge=4):Ge=n===iv?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Zt=n,ze===null&&(tt=1,Go(e,un(n,e.current)))}function Vv(){var e=_.H;return _.H=Ho,e===null?Ho:e}function Gv(){var e=_.A;return _.A=Q2,e}function ud(){tt=4,La||(Le&4194048)!==Le&&mn.current!==null||(_i=!0),(Ua&134217727)===0&&(Mr&134217727)===0||Ie===null||qa(Ie,Le,pn,!1)}function fd(e,n,r){var s=Ve;Ve|=2;var c=Vv(),d=Gv();(Ie!==e||Le!==n)&&(Io=null,ji(e,n)),n=!1;var b=tt;e:do try{if(Ge!==0&&ze!==null){var T=ze,O=Zt;switch(Ge){case 8:cd(),b=6;break e;case 3:case 2:case 9:case 6:mn.current===null&&(n=!0);var $=Ge;if(Ge=0,Zt=null,Ri(e,T,O,$),r&&_i){b=0;break e}break;default:$=Ge,Ge=0,Zt=null,Ri(e,T,O,$)}}F2(),b=tt;break}catch(te){Pv(e,te)}while(!0);return n&&e.shellSuspendCounter++,na=Er=null,Ve=s,_.H=c,_.A=d,ze===null&&(Ie=null,Le=0,xo()),b}function F2(){for(;ze!==null;)Yv(ze)}function K2(e,n){var r=Ve;Ve|=2;var s=Vv(),c=Gv();Ie!==e||Le!==n?(Io=null,Ko=st()+500,ji(e,n)):_i=Nl(e,n);e:do try{if(Ge!==0&&ze!==null){n=ze;var d=Zt;t:switch(Ge){case 1:Ge=0,Zt=null,Ri(e,n,d,1);break;case 2:case 9:if(ng(d)){Ge=0,Zt=null,Qv(n);break}n=function(){Ge!==2&&Ge!==9||Ie!==e||(Ge=7),Hn(e)},d.then(n,n);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:ng(d)?(Ge=0,Zt=null,Qv(n)):(Ge=0,Zt=null,Ri(e,n,d,7));break;case 5:var b=null;switch(ze.tag){case 26:b=ze.memoizedState;case 5:case 27:var T=ze;if(!b||_y(b)){Ge=0,Zt=null;var O=T.sibling;if(O!==null)ze=O;else{var $=T.return;$!==null?(ze=$,Jo($)):ze=null}break t}}Ge=0,Zt=null,Ri(e,n,d,5);break;case 6:Ge=0,Zt=null,Ri(e,n,d,6);break;case 8:cd(),tt=6;break e;default:throw Error(l(462))}}I2();break}catch(te){Pv(e,te)}while(!0);return na=Er=null,_.H=s,_.A=c,Ve=r,ze!==null?0:(Ie=null,Le=0,xo(),tt)}function I2(){for(;ze!==null&&!Yt();)Yv(ze)}function Yv(e){var n=vv(e.alternate,e,ua);e.memoizedProps=e.pendingProps,n===null?Jo(e):ze=n}function Qv(e){var n=e,r=n.alternate;switch(n.tag){case 15:case 0:n=fv(r,n,n.pendingProps,n.type,void 0,Le);break;case 11:n=fv(r,n,n.pendingProps,n.type.render,n.ref,Le);break;case 5:_f(n);default:xv(r,n),n=ze=Xp(n,ua),n=vv(r,n,ua)}e.memoizedProps=e.pendingProps,n===null?Jo(e):ze=n}function Ri(e,n,r,s){na=Er=null,_f(n),Si=null,Jl=0;var c=n.return;try{if(B2(e,c,n,r,Le)){tt=1,Go(e,un(r,e.current)),ze=null;return}}catch(d){if(c!==null)throw ze=c,d;tt=1,Go(e,un(r,e.current)),ze=null;return}n.flags&32768?(qe||s===1?e=!0:_i||(Le&536870912)!==0?e=!1:(La=e=!0,(s===2||s===9||s===3||s===6)&&(s=mn.current,s!==null&&s.tag===13&&(s.flags|=16384))),Xv(n,e)):Jo(n)}function Jo(e){var n=e;do{if((n.flags&32768)!==0){Xv(n,La);return}e=n.return;var r=P2(n.alternate,n,ua);if(r!==null){ze=r;return}if(n=n.sibling,n!==null){ze=n;return}ze=n=e}while(n!==null);tt===0&&(tt=5)}function Xv(e,n){do{var r=V2(e.alternate,e);if(r!==null){r.flags&=32767,ze=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!n&&(e=e.sibling,e!==null)){ze=e;return}ze=e=r}while(e!==null);tt=6,ze=null}function $v(e,n,r,s,c,d,b,T,O){e.cancelPendingCommit=null;do Wo();while(St!==0);if((Ve&6)!==0)throw Error(l(327));if(n!==null){if(n===e.current)throw Error(l(177));if(d=n.lanes|n.childLanes,d|=ef,CS(e,r,d,b,T,O),e===Ie&&(ze=Ie=null,Le=0),Ci=n,Ba=e,Mi=r,ld=d,sd=c,Uv=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,eE(zn,function(){return Jv(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=_.T,_.T=null,c=P.p,P.p=2,b=Ve,Ve|=4;try{G2(e,n,r)}finally{Ve=b,P.p=c,_.T=s}}St=1,Fv(),Kv(),Iv()}}function Fv(){if(St===1){St=0;var e=Ba,n=Ci,r=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||r){r=_.T,_.T=null;var s=P.p;P.p=2;var c=Ve;Ve|=4;try{jv(n,e);var d=Ed,b=Lp(e.containerInfo),T=d.focusedElem,O=d.selectionRange;if(b!==T&&T&&T.ownerDocument&&kp(T.ownerDocument.documentElement,T)){if(O!==null&&Ku(T)){var $=O.start,te=O.end;if(te===void 0&&(te=$),"selectionStart"in T)T.selectionStart=$,T.selectionEnd=Math.min(te,T.value.length);else{var ie=T.ownerDocument||document,K=ie&&ie.defaultView||window;if(K.getSelection){var Z=K.getSelection(),Ne=T.textContent.length,be=Math.min(O.start,Ne),$e=O.end===void 0?be:Math.min(O.end,Ne);!Z.extend&&be>$e&&(b=$e,$e=be,be=b);var Y=Dp(T,be),U=Dp(T,$e);if(Y&&U&&(Z.rangeCount!==1||Z.anchorNode!==Y.node||Z.anchorOffset!==Y.offset||Z.focusNode!==U.node||Z.focusOffset!==U.offset)){var X=ie.createRange();X.setStart(Y.node,Y.offset),Z.removeAllRanges(),be>$e?(Z.addRange(X),Z.extend(U.node,U.offset)):(X.setEnd(U.node,U.offset),Z.addRange(X))}}}}for(ie=[],Z=T;Z=Z.parentNode;)Z.nodeType===1&&ie.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<ie.length;T++){var ne=ie[T];ne.element.scrollLeft=ne.left,ne.element.scrollTop=ne.top}}fc=!!Sd,Ed=Sd=null}finally{Ve=c,P.p=s,_.T=r}}e.current=n,St=2}}function Kv(){if(St===2){St=0;var e=Ba,n=Ci,r=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||r){r=_.T,_.T=null;var s=P.p;P.p=2;var c=Ve;Ve|=4;try{_v(e,n.alternate,n)}finally{Ve=c,P.p=s,_.T=r}}St=3}}function Iv(){if(St===4||St===3){St=0,sn();var e=Ba,n=Ci,r=Mi,s=Uv;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?St=5:(St=0,Ci=Ba=null,Zv(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Ha=null),Cu(r),n=n.stateNode,Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(El,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=_.T,c=P.p,P.p=2,_.T=null;try{for(var d=e.onRecoverableError,b=0;b<s.length;b++){var T=s[b];d(T.value,{componentStack:T.stack})}}finally{_.T=n,P.p=c}}(Mi&3)!==0&&Wo(),Hn(e),c=e.pendingLanes,(r&4194090)!==0&&(c&42)!==0?e===od?ss++:(ss=0,od=e):ss=0,os(0)}}function Zv(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Pl(n)))}function Wo(e){return Fv(),Kv(),Iv(),Jv()}function Jv(){if(St!==5)return!1;var e=Ba,n=ld;ld=0;var r=Cu(Mi),s=_.T,c=P.p;try{P.p=32>r?32:r,_.T=null,r=sd,sd=null;var d=Ba,b=Mi;if(St=0,Ci=Ba=null,Mi=0,(Ve&6)!==0)throw Error(l(331));var T=Ve;if(Ve|=4,kv(d.current),Ov(d,d.current,b,r),Ve=T,os(0,!1),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(El,d)}catch{}return!0}finally{P.p=c,_.T=s,Zv(e,n)}}function Wv(e,n,r){n=un(r,n),n=qf(e.stateNode,n,2),e=Ma(e,n,2),e!==null&&(Tl(e,2),Hn(e))}function Fe(e,n,r){if(e.tag===3)Wv(e,e,r);else for(;n!==null;){if(n.tag===3){Wv(n,e,r);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Ha===null||!Ha.has(s))){e=un(r,e),r=av(2),s=Ma(n,r,2),s!==null&&(rv(r,s,n,e),Tl(s,2),Hn(s));break}}n=n.return}}function dd(e,n,r){var s=e.pingCache;if(s===null){s=e.pingCache=new X2;var c=new Set;s.set(n,c)}else c=s.get(n),c===void 0&&(c=new Set,s.set(n,c));c.has(r)||(nd=!0,c.add(r),e=Z2.bind(null,e,n,r),n.then(e,e))}function Z2(e,n,r){var s=e.pingCache;s!==null&&s.delete(n),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Ie===e&&(Le&r)===r&&(tt===4||tt===3&&(Le&62914560)===Le&&300>st()-id?(Ve&2)===0&&ji(e,0):ad|=r,Ai===Le&&(Ai=0)),Hn(e)}function ey(e,n){n===0&&(n=Im()),e=di(e,n),e!==null&&(Tl(e,n),Hn(e))}function J2(e){var n=e.memoizedState,r=0;n!==null&&(r=n.retryLane),ey(e,r)}function W2(e,n){var r=0;switch(e.tag){case 13:var s=e.stateNode,c=e.memoizedState;c!==null&&(r=c.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(l(314))}s!==null&&s.delete(n),ey(e,r)}function eE(e,n){return Ae(e,n)}var ec=null,Oi=null,hd=!1,tc=!1,md=!1,jr=0;function Hn(e){e!==Oi&&e.next===null&&(Oi===null?ec=Oi=e:Oi=Oi.next=e),tc=!0,hd||(hd=!0,nE())}function os(e,n){if(!md&&tc){md=!0;do for(var r=!1,s=ec;s!==null;){if(e!==0){var c=s.pendingLanes;if(c===0)var d=0;else{var b=s.suspendedLanes,T=s.pingedLanes;d=(1<<31-Xt(42|e)+1)-1,d&=c&~(b&~T),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(r=!0,ry(s,d))}else d=Le,d=lo(s,s===Ie?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(d&3)===0||Nl(s,d)||(r=!0,ry(s,d));s=s.next}while(r);md=!1}}function tE(){ty()}function ty(){tc=hd=!1;var e=0;jr!==0&&(uE()&&(e=jr),jr=0);for(var n=st(),r=null,s=ec;s!==null;){var c=s.next,d=ny(s,n);d===0?(s.next=null,r===null?ec=c:r.next=c,c===null&&(Oi=r)):(r=s,(e!==0||(d&3)!==0)&&(tc=!0)),s=c}os(e)}function ny(e,n){for(var r=e.suspendedLanes,s=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var b=31-Xt(d),T=1<<b,O=c[b];O===-1?((T&r)===0||(T&s)!==0)&&(c[b]=AS(T,n)):O<=n&&(e.expiredLanes|=T),d&=~T}if(n=Ie,r=Le,r=lo(e,e===n?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,r===0||e===n&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Ke(s),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||Nl(e,r)){if(n=r&-r,n===e.callbackPriority)return n;switch(s!==null&&Ke(s),Cu(r)){case 2:case 8:r=to;break;case 32:r=zn;break;case 268435456:r=ao;break;default:r=zn}return s=ay.bind(null,e),r=Ae(r,s),e.callbackPriority=n,e.callbackNode=r,n}return s!==null&&s!==null&&Ke(s),e.callbackPriority=2,e.callbackNode=null,2}function ay(e,n){if(St!==0&&St!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Wo()&&e.callbackNode!==r)return null;var s=Le;return s=lo(e,e===Ie?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(Bv(e,s,n),ny(e,st()),e.callbackNode!=null&&e.callbackNode===r?ay.bind(null,e):null)}function ry(e,n){if(Wo())return null;Bv(e,n,!0)}function nE(){dE(function(){(Ve&6)!==0?Ae(On,tE):ty()})}function pd(){return jr===0&&(jr=Km()),jr}function iy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fo(""+e)}function ly(e,n){var r=n.ownerDocument.createElement("input");return r.name=n.name,r.value=n.value,e.id&&r.setAttribute("form",e.id),n.parentNode.insertBefore(r,n),e=new FormData(e),r.parentNode.removeChild(r),e}function aE(e,n,r,s,c){if(n==="submit"&&r&&r.stateNode===c){var d=iy((c[kt]||null).action),b=s.submitter;b&&(n=(n=b[kt]||null)?iy(n.formAction):b.getAttribute("formAction"),n!==null&&(d=n,b=null));var T=new go("action","action",null,s,c);e.push({event:T,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(jr!==0){var O=b?ly(c,b):new FormData(c);kf(r,{pending:!0,data:O,method:c.method,action:d},null,O)}}else typeof d=="function"&&(T.preventDefault(),O=b?ly(c,b):new FormData(c),kf(r,{pending:!0,data:O,method:c.method,action:d},d,O))},currentTarget:c}]})}}for(var gd=0;gd<Wu.length;gd++){var vd=Wu[gd],rE=vd.toLowerCase(),iE=vd[0].toUpperCase()+vd.slice(1);bn(rE,"on"+iE)}bn(Bp,"onAnimationEnd"),bn(qp,"onAnimationIteration"),bn(Pp,"onAnimationStart"),bn("dblclick","onDoubleClick"),bn("focusin","onFocus"),bn("focusout","onBlur"),bn(S2,"onTransitionRun"),bn(E2,"onTransitionStart"),bn(N2,"onTransitionCancel"),bn(Vp,"onTransitionEnd"),ni("onMouseEnter",["mouseout","mouseover"]),ni("onMouseLeave",["mouseout","mouseover"]),ni("onPointerEnter",["pointerout","pointerover"]),ni("onPointerLeave",["pointerout","pointerover"]),mr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),mr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),mr("onBeforeInput",["compositionend","keypress","textInput","paste"]),mr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),mr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),mr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cs="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(" "),lE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(cs));function sy(e,n){n=(n&4)!==0;for(var r=0;r<e.length;r++){var s=e[r],c=s.event;s=s.listeners;e:{var d=void 0;if(n)for(var b=s.length-1;0<=b;b--){var T=s[b],O=T.instance,$=T.currentTarget;if(T=T.listener,O!==d&&c.isPropagationStopped())break e;d=T,c.currentTarget=$;try{d(c)}catch(te){Vo(te)}c.currentTarget=null,d=O}else for(b=0;b<s.length;b++){if(T=s[b],O=T.instance,$=T.currentTarget,T=T.listener,O!==d&&c.isPropagationStopped())break e;d=T,c.currentTarget=$;try{d(c)}catch(te){Vo(te)}c.currentTarget=null,d=O}}}}function De(e,n){var r=n[Mu];r===void 0&&(r=n[Mu]=new Set);var s=e+"__bubble";r.has(s)||(oy(n,e,2,!1),r.add(s))}function yd(e,n,r){var s=0;n&&(s|=4),oy(r,e,s,n)}var nc="_reactListening"+Math.random().toString(36).slice(2);function xd(e){if(!e[nc]){e[nc]=!0,tp.forEach(function(r){r!=="selectionchange"&&(lE.has(r)||yd(r,!1,e),yd(r,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[nc]||(n[nc]=!0,yd("selectionchange",!1,n))}}function oy(e,n,r,s){switch(Oy(n)){case 2:var c=zE;break;case 8:c=DE;break;default:c=zd}r=c.bind(null,n,r,e),c=void 0,!qu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=!0),s?c!==void 0?e.addEventListener(n,r,{capture:!0,passive:c}):e.addEventListener(n,r,!0):c!==void 0?e.addEventListener(n,r,{passive:c}):e.addEventListener(n,r,!1)}function bd(e,n,r,s,c){var d=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var b=s.tag;if(b===3||b===4){var T=s.stateNode.containerInfo;if(T===c)break;if(b===4)for(b=s.return;b!==null;){var O=b.tag;if((O===3||O===4)&&b.stateNode.containerInfo===c)return;b=b.return}for(;T!==null;){if(b=Wr(T),b===null)return;if(O=b.tag,O===5||O===6||O===26||O===27){s=d=b;continue e}T=T.parentNode}}s=s.return}pp(function(){var $=d,te=Hu(r),ie=[];e:{var K=Gp.get(e);if(K!==void 0){var Z=go,Ne=e;switch(e){case"keypress":if(mo(r)===0)break e;case"keydown":case"keyup":Z=e2;break;case"focusin":Ne="focus",Z=Yu;break;case"focusout":Ne="blur",Z=Yu;break;case"beforeblur":case"afterblur":Z=Yu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=yp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=VS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=a2;break;case Bp:case qp:case Pp:Z=QS;break;case Vp:Z=i2;break;case"scroll":case"scrollend":Z=qS;break;case"wheel":Z=s2;break;case"copy":case"cut":case"paste":Z=$S;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=bp;break;case"toggle":case"beforetoggle":Z=c2}var be=(n&4)!==0,$e=!be&&(e==="scroll"||e==="scrollend"),Y=be?K!==null?K+"Capture":null:K;be=[];for(var U=$,X;U!==null;){var ne=U;if(X=ne.stateNode,ne=ne.tag,ne!==5&&ne!==26&&ne!==27||X===null||Y===null||(ne=Cl(U,Y),ne!=null&&be.push(us(U,ne,X))),$e)break;U=U.return}0<be.length&&(K=new Z(K,Ne,null,r,te),ie.push({event:K,listeners:be}))}}if((n&7)===0){e:{if(K=e==="mouseover"||e==="pointerover",Z=e==="mouseout"||e==="pointerout",K&&r!==Uu&&(Ne=r.relatedTarget||r.fromElement)&&(Wr(Ne)||Ne[Jr]))break e;if((Z||K)&&(K=te.window===te?te:(K=te.ownerDocument)?K.defaultView||K.parentWindow:window,Z?(Ne=r.relatedTarget||r.toElement,Z=$,Ne=Ne?Wr(Ne):null,Ne!==null&&($e=u(Ne),be=Ne.tag,Ne!==$e||be!==5&&be!==27&&be!==6)&&(Ne=null)):(Z=null,Ne=$),Z!==Ne)){if(be=yp,ne="onMouseLeave",Y="onMouseEnter",U="mouse",(e==="pointerout"||e==="pointerover")&&(be=bp,ne="onPointerLeave",Y="onPointerEnter",U="pointer"),$e=Z==null?K:Al(Z),X=Ne==null?K:Al(Ne),K=new be(ne,U+"leave",Z,r,te),K.target=$e,K.relatedTarget=X,ne=null,Wr(te)===$&&(be=new be(Y,U+"enter",Ne,r,te),be.target=X,be.relatedTarget=$e,ne=be),$e=ne,Z&&Ne)t:{for(be=Z,Y=Ne,U=0,X=be;X;X=zi(X))U++;for(X=0,ne=Y;ne;ne=zi(ne))X++;for(;0<U-X;)be=zi(be),U--;for(;0<X-U;)Y=zi(Y),X--;for(;U--;){if(be===Y||Y!==null&&be===Y.alternate)break t;be=zi(be),Y=zi(Y)}be=null}else be=null;Z!==null&&cy(ie,K,Z,be,!1),Ne!==null&&$e!==null&&cy(ie,$e,Ne,be,!0)}}e:{if(K=$?Al($):window,Z=K.nodeName&&K.nodeName.toLowerCase(),Z==="select"||Z==="input"&&K.type==="file")var he=Cp;else if(_p(K))if(Mp)he=x2;else{he=v2;var Oe=g2}else Z=K.nodeName,!Z||Z.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?$&&Lu($.elementType)&&(he=Cp):he=y2;if(he&&(he=he(e,$))){Ap(ie,he,r,te);break e}Oe&&Oe(e,K,$),e==="focusout"&&$&&K.type==="number"&&$.memoizedProps.value!=null&&ku(K,"number",K.value)}switch(Oe=$?Al($):window,e){case"focusin":(_p(Oe)||Oe.contentEditable==="true")&&(ci=Oe,Iu=$,Ll=null);break;case"focusout":Ll=Iu=ci=null;break;case"mousedown":Zu=!0;break;case"contextmenu":case"mouseup":case"dragend":Zu=!1,Up(ie,r,te);break;case"selectionchange":if(w2)break;case"keydown":case"keyup":Up(ie,r,te)}var ve;if(Xu)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else oi?Np(e,r)&&(we="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(we="onCompositionStart");we&&(wp&&r.locale!=="ko"&&(oi||we!=="onCompositionStart"?we==="onCompositionEnd"&&oi&&(ve=gp()):(Ta=te,Pu="value"in Ta?Ta.value:Ta.textContent,oi=!0)),Oe=ac($,we),0<Oe.length&&(we=new xp(we,e,null,r,te),ie.push({event:we,listeners:Oe}),ve?we.data=ve:(ve=Tp(r),ve!==null&&(we.data=ve)))),(ve=f2?d2(e,r):h2(e,r))&&(we=ac($,"onBeforeInput"),0<we.length&&(Oe=new xp("onBeforeInput","beforeinput",null,r,te),ie.push({event:Oe,listeners:we}),Oe.data=ve)),aE(ie,e,$,r,te)}sy(ie,n)})}function us(e,n,r){return{instance:e,listener:n,currentTarget:r}}function ac(e,n){for(var r=n+"Capture",s=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=Cl(e,r),c!=null&&s.unshift(us(e,c,d)),c=Cl(e,n),c!=null&&s.push(us(e,c,d))),e.tag===3)return s;e=e.return}return[]}function zi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function cy(e,n,r,s,c){for(var d=n._reactName,b=[];r!==null&&r!==s;){var T=r,O=T.alternate,$=T.stateNode;if(T=T.tag,O!==null&&O===s)break;T!==5&&T!==26&&T!==27||$===null||(O=$,c?($=Cl(r,d),$!=null&&b.unshift(us(r,$,O))):c||($=Cl(r,d),$!=null&&b.push(us(r,$,O)))),r=r.return}b.length!==0&&e.push({event:n,listeners:b})}var sE=/\r\n?/g,oE=/\u0000|\uFFFD/g;function uy(e){return(typeof e=="string"?e:""+e).replace(sE,`
|
|
49
|
+
`).replace(oE,"")}function fy(e,n){return n=uy(n),uy(e)===n}function rc(){}function Xe(e,n,r,s,c,d){switch(r){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||ii(e,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&ii(e,""+s);break;case"className":oo(e,"class",s);break;case"tabIndex":oo(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":oo(e,r,s);break;case"style":hp(e,s,d);break;case"data":if(n!=="object"){oo(e,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||r!=="href")){e.removeAttribute(r);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(r);break}s=fo(""+s),e.setAttribute(r,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(r,"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 d=="function"&&(r==="formAction"?(n!=="input"&&Xe(e,n,"name",c.name,c,null),Xe(e,n,"formEncType",c.formEncType,c,null),Xe(e,n,"formMethod",c.formMethod,c,null),Xe(e,n,"formTarget",c.formTarget,c,null)):(Xe(e,n,"encType",c.encType,c,null),Xe(e,n,"method",c.method,c,null),Xe(e,n,"target",c.target,c,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(r);break}s=fo(""+s),e.setAttribute(r,s);break;case"onClick":s!=null&&(e.onclick=rc);break;case"onScroll":s!=null&&De("scroll",e);break;case"onScrollEnd":s!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(r=s.__html,r!=null){if(c.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}r=fo(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(r,""+s):e.removeAttribute(r);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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":s===!0?e.setAttribute(r,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(r,s):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(r,s):e.removeAttribute(r);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(r):e.setAttribute(r,s);break;case"popover":De("beforetoggle",e),De("toggle",e),so(e,"popover",s);break;case"xlinkActuate":Zn(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Zn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Zn(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Zn(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Zn(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Zn(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Zn(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Zn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Zn(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":so(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=HS.get(r)||r,so(e,r,s))}}function wd(e,n,r,s,c,d){switch(r){case"style":hp(e,s,d);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(l(61));if(r=s.__html,r!=null){if(c.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"children":typeof s=="string"?ii(e,s):(typeof s=="number"||typeof s=="bigint")&&ii(e,""+s);break;case"onScroll":s!=null&&De("scroll",e);break;case"onScrollEnd":s!=null&&De("scrollend",e);break;case"onClick":s!=null&&(e.onclick=rc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!np.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(c=r.endsWith("Capture"),n=r.slice(2,c?r.length-7:void 0),d=e[kt]||null,d=d!=null?d[r]:null,typeof d=="function"&&e.removeEventListener(n,d,c),typeof s=="function")){typeof d!="function"&&d!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(n,s,c);break e}r in e?e[r]=s:s===!0?e.setAttribute(r,""):so(e,r,s)}}}function Et(e,n,r){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("load",e);var s=!1,c=!1,d;for(d in r)if(r.hasOwnProperty(d)){var b=r[d];if(b!=null)switch(d){case"src":s=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:Xe(e,n,d,b,r,null)}}c&&Xe(e,n,"srcSet",r.srcSet,r,null),s&&Xe(e,n,"src",r.src,r,null);return;case"input":De("invalid",e);var T=d=b=c=null,O=null,$=null;for(s in r)if(r.hasOwnProperty(s)){var te=r[s];if(te!=null)switch(s){case"name":c=te;break;case"type":b=te;break;case"checked":O=te;break;case"defaultChecked":$=te;break;case"value":d=te;break;case"defaultValue":T=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(l(137,n));break;default:Xe(e,n,s,te,r,null)}}cp(e,d,T,O,$,b,c,!1),co(e);return;case"select":De("invalid",e),s=b=d=null;for(c in r)if(r.hasOwnProperty(c)&&(T=r[c],T!=null))switch(c){case"value":d=T;break;case"defaultValue":b=T;break;case"multiple":s=T;default:Xe(e,n,c,T,r,null)}n=d,r=b,e.multiple=!!s,n!=null?ri(e,!!s,n,!1):r!=null&&ri(e,!!s,r,!0);return;case"textarea":De("invalid",e),d=c=s=null;for(b in r)if(r.hasOwnProperty(b)&&(T=r[b],T!=null))switch(b){case"value":s=T;break;case"defaultValue":c=T;break;case"children":d=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(l(91));break;default:Xe(e,n,b,T,r,null)}fp(e,s,c,d),co(e);return;case"option":for(O in r)if(r.hasOwnProperty(O)&&(s=r[O],s!=null))switch(O){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Xe(e,n,O,s,r,null)}return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(s=0;s<cs.length;s++)De(cs[s],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for($ in r)if(r.hasOwnProperty($)&&(s=r[$],s!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:Xe(e,n,$,s,r,null)}return;default:if(Lu(n)){for(te in r)r.hasOwnProperty(te)&&(s=r[te],s!==void 0&&wd(e,n,te,s,r,void 0));return}}for(T in r)r.hasOwnProperty(T)&&(s=r[T],s!=null&&Xe(e,n,T,s,r,null))}function cE(e,n,r,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,b=null,T=null,O=null,$=null,te=null;for(Z in r){var ie=r[Z];if(r.hasOwnProperty(Z)&&ie!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":O=ie;default:s.hasOwnProperty(Z)||Xe(e,n,Z,null,s,ie)}}for(var K in s){var Z=s[K];if(ie=r[K],s.hasOwnProperty(K)&&(Z!=null||ie!=null))switch(K){case"type":d=Z;break;case"name":c=Z;break;case"checked":$=Z;break;case"defaultChecked":te=Z;break;case"value":b=Z;break;case"defaultValue":T=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(l(137,n));break;default:Z!==ie&&Xe(e,n,K,Z,s,ie)}}Du(e,b,T,O,$,te,d,c);return;case"select":Z=b=T=K=null;for(d in r)if(O=r[d],r.hasOwnProperty(d)&&O!=null)switch(d){case"value":break;case"multiple":Z=O;default:s.hasOwnProperty(d)||Xe(e,n,d,null,s,O)}for(c in s)if(d=s[c],O=r[c],s.hasOwnProperty(c)&&(d!=null||O!=null))switch(c){case"value":K=d;break;case"defaultValue":T=d;break;case"multiple":b=d;default:d!==O&&Xe(e,n,c,d,s,O)}n=T,r=b,s=Z,K!=null?ri(e,!!r,K,!1):!!s!=!!r&&(n!=null?ri(e,!!r,n,!0):ri(e,!!r,r?[]:"",!1));return;case"textarea":Z=K=null;for(T in r)if(c=r[T],r.hasOwnProperty(T)&&c!=null&&!s.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:Xe(e,n,T,null,s,c)}for(b in s)if(c=s[b],d=r[b],s.hasOwnProperty(b)&&(c!=null||d!=null))switch(b){case"value":K=c;break;case"defaultValue":Z=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(l(91));break;default:c!==d&&Xe(e,n,b,c,s,d)}up(e,K,Z);return;case"option":for(var Ne in r)if(K=r[Ne],r.hasOwnProperty(Ne)&&K!=null&&!s.hasOwnProperty(Ne))switch(Ne){case"selected":e.selected=!1;break;default:Xe(e,n,Ne,null,s,K)}for(O in s)if(K=s[O],Z=r[O],s.hasOwnProperty(O)&&K!==Z&&(K!=null||Z!=null))switch(O){case"selected":e.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:Xe(e,n,O,K,s,Z)}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 be in r)K=r[be],r.hasOwnProperty(be)&&K!=null&&!s.hasOwnProperty(be)&&Xe(e,n,be,null,s,K);for($ in s)if(K=s[$],Z=r[$],s.hasOwnProperty($)&&K!==Z&&(K!=null||Z!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(l(137,n));break;default:Xe(e,n,$,K,s,Z)}return;default:if(Lu(n)){for(var $e in r)K=r[$e],r.hasOwnProperty($e)&&K!==void 0&&!s.hasOwnProperty($e)&&wd(e,n,$e,void 0,s,K);for(te in s)K=s[te],Z=r[te],!s.hasOwnProperty(te)||K===Z||K===void 0&&Z===void 0||wd(e,n,te,K,s,Z);return}}for(var Y in r)K=r[Y],r.hasOwnProperty(Y)&&K!=null&&!s.hasOwnProperty(Y)&&Xe(e,n,Y,null,s,K);for(ie in s)K=s[ie],Z=r[ie],!s.hasOwnProperty(ie)||K===Z||K==null&&Z==null||Xe(e,n,ie,K,s,Z)}var Sd=null,Ed=null;function ic(e){return e.nodeType===9?e:e.ownerDocument}function dy(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 hy(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Nd(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Td=null;function uE(){var e=window.event;return e&&e.type==="popstate"?e===Td?!1:(Td=e,!0):(Td=null,!1)}var my=typeof setTimeout=="function"?setTimeout:void 0,fE=typeof clearTimeout=="function"?clearTimeout:void 0,py=typeof Promise=="function"?Promise:void 0,dE=typeof queueMicrotask=="function"?queueMicrotask:typeof py<"u"?function(e){return py.resolve(null).then(e).catch(hE)}:my;function hE(e){setTimeout(function(){throw e})}function Pa(e){return e==="head"}function gy(e,n){var r=n,s=0,c=0;do{var d=r.nextSibling;if(e.removeChild(r),d&&d.nodeType===8)if(r=d.data,r==="/$"){if(0<s&&8>s){r=s;var b=e.ownerDocument;if(r&1&&fs(b.documentElement),r&2&&fs(b.body),r&4)for(r=b.head,fs(r),b=r.firstChild;b;){var T=b.nextSibling,O=b.nodeName;b[_l]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&b.rel.toLowerCase()==="stylesheet"||r.removeChild(b),b=T}}if(c===0){e.removeChild(d),xs(n);return}c--}else r==="$"||r==="$?"||r==="$!"?c++:s=r.charCodeAt(0)-48;else s=0;r=d}while(r);xs(n)}function _d(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var r=n;switch(n=n.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":_d(r),ju(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function mE(e,n,r,s){for(;e.nodeType===1;){var c=r;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[_l])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=Sn(e.nextSibling),e===null)break}return null}function pE(e,n,r){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Sn(e.nextSibling),e===null))return null;return e}function Ad(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function gE(e,n){var r=e.ownerDocument;if(e.data!=="$?"||r.readyState==="complete")n();else{var s=function(){n(),r.removeEventListener("DOMContentLoaded",s)};r.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Sn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}var Cd=null;function vy(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(n===0)return e;n--}else r==="/$"&&n++}e=e.previousSibling}return null}function yy(e,n,r){switch(n=ic(r),e){case"html":if(e=n.documentElement,!e)throw Error(l(452));return e;case"head":if(e=n.head,!e)throw Error(l(453));return e;case"body":if(e=n.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function fs(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);ju(e)}var gn=new Map,xy=new Set;function lc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var fa=P.d;P.d={f:vE,r:yE,D:xE,C:bE,L:wE,m:SE,X:NE,S:EE,M:TE};function vE(){var e=fa.f(),n=Zo();return e||n}function yE(e){var n=ei(e);n!==null&&n.tag===5&&n.type==="form"?Bg(n):fa.r(e)}var Di=typeof document>"u"?null:document;function by(e,n,r){var s=Di;if(s&&typeof n=="string"&&n){var c=cn(n);c='link[rel="'+e+'"][href="'+c+'"]',typeof r=="string"&&(c+='[crossorigin="'+r+'"]'),xy.has(c)||(xy.add(c),e={rel:e,crossOrigin:r,href:n},s.querySelector(c)===null&&(n=s.createElement("link"),Et(n,"link",e),gt(n),s.head.appendChild(n)))}}function xE(e){fa.D(e),by("dns-prefetch",e,null)}function bE(e,n){fa.C(e,n),by("preconnect",e,n)}function wE(e,n,r){fa.L(e,n,r);var s=Di;if(s&&e&&n){var c='link[rel="preload"][as="'+cn(n)+'"]';n==="image"&&r&&r.imageSrcSet?(c+='[imagesrcset="'+cn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(c+='[imagesizes="'+cn(r.imageSizes)+'"]')):c+='[href="'+cn(e)+'"]';var d=c;switch(n){case"style":d=ki(e);break;case"script":d=Li(e)}gn.has(d)||(e=v({rel:"preload",href:n==="image"&&r&&r.imageSrcSet?void 0:e,as:n},r),gn.set(d,e),s.querySelector(c)!==null||n==="style"&&s.querySelector(ds(d))||n==="script"&&s.querySelector(hs(d))||(n=s.createElement("link"),Et(n,"link",e),gt(n),s.head.appendChild(n)))}}function SE(e,n){fa.m(e,n);var r=Di;if(r&&e){var s=n&&typeof n.as=="string"?n.as:"script",c='link[rel="modulepreload"][as="'+cn(s)+'"][href="'+cn(e)+'"]',d=c;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Li(e)}if(!gn.has(d)&&(e=v({rel:"modulepreload",href:e},n),gn.set(d,e),r.querySelector(c)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(hs(d)))return}s=r.createElement("link"),Et(s,"link",e),gt(s),r.head.appendChild(s)}}}function EE(e,n,r){fa.S(e,n,r);var s=Di;if(s&&e){var c=ti(s).hoistableStyles,d=ki(e);n=n||"default";var b=c.get(d);if(!b){var T={loading:0,preload:null};if(b=s.querySelector(ds(d)))T.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":n},r),(r=gn.get(d))&&Md(e,r);var O=b=s.createElement("link");gt(O),Et(O,"link",e),O._p=new Promise(function($,te){O.onload=$,O.onerror=te}),O.addEventListener("load",function(){T.loading|=1}),O.addEventListener("error",function(){T.loading|=2}),T.loading|=4,sc(b,n,s)}b={type:"stylesheet",instance:b,count:1,state:T},c.set(d,b)}}}function NE(e,n){fa.X(e,n);var r=Di;if(r&&e){var s=ti(r).hoistableScripts,c=Li(e),d=s.get(c);d||(d=r.querySelector(hs(c)),d||(e=v({src:e,async:!0},n),(n=gn.get(c))&&jd(e,n),d=r.createElement("script"),gt(d),Et(d,"link",e),r.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(c,d))}}function TE(e,n){fa.M(e,n);var r=Di;if(r&&e){var s=ti(r).hoistableScripts,c=Li(e),d=s.get(c);d||(d=r.querySelector(hs(c)),d||(e=v({src:e,async:!0,type:"module"},n),(n=gn.get(c))&&jd(e,n),d=r.createElement("script"),gt(d),Et(d,"link",e),r.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},s.set(c,d))}}function wy(e,n,r,s){var c=(c=se.current)?lc(c):null;if(!c)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(n=ki(r.href),r=ti(c).hoistableStyles,s=r.get(n),s||(s={type:"style",instance:null,count:0,state:null},r.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=ki(r.href);var d=ti(c).hoistableStyles,b=d.get(e);if(b||(c=c.ownerDocument||c,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,b),(d=c.querySelector(ds(e)))&&!d._p&&(b.instance=d,b.state.loading=5),gn.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},gn.set(e,r),d||_E(c,e,r,b.state))),n&&s===null)throw Error(l(528,""));return b}if(n&&s!==null)throw Error(l(529,""));return null;case"script":return n=r.async,r=r.src,typeof r=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Li(r),r=ti(c).hoistableScripts,s=r.get(n),s||(s={type:"script",instance:null,count:0,state:null},r.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function ki(e){return'href="'+cn(e)+'"'}function ds(e){return'link[rel="stylesheet"]['+e+"]"}function Sy(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function _E(e,n,r,s){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=e.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),Et(n,"link",r),gt(n),e.head.appendChild(n))}function Li(e){return'[src="'+cn(e)+'"]'}function hs(e){return"script[async]"+e}function Ey(e,n,r){if(n.count++,n.instance===null)switch(n.type){case"style":var s=e.querySelector('style[data-href~="'+cn(r.href)+'"]');if(s)return n.instance=s,gt(s),s;var c=v({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),gt(s),Et(s,"style",c),sc(s,r.precedence,e),n.instance=s;case"stylesheet":c=ki(r.href);var d=e.querySelector(ds(c));if(d)return n.state.loading|=4,n.instance=d,gt(d),d;s=Sy(r),(c=gn.get(c))&&Md(s,c),d=(e.ownerDocument||e).createElement("link"),gt(d);var b=d;return b._p=new Promise(function(T,O){b.onload=T,b.onerror=O}),Et(d,"link",s),n.state.loading|=4,sc(d,r.precedence,e),n.instance=d;case"script":return d=Li(r.src),(c=e.querySelector(hs(d)))?(n.instance=c,gt(c),c):(s=r,(c=gn.get(d))&&(s=v({},r),jd(s,c)),e=e.ownerDocument||e,c=e.createElement("script"),gt(c),Et(c,"link",s),e.head.appendChild(c),n.instance=c);case"void":return null;default:throw Error(l(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,sc(s,r.precedence,e));return n.instance}function sc(e,n,r){for(var s=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=s.length?s[s.length-1]:null,d=c,b=0;b<s.length;b++){var T=s[b];if(T.dataset.precedence===n)d=T;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(n=r.nodeType===9?r.head:r,n.insertBefore(e,n.firstChild))}function Md(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function jd(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var oc=null;function Ny(e,n,r){if(oc===null){var s=new Map,c=oc=new Map;c.set(r,s)}else c=oc,s=c.get(r),s||(s=new Map,c.set(r,s));if(s.has(e))return s;for(s.set(e,null),r=r.getElementsByTagName(e),c=0;c<r.length;c++){var d=r[c];if(!(d[_l]||d[_t]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var b=d.getAttribute(n)||"";b=e+b;var T=s.get(b);T?T.push(d):s.set(b,[d])}}return s}function Ty(e,n,r){e=e.ownerDocument||e,e.head.insertBefore(r,n==="title"?e.querySelector("head > title"):null)}function AE(e,n,r){if(r===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function _y(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var ms=null;function CE(){}function ME(e,n,r){if(ms===null)throw Error(l(475));var s=ms;if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=ki(r.href),d=e.querySelector(ds(c));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=cc.bind(s),e.then(s,s)),n.state.loading|=4,n.instance=d,gt(d);return}d=e.ownerDocument||e,r=Sy(r),(c=gn.get(c))&&Md(r,c),d=d.createElement("link"),gt(d);var b=d;b._p=new Promise(function(T,O){b.onload=T,b.onerror=O}),Et(d,"link",r),n.instance=d}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(s.count++,n=cc.bind(s),e.addEventListener("load",n),e.addEventListener("error",n))}}function jE(){if(ms===null)throw Error(l(475));var e=ms;return e.stylesheets&&e.count===0&&Rd(e,e.stylesheets),0<e.count?function(n){var r=setTimeout(function(){if(e.stylesheets&&Rd(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r)}}:null}function cc(){if(this.count--,this.count===0){if(this.stylesheets)Rd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var uc=null;function Rd(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,uc=new Map,n.forEach(RE,e),uc=null,cc.call(e))}function RE(e,n){if(!(n.state.loading&4)){var r=uc.get(e);if(r)var s=r.get(null);else{r=new Map,uc.set(e,r);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var b=c[d];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(r.set(b.dataset.precedence,b),s=b)}s&&r.set(null,s)}c=n.instance,b=c.getAttribute("data-precedence"),d=r.get(b)||s,d===s&&r.set(null,c),r.set(b,c),this.count++,s=cc.bind(this),c.addEventListener("load",s),c.addEventListener("error",s),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),n.state.loading|=4}}var ps={$$typeof:R,Provider:null,Consumer:null,_currentValue:L,_currentValue2:L,_threadCount:0};function OE(e,n,r,s,c,d,b,T){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=_u(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_u(0),this.hiddenUpdates=_u(null),this.identifierPrefix=s,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Ay(e,n,r,s,c,d,b,T,O,$,te,ie){return e=new OE(e,n,r,b,T,O,$,ie),n=1,d===!0&&(n|=24),d=Ft(3,null,null,n),e.current=d,d.stateNode=e,n=df(),n.refCount++,e.pooledCache=n,n.refCount++,d.memoizedState={element:s,isDehydrated:r,cache:n},gf(d),e}function Cy(e){return e?(e=hi,e):hi}function My(e,n,r,s,c,d){c=Cy(c),s.context===null?s.context=c:s.pendingContext=c,s=Ca(n),s.payload={element:r},d=d===void 0?null:d,d!==null&&(s.callback=d),r=Ma(e,s,n),r!==null&&(Wt(r,e,n),Ql(r,e,n))}function jy(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<n?r:n}}function Od(e,n){jy(e,n),(e=e.alternate)&&jy(e,n)}function Ry(e){if(e.tag===13){var n=di(e,67108864);n!==null&&Wt(n,e,67108864),Od(e,67108864)}}var fc=!0;function zE(e,n,r,s){var c=_.T;_.T=null;var d=P.p;try{P.p=2,zd(e,n,r,s)}finally{P.p=d,_.T=c}}function DE(e,n,r,s){var c=_.T;_.T=null;var d=P.p;try{P.p=8,zd(e,n,r,s)}finally{P.p=d,_.T=c}}function zd(e,n,r,s){if(fc){var c=Dd(s);if(c===null)bd(e,n,s,dc,r),zy(e,s);else if(LE(c,e,n,r,s))s.stopPropagation();else if(zy(e,s),n&4&&-1<kE.indexOf(e)){for(;c!==null;){var d=ei(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var b=hr(d.pendingLanes);if(b!==0){var T=d;for(T.pendingLanes|=2,T.entangledLanes|=2;b;){var O=1<<31-Xt(b);T.entanglements[1]|=O,b&=~O}Hn(d),(Ve&6)===0&&(Ko=st()+500,os(0))}}break;case 13:T=di(d,2),T!==null&&Wt(T,d,2),Zo(),Od(d,2)}if(d=Dd(s),d===null&&bd(e,n,s,dc,r),d===c)break;c=d}c!==null&&s.stopPropagation()}else bd(e,n,s,null,r)}}function Dd(e){return e=Hu(e),kd(e)}var dc=null;function kd(e){if(dc=null,e=Wr(e),e!==null){var n=u(e);if(n===null)e=null;else{var r=n.tag;if(r===13){if(e=f(n),e!==null)return e;e=null}else if(r===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return dc=e,null}function Oy(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(pt()){case On:return 2;case to:return 8;case zn:case no:return 32;case ao:return 268435456;default:return 32}default:return 32}}var Ld=!1,Va=null,Ga=null,Ya=null,gs=new Map,vs=new Map,Qa=[],kE="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 zy(e,n){switch(e){case"focusin":case"focusout":Va=null;break;case"dragenter":case"dragleave":Ga=null;break;case"mouseover":case"mouseout":Ya=null;break;case"pointerover":case"pointerout":gs.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":vs.delete(n.pointerId)}}function ys(e,n,r,s,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:n,domEventName:r,eventSystemFlags:s,nativeEvent:d,targetContainers:[c]},n!==null&&(n=ei(n),n!==null&&Ry(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),e)}function LE(e,n,r,s,c){switch(n){case"focusin":return Va=ys(Va,e,n,r,s,c),!0;case"dragenter":return Ga=ys(Ga,e,n,r,s,c),!0;case"mouseover":return Ya=ys(Ya,e,n,r,s,c),!0;case"pointerover":var d=c.pointerId;return gs.set(d,ys(gs.get(d)||null,e,n,r,s,c)),!0;case"gotpointercapture":return d=c.pointerId,vs.set(d,ys(vs.get(d)||null,e,n,r,s,c)),!0}return!1}function Dy(e){var n=Wr(e.target);if(n!==null){var r=u(n);if(r!==null){if(n=r.tag,n===13){if(n=f(r),n!==null){e.blockedOn=n,MS(e.priority,function(){if(r.tag===13){var s=Jt();s=Au(s);var c=di(r,s);c!==null&&Wt(c,r,s),Od(r,s)}});return}}else if(n===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function hc(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var r=Dd(e.nativeEvent);if(r===null){r=e.nativeEvent;var s=new r.constructor(r.type,r);Uu=s,r.target.dispatchEvent(s),Uu=null}else return n=ei(r),n!==null&&Ry(n),e.blockedOn=r,!1;n.shift()}return!0}function ky(e,n,r){hc(e)&&r.delete(n)}function UE(){Ld=!1,Va!==null&&hc(Va)&&(Va=null),Ga!==null&&hc(Ga)&&(Ga=null),Ya!==null&&hc(Ya)&&(Ya=null),gs.forEach(ky),vs.forEach(ky)}function mc(e,n){e.blockedOn===n&&(e.blockedOn=null,Ld||(Ld=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,UE)))}var pc=null;function Ly(e){pc!==e&&(pc=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){pc===e&&(pc=null);for(var n=0;n<e.length;n+=3){var r=e[n],s=e[n+1],c=e[n+2];if(typeof s!="function"){if(kd(s||r)===null)continue;break}var d=ei(r);d!==null&&(e.splice(n,3),n-=3,kf(d,{pending:!0,data:c,method:r.method,action:s},s,c))}}))}function xs(e){function n(O){return mc(O,e)}Va!==null&&mc(Va,e),Ga!==null&&mc(Ga,e),Ya!==null&&mc(Ya,e),gs.forEach(n),vs.forEach(n);for(var r=0;r<Qa.length;r++){var s=Qa[r];s.blockedOn===e&&(s.blockedOn=null)}for(;0<Qa.length&&(r=Qa[0],r.blockedOn===null);)Dy(r),r.blockedOn===null&&Qa.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(s=0;s<r.length;s+=3){var c=r[s],d=r[s+1],b=c[kt]||null;if(typeof d=="function")b||Ly(r);else if(b){var T=null;if(d&&d.hasAttribute("formAction")){if(c=d,b=d[kt]||null)T=b.formAction;else if(kd(c)!==null)continue}else T=b.action;typeof T=="function"?r[s+1]=T:(r.splice(s,3),s-=3),Ly(r)}}}function Ud(e){this._internalRoot=e}gc.prototype.render=Ud.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(l(409));var r=n.current,s=Jt();My(r,s,e,n,null,null)},gc.prototype.unmount=Ud.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;My(e.current,2,null,e,null,null),Zo(),n[Jr]=null}};function gc(e){this._internalRoot=e}gc.prototype.unstable_scheduleHydration=function(e){if(e){var n=Wm();e={blockedOn:null,target:e,priority:n};for(var r=0;r<Qa.length&&n!==0&&n<Qa[r].priority;r++);Qa.splice(r,0,e),r===0&&Dy(e)}};var Uy=a.version;if(Uy!=="19.1.0")throw Error(l(527,Uy,"19.1.0"));P.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=g(n),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var HE={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vc.isDisabled&&vc.supportsFiber)try{El=vc.inject(HE),Qt=vc}catch{}}return ws.createRoot=function(e,n){if(!o(e))throw Error(l(299));var r=!1,s="",c=Wg,d=ev,b=tv,T=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(T=n.unstable_transitionCallbacks)),n=Ay(e,1,!1,null,null,r,s,c,d,b,T,null),e[Jr]=n.current,xd(e),new Ud(n)},ws.hydrateRoot=function(e,n,r){if(!o(e))throw Error(l(299));var s=!1,c="",d=Wg,b=ev,T=tv,O=null,$=null;return r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(c=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(b=r.onCaughtError),r.onRecoverableError!==void 0&&(T=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(O=r.unstable_transitionCallbacks),r.formState!==void 0&&($=r.formState)),n=Ay(e,1,!0,n,r??null,s,c,d,b,T,O,$),n.context=Cy(null),r=n.current,s=Jt(),s=Au(s),c=Ca(s),c.callback=null,Ma(r,c,s),r=s,n.current.lanes=r,Tl(n,r),Hn(n),e[Jr]=n.current,xd(e),new gc(n)},ws.version="19.1.0",ws}var Fy;function FE(){if(Fy)return Pd.exports;Fy=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),Pd.exports=$E(),Pd.exports}var KE=FE(),pl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Yr=typeof window>"u"||"Deno"in globalThis;function zt(){}function IE(t,a){return typeof t=="function"?t(a):t}function hh(t){return typeof t=="number"&&t>=0&&t!==1/0}function Lx(t,a){return Math.max(t+(a||0)-Date.now(),0)}function sr(t,a){return typeof t=="function"?t(a):t}function _n(t,a){return typeof t=="function"?t(a):t}function Ky(t,a){const{type:i="all",exact:l,fetchStatus:o,predicate:u,queryKey:f,stale:h}=t;if(f){if(l){if(a.queryHash!==im(f,a.options))return!1}else if(!Ds(a.queryKey,f))return!1}if(i!=="all"){const g=a.isActive();if(i==="active"&&!g||i==="inactive"&&g)return!1}return!(typeof h=="boolean"&&a.isStale()!==h||o&&o!==a.state.fetchStatus||u&&!u(a))}function Iy(t,a){const{exact:i,status:l,predicate:o,mutationKey:u}=t;if(u){if(!a.options.mutationKey)return!1;if(i){if(Qr(a.options.mutationKey)!==Qr(u))return!1}else if(!Ds(a.options.mutationKey,u))return!1}return!(l&&a.state.status!==l||o&&!o(a))}function im(t,a){return((a==null?void 0:a.queryKeyHashFn)||Qr)(t)}function Qr(t){return JSON.stringify(t,(a,i)=>mh(i)?Object.keys(i).sort().reduce((l,o)=>(l[o]=i[o],l),{}):i)}function Ds(t,a){return t===a?!0:typeof t!=typeof a?!1:t&&a&&typeof t=="object"&&typeof a=="object"?Object.keys(a).every(i=>Ds(t[i],a[i])):!1}function Ux(t,a){if(t===a)return t;const i=Zy(t)&&Zy(a);if(i||mh(t)&&mh(a)){const l=i?t:Object.keys(t),o=l.length,u=i?a:Object.keys(a),f=u.length,h=i?[]:{},g=new Set(l);let p=0;for(let v=0;v<f;v++){const y=i?v:u[v];(!i&&g.has(y)||i)&&t[y]===void 0&&a[y]===void 0?(h[y]=void 0,p++):(h[y]=Ux(t[y],a[y]),h[y]===t[y]&&t[y]!==void 0&&p++)}return o===f&&p===o?t:h}return a}function Xc(t,a){if(!a||Object.keys(t).length!==Object.keys(a).length)return!1;for(const i in t)if(t[i]!==a[i])return!1;return!0}function Zy(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function mh(t){if(!Jy(t))return!1;const a=t.constructor;if(a===void 0)return!0;const i=a.prototype;return!(!Jy(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Jy(t){return Object.prototype.toString.call(t)==="[object Object]"}function ZE(t){return new Promise(a=>{setTimeout(a,t)})}function ph(t,a,i){return typeof i.structuralSharing=="function"?i.structuralSharing(t,a):i.structuralSharing!==!1?Ux(t,a):a}function JE(t,a,i=0){const l=[...t,a];return i&&l.length>i?l.slice(1):l}function WE(t,a,i=0){const l=[a,...t];return i&&l.length>i?l.slice(0,-1):l}var lm=Symbol();function Hx(t,a){return!t.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!t.queryFn||t.queryFn===lm?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Bx(t,a){return typeof t=="function"?t(...a):!!t}var kr,Za,Ji,Nx,eN=(Nx=class extends pl{constructor(){super();xe(this,kr);xe(this,Za);xe(this,Ji);de(this,Ji,a=>{if(!Yr&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){D(this,Za)||this.setEventListener(D(this,Ji))}onUnsubscribe(){var a;this.hasListeners()||((a=D(this,Za))==null||a.call(this),de(this,Za,void 0))}setEventListener(a){var i;de(this,Ji,a),(i=D(this,Za))==null||i.call(this),de(this,Za,a(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(a){D(this,kr)!==a&&(de(this,kr,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){var a;return typeof D(this,kr)=="boolean"?D(this,kr):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},kr=new WeakMap,Za=new WeakMap,Ji=new WeakMap,Nx),sm=new eN,Wi,Ja,el,Tx,tN=(Tx=class extends pl{constructor(){super();xe(this,Wi,!0);xe(this,Ja);xe(this,el);de(this,el,a=>{if(!Yr&&window.addEventListener){const i=()=>a(!0),l=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",l)}}})}onSubscribe(){D(this,Ja)||this.setEventListener(D(this,el))}onUnsubscribe(){var a;this.hasListeners()||((a=D(this,Ja))==null||a.call(this),de(this,Ja,void 0))}setEventListener(a){var i;de(this,el,a),(i=D(this,Ja))==null||i.call(this),de(this,Ja,a(this.setOnline.bind(this)))}setOnline(a){D(this,Wi)!==a&&(de(this,Wi,a),this.listeners.forEach(l=>{l(a)}))}isOnline(){return D(this,Wi)}},Wi=new WeakMap,Ja=new WeakMap,el=new WeakMap,Tx),$c=new tN;function gh(){let t,a;const i=new Promise((o,u)=>{t=o,a=u});i.status="pending",i.catch(()=>{});function l(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{l({status:"fulfilled",value:o}),t(o)},i.reject=o=>{l({status:"rejected",reason:o}),a(o)},i}function nN(t){return Math.min(1e3*2**t,3e4)}function qx(t){return(t??"online")==="online"?$c.isOnline():!0}var Px=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Qd(t){return t instanceof Px}function Vx(t){let a=!1,i=0,l=!1,o;const u=gh(),f=N=>{var E;l||(x(new Px(N)),(E=t.abort)==null||E.call(t))},h=()=>{a=!0},g=()=>{a=!1},p=()=>sm.isFocused()&&(t.networkMode==="always"||$c.isOnline())&&t.canRun(),v=()=>qx(t.networkMode)&&t.canRun(),y=N=>{var E;l||(l=!0,(E=t.onSuccess)==null||E.call(t,N),o==null||o(),u.resolve(N))},x=N=>{var E;l||(l=!0,(E=t.onError)==null||E.call(t,N),o==null||o(),u.reject(N))},S=()=>new Promise(N=>{var E;o=A=>{(l||p())&&N(A)},(E=t.onPause)==null||E.call(t)}).then(()=>{var N;o=void 0,l||(N=t.onContinue)==null||N.call(t)}),M=()=>{if(l)return;let N;const E=i===0?t.initialPromise:void 0;try{N=E??t.fn()}catch(A){N=Promise.reject(A)}Promise.resolve(N).then(y).catch(A=>{var q;if(l)return;const z=t.retry??(Yr?0:3),R=t.retryDelay??nN,H=typeof R=="function"?R(i,A):R,k=z===!0||typeof z=="number"&&i<z||typeof z=="function"&&z(i,A);if(a||!k){x(A);return}i++,(q=t.onFail)==null||q.call(t,i,A),ZE(H).then(()=>p()?void 0:S()).then(()=>{a?x(A):M()})})};return{promise:u,cancel:f,continue:()=>(o==null||o(),u),cancelRetry:h,continueRetry:g,canStart:v,start:()=>(v()?M():S().then(M),u)}}var aN=t=>setTimeout(t,0);function rN(){let t=[],a=0,i=h=>{h()},l=h=>{h()},o=aN;const u=h=>{a?t.push(h):o(()=>{i(h)})},f=()=>{const h=t;t=[],h.length&&o(()=>{l(()=>{h.forEach(g=>{i(g)})})})};return{batch:h=>{let g;a++;try{g=h()}finally{a--,a||f()}return g},batchCalls:h=>(...g)=>{u(()=>{h(...g)})},schedule:u,setNotifyFunction:h=>{i=h},setBatchNotifyFunction:h=>{l=h},setScheduler:h=>{o=h}}}var ht=rN(),Lr,_x,Gx=(_x=class{constructor(){xe(this,Lr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hh(this.gcTime)&&de(this,Lr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Yr?1/0:5*60*1e3))}clearGcTimeout(){D(this,Lr)&&(clearTimeout(D(this,Lr)),de(this,Lr,void 0))}},Lr=new WeakMap,_x),tl,nl,vn,Ur,Mt,Vs,Hr,Nn,ma,Ax,iN=(Ax=class extends Gx{constructor(a){super();xe(this,Nn);xe(this,tl);xe(this,nl);xe(this,vn);xe(this,Ur);xe(this,Mt);xe(this,Vs);xe(this,Hr);de(this,Hr,!1),de(this,Vs,a.defaultOptions),this.setOptions(a.options),this.observers=[],de(this,Ur,a.client),de(this,vn,D(this,Ur).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,de(this,tl,lN(this.options)),this.state=a.state??D(this,tl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=D(this,Mt))==null?void 0:a.promise}setOptions(a){this.options={...D(this,Vs),...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,vn).remove(this)}setData(a,i){const l=ph(this.state.data,a,this.options);return Ce(this,Nn,ma).call(this,{data:l,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),l}setState(a,i){Ce(this,Nn,ma).call(this,{type:"setState",state:a,setStateOptions:i})}cancel(a){var l,o;const i=(l=D(this,Mt))==null?void 0:l.promise;return(o=D(this,Mt))==null||o.cancel(a),i?i.then(zt).catch(zt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(D(this,tl))}isActive(){return this.observers.some(a=>_n(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===lm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>sr(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!Lx(this.state.dataUpdatedAt,a)}onFocus(){var i;const a=this.observers.find(l=>l.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(i=D(this,Mt))==null||i.continue()}onOnline(){var i;const a=this.observers.find(l=>l.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(i=D(this,Mt))==null||i.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),D(this,vn).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(D(this,Mt)&&(D(this,Hr)?D(this,Mt).cancel({revert:!0}):D(this,Mt).cancelRetry()),this.scheduleGc()),D(this,vn).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ce(this,Nn,ma).call(this,{type:"invalidate"})}fetch(a,i){var p,v,y;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(D(this,Mt))return D(this,Mt).continueRetry(),D(this,Mt).promise}if(a&&this.setOptions(a),!this.options.queryFn){const x=this.observers.find(S=>S.options.queryFn);x&&this.setOptions(x.options)}const l=new AbortController,o=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(de(this,Hr,!0),l.signal)})},u=()=>{const x=Hx(this.options,i),M=(()=>{const N={client:D(this,Ur),queryKey:this.queryKey,meta:this.meta};return o(N),N})();return de(this,Hr,!1),this.options.persister?this.options.persister(x,M,this):x(M)},h=(()=>{const x={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:D(this,Ur),state:this.state,fetchFn:u};return o(x),x})();(p=this.options.behavior)==null||p.onFetch(h,this),de(this,nl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=h.fetchOptions)==null?void 0:v.meta))&&Ce(this,Nn,ma).call(this,{type:"fetch",meta:(y=h.fetchOptions)==null?void 0:y.meta});const g=x=>{var S,M,N,E;Qd(x)&&x.silent||Ce(this,Nn,ma).call(this,{type:"error",error:x}),Qd(x)||((M=(S=D(this,vn).config).onError)==null||M.call(S,x,this),(E=(N=D(this,vn).config).onSettled)==null||E.call(N,this.state.data,x,this)),this.scheduleGc()};return de(this,Mt,Vx({initialPromise:i==null?void 0:i.initialPromise,fn:h.fetchFn,abort:l.abort.bind(l),onSuccess:x=>{var S,M,N,E;if(x===void 0){g(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(x)}catch(A){g(A);return}(M=(S=D(this,vn).config).onSuccess)==null||M.call(S,x,this),(E=(N=D(this,vn).config).onSettled)==null||E.call(N,x,this.state.error,this),this.scheduleGc()},onError:g,onFail:(x,S)=>{Ce(this,Nn,ma).call(this,{type:"failed",failureCount:x,error:S})},onPause:()=>{Ce(this,Nn,ma).call(this,{type:"pause"})},onContinue:()=>{Ce(this,Nn,ma).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),D(this,Mt).start()}},tl=new WeakMap,nl=new WeakMap,vn=new WeakMap,Ur=new WeakMap,Mt=new WeakMap,Vs=new WeakMap,Hr=new WeakMap,Nn=new WeakSet,ma=function(a){const i=l=>{switch(a.type){case"failed":return{...l,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...Yx(l.data,this.options),fetchMeta:a.meta??null};case"success":return{...l,data:a.data,dataUpdateCount:l.dataUpdateCount+1,dataUpdatedAt:a.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=a.error;return Qd(o)&&o.revert&&D(this,nl)?{...D(this,nl),fetchStatus:"idle"}:{...l,error:o,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...a.state}}};this.state=i(this.state),ht.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),D(this,vn).notify({query:this,type:"updated",action:a})})},Ax);function Yx(t,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:qx(a.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function lN(t){const a=typeof t.initialData=="function"?t.initialData():t.initialData,i=a!==void 0,l=i?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:i?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Bn,Cx,sN=(Cx=class extends pl{constructor(a={}){super();xe(this,Bn);this.config=a,de(this,Bn,new Map)}build(a,i,l){const o=i.queryKey,u=i.queryHash??im(o,i);let f=this.get(u);return f||(f=new iN({client:a,queryKey:o,queryHash:u,options:a.defaultQueryOptions(i),state:l,defaultOptions:a.getQueryDefaults(o)}),this.add(f)),f}add(a){D(this,Bn).has(a.queryHash)||(D(this,Bn).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=D(this,Bn).get(a.queryHash);i&&(a.destroy(),i===a&&D(this,Bn).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){ht.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return D(this,Bn).get(a)}getAll(){return[...D(this,Bn).values()]}find(a){const i={exact:!0,...a};return this.getAll().find(l=>Ky(i,l))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(l=>Ky(a,l)):i}notify(a){ht.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){ht.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){ht.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Bn=new WeakMap,Cx),qn,Rt,Br,Pn,Ka,Mx,oN=(Mx=class extends Gx{constructor(a){super();xe(this,Pn);xe(this,qn);xe(this,Rt);xe(this,Br);this.mutationId=a.mutationId,de(this,Rt,a.mutationCache),de(this,qn,[]),this.state=a.state||Qx(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){D(this,qn).includes(a)||(D(this,qn).push(a),this.clearGcTimeout(),D(this,Rt).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){de(this,qn,D(this,qn).filter(i=>i!==a)),this.scheduleGc(),D(this,Rt).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){D(this,qn).length||(this.state.status==="pending"?this.scheduleGc():D(this,Rt).remove(this))}continue(){var a;return((a=D(this,Br))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var u,f,h,g,p,v,y,x,S,M,N,E,A,z,R,H,k,q,V,G;const i=()=>{Ce(this,Pn,Ka).call(this,{type:"continue"})};de(this,Br,Vx({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(ae,fe)=>{Ce(this,Pn,Ka).call(this,{type:"failed",failureCount:ae,error:fe})},onPause:()=>{Ce(this,Pn,Ka).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,Rt).canRun(this)}));const l=this.state.status==="pending",o=!D(this,Br).canStart();try{if(l)i();else{Ce(this,Pn,Ka).call(this,{type:"pending",variables:a,isPaused:o}),await((f=(u=D(this,Rt).config).onMutate)==null?void 0:f.call(u,a,this));const fe=await((g=(h=this.options).onMutate)==null?void 0:g.call(h,a));fe!==this.state.context&&Ce(this,Pn,Ka).call(this,{type:"pending",context:fe,variables:a,isPaused:o})}const ae=await D(this,Br).start();return await((v=(p=D(this,Rt).config).onSuccess)==null?void 0:v.call(p,ae,a,this.state.context,this)),await((x=(y=this.options).onSuccess)==null?void 0:x.call(y,ae,a,this.state.context)),await((M=(S=D(this,Rt).config).onSettled)==null?void 0:M.call(S,ae,null,this.state.variables,this.state.context,this)),await((E=(N=this.options).onSettled)==null?void 0:E.call(N,ae,null,a,this.state.context)),Ce(this,Pn,Ka).call(this,{type:"success",data:ae}),ae}catch(ae){try{throw await((z=(A=D(this,Rt).config).onError)==null?void 0:z.call(A,ae,a,this.state.context,this)),await((H=(R=this.options).onError)==null?void 0:H.call(R,ae,a,this.state.context)),await((q=(k=D(this,Rt).config).onSettled)==null?void 0:q.call(k,void 0,ae,this.state.variables,this.state.context,this)),await((G=(V=this.options).onSettled)==null?void 0:G.call(V,void 0,ae,a,this.state.context)),ae}finally{Ce(this,Pn,Ka).call(this,{type:"error",error:ae})}}finally{D(this,Rt).runNext(this)}}},qn=new WeakMap,Rt=new WeakMap,Br=new WeakMap,Pn=new WeakSet,Ka=function(a){const i=l=>{switch(a.type){case"failed":return{...l,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...l,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:a.error,failureCount:l.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),ht.batch(()=>{D(this,qn).forEach(l=>{l.onMutationUpdate(a)}),D(this,Rt).notify({mutation:this,type:"updated",action:a})})},Mx);function Qx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pa,Tn,Gs,jx,cN=(jx=class extends pl{constructor(a={}){super();xe(this,pa);xe(this,Tn);xe(this,Gs);this.config=a,de(this,pa,new Set),de(this,Tn,new Map),de(this,Gs,0)}build(a,i,l){const o=new oN({mutationCache:this,mutationId:++yc(this,Gs)._,options:a.defaultMutationOptions(i),state:l});return this.add(o),o}add(a){D(this,pa).add(a);const i=xc(a);if(typeof i=="string"){const l=D(this,Tn).get(i);l?l.push(a):D(this,Tn).set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(D(this,pa).delete(a)){const i=xc(a);if(typeof i=="string"){const l=D(this,Tn).get(i);if(l)if(l.length>1){const o=l.indexOf(a);o!==-1&&l.splice(o,1)}else l[0]===a&&D(this,Tn).delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=xc(a);if(typeof i=="string"){const l=D(this,Tn).get(i),o=l==null?void 0:l.find(u=>u.state.status==="pending");return!o||o===a}else return!0}runNext(a){var l;const i=xc(a);if(typeof i=="string"){const o=(l=D(this,Tn).get(i))==null?void 0:l.find(u=>u!==a&&u.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ht.batch(()=>{D(this,pa).forEach(a=>{this.notify({type:"removed",mutation:a})}),D(this,pa).clear(),D(this,Tn).clear()})}getAll(){return Array.from(D(this,pa))}find(a){const i={exact:!0,...a};return this.getAll().find(l=>Iy(i,l))}findAll(a={}){return this.getAll().filter(i=>Iy(a,i))}notify(a){ht.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return ht.batch(()=>Promise.all(a.map(i=>i.continue().catch(zt))))}},pa=new WeakMap,Tn=new WeakMap,Gs=new WeakMap,jx);function xc(t){var a;return(a=t.options.scope)==null?void 0:a.id}function Wy(t){return{onFetch:(a,i)=>{var v,y,x,S,M;const l=a.options,o=(x=(y=(v=a.fetchOptions)==null?void 0:v.meta)==null?void 0:y.fetchMore)==null?void 0:x.direction,u=((S=a.state.data)==null?void 0:S.pages)||[],f=((M=a.state.data)==null?void 0:M.pageParams)||[];let h={pages:[],pageParams:[]},g=0;const p=async()=>{let N=!1;const E=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(a.signal.aborted?N=!0:a.signal.addEventListener("abort",()=>{N=!0}),a.signal)})},A=Hx(a.options,a.fetchOptions),z=async(R,H,k)=>{if(N)return Promise.reject();if(H==null&&R.pages.length)return Promise.resolve(R);const V=(()=>{const B={client:a.client,queryKey:a.queryKey,pageParam:H,direction:k?"backward":"forward",meta:a.options.meta};return E(B),B})(),G=await A(V),{maxPages:ae}=a.options,fe=k?WE:JE;return{pages:fe(R.pages,G,ae),pageParams:fe(R.pageParams,H,ae)}};if(o&&u.length){const R=o==="backward",H=R?uN:e0,k={pages:u,pageParams:f},q=H(l,k);h=await z(k,q,R)}else{const R=t??u.length;do{const H=g===0?f[0]??l.initialPageParam:e0(l,h);if(g>0&&H==null)break;h=await z(h,H),g++}while(g<R)}return h};a.options.persister?a.fetchFn=()=>{var N,E;return(E=(N=a.options).persister)==null?void 0:E.call(N,p,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},i)}:a.fetchFn=p}}}function e0(t,{pages:a,pageParams:i}){const l=a.length-1;return a.length>0?t.getNextPageParam(a[l],a,i[l],i):void 0}function uN(t,{pages:a,pageParams:i}){var l;return a.length>0?(l=t.getPreviousPageParam)==null?void 0:l.call(t,a[0],a,i[0],i):void 0}var nt,Wa,er,al,rl,tr,il,ll,Rx,Xx=(Rx=class{constructor(t={}){xe(this,nt);xe(this,Wa);xe(this,er);xe(this,al);xe(this,rl);xe(this,tr);xe(this,il);xe(this,ll);de(this,nt,t.queryCache||new sN),de(this,Wa,t.mutationCache||new cN),de(this,er,t.defaultOptions||{}),de(this,al,new Map),de(this,rl,new Map),de(this,tr,0)}mount(){yc(this,tr)._++,D(this,tr)===1&&(de(this,il,sm.subscribe(async t=>{t&&(await this.resumePausedMutations(),D(this,nt).onFocus())})),de(this,ll,$c.subscribe(async t=>{t&&(await this.resumePausedMutations(),D(this,nt).onOnline())})))}unmount(){var t,a;yc(this,tr)._--,D(this,tr)===0&&((t=D(this,il))==null||t.call(this),de(this,il,void 0),(a=D(this,ll))==null||a.call(this),de(this,ll,void 0))}isFetching(t){return D(this,nt).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return D(this,Wa).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const a=this.defaultQueryOptions({queryKey:t});return(i=D(this,nt).get(a.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const a=this.defaultQueryOptions(t),i=D(this,nt).build(this,a),l=i.state.data;return l===void 0?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(sr(a.staleTime,i))&&this.prefetchQuery(a),Promise.resolve(l))}getQueriesData(t){return D(this,nt).findAll(t).map(({queryKey:a,state:i})=>{const l=i.data;return[a,l]})}setQueryData(t,a,i){const l=this.defaultQueryOptions({queryKey:t}),o=D(this,nt).get(l.queryHash),u=o==null?void 0:o.state.data,f=IE(a,u);if(f!==void 0)return D(this,nt).build(this,l).setData(f,{...i,manual:!0})}setQueriesData(t,a,i){return ht.batch(()=>D(this,nt).findAll(t).map(({queryKey:l})=>[l,this.setQueryData(l,a,i)]))}getQueryState(t){var i;const a=this.defaultQueryOptions({queryKey:t});return(i=D(this,nt).get(a.queryHash))==null?void 0:i.state}removeQueries(t){const a=D(this,nt);ht.batch(()=>{a.findAll(t).forEach(i=>{a.remove(i)})})}resetQueries(t,a){const i=D(this,nt);return ht.batch(()=>(i.findAll(t).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...t},a)))}cancelQueries(t,a={}){const i={revert:!0,...a},l=ht.batch(()=>D(this,nt).findAll(t).map(o=>o.cancel(i)));return Promise.all(l).then(zt).catch(zt)}invalidateQueries(t,a={}){return ht.batch(()=>(D(this,nt).findAll(t).forEach(i=>{i.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},a)))}refetchQueries(t,a={}){const i={...a,cancelRefetch:a.cancelRefetch??!0},l=ht.batch(()=>D(this,nt).findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let u=o.fetch(void 0,i);return i.throwOnError||(u=u.catch(zt)),o.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(l).then(zt)}fetchQuery(t){const a=this.defaultQueryOptions(t);a.retry===void 0&&(a.retry=!1);const i=D(this,nt).build(this,a);return i.isStaleByTime(sr(a.staleTime,i))?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(zt).catch(zt)}fetchInfiniteQuery(t){return t.behavior=Wy(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(zt).catch(zt)}ensureInfiniteQueryData(t){return t.behavior=Wy(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return $c.isOnline()?D(this,Wa).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,nt)}getMutationCache(){return D(this,Wa)}getDefaultOptions(){return D(this,er)}setDefaultOptions(t){de(this,er,t)}setQueryDefaults(t,a){D(this,al).set(Qr(t),{queryKey:t,defaultOptions:a})}getQueryDefaults(t){const a=[...D(this,al).values()],i={};return a.forEach(l=>{Ds(t,l.queryKey)&&Object.assign(i,l.defaultOptions)}),i}setMutationDefaults(t,a){D(this,rl).set(Qr(t),{mutationKey:t,defaultOptions:a})}getMutationDefaults(t){const a=[...D(this,rl).values()],i={};return a.forEach(l=>{Ds(t,l.mutationKey)&&Object.assign(i,l.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;const a={...D(this,er).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return a.queryHash||(a.queryHash=im(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===lm&&(a.enabled=!1),a}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...D(this,er).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){D(this,nt).clear(),D(this,Wa).clear()}},nt=new WeakMap,Wa=new WeakMap,er=new WeakMap,al=new WeakMap,rl=new WeakMap,tr=new WeakMap,il=new WeakMap,ll=new WeakMap,Rx),qt,ke,Ys,Ot,qr,sl,nr,ar,Qs,ol,cl,Pr,Vr,rr,ul,Pe,Ts,vh,yh,xh,bh,wh,Sh,Eh,$x,Ox,fN=(Ox=class extends pl{constructor(a,i){super();xe(this,Pe);xe(this,qt);xe(this,ke);xe(this,Ys);xe(this,Ot);xe(this,qr);xe(this,sl);xe(this,nr);xe(this,ar);xe(this,Qs);xe(this,ol);xe(this,cl);xe(this,Pr);xe(this,Vr);xe(this,rr);xe(this,ul,new Set);this.options=i,de(this,qt,a),de(this,ar,null),de(this,nr,gh()),this.options.experimental_prefetchInRender||D(this,nr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(this,ke).addObserver(this),t0(D(this,ke),this.options)?Ce(this,Pe,Ts).call(this):this.updateResult(),Ce(this,Pe,bh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Nh(D(this,ke),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Nh(D(this,ke),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ce(this,Pe,wh).call(this),Ce(this,Pe,Sh).call(this),D(this,ke).removeObserver(this)}setOptions(a){const i=this.options,l=D(this,ke);if(this.options=D(this,qt).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof _n(this.options.enabled,D(this,ke))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ce(this,Pe,Eh).call(this),D(this,ke).setOptions(this.options),i._defaulted&&!Xc(this.options,i)&&D(this,qt).getQueryCache().notify({type:"observerOptionsUpdated",query:D(this,ke),observer:this});const o=this.hasListeners();o&&n0(D(this,ke),l,this.options,i)&&Ce(this,Pe,Ts).call(this),this.updateResult(),o&&(D(this,ke)!==l||_n(this.options.enabled,D(this,ke))!==_n(i.enabled,D(this,ke))||sr(this.options.staleTime,D(this,ke))!==sr(i.staleTime,D(this,ke)))&&Ce(this,Pe,vh).call(this);const u=Ce(this,Pe,yh).call(this);o&&(D(this,ke)!==l||_n(this.options.enabled,D(this,ke))!==_n(i.enabled,D(this,ke))||u!==D(this,rr))&&Ce(this,Pe,xh).call(this,u)}getOptimisticResult(a){const i=D(this,qt).getQueryCache().build(D(this,qt),a),l=this.createResult(i,a);return hN(this,l)&&(de(this,Ot,l),de(this,sl,this.options),de(this,qr,D(this,ke).state)),l}getCurrentResult(){return D(this,Ot)}trackResult(a,i){return new Proxy(a,{get:(l,o)=>(this.trackProp(o),i==null||i(o),Reflect.get(l,o))})}trackProp(a){D(this,ul).add(a)}getCurrentQuery(){return D(this,ke)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const i=D(this,qt).defaultQueryOptions(a),l=D(this,qt).getQueryCache().build(D(this,qt),i);return l.fetch().then(()=>this.createResult(l,i))}fetch(a){return Ce(this,Pe,Ts).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),D(this,Ot)))}createResult(a,i){var ae;const l=D(this,ke),o=this.options,u=D(this,Ot),f=D(this,qr),h=D(this,sl),p=a!==l?a.state:D(this,Ys),{state:v}=a;let y={...v},x=!1,S;if(i._optimisticResults){const fe=this.hasListeners(),B=!fe&&t0(a,i),ee=fe&&n0(a,l,i,o);(B||ee)&&(y={...y,...Yx(v.data,a.options)}),i._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:M,errorUpdatedAt:N,status:E}=y;S=y.data;let A=!1;if(i.placeholderData!==void 0&&S===void 0&&E==="pending"){let fe;u!=null&&u.isPlaceholderData&&i.placeholderData===(h==null?void 0:h.placeholderData)?(fe=u.data,A=!0):fe=typeof i.placeholderData=="function"?i.placeholderData((ae=D(this,cl))==null?void 0:ae.state.data,D(this,cl)):i.placeholderData,fe!==void 0&&(E="success",S=ph(u==null?void 0:u.data,fe,i),x=!0)}if(i.select&&S!==void 0&&!A)if(u&&S===(f==null?void 0:f.data)&&i.select===D(this,Qs))S=D(this,ol);else try{de(this,Qs,i.select),S=i.select(S),S=ph(u==null?void 0:u.data,S,i),de(this,ol,S),de(this,ar,null)}catch(fe){de(this,ar,fe)}D(this,ar)&&(M=D(this,ar),S=D(this,ol),N=Date.now(),E="error");const z=y.fetchStatus==="fetching",R=E==="pending",H=E==="error",k=R&&z,q=S!==void 0,G={status:E,fetchStatus:y.fetchStatus,isPending:R,isSuccess:E==="success",isError:H,isInitialLoading:k,isLoading:k,data:S,dataUpdatedAt:y.dataUpdatedAt,error:M,errorUpdatedAt:N,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:z,isRefetching:z&&!R,isLoadingError:H&&!q,isPaused:y.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:H&&q,isStale:om(a,i),refetch:this.refetch,promise:D(this,nr)};if(this.options.experimental_prefetchInRender){const fe=oe=>{G.status==="error"?oe.reject(G.error):G.data!==void 0&&oe.resolve(G.data)},B=()=>{const oe=de(this,nr,G.promise=gh());fe(oe)},ee=D(this,nr);switch(ee.status){case"pending":a.queryHash===l.queryHash&&fe(ee);break;case"fulfilled":(G.status==="error"||G.data!==ee.value)&&B();break;case"rejected":(G.status!=="error"||G.error!==ee.reason)&&B();break}}return G}updateResult(){const a=D(this,Ot),i=this.createResult(D(this,ke),this.options);if(de(this,qr,D(this,ke).state),de(this,sl,this.options),D(this,qr).data!==void 0&&de(this,cl,D(this,ke)),Xc(i,a))return;de(this,Ot,i);const l=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,u=typeof o=="function"?o():o;if(u==="all"||!u&&!D(this,ul).size)return!0;const f=new Set(u??D(this,ul));return this.options.throwOnError&&f.add("error"),Object.keys(D(this,Ot)).some(h=>{const g=h;return D(this,Ot)[g]!==a[g]&&f.has(g)})};Ce(this,Pe,$x).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ce(this,Pe,bh).call(this)}},qt=new WeakMap,ke=new WeakMap,Ys=new WeakMap,Ot=new WeakMap,qr=new WeakMap,sl=new WeakMap,nr=new WeakMap,ar=new WeakMap,Qs=new WeakMap,ol=new WeakMap,cl=new WeakMap,Pr=new WeakMap,Vr=new WeakMap,rr=new WeakMap,ul=new WeakMap,Pe=new WeakSet,Ts=function(a){Ce(this,Pe,Eh).call(this);let i=D(this,ke).fetch(this.options,a);return a!=null&&a.throwOnError||(i=i.catch(zt)),i},vh=function(){Ce(this,Pe,wh).call(this);const a=sr(this.options.staleTime,D(this,ke));if(Yr||D(this,Ot).isStale||!hh(a))return;const l=Lx(D(this,Ot).dataUpdatedAt,a)+1;de(this,Pr,setTimeout(()=>{D(this,Ot).isStale||this.updateResult()},l))},yh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(D(this,ke)):this.options.refetchInterval)??!1},xh=function(a){Ce(this,Pe,Sh).call(this),de(this,rr,a),!(Yr||_n(this.options.enabled,D(this,ke))===!1||!hh(D(this,rr))||D(this,rr)===0)&&de(this,Vr,setInterval(()=>{(this.options.refetchIntervalInBackground||sm.isFocused())&&Ce(this,Pe,Ts).call(this)},D(this,rr)))},bh=function(){Ce(this,Pe,vh).call(this),Ce(this,Pe,xh).call(this,Ce(this,Pe,yh).call(this))},wh=function(){D(this,Pr)&&(clearTimeout(D(this,Pr)),de(this,Pr,void 0))},Sh=function(){D(this,Vr)&&(clearInterval(D(this,Vr)),de(this,Vr,void 0))},Eh=function(){const a=D(this,qt).getQueryCache().build(D(this,qt),this.options);if(a===D(this,ke))return;const i=D(this,ke);de(this,ke,a),de(this,Ys,a.state),this.hasListeners()&&(i==null||i.removeObserver(this),a.addObserver(this))},$x=function(a){ht.batch(()=>{a.listeners&&this.listeners.forEach(i=>{i(D(this,Ot))}),D(this,qt).getQueryCache().notify({query:D(this,ke),type:"observerResultsUpdated"})})},Ox);function dN(t,a){return _n(a.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&a.retryOnMount===!1)}function t0(t,a){return dN(t,a)||t.state.data!==void 0&&Nh(t,a,a.refetchOnMount)}function Nh(t,a,i){if(_n(a.enabled,t)!==!1&&sr(a.staleTime,t)!=="static"){const l=typeof i=="function"?i(t):i;return l==="always"||l!==!1&&om(t,a)}return!1}function n0(t,a,i,l){return(t!==a||_n(l.enabled,t)===!1)&&(!i.suspense||t.state.status!=="error")&&om(t,i)}function om(t,a){return _n(a.enabled,t)!==!1&&t.isStaleByTime(sr(a.staleTime,t))}function hN(t,a){return!Xc(t.getCurrentResult(),a)}var ir,lr,Pt,ga,xa,kc,Th,zx,mN=(zx=class extends pl{constructor(i,l){super();xe(this,xa);xe(this,ir);xe(this,lr);xe(this,Pt);xe(this,ga);de(this,ir,i),this.setOptions(l),this.bindMethods(),Ce(this,xa,kc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var o;const l=this.options;this.options=D(this,ir).defaultMutationOptions(i),Xc(this.options,l)||D(this,ir).getMutationCache().notify({type:"observerOptionsUpdated",mutation:D(this,Pt),observer:this}),l!=null&&l.mutationKey&&this.options.mutationKey&&Qr(l.mutationKey)!==Qr(this.options.mutationKey)?this.reset():((o=D(this,Pt))==null?void 0:o.state.status)==="pending"&&D(this,Pt).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=D(this,Pt))==null||i.removeObserver(this)}onMutationUpdate(i){Ce(this,xa,kc).call(this),Ce(this,xa,Th).call(this,i)}getCurrentResult(){return D(this,lr)}reset(){var i;(i=D(this,Pt))==null||i.removeObserver(this),de(this,Pt,void 0),Ce(this,xa,kc).call(this),Ce(this,xa,Th).call(this)}mutate(i,l){var o;return de(this,ga,l),(o=D(this,Pt))==null||o.removeObserver(this),de(this,Pt,D(this,ir).getMutationCache().build(D(this,ir),this.options)),D(this,Pt).addObserver(this),D(this,Pt).execute(i)}},ir=new WeakMap,lr=new WeakMap,Pt=new WeakMap,ga=new WeakMap,xa=new WeakSet,kc=function(){var l;const i=((l=D(this,Pt))==null?void 0:l.state)??Qx();de(this,lr,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Th=function(i){ht.batch(()=>{var l,o,u,f,h,g,p,v;if(D(this,ga)&&this.hasListeners()){const y=D(this,lr).variables,x=D(this,lr).context;(i==null?void 0:i.type)==="success"?((o=(l=D(this,ga)).onSuccess)==null||o.call(l,i.data,y,x),(f=(u=D(this,ga)).onSettled)==null||f.call(u,i.data,null,y,x)):(i==null?void 0:i.type)==="error"&&((g=(h=D(this,ga)).onError)==null||g.call(h,i.error,y,x),(v=(p=D(this,ga)).onSettled)==null||v.call(p,void 0,i.error,y,x))}this.listeners.forEach(y=>{y(D(this,lr))})})},zx),Fx=w.createContext(void 0),Xs=t=>{const a=w.useContext(Fx);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},Kx=({client:t,children:a})=>(w.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),m.jsx(Fx.Provider,{value:t,children:a})),Ix=w.createContext(!1),pN=()=>w.useContext(Ix);Ix.Provider;function gN(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var vN=w.createContext(gN()),yN=()=>w.useContext(vN),xN=(t,a)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(a.isReset()||(t.retryOnMount=!1))},bN=t=>{w.useEffect(()=>{t.clearReset()},[t])},wN=({result:t,errorResetBoundary:a,throwOnError:i,query:l,suspense:o})=>t.isError&&!a.isReset()&&!t.isFetching&&l&&(o&&t.data===void 0||Bx(i,[t.error,l])),SN=t=>{if(t.suspense){const a=l=>l==="static"?l:Math.max(l??1e3,1e3),i=t.staleTime;t.staleTime=typeof i=="function"?(...l)=>a(i(...l)):a(i),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},EN=(t,a)=>t.isLoading&&t.isFetching&&!a,NN=(t,a)=>(t==null?void 0:t.suspense)&&a.isPending,a0=(t,a,i)=>a.fetchOptimistic(t).catch(()=>{i.clearReset()});function TN(t,a,i){var y,x,S,M,N;const l=pN(),o=yN(),u=Xs(),f=u.defaultQueryOptions(t);(x=(y=u.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||x.call(y,f),f._optimisticResults=l?"isRestoring":"optimistic",SN(f),xN(f,o),bN(o);const h=!u.getQueryCache().get(f.queryHash),[g]=w.useState(()=>new a(u,f)),p=g.getOptimisticResult(f),v=!l&&t.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(E=>{const A=v?g.subscribe(ht.batchCalls(E)):zt;return g.updateResult(),A},[g,v]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),w.useEffect(()=>{g.setOptions(f)},[f,g]),NN(f,p))throw a0(f,g,o);if(wN({result:p,errorResetBoundary:o,throwOnError:f.throwOnError,query:u.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw p.error;if((M=(S=u.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||M.call(S,f,p),f.experimental_prefetchInRender&&!Yr&&EN(p,l)){const E=h?a0(f,g,o):(N=u.getQueryCache().get(f.queryHash))==null?void 0:N.promise;E==null||E.catch(zt).finally(()=>{g.updateResult()})}return f.notifyOnChangeProps?p:g.trackResult(p)}function or(t,a){return TN(t,fN)}function Zx(t,a){const i=Xs(),[l]=w.useState(()=>new mN(i,t));w.useEffect(()=>{l.setOptions(t)},[l,t]);const o=w.useSyncExternalStore(w.useCallback(f=>l.subscribe(ht.batchCalls(f)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),u=w.useCallback((f,h)=>{l.mutate(f,h).catch(zt)},[l]);if(o.error&&Bx(l.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:u,mutateAsync:o.mutate}}var gl=kx();const _N=Dx(gl);function Re(t,a,{checkForDefaultPrevented:i=!0}={}){return function(o){if(t==null||t(o),i===!1||!o.defaultPrevented)return a==null?void 0:a(o)}}function r0(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function Jx(...t){return a=>{let i=!1;const l=t.map(o=>{const u=r0(o,a);return!i&&typeof u=="function"&&(i=!0),u});if(i)return()=>{for(let o=0;o<l.length;o++){const u=l[o];typeof u=="function"?u():r0(t[o],null)}}}}function lt(...t){return w.useCallback(Jx(...t),t)}function vl(t,a=[]){let i=[];function l(u,f){const h=w.createContext(f),g=i.length;i=[...i,f];const p=y=>{var A;const{scope:x,children:S,...M}=y,N=((A=x==null?void 0:x[t])==null?void 0:A[g])||h,E=w.useMemo(()=>M,Object.values(M));return m.jsx(N.Provider,{value:E,children:S})};p.displayName=u+"Provider";function v(y,x){var N;const S=((N=x==null?void 0:x[t])==null?void 0:N[g])||h,M=w.useContext(S);if(M)return M;if(f!==void 0)return f;throw new Error(`\`${y}\` must be used within \`${u}\``)}return[p,v]}const o=()=>{const u=i.map(f=>w.createContext(f));return function(h){const g=(h==null?void 0:h[t])||u;return w.useMemo(()=>({[`__scope${t}`]:{...h,[t]:g}}),[h,g])}};return o.scopeName=t,[l,AN(o,...a)]}function AN(...t){const a=t[0];if(t.length===1)return a;const i=()=>{const l=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(u){const f=l.reduce((h,{useScope:g,scopeName:p})=>{const y=g(u)[`__scope${p}`];return{...h,...y}},{});return w.useMemo(()=>({[`__scope${a.scopeName}`]:f}),[f])}};return i.scopeName=a.scopeName,i}function ks(t){const a=CN(t),i=w.forwardRef((l,o)=>{const{children:u,...f}=l,h=w.Children.toArray(u),g=h.find(jN);if(g){const p=g.props.children,v=h.map(y=>y===g?w.Children.count(p)>1?w.Children.only(null):w.isValidElement(p)?p.props.children:null:y);return m.jsx(a,{...f,ref:o,children:w.isValidElement(p)?w.cloneElement(p,void 0,v):null})}return m.jsx(a,{...f,ref:o,children:u})});return i.displayName=`${t}.Slot`,i}var Wx=ks("Slot");function CN(t){const a=w.forwardRef((i,l)=>{const{children:o,...u}=i;if(w.isValidElement(o)){const f=ON(o),h=RN(u,o.props);return o.type!==w.Fragment&&(h.ref=l?Jx(l,f):f),w.cloneElement(o,h)}return w.Children.count(o)>1?w.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var MN=Symbol("radix.slottable");function jN(t){return w.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===MN}function RN(t,a){const i={...a};for(const l in a){const o=t[l],u=a[l];/^on[A-Z]/.test(l)?o&&u?i[l]=(...h)=>{const g=u(...h);return o(...h),g}:o&&(i[l]=o):l==="style"?i[l]={...o,...u}:l==="className"&&(i[l]=[o,u].filter(Boolean).join(" "))}return{...t,...i}}function ON(t){var l,o;let a=(l=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:l.get,i=a&&"isReactWarning"in a&&a.isReactWarning;return i?t.ref:(a=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,i=a&&"isReactWarning"in a&&a.isReactWarning,i?t.props.ref:t.props.ref||t.ref)}function cm(t){const a=t+"CollectionProvider",[i,l]=vl(a),[o,u]=i(a,{collectionRef:{current:null},itemMap:new Map}),f=N=>{const{scope:E,children:A}=N,z=Fa.useRef(null),R=Fa.useRef(new Map).current;return m.jsx(o,{scope:E,itemMap:R,collectionRef:z,children:A})};f.displayName=a;const h=t+"CollectionSlot",g=ks(h),p=Fa.forwardRef((N,E)=>{const{scope:A,children:z}=N,R=u(h,A),H=lt(E,R.collectionRef);return m.jsx(g,{ref:H,children:z})});p.displayName=h;const v=t+"CollectionItemSlot",y="data-radix-collection-item",x=ks(v),S=Fa.forwardRef((N,E)=>{const{scope:A,children:z,...R}=N,H=Fa.useRef(null),k=lt(E,H),q=u(v,A);return Fa.useEffect(()=>(q.itemMap.set(H,{ref:H,...R}),()=>void q.itemMap.delete(H))),m.jsx(x,{[y]:"",ref:k,children:z})});S.displayName=v;function M(N){const E=u(t+"CollectionConsumer",N);return Fa.useCallback(()=>{const z=E.collectionRef.current;if(!z)return[];const R=Array.from(z.querySelectorAll(`[${y}]`));return Array.from(E.itemMap.values()).sort((q,V)=>R.indexOf(q.ref.current)-R.indexOf(V.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:f,Slot:p,ItemSlot:S},M,l]}var zN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=zN.reduce((t,a)=>{const i=ks(`Primitive.${a}`),l=w.forwardRef((o,u)=>{const{asChild:f,...h}=o,g=f?i:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(g,{...h,ref:u})});return l.displayName=`Primitive.${a}`,{...t,[a]:l}},{});function eb(t,a){t&&gl.flushSync(()=>t.dispatchEvent(a))}function xn(t){const a=w.useRef(t);return w.useEffect(()=>{a.current=t}),w.useMemo(()=>(...i)=>{var l;return(l=a.current)==null?void 0:l.call(a,...i)},[])}function DN(t,a=globalThis==null?void 0:globalThis.document){const i=xn(t);w.useEffect(()=>{const l=o=>{o.key==="Escape"&&i(o)};return a.addEventListener("keydown",l,{capture:!0}),()=>a.removeEventListener("keydown",l,{capture:!0})},[i,a])}var kN="DismissableLayer",_h="dismissableLayer.update",LN="dismissableLayer.pointerDownOutside",UN="dismissableLayer.focusOutside",i0,tb=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),um=w.forwardRef((t,a)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:l,onPointerDownOutside:o,onFocusOutside:u,onInteractOutside:f,onDismiss:h,...g}=t,p=w.useContext(tb),[v,y]=w.useState(null),x=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=w.useState({}),M=lt(a,V=>y(V)),N=Array.from(p.layers),[E]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),A=N.indexOf(E),z=v?N.indexOf(v):-1,R=p.layersWithOutsidePointerEventsDisabled.size>0,H=z>=A,k=BN(V=>{const G=V.target,ae=[...p.branches].some(fe=>fe.contains(G));!H||ae||(o==null||o(V),f==null||f(V),V.defaultPrevented||h==null||h())},x),q=qN(V=>{const G=V.target;[...p.branches].some(fe=>fe.contains(G))||(u==null||u(V),f==null||f(V),V.defaultPrevented||h==null||h())},x);return DN(V=>{z===p.layers.size-1&&(l==null||l(V),!V.defaultPrevented&&h&&(V.preventDefault(),h()))},x),w.useEffect(()=>{if(v)return i&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(i0=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(v)),p.layers.add(v),l0(),()=>{i&&p.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=i0)}},[v,x,i,p]),w.useEffect(()=>()=>{v&&(p.layers.delete(v),p.layersWithOutsidePointerEventsDisabled.delete(v),l0())},[v,p]),w.useEffect(()=>{const V=()=>S({});return document.addEventListener(_h,V),()=>document.removeEventListener(_h,V)},[]),m.jsx(Ue.div,{...g,ref:M,style:{pointerEvents:R?H?"auto":"none":void 0,...t.style},onFocusCapture:Re(t.onFocusCapture,q.onFocusCapture),onBlurCapture:Re(t.onBlurCapture,q.onBlurCapture),onPointerDownCapture:Re(t.onPointerDownCapture,k.onPointerDownCapture)})});um.displayName=kN;var HN="DismissableLayerBranch",nb=w.forwardRef((t,a)=>{const i=w.useContext(tb),l=w.useRef(null),o=lt(a,l);return w.useEffect(()=>{const u=l.current;if(u)return i.branches.add(u),()=>{i.branches.delete(u)}},[i.branches]),m.jsx(Ue.div,{...t,ref:o})});nb.displayName=HN;function BN(t,a=globalThis==null?void 0:globalThis.document){const i=xn(t),l=w.useRef(!1),o=w.useRef(()=>{});return w.useEffect(()=>{const u=h=>{if(h.target&&!l.current){let g=function(){ab(LN,i,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(a.removeEventListener("click",o.current),o.current=g,a.addEventListener("click",o.current,{once:!0})):g()}else a.removeEventListener("click",o.current);l.current=!1},f=window.setTimeout(()=>{a.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(f),a.removeEventListener("pointerdown",u),a.removeEventListener("click",o.current)}},[a,i]),{onPointerDownCapture:()=>l.current=!0}}function qN(t,a=globalThis==null?void 0:globalThis.document){const i=xn(t),l=w.useRef(!1);return w.useEffect(()=>{const o=u=>{u.target&&!l.current&&ab(UN,i,{originalEvent:u},{discrete:!1})};return a.addEventListener("focusin",o),()=>a.removeEventListener("focusin",o)},[a,i]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function l0(){const t=new CustomEvent(_h);document.dispatchEvent(t)}function ab(t,a,i,{discrete:l}){const o=i.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:i});a&&o.addEventListener(t,a,{once:!0}),l?eb(o,u):o.dispatchEvent(u)}var PN=um,VN=nb,Tt=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},GN="Portal",fm=w.forwardRef((t,a)=>{var h;const{container:i,...l}=t,[o,u]=w.useState(!1);Tt(()=>u(!0),[]);const f=i||o&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return f?_N.createPortal(m.jsx(Ue.div,{...l,ref:a}),f):null});fm.displayName=GN;function YN(t,a){return w.useReducer((i,l)=>a[i][l]??i,t)}var dm=t=>{const{present:a,children:i}=t,l=QN(a),o=typeof i=="function"?i({present:l.isPresent}):w.Children.only(i),u=lt(l.ref,XN(o));return typeof i=="function"||l.isPresent?w.cloneElement(o,{ref:u}):null};dm.displayName="Presence";function QN(t){const[a,i]=w.useState(),l=w.useRef(null),o=w.useRef(t),u=w.useRef("none"),f=t?"mounted":"unmounted",[h,g]=YN(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const p=bc(l.current);u.current=h==="mounted"?p:"none"},[h]),Tt(()=>{const p=l.current,v=o.current;if(v!==t){const x=u.current,S=bc(p);t?g("MOUNT"):S==="none"||(p==null?void 0:p.display)==="none"?g("UNMOUNT"):g(v&&x!==S?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,g]),Tt(()=>{if(a){let p;const v=a.ownerDocument.defaultView??window,y=S=>{const N=bc(l.current).includes(S.animationName);if(S.target===a&&N&&(g("ANIMATION_END"),!o.current)){const E=a.style.animationFillMode;a.style.animationFillMode="forwards",p=v.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=E)})}},x=S=>{S.target===a&&(u.current=bc(l.current))};return a.addEventListener("animationstart",x),a.addEventListener("animationcancel",y),a.addEventListener("animationend",y),()=>{v.clearTimeout(p),a.removeEventListener("animationstart",x),a.removeEventListener("animationcancel",y),a.removeEventListener("animationend",y)}}else g("ANIMATION_END")},[a,g]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:w.useCallback(p=>{l.current=p?getComputedStyle(p):null,i(p)},[])}}function bc(t){return(t==null?void 0:t.animationName)||"none"}function XN(t){var l,o;let a=(l=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:l.get,i=a&&"isReactWarning"in a&&a.isReactWarning;return i?t.ref:(a=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,i=a&&"isReactWarning"in a&&a.isReactWarning,i?t.props.ref:t.props.ref||t.ref)}var $N=rm[" useInsertionEffect ".trim().toString()]||Tt;function Ls({prop:t,defaultProp:a,onChange:i=()=>{},caller:l}){const[o,u,f]=FN({defaultProp:a,onChange:i}),h=t!==void 0,g=h?t:o;{const v=w.useRef(t!==void 0);w.useEffect(()=>{const y=v.current;y!==h&&console.warn(`${l} is changing from ${y?"controlled":"uncontrolled"} to ${h?"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.`),v.current=h},[h,l])}const p=w.useCallback(v=>{var y;if(h){const x=KN(v)?v(t):v;x!==t&&((y=f.current)==null||y.call(f,x))}else u(v)},[h,t,u,f]);return[g,p]}function FN({defaultProp:t,onChange:a}){const[i,l]=w.useState(t),o=w.useRef(i),u=w.useRef(a);return $N(()=>{u.current=a},[a]),w.useEffect(()=>{var f;o.current!==i&&((f=u.current)==null||f.call(u,i),o.current=i)},[i,o]),[i,l,u]}function KN(t){return typeof t=="function"}var rb=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"}),IN="VisuallyHidden",hm=w.forwardRef((t,a)=>m.jsx(Ue.span,{...t,ref:a,style:{...rb,...t.style}}));hm.displayName=IN;var mm="ToastProvider",[pm,ZN,JN]=cm("Toast"),[ib]=vl("Toast",[JN]),[WN,hu]=ib(mm),lb=t=>{const{__scopeToast:a,label:i="Notification",duration:l=5e3,swipeDirection:o="right",swipeThreshold:u=50,children:f}=t,[h,g]=w.useState(null),[p,v]=w.useState(0),y=w.useRef(!1),x=w.useRef(!1);return i.trim()||console.error(`Invalid prop \`label\` supplied to \`${mm}\`. Expected non-empty \`string\`.`),m.jsx(pm.Provider,{scope:a,children:m.jsx(WN,{scope:a,label:i,duration:l,swipeDirection:o,swipeThreshold:u,toastCount:p,viewport:h,onViewportChange:g,onToastAdd:w.useCallback(()=>v(S=>S+1),[]),onToastRemove:w.useCallback(()=>v(S=>S-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:x,children:f})})};lb.displayName=mm;var sb="ToastViewport",eT=["F8"],Ah="toast.viewportPause",Ch="toast.viewportResume",ob=w.forwardRef((t,a)=>{const{__scopeToast:i,hotkey:l=eT,label:o="Notifications ({hotkey})",...u}=t,f=hu(sb,i),h=ZN(i),g=w.useRef(null),p=w.useRef(null),v=w.useRef(null),y=w.useRef(null),x=lt(a,y,f.onViewportChange),S=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),M=f.toastCount>0;w.useEffect(()=>{const E=A=>{var R;l.length!==0&&l.every(H=>A[H]||A.code===H)&&((R=y.current)==null||R.focus())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[l]),w.useEffect(()=>{const E=g.current,A=y.current;if(M&&E&&A){const z=()=>{if(!f.isClosePausedRef.current){const q=new CustomEvent(Ah);A.dispatchEvent(q),f.isClosePausedRef.current=!0}},R=()=>{if(f.isClosePausedRef.current){const q=new CustomEvent(Ch);A.dispatchEvent(q),f.isClosePausedRef.current=!1}},H=q=>{!E.contains(q.relatedTarget)&&R()},k=()=>{E.contains(document.activeElement)||R()};return E.addEventListener("focusin",z),E.addEventListener("focusout",H),E.addEventListener("pointermove",z),E.addEventListener("pointerleave",k),window.addEventListener("blur",z),window.addEventListener("focus",R),()=>{E.removeEventListener("focusin",z),E.removeEventListener("focusout",H),E.removeEventListener("pointermove",z),E.removeEventListener("pointerleave",k),window.removeEventListener("blur",z),window.removeEventListener("focus",R)}}},[M,f.isClosePausedRef]);const N=w.useCallback(({tabbingDirection:E})=>{const z=h().map(R=>{const H=R.ref.current,k=[H,...hT(H)];return E==="forwards"?k:k.reverse()});return(E==="forwards"?z.reverse():z).flat()},[h]);return w.useEffect(()=>{const E=y.current;if(E){const A=z=>{var k,q,V;const R=z.altKey||z.ctrlKey||z.metaKey;if(z.key==="Tab"&&!R){const G=document.activeElement,ae=z.shiftKey;if(z.target===E&&ae){(k=p.current)==null||k.focus();return}const ee=N({tabbingDirection:ae?"backwards":"forwards"}),oe=ee.findIndex(C=>C===G);Xd(ee.slice(oe+1))?z.preventDefault():ae?(q=p.current)==null||q.focus():(V=v.current)==null||V.focus()}};return E.addEventListener("keydown",A),()=>E.removeEventListener("keydown",A)}},[h,N]),m.jsxs(VN,{ref:g,role:"region","aria-label":o.replace("{hotkey}",S),tabIndex:-1,style:{pointerEvents:M?void 0:"none"},children:[M&&m.jsx(Mh,{ref:p,onFocusFromOutsideViewport:()=>{const E=N({tabbingDirection:"forwards"});Xd(E)}}),m.jsx(pm.Slot,{scope:i,children:m.jsx(Ue.ol,{tabIndex:-1,...u,ref:x})}),M&&m.jsx(Mh,{ref:v,onFocusFromOutsideViewport:()=>{const E=N({tabbingDirection:"backwards"});Xd(E)}})]})});ob.displayName=sb;var cb="ToastFocusProxy",Mh=w.forwardRef((t,a)=>{const{__scopeToast:i,onFocusFromOutsideViewport:l,...o}=t,u=hu(cb,i);return m.jsx(hm,{"aria-hidden":!0,tabIndex:0,...o,ref:a,style:{position:"fixed"},onFocus:f=>{var p;const h=f.relatedTarget;!((p=u.viewport)!=null&&p.contains(h))&&l()}})});Mh.displayName=cb;var $s="Toast",tT="toast.swipeStart",nT="toast.swipeMove",aT="toast.swipeCancel",rT="toast.swipeEnd",ub=w.forwardRef((t,a)=>{const{forceMount:i,open:l,defaultOpen:o,onOpenChange:u,...f}=t,[h,g]=Ls({prop:l,defaultProp:o??!0,onChange:u,caller:$s});return m.jsx(dm,{present:i||h,children:m.jsx(sT,{open:h,...f,ref:a,onClose:()=>g(!1),onPause:xn(t.onPause),onResume:xn(t.onResume),onSwipeStart:Re(t.onSwipeStart,p=>{p.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Re(t.onSwipeMove,p=>{const{x:v,y}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","move"),p.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${v}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:Re(t.onSwipeCancel,p=>{p.currentTarget.setAttribute("data-swipe","cancel"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Re(t.onSwipeEnd,p=>{const{x:v,y}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","end"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${v}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),g(!1)})})})});ub.displayName=$s;var[iT,lT]=ib($s,{onClose(){}}),sT=w.forwardRef((t,a)=>{const{__scopeToast:i,type:l="foreground",duration:o,open:u,onClose:f,onEscapeKeyDown:h,onPause:g,onResume:p,onSwipeStart:v,onSwipeMove:y,onSwipeCancel:x,onSwipeEnd:S,...M}=t,N=hu($s,i),[E,A]=w.useState(null),z=lt(a,C=>A(C)),R=w.useRef(null),H=w.useRef(null),k=o||N.duration,q=w.useRef(0),V=w.useRef(k),G=w.useRef(0),{onToastAdd:ae,onToastRemove:fe}=N,B=xn(()=>{var F;(E==null?void 0:E.contains(document.activeElement))&&((F=N.viewport)==null||F.focus()),f()}),ee=w.useCallback(C=>{!C||C===1/0||(window.clearTimeout(G.current),q.current=new Date().getTime(),G.current=window.setTimeout(B,C))},[B]);w.useEffect(()=>{const C=N.viewport;if(C){const F=()=>{ee(V.current),p==null||p()},_=()=>{const P=new Date().getTime()-q.current;V.current=V.current-P,window.clearTimeout(G.current),g==null||g()};return C.addEventListener(Ah,_),C.addEventListener(Ch,F),()=>{C.removeEventListener(Ah,_),C.removeEventListener(Ch,F)}}},[N.viewport,k,g,p,ee]),w.useEffect(()=>{u&&!N.isClosePausedRef.current&&ee(k)},[u,k,N.isClosePausedRef,ee]),w.useEffect(()=>(ae(),()=>fe()),[ae,fe]);const oe=w.useMemo(()=>E?vb(E):null,[E]);return N.viewport?m.jsxs(m.Fragment,{children:[oe&&m.jsx(oT,{__scopeToast:i,role:"status","aria-live":l==="foreground"?"assertive":"polite","aria-atomic":!0,children:oe}),m.jsx(iT,{scope:i,onClose:B,children:gl.createPortal(m.jsx(pm.ItemSlot,{scope:i,children:m.jsx(PN,{asChild:!0,onEscapeKeyDown:Re(h,()=>{N.isFocusedToastEscapeKeyDownRef.current||B(),N.isFocusedToastEscapeKeyDownRef.current=!1}),children:m.jsx(Ue.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":u?"open":"closed","data-swipe-direction":N.swipeDirection,...M,ref:z,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Re(t.onKeyDown,C=>{C.key==="Escape"&&(h==null||h(C.nativeEvent),C.nativeEvent.defaultPrevented||(N.isFocusedToastEscapeKeyDownRef.current=!0,B()))}),onPointerDown:Re(t.onPointerDown,C=>{C.button===0&&(R.current={x:C.clientX,y:C.clientY})}),onPointerMove:Re(t.onPointerMove,C=>{if(!R.current)return;const F=C.clientX-R.current.x,_=C.clientY-R.current.y,P=!!H.current,L=["left","right"].includes(N.swipeDirection),re=["left","up"].includes(N.swipeDirection)?Math.min:Math.max,j=L?re(0,F):0,I=L?0:re(0,_),le=C.pointerType==="touch"?10:2,Q={x:j,y:I},J={originalEvent:C,delta:Q};P?(H.current=Q,wc(nT,y,J,{discrete:!1})):s0(Q,N.swipeDirection,le)?(H.current=Q,wc(tT,v,J,{discrete:!1}),C.target.setPointerCapture(C.pointerId)):(Math.abs(F)>le||Math.abs(_)>le)&&(R.current=null)}),onPointerUp:Re(t.onPointerUp,C=>{const F=H.current,_=C.target;if(_.hasPointerCapture(C.pointerId)&&_.releasePointerCapture(C.pointerId),H.current=null,R.current=null,F){const P=C.currentTarget,L={originalEvent:C,delta:F};s0(F,N.swipeDirection,N.swipeThreshold)?wc(rT,S,L,{discrete:!0}):wc(aT,x,L,{discrete:!0}),P.addEventListener("click",re=>re.preventDefault(),{once:!0})}})})})}),N.viewport)})]}):null}),oT=t=>{const{__scopeToast:a,children:i,...l}=t,o=hu($s,a),[u,f]=w.useState(!1),[h,g]=w.useState(!1);return fT(()=>f(!0)),w.useEffect(()=>{const p=window.setTimeout(()=>g(!0),1e3);return()=>window.clearTimeout(p)},[]),h?null:m.jsx(fm,{asChild:!0,children:m.jsx(hm,{...l,children:u&&m.jsxs(m.Fragment,{children:[o.label," ",i]})})})},cT="ToastTitle",fb=w.forwardRef((t,a)=>{const{__scopeToast:i,...l}=t;return m.jsx(Ue.div,{...l,ref:a})});fb.displayName=cT;var uT="ToastDescription",db=w.forwardRef((t,a)=>{const{__scopeToast:i,...l}=t;return m.jsx(Ue.div,{...l,ref:a})});db.displayName=uT;var hb="ToastAction",mb=w.forwardRef((t,a)=>{const{altText:i,...l}=t;return i.trim()?m.jsx(gb,{altText:i,asChild:!0,children:m.jsx(gm,{...l,ref:a})}):(console.error(`Invalid prop \`altText\` supplied to \`${hb}\`. Expected non-empty \`string\`.`),null)});mb.displayName=hb;var pb="ToastClose",gm=w.forwardRef((t,a)=>{const{__scopeToast:i,...l}=t,o=lT(pb,i);return m.jsx(gb,{asChild:!0,children:m.jsx(Ue.button,{type:"button",...l,ref:a,onClick:Re(t.onClick,o.onClose)})})});gm.displayName=pb;var gb=w.forwardRef((t,a)=>{const{__scopeToast:i,altText:l,...o}=t;return m.jsx(Ue.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":l||void 0,...o,ref:a})});function vb(t){const a=[];return Array.from(t.childNodes).forEach(l=>{if(l.nodeType===l.TEXT_NODE&&l.textContent&&a.push(l.textContent),dT(l)){const o=l.ariaHidden||l.hidden||l.style.display==="none",u=l.dataset.radixToastAnnounceExclude==="";if(!o)if(u){const f=l.dataset.radixToastAnnounceAlt;f&&a.push(f)}else a.push(...vb(l))}}),a}function wc(t,a,i,{discrete:l}){const o=i.originalEvent.currentTarget,u=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:i});a&&o.addEventListener(t,a,{once:!0}),l?eb(o,u):o.dispatchEvent(u)}var s0=(t,a,i=0)=>{const l=Math.abs(t.x),o=Math.abs(t.y),u=l>o;return a==="left"||a==="right"?u&&l>i:!u&&o>i};function fT(t=()=>{}){const a=xn(t);Tt(()=>{let i=0,l=0;return i=window.requestAnimationFrame(()=>l=window.requestAnimationFrame(a)),()=>{window.cancelAnimationFrame(i),window.cancelAnimationFrame(l)}},[a])}function dT(t){return t.nodeType===t.ELEMENT_NODE}function hT(t){const a=[],i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const o=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||o?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)a.push(i.currentNode);return a}function Xd(t){const a=document.activeElement;return t.some(i=>i===a?!0:(i.focus(),document.activeElement!==a))}var mT=lb,yb=ob,xb=ub,bb=fb,wb=db,Sb=mb,Eb=gm;function Nb(t){var a,i,l="";if(typeof t=="string"||typeof t=="number")l+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(a=0;a<o;a++)t[a]&&(i=Nb(t[a]))&&(l&&(l+=" "),l+=i)}else for(i in t)t[i]&&(l&&(l+=" "),l+=i);return l}function Tb(){for(var t,a,i=0,l="",o=arguments.length;i<o;i++)(t=arguments[i])&&(a=Nb(t))&&(l&&(l+=" "),l+=a);return l}const o0=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,c0=Tb,mu=(t,a)=>i=>{var l;if((a==null?void 0:a.variants)==null)return c0(t,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:o,defaultVariants:u}=a,f=Object.keys(o).map(p=>{const v=i==null?void 0:i[p],y=u==null?void 0:u[p];if(v===null)return null;const x=o0(v)||o0(y);return o[p][x]}),h=i&&Object.entries(i).reduce((p,v)=>{let[y,x]=v;return x===void 0||(p[y]=x),p},{}),g=a==null||(l=a.compoundVariants)===null||l===void 0?void 0:l.reduce((p,v)=>{let{class:y,className:x,...S}=v;return Object.entries(S).every(M=>{let[N,E]=M;return Array.isArray(E)?E.includes({...u,...h}[N]):{...u,...h}[N]===E})?[...p,y,x]:p},[]);return c0(t,f,g,i==null?void 0:i.class,i==null?void 0:i.className)};/**
|
|
50
|
+
* @license lucide-react v0.513.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 pT=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gT=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,l)=>l?l.toUpperCase():i.toLowerCase()),u0=t=>{const a=gT(t);return a.charAt(0).toUpperCase()+a.slice(1)},_b=(...t)=>t.filter((a,i,l)=>!!a&&a.trim()!==""&&l.indexOf(a)===i).join(" ").trim(),vT=t=>{for(const a in t)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
|
|
55
|
+
* @license lucide-react v0.513.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 yT={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.513.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 xT=w.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:o="",children:u,iconNode:f,...h},g)=>w.createElement("svg",{ref:g,...yT,width:a,height:a,stroke:t,strokeWidth:l?Number(i)*24/Number(a):i,className:_b("lucide",o),...!u&&!vT(h)&&{"aria-hidden":"true"},...h},[...f.map(([p,v])=>w.createElement(p,v)),...Array.isArray(u)?u:[u]]));/**
|
|
65
|
+
* @license lucide-react v0.513.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 Te=(t,a)=>{const i=w.forwardRef(({className:l,...o},u)=>w.createElement(xT,{ref:u,iconNode:a,className:_b(`lucide-${pT(u0(t))}`,`lucide-${t}`,l),...o}));return i.displayName=u0(t),i};/**
|
|
70
|
+
* @license lucide-react v0.513.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 bT=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],wT=Te("box",bT);/**
|
|
75
|
+
* @license lucide-react v0.513.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 ST=[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]],jh=Te("boxes",ST);/**
|
|
80
|
+
* @license lucide-react v0.513.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 ET=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],NT=Te("braces",ET);/**
|
|
85
|
+
* @license lucide-react v0.513.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 TT=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],_T=Te("brain-circuit",TT);/**
|
|
90
|
+
* @license lucide-react v0.513.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 AT=[["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"}]],f0=Te("chart-column",AT);/**
|
|
95
|
+
* @license lucide-react v0.513.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 CT=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],MT=Te("check",CT);/**
|
|
100
|
+
* @license lucide-react v0.513.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 jT=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ab=Te("chevron-down",jT);/**
|
|
105
|
+
* @license lucide-react v0.513.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 RT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],OT=Te("chevron-right",RT);/**
|
|
110
|
+
* @license lucide-react v0.513.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 zT=[["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"}]],DT=Te("circle-alert",zT);/**
|
|
115
|
+
* @license lucide-react v0.513.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 kT=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Qi=Te("circle-check-big",kT);/**
|
|
120
|
+
* @license lucide-react v0.513.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 LT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],UT=Te("circle-help",LT);/**
|
|
125
|
+
* @license lucide-react v0.513.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 HT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],BT=Te("clock",HT);/**
|
|
130
|
+
* @license lucide-react v0.513.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 qT=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],PT=Te("code-xml",qT);/**
|
|
135
|
+
* @license lucide-react v0.513.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 VT=[["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"}]],GT=Te("copy",VT);/**
|
|
140
|
+
* @license lucide-react v0.513.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 YT=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],QT=Te("cpu",YT);/**
|
|
145
|
+
* @license lucide-react v0.513.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 XT=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]],Fc=Te("database-zap",XT);/**
|
|
150
|
+
* @license lucide-react v0.513.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 $T=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],vm=Te("database",$T);/**
|
|
155
|
+
* @license lucide-react v0.513.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 FT=[["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"}]],Cb=Te("external-link",FT);/**
|
|
160
|
+
* @license lucide-react v0.513.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 KT=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],IT=Te("file-text",KT);/**
|
|
165
|
+
* @license lucide-react v0.513.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 ZT=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],Ui=Te("file",ZT);/**
|
|
170
|
+
* @license lucide-react v0.513.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 JT=[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]],Kc=Te("fingerprint",JT);/**
|
|
175
|
+
* @license lucide-react v0.513.0 - ISC
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the ISC license.
|
|
178
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/const WT=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],e_=Te("folder-open",WT);/**
|
|
180
|
+
* @license lucide-react v0.513.0 - ISC
|
|
181
|
+
*
|
|
182
|
+
* This source code is licensed under the ISC license.
|
|
183
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
+
*/const t_=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],n_=Te("folder",t_);/**
|
|
185
|
+
* @license lucide-react v0.513.0 - ISC
|
|
186
|
+
*
|
|
187
|
+
* This source code is licensed under the ISC license.
|
|
188
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
+
*/const a_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],r_=Te("globe",a_);/**
|
|
190
|
+
* @license lucide-react v0.513.0 - ISC
|
|
191
|
+
*
|
|
192
|
+
* This source code is licensed under the ISC license.
|
|
193
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
+
*/const i_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Ic=Te("info",i_);/**
|
|
195
|
+
* @license lucide-react v0.513.0 - ISC
|
|
196
|
+
*
|
|
197
|
+
* This source code is licensed under the ISC license.
|
|
198
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
+
*/const l_=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],s_=Te("layers",l_);/**
|
|
200
|
+
* @license lucide-react v0.513.0 - ISC
|
|
201
|
+
*
|
|
202
|
+
* This source code is licensed under the ISC license.
|
|
203
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
+
*/const o_=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],c_=Te("moon",o_);/**
|
|
205
|
+
* @license lucide-react v0.513.0 - ISC
|
|
206
|
+
*
|
|
207
|
+
* This source code is licensed under the ISC license.
|
|
208
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
+
*/const u_=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],$d=Te("network",u_);/**
|
|
210
|
+
* @license lucide-react v0.513.0 - ISC
|
|
211
|
+
*
|
|
212
|
+
* This source code is licensed under the ISC license.
|
|
213
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
+
*/const f_=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],d_=Te("panel-left",f_);/**
|
|
215
|
+
* @license lucide-react v0.513.0 - ISC
|
|
216
|
+
*
|
|
217
|
+
* This source code is licensed under the ISC license.
|
|
218
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
+
*/const h_=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Mb=Te("play",h_);/**
|
|
220
|
+
* @license lucide-react v0.513.0 - ISC
|
|
221
|
+
*
|
|
222
|
+
* This source code is licensed under the ISC license.
|
|
223
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
+
*/const m_=[["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"}]],Rh=Te("refresh-cw",m_);/**
|
|
225
|
+
* @license lucide-react v0.513.0 - ISC
|
|
226
|
+
*
|
|
227
|
+
* This source code is licensed under the ISC license.
|
|
228
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
+
*/const p_=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],g_=Te("rotate-ccw",p_);/**
|
|
230
|
+
* @license lucide-react v0.513.0 - ISC
|
|
231
|
+
*
|
|
232
|
+
* This source code is licensed under the ISC license.
|
|
233
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
234
|
+
*/const v_=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],y_=Te("rotate-cw",v_);/**
|
|
235
|
+
* @license lucide-react v0.513.0 - ISC
|
|
236
|
+
*
|
|
237
|
+
* This source code is licensed under the ISC license.
|
|
238
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
239
|
+
*/const x_=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],jb=Te("save",x_);/**
|
|
240
|
+
* @license lucide-react v0.513.0 - ISC
|
|
241
|
+
*
|
|
242
|
+
* This source code is licensed under the ISC license.
|
|
243
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
244
|
+
*/const b_=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Rb=Te("search",b_);/**
|
|
245
|
+
* @license lucide-react v0.513.0 - ISC
|
|
246
|
+
*
|
|
247
|
+
* This source code is licensed under the ISC license.
|
|
248
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
249
|
+
*/const w_=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],S_=Te("server",w_);/**
|
|
250
|
+
* @license lucide-react v0.513.0 - ISC
|
|
251
|
+
*
|
|
252
|
+
* This source code is licensed under the ISC license.
|
|
253
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
254
|
+
*/const E_=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ob=Te("settings",E_);/**
|
|
255
|
+
* @license lucide-react v0.513.0 - ISC
|
|
256
|
+
*
|
|
257
|
+
* This source code is licensed under the ISC license.
|
|
258
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
259
|
+
*/const N_=[["path",{d:"M4 16a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v3a1 1 0 0 0 1 1h3a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2v-3a1 1 0 0 0-1-1z",key:"17jnth"}]],T_=Te("squares-unite",N_);/**
|
|
260
|
+
* @license lucide-react v0.513.0 - ISC
|
|
261
|
+
*
|
|
262
|
+
* This source code is licensed under the ISC license.
|
|
263
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
264
|
+
*/const __=[["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"}]],A_=Te("sun",__);/**
|
|
265
|
+
* @license lucide-react v0.513.0 - ISC
|
|
266
|
+
*
|
|
267
|
+
* This source code is licensed under the ISC license.
|
|
268
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
269
|
+
*/const C_=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],M_=Te("table",C_);/**
|
|
270
|
+
* @license lucide-react v0.513.0 - ISC
|
|
271
|
+
*
|
|
272
|
+
* This source code is licensed under the ISC license.
|
|
273
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
274
|
+
*/const j_=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],R_=Te("terminal",j_);/**
|
|
275
|
+
* @license lucide-react v0.513.0 - ISC
|
|
276
|
+
*
|
|
277
|
+
* This source code is licensed under the ISC license.
|
|
278
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
279
|
+
*/const O_=[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]],d0=Te("test-tube",O_);/**
|
|
280
|
+
* @license lucide-react v0.513.0 - ISC
|
|
281
|
+
*
|
|
282
|
+
* This source code is licensed under the ISC license.
|
|
283
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
284
|
+
*/const z_=[["path",{d:"m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z",key:"cpyugq"}],["path",{d:"M12 22v-3",key:"kmzjlo"}]],zb=Te("tree-pine",z_);/**
|
|
285
|
+
* @license lucide-react v0.513.0 - ISC
|
|
286
|
+
*
|
|
287
|
+
* This source code is licensed under the ISC license.
|
|
288
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
289
|
+
*/const D_=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],_s=Te("triangle-alert",D_);/**
|
|
290
|
+
* @license lucide-react v0.513.0 - ISC
|
|
291
|
+
*
|
|
292
|
+
* This source code is licensed under the ISC license.
|
|
293
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
294
|
+
*/const k_=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ym=Te("x",k_);/**
|
|
295
|
+
* @license lucide-react v0.513.0 - ISC
|
|
296
|
+
*
|
|
297
|
+
* This source code is licensed under the ISC license.
|
|
298
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
299
|
+
*/const L_=[["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"}]],xm=Te("zap",L_),bm="-",U_=t=>{const a=B_(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:l}=t;return{getClassGroupId:f=>{const h=f.split(bm);return h[0]===""&&h.length!==1&&h.shift(),Db(h,a)||H_(f)},getConflictingClassGroupIds:(f,h)=>{const g=i[f]||[];return h&&l[f]?[...g,...l[f]]:g}}},Db=(t,a)=>{var f;if(t.length===0)return a.classGroupId;const i=t[0],l=a.nextPart.get(i),o=l?Db(t.slice(1),l):void 0;if(o)return o;if(a.validators.length===0)return;const u=t.join(bm);return(f=a.validators.find(({validator:h})=>h(u)))==null?void 0:f.classGroupId},h0=/^\[(.+)\]$/,H_=t=>{if(h0.test(t)){const a=h0.exec(t)[1],i=a==null?void 0:a.substring(0,a.indexOf(":"));if(i)return"arbitrary.."+i}},B_=t=>{const{theme:a,classGroups:i}=t,l={nextPart:new Map,validators:[]};for(const o in i)Oh(i[o],l,o,a);return l},Oh=(t,a,i,l)=>{t.forEach(o=>{if(typeof o=="string"){const u=o===""?a:m0(a,o);u.classGroupId=i;return}if(typeof o=="function"){if(q_(o)){Oh(o(l),a,i,l);return}a.validators.push({validator:o,classGroupId:i});return}Object.entries(o).forEach(([u,f])=>{Oh(f,m0(a,u),i,l)})})},m0=(t,a)=>{let i=t;return a.split(bm).forEach(l=>{i.nextPart.has(l)||i.nextPart.set(l,{nextPart:new Map,validators:[]}),i=i.nextPart.get(l)}),i},q_=t=>t.isThemeGetter,P_=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,i=new Map,l=new Map;const o=(u,f)=>{i.set(u,f),a++,a>t&&(a=0,l=i,i=new Map)};return{get(u){let f=i.get(u);if(f!==void 0)return f;if((f=l.get(u))!==void 0)return o(u,f),f},set(u,f){i.has(u)?i.set(u,f):o(u,f)}}},zh="!",Dh=":",V_=Dh.length,G_=t=>{const{prefix:a,experimentalParseClassName:i}=t;let l=o=>{const u=[];let f=0,h=0,g=0,p;for(let M=0;M<o.length;M++){let N=o[M];if(f===0&&h===0){if(N===Dh){u.push(o.slice(g,M)),g=M+V_;continue}if(N==="/"){p=M;continue}}N==="["?f++:N==="]"?f--:N==="("?h++:N===")"&&h--}const v=u.length===0?o:o.substring(g),y=Y_(v),x=y!==v,S=p&&p>g?p-g:void 0;return{modifiers:u,hasImportantModifier:x,baseClassName:y,maybePostfixModifierPosition:S}};if(a){const o=a+Dh,u=l;l=f=>f.startsWith(o)?u(f.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:f,maybePostfixModifierPosition:void 0}}if(i){const o=l;l=u=>i({className:u,parseClassName:o})}return l},Y_=t=>t.endsWith(zh)?t.substring(0,t.length-1):t.startsWith(zh)?t.substring(1):t,Q_=t=>{const a=Object.fromEntries(t.orderSensitiveModifiers.map(l=>[l,!0]));return l=>{if(l.length<=1)return l;const o=[];let u=[];return l.forEach(f=>{f[0]==="["||a[f]?(o.push(...u.sort(),f),u=[]):u.push(f)}),o.push(...u.sort()),o}},X_=t=>({cache:P_(t.cacheSize),parseClassName:G_(t),sortModifiers:Q_(t),...U_(t)}),$_=/\s+/,F_=(t,a)=>{const{parseClassName:i,getClassGroupId:l,getConflictingClassGroupIds:o,sortModifiers:u}=a,f=[],h=t.trim().split($_);let g="";for(let p=h.length-1;p>=0;p-=1){const v=h[p],{isExternal:y,modifiers:x,hasImportantModifier:S,baseClassName:M,maybePostfixModifierPosition:N}=i(v);if(y){g=v+(g.length>0?" "+g:g);continue}let E=!!N,A=l(E?M.substring(0,N):M);if(!A){if(!E){g=v+(g.length>0?" "+g:g);continue}if(A=l(M),!A){g=v+(g.length>0?" "+g:g);continue}E=!1}const z=u(x).join(":"),R=S?z+zh:z,H=R+A;if(f.includes(H))continue;f.push(H);const k=o(A,E);for(let q=0;q<k.length;++q){const V=k[q];f.push(R+V)}g=v+(g.length>0?" "+g:g)}return g};function K_(){let t=0,a,i,l="";for(;t<arguments.length;)(a=arguments[t++])&&(i=kb(a))&&(l&&(l+=" "),l+=i);return l}const kb=t=>{if(typeof t=="string")return t;let a,i="";for(let l=0;l<t.length;l++)t[l]&&(a=kb(t[l]))&&(i&&(i+=" "),i+=a);return i};function I_(t,...a){let i,l,o,u=f;function f(g){const p=a.reduce((v,y)=>y(v),t());return i=X_(p),l=i.cache.get,o=i.cache.set,u=h,h(g)}function h(g){const p=l(g);if(p)return p;const v=F_(g,i);return o(g,v),v}return function(){return u(K_.apply(null,arguments))}}const dt=t=>{const a=i=>i[t]||[];return a.isThemeGetter=!0,a},Lb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ub=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Z_=/^\d+\/\d+$/,J_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,W_=/\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$/,eA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Hi=t=>Z_.test(t),je=t=>!!t&&!Number.isNaN(Number(t)),$a=t=>!!t&&Number.isInteger(Number(t)),Fd=t=>t.endsWith("%")&&je(t.slice(0,-1)),da=t=>J_.test(t),aA=()=>!0,rA=t=>W_.test(t)&&!eA.test(t),Hb=()=>!1,iA=t=>tA.test(t),lA=t=>nA.test(t),sA=t=>!me(t)&&!pe(t),oA=t=>yl(t,Pb,Hb),me=t=>Lb.test(t),Rr=t=>yl(t,Vb,rA),Kd=t=>yl(t,hA,je),p0=t=>yl(t,Bb,Hb),cA=t=>yl(t,qb,lA),Sc=t=>yl(t,Gb,iA),pe=t=>Ub.test(t),Ss=t=>xl(t,Vb),uA=t=>xl(t,mA),g0=t=>xl(t,Bb),fA=t=>xl(t,Pb),dA=t=>xl(t,qb),Ec=t=>xl(t,Gb,!0),yl=(t,a,i)=>{const l=Lb.exec(t);return l?l[1]?a(l[1]):i(l[2]):!1},xl=(t,a,i=!1)=>{const l=Ub.exec(t);return l?l[1]?a(l[1]):i:!1},Bb=t=>t==="position"||t==="percentage",qb=t=>t==="image"||t==="url",Pb=t=>t==="length"||t==="size"||t==="bg-size",Vb=t=>t==="length",hA=t=>t==="number",mA=t=>t==="family-name",Gb=t=>t==="shadow",pA=()=>{const t=dt("color"),a=dt("font"),i=dt("text"),l=dt("font-weight"),o=dt("tracking"),u=dt("leading"),f=dt("breakpoint"),h=dt("container"),g=dt("spacing"),p=dt("radius"),v=dt("shadow"),y=dt("inset-shadow"),x=dt("text-shadow"),S=dt("drop-shadow"),M=dt("blur"),N=dt("perspective"),E=dt("aspect"),A=dt("ease"),z=dt("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...H(),pe,me],q=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],G=()=>[pe,me,g],ae=()=>[Hi,"full","auto",...G()],fe=()=>[$a,"none","subgrid",pe,me],B=()=>["auto",{span:["full",$a,pe,me]},$a,pe,me],ee=()=>[$a,"auto",pe,me],oe=()=>["auto","min","max","fr",pe,me],C=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...G()],P=()=>[Hi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...G()],L=()=>[t,pe,me],re=()=>[...H(),g0,p0,{position:[pe,me]}],j=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",fA,oA,{size:[pe,me]}],le=()=>[Fd,Ss,Rr],Q=()=>["","none","full",p,pe,me],J=()=>["",je,Ss,Rr],ue=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>[je,Fd,g0,p0],ce=()=>["","none",M,pe,me],ge=()=>["none",je,pe,me],ye=()=>["none",je,pe,me],Se=()=>[je,pe,me],Ee=()=>[Hi,"full",...G()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[da],breakpoint:[da],color:[aA],container:[da],"drop-shadow":[da],ease:["in","out","in-out"],font:[sA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[da],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[da],shadow:[da],spacing:["px",je],text:[da],"text-shadow":[da],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Hi,me,pe,E]}],container:["container"],columns:[{columns:[je,me,pe,h]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"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:k()}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{start:ae()}],end:[{end:ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[$a,"auto",pe,me]}],basis:[{basis:[Hi,"full","auto",h,...G()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,Hi,"auto","initial","none",me]}],grow:[{grow:["",je,pe,me]}],shrink:[{shrink:["",je,pe,me]}],order:[{order:[$a,"first","last","none",pe,me]}],"grid-cols":[{"grid-cols":fe()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":fe()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:G()}],"gap-x":[{"gap-x":G()}],"gap-y":[{"gap-y":G()}],"justify-content":[{justify:[...C(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...C()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":C()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:G()}],px:[{px:G()}],py:[{py:G()}],ps:[{ps:G()}],pe:[{pe:G()}],pt:[{pt:G()}],pr:[{pr:G()}],pb:[{pb:G()}],pl:[{pl:G()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":G()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":G()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],w:[{w:[h,"screen",...P()]}],"min-w":[{"min-w":[h,"screen","none",...P()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[f]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",i,Ss,Rr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,pe,Kd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Fd,me]}],"font-family":[{font:[uA,me,a]}],"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:[o,pe,me]}],"line-clamp":[{"line-clamp":[je,"none",pe,Kd]}],leading:[{leading:[u,...G()]}],"list-image":[{"list-image":["none",pe,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[je,"from-font","auto",pe,Rr]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[je,"auto",pe,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:G()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,me]}],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",pe,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:j()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$a,pe,me],radial:["",pe,me],conic:[$a,pe,me]},dA,cA]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[je,pe,me]}],"outline-w":[{outline:["",je,Ss,Rr]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",v,Ec,Sc]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",y,Ec,Sc]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[je,Rr]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",x,Ec,Sc]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[je,pe,me]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"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":[je]}],"mask-image-linear-from-pos":[{"mask-linear-from":W()}],"mask-image-linear-to-pos":[{"mask-linear-to":W()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":W()}],"mask-image-t-to-pos":[{"mask-t-to":W()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":W()}],"mask-image-r-to-pos":[{"mask-r-to":W()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":W()}],"mask-image-b-to-pos":[{"mask-b-to":W()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":W()}],"mask-image-l-to-pos":[{"mask-l-to":W()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":W()}],"mask-image-x-to-pos":[{"mask-x-to":W()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":W()}],"mask-image-y-to-pos":[{"mask-y-to":W()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[pe,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":W()}],"mask-image-radial-to-pos":[{"mask-radial-to":W()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"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":H()}],"mask-image-conic-pos":[{"mask-conic":[je]}],"mask-image-conic-from-pos":[{"mask-conic-from":W()}],"mask-image-conic-to-pos":[{"mask-conic-to":W()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:j()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,me]}],filter:[{filter:["","none",pe,me]}],blur:[{blur:ce()}],brightness:[{brightness:[je,pe,me]}],contrast:[{contrast:[je,pe,me]}],"drop-shadow":[{"drop-shadow":["","none",S,Ec,Sc]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",je,pe,me]}],"hue-rotate":[{"hue-rotate":[je,pe,me]}],invert:[{invert:["",je,pe,me]}],saturate:[{saturate:[je,pe,me]}],sepia:[{sepia:["",je,pe,me]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,me]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[je,pe,me]}],"backdrop-contrast":[{"backdrop-contrast":[je,pe,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,pe,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,pe,me]}],"backdrop-invert":[{"backdrop-invert":["",je,pe,me]}],"backdrop-opacity":[{"backdrop-opacity":[je,pe,me]}],"backdrop-saturate":[{"backdrop-saturate":[je,pe,me]}],"backdrop-sepia":[{"backdrop-sepia":["",je,pe,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":G()}],"border-spacing-x":[{"border-spacing-x":G()}],"border-spacing-y":[{"border-spacing-y":G()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[je,"initial",pe,me]}],ease:[{ease:["linear","initial",A,pe,me]}],delay:[{delay:[je,pe,me]}],animate:[{animate:["none",z,pe,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,pe,me]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:ye()}],"scale-x":[{"scale-x":ye()}],"scale-y":[{"scale-y":ye()}],"scale-z":[{"scale-z":ye()}],"scale-3d":["scale-3d"],skew:[{skew:Se()}],"skew-x":[{"skew-x":Se()}],"skew-y":[{"skew-y":Se()}],transform:[{transform:[pe,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ee()}],"translate-x":[{"translate-x":Ee()}],"translate-y":[{"translate-y":Ee()}],"translate-z":[{"translate-z":Ee()}],"translate-none":["translate-none"],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"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",pe,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":G()}],"scroll-mx":[{"scroll-mx":G()}],"scroll-my":[{"scroll-my":G()}],"scroll-ms":[{"scroll-ms":G()}],"scroll-me":[{"scroll-me":G()}],"scroll-mt":[{"scroll-mt":G()}],"scroll-mr":[{"scroll-mr":G()}],"scroll-mb":[{"scroll-mb":G()}],"scroll-ml":[{"scroll-ml":G()}],"scroll-p":[{"scroll-p":G()}],"scroll-px":[{"scroll-px":G()}],"scroll-py":[{"scroll-py":G()}],"scroll-ps":[{"scroll-ps":G()}],"scroll-pe":[{"scroll-pe":G()}],"scroll-pt":[{"scroll-pt":G()}],"scroll-pr":[{"scroll-pr":G()}],"scroll-pb":[{"scroll-pb":G()}],"scroll-pl":[{"scroll-pl":G()}],"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",pe,me]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[je,Ss,Rr,Kd]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],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-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},gA=I_(pA);function Ye(...t){return gA(Tb(t))}const vA=mu("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive border-destructive bg-card text-card-foreground",success:"border-[color:var(--color-success)] bg-card text-card-foreground",warning:"border-[color:var(--color-warning)] bg-card text-card-foreground",info:"border-[color:var(--color-info)] bg-card text-card-foreground"}},defaultVariants:{variant:"default"}}),yA=mT,Yb=w.forwardRef(({className:t,...a},i)=>m.jsx(yb,{ref:i,className:Ye("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px] gap-2",t),...a}));Yb.displayName=yb.displayName;const Qb=w.forwardRef(({className:t,variant:a,...i},l)=>m.jsx(xb,{ref:l,className:Ye(vA({variant:a}),t),...i}));Qb.displayName=xb.displayName;const xA=w.forwardRef(({className:t,...a},i)=>m.jsx(Sb,{ref:i,className:Ye("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-thin ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...a}));xA.displayName=Sb.displayName;const Xb=w.forwardRef(({className:t,...a},i)=>m.jsx(Eb,{ref:i,className:Ye("absolute right-2 top-2 rounded-md p-1 text-foreground/30 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-80 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...a,children:m.jsx(ym,{className:"h-4 w-4"})}));Xb.displayName=Eb.displayName;const $b=w.forwardRef(({className:t,...a},i)=>m.jsx(bb,{ref:i,className:Ye("text-xs font-thin",t),...a}));$b.displayName=bb.displayName;const Fb=w.forwardRef(({className:t,...a},i)=>m.jsx(wb,{ref:i,className:Ye("text-xs opacity-70",t),...a}));Fb.displayName=wb.displayName;const Kb=w.forwardRef(({className:t,variant:a="default",...i},l)=>{const o={default:Ic,destructive:DT,success:Qi,warning:_s,info:Ic}[a],u={default:"text-muted-foreground",destructive:"text-destructive",success:"text-[color:var(--color-success)]",warning:"text-[color:var(--color-warning)]",info:"text-[color:var(--color-info)]"}[a];return m.jsx("div",{ref:l,className:Ye("flex-shrink-0",t),...i,children:m.jsx(o,{className:Ye("h-4 w-4",u)})})});Kb.displayName="ToastIcon";const v0=(t,a)=>{const i={default:"text-foreground",destructive:"text-destructive",success:"text-[color:var(--color-success)]",warning:"text-[color:var(--color-warning)]",info:"text-[color:var(--color-info)]"},l={success:["added","created","saved","completed","success","done"],destructive:["error","failed","deleted","removed","warning"],warning:["warning","caution","alert"],info:["info","note","updated","changed"]};let o=t;return o=o.replace(/([^\s]+\.[a-zA-Z0-9]+)/g,"<strong>$1</strong>"),o=o.replace(/([^\s]*\/[^\s]+)/g,"<strong>$1</strong>"),Object.entries(l).forEach(([u,f])=>{f.forEach(h=>{const g=new RegExp(`\\b(${h})\\b`,"gi"),p=i[u];o=o.replace(g,`<span class="${p} font-medium">$1</span>`)})}),{__html:o}},bA=3,wA=5e3;let Id=0;function SA(){return Id=(Id+1)%Number.MAX_SAFE_INTEGER,Id.toString()}const Zd=new Map,y0=t=>{if(Zd.has(t))return;const a=setTimeout(()=>{Zd.delete(t),zs({type:"REMOVE_TOAST",toastId:t})},wA);Zd.set(t,a)},EA=(t,a)=>{switch(a.type){case"ADD_TOAST":return{...t,toasts:[a.toast,...t.toasts].slice(0,bA)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(i=>i.id===a.toast.id?{...i,...a.toast}:i)};case"DISMISS_TOAST":{const{toastId:i}=a;return i?y0(i):t.toasts.forEach(l=>{y0(l.id)}),{...t,toasts:t.toasts.map(l=>l.id===i||i===void 0?{...l,open:!1}:l)}}case"REMOVE_TOAST":return a.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(i=>i.id!==a.toastId)}}},Lc=[];let Uc={toasts:[]};function zs(t){Uc=EA(Uc,t),Lc.forEach(a=>{a(Uc)})}function As({...t}){const a=SA(),i=o=>zs({type:"UPDATE_TOAST",toast:{...o,id:a}}),l=()=>zs({type:"DISMISS_TOAST",toastId:a});return zs({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:o=>{o||l()}}}),{id:a,dismiss:l,update:i}}function NA(){const[t,a]=w.useState(Uc);return w.useEffect(()=>(Lc.push(a),()=>{const i=Lc.indexOf(a);i>-1&&Lc.splice(i,1)}),[t]),{...t,toast:As,dismiss:i=>zs({type:"DISMISS_TOAST",toastId:i})}}function TA(){const{toasts:t}=NA();return m.jsxs(yA,{children:[t.map(function({id:a,title:i,description:l,action:o,variant:u,...f}){return m.jsxs(Qb,{variant:u,...f,children:[m.jsxs("div",{className:"flex items-start gap-3",children:[m.jsx(Kb,{variant:u}),m.jsxs("div",{className:"grid gap-1 flex-1",children:[i&&m.jsx($b,{dangerouslySetInnerHTML:v0(String(i))}),l&&m.jsx(Fb,{dangerouslySetInnerHTML:v0(String(l))})]})]}),o,m.jsx(Xb,{})]},a)}),m.jsx(Yb,{})]})}var _A=(t,a,i,l,o,u,f,h)=>{let g=document.documentElement,p=["light","dark"];function v(S){(Array.isArray(t)?t:[t]).forEach(M=>{let N=M==="class",E=N&&u?o.map(A=>u[A]||A):o;N?(g.classList.remove(...E),g.classList.add(u&&u[S]?u[S]:S)):g.setAttribute(M,S)}),y(S)}function y(S){h&&p.includes(S)&&(g.style.colorScheme=S)}function x(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(l)v(l);else try{let S=localStorage.getItem(a)||i,M=f&&S==="system"?x():S;v(M)}catch{}},x0=["light","dark"],Ib="(prefers-color-scheme: dark)",AA=typeof window>"u",wm=w.createContext(void 0),CA={setTheme:t=>{},themes:[]},MA=()=>{var t;return(t=w.useContext(wm))!=null?t:CA},jA=t=>w.useContext(wm)?w.createElement(w.Fragment,null,t.children):w.createElement(OA,{...t}),RA=["light","dark"],OA=({forcedTheme:t,disableTransitionOnChange:a=!1,enableSystem:i=!0,enableColorScheme:l=!0,storageKey:o="theme",themes:u=RA,defaultTheme:f=i?"system":"light",attribute:h="data-theme",value:g,children:p,nonce:v,scriptProps:y})=>{let[x,S]=w.useState(()=>DA(o,f)),[M,N]=w.useState(()=>x==="system"?Jd():x),E=g?Object.values(g):u,A=w.useCallback(k=>{let q=k;if(!q)return;k==="system"&&i&&(q=Jd());let V=g?g[q]:q,G=a?kA(v):null,ae=document.documentElement,fe=B=>{B==="class"?(ae.classList.remove(...E),V&&ae.classList.add(V)):B.startsWith("data-")&&(V?ae.setAttribute(B,V):ae.removeAttribute(B))};if(Array.isArray(h)?h.forEach(fe):fe(h),l){let B=x0.includes(f)?f:null,ee=x0.includes(q)?q:B;ae.style.colorScheme=ee}G==null||G()},[v]),z=w.useCallback(k=>{let q=typeof k=="function"?k(x):k;S(q);try{localStorage.setItem(o,q)}catch{}},[x]),R=w.useCallback(k=>{let q=Jd(k);N(q),x==="system"&&i&&!t&&A("system")},[x,t]);w.useEffect(()=>{let k=window.matchMedia(Ib);return k.addListener(R),R(k),()=>k.removeListener(R)},[R]),w.useEffect(()=>{let k=q=>{q.key===o&&(q.newValue?S(q.newValue):z(f))};return window.addEventListener("storage",k),()=>window.removeEventListener("storage",k)},[z]),w.useEffect(()=>{A(t??x)},[t,x]);let H=w.useMemo(()=>({theme:x,setTheme:z,forcedTheme:t,resolvedTheme:x==="system"?M:x,themes:i?[...u,"system"]:u,systemTheme:i?M:void 0}),[x,z,t,M,i,u]);return w.createElement(wm.Provider,{value:H},w.createElement(zA,{forcedTheme:t,storageKey:o,attribute:h,enableSystem:i,enableColorScheme:l,defaultTheme:f,value:g,themes:u,nonce:v,scriptProps:y}),p)},zA=w.memo(({forcedTheme:t,storageKey:a,attribute:i,enableSystem:l,enableColorScheme:o,defaultTheme:u,value:f,themes:h,nonce:g,scriptProps:p})=>{let v=JSON.stringify([i,a,u,t,h,f,l,o]).slice(1,-1);return w.createElement("script",{...p,suppressHydrationWarning:!0,nonce:typeof window>"u"?g:"",dangerouslySetInnerHTML:{__html:`(${_A.toString()})(${v})`}})}),DA=(t,a)=>{if(AA)return;let i;try{i=localStorage.getItem(t)||void 0}catch{}return i||a},kA=t=>{let a=document.createElement("style");return t&&a.setAttribute("nonce",t),a.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(a),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(a)},1)}},Jd=t=>(t||(t=window.matchMedia(Ib)),t.matches?"dark":"light");function LA({children:t,...a}){return m.jsx(jA,{...a,children:t})}const UA=mu("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-thin 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/50 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 shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs 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 shadow-xs 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"}},defaultVariants:{variant:"default",size:"default"}});function mt({className:t,variant:a,size:i,asChild:l=!1,...o}){const u=l?Wx:"button";return m.jsx(u,{"data-slot":"button",className:Ye(UA({variant:a,size:i,className:t})),...o})}const HA=mu("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-thin w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 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 We({className:t,variant:a,asChild:i=!1,...l}){const o=i?Wx:"span";return m.jsx(o,{"data-slot":"badge",className:Ye(HA({variant:a}),t),...l})}var BA=rm[" useId ".trim().toString()]||(()=>{}),qA=0;function Fs(t){const[a,i]=w.useState(BA());return Tt(()=>{i(l=>l??String(qA++))},[t]),a?`radix-${a}`:""}var PA=w.createContext(void 0);function Sm(t){const a=w.useContext(PA);return t||a||"ltr"}var Wd="rovingFocusGroup.onEntryFocus",VA={bubbles:!1,cancelable:!0},Ks="RovingFocusGroup",[kh,Zb,GA]=cm(Ks),[YA,Jb]=vl(Ks,[GA]),[QA,XA]=YA(Ks),Wb=w.forwardRef((t,a)=>m.jsx(kh.Provider,{scope:t.__scopeRovingFocusGroup,children:m.jsx(kh.Slot,{scope:t.__scopeRovingFocusGroup,children:m.jsx($A,{...t,ref:a})})}));Wb.displayName=Ks;var $A=w.forwardRef((t,a)=>{const{__scopeRovingFocusGroup:i,orientation:l,loop:o=!1,dir:u,currentTabStopId:f,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:g,onEntryFocus:p,preventScrollOnEntryFocus:v=!1,...y}=t,x=w.useRef(null),S=lt(a,x),M=Sm(u),[N,E]=Ls({prop:f,defaultProp:h??null,onChange:g,caller:Ks}),[A,z]=w.useState(!1),R=xn(p),H=Zb(i),k=w.useRef(!1),[q,V]=w.useState(0);return w.useEffect(()=>{const G=x.current;if(G)return G.addEventListener(Wd,R),()=>G.removeEventListener(Wd,R)},[R]),m.jsx(QA,{scope:i,orientation:l,dir:M,loop:o,currentTabStopId:N,onItemFocus:w.useCallback(G=>E(G),[E]),onItemShiftTab:w.useCallback(()=>z(!0),[]),onFocusableItemAdd:w.useCallback(()=>V(G=>G+1),[]),onFocusableItemRemove:w.useCallback(()=>V(G=>G-1),[]),children:m.jsx(Ue.div,{tabIndex:A||q===0?-1:0,"data-orientation":l,...y,ref:S,style:{outline:"none",...t.style},onMouseDown:Re(t.onMouseDown,()=>{k.current=!0}),onFocus:Re(t.onFocus,G=>{const ae=!k.current;if(G.target===G.currentTarget&&ae&&!A){const fe=new CustomEvent(Wd,VA);if(G.currentTarget.dispatchEvent(fe),!fe.defaultPrevented){const B=H().filter(_=>_.focusable),ee=B.find(_=>_.active),oe=B.find(_=>_.id===N),F=[ee,oe,...B].filter(Boolean).map(_=>_.ref.current);n1(F,v)}}k.current=!1}),onBlur:Re(t.onBlur,()=>z(!1))})})}),e1="RovingFocusGroupItem",t1=w.forwardRef((t,a)=>{const{__scopeRovingFocusGroup:i,focusable:l=!0,active:o=!1,tabStopId:u,children:f,...h}=t,g=Fs(),p=u||g,v=XA(e1,i),y=v.currentTabStopId===p,x=Zb(i),{onFocusableItemAdd:S,onFocusableItemRemove:M,currentTabStopId:N}=v;return w.useEffect(()=>{if(l)return S(),()=>M()},[l,S,M]),m.jsx(kh.ItemSlot,{scope:i,id:p,focusable:l,active:o,children:m.jsx(Ue.span,{tabIndex:y?0:-1,"data-orientation":v.orientation,...h,ref:a,onMouseDown:Re(t.onMouseDown,E=>{l?v.onItemFocus(p):E.preventDefault()}),onFocus:Re(t.onFocus,()=>v.onItemFocus(p)),onKeyDown:Re(t.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){v.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const A=IA(E,v.orientation,v.dir);if(A!==void 0){if(E.metaKey||E.ctrlKey||E.altKey||E.shiftKey)return;E.preventDefault();let R=x().filter(H=>H.focusable).map(H=>H.ref.current);if(A==="last")R.reverse();else if(A==="prev"||A==="next"){A==="prev"&&R.reverse();const H=R.indexOf(E.currentTarget);R=v.loop?ZA(R,H+1):R.slice(H+1)}setTimeout(()=>n1(R))}}),children:typeof f=="function"?f({isCurrentTabStop:y,hasTabStop:N!=null}):f})})});t1.displayName=e1;var FA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function KA(t,a){return a!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function IA(t,a,i){const l=KA(t.key,i);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(l))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(l)))return FA[l]}function n1(t,a=!1){const i=document.activeElement;for(const l of t)if(l===i||(l.focus({preventScroll:a}),document.activeElement!==i))return}function ZA(t,a){return t.map((i,l)=>t[(a+l)%t.length])}var JA=Wb,WA=t1,pu="Tabs",[eC]=vl(pu,[Jb]),a1=Jb(),[tC,Em]=eC(pu),r1=w.forwardRef((t,a)=>{const{__scopeTabs:i,value:l,onValueChange:o,defaultValue:u,orientation:f="horizontal",dir:h,activationMode:g="automatic",...p}=t,v=Sm(h),[y,x]=Ls({prop:l,onChange:o,defaultProp:u??"",caller:pu});return m.jsx(tC,{scope:i,baseId:Fs(),value:y,onValueChange:x,orientation:f,dir:v,activationMode:g,children:m.jsx(Ue.div,{dir:v,"data-orientation":f,...p,ref:a})})});r1.displayName=pu;var i1="TabsList",l1=w.forwardRef((t,a)=>{const{__scopeTabs:i,loop:l=!0,...o}=t,u=Em(i1,i),f=a1(i);return m.jsx(JA,{asChild:!0,...f,orientation:u.orientation,dir:u.dir,loop:l,children:m.jsx(Ue.div,{role:"tablist","aria-orientation":u.orientation,...o,ref:a})})});l1.displayName=i1;var s1="TabsTrigger",o1=w.forwardRef((t,a)=>{const{__scopeTabs:i,value:l,disabled:o=!1,...u}=t,f=Em(s1,i),h=a1(i),g=f1(f.baseId,l),p=d1(f.baseId,l),v=l===f.value;return m.jsx(WA,{asChild:!0,...h,focusable:!o,active:v,children:m.jsx(Ue.button,{type:"button",role:"tab","aria-selected":v,"aria-controls":p,"data-state":v?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:g,...u,ref:a,onMouseDown:Re(t.onMouseDown,y=>{!o&&y.button===0&&y.ctrlKey===!1?f.onValueChange(l):y.preventDefault()}),onKeyDown:Re(t.onKeyDown,y=>{[" ","Enter"].includes(y.key)&&f.onValueChange(l)}),onFocus:Re(t.onFocus,()=>{const y=f.activationMode!=="manual";!v&&!o&&y&&f.onValueChange(l)})})})});o1.displayName=s1;var c1="TabsContent",u1=w.forwardRef((t,a)=>{const{__scopeTabs:i,value:l,forceMount:o,children:u,...f}=t,h=Em(c1,i),g=f1(h.baseId,l),p=d1(h.baseId,l),v=l===h.value,y=w.useRef(v);return w.useEffect(()=>{const x=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(x)},[]),m.jsx(dm,{present:o||v,children:({present:x})=>m.jsx(Ue.div,{"data-state":v?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":g,hidden:!x,id:p,tabIndex:0,...f,ref:a,style:{...t.style,animationDuration:y.current?"0s":void 0},children:x&&u})})});u1.displayName=c1;function f1(t,a){return`${t}-trigger-${a}`}function d1(t,a){return`${t}-content-${a}`}var nC=r1,aC=l1,rC=o1,iC=u1;function Is({className:t,...a}){return m.jsx(nC,{"data-slot":"tabs",className:Ye("flex flex-col gap-2",t),...a})}function Zs({className:t,...a}){return m.jsx(aC,{"data-slot":"tabs-list",className:Ye("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",t),...a})}function an({className:t,...a}){return m.jsx(rC,{"data-slot":"tabs-trigger",className:Ye("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-thin whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...a})}function yn({className:t,...a}){return m.jsx(iC,{"data-slot":"tabs-content",className:Ye("flex-1 outline-none",t),...a})}const Nt={success:(t,a)=>As({variant:"success",title:t,description:a}),error:(t,a)=>As({variant:"destructive",title:t,description:a}),info:(t,a)=>As({variant:"info",title:t,description:a}),warning:(t,a,i)=>As({variant:"warning",title:t,description:a,duration:i==null?void 0:i.duration})},lC=t=>{if(t===0)return"0 B";const a=1024,i=["B","KB","MB","GB"],l=Math.floor(Math.log(t)/Math.log(a));return parseFloat((t/Math.pow(a,l)).toFixed(1))+" "+i[l]},sC=()=>{const{data:t={}}=or({queryKey:["fileSizes"],queryFn:async()=>{const a=await fetch("http://localhost:3333/api/files");if(!a.ok)throw new Error("Failed to fetch files");const i=await a.json(),l={};return i.forEach(o=>{l[o.path]=o.size||0}),l},refetchInterval:3e4});return t};function at({className:t,...a}){return m.jsx("div",{"data-slot":"card",className:Ye("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...a})}function Dt({className:t,...a}){return m.jsx("div",{"data-slot":"card-header",className:Ye("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...a})}function Vt({className:t,...a}){return m.jsx("div",{"data-slot":"card-title",className:Ye("leading-none font-thin",t),...a})}function bt({className:t,...a}){return m.jsx("div",{"data-slot":"card-content",className:Ye("px-6",t),...a})}const oC=({bundle:t,isSelected:a,onSelect:i})=>{const l=t.name.startsWith("smart:"),o=l?t.name.replace("smart:",""):t.name;return m.jsxs(at,{className:`cursor-pointer transition-all border-vesper bg-vesper-card hover:border-vesper-accent ${a?"ring-1 ring-primary border-primary":""}`,onClick:()=>i(t.name),children:[m.jsx(Dt,{className:"pb-2",children:m.jsxs("div",{className:"flex flex-col gap-2",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-2 overflow-hidden",children:[l?m.jsx(xm,{className:"w-3 h-3 text-vesper-accent"}):m.jsx(wT,{className:"w-3 h-3 text-muted-foreground"}),m.jsx("h3",{className:"text-sm font-thin truncate color-vesper-fg",children:o})]}),m.jsx(We,{variant:"outline",className:"text-[10px] font-thin uppercase tracking-tighter border-vesper color-vesper-muted px-1 h-4",children:l?"Smart":"Manual"})]}),m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${t.changed?"bg-vesper-warning animate-pulse":"bg-vesper-success"}`}),m.jsx("span",{className:"text-[10px] font-thin uppercase tracking-widest color-vesper-muted",children:t.changed?"Syncing":"In Context"})]})]})}),m.jsx(bt,{className:"pt-0",children:m.jsxs("div",{className:"flex flex-col gap-1 mt-1",children:[m.jsxs("div",{className:"flex items-center justify-between text-[11px] font-thin color-vesper-muted",children:[m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx(Kc,{className:"w-3 h-3"}),m.jsxs("span",{children:[t.fileCount," units"]})]}),m.jsx("span",{children:lC(t.size)})]}),t.generated&&m.jsxs("div",{className:"flex items-center gap-1 text-[9px] font-thin color-vesper-muted mt-2 opacity-50",children:[m.jsx(BT,{className:"w-2.5 h-2.5"}),m.jsxs("span",{children:["Synced ",new Date(t.generated).toLocaleTimeString()]})]})]})})]})};function b0(t,[a,i]){return Math.min(i,Math.max(a,t))}var eh=0;function cC(){w.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??w0()),document.body.insertAdjacentElement("beforeend",t[1]??w0()),eh++,()=>{eh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),eh--}},[])}function w0(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var th="focusScope.autoFocusOnMount",nh="focusScope.autoFocusOnUnmount",S0={bubbles:!1,cancelable:!0},uC="FocusScope",h1=w.forwardRef((t,a)=>{const{loop:i=!1,trapped:l=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...f}=t,[h,g]=w.useState(null),p=xn(o),v=xn(u),y=w.useRef(null),x=lt(a,N=>g(N)),S=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(l){let N=function(R){if(S.paused||!h)return;const H=R.target;h.contains(H)?y.current=H:Ia(y.current,{select:!0})},E=function(R){if(S.paused||!h)return;const H=R.relatedTarget;H!==null&&(h.contains(H)||Ia(y.current,{select:!0}))},A=function(R){if(document.activeElement===document.body)for(const k of R)k.removedNodes.length>0&&Ia(h)};document.addEventListener("focusin",N),document.addEventListener("focusout",E);const z=new MutationObserver(A);return h&&z.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",N),document.removeEventListener("focusout",E),z.disconnect()}}},[l,h,S.paused]),w.useEffect(()=>{if(h){N0.add(S);const N=document.activeElement;if(!h.contains(N)){const A=new CustomEvent(th,S0);h.addEventListener(th,p),h.dispatchEvent(A),A.defaultPrevented||(fC(gC(m1(h)),{select:!0}),document.activeElement===N&&Ia(h))}return()=>{h.removeEventListener(th,p),setTimeout(()=>{const A=new CustomEvent(nh,S0);h.addEventListener(nh,v),h.dispatchEvent(A),A.defaultPrevented||Ia(N??document.body,{select:!0}),h.removeEventListener(nh,v),N0.remove(S)},0)}}},[h,p,v,S]);const M=w.useCallback(N=>{if(!i&&!l||S.paused)return;const E=N.key==="Tab"&&!N.altKey&&!N.ctrlKey&&!N.metaKey,A=document.activeElement;if(E&&A){const z=N.currentTarget,[R,H]=dC(z);R&&H?!N.shiftKey&&A===H?(N.preventDefault(),i&&Ia(R,{select:!0})):N.shiftKey&&A===R&&(N.preventDefault(),i&&Ia(H,{select:!0})):A===z&&N.preventDefault()}},[i,l,S.paused]);return m.jsx(Ue.div,{tabIndex:-1,...f,ref:x,onKeyDown:M})});h1.displayName=uC;function fC(t,{select:a=!1}={}){const i=document.activeElement;for(const l of t)if(Ia(l,{select:a}),document.activeElement!==i)return}function dC(t){const a=m1(t),i=E0(a,t),l=E0(a.reverse(),t);return[i,l]}function m1(t){const a=[],i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const o=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||o?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)a.push(i.currentNode);return a}function E0(t,a){for(const i of t)if(!hC(i,{upTo:a}))return i}function hC(t,{upTo:a}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(a!==void 0&&t===a)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function mC(t){return t instanceof HTMLInputElement&&"select"in t}function Ia(t,{select:a=!1}={}){if(t&&t.focus){const i=document.activeElement;t.focus({preventScroll:!0}),t!==i&&mC(t)&&a&&t.select()}}var N0=pC();function pC(){let t=[];return{add(a){const i=t[0];a!==i&&(i==null||i.pause()),t=T0(t,a),t.unshift(a)},remove(a){var i;t=T0(t,a),(i=t[0])==null||i.resume()}}}function T0(t,a){const i=[...t],l=i.indexOf(a);return l!==-1&&i.splice(l,1),i}function gC(t){return t.filter(a=>a.tagName!=="A")}const vC=["top","right","bottom","left"],cr=Math.min,tn=Math.max,Zc=Math.round,Nc=Math.floor,Xn=t=>({x:t,y:t}),yC={left:"right",right:"left",bottom:"top",top:"bottom"},xC={start:"end",end:"start"};function Lh(t,a,i){return tn(t,cr(a,i))}function ba(t,a){return typeof t=="function"?t(a):t}function wa(t){return t.split("-")[0]}function bl(t){return t.split("-")[1]}function Nm(t){return t==="x"?"y":"x"}function Tm(t){return t==="y"?"height":"width"}function Yn(t){return["top","bottom"].includes(wa(t))?"y":"x"}function _m(t){return Nm(Yn(t))}function bC(t,a,i){i===void 0&&(i=!1);const l=bl(t),o=_m(t),u=Tm(o);let f=o==="x"?l===(i?"end":"start")?"right":"left":l==="start"?"bottom":"top";return a.reference[u]>a.floating[u]&&(f=Jc(f)),[f,Jc(f)]}function wC(t){const a=Jc(t);return[Uh(t),a,Uh(a)]}function Uh(t){return t.replace(/start|end/g,a=>xC[a])}function SC(t,a,i){const l=["left","right"],o=["right","left"],u=["top","bottom"],f=["bottom","top"];switch(t){case"top":case"bottom":return i?a?o:l:a?l:o;case"left":case"right":return a?u:f;default:return[]}}function EC(t,a,i,l){const o=bl(t);let u=SC(wa(t),i==="start",l);return o&&(u=u.map(f=>f+"-"+o),a&&(u=u.concat(u.map(Uh)))),u}function Jc(t){return t.replace(/left|right|bottom|top/g,a=>yC[a])}function NC(t){return{top:0,right:0,bottom:0,left:0,...t}}function p1(t){return typeof t!="number"?NC(t):{top:t,right:t,bottom:t,left:t}}function Wc(t){const{x:a,y:i,width:l,height:o}=t;return{width:l,height:o,top:i,left:a,right:a+l,bottom:i+o,x:a,y:i}}function _0(t,a,i){let{reference:l,floating:o}=t;const u=Yn(a),f=_m(a),h=Tm(f),g=wa(a),p=u==="y",v=l.x+l.width/2-o.width/2,y=l.y+l.height/2-o.height/2,x=l[h]/2-o[h]/2;let S;switch(g){case"top":S={x:v,y:l.y-o.height};break;case"bottom":S={x:v,y:l.y+l.height};break;case"right":S={x:l.x+l.width,y};break;case"left":S={x:l.x-o.width,y};break;default:S={x:l.x,y:l.y}}switch(bl(a)){case"start":S[f]-=x*(i&&p?-1:1);break;case"end":S[f]+=x*(i&&p?-1:1);break}return S}const TC=async(t,a,i)=>{const{placement:l="bottom",strategy:o="absolute",middleware:u=[],platform:f}=i,h=u.filter(Boolean),g=await(f.isRTL==null?void 0:f.isRTL(a));let p=await f.getElementRects({reference:t,floating:a,strategy:o}),{x:v,y}=_0(p,l,g),x=l,S={},M=0;for(let N=0;N<h.length;N++){const{name:E,fn:A}=h[N],{x:z,y:R,data:H,reset:k}=await A({x:v,y,initialPlacement:l,placement:x,strategy:o,middlewareData:S,rects:p,platform:f,elements:{reference:t,floating:a}});v=z??v,y=R??y,S={...S,[E]:{...S[E],...H}},k&&M<=50&&(M++,typeof k=="object"&&(k.placement&&(x=k.placement),k.rects&&(p=k.rects===!0?await f.getElementRects({reference:t,floating:a,strategy:o}):k.rects),{x:v,y}=_0(p,x,g)),N=-1)}return{x:v,y,placement:x,strategy:o,middlewareData:S}};async function Us(t,a){var i;a===void 0&&(a={});const{x:l,y:o,platform:u,rects:f,elements:h,strategy:g}=t,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:x=!1,padding:S=0}=ba(a,t),M=p1(S),E=h[x?y==="floating"?"reference":"floating":y],A=Wc(await u.getClippingRect({element:(i=await(u.isElement==null?void 0:u.isElement(E)))==null||i?E:E.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(h.floating)),boundary:p,rootBoundary:v,strategy:g})),z=y==="floating"?{x:l,y:o,width:f.floating.width,height:f.floating.height}:f.reference,R=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h.floating)),H=await(u.isElement==null?void 0:u.isElement(R))?await(u.getScale==null?void 0:u.getScale(R))||{x:1,y:1}:{x:1,y:1},k=Wc(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:z,offsetParent:R,strategy:g}):z);return{top:(A.top-k.top+M.top)/H.y,bottom:(k.bottom-A.bottom+M.bottom)/H.y,left:(A.left-k.left+M.left)/H.x,right:(k.right-A.right+M.right)/H.x}}const _C=t=>({name:"arrow",options:t,async fn(a){const{x:i,y:l,placement:o,rects:u,platform:f,elements:h,middlewareData:g}=a,{element:p,padding:v=0}=ba(t,a)||{};if(p==null)return{};const y=p1(v),x={x:i,y:l},S=_m(o),M=Tm(S),N=await f.getDimensions(p),E=S==="y",A=E?"top":"left",z=E?"bottom":"right",R=E?"clientHeight":"clientWidth",H=u.reference[M]+u.reference[S]-x[S]-u.floating[M],k=x[S]-u.reference[S],q=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let V=q?q[R]:0;(!V||!await(f.isElement==null?void 0:f.isElement(q)))&&(V=h.floating[R]||u.floating[M]);const G=H/2-k/2,ae=V/2-N[M]/2-1,fe=cr(y[A],ae),B=cr(y[z],ae),ee=fe,oe=V-N[M]-B,C=V/2-N[M]/2+G,F=Lh(ee,C,oe),_=!g.arrow&&bl(o)!=null&&C!==F&&u.reference[M]/2-(C<ee?fe:B)-N[M]/2<0,P=_?C<ee?C-ee:C-oe:0;return{[S]:x[S]+P,data:{[S]:F,centerOffset:C-F-P,..._&&{alignmentOffset:P}},reset:_}}}),AC=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var i,l;const{placement:o,middlewareData:u,rects:f,initialPlacement:h,platform:g,elements:p}=a,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:x,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:N=!0,...E}=ba(t,a);if((i=u.arrow)!=null&&i.alignmentOffset)return{};const A=wa(o),z=Yn(h),R=wa(h)===h,H=await(g.isRTL==null?void 0:g.isRTL(p.floating)),k=x||(R||!N?[Jc(h)]:wC(h)),q=M!=="none";!x&&q&&k.push(...EC(h,N,M,H));const V=[h,...k],G=await Us(a,E),ae=[];let fe=((l=u.flip)==null?void 0:l.overflows)||[];if(v&&ae.push(G[A]),y){const C=bC(o,f,H);ae.push(G[C[0]],G[C[1]])}if(fe=[...fe,{placement:o,overflows:ae}],!ae.every(C=>C<=0)){var B,ee;const C=(((B=u.flip)==null?void 0:B.index)||0)+1,F=V[C];if(F&&(!(y==="alignment"?z!==Yn(F):!1)||fe.every(L=>L.overflows[0]>0&&Yn(L.placement)===z)))return{data:{index:C,overflows:fe},reset:{placement:F}};let _=(ee=fe.filter(P=>P.overflows[0]<=0).sort((P,L)=>P.overflows[1]-L.overflows[1])[0])==null?void 0:ee.placement;if(!_)switch(S){case"bestFit":{var oe;const P=(oe=fe.filter(L=>{if(q){const re=Yn(L.placement);return re===z||re==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(re=>re>0).reduce((re,j)=>re+j,0)]).sort((L,re)=>L[1]-re[1])[0])==null?void 0:oe[0];P&&(_=P);break}case"initialPlacement":_=h;break}if(o!==_)return{reset:{placement:_}}}return{}}}};function A0(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function C0(t){return vC.some(a=>t[a]>=0)}const CC=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:i}=a,{strategy:l="referenceHidden",...o}=ba(t,a);switch(l){case"referenceHidden":{const u=await Us(a,{...o,elementContext:"reference"}),f=A0(u,i.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:C0(f)}}}case"escaped":{const u=await Us(a,{...o,altBoundary:!0}),f=A0(u,i.floating);return{data:{escapedOffsets:f,escaped:C0(f)}}}default:return{}}}}};async function MC(t,a){const{placement:i,platform:l,elements:o}=t,u=await(l.isRTL==null?void 0:l.isRTL(o.floating)),f=wa(i),h=bl(i),g=Yn(i)==="y",p=["left","top"].includes(f)?-1:1,v=u&&g?-1:1,y=ba(a,t);let{mainAxis:x,crossAxis:S,alignmentAxis:M}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return h&&typeof M=="number"&&(S=h==="end"?M*-1:M),g?{x:S*v,y:x*p}:{x:x*p,y:S*v}}const jC=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var i,l;const{x:o,y:u,placement:f,middlewareData:h}=a,g=await MC(a,t);return f===((i=h.offset)==null?void 0:i.placement)&&(l=h.arrow)!=null&&l.alignmentOffset?{}:{x:o+g.x,y:u+g.y,data:{...g,placement:f}}}}},RC=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:i,y:l,placement:o}=a,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:E=>{let{x:A,y:z}=E;return{x:A,y:z}}},...g}=ba(t,a),p={x:i,y:l},v=await Us(a,g),y=Yn(wa(o)),x=Nm(y);let S=p[x],M=p[y];if(u){const E=x==="y"?"top":"left",A=x==="y"?"bottom":"right",z=S+v[E],R=S-v[A];S=Lh(z,S,R)}if(f){const E=y==="y"?"top":"left",A=y==="y"?"bottom":"right",z=M+v[E],R=M-v[A];M=Lh(z,M,R)}const N=h.fn({...a,[x]:S,[y]:M});return{...N,data:{x:N.x-i,y:N.y-l,enabled:{[x]:u,[y]:f}}}}}},OC=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:i,y:l,placement:o,rects:u,middlewareData:f}=a,{offset:h=0,mainAxis:g=!0,crossAxis:p=!0}=ba(t,a),v={x:i,y:l},y=Yn(o),x=Nm(y);let S=v[x],M=v[y];const N=ba(h,a),E=typeof N=="number"?{mainAxis:N,crossAxis:0}:{mainAxis:0,crossAxis:0,...N};if(g){const R=x==="y"?"height":"width",H=u.reference[x]-u.floating[R]+E.mainAxis,k=u.reference[x]+u.reference[R]-E.mainAxis;S<H?S=H:S>k&&(S=k)}if(p){var A,z;const R=x==="y"?"width":"height",H=["top","left"].includes(wa(o)),k=u.reference[y]-u.floating[R]+(H&&((A=f.offset)==null?void 0:A[y])||0)+(H?0:E.crossAxis),q=u.reference[y]+u.reference[R]+(H?0:((z=f.offset)==null?void 0:z[y])||0)-(H?E.crossAxis:0);M<k?M=k:M>q&&(M=q)}return{[x]:S,[y]:M}}}},zC=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var i,l;const{placement:o,rects:u,platform:f,elements:h}=a,{apply:g=()=>{},...p}=ba(t,a),v=await Us(a,p),y=wa(o),x=bl(o),S=Yn(o)==="y",{width:M,height:N}=u.floating;let E,A;y==="top"||y==="bottom"?(E=y,A=x===(await(f.isRTL==null?void 0:f.isRTL(h.floating))?"start":"end")?"left":"right"):(A=y,E=x==="end"?"top":"bottom");const z=N-v.top-v.bottom,R=M-v.left-v.right,H=cr(N-v[E],z),k=cr(M-v[A],R),q=!a.middlewareData.shift;let V=H,G=k;if((i=a.middlewareData.shift)!=null&&i.enabled.x&&(G=R),(l=a.middlewareData.shift)!=null&&l.enabled.y&&(V=z),q&&!x){const fe=tn(v.left,0),B=tn(v.right,0),ee=tn(v.top,0),oe=tn(v.bottom,0);S?G=M-2*(fe!==0||B!==0?fe+B:tn(v.left,v.right)):V=N-2*(ee!==0||oe!==0?ee+oe:tn(v.top,v.bottom))}await g({...a,availableWidth:G,availableHeight:V});const ae=await f.getDimensions(h.floating);return M!==ae.width||N!==ae.height?{reset:{rects:!0}}:{}}}};function gu(){return typeof window<"u"}function wl(t){return g1(t)?(t.nodeName||"").toLowerCase():"#document"}function rn(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function Kn(t){var a;return(a=(g1(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function g1(t){return gu()?t instanceof Node||t instanceof rn(t).Node:!1}function Mn(t){return gu()?t instanceof Element||t instanceof rn(t).Element:!1}function Fn(t){return gu()?t instanceof HTMLElement||t instanceof rn(t).HTMLElement:!1}function M0(t){return!gu()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof rn(t).ShadowRoot}function Js(t){const{overflow:a,overflowX:i,overflowY:l,display:o}=jn(t);return/auto|scroll|overlay|hidden|clip/.test(a+l+i)&&!["inline","contents"].includes(o)}function DC(t){return["table","td","th"].includes(wl(t))}function vu(t){return[":popover-open",":modal"].some(a=>{try{return t.matches(a)}catch{return!1}})}function Am(t){const a=Cm(),i=Mn(t)?jn(t):t;return["transform","translate","scale","rotate","perspective"].some(l=>i[l]?i[l]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!a&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!a&&(i.filter?i.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(l=>(i.willChange||"").includes(l))||["paint","layout","strict","content"].some(l=>(i.contain||"").includes(l))}function kC(t){let a=ur(t);for(;Fn(a)&&!fl(a);){if(Am(a))return a;if(vu(a))return null;a=ur(a)}return null}function Cm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function fl(t){return["html","body","#document"].includes(wl(t))}function jn(t){return rn(t).getComputedStyle(t)}function yu(t){return Mn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ur(t){if(wl(t)==="html")return t;const a=t.assignedSlot||t.parentNode||M0(t)&&t.host||Kn(t);return M0(a)?a.host:a}function v1(t){const a=ur(t);return fl(a)?t.ownerDocument?t.ownerDocument.body:t.body:Fn(a)&&Js(a)?a:v1(a)}function Hs(t,a,i){var l;a===void 0&&(a=[]),i===void 0&&(i=!0);const o=v1(t),u=o===((l=t.ownerDocument)==null?void 0:l.body),f=rn(o);if(u){const h=Hh(f);return a.concat(f,f.visualViewport||[],Js(o)?o:[],h&&i?Hs(h):[])}return a.concat(o,Hs(o,[],i))}function Hh(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function y1(t){const a=jn(t);let i=parseFloat(a.width)||0,l=parseFloat(a.height)||0;const o=Fn(t),u=o?t.offsetWidth:i,f=o?t.offsetHeight:l,h=Zc(i)!==u||Zc(l)!==f;return h&&(i=u,l=f),{width:i,height:l,$:h}}function Mm(t){return Mn(t)?t:t.contextElement}function Fi(t){const a=Mm(t);if(!Fn(a))return Xn(1);const i=a.getBoundingClientRect(),{width:l,height:o,$:u}=y1(a);let f=(u?Zc(i.width):i.width)/l,h=(u?Zc(i.height):i.height)/o;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const LC=Xn(0);function x1(t){const a=rn(t);return!Cm()||!a.visualViewport?LC:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function UC(t,a,i){return a===void 0&&(a=!1),!i||a&&i!==rn(t)?!1:a}function Xr(t,a,i,l){a===void 0&&(a=!1),i===void 0&&(i=!1);const o=t.getBoundingClientRect(),u=Mm(t);let f=Xn(1);a&&(l?Mn(l)&&(f=Fi(l)):f=Fi(t));const h=UC(u,i,l)?x1(u):Xn(0);let g=(o.left+h.x)/f.x,p=(o.top+h.y)/f.y,v=o.width/f.x,y=o.height/f.y;if(u){const x=rn(u),S=l&&Mn(l)?rn(l):l;let M=x,N=Hh(M);for(;N&&l&&S!==M;){const E=Fi(N),A=N.getBoundingClientRect(),z=jn(N),R=A.left+(N.clientLeft+parseFloat(z.paddingLeft))*E.x,H=A.top+(N.clientTop+parseFloat(z.paddingTop))*E.y;g*=E.x,p*=E.y,v*=E.x,y*=E.y,g+=R,p+=H,M=rn(N),N=Hh(M)}}return Wc({width:v,height:y,x:g,y:p})}function jm(t,a){const i=yu(t).scrollLeft;return a?a.left+i:Xr(Kn(t)).left+i}function b1(t,a,i){i===void 0&&(i=!1);const l=t.getBoundingClientRect(),o=l.left+a.scrollLeft-(i?0:jm(t,l)),u=l.top+a.scrollTop;return{x:o,y:u}}function HC(t){let{elements:a,rect:i,offsetParent:l,strategy:o}=t;const u=o==="fixed",f=Kn(l),h=a?vu(a.floating):!1;if(l===f||h&&u)return i;let g={scrollLeft:0,scrollTop:0},p=Xn(1);const v=Xn(0),y=Fn(l);if((y||!y&&!u)&&((wl(l)!=="body"||Js(f))&&(g=yu(l)),Fn(l))){const S=Xr(l);p=Fi(l),v.x=S.x+l.clientLeft,v.y=S.y+l.clientTop}const x=f&&!y&&!u?b1(f,g,!0):Xn(0);return{width:i.width*p.x,height:i.height*p.y,x:i.x*p.x-g.scrollLeft*p.x+v.x+x.x,y:i.y*p.y-g.scrollTop*p.y+v.y+x.y}}function BC(t){return Array.from(t.getClientRects())}function qC(t){const a=Kn(t),i=yu(t),l=t.ownerDocument.body,o=tn(a.scrollWidth,a.clientWidth,l.scrollWidth,l.clientWidth),u=tn(a.scrollHeight,a.clientHeight,l.scrollHeight,l.clientHeight);let f=-i.scrollLeft+jm(t);const h=-i.scrollTop;return jn(l).direction==="rtl"&&(f+=tn(a.clientWidth,l.clientWidth)-o),{width:o,height:u,x:f,y:h}}function PC(t,a){const i=rn(t),l=Kn(t),o=i.visualViewport;let u=l.clientWidth,f=l.clientHeight,h=0,g=0;if(o){u=o.width,f=o.height;const p=Cm();(!p||p&&a==="fixed")&&(h=o.offsetLeft,g=o.offsetTop)}return{width:u,height:f,x:h,y:g}}function VC(t,a){const i=Xr(t,!0,a==="fixed"),l=i.top+t.clientTop,o=i.left+t.clientLeft,u=Fn(t)?Fi(t):Xn(1),f=t.clientWidth*u.x,h=t.clientHeight*u.y,g=o*u.x,p=l*u.y;return{width:f,height:h,x:g,y:p}}function j0(t,a,i){let l;if(a==="viewport")l=PC(t,i);else if(a==="document")l=qC(Kn(t));else if(Mn(a))l=VC(a,i);else{const o=x1(t);l={x:a.x-o.x,y:a.y-o.y,width:a.width,height:a.height}}return Wc(l)}function w1(t,a){const i=ur(t);return i===a||!Mn(i)||fl(i)?!1:jn(i).position==="fixed"||w1(i,a)}function GC(t,a){const i=a.get(t);if(i)return i;let l=Hs(t,[],!1).filter(h=>Mn(h)&&wl(h)!=="body"),o=null;const u=jn(t).position==="fixed";let f=u?ur(t):t;for(;Mn(f)&&!fl(f);){const h=jn(f),g=Am(f);!g&&h.position==="fixed"&&(o=null),(u?!g&&!o:!g&&h.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Js(f)&&!g&&w1(t,f))?l=l.filter(v=>v!==f):o=h,f=ur(f)}return a.set(t,l),l}function YC(t){let{element:a,boundary:i,rootBoundary:l,strategy:o}=t;const f=[...i==="clippingAncestors"?vu(a)?[]:GC(a,this._c):[].concat(i),l],h=f[0],g=f.reduce((p,v)=>{const y=j0(a,v,o);return p.top=tn(y.top,p.top),p.right=cr(y.right,p.right),p.bottom=cr(y.bottom,p.bottom),p.left=tn(y.left,p.left),p},j0(a,h,o));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function QC(t){const{width:a,height:i}=y1(t);return{width:a,height:i}}function XC(t,a,i){const l=Fn(a),o=Kn(a),u=i==="fixed",f=Xr(t,!0,u,a);let h={scrollLeft:0,scrollTop:0};const g=Xn(0);function p(){g.x=jm(o)}if(l||!l&&!u)if((wl(a)!=="body"||Js(o))&&(h=yu(a)),l){const S=Xr(a,!0,u,a);g.x=S.x+a.clientLeft,g.y=S.y+a.clientTop}else o&&p();u&&!l&&o&&p();const v=o&&!l&&!u?b1(o,h):Xn(0),y=f.left+h.scrollLeft-g.x-v.x,x=f.top+h.scrollTop-g.y-v.y;return{x:y,y:x,width:f.width,height:f.height}}function ah(t){return jn(t).position==="static"}function R0(t,a){if(!Fn(t)||jn(t).position==="fixed")return null;if(a)return a(t);let i=t.offsetParent;return Kn(t)===i&&(i=i.ownerDocument.body),i}function S1(t,a){const i=rn(t);if(vu(t))return i;if(!Fn(t)){let o=ur(t);for(;o&&!fl(o);){if(Mn(o)&&!ah(o))return o;o=ur(o)}return i}let l=R0(t,a);for(;l&&DC(l)&&ah(l);)l=R0(l,a);return l&&fl(l)&&ah(l)&&!Am(l)?i:l||kC(t)||i}const $C=async function(t){const a=this.getOffsetParent||S1,i=this.getDimensions,l=await i(t.floating);return{reference:XC(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function FC(t){return jn(t).direction==="rtl"}const KC={convertOffsetParentRelativeRectToViewportRelativeRect:HC,getDocumentElement:Kn,getClippingRect:YC,getOffsetParent:S1,getElementRects:$C,getClientRects:BC,getDimensions:QC,getScale:Fi,isElement:Mn,isRTL:FC};function E1(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function IC(t,a){let i=null,l;const o=Kn(t);function u(){var h;clearTimeout(l),(h=i)==null||h.disconnect(),i=null}function f(h,g){h===void 0&&(h=!1),g===void 0&&(g=1),u();const p=t.getBoundingClientRect(),{left:v,top:y,width:x,height:S}=p;if(h||a(),!x||!S)return;const M=Nc(y),N=Nc(o.clientWidth-(v+x)),E=Nc(o.clientHeight-(y+S)),A=Nc(v),R={rootMargin:-M+"px "+-N+"px "+-E+"px "+-A+"px",threshold:tn(0,cr(1,g))||1};let H=!0;function k(q){const V=q[0].intersectionRatio;if(V!==g){if(!H)return f();V?f(!1,V):l=setTimeout(()=>{f(!1,1e-7)},1e3)}V===1&&!E1(p,t.getBoundingClientRect())&&f(),H=!1}try{i=new IntersectionObserver(k,{...R,root:o.ownerDocument})}catch{i=new IntersectionObserver(k,R)}i.observe(t)}return f(!0),u}function ZC(t,a,i,l){l===void 0&&(l={});const{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:g=!1}=l,p=Mm(t),v=o||u?[...p?Hs(p):[],...Hs(a)]:[];v.forEach(A=>{o&&A.addEventListener("scroll",i,{passive:!0}),u&&A.addEventListener("resize",i)});const y=p&&h?IC(p,i):null;let x=-1,S=null;f&&(S=new ResizeObserver(A=>{let[z]=A;z&&z.target===p&&S&&(S.unobserve(a),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var R;(R=S)==null||R.observe(a)})),i()}),p&&!g&&S.observe(p),S.observe(a));let M,N=g?Xr(t):null;g&&E();function E(){const A=Xr(t);N&&!E1(N,A)&&i(),N=A,M=requestAnimationFrame(E)}return i(),()=>{var A;v.forEach(z=>{o&&z.removeEventListener("scroll",i),u&&z.removeEventListener("resize",i)}),y==null||y(),(A=S)==null||A.disconnect(),S=null,g&&cancelAnimationFrame(M)}}const JC=jC,WC=RC,eM=AC,tM=zC,nM=CC,O0=_C,aM=OC,rM=(t,a,i)=>{const l=new Map,o={platform:KC,...i},u={...o.platform,_c:l};return TC(t,a,{...o,platform:u})};var iM=typeof document<"u",lM=function(){},Hc=iM?w.useLayoutEffect:lM;function eu(t,a){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(typeof t=="function"&&t.toString()===a.toString())return!0;let i,l,o;if(t&&a&&typeof t=="object"){if(Array.isArray(t)){if(i=t.length,i!==a.length)return!1;for(l=i;l--!==0;)if(!eu(t[l],a[l]))return!1;return!0}if(o=Object.keys(t),i=o.length,i!==Object.keys(a).length)return!1;for(l=i;l--!==0;)if(!{}.hasOwnProperty.call(a,o[l]))return!1;for(l=i;l--!==0;){const u=o[l];if(!(u==="_owner"&&t.$$typeof)&&!eu(t[u],a[u]))return!1}return!0}return t!==t&&a!==a}function N1(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function z0(t,a){const i=N1(t);return Math.round(a*i)/i}function rh(t){const a=w.useRef(t);return Hc(()=>{a.current=t}),a}function sM(t){t===void 0&&(t={});const{placement:a="bottom",strategy:i="absolute",middleware:l=[],platform:o,elements:{reference:u,floating:f}={},transform:h=!0,whileElementsMounted:g,open:p}=t,[v,y]=w.useState({x:0,y:0,strategy:i,placement:a,middlewareData:{},isPositioned:!1}),[x,S]=w.useState(l);eu(x,l)||S(l);const[M,N]=w.useState(null),[E,A]=w.useState(null),z=w.useCallback(L=>{L!==q.current&&(q.current=L,N(L))},[]),R=w.useCallback(L=>{L!==V.current&&(V.current=L,A(L))},[]),H=u||M,k=f||E,q=w.useRef(null),V=w.useRef(null),G=w.useRef(v),ae=g!=null,fe=rh(g),B=rh(o),ee=rh(p),oe=w.useCallback(()=>{if(!q.current||!V.current)return;const L={placement:a,strategy:i,middleware:x};B.current&&(L.platform=B.current),rM(q.current,V.current,L).then(re=>{const j={...re,isPositioned:ee.current!==!1};C.current&&!eu(G.current,j)&&(G.current=j,gl.flushSync(()=>{y(j)}))})},[x,a,i,B,ee]);Hc(()=>{p===!1&&G.current.isPositioned&&(G.current.isPositioned=!1,y(L=>({...L,isPositioned:!1})))},[p]);const C=w.useRef(!1);Hc(()=>(C.current=!0,()=>{C.current=!1}),[]),Hc(()=>{if(H&&(q.current=H),k&&(V.current=k),H&&k){if(fe.current)return fe.current(H,k,oe);oe()}},[H,k,oe,fe,ae]);const F=w.useMemo(()=>({reference:q,floating:V,setReference:z,setFloating:R}),[z,R]),_=w.useMemo(()=>({reference:H,floating:k}),[H,k]),P=w.useMemo(()=>{const L={position:i,left:0,top:0};if(!_.floating)return L;const re=z0(_.floating,v.x),j=z0(_.floating,v.y);return h?{...L,transform:"translate("+re+"px, "+j+"px)",...N1(_.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:re,top:j}},[i,h,_.floating,v.x,v.y]);return w.useMemo(()=>({...v,update:oe,refs:F,elements:_,floatingStyles:P}),[v,oe,F,_,P])}const oM=t=>{function a(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:t,fn(i){const{element:l,padding:o}=typeof t=="function"?t(i):t;return l&&a(l)?l.current!=null?O0({element:l.current,padding:o}).fn(i):{}:l?O0({element:l,padding:o}).fn(i):{}}}},cM=(t,a)=>({...JC(t),options:[t,a]}),uM=(t,a)=>({...WC(t),options:[t,a]}),fM=(t,a)=>({...aM(t),options:[t,a]}),dM=(t,a)=>({...eM(t),options:[t,a]}),hM=(t,a)=>({...tM(t),options:[t,a]}),mM=(t,a)=>({...nM(t),options:[t,a]}),pM=(t,a)=>({...oM(t),options:[t,a]});var gM="Arrow",T1=w.forwardRef((t,a)=>{const{children:i,width:l=10,height:o=5,...u}=t;return m.jsx(Ue.svg,{...u,ref:a,width:l,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?i:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});T1.displayName=gM;var vM=T1;function yM(t){const[a,i]=w.useState(void 0);return Tt(()=>{if(t){i({width:t.offsetWidth,height:t.offsetHeight});const l=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let f,h;if("borderBoxSize"in u){const g=u.borderBoxSize,p=Array.isArray(g)?g[0]:g;f=p.inlineSize,h=p.blockSize}else f=t.offsetWidth,h=t.offsetHeight;i({width:f,height:h})});return l.observe(t,{box:"border-box"}),()=>l.unobserve(t)}else i(void 0)},[t]),a}var Rm="Popper",[_1,A1]=vl(Rm),[xM,C1]=_1(Rm),M1=t=>{const{__scopePopper:a,children:i}=t,[l,o]=w.useState(null);return m.jsx(xM,{scope:a,anchor:l,onAnchorChange:o,children:i})};M1.displayName=Rm;var j1="PopperAnchor",R1=w.forwardRef((t,a)=>{const{__scopePopper:i,virtualRef:l,...o}=t,u=C1(j1,i),f=w.useRef(null),h=lt(a,f);return w.useEffect(()=>{u.onAnchorChange((l==null?void 0:l.current)||f.current)}),l?null:m.jsx(Ue.div,{...o,ref:h})});R1.displayName=j1;var Om="PopperContent",[bM,wM]=_1(Om),O1=w.forwardRef((t,a)=>{var W,ce,ge,ye,Se,Ee;const{__scopePopper:i,side:l="bottom",sideOffset:o=0,align:u="center",alignOffset:f=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:p=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:x=!1,updatePositionStrategy:S="optimized",onPlaced:M,...N}=t,E=C1(Om,i),[A,z]=w.useState(null),R=lt(a,Ae=>z(Ae)),[H,k]=w.useState(null),q=yM(H),V=(q==null?void 0:q.width)??0,G=(q==null?void 0:q.height)??0,ae=l+(u!=="center"?"-"+u:""),fe=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},B=Array.isArray(p)?p:[p],ee=B.length>0,oe={padding:fe,boundary:B.filter(EM),altBoundary:ee},{refs:C,floatingStyles:F,placement:_,isPositioned:P,middlewareData:L}=sM({strategy:"fixed",placement:ae,whileElementsMounted:(...Ae)=>ZC(...Ae,{animationFrame:S==="always"}),elements:{reference:E.anchor},middleware:[cM({mainAxis:o+G,alignmentAxis:f}),g&&uM({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?fM():void 0,...oe}),g&&dM({...oe}),hM({...oe,apply:({elements:Ae,rects:Ke,availableWidth:Yt,availableHeight:sn})=>{const{width:st,height:pt}=Ke.reference,On=Ae.floating.style;On.setProperty("--radix-popper-available-width",`${Yt}px`),On.setProperty("--radix-popper-available-height",`${sn}px`),On.setProperty("--radix-popper-anchor-width",`${st}px`),On.setProperty("--radix-popper-anchor-height",`${pt}px`)}}),H&&pM({element:H,padding:h}),NM({arrowWidth:V,arrowHeight:G}),x&&mM({strategy:"referenceHidden",...oe})]}),[re,j]=k1(_),I=xn(M);Tt(()=>{P&&(I==null||I())},[P,I]);const le=(W=L.arrow)==null?void 0:W.x,Q=(ce=L.arrow)==null?void 0:ce.y,J=((ge=L.arrow)==null?void 0:ge.centerOffset)!==0,[ue,se]=w.useState();return Tt(()=>{A&&se(window.getComputedStyle(A).zIndex)},[A]),m.jsx("div",{ref:C.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:P?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[(ye=L.transformOrigin)==null?void 0:ye.x,(Se=L.transformOrigin)==null?void 0:Se.y].join(" "),...((Ee=L.hide)==null?void 0:Ee.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:m.jsx(bM,{scope:i,placedSide:re,onArrowChange:k,arrowX:le,arrowY:Q,shouldHideArrow:J,children:m.jsx(Ue.div,{"data-side":re,"data-align":j,...N,ref:R,style:{...N.style,animation:P?void 0:"none"}})})})});O1.displayName=Om;var z1="PopperArrow",SM={top:"bottom",right:"left",bottom:"top",left:"right"},D1=w.forwardRef(function(a,i){const{__scopePopper:l,...o}=a,u=wM(z1,l),f=SM[u.placedSide];return m.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:m.jsx(vM,{...o,ref:i,style:{...o.style,display:"block"}})})});D1.displayName=z1;function EM(t){return t!==null}var NM=t=>({name:"transformOrigin",options:t,fn(a){var E,A,z;const{placement:i,rects:l,middlewareData:o}=a,f=((E=o.arrow)==null?void 0:E.centerOffset)!==0,h=f?0:t.arrowWidth,g=f?0:t.arrowHeight,[p,v]=k1(i),y={start:"0%",center:"50%",end:"100%"}[v],x=(((A=o.arrow)==null?void 0:A.x)??0)+h/2,S=(((z=o.arrow)==null?void 0:z.y)??0)+g/2;let M="",N="";return p==="bottom"?(M=f?y:`${x}px`,N=`${-g}px`):p==="top"?(M=f?y:`${x}px`,N=`${l.floating.height+g}px`):p==="right"?(M=`${-g}px`,N=f?y:`${S}px`):p==="left"&&(M=`${l.floating.width+g}px`,N=f?y:`${S}px`),{data:{x:M,y:N}}}});function k1(t){const[a,i="center"]=t.split("-");return[a,i]}var TM=M1,_M=R1,AM=O1,CM=D1;function MM(t){const a=w.useRef({value:t,previous:t});return w.useMemo(()=>(a.current.value!==t&&(a.current.previous=a.current.value,a.current.value=t),a.current.previous),[t])}var jM=function(t){if(typeof document>"u")return null;var a=Array.isArray(t)?t[0]:t;return a.ownerDocument.body},Bi=new WeakMap,Tc=new WeakMap,_c={},ih=0,L1=function(t){return t&&(t.host||L1(t.parentNode))},RM=function(t,a){return a.map(function(i){if(t.contains(i))return i;var l=L1(i);return l&&t.contains(l)?l:(console.error("aria-hidden",i,"in not contained inside",t,". Doing nothing"),null)}).filter(function(i){return!!i})},OM=function(t,a,i,l){var o=RM(a,Array.isArray(t)?t:[t]);_c[i]||(_c[i]=new WeakMap);var u=_c[i],f=[],h=new Set,g=new Set(o),p=function(y){!y||h.has(y)||(h.add(y),p(y.parentNode))};o.forEach(p);var v=function(y){!y||g.has(y)||Array.prototype.forEach.call(y.children,function(x){if(h.has(x))v(x);else try{var S=x.getAttribute(l),M=S!==null&&S!=="false",N=(Bi.get(x)||0)+1,E=(u.get(x)||0)+1;Bi.set(x,N),u.set(x,E),f.push(x),N===1&&M&&Tc.set(x,!0),E===1&&x.setAttribute(i,"true"),M||x.setAttribute(l,"true")}catch(A){console.error("aria-hidden: cannot operate on ",x,A)}})};return v(a),h.clear(),ih++,function(){f.forEach(function(y){var x=Bi.get(y)-1,S=u.get(y)-1;Bi.set(y,x),u.set(y,S),x||(Tc.has(y)||y.removeAttribute(l),Tc.delete(y)),S||y.removeAttribute(i)}),ih--,ih||(Bi=new WeakMap,Bi=new WeakMap,Tc=new WeakMap,_c={})}},zM=function(t,a,i){i===void 0&&(i="data-aria-hidden");var l=Array.from(Array.isArray(t)?t:[t]),o=jM(t);return o?(l.push.apply(l,Array.from(o.querySelectorAll("[aria-live], script"))),OM(l,o,i,"aria-hidden")):function(){return null}},Vn=function(){return Vn=Object.assign||function(a){for(var i,l=1,o=arguments.length;l<o;l++){i=arguments[l];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(a[u]=i[u])}return a},Vn.apply(this,arguments)};function U1(t,a){var i={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&a.indexOf(l)<0&&(i[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(t);o<l.length;o++)a.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(t,l[o])&&(i[l[o]]=t[l[o]]);return i}function DM(t,a,i){if(i||arguments.length===2)for(var l=0,o=a.length,u;l<o;l++)(u||!(l in a))&&(u||(u=Array.prototype.slice.call(a,0,l)),u[l]=a[l]);return t.concat(u||Array.prototype.slice.call(a))}var Bc="right-scroll-bar-position",qc="width-before-scroll-bar",kM="with-scroll-bars-hidden",LM="--removed-body-scroll-bar-size";function lh(t,a){return typeof t=="function"?t(a):t&&(t.current=a),t}function UM(t,a){var i=w.useState(function(){return{value:t,callback:a,facade:{get current(){return i.value},set current(l){var o=i.value;o!==l&&(i.value=l,i.callback(l,o))}}}})[0];return i.callback=a,i.facade}var HM=typeof window<"u"?w.useLayoutEffect:w.useEffect,D0=new WeakMap;function BM(t,a){var i=UM(null,function(l){return t.forEach(function(o){return lh(o,l)})});return HM(function(){var l=D0.get(i);if(l){var o=new Set(l),u=new Set(t),f=i.current;o.forEach(function(h){u.has(h)||lh(h,null)}),u.forEach(function(h){o.has(h)||lh(h,f)})}D0.set(i,t)},[t]),i}function qM(t){return t}function PM(t,a){a===void 0&&(a=qM);var i=[],l=!1,o={read:function(){if(l)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:t},useMedium:function(u){var f=a(u,l);return i.push(f),function(){i=i.filter(function(h){return h!==f})}},assignSyncMedium:function(u){for(l=!0;i.length;){var f=i;i=[],f.forEach(u)}i={push:function(h){return u(h)},filter:function(){return i}}},assignMedium:function(u){l=!0;var f=[];if(i.length){var h=i;i=[],h.forEach(u),f=i}var g=function(){var v=f;f=[],v.forEach(u)},p=function(){return Promise.resolve().then(g)};p(),i={push:function(v){f.push(v),p()},filter:function(v){return f=f.filter(v),i}}}};return o}function VM(t){t===void 0&&(t={});var a=PM(null);return a.options=Vn({async:!0,ssr:!1},t),a}var H1=function(t){var a=t.sideCar,i=U1(t,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=a.read();if(!l)throw new Error("Sidecar medium not found");return w.createElement(l,Vn({},i))};H1.isSideCarExport=!0;function GM(t,a){return t.useMedium(a),H1}var B1=VM(),sh=function(){},xu=w.forwardRef(function(t,a){var i=w.useRef(null),l=w.useState({onScrollCapture:sh,onWheelCapture:sh,onTouchMoveCapture:sh}),o=l[0],u=l[1],f=t.forwardProps,h=t.children,g=t.className,p=t.removeScrollBar,v=t.enabled,y=t.shards,x=t.sideCar,S=t.noRelative,M=t.noIsolation,N=t.inert,E=t.allowPinchZoom,A=t.as,z=A===void 0?"div":A,R=t.gapMode,H=U1(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=x,q=BM([i,a]),V=Vn(Vn({},H),o);return w.createElement(w.Fragment,null,v&&w.createElement(k,{sideCar:B1,removeScrollBar:p,shards:y,noRelative:S,noIsolation:M,inert:N,setCallbacks:u,allowPinchZoom:!!E,lockRef:i,gapMode:R}),f?w.cloneElement(w.Children.only(h),Vn(Vn({},V),{ref:q})):w.createElement(z,Vn({},V,{className:g,ref:q}),h))});xu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xu.classNames={fullWidth:qc,zeroRight:Bc};var YM=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function QM(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var a=YM();return a&&t.setAttribute("nonce",a),t}function XM(t,a){t.styleSheet?t.styleSheet.cssText=a:t.appendChild(document.createTextNode(a))}function $M(t){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(t)}var FM=function(){var t=0,a=null;return{add:function(i){t==0&&(a=QM())&&(XM(a,i),$M(a)),t++},remove:function(){t--,!t&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},KM=function(){var t=FM();return function(a,i){w.useEffect(function(){return t.add(a),function(){t.remove()}},[a&&i])}},q1=function(){var t=KM(),a=function(i){var l=i.styles,o=i.dynamic;return t(l,o),null};return a},IM={left:0,top:0,right:0,gap:0},oh=function(t){return parseInt(t||"",10)||0},ZM=function(t){var a=window.getComputedStyle(document.body),i=a[t==="padding"?"paddingLeft":"marginLeft"],l=a[t==="padding"?"paddingTop":"marginTop"],o=a[t==="padding"?"paddingRight":"marginRight"];return[oh(i),oh(l),oh(o)]},JM=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return IM;var a=ZM(t),i=document.documentElement.clientWidth,l=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,l-i+a[2]-a[0])}},WM=q1(),Ki="data-scroll-locked",ej=function(t,a,i,l){var o=t.left,u=t.top,f=t.right,h=t.gap;return i===void 0&&(i="margin"),`
|
|
300
|
+
.`.concat(kM,` {
|
|
301
|
+
overflow: hidden `).concat(l,`;
|
|
302
|
+
padding-right: `).concat(h,"px ").concat(l,`;
|
|
303
|
+
}
|
|
304
|
+
body[`).concat(Ki,`] {
|
|
305
|
+
overflow: hidden `).concat(l,`;
|
|
306
|
+
overscroll-behavior: contain;
|
|
307
|
+
`).concat([a&&"position: relative ".concat(l,";"),i==="margin"&&`
|
|
308
|
+
padding-left: `.concat(o,`px;
|
|
309
|
+
padding-top: `).concat(u,`px;
|
|
310
|
+
padding-right: `).concat(f,`px;
|
|
311
|
+
margin-left:0;
|
|
312
|
+
margin-top:0;
|
|
313
|
+
margin-right: `).concat(h,"px ").concat(l,`;
|
|
314
|
+
`),i==="padding"&&"padding-right: ".concat(h,"px ").concat(l,";")].filter(Boolean).join(""),`
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.`).concat(Bc,` {
|
|
318
|
+
right: `).concat(h,"px ").concat(l,`;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.`).concat(qc,` {
|
|
322
|
+
margin-right: `).concat(h,"px ").concat(l,`;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.`).concat(Bc," .").concat(Bc,` {
|
|
326
|
+
right: 0 `).concat(l,`;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.`).concat(qc," .").concat(qc,` {
|
|
330
|
+
margin-right: 0 `).concat(l,`;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
body[`).concat(Ki,`] {
|
|
334
|
+
`).concat(LM,": ").concat(h,`px;
|
|
335
|
+
}
|
|
336
|
+
`)},k0=function(){var t=parseInt(document.body.getAttribute(Ki)||"0",10);return isFinite(t)?t:0},tj=function(){w.useEffect(function(){return document.body.setAttribute(Ki,(k0()+1).toString()),function(){var t=k0()-1;t<=0?document.body.removeAttribute(Ki):document.body.setAttribute(Ki,t.toString())}},[])},nj=function(t){var a=t.noRelative,i=t.noImportant,l=t.gapMode,o=l===void 0?"margin":l;tj();var u=w.useMemo(function(){return JM(o)},[o]);return w.createElement(WM,{styles:ej(u,!a,o,i?"":"!important")})},Bh=!1;if(typeof window<"u")try{var Ac=Object.defineProperty({},"passive",{get:function(){return Bh=!0,!0}});window.addEventListener("test",Ac,Ac),window.removeEventListener("test",Ac,Ac)}catch{Bh=!1}var qi=Bh?{passive:!1}:!1,aj=function(t){return t.tagName==="TEXTAREA"},P1=function(t,a){if(!(t instanceof Element))return!1;var i=window.getComputedStyle(t);return i[a]!=="hidden"&&!(i.overflowY===i.overflowX&&!aj(t)&&i[a]==="visible")},rj=function(t){return P1(t,"overflowY")},ij=function(t){return P1(t,"overflowX")},L0=function(t,a){var i=a.ownerDocument,l=a;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var o=V1(t,l);if(o){var u=G1(t,l),f=u[1],h=u[2];if(f>h)return!0}l=l.parentNode}while(l&&l!==i.body);return!1},lj=function(t){var a=t.scrollTop,i=t.scrollHeight,l=t.clientHeight;return[a,i,l]},sj=function(t){var a=t.scrollLeft,i=t.scrollWidth,l=t.clientWidth;return[a,i,l]},V1=function(t,a){return t==="v"?rj(a):ij(a)},G1=function(t,a){return t==="v"?lj(a):sj(a)},oj=function(t,a){return t==="h"&&a==="rtl"?-1:1},cj=function(t,a,i,l,o){var u=oj(t,window.getComputedStyle(a).direction),f=u*l,h=i.target,g=a.contains(h),p=!1,v=f>0,y=0,x=0;do{if(!h)break;var S=G1(t,h),M=S[0],N=S[1],E=S[2],A=N-E-u*M;(M||A)&&V1(t,h)&&(y+=A,x+=M);var z=h.parentNode;h=z&&z.nodeType===Node.DOCUMENT_FRAGMENT_NODE?z.host:z}while(!g&&h!==document.body||g&&(a.contains(h)||a===h));return(v&&Math.abs(y)<1||!v&&Math.abs(x)<1)&&(p=!0),p},Cc=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},U0=function(t){return[t.deltaX,t.deltaY]},H0=function(t){return t&&"current"in t?t.current:t},uj=function(t,a){return t[0]===a[0]&&t[1]===a[1]},fj=function(t){return`
|
|
337
|
+
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
338
|
+
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
339
|
+
`)},dj=0,Pi=[];function hj(t){var a=w.useRef([]),i=w.useRef([0,0]),l=w.useRef(),o=w.useState(dj++)[0],u=w.useState(q1)[0],f=w.useRef(t);w.useEffect(function(){f.current=t},[t]),w.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var N=DM([t.lockRef.current],(t.shards||[]).map(H0),!0).filter(Boolean);return N.forEach(function(E){return E.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),N.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var h=w.useCallback(function(N,E){if("touches"in N&&N.touches.length===2||N.type==="wheel"&&N.ctrlKey)return!f.current.allowPinchZoom;var A=Cc(N),z=i.current,R="deltaX"in N?N.deltaX:z[0]-A[0],H="deltaY"in N?N.deltaY:z[1]-A[1],k,q=N.target,V=Math.abs(R)>Math.abs(H)?"h":"v";if("touches"in N&&V==="h"&&q.type==="range")return!1;var G=L0(V,q);if(!G)return!0;if(G?k=V:(k=V==="v"?"h":"v",G=L0(V,q)),!G)return!1;if(!l.current&&"changedTouches"in N&&(R||H)&&(l.current=k),!k)return!0;var ae=l.current||k;return cj(ae,E,N,ae==="h"?R:H)},[]),g=w.useCallback(function(N){var E=N;if(!(!Pi.length||Pi[Pi.length-1]!==u)){var A="deltaY"in E?U0(E):Cc(E),z=a.current.filter(function(k){return k.name===E.type&&(k.target===E.target||E.target===k.shadowParent)&&uj(k.delta,A)})[0];if(z&&z.should){E.cancelable&&E.preventDefault();return}if(!z){var R=(f.current.shards||[]).map(H0).filter(Boolean).filter(function(k){return k.contains(E.target)}),H=R.length>0?h(E,R[0]):!f.current.noIsolation;H&&E.cancelable&&E.preventDefault()}}},[]),p=w.useCallback(function(N,E,A,z){var R={name:N,delta:E,target:A,should:z,shadowParent:mj(A)};a.current.push(R),setTimeout(function(){a.current=a.current.filter(function(H){return H!==R})},1)},[]),v=w.useCallback(function(N){i.current=Cc(N),l.current=void 0},[]),y=w.useCallback(function(N){p(N.type,U0(N),N.target,h(N,t.lockRef.current))},[]),x=w.useCallback(function(N){p(N.type,Cc(N),N.target,h(N,t.lockRef.current))},[]);w.useEffect(function(){return Pi.push(u),t.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:x}),document.addEventListener("wheel",g,qi),document.addEventListener("touchmove",g,qi),document.addEventListener("touchstart",v,qi),function(){Pi=Pi.filter(function(N){return N!==u}),document.removeEventListener("wheel",g,qi),document.removeEventListener("touchmove",g,qi),document.removeEventListener("touchstart",v,qi)}},[]);var S=t.removeScrollBar,M=t.inert;return w.createElement(w.Fragment,null,M?w.createElement(u,{styles:fj(o)}):null,S?w.createElement(nj,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function mj(t){for(var a=null;t!==null;)t instanceof ShadowRoot&&(a=t.host,t=t.host),t=t.parentNode;return a}const pj=GM(B1,hj);var Y1=w.forwardRef(function(t,a){return w.createElement(xu,Vn({},t,{ref:a,sideCar:pj}))});Y1.classNames=xu.classNames;var gj=[" ","Enter","ArrowUp","ArrowDown"],vj=[" ","Enter"],$r="Select",[bu,wu,yj]=cm($r),[Sl]=vl($r,[yj,A1]),Su=A1(),[xj,fr]=Sl($r),[bj,wj]=Sl($r),Q1=t=>{const{__scopeSelect:a,children:i,open:l,defaultOpen:o,onOpenChange:u,value:f,defaultValue:h,onValueChange:g,dir:p,name:v,autoComplete:y,disabled:x,required:S,form:M}=t,N=Su(a),[E,A]=w.useState(null),[z,R]=w.useState(null),[H,k]=w.useState(!1),q=Sm(p),[V,G]=Ls({prop:l,defaultProp:o??!1,onChange:u,caller:$r}),[ae,fe]=Ls({prop:f,defaultProp:h,onChange:g,caller:$r}),B=w.useRef(null),ee=E?M||!!E.closest("form"):!0,[oe,C]=w.useState(new Set),F=Array.from(oe).map(_=>_.props.value).join(";");return m.jsx(TM,{...N,children:m.jsxs(xj,{required:S,scope:a,trigger:E,onTriggerChange:A,valueNode:z,onValueNodeChange:R,valueNodeHasChildren:H,onValueNodeHasChildrenChange:k,contentId:Fs(),value:ae,onValueChange:fe,open:V,onOpenChange:G,dir:q,triggerPointerDownPosRef:B,disabled:x,children:[m.jsx(bu.Provider,{scope:a,children:m.jsx(bj,{scope:t.__scopeSelect,onNativeOptionAdd:w.useCallback(_=>{C(P=>new Set(P).add(_))},[]),onNativeOptionRemove:w.useCallback(_=>{C(P=>{const L=new Set(P);return L.delete(_),L})},[]),children:i})}),ee?m.jsxs(hw,{"aria-hidden":!0,required:S,tabIndex:-1,name:v,autoComplete:y,value:ae,onChange:_=>fe(_.target.value),disabled:x,form:M,children:[ae===void 0?m.jsx("option",{value:""}):null,Array.from(oe)]},F):null]})})};Q1.displayName=$r;var X1="SelectTrigger",$1=w.forwardRef((t,a)=>{const{__scopeSelect:i,disabled:l=!1,...o}=t,u=Su(i),f=fr(X1,i),h=f.disabled||l,g=lt(a,f.onTriggerChange),p=wu(i),v=w.useRef("touch"),[y,x,S]=pw(N=>{const E=p().filter(R=>!R.disabled),A=E.find(R=>R.value===f.value),z=gw(E,N,A);z!==void 0&&f.onValueChange(z.value)}),M=N=>{h||(f.onOpenChange(!0),S()),N&&(f.triggerPointerDownPosRef.current={x:Math.round(N.pageX),y:Math.round(N.pageY)})};return m.jsx(_M,{asChild:!0,...u,children:m.jsx(Ue.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":mw(f.value)?"":void 0,...o,ref:g,onClick:Re(o.onClick,N=>{N.currentTarget.focus(),v.current!=="mouse"&&M(N)}),onPointerDown:Re(o.onPointerDown,N=>{v.current=N.pointerType;const E=N.target;E.hasPointerCapture(N.pointerId)&&E.releasePointerCapture(N.pointerId),N.button===0&&N.ctrlKey===!1&&N.pointerType==="mouse"&&(M(N),N.preventDefault())}),onKeyDown:Re(o.onKeyDown,N=>{const E=y.current!=="";!(N.ctrlKey||N.altKey||N.metaKey)&&N.key.length===1&&x(N.key),!(E&&N.key===" ")&&gj.includes(N.key)&&(M(),N.preventDefault())})})})});$1.displayName=X1;var F1="SelectValue",K1=w.forwardRef((t,a)=>{const{__scopeSelect:i,className:l,style:o,children:u,placeholder:f="",...h}=t,g=fr(F1,i),{onValueNodeHasChildrenChange:p}=g,v=u!==void 0,y=lt(a,g.onValueNodeChange);return Tt(()=>{p(v)},[p,v]),m.jsx(Ue.span,{...h,ref:y,style:{pointerEvents:"none"},children:mw(g.value)?m.jsx(m.Fragment,{children:f}):u})});K1.displayName=F1;var Sj="SelectIcon",I1=w.forwardRef((t,a)=>{const{__scopeSelect:i,children:l,...o}=t;return m.jsx(Ue.span,{"aria-hidden":!0,...o,ref:a,children:l||"▼"})});I1.displayName=Sj;var Ej="SelectPortal",Z1=t=>m.jsx(fm,{asChild:!0,...t});Z1.displayName=Ej;var Fr="SelectContent",J1=w.forwardRef((t,a)=>{const i=fr(Fr,t.__scopeSelect),[l,o]=w.useState();if(Tt(()=>{o(new DocumentFragment)},[]),!i.open){const u=l;return u?gl.createPortal(m.jsx(W1,{scope:t.__scopeSelect,children:m.jsx(bu.Slot,{scope:t.__scopeSelect,children:m.jsx("div",{children:t.children})})}),u):null}return m.jsx(ew,{...t,ref:a})});J1.displayName=Fr;var En=10,[W1,dr]=Sl(Fr),Nj="SelectContentImpl",Tj=ks("SelectContent.RemoveScroll"),ew=w.forwardRef((t,a)=>{const{__scopeSelect:i,position:l="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:u,onPointerDownOutside:f,side:h,sideOffset:g,align:p,alignOffset:v,arrowPadding:y,collisionBoundary:x,collisionPadding:S,sticky:M,hideWhenDetached:N,avoidCollisions:E,...A}=t,z=fr(Fr,i),[R,H]=w.useState(null),[k,q]=w.useState(null),V=lt(a,W=>H(W)),[G,ae]=w.useState(null),[fe,B]=w.useState(null),ee=wu(i),[oe,C]=w.useState(!1),F=w.useRef(!1);w.useEffect(()=>{if(R)return zM(R)},[R]),cC();const _=w.useCallback(W=>{const[ce,...ge]=ee().map(Ee=>Ee.ref.current),[ye]=ge.slice(-1),Se=document.activeElement;for(const Ee of W)if(Ee===Se||(Ee==null||Ee.scrollIntoView({block:"nearest"}),Ee===ce&&k&&(k.scrollTop=0),Ee===ye&&k&&(k.scrollTop=k.scrollHeight),Ee==null||Ee.focus(),document.activeElement!==Se))return},[ee,k]),P=w.useCallback(()=>_([G,R]),[_,G,R]);w.useEffect(()=>{oe&&P()},[oe,P]);const{onOpenChange:L,triggerPointerDownPosRef:re}=z;w.useEffect(()=>{if(R){let W={x:0,y:0};const ce=ye=>{var Se,Ee;W={x:Math.abs(Math.round(ye.pageX)-(((Se=re.current)==null?void 0:Se.x)??0)),y:Math.abs(Math.round(ye.pageY)-(((Ee=re.current)==null?void 0:Ee.y)??0))}},ge=ye=>{W.x<=10&&W.y<=10?ye.preventDefault():R.contains(ye.target)||L(!1),document.removeEventListener("pointermove",ce),re.current=null};return re.current!==null&&(document.addEventListener("pointermove",ce),document.addEventListener("pointerup",ge,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ce),document.removeEventListener("pointerup",ge,{capture:!0})}}},[R,L,re]),w.useEffect(()=>{const W=()=>L(!1);return window.addEventListener("blur",W),window.addEventListener("resize",W),()=>{window.removeEventListener("blur",W),window.removeEventListener("resize",W)}},[L]);const[j,I]=pw(W=>{const ce=ee().filter(Se=>!Se.disabled),ge=ce.find(Se=>Se.ref.current===document.activeElement),ye=gw(ce,W,ge);ye&&setTimeout(()=>ye.ref.current.focus())}),le=w.useCallback((W,ce,ge)=>{const ye=!F.current&&!ge;(z.value!==void 0&&z.value===ce||ye)&&(ae(W),ye&&(F.current=!0))},[z.value]),Q=w.useCallback(()=>R==null?void 0:R.focus(),[R]),J=w.useCallback((W,ce,ge)=>{const ye=!F.current&&!ge;(z.value!==void 0&&z.value===ce||ye)&&B(W)},[z.value]),ue=l==="popper"?qh:tw,se=ue===qh?{side:h,sideOffset:g,align:p,alignOffset:v,arrowPadding:y,collisionBoundary:x,collisionPadding:S,sticky:M,hideWhenDetached:N,avoidCollisions:E}:{};return m.jsx(W1,{scope:i,content:R,viewport:k,onViewportChange:q,itemRefCallback:le,selectedItem:G,onItemLeave:Q,itemTextRefCallback:J,focusSelectedItem:P,selectedItemText:fe,position:l,isPositioned:oe,searchRef:j,children:m.jsx(Y1,{as:Tj,allowPinchZoom:!0,children:m.jsx(h1,{asChild:!0,trapped:z.open,onMountAutoFocus:W=>{W.preventDefault()},onUnmountAutoFocus:Re(o,W=>{var ce;(ce=z.trigger)==null||ce.focus({preventScroll:!0}),W.preventDefault()}),children:m.jsx(um,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:W=>W.preventDefault(),onDismiss:()=>z.onOpenChange(!1),children:m.jsx(ue,{role:"listbox",id:z.contentId,"data-state":z.open?"open":"closed",dir:z.dir,onContextMenu:W=>W.preventDefault(),...A,...se,onPlaced:()=>C(!0),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:Re(A.onKeyDown,W=>{const ce=W.ctrlKey||W.altKey||W.metaKey;if(W.key==="Tab"&&W.preventDefault(),!ce&&W.key.length===1&&I(W.key),["ArrowUp","ArrowDown","Home","End"].includes(W.key)){let ye=ee().filter(Se=>!Se.disabled).map(Se=>Se.ref.current);if(["ArrowUp","End"].includes(W.key)&&(ye=ye.slice().reverse()),["ArrowUp","ArrowDown"].includes(W.key)){const Se=W.target,Ee=ye.indexOf(Se);ye=ye.slice(Ee+1)}setTimeout(()=>_(ye)),W.preventDefault()}})})})})})})});ew.displayName=Nj;var _j="SelectItemAlignedPosition",tw=w.forwardRef((t,a)=>{const{__scopeSelect:i,onPlaced:l,...o}=t,u=fr(Fr,i),f=dr(Fr,i),[h,g]=w.useState(null),[p,v]=w.useState(null),y=lt(a,V=>v(V)),x=wu(i),S=w.useRef(!1),M=w.useRef(!0),{viewport:N,selectedItem:E,selectedItemText:A,focusSelectedItem:z}=f,R=w.useCallback(()=>{if(u.trigger&&u.valueNode&&h&&p&&N&&E&&A){const V=u.trigger.getBoundingClientRect(),G=p.getBoundingClientRect(),ae=u.valueNode.getBoundingClientRect(),fe=A.getBoundingClientRect();if(u.dir!=="rtl"){const Se=fe.left-G.left,Ee=ae.left-Se,Ae=V.left-Ee,Ke=V.width+Ae,Yt=Math.max(Ke,G.width),sn=window.innerWidth-En,st=b0(Ee,[En,Math.max(En,sn-Yt)]);h.style.minWidth=Ke+"px",h.style.left=st+"px"}else{const Se=G.right-fe.right,Ee=window.innerWidth-ae.right-Se,Ae=window.innerWidth-V.right-Ee,Ke=V.width+Ae,Yt=Math.max(Ke,G.width),sn=window.innerWidth-En,st=b0(Ee,[En,Math.max(En,sn-Yt)]);h.style.minWidth=Ke+"px",h.style.right=st+"px"}const B=x(),ee=window.innerHeight-En*2,oe=N.scrollHeight,C=window.getComputedStyle(p),F=parseInt(C.borderTopWidth,10),_=parseInt(C.paddingTop,10),P=parseInt(C.borderBottomWidth,10),L=parseInt(C.paddingBottom,10),re=F+_+oe+L+P,j=Math.min(E.offsetHeight*5,re),I=window.getComputedStyle(N),le=parseInt(I.paddingTop,10),Q=parseInt(I.paddingBottom,10),J=V.top+V.height/2-En,ue=ee-J,se=E.offsetHeight/2,W=E.offsetTop+se,ce=F+_+W,ge=re-ce;if(ce<=J){const Se=B.length>0&&E===B[B.length-1].ref.current;h.style.bottom="0px";const Ee=p.clientHeight-N.offsetTop-N.offsetHeight,Ae=Math.max(ue,se+(Se?Q:0)+Ee+P),Ke=ce+Ae;h.style.height=Ke+"px"}else{const Se=B.length>0&&E===B[0].ref.current;h.style.top="0px";const Ae=Math.max(J,F+N.offsetTop+(Se?le:0)+se)+ge;h.style.height=Ae+"px",N.scrollTop=ce-J+N.offsetTop}h.style.margin=`${En}px 0`,h.style.minHeight=j+"px",h.style.maxHeight=ee+"px",l==null||l(),requestAnimationFrame(()=>S.current=!0)}},[x,u.trigger,u.valueNode,h,p,N,E,A,u.dir,l]);Tt(()=>R(),[R]);const[H,k]=w.useState();Tt(()=>{p&&k(window.getComputedStyle(p).zIndex)},[p]);const q=w.useCallback(V=>{V&&M.current===!0&&(R(),z==null||z(),M.current=!1)},[R,z]);return m.jsx(Cj,{scope:i,contentWrapper:h,shouldExpandOnScrollRef:S,onScrollButtonChange:q,children:m.jsx("div",{ref:g,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:H},children:m.jsx(Ue.div,{...o,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});tw.displayName=_j;var Aj="SelectPopperPosition",qh=w.forwardRef((t,a)=>{const{__scopeSelect:i,align:l="start",collisionPadding:o=En,...u}=t,f=Su(i);return m.jsx(AM,{...f,...u,ref:a,align:l,collisionPadding:o,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});qh.displayName=Aj;var[Cj,zm]=Sl(Fr,{}),Ph="SelectViewport",nw=w.forwardRef((t,a)=>{const{__scopeSelect:i,nonce:l,...o}=t,u=dr(Ph,i),f=zm(Ph,i),h=lt(a,u.onViewportChange),g=w.useRef(0);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),m.jsx(bu.Slot,{scope:i,children:m.jsx(Ue.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Re(o.onScroll,p=>{const v=p.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:x}=f;if(x!=null&&x.current&&y){const S=Math.abs(g.current-v.scrollTop);if(S>0){const M=window.innerHeight-En*2,N=parseFloat(y.style.minHeight),E=parseFloat(y.style.height),A=Math.max(N,E);if(A<M){const z=A+S,R=Math.min(M,z),H=z-R;y.style.height=R+"px",y.style.bottom==="0px"&&(v.scrollTop=H>0?H:0,y.style.justifyContent="flex-end")}}}g.current=v.scrollTop})})})]})});nw.displayName=Ph;var aw="SelectGroup",[Mj,jj]=Sl(aw),Rj=w.forwardRef((t,a)=>{const{__scopeSelect:i,...l}=t,o=Fs();return m.jsx(Mj,{scope:i,id:o,children:m.jsx(Ue.div,{role:"group","aria-labelledby":o,...l,ref:a})})});Rj.displayName=aw;var rw="SelectLabel",iw=w.forwardRef((t,a)=>{const{__scopeSelect:i,...l}=t,o=jj(rw,i);return m.jsx(Ue.div,{id:o.id,...l,ref:a})});iw.displayName=rw;var tu="SelectItem",[Oj,lw]=Sl(tu),sw=w.forwardRef((t,a)=>{const{__scopeSelect:i,value:l,disabled:o=!1,textValue:u,...f}=t,h=fr(tu,i),g=dr(tu,i),p=h.value===l,[v,y]=w.useState(u??""),[x,S]=w.useState(!1),M=lt(a,z=>{var R;return(R=g.itemRefCallback)==null?void 0:R.call(g,z,l,o)}),N=Fs(),E=w.useRef("touch"),A=()=>{o||(h.onValueChange(l),h.onOpenChange(!1))};if(l==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return m.jsx(Oj,{scope:i,value:l,disabled:o,textId:N,isSelected:p,onItemTextChange:w.useCallback(z=>{y(R=>R||((z==null?void 0:z.textContent)??"").trim())},[]),children:m.jsx(bu.ItemSlot,{scope:i,value:l,disabled:o,textValue:v,children:m.jsx(Ue.div,{role:"option","aria-labelledby":N,"data-highlighted":x?"":void 0,"aria-selected":p&&x,"data-state":p?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...f,ref:M,onFocus:Re(f.onFocus,()=>S(!0)),onBlur:Re(f.onBlur,()=>S(!1)),onClick:Re(f.onClick,()=>{E.current!=="mouse"&&A()}),onPointerUp:Re(f.onPointerUp,()=>{E.current==="mouse"&&A()}),onPointerDown:Re(f.onPointerDown,z=>{E.current=z.pointerType}),onPointerMove:Re(f.onPointerMove,z=>{var R;E.current=z.pointerType,o?(R=g.onItemLeave)==null||R.call(g):E.current==="mouse"&&z.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Re(f.onPointerLeave,z=>{var R;z.currentTarget===document.activeElement&&((R=g.onItemLeave)==null||R.call(g))}),onKeyDown:Re(f.onKeyDown,z=>{var H;((H=g.searchRef)==null?void 0:H.current)!==""&&z.key===" "||(vj.includes(z.key)&&A(),z.key===" "&&z.preventDefault())})})})})});sw.displayName=tu;var Cs="SelectItemText",ow=w.forwardRef((t,a)=>{const{__scopeSelect:i,className:l,style:o,...u}=t,f=fr(Cs,i),h=dr(Cs,i),g=lw(Cs,i),p=wj(Cs,i),[v,y]=w.useState(null),x=lt(a,A=>y(A),g.onItemTextChange,A=>{var z;return(z=h.itemTextRefCallback)==null?void 0:z.call(h,A,g.value,g.disabled)}),S=v==null?void 0:v.textContent,M=w.useMemo(()=>m.jsx("option",{value:g.value,disabled:g.disabled,children:S},g.value),[g.disabled,g.value,S]),{onNativeOptionAdd:N,onNativeOptionRemove:E}=p;return Tt(()=>(N(M),()=>E(M)),[N,E,M]),m.jsxs(m.Fragment,{children:[m.jsx(Ue.span,{id:g.textId,...u,ref:x}),g.isSelected&&f.valueNode&&!f.valueNodeHasChildren?gl.createPortal(u.children,f.valueNode):null]})});ow.displayName=Cs;var cw="SelectItemIndicator",uw=w.forwardRef((t,a)=>{const{__scopeSelect:i,...l}=t;return lw(cw,i).isSelected?m.jsx(Ue.span,{"aria-hidden":!0,...l,ref:a}):null});uw.displayName=cw;var Vh="SelectScrollUpButton",zj=w.forwardRef((t,a)=>{const i=dr(Vh,t.__scopeSelect),l=zm(Vh,t.__scopeSelect),[o,u]=w.useState(!1),f=lt(a,l.onScrollButtonChange);return Tt(()=>{if(i.viewport&&i.isPositioned){let h=function(){const p=g.scrollTop>0;u(p)};const g=i.viewport;return h(),g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)}},[i.viewport,i.isPositioned]),o?m.jsx(fw,{...t,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:g}=i;h&&g&&(h.scrollTop=h.scrollTop-g.offsetHeight)}}):null});zj.displayName=Vh;var Gh="SelectScrollDownButton",Dj=w.forwardRef((t,a)=>{const i=dr(Gh,t.__scopeSelect),l=zm(Gh,t.__scopeSelect),[o,u]=w.useState(!1),f=lt(a,l.onScrollButtonChange);return Tt(()=>{if(i.viewport&&i.isPositioned){let h=function(){const p=g.scrollHeight-g.clientHeight,v=Math.ceil(g.scrollTop)<p;u(v)};const g=i.viewport;return h(),g.addEventListener("scroll",h),()=>g.removeEventListener("scroll",h)}},[i.viewport,i.isPositioned]),o?m.jsx(fw,{...t,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:g}=i;h&&g&&(h.scrollTop=h.scrollTop+g.offsetHeight)}}):null});Dj.displayName=Gh;var fw=w.forwardRef((t,a)=>{const{__scopeSelect:i,onAutoScroll:l,...o}=t,u=dr("SelectScrollButton",i),f=w.useRef(null),h=wu(i),g=w.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return w.useEffect(()=>()=>g(),[g]),Tt(()=>{var v;const p=h().find(y=>y.ref.current===document.activeElement);(v=p==null?void 0:p.ref.current)==null||v.scrollIntoView({block:"nearest"})},[h]),m.jsx(Ue.div,{"aria-hidden":!0,...o,ref:a,style:{flexShrink:0,...o.style},onPointerDown:Re(o.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(l,50))}),onPointerMove:Re(o.onPointerMove,()=>{var p;(p=u.onItemLeave)==null||p.call(u),f.current===null&&(f.current=window.setInterval(l,50))}),onPointerLeave:Re(o.onPointerLeave,()=>{g()})})}),kj="SelectSeparator",dw=w.forwardRef((t,a)=>{const{__scopeSelect:i,...l}=t;return m.jsx(Ue.div,{"aria-hidden":!0,...l,ref:a})});dw.displayName=kj;var Yh="SelectArrow",Lj=w.forwardRef((t,a)=>{const{__scopeSelect:i,...l}=t,o=Su(i),u=fr(Yh,i),f=dr(Yh,i);return u.open&&f.position==="popper"?m.jsx(CM,{...o,...l,ref:a}):null});Lj.displayName=Yh;var Uj="SelectBubbleInput",hw=w.forwardRef(({__scopeSelect:t,value:a,...i},l)=>{const o=w.useRef(null),u=lt(l,o),f=MM(a);return w.useEffect(()=>{const h=o.current;if(!h)return;const g=window.HTMLSelectElement.prototype,v=Object.getOwnPropertyDescriptor(g,"value").set;if(f!==a&&v){const y=new Event("change",{bubbles:!0});v.call(h,a),h.dispatchEvent(y)}},[f,a]),m.jsx(Ue.select,{...i,style:{...rb,...i.style},ref:u,defaultValue:a})});hw.displayName=Uj;function mw(t){return t===""||t===void 0}function pw(t){const a=xn(t),i=w.useRef(""),l=w.useRef(0),o=w.useCallback(f=>{const h=i.current+f;a(h),function g(p){i.current=p,window.clearTimeout(l.current),p!==""&&(l.current=window.setTimeout(()=>g(""),1e3))}(h)},[a]),u=w.useCallback(()=>{i.current="",window.clearTimeout(l.current)},[]);return w.useEffect(()=>()=>window.clearTimeout(l.current),[]),[i,o,u]}function gw(t,a,i){const o=a.length>1&&Array.from(a).every(p=>p===a[0])?a[0]:a,u=i?t.indexOf(i):-1;let f=Hj(t,Math.max(u,0));o.length===1&&(f=f.filter(p=>p!==i));const g=f.find(p=>p.textValue.toLowerCase().startsWith(o.toLowerCase()));return g!==i?g:void 0}function Hj(t,a){return t.map((i,l)=>t[(a+l)%t.length])}var Bj=Q1,vw=$1,qj=K1,Pj=I1,Vj=Z1,yw=J1,Gj=nw,xw=iw,bw=sw,Yj=ow,Qj=uw,ww=dw;const Sw=Bj,Ew=qj,Dm=w.forwardRef(({className:t,children:a,...i},l)=>m.jsxs(vw,{ref:l,className:Ye("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...i,children:[a,m.jsx(Pj,{asChild:!0,children:m.jsx(Ab,{className:"h-4 w-4 opacity-50"})})]}));Dm.displayName=vw.displayName;const km=w.forwardRef(({className:t,children:a,position:i="popper",...l},o)=>m.jsx(Vj,{children:m.jsx(yw,{ref:o,className:Ye("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",i==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:i,...l,children:m.jsx(Gj,{className:Ye("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a})})}));km.displayName=yw.displayName;const Xj=w.forwardRef(({className:t,...a},i)=>m.jsx(xw,{ref:i,className:Ye("py-1.5 pl-8 pr-2 text-sm font-thin",t),...a}));Xj.displayName=xw.displayName;const Xi=w.forwardRef(({className:t,children:a,...i},l)=>m.jsxs(bw,{ref:l,className:Ye("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...i,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(Qj,{children:m.jsx(MT,{className:"h-4 w-4"})})}),m.jsx(Yj,{children:a})]}));Xi.displayName=bw.displayName;const $j=w.forwardRef(({className:t,...a},i)=>m.jsx(ww,{ref:i,className:Ye("-mx-1 my-1 h-px bg-muted",t),...a}));$j.displayName=ww.displayName;const Lm=w.createContext(null);Lm.displayName="PanelGroupContext";const nn={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandleId:"data-panel-resize-handle-id"},Um=10,Ii=w.useLayoutEffect,B0=rm.useId,Fj=typeof B0=="function"?B0:()=>null;let Kj=0;function Nw(t=null){const a=Fj(),i=w.useRef(t||a||null);return i.current===null&&(i.current=""+Kj++),t??i.current}function Tw({children:t,className:a="",collapsedSize:i,collapsible:l,defaultSize:o,forwardedRef:u,id:f,maxSize:h,minSize:g,onCollapse:p,onExpand:v,onResize:y,order:x,style:S,tagName:M="div",...N}){const E=w.useContext(Lm);if(E===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:A,expandPanel:z,getPanelSize:R,getPanelStyle:H,groupId:k,isPanelCollapsed:q,reevaluatePanelConstraints:V,registerPanel:G,resizePanel:ae,unregisterPanel:fe}=E,B=Nw(f),ee=w.useRef({callbacks:{onCollapse:p,onExpand:v,onResize:y},constraints:{collapsedSize:i,collapsible:l,defaultSize:o,maxSize:h,minSize:g},id:B,idIsFromProps:f!==void 0,order:x});w.useRef({didLogMissingDefaultSizeWarning:!1}),Ii(()=>{const{callbacks:C,constraints:F}=ee.current,_={...F};ee.current.id=B,ee.current.idIsFromProps=f!==void 0,ee.current.order=x,C.onCollapse=p,C.onExpand=v,C.onResize=y,F.collapsedSize=i,F.collapsible=l,F.defaultSize=o,F.maxSize=h,F.minSize=g,(_.collapsedSize!==F.collapsedSize||_.collapsible!==F.collapsible||_.maxSize!==F.maxSize||_.minSize!==F.minSize)&&V(ee.current,_)}),Ii(()=>{const C=ee.current;return G(C),()=>{fe(C)}},[x,B,G,fe]),w.useImperativeHandle(u,()=>({collapse:()=>{A(ee.current)},expand:C=>{z(ee.current,C)},getId(){return B},getSize(){return R(ee.current)},isCollapsed(){return q(ee.current)},isExpanded(){return!q(ee.current)},resize:C=>{ae(ee.current,C)}}),[A,z,R,q,B,ae]);const oe=H(ee.current,o);return w.createElement(M,{...N,children:t,className:a,id:B,style:{...oe,...S},[nn.groupId]:k,[nn.panel]:"",[nn.panelCollapsible]:l||void 0,[nn.panelId]:B,[nn.panelSize]:parseFloat(""+oe.flexGrow).toFixed(1)})}const Ij=w.forwardRef((t,a)=>w.createElement(Tw,{...t,forwardedRef:a}));Tw.displayName="Panel";Ij.displayName="forwardRef(Panel)";function _w(t){return t.type==="keydown"}function Aw(t){return t.type.startsWith("pointer")}function Cw(t){return t.type.startsWith("mouse")}function Zj(t){if(Aw(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(Cw(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function Jj(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}const Wj=1,e3=2,t3=4,n3=8;Jj();let a3=new Map;function ch(t,a){a3.set(t,a)}function r3(){const[t,a]=w.useState(0);return w.useCallback(()=>a(i=>i+1),[])}function He(t,a){if(!t)throw console.error(a),Error(a)}function Kr(t,a,i=Um){return t.toFixed(i)===a.toFixed(i)?0:t>a?1:-1}function va(t,a,i=Um){return Kr(t,a,i)===0}function en(t,a,i){return Kr(t,a,i)===0}function i3(t,a,i){if(t.length!==a.length)return!1;for(let l=0;l<t.length;l++){const o=t[l],u=a[l];if(!en(o,u,i))return!1}return!0}function $i({panelConstraints:t,panelIndex:a,size:i}){const l=t[a];He(l!=null,`Panel constraints not found for index ${a}`);let{collapsedSize:o=0,collapsible:u,maxSize:f=100,minSize:h=0}=l;if(Kr(i,h)<0)if(u){const g=(o+h)/2;Kr(i,g)<0?i=o:i=h}else i=h;return i=Math.min(f,i),i=parseFloat(i.toFixed(Um)),i}function Ms({delta:t,initialLayout:a,panelConstraints:i,pivotIndices:l,prevLayout:o,trigger:u}){if(en(t,0))return a;const f=[...a],[h,g]=l;He(h!=null,"Invalid first pivot index"),He(g!=null,"Invalid second pivot index");let p=0;if(u==="keyboard"){{const y=t<0?g:h,x=i[y];He(x,`Panel constraints not found for index ${y}`);const{collapsedSize:S=0,collapsible:M,minSize:N=0}=x;if(M){const E=a[y];if(He(E!=null,`Previous layout not found for panel index ${y}`),en(E,S)){const A=N-E;Kr(A,Math.abs(t))>0&&(t=t<0?0-A:A)}}}{const y=t<0?h:g,x=i[y];He(x,`No panel constraints found for index ${y}`);const{collapsedSize:S=0,collapsible:M,minSize:N=0}=x;if(M){const E=a[y];if(He(E!=null,`Previous layout not found for panel index ${y}`),en(E,N)){const A=E-S;Kr(A,Math.abs(t))>0&&(t=t<0?0-A:A)}}}}{const y=t<0?1:-1;let x=t<0?g:h,S=0;for(;;){const N=a[x];He(N!=null,`Previous layout not found for panel index ${x}`);const A=$i({panelConstraints:i,panelIndex:x,size:100})-N;if(S+=A,x+=y,x<0||x>=i.length)break}const M=Math.min(Math.abs(t),Math.abs(S));t=t<0?0-M:M}{let x=t<0?h:g;for(;x>=0&&x<i.length;){const S=Math.abs(t)-Math.abs(p),M=a[x];He(M!=null,`Previous layout not found for panel index ${x}`);const N=M-S,E=$i({panelConstraints:i,panelIndex:x,size:N});if(!en(M,E)&&(p+=M-E,f[x]=E,p.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?x--:x++}}if(i3(o,f))return o;{const y=t<0?g:h,x=a[y];He(x!=null,`Previous layout not found for panel index ${y}`);const S=x+p,M=$i({panelConstraints:i,panelIndex:y,size:S});if(f[y]=M,!en(M,S)){let N=S-M,A=t<0?g:h;for(;A>=0&&A<i.length;){const z=f[A];He(z!=null,`Previous layout not found for panel index ${A}`);const R=z+N,H=$i({panelConstraints:i,panelIndex:A,size:R});if(en(z,H)||(N-=H-z,f[A]=H),en(N,0))break;t>0?A--:A++}}}const v=f.reduce((y,x)=>x+y,0);return en(v,100)?f:o}function l3({layout:t,panelsArray:a,pivotIndices:i}){let l=0,o=100,u=0,f=0;const h=i[0];He(h!=null,"No pivot index found"),a.forEach((y,x)=>{const{constraints:S}=y,{maxSize:M=100,minSize:N=0}=S;x===h?(l=N,o=M):(u+=N,f+=M)});const g=Math.min(o,100-u),p=Math.max(l,100-f),v=t[h];return{valueMax:g,valueMin:p,valueNow:v}}function nu(t,a=document){return Array.from(a.querySelectorAll(`[${nn.resizeHandleId}][data-panel-group-id="${t}"]`))}function s3(t,a,i=document){const o=nu(t,i).findIndex(u=>u.getAttribute(nn.resizeHandleId)===a);return o??null}function Mw(t,a,i){const l=s3(t,a,i);return l!=null?[l,l+1]:[-1,-1]}function o3(t){return t instanceof HTMLElement?!0:typeof t=="object"&&t!==null&&"tagName"in t&&"getAttribute"in t}function jw(t,a=document){if(o3(a)&&a.dataset.panelGroupId==t)return a;const i=a.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return i||null}function Hm(t,a=document){const i=a.querySelector(`[${nn.resizeHandleId}="${t}"]`);return i||null}function c3(t,a,i,l=document){var o,u,f,h;const g=Hm(a,l),p=nu(t,l),v=g?p.indexOf(g):-1,y=(o=(u=i[v])===null||u===void 0?void 0:u.id)!==null&&o!==void 0?o:null,x=(f=(h=i[v+1])===null||h===void 0?void 0:h.id)!==null&&f!==void 0?f:null;return[y,x]}function u3({committedValuesRef:t,eagerValuesRef:a,groupId:i,layout:l,panelDataArray:o,panelGroupElement:u,setLayout:f}){w.useRef({didWarnAboutMissingResizeHandle:!1}),Ii(()=>{if(!u)return;const h=nu(i,u);for(let g=0;g<o.length-1;g++){const{valueMax:p,valueMin:v,valueNow:y}=l3({layout:l,panelsArray:o,pivotIndices:[g,g+1]}),x=h[g];if(x!=null){const S=o[g];He(S,`No panel data found for index "${g}"`),x.setAttribute("aria-controls",S.id),x.setAttribute("aria-valuemax",""+Math.round(p)),x.setAttribute("aria-valuemin",""+Math.round(v)),x.setAttribute("aria-valuenow",y!=null?""+Math.round(y):"")}}return()=>{h.forEach((g,p)=>{g.removeAttribute("aria-controls"),g.removeAttribute("aria-valuemax"),g.removeAttribute("aria-valuemin"),g.removeAttribute("aria-valuenow")})}},[i,l,o,u]),w.useEffect(()=>{if(!u)return;const h=a.current;He(h,"Eager values not found");const{panelDataArray:g}=h,p=jw(i,u);He(p!=null,`No group found for id "${i}"`);const v=nu(i,u);He(v,`No resize handles found for group id "${i}"`);const y=v.map(x=>{const S=x.getAttribute(nn.resizeHandleId);He(S,"Resize handle element has no handle id attribute");const[M,N]=c3(i,S,g,u);if(M==null||N==null)return()=>{};const E=A=>{if(!A.defaultPrevented)switch(A.key){case"Enter":{A.preventDefault();const z=g.findIndex(R=>R.id===M);if(z>=0){const R=g[z];He(R,`No panel data found for index ${z}`);const H=l[z],{collapsedSize:k=0,collapsible:q,minSize:V=0}=R.constraints;if(H!=null&&q){const G=Ms({delta:en(H,k)?V-k:k-H,initialLayout:l,panelConstraints:g.map(ae=>ae.constraints),pivotIndices:Mw(i,S,u),prevLayout:l,trigger:"keyboard"});l!==G&&f(G)}}break}}};return x.addEventListener("keydown",E),()=>{x.removeEventListener("keydown",E)}});return()=>{y.forEach(x=>x())}},[u,t,a,i,l,o,f])}function q0(t,a){if(t.length!==a.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==a[i])return!1;return!0}function Rw(t,a){const i=t==="horizontal",{x:l,y:o}=Zj(a);return i?l:o}function f3(t,a,i,l,o){const u=i==="horizontal",f=Hm(a,o);He(f,`No resize handle element found for id "${a}"`);const h=f.getAttribute(nn.groupId);He(h,"Resize handle element has no group id attribute");let{initialCursorPosition:g}=l;const p=Rw(i,t),v=jw(h,o);He(v,`No group element found for id "${h}"`);const y=v.getBoundingClientRect(),x=u?y.width:y.height;return(p-g)/x*100}function d3(t,a,i,l,o,u){if(_w(t)){const f=i==="horizontal";let h=0;t.shiftKey?h=100:o!=null?h=o:h=10;let g=0;switch(t.key){case"ArrowDown":g=f?0:h;break;case"ArrowLeft":g=f?-h:0;break;case"ArrowRight":g=f?h:0;break;case"ArrowUp":g=f?0:-h;break;case"End":g=100;break;case"Home":g=-100;break}return g}else return l==null?0:f3(t,a,i,l,u)}function h3({panelDataArray:t}){const a=Array(t.length),i=t.map(u=>u.constraints);let l=0,o=100;for(let u=0;u<t.length;u++){const f=i[u];He(f,`Panel constraints not found for index ${u}`);const{defaultSize:h}=f;h!=null&&(l++,a[u]=h,o-=h)}for(let u=0;u<t.length;u++){const f=i[u];He(f,`Panel constraints not found for index ${u}`);const{defaultSize:h}=f;if(h!=null)continue;const g=t.length-l,p=o/g;l++,a[u]=p,o-=p}return a}function Vi(t,a,i){a.forEach((l,o)=>{const u=t[o];He(u,`Panel data not found for index ${o}`);const{callbacks:f,constraints:h,id:g}=u,{collapsedSize:p=0,collapsible:v}=h,y=i[g];if(y==null||l!==y){i[g]=l;const{onCollapse:x,onExpand:S,onResize:M}=f;M&&M(l,y),v&&(x||S)&&(S&&(y==null||va(y,p))&&!va(l,p)&&S(),x&&(y==null||!va(y,p))&&va(l,p)&&x())}})}function Mc(t,a){if(t.length!==a.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!=a[i])return!1;return!0}function m3({defaultSize:t,dragState:a,layout:i,panelData:l,panelIndex:o,precision:u=3}){const f=i[o];let h;return f==null?h=t!=null?t.toPrecision(u):"1":l.length===1?h="1":h=f.toPrecision(u),{flexBasis:0,flexGrow:h,flexShrink:1,overflow:"hidden",pointerEvents:a!==null?"none":void 0}}function p3(t,a=10){let i=null;return(...o)=>{i!==null&&clearTimeout(i),i=setTimeout(()=>{t(...o)},a)}}function P0(t){try{if(typeof localStorage<"u")t.getItem=a=>localStorage.getItem(a),t.setItem=(a,i)=>{localStorage.setItem(a,i)};else throw new Error("localStorage not supported in this environment")}catch(a){console.error(a),t.getItem=()=>null,t.setItem=()=>{}}}function Ow(t){return`react-resizable-panels:${t}`}function zw(t){return t.map(a=>{const{constraints:i,id:l,idIsFromProps:o,order:u}=a;return o?l:u?`${u}:${JSON.stringify(i)}`:JSON.stringify(i)}).sort((a,i)=>a.localeCompare(i)).join(",")}function Dw(t,a){try{const i=Ow(t),l=a.getItem(i);if(l){const o=JSON.parse(l);if(typeof o=="object"&&o!=null)return o}}catch{}return null}function g3(t,a,i){var l,o;const u=(l=Dw(t,i))!==null&&l!==void 0?l:{},f=zw(a);return(o=u[f])!==null&&o!==void 0?o:null}function v3(t,a,i,l,o){var u;const f=Ow(t),h=zw(a),g=(u=Dw(t,o))!==null&&u!==void 0?u:{};g[h]={expandToSizes:Object.fromEntries(i.entries()),layout:l};try{o.setItem(f,JSON.stringify(g))}catch(p){console.error(p)}}function V0({layout:t,panelConstraints:a}){const i=[...t],l=i.reduce((u,f)=>u+f,0);if(i.length!==a.length)throw Error(`Invalid ${a.length} panel layout: ${i.map(u=>`${u}%`).join(", ")}`);if(!en(l,100)&&i.length>0)for(let u=0;u<a.length;u++){const f=i[u];He(f!=null,`No layout data found for index ${u}`);const h=100/l*f;i[u]=h}let o=0;for(let u=0;u<a.length;u++){const f=i[u];He(f!=null,`No layout data found for index ${u}`);const h=$i({panelConstraints:a,panelIndex:u,size:f});f!=h&&(o+=f-h,i[u]=h)}if(!en(o,0))for(let u=0;u<a.length;u++){const f=i[u];He(f!=null,`No layout data found for index ${u}`);const h=f+o,g=$i({panelConstraints:a,panelIndex:u,size:h});if(f!==g&&(o-=g-f,i[u]=g,en(o,0)))break}return i}const y3=100,js={getItem:t=>(P0(js),js.getItem(t)),setItem:(t,a)=>{P0(js),js.setItem(t,a)}},G0={};function kw({autoSaveId:t=null,children:a,className:i="",direction:l,forwardedRef:o,id:u=null,onLayout:f=null,keyboardResizeBy:h=null,storage:g=js,style:p,tagName:v="div",...y}){const x=Nw(u),S=w.useRef(null),[M,N]=w.useState(null),[E,A]=w.useState([]),z=r3(),R=w.useRef({}),H=w.useRef(new Map),k=w.useRef(0),q=w.useRef({autoSaveId:t,direction:l,dragState:M,id:x,keyboardResizeBy:h,onLayout:f,storage:g}),V=w.useRef({layout:E,panelDataArray:[],panelDataArrayChanged:!1});w.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),w.useImperativeHandle(o,()=>({getId:()=>q.current.id,getLayout:()=>{const{layout:Q}=V.current;return Q},setLayout:Q=>{const{onLayout:J}=q.current,{layout:ue,panelDataArray:se}=V.current,W=V0({layout:Q,panelConstraints:se.map(ce=>ce.constraints)});q0(ue,W)||(A(W),V.current.layout=W,J&&J(W),Vi(se,W,R.current))}}),[]),Ii(()=>{q.current.autoSaveId=t,q.current.direction=l,q.current.dragState=M,q.current.id=x,q.current.onLayout=f,q.current.storage=g}),u3({committedValuesRef:q,eagerValuesRef:V,groupId:x,layout:E,panelDataArray:V.current.panelDataArray,setLayout:A,panelGroupElement:S.current}),w.useEffect(()=>{const{panelDataArray:Q}=V.current;if(t){if(E.length===0||E.length!==Q.length)return;let J=G0[t];J==null&&(J=p3(v3,y3),G0[t]=J);const ue=[...Q],se=new Map(H.current);J(t,ue,se,E,g)}},[t,E,g]),w.useEffect(()=>{});const G=w.useCallback(Q=>{const{onLayout:J}=q.current,{layout:ue,panelDataArray:se}=V.current;if(Q.constraints.collapsible){const W=se.map(Se=>Se.constraints),{collapsedSize:ce=0,panelSize:ge,pivotIndices:ye}=Or(se,Q,ue);if(He(ge!=null,`Panel size not found for panel "${Q.id}"`),!va(ge,ce)){H.current.set(Q.id,ge);const Ee=Yi(se,Q)===se.length-1?ge-ce:ce-ge,Ae=Ms({delta:Ee,initialLayout:ue,panelConstraints:W,pivotIndices:ye,prevLayout:ue,trigger:"imperative-api"});Mc(ue,Ae)||(A(Ae),V.current.layout=Ae,J&&J(Ae),Vi(se,Ae,R.current))}}},[]),ae=w.useCallback((Q,J)=>{const{onLayout:ue}=q.current,{layout:se,panelDataArray:W}=V.current;if(Q.constraints.collapsible){const ce=W.map(Ke=>Ke.constraints),{collapsedSize:ge=0,panelSize:ye=0,minSize:Se=0,pivotIndices:Ee}=Or(W,Q,se),Ae=J??Se;if(va(ye,ge)){const Ke=H.current.get(Q.id),Yt=Ke!=null&&Ke>=Ae?Ke:Ae,st=Yi(W,Q)===W.length-1?ye-Yt:Yt-ye,pt=Ms({delta:st,initialLayout:se,panelConstraints:ce,pivotIndices:Ee,prevLayout:se,trigger:"imperative-api"});Mc(se,pt)||(A(pt),V.current.layout=pt,ue&&ue(pt),Vi(W,pt,R.current))}}},[]),fe=w.useCallback(Q=>{const{layout:J,panelDataArray:ue}=V.current,{panelSize:se}=Or(ue,Q,J);return He(se!=null,`Panel size not found for panel "${Q.id}"`),se},[]),B=w.useCallback((Q,J)=>{const{panelDataArray:ue}=V.current,se=Yi(ue,Q);return m3({defaultSize:J,dragState:M,layout:E,panelData:ue,panelIndex:se})},[M,E]),ee=w.useCallback(Q=>{const{layout:J,panelDataArray:ue}=V.current,{collapsedSize:se=0,collapsible:W,panelSize:ce}=Or(ue,Q,J);return He(ce!=null,`Panel size not found for panel "${Q.id}"`),W===!0&&va(ce,se)},[]),oe=w.useCallback(Q=>{const{layout:J,panelDataArray:ue}=V.current,{collapsedSize:se=0,collapsible:W,panelSize:ce}=Or(ue,Q,J);return He(ce!=null,`Panel size not found for panel "${Q.id}"`),!W||Kr(ce,se)>0},[]),C=w.useCallback(Q=>{const{panelDataArray:J}=V.current;J.push(Q),J.sort((ue,se)=>{const W=ue.order,ce=se.order;return W==null&&ce==null?0:W==null?-1:ce==null?1:W-ce}),V.current.panelDataArrayChanged=!0,z()},[z]);Ii(()=>{if(V.current.panelDataArrayChanged){V.current.panelDataArrayChanged=!1;const{autoSaveId:Q,onLayout:J,storage:ue}=q.current,{layout:se,panelDataArray:W}=V.current;let ce=null;if(Q){const ye=g3(Q,W,ue);ye&&(H.current=new Map(Object.entries(ye.expandToSizes)),ce=ye.layout)}ce==null&&(ce=h3({panelDataArray:W}));const ge=V0({layout:ce,panelConstraints:W.map(ye=>ye.constraints)});q0(se,ge)||(A(ge),V.current.layout=ge,J&&J(ge),Vi(W,ge,R.current))}}),Ii(()=>{const Q=V.current;return()=>{Q.layout=[]}},[]);const F=w.useCallback(Q=>{let J=!1;const ue=S.current;return ue&&window.getComputedStyle(ue,null).getPropertyValue("direction")==="rtl"&&(J=!0),function(W){W.preventDefault();const ce=S.current;if(!ce)return()=>null;const{direction:ge,dragState:ye,id:Se,keyboardResizeBy:Ee,onLayout:Ae}=q.current,{layout:Ke,panelDataArray:Yt}=V.current,{initialLayout:sn}=ye??{},st=Mw(Se,Q,ce);let pt=d3(W,Q,ge,ye,Ee,ce);const On=ge==="horizontal";On&&J&&(pt=-pt);const to=Yt.map(ao=>ao.constraints),zn=Ms({delta:pt,initialLayout:sn??Ke,panelConstraints:to,pivotIndices:st,prevLayout:Ke,trigger:_w(W)?"keyboard":"mouse-or-touch"}),no=!Mc(Ke,zn);(Aw(W)||Cw(W))&&k.current!=pt&&(k.current=pt,!no&&pt!==0?On?ch(Q,pt<0?Wj:e3):ch(Q,pt<0?t3:n3):ch(Q,0)),no&&(A(zn),V.current.layout=zn,Ae&&Ae(zn),Vi(Yt,zn,R.current))}},[]),_=w.useCallback((Q,J)=>{const{onLayout:ue}=q.current,{layout:se,panelDataArray:W}=V.current,ce=W.map(Ke=>Ke.constraints),{panelSize:ge,pivotIndices:ye}=Or(W,Q,se);He(ge!=null,`Panel size not found for panel "${Q.id}"`);const Ee=Yi(W,Q)===W.length-1?ge-J:J-ge,Ae=Ms({delta:Ee,initialLayout:se,panelConstraints:ce,pivotIndices:ye,prevLayout:se,trigger:"imperative-api"});Mc(se,Ae)||(A(Ae),V.current.layout=Ae,ue&&ue(Ae),Vi(W,Ae,R.current))},[]),P=w.useCallback((Q,J)=>{const{layout:ue,panelDataArray:se}=V.current,{collapsedSize:W=0,collapsible:ce}=J,{collapsedSize:ge=0,collapsible:ye,maxSize:Se=100,minSize:Ee=0}=Q.constraints,{panelSize:Ae}=Or(se,Q,ue);Ae!=null&&(ce&&ye&&va(Ae,W)?va(W,ge)||_(Q,ge):Ae<Ee?_(Q,Ee):Ae>Se&&_(Q,Se))},[_]),L=w.useCallback((Q,J)=>{const{direction:ue}=q.current,{layout:se}=V.current;if(!S.current)return;const W=Hm(Q,S.current);He(W,`Drag handle element not found for id "${Q}"`);const ce=Rw(ue,J);N({dragHandleId:Q,dragHandleRect:W.getBoundingClientRect(),initialCursorPosition:ce,initialLayout:se})},[]),re=w.useCallback(()=>{N(null)},[]),j=w.useCallback(Q=>{const{panelDataArray:J}=V.current,ue=Yi(J,Q);ue>=0&&(J.splice(ue,1),delete R.current[Q.id],V.current.panelDataArrayChanged=!0,z())},[z]),I=w.useMemo(()=>({collapsePanel:G,direction:l,dragState:M,expandPanel:ae,getPanelSize:fe,getPanelStyle:B,groupId:x,isPanelCollapsed:ee,isPanelExpanded:oe,reevaluatePanelConstraints:P,registerPanel:C,registerResizeHandle:F,resizePanel:_,startDragging:L,stopDragging:re,unregisterPanel:j,panelGroupElement:S.current}),[G,M,l,ae,fe,B,x,ee,oe,P,C,F,_,L,re,j]),le={display:"flex",flexDirection:l==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return w.createElement(Lm.Provider,{value:I},w.createElement(v,{...y,children:a,className:i,id:u,ref:S,style:{...le,...p},[nn.group]:"",[nn.groupDirection]:l,[nn.groupId]:x}))}const x3=w.forwardRef((t,a)=>w.createElement(kw,{...t,forwardedRef:a}));kw.displayName="PanelGroup";x3.displayName="forwardRef(PanelGroup)";function Yi(t,a){return t.findIndex(i=>i===a||i.id===a.id)}function Or(t,a,i){const l=Yi(t,a),u=l===t.length-1?[l-1,l]:[l,l+1],f=i[l];return{...a.constraints,panelSize:f,pivotIndices:u}}const b3=async()=>{const t=await fetch("http://localhost:3333/api/bundles");if(!t.ok)throw new Error("Failed to fetch bundles");return t.json()},Y0=t=>{const a={name:"",path:"",type:"directory",children:[]},i=new Set,l=new Map;t.forEach(u=>{u.files.forEach(f=>{i.add(f),l.has(f)||l.set(f,[]),l.get(f).push(u.name)})}),i.forEach(u=>{const f=u.split("/");let h=a;f.forEach((g,p)=>{const v=p===f.length-1,y=f.slice(0,p+1).join("/");h.children||(h.children=[]);let x=h.children.find(S=>S.name===g);x||(x={name:g,path:y,type:v?"file":"directory",children:v?void 0:[],bundles:v?l.get(u):void 0},h.children.push(x)),v||(h=x)})});const o=u=>{u.children&&(u.children.sort((f,h)=>f.type!==h.type?f.type==="directory"?-1:1:f.name.localeCompare(h.name)),u.children.forEach(o))};return o(a),a},w3=t=>{if(t===0)return"0 B";const a=1024,i=["B","KB","MB","GB"],l=Math.floor(Math.log(t)/Math.log(a));return parseFloat((t/Math.pow(a,l)).toFixed(1))+" "+i[l]};function Lw({node:t,level:a,expandedDirs:i,onToggleDir:l}){const o=i.has(t.path),u=a*16;if(t.type==="directory")return m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-2 py-1 px-2 hover:bg-muted/50 rounded cursor-pointer",style:{paddingLeft:`${u+8}px`},onClick:()=>l(t.path),children:[o?m.jsx(Ab,{className:"w-4 h-4 text-muted-foreground"}):m.jsx(OT,{className:"w-4 h-4 text-muted-foreground"}),o?m.jsx(e_,{className:"w-4 h-4 text-[color:var(--color-info)]"}):m.jsx(n_,{className:"w-4 h-4 text-[color:var(--color-info)]"}),m.jsx("span",{className:"text-xs font-thin",children:t.name}),t.children&&m.jsxs("span",{className:"text-xs text-muted-foreground ml-auto",children:[t.children.length," items"]})]}),o&&t.children&&m.jsx("div",{children:t.children.map(h=>m.jsx(Lw,{node:h,level:a+1,expandedDirs:i,onToggleDir:l},h.path))})]});const f=h=>{var v;const g=(v=h.split(".").pop())==null?void 0:v.toLowerCase(),p="w-4 h-4";switch(g){case"js":case"ts":case"jsx":case"tsx":return m.jsx(Ui,{className:`${p} text-[color:var(--color-warning)]`});case"json":return m.jsx(Ui,{className:`${p} text-[color:var(--color-success)]`});case"md":return m.jsx(Ui,{className:`${p} text-[color:var(--color-info)]/80`});case"css":case"scss":return m.jsx(Ui,{className:`${p} text-[color:var(--color-type-styles)]`});case"html":return m.jsx(Ui,{className:`${p} text-[color:var(--color-type-configuration)]`});default:return m.jsx(Ui,{className:`${p} text-muted-foreground`})}};return m.jsxs("div",{className:"flex items-center gap-2 py-1 px-2 hover:bg-muted/50 rounded",style:{paddingLeft:`${u+24}px`},children:[f(t.name),m.jsx("span",{className:"text-xs font-mono",children:t.name}),t.bundles&&t.bundles.length>0&&m.jsx("div",{className:"flex gap-1 ml-2",children:t.bundles.map(h=>m.jsx(We,{variant:"outline",className:"text-xs px-1 py-0 h-4",children:h},h))}),t.size&&m.jsx("span",{className:"text-xs text-muted-foreground ml-auto",children:w3(t.size)})]})}function S3(){const[t,a]=w.useState(new Set([""])),{data:i,isLoading:l}=or({queryKey:["bundles"],queryFn:b3,refetchInterval:5e3}),o=p=>{const v=new Set(t);v.has(p)?v.delete(p):v.add(p),a(v)},u=()=>{if(!i)return;const p=Y0(i),v=new Set,y=x=>{var S;x.type==="directory"&&(v.add(x.path),(S=x.children)==null||S.forEach(y))};y(p),a(v)},f=()=>{a(new Set([""]))};if(l)return m.jsx("div",{children:"Loading file tree..."});if(!i)return m.jsx("div",{children:"No bundles found"});const h=Y0(i),g=i.reduce((p,v)=>p+v.files.length,0);return m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex gap-1",children:[m.jsx(mt,{variant:"outline",size:"sm",className:"h-7 text-xs",onClick:u,children:"Expand All"}),m.jsx(mt,{variant:"outline",size:"sm",className:"h-7 text-xs",onClick:f,children:"Collapse All"})]}),m.jsxs("div",{className:"text-xs text-muted-foreground font-thin",children:[g," files tracked"]})]}),m.jsx(at,{className:"p-4",children:m.jsx("div",{className:"space-y-1 max-h-96 overflow-y-auto",children:h.children&&h.children.length>0?h.children.map(p=>m.jsx(Lw,{node:p,level:0,expandedDirs:t,onToggleDir:o},p.path)):m.jsx("div",{className:"text-center text-muted-foreground py-8",children:"No files found"})})}),m.jsxs(at,{className:"p-4",children:[m.jsx("h3",{className:"text-xs font-thin mb-2",children:"Bundle Legend"}),m.jsx("div",{className:"flex flex-wrap gap-2",children:i.map(p=>m.jsxs(We,{variant:"outline",children:[p.name," (",p.files.length,")"]},p.name))})]})]})}const E3=()=>m.jsxs(at,{children:[m.jsxs(Dt,{children:[m.jsxs(Vt,{className:"flex items-center gap-2",children:[m.jsx(zb,{className:"w-4 h-4"}),"Project Files"]}),m.jsx("p",{className:"text-sm text-muted-foreground",children:"Browse and explore all files in your project with bundle information."})]}),m.jsx(bt,{children:m.jsx(S3,{})})]});function Uw({className:t,type:a,...i}){return m.jsx("input",{type:a,"data-slot":"input",className:Ye("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-thin disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...i})}const N3=async()=>{const t=await fetch("http://localhost:3333/api/bundles");if(!t.ok)throw new Error("Failed to fetch bundles");return t.json()},T3=async()=>{const t=await fetch("http://localhost:3333/api/files");if(!t.ok)throw new Error("Failed to fetch files");return(await t.json()).map(i=>i.path)};function _3(){const t=Xs(),[a,i]=w.useState(null),[l,o]=w.useState(new Set),[u,f]=w.useState(new Set),[h,g]=w.useState(null),[p,v]=w.useState(new Map),[y,x]=w.useState(!1);sC();const{data:S=[],isLoading:M,isFetching:N,dataUpdatedAt:E}=or({queryKey:["bundles"],queryFn:N3,refetchInterval:5e3,refetchOnWindowFocus:!0}),{data:A=[],isFetching:z,dataUpdatedAt:R}=or({queryKey:["allFiles"],queryFn:T3,refetchInterval:3e4,refetchOnWindowFocus:!0});w.useEffect(()=>{const q=Math.max(E,R);q>0&&g(new Date(q))},[E,R]),w.useEffect(()=>{const q=new WebSocket("ws://localhost:3333");return q.onopen=()=>{console.log("Bundle updates WebSocket connected")},q.onmessage=V=>{try{const G=JSON.parse(V.data);switch(console.log("WebSocket message received:",G),G.type){case"bundle-sync-started":v(ae=>new Map(ae).set(G.bundleName,{changed:!0,lastSync:new Date(G.timestamp)})),Nt.info(`Syncing ${G.bundleName}`);break;case"bundle-sync-completed":v(ae=>new Map(ae).set(G.bundleName,{changed:!1,lastSync:new Date(G.timestamp)})),Nt.success(`Synced ${G.bundleName}`),t.invalidateQueries({queryKey:["bundles"]});break;case"bundle-sync-failed":v(ae=>new Map(ae).set(G.bundleName,{changed:!0,lastSync:new Date(G.timestamp)})),Nt.error(`Sync failed for ${G.bundleName}`,G.error);break;case"bundle-file-changed":v(ae=>new Map(ae).set(G.bundleName,{changed:!0,lastSync:new Date(G.timestamp)}));break}}catch(G){console.error("Error parsing bundle update:",G)}},q.onclose=()=>{console.log("Bundle updates WebSocket disconnected")},q.onerror=V=>{console.error("Bundle updates WebSocket error:",V)},()=>{q.close()}},[t]);const H=w.useCallback(q=>{i(a===q?null:q)},[a]),k=w.useMemo(()=>S.map(q=>{const V=p.get(q.name);return{...q,changed:(V==null?void 0:V.changed)??q.changed,lastSync:V==null?void 0:V.lastSync}}),[S,p]);return M?m.jsx("div",{children:"Loading bundles..."}):S?m.jsxs("div",{className:"h-full flex flex-col relative",children:[m.jsxs(Is,{defaultValue:"bundles",className:"w-full flex-1 flex flex-col min-h-0",children:[m.jsxs(Zs,{className:"grid w-full grid-cols-3 bg-background",children:[m.jsxs(an,{value:"bundles",className:"flex items-center gap-2",children:[m.jsx(jh,{className:"w-4 h-4 text-muted-foreground/75"}),"Bundles"]}),m.jsxs(an,{value:"files",className:"flex items-center gap-2",children:[m.jsx(zb,{className:"w-4 h-4 text-muted-foreground/75"}),"Project Files"]}),m.jsxs(an,{value:"analysis",className:"flex items-center gap-2",children:[m.jsx(f0,{className:"w-4 h-4 text-muted-foreground/75"}),"File Analysis"]})]}),m.jsx(yn,{value:"bundles",className:"flex-1 overflow-y-auto",children:m.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:k&&Array.isArray(k)?k.map(q=>m.jsx(oC,{bundle:q,isSelected:a===q.name,onSelect:H,lastRefresh:h||void 0},q.name)):m.jsx("div",{children:"No bundles available"})})}),m.jsx(yn,{value:"files",className:"space-y-4",children:m.jsx(E3,{})}),m.jsx(yn,{value:"analysis",className:"space-y-4",children:m.jsxs("div",{className:"text-center py-12 text-muted-foreground",children:[m.jsx(f0,{className:"w-12 h-12 mx-auto mb-4 opacity-20"}),m.jsx("p",{className:"text-sm font-thin uppercase tracking-widest",children:"Semantic Analysis Active"}),m.jsx("p",{className:"text-xs mt-2 opacity-50",children:"Viewing automated context mapping..."})]})})]}),a&&(()=>{var V;const q=S.find(G=>G.name===a);return q?m.jsxs("div",{className:"fixed top-0 left-0 right-0 bottom-10 z-50 bg-background flex flex-col",children:[m.jsxs("div",{className:"sticky top-0 bg-background border-b p-4 flex justify-between items-center flex-shrink-0",children:[m.jsxs("h3",{className:"font-thin text-sm flex items-center gap-2",children:[m.jsx(jh,{className:"w-4 h-4 text-muted-foreground"}),a," Details"]}),m.jsx(mt,{variant:"ghost",size:"sm",onClick:()=>i(null),children:m.jsx(ym,{className:"w-4 h-4"})})]}),m.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto p-6",children:m.jsxs("div",{className:"space-y-4",children:[m.jsx("h4",{className:"text-xs font-thin uppercase tracking-widest color-vesper-muted",children:"Included Files"}),m.jsx("ul",{className:"list-none pl-0 space-y-1",children:(V=q.files)==null?void 0:V.map(G=>m.jsx("li",{className:"text-xs font-thin mono py-1 border-b border-vesper/50",children:G},G))})]})})]}):null})()]}):m.jsx("div",{children:"No bundles found"})}const A3=mu("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function C3({className:t,variant:a,...i}){return m.jsx("div",{"data-slot":"alert",role:"alert",className:Ye(A3({variant:a}),t),...i})}function M3({className:t,...a}){return m.jsx("div",{"data-slot":"alert-description",className:Ye("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",t),...a})}const Q0=[{path:"/api/status",method:"GET",description:"Server status and health"},{path:"/api/bundles",method:"GET",description:"List all bundles"},{path:"/api/config",method:"GET",description:"Get bundle configuration"},{path:"/api/files",method:"GET",description:"Get file tree"},{path:"/api/semantic-chunks",method:"GET",description:"Get semantic analysis"},{path:"/api/vector-db/status",method:"GET",description:"Vector database status"},{path:"/api/mcp-status",method:"GET",description:"MCP server status"}],Gi=[{name:"list_bundles",description:"List all available file bundles",group:"Bundle Management"},{name:"get_bundle",description:"Get the content of a specific bundle",group:"Bundle Management"},{name:"generate_bundle",description:"Regenerate a specific bundle",group:"Bundle Management"},{name:"create_bundle",description:"Create a new bundle with specified patterns",group:"Bundle Management"},{name:"update_bundle",description:"Update an existing bundle's patterns",group:"Bundle Management"},{name:"delete_bundle",description:"Delete an existing bundle",group:"Bundle Management"},{name:"get_file_tree",description:"Get the project file tree",group:"Project Exploration"},{name:"get_project_status",description:"Get current project status and bundle information",group:"Project Exploration"},{name:"update_cntxignore",description:"Update the .cntxignore file with new ignore patterns",group:"Project Exploration"},{name:"get_semantic_chunks",description:"Get function-level semantic chunks from the codebase",group:"Semantic Analysis"},{name:"get_semantic_chunks_filtered",description:"Get semantic chunks filtered by purpose, type, complexity, or bundle",group:"Semantic Analysis"},{name:"analyze_bundle_suggestions",description:"Analyze codebase and suggest optimal bundle organization",group:"Semantic Analysis"},{name:"read_file",description:"Read contents of a specific file with bundle context and metadata",group:"File Operations"},{name:"write_file",description:"Write content to a file with validation and safety checks",group:"File Operations"}],j3=async()=>{const t=await fetch("http://localhost:3333/api/status");if(!t.ok)throw new Error("Failed to fetch server status");return t.json()},R3=async t=>{const a=Date.now();try{const i=await fetch(`http://localhost:3333${t.path}`),l=Date.now()-a;return i.ok?{...t,status:"success",responseTime:l}:{...t,status:"error",responseTime:l,error:`HTTP ${i.status}`}}catch(i){const l=Date.now()-a;return{...t,status:"error",responseTime:l,error:i instanceof Error?i.message:"Unknown error"}}},O3=async t=>{try{const a=await fetch("http://localhost:3333/api/mcp-status");return a.ok?(await a.json()).enabled?{...t,status:"available"}:{...t,status:"error",error:"MCP server not enabled"}:{...t,status:"error",error:"MCP status unavailable"}}catch(a){return{...t,status:"error",error:a instanceof Error?a.message:"Unknown error"}}};function z3(){var k,q,V,G,ae,fe;const[t,a]=w.useState([]),[i,l]=w.useState([]),[o,u]=w.useState(!1),[f,h]=w.useState("All"),{data:g,isLoading:p,error:v,refetch:y}=or({queryKey:["server-status"],queryFn:j3,refetchInterval:5e3}),x=async()=>{u(!0);try{const B=await Promise.all(Q0.map(ee=>R3(ee)));a(B)}catch(B){console.error("Failed to run endpoint tests:",B)}finally{u(!1)}},S=async()=>{u(!0);try{const B=await Promise.all(Gi.map(ee=>O3(ee)));l(B)}catch(B){console.error("Failed to run MCP tests:",B)}finally{u(!1)}},M=B=>{if(B<60)return`${Math.floor(B)}s`;if(B<3600)return`${Math.floor(B/60)}m ${Math.floor(B%60)}s`;const ee=Math.floor(B/3600),oe=Math.floor(B%3600/60);return`${ee}h ${oe}m`},N=B=>{const ee=B/1024/1024;return`${Math.round(ee)}MB`},E=()=>["All",...new Set(Gi.map(ee=>ee.group))],A=()=>f==="All"?Gi:Gi.filter(B=>B.group===f),z=()=>A().reduce((oe,C)=>(oe[C.group]||(oe[C.group]=[]),oe[C.group].push(C),oe),{}),R=(B,ee)=>{var oe,C,F,_,P;if(typeof B=="string")return B.length>100?B.substring(0,100)+"...":B;if(Array.isArray(B))return`Array with ${B.length} items`;if(typeof B=="object"&&B!==null){const L=Object.keys(B);if(ee.includes("/api/status"))return`Uptime: ${Math.floor(B.uptime||0)}s, Memory: ${Math.round((((oe=B.memory)==null?void 0:oe.heapUsed)||0)/1024/1024)}MB, Files: ${B.totalFiles||0}`;if(ee.includes("/api/bundles"))return`${B.length||L.length} bundles found`;if(ee.includes("/api/semantic-chunks"))return`${((C=B.chunks)==null?void 0:C.length)||0} chunks, ${((F=B.summary)==null?void 0:F.totalFunctions)||0} functions`;if(ee.includes("/api/vector-db/status"))return`${((_=B.stats)==null?void 0:_.totalChunks)||0} chunks indexed with ${((P=B.stats)==null?void 0:P.modelName)||"unknown model"}`;const re=L.slice(0,3).map(j=>{const I=B[j];return typeof I=="object"?`${j}: ${Array.isArray(I)?`[${I.length}]`:"{object}"}`:`${j}: ${String(I).substring(0,20)}`}).join(", ");return L.length>3?`${re}... (+${L.length-3} more)`:re}return String(B).substring(0,100)},H=async B=>{const ee=Date.now();try{const oe=await fetch(`http://localhost:3333${B.path}`),C=Date.now()-ee;if(oe.ok){const F=await oe.json(),_=R(F,B.path);Nt.success(`${B.path} (${C}ms)`,_)}else Nt.error(`${B.path} failed`,`HTTP ${oe.status} (${C}ms)`)}catch(oe){const C=Date.now()-ee;Nt.error(`${B.path} error`,`${oe instanceof Error?oe.message:"Unknown error"} (${C}ms)`)}};return p?m.jsx(at,{children:m.jsx(bt,{className:"pt-6",children:m.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[m.jsx(Rh,{className:"w-4 h-4 animate-spin"}),"Checking system status..."]})})}):v?m.jsx(at,{children:m.jsx(bt,{className:"p-4",children:m.jsxs("div",{className:"text-center space-y-2",children:[m.jsx(_s,{className:"h-6 w-6 mx-auto text-red-500"}),m.jsx("p",{className:"text-sm font-medium",children:"Failed to connect to server"}),m.jsx("p",{className:"text-xs text-muted-foreground",children:"Make sure the cntx-ui server is running on localhost:3333"}),m.jsxs(mt,{variant:"outline",size:"sm",onClick:()=>y(),children:[m.jsx(Rh,{className:"w-4 h-4 mr-2"}),"Retry"]})]})})}):m.jsxs("div",{className:"space-y-4",children:[m.jsxs(at,{children:[m.jsx(Dt,{children:m.jsxs(Vt,{className:"flex items-center gap-2",children:[m.jsx(S_,{className:"w-5 h-5"}),"Server Status",m.jsx(Qi,{className:"w-4 h-4 text-green-600"})]})}),m.jsxs(bt,{children:[m.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-sm",children:[m.jsxs("div",{children:[m.jsx("div",{className:"text-muted-foreground",children:"Uptime"}),m.jsx("div",{className:"font-medium",children:M((g==null?void 0:g.uptime)||0)})]}),m.jsxs("div",{children:[m.jsx("div",{className:"text-muted-foreground",children:"Memory"}),m.jsx("div",{className:"font-medium",children:N(((k=g==null?void 0:g.memory)==null?void 0:k.heapUsed)||0)})]}),m.jsxs("div",{children:[m.jsx("div",{className:"text-muted-foreground",children:"Total Files"}),m.jsx("div",{className:"font-medium",children:(g==null?void 0:g.totalFiles)||0})]}),m.jsxs("div",{children:[m.jsx("div",{className:"text-muted-foreground",children:"Bundles"}),m.jsx("div",{className:"font-medium",children:((q=g==null?void 0:g.bundles)==null?void 0:q.length)||0})]})]}),m.jsxs("div",{className:"mt-4 flex flex-wrap gap-2",children:[m.jsx(We,{variant:g!=null&&g.scanning?"destructive":"secondary",children:g!=null&&g.scanning?"Scanning":"Idle"}),m.jsxs(We,{variant:(V=g==null?void 0:g.mcp)!=null&&V.enabled?"default":"secondary",children:["MCP: ",(G=g==null?void 0:g.mcp)!=null&&G.enabled?"Enabled":"Disabled"]})]})]})]}),m.jsxs(Is,{defaultValue:"endpoints",className:"w-full",children:[m.jsxs(Zs,{className:"grid w-full grid-cols-3",children:[m.jsxs(an,{value:"endpoints",className:"flex items-center gap-2",children:[m.jsx(vm,{className:"w-4 h-4"}),"API Endpoints"]}),m.jsxs(an,{value:"mcp",className:"flex items-center gap-2",children:[m.jsx(xm,{className:"w-4 h-4"}),"MCP Tools"]}),m.jsxs(an,{value:"bundle-sync",className:"flex items-center gap-2",children:[m.jsx(Ic,{className:"w-4 h-4"}),"Bundle Sync"]})]}),m.jsx(yn,{value:"endpoints",className:"space-y-4",children:m.jsxs(at,{children:[m.jsx(Dt,{children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx(Vt,{className:"text-lg",children:"API Endpoints"}),m.jsxs(mt,{onClick:x,disabled:o,size:"sm",variant:"outline",children:[m.jsx(d0,{className:"w-4 h-4 mr-2"}),o?"Testing...":"Test All"]})]})}),m.jsx(bt,{children:m.jsx("div",{className:"space-y-2",children:Q0.map(B=>{const ee=t.find(oe=>oe.path===B.path);return m.jsxs("div",{className:"flex items-center justify-between py-2 px-3 bg-muted/30 rounded-lg",children:[m.jsxs("div",{className:"flex-1",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(We,{variant:"outline",className:"text-xs",children:B.method}),m.jsx("code",{className:"text-sm",children:B.path})]}),m.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:B.description})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(mt,{variant:"ghost",size:"sm",onClick:()=>H(B),className:"h-7 w-7 p-0",title:`Test ${B.path}`,children:m.jsx(Mb,{className:"w-3 h-3"})}),ee&&m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:"text-xs text-muted-foreground",children:[ee.responseTime,"ms"]}),ee.status==="success"?m.jsx(Qi,{className:"w-4 h-4 text-green-600"}):ee.status==="error"?m.jsx("div",{title:ee.error,children:m.jsx(_s,{className:"w-4 h-4 text-red-600"})}):m.jsx("div",{className:"w-4 h-4 bg-gray-300 rounded-full"})]})]})]},B.path)})})})]})}),m.jsx(yn,{value:"mcp",className:"space-y-4",children:m.jsxs(at,{children:[m.jsx(Dt,{children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx(Vt,{className:"text-lg",children:"MCP Tools"}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsxs(Sw,{value:f,onValueChange:h,children:[m.jsx(Dm,{className:"w-48",children:m.jsx(Ew,{placeholder:"Filter by group"})}),m.jsx(km,{children:E().map(B=>m.jsxs(Xi,{value:B,children:[B," ",B==="All"?`(${Gi.length})`:`(${Gi.filter(ee=>ee.group===B).length})`]},B))})]}),m.jsxs(mt,{onClick:S,disabled:o||!((ae=g==null?void 0:g.mcp)!=null&&ae.enabled),size:"sm",variant:"outline",children:[m.jsx(d0,{className:"w-4 h-4 mr-2"}),o?"Testing...":"Test All"]})]})]})}),m.jsxs(bt,{children:[!((fe=g==null?void 0:g.mcp)!=null&&fe.enabled)&&m.jsxs(C3,{className:"mb-4",children:[m.jsx(Ic,{className:"w-4 h-4"}),m.jsx(M3,{children:"MCP server is not enabled. MCP tools will not be available."})]}),m.jsx("div",{className:"space-y-4",children:f==="All"?Object.entries(z()).map(([B,ee])=>m.jsxs("div",{className:"space-y-2",children:[m.jsxs("div",{className:"flex items-center gap-2 pb-2 border-b",children:[m.jsx("h4",{className:"text-sm font-medium text-muted-foreground",children:B}),m.jsxs(We,{variant:"outline",className:"text-xs",children:[ee.length," tools"]})]}),m.jsx("div",{className:"space-y-2",children:ee.map(oe=>{const C=i.find(F=>F.name===oe.name);return m.jsxs("div",{className:"flex items-center justify-between py-2 px-3 bg-muted/30 rounded-lg",children:[m.jsxs("div",{className:"flex-1",children:[m.jsx("div",{className:"font-medium text-sm",children:oe.name}),m.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:oe.description})]}),m.jsx("div",{className:"flex items-center gap-2",children:C?C.status==="available"?m.jsx(Qi,{className:"w-4 h-4 text-green-600"}):m.jsx("div",{title:C.error,children:m.jsx(_s,{className:"w-4 h-4 text-red-600"})}):m.jsx("div",{className:"w-4 h-4 bg-gray-300 rounded-full"})})]},oe.name)})})]},B)):m.jsx("div",{className:"space-y-2",children:A().map(B=>{const ee=i.find(oe=>oe.name===B.name);return m.jsxs("div",{className:"flex items-center justify-between py-2 px-3 bg-muted/30 rounded-lg",children:[m.jsxs("div",{className:"flex-1",children:[m.jsx("div",{className:"font-medium text-sm",children:B.name}),m.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:B.description})]}),m.jsx("div",{className:"flex items-center gap-2",children:ee?ee.status==="available"?m.jsx(Qi,{className:"w-4 h-4 text-green-600"}):m.jsx("div",{title:ee.error,children:m.jsx(_s,{className:"w-4 h-4 text-red-600"})}):m.jsx("div",{className:"w-4 h-4 bg-gray-300 rounded-full"})})]},B.name)})})})]})]})})]})]})}function D3(){const[t,a]=w.useState(""),[i,l]=w.useState(null),[o,u]=w.useState(!1),{data:f,isLoading:h}=or({queryKey:["initial-chunks"],queryFn:async()=>(await(await fetch("http://localhost:3333/api/semantic-chunks")).json()).chunks}),g=async y=>{if(y.preventDefault(),!t.trim()){l(null);return}u(!0);try{const x=await fetch("http://localhost:3333/api/semantic-search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:t,limit:15})});if(x.ok){const S=await x.json();l(S.results)}}catch{Nt.error("Semantic search failed")}finally{u(!1)}},p=i||f||[],v=async(y,x)=>{try{await fetch("http://localhost:3333/api/open-file",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filePath:y,line:x})}),Nt.success(`Opening ${y}`)}catch{Nt.error("Failed to open editor")}};return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("header",{className:"flex flex-col gap-4",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsxs("h1",{className:"text-lg font-thin tracking-tight flex items-center gap-2",children:[m.jsx(PT,{className:"w-4 h-4 text-vesper-accent"}),"Repository Intelligence"]}),m.jsx("p",{className:"text-xs text-muted-foreground font-thin",children:"Surgical code chunks indexed for agents"})]}),m.jsxs(We,{variant:"outline",className:"border-vesper font-thin text-[10px] uppercase tracking-widest",children:[(f==null?void 0:f.length)||0," Chunks Indexed"]})]}),m.jsxs("form",{onSubmit:g,className:"relative max-w-2xl",children:[m.jsx(Rb,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),m.jsx(Uw,{value:t,onChange:y=>a(y.target.value),placeholder:"Search code by meaning (e.g. 'handle file exports' or 'react components')",className:"pl-10 bg-vesper-card border-vesper text-sm h-10"}),o&&m.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:m.jsx(xm,{className:"w-3 h-3 animate-pulse text-vesper-accent"})})]})]}),h?m.jsxs("div",{className:"flex flex-col items-center justify-center py-20 opacity-50",children:[m.jsx(NT,{className:"w-10 h-10 animate-pulse mb-4 text-vesper-accent"}),m.jsx("span",{className:"text-xs font-thin tracking-widest uppercase",children:"Analyzing Codebase Intelligence..."})]}):m.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:p.map(y=>{var x;return m.jsxs(at,{className:"border-vesper bg-vesper-card hover:border-vesper-accent transition-all group",children:[m.jsx(Dt,{className:"pb-3",children:m.jsxs("div",{className:"flex items-start justify-between",children:[m.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[m.jsx(Kc,{className:"w-4 h-4 text-muted-foreground mt-1"}),m.jsxs("div",{className:"min-w-0",children:[m.jsx(Vt,{className:"text-sm font-bold truncate color-vesper-fg",children:y.name}),m.jsx("div",{className:"text-[10px] mono color-vesper-muted truncate mt-0.5",children:y.filePath})]})]}),m.jsx("div",{className:"flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:m.jsx(mt,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>v(y.filePath,y.startLine),children:m.jsx(Cb,{className:"w-3 h-3"})})})]})}),m.jsxs(bt,{className:"space-y-3",children:[m.jsxs("p",{className:"text-[11px] color-vesper-fg line-clamp-2 italic leading-relaxed",children:['"',y.purpose,'"']}),m.jsxs("div",{className:"flex flex-wrap gap-2",children:[m.jsx(We,{variant:"outline",className:"text-[9px] font-thin uppercase border-vesper color-vesper-muted px-1.5 h-4",children:y.subtype||y.type}),m.jsxs(We,{variant:"outline",className:"text-[9px] font-thin uppercase border-vesper color-vesper-muted px-1.5 h-4",children:["Complexity: ",((x=y.complexity)==null?void 0:x.score)||0]}),y.similarity&&m.jsxs(We,{variant:"outline",className:"text-[9px] font-thin uppercase border-vesper-accent color-vesper-accent px-1.5 h-4",children:["Match: ",Math.round(y.similarity*100),"%"]})]})]})]},y.id)})})]})}function X0(){const{theme:t,setTheme:a}=MA();return m.jsxs(mt,{variant:"ghost",size:"sm",onClick:()=>a(t==="light"?"dark":"light"),className:"h-8 w-8 p-0",children:[m.jsx(A_,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),m.jsx(c_,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),m.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}function Pc(t,a){return t==null||a==null?NaN:t<a?-1:t>a?1:t>=a?0:NaN}function k3(t,a){return t==null||a==null?NaN:a<t?-1:a>t?1:a>=t?0:NaN}function Hw(t){let a,i,l;t.length!==2?(a=Pc,i=(h,g)=>Pc(t(h),g),l=(h,g)=>t(h)-g):(a=t===Pc||t===k3?t:L3,i=t,l=t);function o(h,g,p=0,v=h.length){if(p<v){if(a(g,g)!==0)return v;do{const y=p+v>>>1;i(h[y],g)<0?p=y+1:v=y}while(p<v)}return p}function u(h,g,p=0,v=h.length){if(p<v){if(a(g,g)!==0)return v;do{const y=p+v>>>1;i(h[y],g)<=0?p=y+1:v=y}while(p<v)}return p}function f(h,g,p=0,v=h.length){const y=o(h,g,p,v-1);return y>p&&l(h[y-1],g)>-l(h[y],g)?y-1:y}return{left:o,center:f,right:u}}function L3(){return 0}function U3(t){return t===null?NaN:+t}const H3=Hw(Pc),B3=H3.right;Hw(U3).center;function $0(t,a){let i,l;if(a===void 0)for(const o of t)o!=null&&(i===void 0?o>=o&&(i=l=o):(i>o&&(i=o),l<o&&(l=o)));else{let o=-1;for(let u of t)(u=a(u,++o,t))!=null&&(i===void 0?u>=u&&(i=l=u):(i>u&&(i=u),l<u&&(l=u)))}return[i,l]}class q3 extends Map{constructor(a,i=G3){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:i}}),a!=null)for(const[l,o]of a)this.set(l,o)}get(a){return super.get(F0(this,a))}has(a){return super.has(F0(this,a))}set(a,i){return super.set(P3(this,a),i)}delete(a){return super.delete(V3(this,a))}}function F0({_intern:t,_key:a},i){const l=a(i);return t.has(l)?t.get(l):i}function P3({_intern:t,_key:a},i){const l=a(i);return t.has(l)?t.get(l):(t.set(l,i),i)}function V3({_intern:t,_key:a},i){const l=a(i);return t.has(l)&&(i=t.get(l),t.delete(l)),i}function G3(t){return t!==null&&typeof t=="object"?t.valueOf():t}function K0(t){return t}function Y3(t,...a){return Q3(t,K0,K0,a)}function Q3(t,a,i,l){return function o(u,f){if(f>=l.length)return i(u);const h=new q3,g=l[f++];let p=-1;for(const v of u){const y=g(v,++p,u),x=h.get(y);x?x.push(v):h.set(y,[v])}for(const[v,y]of h)h.set(v,o(y,f));return a(h)}(t,0)}const X3=Math.sqrt(50),$3=Math.sqrt(10),F3=Math.sqrt(2);function au(t,a,i){const l=(a-t)/Math.max(0,i),o=Math.floor(Math.log10(l)),u=l/Math.pow(10,o),f=u>=X3?10:u>=$3?5:u>=F3?2:1;let h,g,p;return o<0?(p=Math.pow(10,-o)/f,h=Math.round(t*p),g=Math.round(a*p),h/p<t&&++h,g/p>a&&--g,p=-p):(p=Math.pow(10,o)*f,h=Math.round(t/p),g=Math.round(a/p),h*p<t&&++h,g*p>a&&--g),g<h&&.5<=i&&i<2?au(t,a,i*2):[h,g,p]}function K3(t,a,i){if(a=+a,t=+t,i=+i,!(i>0))return[];if(t===a)return[t];const l=a<t,[o,u,f]=l?au(a,t,i):au(t,a,i);if(!(u>=o))return[];const h=u-o+1,g=new Array(h);if(l)if(f<0)for(let p=0;p<h;++p)g[p]=(u-p)/-f;else for(let p=0;p<h;++p)g[p]=(u-p)*f;else if(f<0)for(let p=0;p<h;++p)g[p]=(o+p)/-f;else for(let p=0;p<h;++p)g[p]=(o+p)*f;return g}function Qh(t,a,i){return a=+a,t=+t,i=+i,au(t,a,i)[2]}function I3(t,a,i){a=+a,t=+t,i=+i;const l=a<t,o=l?Qh(a,t,i):Qh(t,a,i);return(l?-1:1)*(o<0?1/-o:o)}function Z3(t,a){let i;if(a===void 0)for(const l of t)l!=null&&(i<l||i===void 0&&l>=l)&&(i=l);else{let l=-1;for(let o of t)(o=a(o,++l,t))!=null&&(i<o||i===void 0&&o>=o)&&(i=o)}return i}function I0(t,a){let i=0,l=0;if(a===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(++i,l+=o);else{let o=-1;for(let u of t)(u=a(u,++o,t))!=null&&(u=+u)>=u&&(++i,l+=u)}if(i)return l/i}var J3={value:()=>{}};function Bm(){for(var t=0,a=arguments.length,i={},l;t<a;++t){if(!(l=arguments[t]+"")||l in i||/[\s.]/.test(l))throw new Error("illegal type: "+l);i[l]=[]}return new Vc(i)}function Vc(t){this._=t}function W3(t,a){return t.trim().split(/^|\s+/).map(function(i){var l="",o=i.indexOf(".");if(o>=0&&(l=i.slice(o+1),i=i.slice(0,o)),i&&!a.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:l}})}Vc.prototype=Bm.prototype={constructor:Vc,on:function(t,a){var i=this._,l=W3(t+"",i),o,u=-1,f=l.length;if(arguments.length<2){for(;++u<f;)if((o=(t=l[u]).type)&&(o=eR(i[o],t.name)))return o;return}if(a!=null&&typeof a!="function")throw new Error("invalid callback: "+a);for(;++u<f;)if(o=(t=l[u]).type)i[o]=Z0(i[o],t.name,a);else if(a==null)for(o in i)i[o]=Z0(i[o],t.name,null);return this},copy:function(){var t={},a=this._;for(var i in a)t[i]=a[i].slice();return new Vc(t)},call:function(t,a){if((o=arguments.length-2)>0)for(var i=new Array(o),l=0,o,u;l<o;++l)i[l]=arguments[l+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=this._[t],l=0,o=u.length;l<o;++l)u[l].value.apply(a,i)},apply:function(t,a,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var l=this._[t],o=0,u=l.length;o<u;++o)l[o].value.apply(a,i)}};function eR(t,a){for(var i=0,l=t.length,o;i<l;++i)if((o=t[i]).name===a)return o.value}function Z0(t,a,i){for(var l=0,o=t.length;l<o;++l)if(t[l].name===a){t[l]=J3,t=t.slice(0,l).concat(t.slice(l+1));break}return i!=null&&t.push({name:a,value:i}),t}var Xh="http://www.w3.org/1999/xhtml";const J0={svg:"http://www.w3.org/2000/svg",xhtml:Xh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Eu(t){var a=t+="",i=a.indexOf(":");return i>=0&&(a=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),J0.hasOwnProperty(a)?{space:J0[a],local:t}:t}function tR(t){return function(){var a=this.ownerDocument,i=this.namespaceURI;return i===Xh&&a.documentElement.namespaceURI===Xh?a.createElement(t):a.createElementNS(i,t)}}function nR(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Bw(t){var a=Eu(t);return(a.local?nR:tR)(a)}function aR(){}function qm(t){return t==null?aR:function(){return this.querySelector(t)}}function rR(t){typeof t!="function"&&(t=qm(t));for(var a=this._groups,i=a.length,l=new Array(i),o=0;o<i;++o)for(var u=a[o],f=u.length,h=l[o]=new Array(f),g,p,v=0;v<f;++v)(g=u[v])&&(p=t.call(g,g.__data__,v,u))&&("__data__"in g&&(p.__data__=g.__data__),h[v]=p);return new ln(l,this._parents)}function iR(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function lR(){return[]}function qw(t){return t==null?lR:function(){return this.querySelectorAll(t)}}function sR(t){return function(){return iR(t.apply(this,arguments))}}function oR(t){typeof t=="function"?t=sR(t):t=qw(t);for(var a=this._groups,i=a.length,l=[],o=[],u=0;u<i;++u)for(var f=a[u],h=f.length,g,p=0;p<h;++p)(g=f[p])&&(l.push(t.call(g,g.__data__,p,f)),o.push(g));return new ln(l,o)}function Pw(t){return function(){return this.matches(t)}}function Vw(t){return function(a){return a.matches(t)}}var cR=Array.prototype.find;function uR(t){return function(){return cR.call(this.children,t)}}function fR(){return this.firstElementChild}function dR(t){return this.select(t==null?fR:uR(typeof t=="function"?t:Vw(t)))}var hR=Array.prototype.filter;function mR(){return Array.from(this.children)}function pR(t){return function(){return hR.call(this.children,t)}}function gR(t){return this.selectAll(t==null?mR:pR(typeof t=="function"?t:Vw(t)))}function vR(t){typeof t!="function"&&(t=Pw(t));for(var a=this._groups,i=a.length,l=new Array(i),o=0;o<i;++o)for(var u=a[o],f=u.length,h=l[o]=[],g,p=0;p<f;++p)(g=u[p])&&t.call(g,g.__data__,p,u)&&h.push(g);return new ln(l,this._parents)}function Gw(t){return new Array(t.length)}function yR(){return new ln(this._enter||this._groups.map(Gw),this._parents)}function ru(t,a){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=a}ru.prototype={constructor:ru,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,a){return this._parent.insertBefore(t,a)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function xR(t){return function(){return t}}function bR(t,a,i,l,o,u){for(var f=0,h,g=a.length,p=u.length;f<p;++f)(h=a[f])?(h.__data__=u[f],l[f]=h):i[f]=new ru(t,u[f]);for(;f<g;++f)(h=a[f])&&(o[f]=h)}function wR(t,a,i,l,o,u,f){var h,g,p=new Map,v=a.length,y=u.length,x=new Array(v),S;for(h=0;h<v;++h)(g=a[h])&&(x[h]=S=f.call(g,g.__data__,h,a)+"",p.has(S)?o[h]=g:p.set(S,g));for(h=0;h<y;++h)S=f.call(t,u[h],h,u)+"",(g=p.get(S))?(l[h]=g,g.__data__=u[h],p.delete(S)):i[h]=new ru(t,u[h]);for(h=0;h<v;++h)(g=a[h])&&p.get(x[h])===g&&(o[h]=g)}function SR(t){return t.__data__}function ER(t,a){if(!arguments.length)return Array.from(this,SR);var i=a?wR:bR,l=this._parents,o=this._groups;typeof t!="function"&&(t=xR(t));for(var u=o.length,f=new Array(u),h=new Array(u),g=new Array(u),p=0;p<u;++p){var v=l[p],y=o[p],x=y.length,S=NR(t.call(v,v&&v.__data__,p,l)),M=S.length,N=h[p]=new Array(M),E=f[p]=new Array(M),A=g[p]=new Array(x);i(v,y,N,E,A,S,a);for(var z=0,R=0,H,k;z<M;++z)if(H=N[z]){for(z>=R&&(R=z+1);!(k=E[R])&&++R<M;);H._next=k||null}}return f=new ln(f,l),f._enter=h,f._exit=g,f}function NR(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function TR(){return new ln(this._exit||this._groups.map(Gw),this._parents)}function _R(t,a,i){var l=this.enter(),o=this,u=this.exit();return typeof t=="function"?(l=t(l),l&&(l=l.selection())):l=l.append(t+""),a!=null&&(o=a(o),o&&(o=o.selection())),i==null?u.remove():i(u),l&&o?l.merge(o).order():o}function AR(t){for(var a=t.selection?t.selection():t,i=this._groups,l=a._groups,o=i.length,u=l.length,f=Math.min(o,u),h=new Array(o),g=0;g<f;++g)for(var p=i[g],v=l[g],y=p.length,x=h[g]=new Array(y),S,M=0;M<y;++M)(S=p[M]||v[M])&&(x[M]=S);for(;g<o;++g)h[g]=i[g];return new ln(h,this._parents)}function CR(){for(var t=this._groups,a=-1,i=t.length;++a<i;)for(var l=t[a],o=l.length-1,u=l[o],f;--o>=0;)(f=l[o])&&(u&&f.compareDocumentPosition(u)^4&&u.parentNode.insertBefore(f,u),u=f);return this}function MR(t){t||(t=jR);function a(y,x){return y&&x?t(y.__data__,x.__data__):!y-!x}for(var i=this._groups,l=i.length,o=new Array(l),u=0;u<l;++u){for(var f=i[u],h=f.length,g=o[u]=new Array(h),p,v=0;v<h;++v)(p=f[v])&&(g[v]=p);g.sort(a)}return new ln(o,this._parents).order()}function jR(t,a){return t<a?-1:t>a?1:t>=a?0:NaN}function RR(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function OR(){return Array.from(this)}function zR(){for(var t=this._groups,a=0,i=t.length;a<i;++a)for(var l=t[a],o=0,u=l.length;o<u;++o){var f=l[o];if(f)return f}return null}function DR(){let t=0;for(const a of this)++t;return t}function kR(){return!this.node()}function LR(t){for(var a=this._groups,i=0,l=a.length;i<l;++i)for(var o=a[i],u=0,f=o.length,h;u<f;++u)(h=o[u])&&t.call(h,h.__data__,u,o);return this}function UR(t){return function(){this.removeAttribute(t)}}function HR(t){return function(){this.removeAttributeNS(t.space,t.local)}}function BR(t,a){return function(){this.setAttribute(t,a)}}function qR(t,a){return function(){this.setAttributeNS(t.space,t.local,a)}}function PR(t,a){return function(){var i=a.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function VR(t,a){return function(){var i=a.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function GR(t,a){var i=Eu(t);if(arguments.length<2){var l=this.node();return i.local?l.getAttributeNS(i.space,i.local):l.getAttribute(i)}return this.each((a==null?i.local?HR:UR:typeof a=="function"?i.local?VR:PR:i.local?qR:BR)(i,a))}function Yw(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function YR(t){return function(){this.style.removeProperty(t)}}function QR(t,a,i){return function(){this.style.setProperty(t,a,i)}}function XR(t,a,i){return function(){var l=a.apply(this,arguments);l==null?this.style.removeProperty(t):this.style.setProperty(t,l,i)}}function $R(t,a,i){return arguments.length>1?this.each((a==null?YR:typeof a=="function"?XR:QR)(t,a,i??"")):dl(this.node(),t)}function dl(t,a){return t.style.getPropertyValue(a)||Yw(t).getComputedStyle(t,null).getPropertyValue(a)}function FR(t){return function(){delete this[t]}}function KR(t,a){return function(){this[t]=a}}function IR(t,a){return function(){var i=a.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function ZR(t,a){return arguments.length>1?this.each((a==null?FR:typeof a=="function"?IR:KR)(t,a)):this.node()[t]}function Qw(t){return t.trim().split(/^|\s+/)}function Pm(t){return t.classList||new Xw(t)}function Xw(t){this._node=t,this._names=Qw(t.getAttribute("class")||"")}Xw.prototype={add:function(t){var a=this._names.indexOf(t);a<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var a=this._names.indexOf(t);a>=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function $w(t,a){for(var i=Pm(t),l=-1,o=a.length;++l<o;)i.add(a[l])}function Fw(t,a){for(var i=Pm(t),l=-1,o=a.length;++l<o;)i.remove(a[l])}function JR(t){return function(){$w(this,t)}}function WR(t){return function(){Fw(this,t)}}function eO(t,a){return function(){(a.apply(this,arguments)?$w:Fw)(this,t)}}function tO(t,a){var i=Qw(t+"");if(arguments.length<2){for(var l=Pm(this.node()),o=-1,u=i.length;++o<u;)if(!l.contains(i[o]))return!1;return!0}return this.each((typeof a=="function"?eO:a?JR:WR)(i,a))}function nO(){this.textContent=""}function aO(t){return function(){this.textContent=t}}function rO(t){return function(){var a=t.apply(this,arguments);this.textContent=a??""}}function iO(t){return arguments.length?this.each(t==null?nO:(typeof t=="function"?rO:aO)(t)):this.node().textContent}function lO(){this.innerHTML=""}function sO(t){return function(){this.innerHTML=t}}function oO(t){return function(){var a=t.apply(this,arguments);this.innerHTML=a??""}}function cO(t){return arguments.length?this.each(t==null?lO:(typeof t=="function"?oO:sO)(t)):this.node().innerHTML}function uO(){this.nextSibling&&this.parentNode.appendChild(this)}function fO(){return this.each(uO)}function dO(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hO(){return this.each(dO)}function mO(t){var a=typeof t=="function"?t:Bw(t);return this.select(function(){return this.appendChild(a.apply(this,arguments))})}function pO(){return null}function gO(t,a){var i=typeof t=="function"?t:Bw(t),l=a==null?pO:typeof a=="function"?a:qm(a);return this.select(function(){return this.insertBefore(i.apply(this,arguments),l.apply(this,arguments)||null)})}function vO(){var t=this.parentNode;t&&t.removeChild(this)}function yO(){return this.each(vO)}function xO(){var t=this.cloneNode(!1),a=this.parentNode;return a?a.insertBefore(t,this.nextSibling):t}function bO(){var t=this.cloneNode(!0),a=this.parentNode;return a?a.insertBefore(t,this.nextSibling):t}function wO(t){return this.select(t?bO:xO)}function SO(t){return arguments.length?this.property("__data__",t):this.node().__data__}function EO(t){return function(a){t.call(this,a,this.__data__)}}function NO(t){return t.trim().split(/^|\s+/).map(function(a){var i="",l=a.indexOf(".");return l>=0&&(i=a.slice(l+1),a=a.slice(0,l)),{type:a,name:i}})}function TO(t){return function(){var a=this.__on;if(a){for(var i=0,l=-1,o=a.length,u;i<o;++i)u=a[i],(!t.type||u.type===t.type)&&u.name===t.name?this.removeEventListener(u.type,u.listener,u.options):a[++l]=u;++l?a.length=l:delete this.__on}}}function _O(t,a,i){return function(){var l=this.__on,o,u=EO(a);if(l){for(var f=0,h=l.length;f<h;++f)if((o=l[f]).type===t.type&&o.name===t.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=u,o.options=i),o.value=a;return}}this.addEventListener(t.type,u,i),o={type:t.type,name:t.name,value:a,listener:u,options:i},l?l.push(o):this.__on=[o]}}function AO(t,a,i){var l=NO(t+""),o,u=l.length,f;if(arguments.length<2){var h=this.node().__on;if(h){for(var g=0,p=h.length,v;g<p;++g)for(o=0,v=h[g];o<u;++o)if((f=l[o]).type===v.type&&f.name===v.name)return v.value}return}for(h=a?_O:TO,o=0;o<u;++o)this.each(h(l[o],a,i));return this}function Kw(t,a,i){var l=Yw(t),o=l.CustomEvent;typeof o=="function"?o=new o(a,i):(o=l.document.createEvent("Event"),i?(o.initEvent(a,i.bubbles,i.cancelable),o.detail=i.detail):o.initEvent(a,!1,!1)),t.dispatchEvent(o)}function CO(t,a){return function(){return Kw(this,t,a)}}function MO(t,a){return function(){return Kw(this,t,a.apply(this,arguments))}}function jO(t,a){return this.each((typeof a=="function"?MO:CO)(t,a))}function*RO(){for(var t=this._groups,a=0,i=t.length;a<i;++a)for(var l=t[a],o=0,u=l.length,f;o<u;++o)(f=l[o])&&(yield f)}var Iw=[null];function ln(t,a){this._groups=t,this._parents=a}function Ws(){return new ln([[document.documentElement]],Iw)}function OO(){return this}ln.prototype=Ws.prototype={constructor:ln,select:rR,selectAll:oR,selectChild:dR,selectChildren:gR,filter:vR,data:ER,enter:yR,exit:TR,join:_R,merge:AR,selection:OO,order:CR,sort:MR,call:RR,nodes:OR,node:zR,size:DR,empty:kR,each:LR,attr:GR,style:$R,property:ZR,classed:tO,text:iO,html:cO,raise:fO,lower:hO,append:mO,insert:gO,remove:yO,clone:wO,datum:SO,on:AO,dispatch:jO,[Symbol.iterator]:RO};function Gn(t){return typeof t=="string"?new ln([[document.querySelector(t)]],[document.documentElement]):new ln([[t]],Iw)}function zO(t){let a;for(;a=t.sourceEvent;)t=a;return t}function zr(t,a){if(t=zO(t),a===void 0&&(a=t.currentTarget),a){var i=a.ownerSVGElement||a;if(i.createSVGPoint){var l=i.createSVGPoint();return l.x=t.clientX,l.y=t.clientY,l=l.matrixTransform(a.getScreenCTM().inverse()),[l.x,l.y]}if(a.getBoundingClientRect){var o=a.getBoundingClientRect();return[t.clientX-o.left-a.clientLeft,t.clientY-o.top-a.clientTop]}}return[t.pageX,t.pageY]}const $h={capture:!0,passive:!1};function Fh(t){t.preventDefault(),t.stopImmediatePropagation()}function DO(t){var a=t.document.documentElement,i=Gn(t).on("dragstart.drag",Fh,$h);"onselectstart"in a?i.on("selectstart.drag",Fh,$h):(a.__noselect=a.style.MozUserSelect,a.style.MozUserSelect="none")}function kO(t,a){var i=t.document.documentElement,l=Gn(t).on("dragstart.drag",null);a&&(l.on("click.drag",Fh,$h),setTimeout(function(){l.on("click.drag",null)},0)),"onselectstart"in i?l.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}function Vm(t,a,i){t.prototype=a.prototype=i,i.constructor=t}function Zw(t,a){var i=Object.create(t.prototype);for(var l in a)i[l]=a[l];return i}function eo(){}var Bs=.7,iu=1/Bs,Zi="\\s*([+-]?\\d+)\\s*",qs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",$n="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",LO=/^#([0-9a-f]{3,8})$/,UO=new RegExp(`^rgb\\(${Zi},${Zi},${Zi}\\)$`),HO=new RegExp(`^rgb\\(${$n},${$n},${$n}\\)$`),BO=new RegExp(`^rgba\\(${Zi},${Zi},${Zi},${qs}\\)$`),qO=new RegExp(`^rgba\\(${$n},${$n},${$n},${qs}\\)$`),PO=new RegExp(`^hsl\\(${qs},${$n},${$n}\\)$`),VO=new RegExp(`^hsla\\(${qs},${$n},${$n},${qs}\\)$`),W0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Vm(eo,Ir,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ex,formatHex:ex,formatHex8:GO,formatHsl:YO,formatRgb:tx,toString:tx});function ex(){return this.rgb().formatHex()}function GO(){return this.rgb().formatHex8()}function YO(){return Jw(this).formatHsl()}function tx(){return this.rgb().formatRgb()}function Ir(t){var a,i;return t=(t+"").trim().toLowerCase(),(a=LO.exec(t))?(i=a[1].length,a=parseInt(a[1],16),i===6?nx(a):i===3?new Gt(a>>8&15|a>>4&240,a>>4&15|a&240,(a&15)<<4|a&15,1):i===8?jc(a>>24&255,a>>16&255,a>>8&255,(a&255)/255):i===4?jc(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|a&240,((a&15)<<4|a&15)/255):null):(a=UO.exec(t))?new Gt(a[1],a[2],a[3],1):(a=HO.exec(t))?new Gt(a[1]*255/100,a[2]*255/100,a[3]*255/100,1):(a=BO.exec(t))?jc(a[1],a[2],a[3],a[4]):(a=qO.exec(t))?jc(a[1]*255/100,a[2]*255/100,a[3]*255/100,a[4]):(a=PO.exec(t))?ix(a[1],a[2]/100,a[3]/100,1):(a=VO.exec(t))?ix(a[1],a[2]/100,a[3]/100,a[4]):W0.hasOwnProperty(t)?nx(W0[t]):t==="transparent"?new Gt(NaN,NaN,NaN,0):null}function nx(t){return new Gt(t>>16&255,t>>8&255,t&255,1)}function jc(t,a,i,l){return l<=0&&(t=a=i=NaN),new Gt(t,a,i,l)}function QO(t){return t instanceof eo||(t=Ir(t)),t?(t=t.rgb(),new Gt(t.r,t.g,t.b,t.opacity)):new Gt}function Kh(t,a,i,l){return arguments.length===1?QO(t):new Gt(t,a,i,l??1)}function Gt(t,a,i,l){this.r=+t,this.g=+a,this.b=+i,this.opacity=+l}Vm(Gt,Kh,Zw(eo,{brighter(t){return t=t==null?iu:Math.pow(iu,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Bs:Math.pow(Bs,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Gt(Gr(this.r),Gr(this.g),Gr(this.b),lu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ax,formatHex:ax,formatHex8:XO,formatRgb:rx,toString:rx}));function ax(){return`#${Dr(this.r)}${Dr(this.g)}${Dr(this.b)}`}function XO(){return`#${Dr(this.r)}${Dr(this.g)}${Dr(this.b)}${Dr((isNaN(this.opacity)?1:this.opacity)*255)}`}function rx(){const t=lu(this.opacity);return`${t===1?"rgb(":"rgba("}${Gr(this.r)}, ${Gr(this.g)}, ${Gr(this.b)}${t===1?")":`, ${t})`}`}function lu(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Gr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Dr(t){return t=Gr(t),(t<16?"0":"")+t.toString(16)}function ix(t,a,i,l){return l<=0?t=a=i=NaN:i<=0||i>=1?t=a=NaN:a<=0&&(t=NaN),new Cn(t,a,i,l)}function Jw(t){if(t instanceof Cn)return new Cn(t.h,t.s,t.l,t.opacity);if(t instanceof eo||(t=Ir(t)),!t)return new Cn;if(t instanceof Cn)return t;t=t.rgb();var a=t.r/255,i=t.g/255,l=t.b/255,o=Math.min(a,i,l),u=Math.max(a,i,l),f=NaN,h=u-o,g=(u+o)/2;return h?(a===u?f=(i-l)/h+(i<l)*6:i===u?f=(l-a)/h+2:f=(a-i)/h+4,h/=g<.5?u+o:2-u-o,f*=60):h=g>0&&g<1?0:f,new Cn(f,h,g,t.opacity)}function $O(t,a,i,l){return arguments.length===1?Jw(t):new Cn(t,a,i,l??1)}function Cn(t,a,i,l){this.h=+t,this.s=+a,this.l=+i,this.opacity=+l}Vm(Cn,$O,Zw(eo,{brighter(t){return t=t==null?iu:Math.pow(iu,t),new Cn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Bs:Math.pow(Bs,t),new Cn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,a=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,l=i+(i<.5?i:1-i)*a,o=2*i-l;return new Gt(uh(t>=240?t-240:t+120,o,l),uh(t,o,l),uh(t<120?t+240:t-120,o,l),this.opacity)},clamp(){return new Cn(lx(this.h),Rc(this.s),Rc(this.l),lu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=lu(this.opacity);return`${t===1?"hsl(":"hsla("}${lx(this.h)}, ${Rc(this.s)*100}%, ${Rc(this.l)*100}%${t===1?")":`, ${t})`}`}}));function lx(t){return t=(t||0)%360,t<0?t+360:t}function Rc(t){return Math.max(0,Math.min(1,t||0))}function uh(t,a,i){return(t<60?a+(i-a)*t/60:t<180?i:t<240?a+(i-a)*(240-t)/60:a)*255}const Gm=t=>()=>t;function FO(t,a){return function(i){return t+i*a}}function KO(t,a,i){return t=Math.pow(t,i),a=Math.pow(a,i)-t,i=1/i,function(l){return Math.pow(t+l*a,i)}}function IO(t){return(t=+t)==1?Ww:function(a,i){return i-a?KO(a,i,t):Gm(isNaN(a)?i:a)}}function Ww(t,a){var i=a-t;return i?FO(t,i):Gm(isNaN(t)?a:t)}const su=function t(a){var i=IO(a);function l(o,u){var f=i((o=Kh(o)).r,(u=Kh(u)).r),h=i(o.g,u.g),g=i(o.b,u.b),p=Ww(o.opacity,u.opacity);return function(v){return o.r=f(v),o.g=h(v),o.b=g(v),o.opacity=p(v),o+""}}return l.gamma=t,l}(1);function ZO(t,a){a||(a=[]);var i=t?Math.min(a.length,t.length):0,l=a.slice(),o;return function(u){for(o=0;o<i;++o)l[o]=t[o]*(1-u)+a[o]*u;return l}}function JO(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function WO(t,a){var i=a?a.length:0,l=t?Math.min(i,t.length):0,o=new Array(l),u=new Array(i),f;for(f=0;f<l;++f)o[f]=Ym(t[f],a[f]);for(;f<i;++f)u[f]=a[f];return function(h){for(f=0;f<l;++f)u[f]=o[f](h);return u}}function e4(t,a){var i=new Date;return t=+t,a=+a,function(l){return i.setTime(t*(1-l)+a*l),i}}function An(t,a){return t=+t,a=+a,function(i){return t*(1-i)+a*i}}function t4(t,a){var i={},l={},o;(t===null||typeof t!="object")&&(t={}),(a===null||typeof a!="object")&&(a={});for(o in a)o in t?i[o]=Ym(t[o],a[o]):l[o]=a[o];return function(u){for(o in i)l[o]=i[o](u);return l}}var Ih=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fh=new RegExp(Ih.source,"g");function n4(t){return function(){return t}}function a4(t){return function(a){return t(a)+""}}function eS(t,a){var i=Ih.lastIndex=fh.lastIndex=0,l,o,u,f=-1,h=[],g=[];for(t=t+"",a=a+"";(l=Ih.exec(t))&&(o=fh.exec(a));)(u=o.index)>i&&(u=a.slice(i,u),h[f]?h[f]+=u:h[++f]=u),(l=l[0])===(o=o[0])?h[f]?h[f]+=o:h[++f]=o:(h[++f]=null,g.push({i:f,x:An(l,o)})),i=fh.lastIndex;return i<a.length&&(u=a.slice(i),h[f]?h[f]+=u:h[++f]=u),h.length<2?g[0]?a4(g[0].x):n4(a):(a=g.length,function(p){for(var v=0,y;v<a;++v)h[(y=g[v]).i]=y.x(p);return h.join("")})}function Ym(t,a){var i=typeof a,l;return a==null||i==="boolean"?Gm(a):(i==="number"?An:i==="string"?(l=Ir(a))?(a=l,su):eS:a instanceof Ir?su:a instanceof Date?e4:JO(a)?ZO:Array.isArray(a)?WO:typeof a.valueOf!="function"&&typeof a.toString!="function"||isNaN(a)?t4:An)(t,a)}function r4(t,a){return t=+t,a=+a,function(i){return Math.round(t*(1-i)+a*i)}}var sx=180/Math.PI,Zh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tS(t,a,i,l,o,u){var f,h,g;return(f=Math.sqrt(t*t+a*a))&&(t/=f,a/=f),(g=t*i+a*l)&&(i-=t*g,l-=a*g),(h=Math.sqrt(i*i+l*l))&&(i/=h,l/=h,g/=h),t*l<a*i&&(t=-t,a=-a,g=-g,f=-f),{translateX:o,translateY:u,rotate:Math.atan2(a,t)*sx,skewX:Math.atan(g)*sx,scaleX:f,scaleY:h}}var Oc;function i4(t){const a=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return a.isIdentity?Zh:tS(a.a,a.b,a.c,a.d,a.e,a.f)}function l4(t){return t==null||(Oc||(Oc=document.createElementNS("http://www.w3.org/2000/svg","g")),Oc.setAttribute("transform",t),!(t=Oc.transform.baseVal.consolidate()))?Zh:(t=t.matrix,tS(t.a,t.b,t.c,t.d,t.e,t.f))}function nS(t,a,i,l){function o(p){return p.length?p.pop()+" ":""}function u(p,v,y,x,S,M){if(p!==y||v!==x){var N=S.push("translate(",null,a,null,i);M.push({i:N-4,x:An(p,y)},{i:N-2,x:An(v,x)})}else(y||x)&&S.push("translate("+y+a+x+i)}function f(p,v,y,x){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),x.push({i:y.push(o(y)+"rotate(",null,l)-2,x:An(p,v)})):v&&y.push(o(y)+"rotate("+v+l)}function h(p,v,y,x){p!==v?x.push({i:y.push(o(y)+"skewX(",null,l)-2,x:An(p,v)}):v&&y.push(o(y)+"skewX("+v+l)}function g(p,v,y,x,S,M){if(p!==y||v!==x){var N=S.push(o(S)+"scale(",null,",",null,")");M.push({i:N-4,x:An(p,y)},{i:N-2,x:An(v,x)})}else(y!==1||x!==1)&&S.push(o(S)+"scale("+y+","+x+")")}return function(p,v){var y=[],x=[];return p=t(p),v=t(v),u(p.translateX,p.translateY,v.translateX,v.translateY,y,x),f(p.rotate,v.rotate,y,x),h(p.skewX,v.skewX,y,x),g(p.scaleX,p.scaleY,v.scaleX,v.scaleY,y,x),p=v=null,function(S){for(var M=-1,N=x.length,E;++M<N;)y[(E=x[M]).i]=E.x(S);return y.join("")}}}var s4=nS(i4,"px, ","px)","deg)"),o4=nS(l4,", ",")",")"),c4=1e-12;function ox(t){return((t=Math.exp(t))+1/t)/2}function u4(t){return((t=Math.exp(t))-1/t)/2}function f4(t){return((t=Math.exp(2*t))-1)/(t+1)}const d4=function t(a,i,l){function o(u,f){var h=u[0],g=u[1],p=u[2],v=f[0],y=f[1],x=f[2],S=v-h,M=y-g,N=S*S+M*M,E,A;if(N<c4)A=Math.log(x/p)/a,E=function(V){return[h+V*S,g+V*M,p*Math.exp(a*V*A)]};else{var z=Math.sqrt(N),R=(x*x-p*p+l*N)/(2*p*i*z),H=(x*x-p*p-l*N)/(2*x*i*z),k=Math.log(Math.sqrt(R*R+1)-R),q=Math.log(Math.sqrt(H*H+1)-H);A=(q-k)/a,E=function(V){var G=V*A,ae=ox(k),fe=p/(i*z)*(ae*f4(a*G+k)-u4(k));return[h+fe*S,g+fe*M,p*ae/ox(a*G+k)]}}return E.duration=A*1e3*a/Math.SQRT2,E}return o.rho=function(u){var f=Math.max(.001,+u),h=f*f,g=h*h;return t(f,h,g)},o}(Math.SQRT2,2,4);var hl=0,Rs=0,Es=0,aS=1e3,ou,Os,cu=0,Zr=0,Nu=0,Ps=typeof performance=="object"&&performance.now?performance:Date,rS=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Qm(){return Zr||(rS(h4),Zr=Ps.now()+Nu)}function h4(){Zr=0}function uu(){this._call=this._time=this._next=null}uu.prototype=iS.prototype={constructor:uu,restart:function(t,a,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?Qm():+i)+(a==null?0:+a),!this._next&&Os!==this&&(Os?Os._next=this:ou=this,Os=this),this._call=t,this._time=i,Jh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Jh())}};function iS(t,a,i){var l=new uu;return l.restart(t,a,i),l}function m4(){Qm(),++hl;for(var t=ou,a;t;)(a=Zr-t._time)>=0&&t._call.call(void 0,a),t=t._next;--hl}function cx(){Zr=(cu=Ps.now())+Nu,hl=Rs=0;try{m4()}finally{hl=0,g4(),Zr=0}}function p4(){var t=Ps.now(),a=t-cu;a>aS&&(Nu-=a,cu=t)}function g4(){for(var t,a=ou,i,l=1/0;a;)a._call?(l>a._time&&(l=a._time),t=a,a=a._next):(i=a._next,a._next=null,a=t?t._next=i:ou=i);Os=t,Jh(l)}function Jh(t){if(!hl){Rs&&(Rs=clearTimeout(Rs));var a=t-Zr;a>24?(t<1/0&&(Rs=setTimeout(cx,t-Ps.now()-Nu)),Es&&(Es=clearInterval(Es))):(Es||(cu=Ps.now(),Es=setInterval(p4,aS)),hl=1,rS(cx))}}function ux(t,a,i){var l=new uu;return a=a==null?0:+a,l.restart(o=>{l.stop(),t(o+a)},a,i),l}var v4=Bm("start","end","cancel","interrupt"),y4=[],lS=0,fx=1,Wh=2,Gc=3,dx=4,em=5,Yc=6;function Tu(t,a,i,l,o,u){var f=t.__transition;if(!f)t.__transition={};else if(i in f)return;x4(t,i,{name:a,index:l,group:o,on:v4,tween:y4,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:lS})}function Xm(t,a){var i=Rn(t,a);if(i.state>lS)throw new Error("too late; already scheduled");return i}function In(t,a){var i=Rn(t,a);if(i.state>Gc)throw new Error("too late; already running");return i}function Rn(t,a){var i=t.__transition;if(!i||!(i=i[a]))throw new Error("transition not found");return i}function x4(t,a,i){var l=t.__transition,o;l[a]=i,i.timer=iS(u,0,i.time);function u(p){i.state=fx,i.timer.restart(f,i.delay,i.time),i.delay<=p&&f(p-i.delay)}function f(p){var v,y,x,S;if(i.state!==fx)return g();for(v in l)if(S=l[v],S.name===i.name){if(S.state===Gc)return ux(f);S.state===dx?(S.state=Yc,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete l[v]):+v<a&&(S.state=Yc,S.timer.stop(),S.on.call("cancel",t,t.__data__,S.index,S.group),delete l[v])}if(ux(function(){i.state===Gc&&(i.state=dx,i.timer.restart(h,i.delay,i.time),h(p))}),i.state=Wh,i.on.call("start",t,t.__data__,i.index,i.group),i.state===Wh){for(i.state=Gc,o=new Array(x=i.tween.length),v=0,y=-1;v<x;++v)(S=i.tween[v].value.call(t,t.__data__,i.index,i.group))&&(o[++y]=S);o.length=y+1}}function h(p){for(var v=p<i.duration?i.ease.call(null,p/i.duration):(i.timer.restart(g),i.state=em,1),y=-1,x=o.length;++y<x;)o[y].call(t,v);i.state===em&&(i.on.call("end",t,t.__data__,i.index,i.group),g())}function g(){i.state=Yc,i.timer.stop(),delete l[a];for(var p in l)return;delete t.__transition}}function Qc(t,a){var i=t.__transition,l,o,u=!0,f;if(i){a=a==null?null:a+"";for(f in i){if((l=i[f]).name!==a){u=!1;continue}o=l.state>Wh&&l.state<em,l.state=Yc,l.timer.stop(),l.on.call(o?"interrupt":"cancel",t,t.__data__,l.index,l.group),delete i[f]}u&&delete t.__transition}}function b4(t){return this.each(function(){Qc(this,t)})}function w4(t,a){var i,l;return function(){var o=In(this,t),u=o.tween;if(u!==i){l=i=u;for(var f=0,h=l.length;f<h;++f)if(l[f].name===a){l=l.slice(),l.splice(f,1);break}}o.tween=l}}function S4(t,a,i){var l,o;if(typeof i!="function")throw new Error;return function(){var u=In(this,t),f=u.tween;if(f!==l){o=(l=f).slice();for(var h={name:a,value:i},g=0,p=o.length;g<p;++g)if(o[g].name===a){o[g]=h;break}g===p&&o.push(h)}u.tween=o}}function E4(t,a){var i=this._id;if(t+="",arguments.length<2){for(var l=Rn(this.node(),i).tween,o=0,u=l.length,f;o<u;++o)if((f=l[o]).name===t)return f.value;return null}return this.each((a==null?w4:S4)(i,t,a))}function $m(t,a,i){var l=t._id;return t.each(function(){var o=In(this,l);(o.value||(o.value={}))[a]=i.apply(this,arguments)}),function(o){return Rn(o,l).value[a]}}function sS(t,a){var i;return(typeof a=="number"?An:a instanceof Ir?su:(i=Ir(a))?(a=i,su):eS)(t,a)}function N4(t){return function(){this.removeAttribute(t)}}function T4(t){return function(){this.removeAttributeNS(t.space,t.local)}}function _4(t,a,i){var l,o=i+"",u;return function(){var f=this.getAttribute(t);return f===o?null:f===l?u:u=a(l=f,i)}}function A4(t,a,i){var l,o=i+"",u;return function(){var f=this.getAttributeNS(t.space,t.local);return f===o?null:f===l?u:u=a(l=f,i)}}function C4(t,a,i){var l,o,u;return function(){var f,h=i(this),g;return h==null?void this.removeAttribute(t):(f=this.getAttribute(t),g=h+"",f===g?null:f===l&&g===o?u:(o=g,u=a(l=f,h)))}}function M4(t,a,i){var l,o,u;return function(){var f,h=i(this),g;return h==null?void this.removeAttributeNS(t.space,t.local):(f=this.getAttributeNS(t.space,t.local),g=h+"",f===g?null:f===l&&g===o?u:(o=g,u=a(l=f,h)))}}function j4(t,a){var i=Eu(t),l=i==="transform"?o4:sS;return this.attrTween(t,typeof a=="function"?(i.local?M4:C4)(i,l,$m(this,"attr."+t,a)):a==null?(i.local?T4:N4)(i):(i.local?A4:_4)(i,l,a))}function R4(t,a){return function(i){this.setAttribute(t,a.call(this,i))}}function O4(t,a){return function(i){this.setAttributeNS(t.space,t.local,a.call(this,i))}}function z4(t,a){var i,l;function o(){var u=a.apply(this,arguments);return u!==l&&(i=(l=u)&&O4(t,u)),i}return o._value=a,o}function D4(t,a){var i,l;function o(){var u=a.apply(this,arguments);return u!==l&&(i=(l=u)&&R4(t,u)),i}return o._value=a,o}function k4(t,a){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(a==null)return this.tween(i,null);if(typeof a!="function")throw new Error;var l=Eu(t);return this.tween(i,(l.local?z4:D4)(l,a))}function L4(t,a){return function(){Xm(this,t).delay=+a.apply(this,arguments)}}function U4(t,a){return a=+a,function(){Xm(this,t).delay=a}}function H4(t){var a=this._id;return arguments.length?this.each((typeof t=="function"?L4:U4)(a,t)):Rn(this.node(),a).delay}function B4(t,a){return function(){In(this,t).duration=+a.apply(this,arguments)}}function q4(t,a){return a=+a,function(){In(this,t).duration=a}}function P4(t){var a=this._id;return arguments.length?this.each((typeof t=="function"?B4:q4)(a,t)):Rn(this.node(),a).duration}function V4(t,a){if(typeof a!="function")throw new Error;return function(){In(this,t).ease=a}}function G4(t){var a=this._id;return arguments.length?this.each(V4(a,t)):Rn(this.node(),a).ease}function Y4(t,a){return function(){var i=a.apply(this,arguments);if(typeof i!="function")throw new Error;In(this,t).ease=i}}function Q4(t){if(typeof t!="function")throw new Error;return this.each(Y4(this._id,t))}function X4(t){typeof t!="function"&&(t=Pw(t));for(var a=this._groups,i=a.length,l=new Array(i),o=0;o<i;++o)for(var u=a[o],f=u.length,h=l[o]=[],g,p=0;p<f;++p)(g=u[p])&&t.call(g,g.__data__,p,u)&&h.push(g);return new Sa(l,this._parents,this._name,this._id)}function $4(t){if(t._id!==this._id)throw new Error;for(var a=this._groups,i=t._groups,l=a.length,o=i.length,u=Math.min(l,o),f=new Array(l),h=0;h<u;++h)for(var g=a[h],p=i[h],v=g.length,y=f[h]=new Array(v),x,S=0;S<v;++S)(x=g[S]||p[S])&&(y[S]=x);for(;h<l;++h)f[h]=a[h];return new Sa(f,this._parents,this._name,this._id)}function F4(t){return(t+"").trim().split(/^|\s+/).every(function(a){var i=a.indexOf(".");return i>=0&&(a=a.slice(0,i)),!a||a==="start"})}function K4(t,a,i){var l,o,u=F4(a)?Xm:In;return function(){var f=u(this,t),h=f.on;h!==l&&(o=(l=h).copy()).on(a,i),f.on=o}}function I4(t,a){var i=this._id;return arguments.length<2?Rn(this.node(),i).on.on(t):this.each(K4(i,t,a))}function Z4(t){return function(){var a=this.parentNode;for(var i in this.__transition)if(+i!==t)return;a&&a.removeChild(this)}}function J4(){return this.on("end.remove",Z4(this._id))}function W4(t){var a=this._name,i=this._id;typeof t!="function"&&(t=qm(t));for(var l=this._groups,o=l.length,u=new Array(o),f=0;f<o;++f)for(var h=l[f],g=h.length,p=u[f]=new Array(g),v,y,x=0;x<g;++x)(v=h[x])&&(y=t.call(v,v.__data__,x,h))&&("__data__"in v&&(y.__data__=v.__data__),p[x]=y,Tu(p[x],a,i,x,p,Rn(v,i)));return new Sa(u,this._parents,a,i)}function ez(t){var a=this._name,i=this._id;typeof t!="function"&&(t=qw(t));for(var l=this._groups,o=l.length,u=[],f=[],h=0;h<o;++h)for(var g=l[h],p=g.length,v,y=0;y<p;++y)if(v=g[y]){for(var x=t.call(v,v.__data__,y,g),S,M=Rn(v,i),N=0,E=x.length;N<E;++N)(S=x[N])&&Tu(S,a,i,N,x,M);u.push(x),f.push(v)}return new Sa(u,f,a,i)}var tz=Ws.prototype.constructor;function nz(){return new tz(this._groups,this._parents)}function az(t,a){var i,l,o;return function(){var u=dl(this,t),f=(this.style.removeProperty(t),dl(this,t));return u===f?null:u===i&&f===l?o:o=a(i=u,l=f)}}function oS(t){return function(){this.style.removeProperty(t)}}function rz(t,a,i){var l,o=i+"",u;return function(){var f=dl(this,t);return f===o?null:f===l?u:u=a(l=f,i)}}function iz(t,a,i){var l,o,u;return function(){var f=dl(this,t),h=i(this),g=h+"";return h==null&&(g=h=(this.style.removeProperty(t),dl(this,t))),f===g?null:f===l&&g===o?u:(o=g,u=a(l=f,h))}}function lz(t,a){var i,l,o,u="style."+a,f="end."+u,h;return function(){var g=In(this,t),p=g.on,v=g.value[u]==null?h||(h=oS(a)):void 0;(p!==i||o!==v)&&(l=(i=p).copy()).on(f,o=v),g.on=l}}function sz(t,a,i){var l=(t+="")=="transform"?s4:sS;return a==null?this.styleTween(t,az(t,l)).on("end.style."+t,oS(t)):typeof a=="function"?this.styleTween(t,iz(t,l,$m(this,"style."+t,a))).each(lz(this._id,t)):this.styleTween(t,rz(t,l,a),i).on("end.style."+t,null)}function oz(t,a,i){return function(l){this.style.setProperty(t,a.call(this,l),i)}}function cz(t,a,i){var l,o;function u(){var f=a.apply(this,arguments);return f!==o&&(l=(o=f)&&oz(t,f,i)),l}return u._value=a,u}function uz(t,a,i){var l="style."+(t+="");if(arguments.length<2)return(l=this.tween(l))&&l._value;if(a==null)return this.tween(l,null);if(typeof a!="function")throw new Error;return this.tween(l,cz(t,a,i??""))}function fz(t){return function(){this.textContent=t}}function dz(t){return function(){var a=t(this);this.textContent=a??""}}function hz(t){return this.tween("text",typeof t=="function"?dz($m(this,"text",t)):fz(t==null?"":t+""))}function mz(t){return function(a){this.textContent=t.call(this,a)}}function pz(t){var a,i;function l(){var o=t.apply(this,arguments);return o!==i&&(a=(i=o)&&mz(o)),a}return l._value=t,l}function gz(t){var a="text";if(arguments.length<1)return(a=this.tween(a))&&a._value;if(t==null)return this.tween(a,null);if(typeof t!="function")throw new Error;return this.tween(a,pz(t))}function vz(){for(var t=this._name,a=this._id,i=cS(),l=this._groups,o=l.length,u=0;u<o;++u)for(var f=l[u],h=f.length,g,p=0;p<h;++p)if(g=f[p]){var v=Rn(g,a);Tu(g,t,i,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new Sa(l,this._parents,t,i)}function yz(){var t,a,i=this,l=i._id,o=i.size();return new Promise(function(u,f){var h={value:f},g={value:function(){--o===0&&u()}};i.each(function(){var p=In(this,l),v=p.on;v!==t&&(a=(t=v).copy(),a._.cancel.push(h),a._.interrupt.push(h),a._.end.push(g)),p.on=a}),o===0&&u()})}var xz=0;function Sa(t,a,i,l){this._groups=t,this._parents=a,this._name=i,this._id=l}function cS(){return++xz}var ha=Ws.prototype;Sa.prototype={constructor:Sa,select:W4,selectAll:ez,selectChild:ha.selectChild,selectChildren:ha.selectChildren,filter:X4,merge:$4,selection:nz,transition:vz,call:ha.call,nodes:ha.nodes,node:ha.node,size:ha.size,empty:ha.empty,each:ha.each,on:I4,attr:j4,attrTween:k4,style:sz,styleTween:uz,text:hz,textTween:gz,remove:J4,tween:E4,delay:H4,duration:P4,ease:G4,easeVarying:Q4,end:yz,[Symbol.iterator]:ha[Symbol.iterator]};function bz(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var wz={time:null,delay:0,duration:250,ease:bz};function Sz(t,a){for(var i;!(i=t.__transition)||!(i=i[a]);)if(!(t=t.parentNode))throw new Error(`transition ${a} not found`);return i}function Ez(t){var a,i;t instanceof Sa?(a=t._id,t=t._name):(a=cS(),(i=wz).time=Qm(),t=t==null?null:t+"");for(var l=this._groups,o=l.length,u=0;u<o;++u)for(var f=l[u],h=f.length,g,p=0;p<h;++p)(g=f[p])&&Tu(g,t,a,p,f,i||Sz(g,a));return new Sa(l,this._parents,t,a)}Ws.prototype.interrupt=b4;Ws.prototype.transition=Ez;function Nz(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function fu(t,a){if((i=(t=a?t.toExponential(a-1):t.toExponential()).indexOf("e"))<0)return null;var i,l=t.slice(0,i);return[l.length>1?l[0]+l.slice(2):l,+t.slice(i+1)]}function ml(t){return t=fu(Math.abs(t)),t?t[1]:NaN}function Tz(t,a){return function(i,l){for(var o=i.length,u=[],f=0,h=t[0],g=0;o>0&&h>0&&(g+h+1>l&&(h=Math.max(1,l-g)),u.push(i.substring(o-=h,o+h)),!((g+=h+1)>l));)h=t[f=(f+1)%t.length];return u.reverse().join(a)}}function _z(t){return function(a){return a.replace(/[0-9]/g,function(i){return t[+i]})}}var Az=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function du(t){if(!(a=Az.exec(t)))throw new Error("invalid format: "+t);var a;return new Fm({fill:a[1],align:a[2],sign:a[3],symbol:a[4],zero:a[5],width:a[6],comma:a[7],precision:a[8]&&a[8].slice(1),trim:a[9],type:a[10]})}du.prototype=Fm.prototype;function Fm(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Fm.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Cz(t){e:for(var a=t.length,i=1,l=-1,o;i<a;++i)switch(t[i]){case".":l=o=i;break;case"0":l===0&&(l=i),o=i;break;default:if(!+t[i])break e;l>0&&(l=0);break}return l>0?t.slice(0,l)+t.slice(o+1):t}var uS;function Mz(t,a){var i=fu(t,a);if(!i)return t+"";var l=i[0],o=i[1],u=o-(uS=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,f=l.length;return u===f?l:u>f?l+new Array(u-f+1).join("0"):u>0?l.slice(0,u)+"."+l.slice(u):"0."+new Array(1-u).join("0")+fu(t,Math.max(0,a+u-1))[0]}function hx(t,a){var i=fu(t,a);if(!i)return t+"";var l=i[0],o=i[1];return o<0?"0."+new Array(-o).join("0")+l:l.length>o+1?l.slice(0,o+1)+"."+l.slice(o+1):l+new Array(o-l.length+2).join("0")}const mx={"%":(t,a)=>(t*100).toFixed(a),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Nz,e:(t,a)=>t.toExponential(a),f:(t,a)=>t.toFixed(a),g:(t,a)=>t.toPrecision(a),o:t=>Math.round(t).toString(8),p:(t,a)=>hx(t*100,a),r:hx,s:Mz,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function px(t){return t}var gx=Array.prototype.map,vx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function jz(t){var a=t.grouping===void 0||t.thousands===void 0?px:Tz(gx.call(t.grouping,Number),t.thousands+""),i=t.currency===void 0?"":t.currency[0]+"",l=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",u=t.numerals===void 0?px:_z(gx.call(t.numerals,String)),f=t.percent===void 0?"%":t.percent+"",h=t.minus===void 0?"−":t.minus+"",g=t.nan===void 0?"NaN":t.nan+"";function p(y){y=du(y);var x=y.fill,S=y.align,M=y.sign,N=y.symbol,E=y.zero,A=y.width,z=y.comma,R=y.precision,H=y.trim,k=y.type;k==="n"?(z=!0,k="g"):mx[k]||(R===void 0&&(R=12),H=!0,k="g"),(E||x==="0"&&S==="=")&&(E=!0,x="0",S="=");var q=N==="$"?i:N==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",V=N==="$"?l:/[%p]/.test(k)?f:"",G=mx[k],ae=/[defgprs%]/.test(k);R=R===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,R)):Math.max(0,Math.min(20,R));function fe(B){var ee=q,oe=V,C,F,_;if(k==="c")oe=G(B)+oe,B="";else{B=+B;var P=B<0||1/B<0;if(B=isNaN(B)?g:G(Math.abs(B),R),H&&(B=Cz(B)),P&&+B==0&&M!=="+"&&(P=!1),ee=(P?M==="("?M:h:M==="-"||M==="("?"":M)+ee,oe=(k==="s"?vx[8+uS/3]:"")+oe+(P&&M==="("?")":""),ae){for(C=-1,F=B.length;++C<F;)if(_=B.charCodeAt(C),48>_||_>57){oe=(_===46?o+B.slice(C+1):B.slice(C))+oe,B=B.slice(0,C);break}}}z&&!E&&(B=a(B,1/0));var L=ee.length+B.length+oe.length,re=L<A?new Array(A-L+1).join(x):"";switch(z&&E&&(B=a(re+B,re.length?A-oe.length:1/0),re=""),S){case"<":B=ee+B+oe+re;break;case"=":B=ee+re+B+oe;break;case"^":B=re.slice(0,L=re.length>>1)+ee+B+oe+re.slice(L);break;default:B=re+ee+B+oe;break}return u(B)}return fe.toString=function(){return y+""},fe}function v(y,x){var S=p((y=du(y),y.type="f",y)),M=Math.max(-8,Math.min(8,Math.floor(ml(x)/3)))*3,N=Math.pow(10,-M),E=vx[8+M/3];return function(A){return S(N*A)+E}}return{format:p,formatPrefix:v}}var zc,fS,dS;Rz({thousands:",",grouping:[3],currency:["$",""]});function Rz(t){return zc=jz(t),fS=zc.format,dS=zc.formatPrefix,zc}function Oz(t){return Math.max(0,-ml(Math.abs(t)))}function zz(t,a){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ml(a)/3)))*3-ml(Math.abs(t)))}function Dz(t,a){return t=Math.abs(t),a=Math.abs(a)-t,Math.max(0,ml(a)-ml(t))+1}function hS(t,a){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(a).domain(t);break}return this}function kz(t){return function(){return t}}function Lz(t){return+t}var yx=[0,1];function Qn(t){return t}function tm(t,a){return(a-=t=+t)?function(i){return(i-t)/a}:kz(isNaN(a)?NaN:.5)}function Uz(t,a){var i;return t>a&&(i=t,t=a,a=i),function(l){return Math.max(t,Math.min(a,l))}}function Hz(t,a,i){var l=t[0],o=t[1],u=a[0],f=a[1];return o<l?(l=tm(o,l),u=i(f,u)):(l=tm(l,o),u=i(u,f)),function(h){return u(l(h))}}function Bz(t,a,i){var l=Math.min(t.length,a.length)-1,o=new Array(l),u=new Array(l),f=-1;for(t[l]<t[0]&&(t=t.slice().reverse(),a=a.slice().reverse());++f<l;)o[f]=tm(t[f],t[f+1]),u[f]=i(a[f],a[f+1]);return function(h){var g=B3(t,h,1,l)-1;return u[g](o[g](h))}}function mS(t,a){return a.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function pS(){var t=yx,a=yx,i=Ym,l,o,u,f=Qn,h,g,p;function v(){var x=Math.min(t.length,a.length);return f!==Qn&&(f=Uz(t[0],t[x-1])),h=x>2?Bz:Hz,g=p=null,y}function y(x){return x==null||isNaN(x=+x)?u:(g||(g=h(t.map(l),a,i)))(l(f(x)))}return y.invert=function(x){return f(o((p||(p=h(a,t.map(l),An)))(x)))},y.domain=function(x){return arguments.length?(t=Array.from(x,Lz),v()):t.slice()},y.range=function(x){return arguments.length?(a=Array.from(x),v()):a.slice()},y.rangeRound=function(x){return a=Array.from(x),i=r4,v()},y.clamp=function(x){return arguments.length?(f=x?!0:Qn,v()):f!==Qn},y.interpolate=function(x){return arguments.length?(i=x,v()):i},y.unknown=function(x){return arguments.length?(u=x,y):u},function(x,S){return l=x,o=S,v()}}function qz(){return pS()(Qn,Qn)}function Pz(t,a,i,l){var o=I3(t,a,i),u;switch(l=du(l??",f"),l.type){case"s":{var f=Math.max(Math.abs(t),Math.abs(a));return l.precision==null&&!isNaN(u=zz(o,f))&&(l.precision=u),dS(l,f)}case"":case"e":case"g":case"p":case"r":{l.precision==null&&!isNaN(u=Dz(o,Math.max(Math.abs(t),Math.abs(a))))&&(l.precision=u-(l.type==="e"));break}case"f":case"%":{l.precision==null&&!isNaN(u=Oz(o))&&(l.precision=u-(l.type==="%")*2);break}}return fS(l)}function gS(t){var a=t.domain;return t.ticks=function(i){var l=a();return K3(l[0],l[l.length-1],i??10)},t.tickFormat=function(i,l){var o=a();return Pz(o[0],o[o.length-1],i??10,l)},t.nice=function(i){i==null&&(i=10);var l=a(),o=0,u=l.length-1,f=l[o],h=l[u],g,p,v=10;for(h<f&&(p=f,f=h,h=p,p=o,o=u,u=p);v-- >0;){if(p=Qh(f,h,i),p===g)return l[o]=f,l[u]=h,a(l);if(p>0)f=Math.floor(f/p)*p,h=Math.ceil(h/p)*p;else if(p<0)f=Math.ceil(f*p)/p,h=Math.floor(h*p)/p;else break;g=p}return t},t}function nm(){var t=qz();return t.copy=function(){return mS(t,nm())},hS.apply(t,arguments),gS(t)}function xx(t){return function(a){return a<0?-Math.pow(-a,t):Math.pow(a,t)}}function Vz(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Gz(t){return t<0?-t*t:t*t}function Yz(t){var a=t(Qn,Qn),i=1;function l(){return i===1?t(Qn,Qn):i===.5?t(Vz,Gz):t(xx(i),xx(1/i))}return a.exponent=function(o){return arguments.length?(i=+o,l()):i},gS(a)}function vS(){var t=Yz(pS());return t.copy=function(){return mS(t,vS()).exponent(t.exponent())},hS.apply(t,arguments),t}function Qz(){return vS.apply(null,arguments).exponent(.5)}const Dc=t=>()=>t;function Xz(t,{sourceEvent:a,target:i,transform:l,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:l,enumerable:!0,configurable:!0},_:{value:o}})}function ya(t,a,i){this.k=t,this.x=a,this.y=i}ya.prototype={constructor:ya,scale:function(t){return t===1?this:new ya(this.k*t,this.x,this.y)},translate:function(t,a){return t===0&a===0?this:new ya(this.k,this.x+this.k*t,this.y+this.k*a)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var yS=new ya(1,0,0);ya.prototype;function dh(t){t.stopImmediatePropagation()}function Ns(t){t.preventDefault(),t.stopImmediatePropagation()}function $z(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Fz(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function bx(){return this.__zoom||yS}function Kz(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Iz(){return navigator.maxTouchPoints||"ontouchstart"in this}function Zz(t,a,i){var l=t.invertX(a[0][0])-i[0][0],o=t.invertX(a[1][0])-i[1][0],u=t.invertY(a[0][1])-i[0][1],f=t.invertY(a[1][1])-i[1][1];return t.translate(o>l?(l+o)/2:Math.min(0,l)||Math.max(0,o),f>u?(u+f)/2:Math.min(0,u)||Math.max(0,f))}function Jz(){var t=$z,a=Fz,i=Zz,l=Kz,o=Iz,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,g=d4,p=Bm("start","zoom","end"),v,y,x,S=500,M=150,N=0,E=10;function A(C){C.property("__zoom",bx).on("wheel.zoom",G,{passive:!1}).on("mousedown.zoom",ae).on("dblclick.zoom",fe).filter(o).on("touchstart.zoom",B).on("touchmove.zoom",ee).on("touchend.zoom touchcancel.zoom",oe).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}A.transform=function(C,F,_,P){var L=C.selection?C.selection():C;L.property("__zoom",bx),C!==L?k(C,F,_,P):L.interrupt().each(function(){q(this,arguments).event(P).start().zoom(null,typeof F=="function"?F.apply(this,arguments):F).end()})},A.scaleBy=function(C,F,_,P){A.scaleTo(C,function(){var L=this.__zoom.k,re=typeof F=="function"?F.apply(this,arguments):F;return L*re},_,P)},A.scaleTo=function(C,F,_,P){A.transform(C,function(){var L=a.apply(this,arguments),re=this.__zoom,j=_==null?H(L):typeof _=="function"?_.apply(this,arguments):_,I=re.invert(j),le=typeof F=="function"?F.apply(this,arguments):F;return i(R(z(re,le),j,I),L,f)},_,P)},A.translateBy=function(C,F,_,P){A.transform(C,function(){return i(this.__zoom.translate(typeof F=="function"?F.apply(this,arguments):F,typeof _=="function"?_.apply(this,arguments):_),a.apply(this,arguments),f)},null,P)},A.translateTo=function(C,F,_,P,L){A.transform(C,function(){var re=a.apply(this,arguments),j=this.__zoom,I=P==null?H(re):typeof P=="function"?P.apply(this,arguments):P;return i(yS.translate(I[0],I[1]).scale(j.k).translate(typeof F=="function"?-F.apply(this,arguments):-F,typeof _=="function"?-_.apply(this,arguments):-_),re,f)},P,L)};function z(C,F){return F=Math.max(u[0],Math.min(u[1],F)),F===C.k?C:new ya(F,C.x,C.y)}function R(C,F,_){var P=F[0]-_[0]*C.k,L=F[1]-_[1]*C.k;return P===C.x&&L===C.y?C:new ya(C.k,P,L)}function H(C){return[(+C[0][0]+ +C[1][0])/2,(+C[0][1]+ +C[1][1])/2]}function k(C,F,_,P){C.on("start.zoom",function(){q(this,arguments).event(P).start()}).on("interrupt.zoom end.zoom",function(){q(this,arguments).event(P).end()}).tween("zoom",function(){var L=this,re=arguments,j=q(L,re).event(P),I=a.apply(L,re),le=_==null?H(I):typeof _=="function"?_.apply(L,re):_,Q=Math.max(I[1][0]-I[0][0],I[1][1]-I[0][1]),J=L.__zoom,ue=typeof F=="function"?F.apply(L,re):F,se=g(J.invert(le).concat(Q/J.k),ue.invert(le).concat(Q/ue.k));return function(W){if(W===1)W=ue;else{var ce=se(W),ge=Q/ce[2];W=new ya(ge,le[0]-ce[0]*ge,le[1]-ce[1]*ge)}j.zoom(null,W)}})}function q(C,F,_){return!_&&C.__zooming||new V(C,F)}function V(C,F){this.that=C,this.args=F,this.active=0,this.sourceEvent=null,this.extent=a.apply(C,F),this.taps=0}V.prototype={event:function(C){return C&&(this.sourceEvent=C),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(C,F){return this.mouse&&C!=="mouse"&&(this.mouse[1]=F.invert(this.mouse[0])),this.touch0&&C!=="touch"&&(this.touch0[1]=F.invert(this.touch0[0])),this.touch1&&C!=="touch"&&(this.touch1[1]=F.invert(this.touch1[0])),this.that.__zoom=F,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(C){var F=Gn(this.that).datum();p.call(C,this.that,new Xz(C,{sourceEvent:this.sourceEvent,target:A,transform:this.that.__zoom,dispatch:p}),F)}};function G(C,...F){if(!t.apply(this,arguments))return;var _=q(this,F).event(C),P=this.__zoom,L=Math.max(u[0],Math.min(u[1],P.k*Math.pow(2,l.apply(this,arguments)))),re=zr(C);if(_.wheel)(_.mouse[0][0]!==re[0]||_.mouse[0][1]!==re[1])&&(_.mouse[1]=P.invert(_.mouse[0]=re)),clearTimeout(_.wheel);else{if(P.k===L)return;_.mouse=[re,P.invert(re)],Qc(this),_.start()}Ns(C),_.wheel=setTimeout(j,M),_.zoom("mouse",i(R(z(P,L),_.mouse[0],_.mouse[1]),_.extent,f));function j(){_.wheel=null,_.end()}}function ae(C,...F){if(x||!t.apply(this,arguments))return;var _=C.currentTarget,P=q(this,F,!0).event(C),L=Gn(C.view).on("mousemove.zoom",le,!0).on("mouseup.zoom",Q,!0),re=zr(C,_),j=C.clientX,I=C.clientY;DO(C.view),dh(C),P.mouse=[re,this.__zoom.invert(re)],Qc(this),P.start();function le(J){if(Ns(J),!P.moved){var ue=J.clientX-j,se=J.clientY-I;P.moved=ue*ue+se*se>N}P.event(J).zoom("mouse",i(R(P.that.__zoom,P.mouse[0]=zr(J,_),P.mouse[1]),P.extent,f))}function Q(J){L.on("mousemove.zoom mouseup.zoom",null),kO(J.view,P.moved),Ns(J),P.event(J).end()}}function fe(C,...F){if(t.apply(this,arguments)){var _=this.__zoom,P=zr(C.changedTouches?C.changedTouches[0]:C,this),L=_.invert(P),re=_.k*(C.shiftKey?.5:2),j=i(R(z(_,re),P,L),a.apply(this,F),f);Ns(C),h>0?Gn(this).transition().duration(h).call(k,j,P,C):Gn(this).call(A.transform,j,P,C)}}function B(C,...F){if(t.apply(this,arguments)){var _=C.touches,P=_.length,L=q(this,F,C.changedTouches.length===P).event(C),re,j,I,le;for(dh(C),j=0;j<P;++j)I=_[j],le=zr(I,this),le=[le,this.__zoom.invert(le),I.identifier],L.touch0?!L.touch1&&L.touch0[2]!==le[2]&&(L.touch1=le,L.taps=0):(L.touch0=le,re=!0,L.taps=1+!!v);v&&(v=clearTimeout(v)),re&&(L.taps<2&&(y=le[0],v=setTimeout(function(){v=null},S)),Qc(this),L.start())}}function ee(C,...F){if(this.__zooming){var _=q(this,F).event(C),P=C.changedTouches,L=P.length,re,j,I,le;for(Ns(C),re=0;re<L;++re)j=P[re],I=zr(j,this),_.touch0&&_.touch0[2]===j.identifier?_.touch0[0]=I:_.touch1&&_.touch1[2]===j.identifier&&(_.touch1[0]=I);if(j=_.that.__zoom,_.touch1){var Q=_.touch0[0],J=_.touch0[1],ue=_.touch1[0],se=_.touch1[1],W=(W=ue[0]-Q[0])*W+(W=ue[1]-Q[1])*W,ce=(ce=se[0]-J[0])*ce+(ce=se[1]-J[1])*ce;j=z(j,Math.sqrt(W/ce)),I=[(Q[0]+ue[0])/2,(Q[1]+ue[1])/2],le=[(J[0]+se[0])/2,(J[1]+se[1])/2]}else if(_.touch0)I=_.touch0[0],le=_.touch0[1];else return;_.zoom("touch",i(R(j,I,le),_.extent,f))}}function oe(C,...F){if(this.__zooming){var _=q(this,F).event(C),P=C.changedTouches,L=P.length,re,j;for(dh(C),x&&clearTimeout(x),x=setTimeout(function(){x=null},S),re=0;re<L;++re)j=P[re],_.touch0&&_.touch0[2]===j.identifier?delete _.touch0:_.touch1&&_.touch1[2]===j.identifier&&delete _.touch1;if(_.touch1&&!_.touch0&&(_.touch0=_.touch1,delete _.touch1),_.touch0)_.touch0[1]=this.__zoom.invert(_.touch0[0]);else if(_.end(),_.taps===2&&(j=zr(j,this),Math.hypot(y[0]-j[0],y[1]-j[1])<E)){var I=Gn(this).on("dblclick.zoom");I&&I.apply(this,arguments)}}}return A.wheelDelta=function(C){return arguments.length?(l=typeof C=="function"?C:Dc(+C),A):l},A.filter=function(C){return arguments.length?(t=typeof C=="function"?C:Dc(!!C),A):t},A.touchable=function(C){return arguments.length?(o=typeof C=="function"?C:Dc(!!C),A):o},A.extent=function(C){return arguments.length?(a=typeof C=="function"?C:Dc([[+C[0][0],+C[0][1]],[+C[1][0],+C[1][1]]]),A):a},A.scaleExtent=function(C){return arguments.length?(u[0]=+C[0],u[1]=+C[1],A):[u[0],u[1]]},A.translateExtent=function(C){return arguments.length?(f[0][0]=+C[0][0],f[1][0]=+C[1][0],f[0][1]=+C[0][1],f[1][1]=+C[1][1],A):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},A.constrain=function(C){return arguments.length?(i=C,A):i},A.duration=function(C){return arguments.length?(h=+C,A):h},A.interpolate=function(C){return arguments.length?(g=C,A):g},A.on=function(){var C=p.on.apply(p,arguments);return C===p?A:C},A.clickDistance=function(C){return arguments.length?(N=(C=+C)*C,A):Math.sqrt(N)},A.tapDistance=function(C){return arguments.length?(E=+C,A):E},A}const Wz=t=>`var(--color-semantic-${t.toLowerCase().replace(/\s+/g,"_")}, var(--color-semantic-unknown))`,eD=["ui_component","page_component","layout_component","modal_component","form_component","hook","context","state_management","api_integration","data_model","utility","configuration","styling","testing","documentation","error_handling","performance","security","monitoring","type_definition","business_logic","algorithm","unknown"];function tD(){var N;const[t,a]=w.useState(!0),[i,l]=w.useState(null),[o,u]=w.useState(null),[f,h]=w.useState(null),[g,p]=w.useState(null),v=w.useRef(null),y=w.useRef(null),x=w.useCallback(async()=>{a(!0);try{const E=await fetch("/api/vector-db/projection");if(E.ok){const A=await E.json();l(A)}}catch(E){console.error("Failed to fetch projection data:",E)}finally{a(!1)}},[]);w.useEffect(()=>{x()},[x]),w.useEffect(()=>{if(!f){p(null);return}fetch(`/api/files/${f.filePath}`).then(E=>E.ok?E.text():null).then(E=>p(E)).catch(()=>p(null))},[f]),w.useEffect(()=>{if(!i||i.points.length===0||!v.current||!y.current)return;const E=Gn(v.current);E.selectAll("*").remove();const A=y.current,z=A.clientWidth,R=500;E.attr("width",z).attr("height",R);const H=i.points,k=$0(H,C=>C.x),q=$0(H,C=>C.y),V=40,G=nm().domain([k[0]-(k[1]-k[0])*.05,k[1]+(k[1]-k[0])*.05]).range([V,z-V]),ae=nm().domain([q[0]-(q[1]-q[0])*.05,q[1]+(q[1]-q[0])*.05]).range([R-V,V]),fe=Qz().domain([0,Z3(H,C=>C.complexity)||1]).range([3,12]),B=E.append("g"),ee=Jz().scaleExtent([.3,10]).on("zoom",C=>{B.attr("transform",C.transform)});E.call(ee),Y3(H,C=>C.directory).forEach((C,F)=>{if(C.length<2||F===".")return;const _=I0(C,L=>G(L.x)),P=I0(C,L=>ae(L.y));B.append("text").attr("x",_).attr("y",P).attr("text-anchor","middle").attr("class","fill-muted-foreground/40").style("font-size","9px").style("font-weight","300").style("letter-spacing","0.05em").style("text-transform","uppercase").style("pointer-events","none").text(F.split("/").pop()||F)}),B.selectAll("circle").data(H).join("circle").attr("cx",C=>G(C.x)).attr("cy",C=>ae(C.y)).attr("r",C=>fe(C.complexity)).attr("fill",C=>Wz(C.purpose)).attr("opacity",.75).attr("stroke","transparent").attr("stroke-width",1.5).style("cursor","pointer").on("mouseenter",function(C,F){Gn(this).attr("opacity",1).attr("stroke","var(--foreground)");const _=A.getBoundingClientRect();u({point:F,x:C.clientX-_.left,y:C.clientY-_.top})}).on("mousemove",function(C){const F=A.getBoundingClientRect();u(_=>_?{..._,x:C.clientX-F.left,y:C.clientY-F.top}:null)}).on("mouseleave",function(){Gn(this).attr("opacity",.75).attr("stroke","transparent"),u(null)}).on("click",function(C,F){h(_=>(_==null?void 0:_.id)===F.id?null:F)})},[i]);const S=i?(()=>{const E=new Map;for(const A of i.points){const z=A.purpose.toLowerCase().replace(/\s+/g,"_");E.set(z,(E.get(z)||0)+1)}return eD.filter(A=>E.has(A)).map(A=>({category:A,count:E.get(A)}))})():[],M=!t&&(!i||i.points.length===0);return m.jsxs("div",{className:"w-full space-y-6",children:[m.jsxs("header",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsxs("h1",{className:"text-lg font-thin tracking-tight flex items-center gap-2",children:[m.jsx($d,{className:"w-4 h-4 text-vesper-accent"}),"Semantic Landscape"]}),m.jsx("p",{className:"text-xs text-muted-foreground font-thin",children:"Visualizing the code's conceptual clusters"})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[(i==null?void 0:i.meta.cached)&&m.jsx(We,{variant:"outline",className:"border-vesper font-thin text-[10px] uppercase tracking-widest",children:"cached"}),m.jsxs(We,{variant:"outline",className:"border-vesper font-thin text-[10px] uppercase tracking-widest",children:[m.jsx(Fc,{className:"w-3 h-3 mr-1"}),(i==null?void 0:i.meta.totalPoints)||0," points"]}),m.jsx("button",{onClick:x,disabled:t,className:"p-1.5 rounded border border-vesper hover:bg-vesper-card/80 transition-colors disabled:opacity-50",children:m.jsx(y_,{className:`w-3.5 h-3.5 ${t?"animate-spin":""}`})})]})]}),m.jsx(at,{className:"border-vesper bg-vesper-card overflow-hidden",children:m.jsxs("div",{ref:y,className:"relative w-full h-[500px]",children:[M?m.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:m.jsxs("div",{className:"flex flex-col items-center gap-3 max-w-md text-center px-6",children:[m.jsx($d,{className:"w-10 h-10 text-muted-foreground/30"}),m.jsxs("p",{className:"text-sm text-muted-foreground font-thin",children:["No vector embeddings found. Embeddings are generated automatically during"," ",m.jsx("code",{className:"text-[11px] bg-muted px-1.5 py-0.5 rounded",children:"cntx-ui watch"})," ","when semantic analysis runs."]}),m.jsx("p",{className:"text-xs text-muted-foreground/60 font-thin",children:"Start the watcher in your project directory and wait for the initial analysis to complete."})]})}):m.jsx("svg",{ref:v,className:"w-full h-full"}),o&&m.jsxs("div",{className:"absolute z-50 bg-background/95 border border-vesper p-3 rounded shadow-xl pointer-events-none",style:{left:Math.min(o.x+12,(((N=y.current)==null?void 0:N.clientWidth)||400)-280),top:Math.min(o.y+12,400)},children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx(Kc,{className:"w-3 h-3 text-vesper-accent"}),m.jsx("span",{className:"text-xs font-bold",children:o.point.name})]}),m.jsx("div",{className:"text-[10px] text-muted-foreground font-mono mb-2",children:o.point.filePath}),m.jsx("div",{className:"text-[11px] line-clamp-2 max-w-[250px]",children:o.point.purpose}),m.jsxs("div",{className:"mt-2 flex gap-2 flex-wrap",children:[m.jsx(We,{variant:"outline",className:"text-[9px] border-vesper",children:o.point.semanticType}),m.jsxs(We,{variant:"outline",className:"text-[9px] border-vesper",children:["Complexity: ",o.point.complexity]})]})]}),t&&m.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-background/50 backdrop-blur-sm",children:m.jsxs("div",{className:"flex flex-col items-center gap-2",children:[m.jsx($d,{className:"w-8 h-8 animate-pulse text-vesper-accent"}),m.jsx("span",{className:"text-xs font-thin tracking-widest uppercase",children:"Projecting Intelligence..."})]})})]})}),f&&m.jsxs(at,{className:"border-vesper bg-vesper-card p-4",children:[m.jsxs("div",{className:"flex items-center justify-between mb-3",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Kc,{className:"w-4 h-4 text-vesper-accent"}),m.jsx("span",{className:"text-sm font-medium",children:f.name})]}),m.jsx("button",{onClick:()=>h(null),className:"text-xs text-muted-foreground hover:text-foreground",children:"close"})]}),m.jsx("div",{className:"text-xs text-muted-foreground font-mono mb-2",children:f.filePath}),m.jsxs("div",{className:"flex gap-2 mb-3 flex-wrap",children:[m.jsx(We,{variant:"outline",className:"text-[9px] border-vesper",children:f.semanticType}),m.jsx(We,{variant:"outline",className:"text-[9px] border-vesper",children:f.purpose}),m.jsxs(We,{variant:"outline",className:"text-[9px] border-vesper",children:["Complexity: ",f.complexity]})]}),g&&m.jsxs("pre",{className:"text-[11px] font-mono bg-muted/30 rounded p-3 overflow-x-auto max-h-[300px] overflow-y-auto leading-relaxed",children:[g.split(`
|
|
340
|
+
`).slice(0,80).join(`
|
|
341
|
+
`),g.split(`
|
|
342
|
+
`).length>80&&`
|
|
343
|
+
... (truncated)`]})]}),S.length>0&&m.jsx("div",{className:"flex flex-wrap gap-2",children:S.map(({category:E,count:A})=>m.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 border border-vesper rounded bg-vesper-card/50",children:[m.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:`var(--color-semantic-${E})`}}),m.jsx("span",{className:"text-[10px] uppercase tracking-widest font-thin",children:E.replace(/_/g," ")}),m.jsx("span",{className:"text-[9px] text-muted-foreground",children:A})]},E))})]})}function xS({className:t,...a}){return m.jsx("textarea",{"data-slot":"textarea",className:Ye("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...a})}var nD="Label",bS=w.forwardRef((t,a)=>m.jsx(Ue.label,{...t,ref:a,onMouseDown:i=>{var o;i.target.closest("button, input, select, textarea")||((o=t.onMouseDown)==null||o.call(t,i),!i.defaultPrevented&&i.detail>1&&i.preventDefault())}}));bS.displayName=nD;var aD=bS;function wx({className:t,...a}){return m.jsx(aD,{"data-slot":"label",className:Ye("flex items-center gap-2 text-sm leading-none font-thin select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...a})}const rD=async()=>{const t=await fetch("http://localhost:3333/api/config");if(!t.ok)throw new Error("Failed to fetch config");return t.json()},iD=async t=>{const a=await fetch("http://localhost:3333/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!a.ok)throw new Error("Failed to save config");return a.json()};function lD(){const t=Xs(),[a,i]=w.useState("code"),[l,o]=w.useState(""),{data:u,isLoading:f}=or({queryKey:["config"],queryFn:rD});w.useEffect(()=>{u!=null&&u.editor&&(["code","subl","system"].includes(u.editor)?i(u.editor):(i("custom"),o(u.editor)))},[u]);const h=Zx({mutationFn:iD,onSuccess:()=>{t.invalidateQueries({queryKey:["config"]}),Nt.success("Editor preference saved")},onError:p=>{Nt.error(`Failed to save: ${p.message}`)}}),g=()=>{const v={...u,editor:a==="custom"?l:a};h.mutate(v)};return m.jsxs(at,{children:[m.jsx(Dt,{children:m.jsxs(Vt,{className:"flex items-center gap-2 text-sm font-thin",children:[m.jsx(Ob,{className:"w-4 h-4"}),"Editor Preference"]})}),m.jsxs(bt,{className:"space-y-4",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx(wx,{htmlFor:"editor-select",children:"Select your preferred editor"}),m.jsxs(Sw,{value:a,onValueChange:i,children:[m.jsx(Dm,{id:"editor-select",children:m.jsx(Ew,{placeholder:"Select an editor"})}),m.jsxs(km,{children:[m.jsx(Xi,{value:"code",children:"Visual Studio Code"}),m.jsx(Xi,{value:"subl",children:"Sublime Text"}),m.jsx(Xi,{value:"system",children:"System Default"}),m.jsx(Xi,{value:"custom",children:"Custom"})]})]})]}),a==="custom"&&m.jsxs("div",{className:"space-y-2",children:[m.jsx(wx,{htmlFor:"custom-editor-input",children:"Custom editor command"}),m.jsx(Uw,{id:"custom-editor-input",value:l,onChange:p=>o(p.target.value),placeholder:"e.g., atom -w"})]}),m.jsx("div",{className:"flex justify-end",children:m.jsxs(mt,{onClick:g,disabled:h.isPending,size:"sm",className:"h-7 text-xs",children:[m.jsx(jb,{className:"w-3 h-3 mr-1"}),h.isPending?"Saving...":"Save"]})})]})]})}const sD=async t=>{const a=await fetch(`http://localhost:3333/api/${t}`);if(!a.ok)throw new Error(`Failed to fetch ${t} file`);return a.text()},oD=async({endpoint:t,content:a})=>{const i=await fetch(`http://localhost:3333/api/${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:a})});if(!i.ok)throw new Error(`Failed to save ${t} file`);return i.json()};function Sx({fileType:t,endpoint:a,filePath:i}){const l=Xs(),[o,u]=w.useState(""),[f,h]=w.useState(!1),{data:g,isLoading:p}=or({queryKey:[t],queryFn:()=>sD(a)});w.useEffect(()=>{g!==void 0&&(u(g),h(!1))},[g]);const v=Zx({mutationFn:oD,onSuccess:()=>{l.invalidateQueries({queryKey:[t]}),h(!1),Nt.success(`${t} file saved`)},onError:E=>Nt.error(`Failed to save: ${E.message}`)}),y=E=>{u(E),h(E!==g)},x=()=>{v.mutate({endpoint:a,content:o})},S=()=>{u(g||""),h(!1)},M=async()=>{try{await navigator.clipboard.writeText(o),Nt.success("Copied to clipboard")}catch(E){console.error("Failed to copy to clipboard:",E),Nt.error("Copy failed")}},N=async()=>{try{const E=await fetch("http://localhost:3333/api/open-file",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filePath:i})});if(!E.ok){const A=await E.json();throw new Error(A.error||"Failed to open file")}Nt.success(`Opening ${t} in editor...`)}catch(E){console.error("Failed to open in editor:",E),Nt.error(`Could not open file: ${E.message}`)}};return m.jsxs(at,{children:[m.jsxs(Dt,{className:"flex flex-row items-center justify-between",children:[m.jsxs(Vt,{className:"flex items-center gap-2 text-sm font-thin",children:[m.jsx(IT,{className:"w-4 h-4"}),t]}),m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsx(mt,{variant:"ghost",size:"sm",onClick:M,className:"h-7 px-2",children:m.jsx(GT,{className:"w-3 h-3"})}),m.jsx(mt,{variant:"ghost",size:"sm",onClick:N,className:"h-7 px-2",children:m.jsx(Cb,{className:"w-3 h-3"})}),f&&m.jsxs(mt,{variant:"outline",size:"sm",onClick:S,className:"h-7 text-xs",children:[m.jsx(g_,{className:"w-3 h-3 mr-1"}),"Reset"]}),m.jsxs(mt,{onClick:x,disabled:!f||v.isPending,size:"sm",className:"h-7 text-xs",children:[m.jsx(jb,{className:"w-3 h-3 mr-1"}),v.isPending?"Saving...":"Save"]})]})]}),m.jsx(bt,{className:"space-y-4",children:p?m.jsxs("div",{className:"text-center py-8 text-muted-foreground",children:["Loading ",t," file..."]}):m.jsxs(m.Fragment,{children:[m.jsx(xS,{value:o,onChange:E=>y(E.target.value),placeholder:`# Add ignore patterns for ${t}, one per line`,className:"min-h-[300px] font-mono text-xs"}),m.jsxs("div",{className:"text-xs text-muted-foreground",children:[o.split(`
|
|
344
|
+
`).filter(E=>E.trim()&&!E.trim().startsWith("#")).length," active patterns"]})]})})]})}function cD(){return m.jsxs("div",{className:"space-y-6",children:[m.jsxs(Is,{defaultValue:"cntxignore",children:[m.jsxs(Zs,{children:[m.jsx(an,{value:"cntxignore",children:".cntxignore"}),m.jsx(an,{value:"gitignore",children:".gitignore"})]}),m.jsx(yn,{value:"cntxignore",children:m.jsx(Sx,{fileType:".cntxignore",endpoint:"cntxignore",filePath:".cntxignore"})}),m.jsx(yn,{value:"gitignore",children:m.jsx(Sx,{fileType:".gitignore",endpoint:"gitignore",filePath:".gitignore"})})]}),m.jsx(at,{children:m.jsx(bt,{className:"pt-6",children:m.jsxs("div",{className:"text-xs text-muted-foreground space-y-2",children:[m.jsx("div",{children:m.jsx("strong",{children:"Common patterns:"})}),m.jsxs("div",{children:["• ",m.jsx("code",{children:"node_modules/**"})," - Ignore all node_modules"]}),m.jsxs("div",{children:["• ",m.jsx("code",{children:"*.log"})," - Ignore log files"]}),m.jsxs("div",{children:["• ",m.jsx("code",{children:"src/debug/**"})," - Ignore debug directory"]}),m.jsxs("div",{children:["• ",m.jsx("code",{children:"**/*.test.*"})," - Ignore test files"]}),m.jsxs("div",{children:["• ",m.jsx("code",{children:".git/**"})," - Ignore git directory"]})]})})})]})}function uD(){return m.jsxs(Is,{defaultValue:"ignore",children:[m.jsxs(Zs,{children:[m.jsx(an,{value:"ignore",children:"File Ignore Patterns"}),m.jsx(an,{value:"editor",children:"Editor Preference"})]}),m.jsx(yn,{value:"ignore",children:m.jsx(cD,{})}),m.jsx(yn,{value:"editor",children:m.jsx(lD,{})})]})}function fD(){return m.jsxs(at,{className:"border-vesper bg-vesper-card",children:[m.jsx(Dt,{children:m.jsxs(Vt,{className:"flex items-center gap-2 text-sm font-thin color-vesper-fg",children:[m.jsx(QT,{className:"w-4 h-4 text-vesper-accent"}),"Getting Started"]})}),m.jsxs(bt,{className:"space-y-6",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx("h4",{className:"text-[11px] font-thin uppercase tracking-widest color-vesper-muted",children:"What is cntx-ui?"}),m.jsx("p",{className:"text-xs color-vesper-fg leading-relaxed",children:"cntx-ui bundles your project files into organized context packages for LLMs. It parses code with tree-sitter, generates semantic embeddings, and exposes everything via MCP so AI tools can understand your codebase."})]}),m.jsxs("div",{className:"space-y-4",children:[m.jsx("h4",{className:"text-[11px] font-thin uppercase tracking-widest color-vesper-muted",children:"Quick Start"}),m.jsxs("div",{className:"p-3 border border-vesper/50 rounded bg-black/20",children:[m.jsx("p",{className:"text-[11px] color-vesper-fg font-mono mb-2",children:"$ cntx-ui"}),m.jsxs("p",{className:"text-[10px] color-vesper-muted",children:["That's it. Run ",m.jsx("code",{className:"color-vesper-accent",children:"cntx-ui"})," in your project directory. It auto-initializes if needed and starts the web server at ",m.jsx("code",{className:"color-vesper-accent",children:"http://localhost:3333"}),"."]})]}),m.jsx("div",{className:"p-3 border border-vesper/50 rounded bg-black/20",children:m.jsxs("p",{className:"text-[10px] color-vesper-muted",children:["A ",m.jsx("code",{className:"color-vesper-accent",children:".mcp.json"})," file is created automatically so Claude Code can discover the MCP server. No extra setup needed."]})})]})]})]})}function dD(){return m.jsxs(at,{className:"border-vesper bg-vesper-card",children:[m.jsx(Dt,{children:m.jsxs(Vt,{className:"flex items-center gap-2 text-sm font-thin color-vesper-fg",children:[m.jsx(Fc,{className:"w-4 h-4 text-vesper-accent"}),"How It Works"]})}),m.jsx(bt,{className:"space-y-6",children:m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsxs("div",{className:"flex items-center gap-2 color-vesper-accent",children:[m.jsx(Fc,{className:"w-3 h-3"}),m.jsx("span",{className:"text-[11px] uppercase tracking-tighter font-bold",children:"Persistence"})]}),m.jsxs("p",{className:"text-[10px] color-vesper-muted",children:["Embeddings and chunks are stored in SQLite (",m.jsx("code",{children:".cntx/bundles.db"}),"). Zero re-indexing on startup."]})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsxs("div",{className:"flex items-center gap-2 color-vesper-accent",children:[m.jsx(Rb,{className:"w-3 h-3"}),m.jsx("span",{className:"text-[11px] uppercase tracking-tighter font-bold",children:"RAG Engine"})]}),m.jsx("p",{className:"text-[10px] color-vesper-muted",children:"Local vector search powered by Transformers.js. MCP tools can search your code by meaning, not just keywords."})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsxs("div",{className:"flex items-center gap-2 color-vesper-accent",children:[m.jsx(s_,{className:"w-3 h-3"}),m.jsx("span",{className:"text-[11px] uppercase tracking-tighter font-bold",children:"Tree-sitter"})]}),m.jsx("p",{className:"text-[10px] color-vesper-muted",children:"AST parsing extracts functions, types, and components at the syntax level for precise code understanding."})]})]})})]})}function hD(){return m.jsxs(at,{className:"border-vesper bg-vesper-card",children:[m.jsx(Dt,{children:m.jsxs(Vt,{className:"flex items-center gap-2 text-sm font-thin color-vesper-fg",children:[m.jsx(R_,{className:"w-4 h-4 text-vesper-accent"}),"CLI Reference"]})}),m.jsx(bt,{children:m.jsx("div",{className:"space-y-4",children:[{cmd:"cntx-ui",desc:"Auto-init if needed, then start the web server (default: 3333)."},{cmd:"cntx-ui init",desc:"Initialize configuration in the current directory."},{cmd:"cntx-ui mcp",desc:"Start MCP server on stdio for agent integrations."},{cmd:"cntx-ui bundle [name]",desc:"Generate a specific bundle (default: master)."},{cmd:"cntx-ui status",desc:"Show project status and bundle info."}].map(t=>m.jsxs("div",{className:"flex justify-between items-center py-2 border-b border-vesper/30",children:[m.jsxs("code",{className:"text-[11px] font-mono color-vesper-accent",children:[" ",t.cmd," "]}),m.jsx("span",{className:"text-[10px] color-vesper-muted",children:t.desc})]},t.cmd))})})]})}function mD(){return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("header",{children:[m.jsxs("h1",{className:"text-lg font-thin tracking-tight flex items-center gap-2",children:[m.jsx(r_,{className:"w-4 h-4 text-vesper-accent"}),"Help & Documentation"]}),m.jsx("p",{className:"text-xs text-muted-foreground font-thin",children:"How cntx-ui works and CLI reference"})]}),m.jsxs(Is,{defaultValue:"onboarding",className:"w-full",children:[m.jsxs(Zs,{className:"grid w-full grid-cols-3 bg-black/20 p-1 border border-vesper h-9 mb-6",children:[m.jsx(an,{value:"onboarding",className:"text-[10px] uppercase tracking-widest font-thin",children:"Onboarding"}),m.jsx(an,{value:"intelligence",className:"text-[10px] uppercase tracking-widest font-thin",children:"How It Works"}),m.jsx(an,{value:"cli",className:"text-[10px] uppercase tracking-widest font-thin",children:"CLI Reference"})]}),m.jsx(yn,{value:"onboarding",className:"m-0",children:m.jsx(fD,{})}),m.jsx(yn,{value:"intelligence",className:"m-0",children:m.jsx(dD,{})}),m.jsx(yn,{value:"cli",className:"m-0",children:m.jsx(hD,{})})]})]})}function pD(){const[t,a]=w.useState("SELECT name, purpose, complexity_score FROM semantic_chunks ORDER BY complexity_score DESC LIMIT 10;"),[i,l]=w.useState(null),[o,u]=w.useState(!1),[f,h]=w.useState(null),g=[{name:"Top Chunks by Complexity",sql:"SELECT name, purpose, complexity_score, file_path FROM semantic_chunks ORDER BY complexity_score DESC LIMIT 10;"},{name:"Chunks by Purpose",sql:"SELECT purpose, COUNT(*) as count FROM semantic_chunks GROUP BY purpose ORDER BY count DESC;"},{name:"Agent Interaction History",sql:"SELECT role, content, timestamp FROM agent_memory ORDER BY timestamp DESC LIMIT 20;"},{name:"Vector Embedding Stats",sql:"SELECT model_name, COUNT(*) as count FROM vector_embeddings GROUP BY model_name;"},{name:"Unassigned Chunks",sql:"SELECT name, file_path FROM semantic_chunks WHERE purpose = 'Utility function' LIMIT 10;"}];w.useEffect(()=>{p()},[]);const p=async()=>{try{const x=await(await fetch("/api/database/info")).json();h(x)}catch{h({error:"Failed to load database info"})}},v=async()=>{if(t.trim()){u(!0);try{const x=await(await fetch("/api/database/query",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:t.trim()})})).json();l(x)}catch{l({error:"Failed to execute query"})}finally{u(!1)}}};return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("header",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsxs("h1",{className:"text-lg font-thin tracking-tight flex items-center gap-2",children:[m.jsx(vm,{className:"w-4 h-4 text-vesper-accent"}),"Persistent Intelligence Explorer"]}),m.jsx("p",{className:"text-xs text-muted-foreground font-thin",children:"Querying the project's persistent brain"})]}),f&&m.jsxs("div",{className:"flex gap-2",children:[m.jsxs(We,{variant:"outline",className:"border-vesper font-thin text-[9px] uppercase tracking-widest",children:[f.chunkCount," Chunks"]}),m.jsxs(We,{variant:"outline",className:"border-vesper font-thin text-[9px] uppercase tracking-widest",children:[f.embeddingCount," Vectors"]}),m.jsx(We,{variant:"outline",className:"border-vesper font-thin text-[9px] uppercase tracking-widest",children:f.sizeFormatted})]})]}),m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[m.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[m.jsxs(at,{className:"border-vesper bg-vesper-card",children:[m.jsx(Dt,{className:"pb-3",children:m.jsx(Vt,{className:"text-xs font-thin uppercase tracking-widest color-vesper-muted",children:"SQL Interface"})}),m.jsxs(bt,{className:"space-y-4",children:[m.jsx(xS,{value:t,onChange:y=>a(y.target.value),className:"font-mono text-xs bg-black/30 border-vesper min-h-[150px] color-vesper-fg"}),m.jsxs("div",{className:"flex justify-between items-center",children:[m.jsx("span",{className:"text-[10px] color-vesper-muted italic",children:"⌘ + Enter to execute"}),m.jsxs(mt,{onClick:v,disabled:o,size:"sm",className:"bg-vesper-accent text-black hover:opacity-90 h-8",children:[o?m.jsx(Rh,{className:"w-3 h-3 animate-spin mr-2"}):m.jsx(Mb,{className:"w-3 h-3 mr-2"}),"Execute Query"]})]})]})]}),i&&m.jsxs(at,{className:"border-vesper bg-vesper-card overflow-hidden",children:[m.jsx(Dt,{className:"pb-3 border-b border-vesper",children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx(Vt,{className:"text-xs font-thin uppercase tracking-widest color-vesper-muted",children:"Results"}),i.results&&m.jsxs(We,{variant:"outline",className:"text-[9px] border-vesper",children:[i.results.length," rows"]})]})}),m.jsx(bt,{className:"p-0",children:i.error?m.jsx("div",{className:"p-4 text-xs font-mono text-red-400 bg-red-950/10",children:i.error}):i.results&&i.results.length>0?m.jsx("div",{className:"overflow-auto max-h-[400px]",children:m.jsxs("table",{className:"w-full border-collapse text-[11px]",children:[m.jsx("thead",{children:m.jsx("tr",{className:"bg-black/40 text-left color-vesper-muted border-b border-vesper",children:Object.keys(i.results[0]).map(y=>m.jsx("th",{className:"p-2 font-thin uppercase tracking-tighter",children:y},y))})}),m.jsx("tbody",{children:i.results.map((y,x)=>m.jsx("tr",{className:"border-b border-vesper/30 hover:bg-white/5",children:Object.values(y).map((S,M)=>m.jsx("td",{className:"p-2 color-vesper-fg font-mono max-w-[200px] truncate",children:S===null?m.jsx("span",{className:"opacity-30",children:"null"}):String(S)},M))},x))})]})}):m.jsx("div",{className:"p-8 text-center text-xs color-vesper-muted italic",children:"No results returned"})})]})]}),m.jsxs("div",{className:"space-y-4",children:[m.jsxs(at,{className:"border-vesper bg-vesper-card",children:[m.jsx(Dt,{children:m.jsxs(Vt,{className:"text-xs font-thin uppercase tracking-widest color-vesper-muted flex items-center gap-2",children:[m.jsx(M_,{className:"w-3 h-3"}),"Schema Explorer"]})}),m.jsx(bt,{className:"space-y-2",children:["semantic_chunks","vector_embeddings","agent_memory","agent_sessions","bundles"].map(y=>m.jsxs("div",{className:"flex items-center justify-between p-2 rounded bg-black/20 border border-vesper/50 group hover:border-vesper-accent cursor-pointer",onClick:()=>a(`SELECT * FROM ${y} LIMIT 10;`),children:[m.jsx("span",{className:"text-[11px] font-mono color-vesper-fg",children:y}),m.jsx(We,{variant:"outline",className:"text-[8px] opacity-0 group-hover:opacity-100 transition-opacity",children:"Select"})]},y))})]}),m.jsxs(at,{className:"border-vesper bg-vesper-card",children:[m.jsx(Dt,{children:m.jsxs(Vt,{className:"text-xs font-thin uppercase tracking-widest color-vesper-muted flex items-center gap-2",children:[m.jsx(_T,{className:"w-3 h-3"}),"Intelligence Queries"]})}),m.jsx(bt,{className:"space-y-2",children:g.map((y,x)=>m.jsx(mt,{variant:"ghost",className:"w-full justify-start text-left h-auto p-2 hover:bg-white/5 border border-transparent hover:border-vesper",onClick:()=>{a(y.sql),v()},children:m.jsxs("div",{children:[m.jsx("div",{className:"text-[11px] color-vesper-accent font-bold",children:y.name}),m.jsx("div",{className:"text-[9px] color-vesper-muted truncate max-w-[180px]",children:y.sql})]})},x))})]})]})]})]})}const gD=new Xx,vD=[{id:"bundles",label:"Bundles & Files",icon:jh},{id:"semantic",label:"Semantic Chunks",icon:T_},{id:"vector-db",label:"Vector Database",icon:Fc},{id:"database",label:"SQLite Database",icon:vm},{id:"settings",label:"Settings",icon:Ob},{id:"system-status",label:"System Status",icon:Qi},{id:"help",label:"Help & Documentation",icon:UT}],wS="cntx-ui-preferences",yD=()=>{try{const t=localStorage.getItem(wS);if(t)return{...Ex,...JSON.parse(t)}}catch(t){console.warn("Failed to load preferences from localStorage:",t)}return Ex},xD=t=>{try{localStorage.setItem(wS,JSON.stringify(t))}catch(a){console.warn("Failed to save preferences to localStorage:",a)}},Ex={sidebarCollapsed:!1,activeSection:"bundles"};function bD(){const[t,a]=w.useState("connecting"),[i,l]=w.useState("unknown"),[o,u]=w.useState(yD),{sidebarCollapsed:f,activeSection:h}=o,g=x=>{const S={...o,...x};u(S),xD(S)},p=x=>{g({sidebarCollapsed:x})},v=x=>{g({activeSection:x})};w.useEffect(()=>{const x=new WebSocket("ws://localhost:3333");x.onopen=()=>a("connected"),x.onclose=()=>a("disconnected");const S=async()=>{try{const N=await fetch("/api/mcp-status");if(N.ok){const{running:E}=await N.json();l(E?"running":"stopped")}else l("stopped")}catch{l("stopped")}};S();const M=setInterval(S,1e4);return()=>{x.close(),clearInterval(M)}},[]);const y=()=>{switch(h){case"bundles":return m.jsx("div",{className:"flex-1 min-h-0 flex",children:m.jsx("main",{className:"flex-1 min-h-0 flex flex-col",children:m.jsx(_3,{})})});case"semantic":return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsx("h1",{className:"text-lg font-thin tracking-tight",children:"Semantic Chunks"}),m.jsx("p",{className:"text-xs text-muted-foreground font-thin",children:"AI-powered code organization and intelligent bundles"})]}),m.jsx(D3,{})]});case"vector-db":return m.jsx("div",{className:"space-y-6",children:m.jsx(tD,{})});case"database":return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsx("h1",{className:"text-lg font-thin tracking-tight",children:"SQLite Database"}),m.jsx("p",{className:"text-xs text-muted-foreground font-thin",children:"Query and inspect the bundle database"})]}),m.jsx(pD,{})]});case"settings":return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsx("h1",{className:"text-lg font-thin tracking-tight",children:"Settings"}),m.jsx("p",{className:"text-xs text-muted-foreground font-thin",children:"Configure file visibility and bundle patterns"})]}),m.jsx(uD,{})]});case"system-status":return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsx("h1",{className:"text-lg font-thin tracking-tight",children:"System Status"}),m.jsx("p",{className:"text-xs text-muted-foreground font-thin",children:"Overall health and configuration of cntx-ui"})]}),m.jsx(z3,{})]});case"help":return m.jsx(mD,{});default:return null}};return m.jsx(Kx,{client:gD,children:m.jsxs("div",{className:"h-screen bg-background overflow-hidden flex flex-col",children:[f&&m.jsxs("div",{className:"h-16 border-b flex items-center px-4 flex-shrink-0",children:[m.jsx("div",{className:"flex items-center gap-4 flex-1",children:m.jsx("div",{className:"flex items-center gap-2",children:m.jsxs("div",{children:[m.jsx("h2",{className:"text-sm font-thin",children:"cntx-ui"}),m.jsx("p",{className:"text-xs text-muted-foreground font-thin",children:"Context Manager"})]})})}),m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx("div",{className:"text-xs text-muted-foreground",children:"cntx-ui v2.0.12"}),m.jsx(X0,{})]})]}),m.jsxs("div",{className:"flex flex-1",style:{height:f?"calc(100vh - 4rem)":"100%"},children:[m.jsxs("div",{className:`${f?"w-16":"w-64"} border-r flex flex-col h-full transition-all duration-200`,children:[!f&&m.jsx("div",{className:"p-4 border-b flex-shrink-0",children:m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs("div",{className:"flex-1",children:[m.jsx("h2",{className:"text-sm font-thin",children:"cntx-ui"}),m.jsx("p",{className:"text-xs text-muted-foreground font-thin",children:"Context Manager"})]}),m.jsx(mt,{variant:"ghost",size:"sm",onClick:()=>p(!0),className:"h-6 w-6 p-0 opacity-60 hover:opacity-100",children:m.jsx(ym,{className:"w-3 h-3"})})]})}),f&&m.jsx("div",{className:"p-3 border-b flex-shrink-0 flex justify-center",children:m.jsx(mt,{variant:"ghost",size:"sm",onClick:()=>p(!1),className:"h-8 w-8 p-0",children:m.jsx(d_,{className:"w-4 h-4"})})}),m.jsx("nav",{className:`${f?"p-2":"p-4"} space-y-1 flex-1 overflow-y-auto`,children:vD.map(x=>{const S=x.icon,M=h===x.id;return m.jsxs(mt,{variant:M?"secondary":"ghost",className:`${f?"w-12 h-12 p-0 justify-center":"w-full justify-start h-8 text-xs font-thin"} transition-all`,onClick:()=>v(x.id),title:f?x.label:void 0,children:[m.jsx(S,{className:`${f?"w-4 h-4":"w-3 h-3 mr-2"}`}),!f&&x.label]},x.id)})})]}),m.jsx("div",{className:"flex-1 overflow-y-auto pb-12",children:m.jsx("main",{className:"p-6 max-w-6xl",children:y()})})]}),m.jsxs("div",{className:"fixed left-0 right-0 h-10 bg-card border-t border-border px-4 flex items-center justify-between z-40 bottom-0",children:[m.jsxs("div",{className:"flex items-center gap-6",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:`w-2 h-2 rounded-full ${t==="connected"?"bg-[color:var(--color-success)]":t==="connecting"?"bg-[color:var(--color-warning)]":"bg-destructive"}`}),m.jsxs("span",{className:"text-xs font-thin",children:["UI: ",t==="connected"?"Live":t==="connecting"?"Connecting":"Offline"]})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:`w-2 h-2 rounded-full ${i==="running"?"bg-[color:var(--color-success)]":i==="stopped"?"bg-destructive":"bg-muted-foreground"}`}),m.jsxs("span",{className:"text-xs font-thin",children:["MCP SERVER: ",i==="running"?"Running":i==="stopped"?"Stopped":"Unknown"]})]})]}),!f&&m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx("div",{className:"text-xs text-muted-foreground",children:"cntx-ui v2.0.12"}),m.jsx(X0,{})]})]})]})})}const wD=new Xx;KE.createRoot(document.getElementById("root")).render(m.jsx(w.StrictMode,{children:m.jsx(Kx,{client:wD,children:m.jsxs(LA,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,children:[m.jsx(bD,{}),m.jsx(TA,{})]})})}));
|